blob: 81e17bb74ea890b504050aab870681d599244c89 [file] [log] [blame]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Craig Silverstein24b4c592011-01-25 00:36:41 +00003# Generated by GNU Autoconf 2.65 for gflags 1.5.
Craig Silversteinb9f23482007-03-22 00:15:41 +00004#
5# Report bugs to <opensource@google.com>.
6#
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007#
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
Craig Silversteinab3d7652009-11-10 16:33:51 +000012#
Craig Silversteinb9f23482007-03-22 00:15:41 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
Craig Silversteinab3d7652009-11-10 16:33:51 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Craig Silversteinb9f23482007-03-22 00:15:41 +000018
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
Craig Silversteinab3d7652009-11-10 16:33:51 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000022 emulate sh
23 NULLCMD=:
Craig Silversteinab3d7652009-11-10 16:33:51 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Craig Silversteinb9f23482007-03-22 00:15:41 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000027 setopt NO_GLOB_SUBST
Craig Silversteinb9f23482007-03-22 00:15:41 +000028else
Craig Silversteinab3d7652009-11-10 16:33:51 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000034esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000035fi
36
37
Craig Silversteinab3d7652009-11-10 16:33:51 +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
Craig Silversteinb9f23482007-03-22 00:15:41 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +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 }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000083fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000084
Craig Silverstein5a3c7f82009-04-15 21:57:04 +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.)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Craig Silversteinab3d7652009-11-10 16:33:51 +000094case $0 in #((
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silversteinb9f23482007-03-22 00:15:41 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000103IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +0000104
Craig Silverstein5a3c7f82009-04-15 21:57:04 +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
Craig Silversteinab3d7652009-11-10 16:33:51 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000115fi
116
Craig Silversteinab3d7652009-11-10 16:33:51 +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 || :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
Craig Silversteinab3d7652009-11-10 16:33:51 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000134
Craig Silversteinab3d7652009-11-10 16:33:51 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
Craig Silverstein5a3c7f82009-04-15 21:57:04 +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
Craig Silversteinab3d7652009-11-10 16:33:51 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000396
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +0000401$as_echo X/"$0" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +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
Craig Silversteinab3d7652009-11-10 16:33:51 +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
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000422
423
Craig Silversteinab3d7652009-11-10 16:33:51 +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. :-)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
Craig Silversteinb9f23482007-03-22 00:15:41 +0000433 sed '
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
Craig Silversteinb9f23482007-03-22 00:15:41 +0000438 N
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Craig Silversteinb9f23482007-03-22 00:15:41 +0000441 t loop
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000442 s/-\n.*//
Craig Silversteinb9f23482007-03-22 00:15:41 +0000443 ' >$as_me.lineno &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000444 chmod +x "$as_me.lineno" ||
Craig Silversteinab3d7652009-11-10 16:33:51 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Craig Silversteinb9f23482007-03-22 00:15:41 +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
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
Craig Silversteinb9f23482007-03-22 00:15:41 +0000451 # Exit status is that of the last command.
452 exit
453}
454
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000455ECHO_C= ECHO_N= ECHO_T=
Craig Silversteinab3d7652009-11-10 16:33:51 +0000456case `echo -n x` in #(((((
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000457-n*)
Craig Silversteinab3d7652009-11-10 16:33:51 +0000458 case `echo 'xy\c'` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Craig Silversteinab3d7652009-11-10 16:33:51 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000463 esac;;
464*)
465 ECHO_N='-n';;
Craig Silversteinb9f23482007-03-22 00:15:41 +0000466esac
467
Craig Silversteinb9f23482007-03-22 00:15:41 +0000468rm -f conf$$ conf$$.exe conf$$.file
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
Craig Silversteinab3d7652009-11-10 16:33:51 +0000473 mkdir conf$$.dir 2>/dev/null
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000474fi
Craig Silversteinab3d7652009-11-10 16:33:51 +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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000487 as_ln_s='cp -p'
Craig Silversteinab3d7652009-11-10 16:33:51 +0000488 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +0000489else
490 as_ln_s='cp -p'
491fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +0000494
495if mkdir -p . 2>/dev/null; then
Craig Silversteinab3d7652009-11-10 16:33:51 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 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
Craig Silversteinab3d7652009-11-10 16:33:51 +0000513 test -d "$1/.";
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000514 else
Craig Silversteinab3d7652009-11-10 16:33:51 +0000515 case $1 in #(
516 -*)set "./$1";;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000517 esac;
Craig Silversteinab3d7652009-11-10 16:33:51 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
Craig Silversteinb9f23482007-03-22 00:15:41 +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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000532
Craig Silversteinb9f23482007-03-22 00:15:41 +0000533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000536case X$lt_ECHO in
Craig Silversteinb9f23482007-03-22 00:15:41 +0000537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
Craig Silversteinb9f23482007-03-22 00:15:41 +0000540 ;;
541esac
542
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000543ECHO=${lt_ECHO-echo}
Craig Silversteinb9f23482007-03-22 00:15:41 +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 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
Craig Silversteinb9f23482007-03-22 00:15:41 +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
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000561 cat <<_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +0000562$*
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000563_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +0000564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
Craig Silverstein690172b2007-04-20 21:16:33 +0000569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Craig Silversteinb9f23482007-03-22 00:15:41 +0000570
Craig Silverstein84b18ac2010-11-16 23:21:00 +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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000583
Craig Silverstein84b18ac2010-11-16 23:21:00 +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.
Craig Silversteinb9f23482007-03-22 00:15:41 +0000594
Craig Silverstein84b18ac2010-11-16 23:21:00 +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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000606 IFS="$lt_save_ifs"
Craig Silversteinb9f23482007-03-22 00:15:41 +0000607
Craig Silverstein84b18ac2010-11-16 23:21:00 +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+"$@"}
Craig Silversteinb9f23482007-03-22 00:15:41 +0000623 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +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=:
Craig Silversteinb9f23482007-03-22 00:15:41 +0000648
Craig Silverstein84b18ac2010-11-16 23:21:00 +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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000664 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000665 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +0000666 fi
667 fi
668 fi
669fi
Craig Silversteinb9f23482007-03-22 00:15:41 +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.
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
Craig Silversteinb9f23482007-03-22 00:15:41 +0000676fi
677
678
679
680
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000683
Craig Silversteinb9f23482007-03-22 00:15:41 +0000684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
Craig Silversteinb9f23482007-03-22 00:15:41 +0000689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000693ac_clean_files=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000694ac_config_libobj_dir=.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000695LIBOBJS=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000700
Craig Silversteinb9f23482007-03-22 00:15:41 +0000701# Identity of this package.
702PACKAGE_NAME='gflags'
703PACKAGE_TARNAME='gflags'
Craig Silverstein24b4c592011-01-25 00:36:41 +0000704PACKAGE_VERSION='1.5'
705PACKAGE_STRING='gflags 1.5'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000706PACKAGE_BUGREPORT='opensource@google.com'
Craig Silversteinab3d7652009-11-10 16:33:51 +0000707PACKAGE_URL=''
Craig Silversteinb9f23482007-03-22 00:15:41 +0000708
709ac_unique_file="README"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000713#ifdef HAVE_SYS_TYPES_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000714# include <sys/types.h>
715#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000716#ifdef HAVE_SYS_STAT_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000717# include <sys/stat.h>
718#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000719#ifdef STDC_HEADERS
Craig Silversteinb9f23482007-03-22 00:15:41 +0000720# include <stdlib.h>
721# include <stddef.h>
722#else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000723# ifdef HAVE_STDLIB_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000724# include <stdlib.h>
725# endif
726#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000729# include <memory.h>
730# endif
731# include <string.h>
732#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000733#ifdef HAVE_STRINGS_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000734# include <strings.h>
735#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000736#ifdef HAVE_INTTYPES_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000737# include <inttypes.h>
Craig Silversteinb9f23482007-03-22 00:15:41 +0000738#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000743# include <unistd.h>
744#endif"
745
Craig Silversteinab3d7652009-11-10 16:33:51 +0000746ac_subst_vars='LTLIBOBJS
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000747LIBOBJS
Craig Silversteinab3d7652009-11-10 16:33:51 +0000748ac_cv_have___int16
749ac_cv_have_u_int16_t
750ac_cv_have_uint16_t
751ac_cv_have_inttypes_h
752ac_cv_have_systypes_h
753ac_cv_have_stdint_h
754ac_cv___attribute__unused
755ac_google_namespace
756ac_google_end_namespace
757ac_google_start_namespace
758LIBSTDCXX_LA_LINKER_FLAG
759PTHREAD_CFLAGS
760PTHREAD_LIBS
761PTHREAD_CC
762acx_pthread_config
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000763SO_VERSION
Craig Silversteinab3d7652009-11-10 16:33:51 +0000764LIBTOOL_DEPS
Craig Silversteinab3d7652009-11-10 16:33:51 +0000765CXXCPP
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000766OTOOL64
767OTOOL
768LIPO
Craig Silversteinab3d7652009-11-10 16:33:51 +0000769NMEDIT
770DSYMUTIL
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000771lt_ECHO
Craig Silversteinab3d7652009-11-10 16:33:51 +0000772RANLIB
773AR
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000774OBJDUMP
Craig Silversteinab3d7652009-11-10 16:33:51 +0000775LN_S
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000776NM
777ac_ct_DUMPBIN
778DUMPBIN
779LD
780FGREP
Craig Silversteinab3d7652009-11-10 16:33:51 +0000781EGREP
782GREP
783SED
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000784LIBTOOL
Craig Silversteinab3d7652009-11-10 16:33:51 +0000785TEST_TMPDIR
786host_os
787host_vendor
788host_cpu
789host
790build_os
791build_vendor
792build_cpu
793build
794GCC_FALSE
795GCC_TRUE
796am__fastdepCXX_FALSE
797am__fastdepCXX_TRUE
798CXXDEPMODE
799ac_ct_CXX
800CXXFLAGS
801CXX
802CPP
803am__fastdepCC_FALSE
804am__fastdepCC_TRUE
805CCDEPMODE
806AMDEPBACKSLASH
807AMDEP_FALSE
808AMDEP_TRUE
809am__quote
810am__include
811DEPDIR
812OBJEXT
813EXEEXT
814ac_ct_CC
815CPPFLAGS
816LDFLAGS
817CFLAGS
818CC
819am__untar
820am__tar
821AMTAR
822am__leading_dot
823SET_MAKE
824AWK
825mkdir_p
826INSTALL_STRIP_PROGRAM
827STRIP
828install_sh
829MAKEINFO
830AUTOHEADER
831AUTOMAKE
832AUTOCONF
833ACLOCAL
834VERSION
835PACKAGE
836CYGPATH_W
837INSTALL_DATA
838INSTALL_SCRIPT
839INSTALL_PROGRAM
840target_alias
841host_alias
842build_alias
843LIBS
844ECHO_T
845ECHO_N
846ECHO_C
847DEFS
848mandir
849localedir
850libdir
851psdir
852pdfdir
853dvidir
854htmldir
855infodir
856docdir
857oldincludedir
858includedir
859localstatedir
860sharedstatedir
861sysconfdir
862datadir
863datarootdir
864libexecdir
865sbindir
866bindir
867program_transform_name
868prefix
869exec_prefix
870PACKAGE_URL
871PACKAGE_BUGREPORT
872PACKAGE_STRING
873PACKAGE_VERSION
874PACKAGE_TARNAME
875PACKAGE_NAME
876PATH_SEPARATOR
877SHELL'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000878ac_subst_files=''
Craig Silversteinab3d7652009-11-10 16:33:51 +0000879ac_user_opts='
880enable_option_checking
881enable_dependency_tracking
882enable_fast_install
883enable_shared
884enable_static
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000885with_pic
Craig Silversteinab3d7652009-11-10 16:33:51 +0000886with_gnu_ld
887enable_libtool_lock
Craig Silversteinab3d7652009-11-10 16:33:51 +0000888enable_namespace
889'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000890 ac_precious_vars='build_alias
891host_alias
892target_alias
893CC
894CFLAGS
895LDFLAGS
896LIBS
897CPPFLAGS
898CPP
899CXX
900CXXFLAGS
901CCC
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000902CXXCPP'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000903
Craig Silversteinb9f23482007-03-22 00:15:41 +0000904
905# Initialize some variables set by options.
906ac_init_help=
907ac_init_version=false
Craig Silversteinab3d7652009-11-10 16:33:51 +0000908ac_unrecognized_opts=
909ac_unrecognized_sep=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000910# The variables have the same names as the options, with
911# dashes changed to underlines.
912cache_file=/dev/null
913exec_prefix=NONE
914no_create=
915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
923verbose=
924x_includes=NONE
925x_libraries=NONE
926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000932# (The list follows the same order as the GNU Coding Standards.)
Craig Silversteinb9f23482007-03-22 00:15:41 +0000933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000941includedir='${prefix}/include'
942oldincludedir='/usr/include'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000943docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000952
953ac_prev=
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000954ac_dashdash=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000955for ac_option
956do
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000959 eval $ac_prev=\$ac_option
Craig Silversteinb9f23482007-03-22 00:15:41 +0000960 ac_prev=
961 continue
962 fi
963
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000964 case $ac_option in
965 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *) ac_optarg=yes ;;
967 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +0000968
969 # Accept the important Cygnus configure options, so we can diagnose typos.
970
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000971 case $ac_dashdash$ac_option in
972 --)
973 ac_dashdash=yes ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +0000974
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 ac_prev=bindir ;;
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 bindir=$ac_optarg ;;
979
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
984
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
991
992 --config-cache | -C)
993 cache_file=config.cache ;;
994
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000995 -datadir | --datadir | --datadi | --datad)
Craig Silversteinb9f23482007-03-22 00:15:41 +0000996 ac_prev=datadir ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Craig Silversteinb9f23482007-03-22 00:15:41 +0000998 datadir=$ac_optarg ;;
999
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1006
Craig Silversteinb9f23482007-03-22 00:15:41 +00001007 -disable-* | --disable-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001009 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016"enable_$ac_useropt"
1017"*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=no ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001022
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1027
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001032
1033 -enable-* | --enable-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001034 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001035 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042"enable_$ac_useropt"
1043"*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=\$ac_optarg ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001048
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1057
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1061
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1068
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1073
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1079
Craig Silversteinb9f23482007-03-22 00:15:41 +00001080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1086
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1091
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1096
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1103
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1108
Craig Silversteinb9f23482007-03-22 00:15:41 +00001109 -localstatedir | --localstatedir | --localstatedi | --localstated \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001110 | --localstate | --localstat | --localsta | --localst | --locals)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001114 localstatedir=$ac_optarg ;;
1115
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1120
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1124
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1128
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1132
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1141
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1146
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1153
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1160
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1177
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1182
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1187
Craig Silversteinb9f23482007-03-22 00:15:41 +00001188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1191
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1197
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1208
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1213
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1218
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1225
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1230
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1233
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1236
1237 -with-* | --with-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001239 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246"with_$ac_useropt"
1247"*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=\$ac_optarg ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001252
1253 -without-* | --without-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001255 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262"with_$ac_useropt"
1263"*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=no ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001268
1269 --x)
1270 # Obsolete; use --with-x.
1271 with_x=yes ;;
1272
1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274 | --x-incl | --x-inc | --x-in | --x-i)
1275 ac_prev=x_includes ;;
1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278 x_includes=$ac_optarg ;;
1279
1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282 ac_prev=x_libraries ;;
1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285 x_libraries=$ac_optarg ;;
1286
Craig Silversteinab3d7652009-11-10 16:33:51 +00001287 -*) as_fn_error "unrecognized option: \`$ac_option'
1288Try \`$0 --help' for more information."
Craig Silversteinb9f23482007-03-22 00:15:41 +00001289 ;;
1290
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001294 case $ac_envvar in #(
1295 '' | [0-9]* | *[!_$as_cr_alnum]* )
1296 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1297 esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001298 eval $ac_envvar=\$ac_optarg
Craig Silversteinb9f23482007-03-22 00:15:41 +00001299 export $ac_envvar ;;
1300
1301 *)
1302 # FIXME: should be removed in autoconf 3.0.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00001304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Craig Silversteinab3d7652009-11-10 16:33:51 +00001305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00001306 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1307 ;;
1308
1309 esac
1310done
1311
1312if test -n "$ac_prev"; then
1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Craig Silversteinab3d7652009-11-10 16:33:51 +00001314 as_fn_error "missing argument to $ac_option"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001315fi
1316
Craig Silversteinab3d7652009-11-10 16:33:51 +00001317if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1319 no) ;;
1320 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 esac
1323fi
1324
1325# Check all directory arguments for consistency.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001326for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
Craig Silversteinb9f23482007-03-22 00:15:41 +00001330do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001331 eval ac_val=\$$ac_var
Craig Silversteinab3d7652009-11-10 16:33:51 +00001332 # Remove trailing slashes.
1333 case $ac_val in
1334 */ )
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1337 esac
1338 # Be sure to have absolute directory names.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001339 case $ac_val in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001342 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00001343 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001344done
1345
1346# There might be people who depend on the old broken behavior: `$host'
1347# used to hold the argument of --host etc.
1348# FIXME: To remove some day.
1349build=$build_alias
1350host=$host_alias
1351target=$target_alias
1352
1353# FIXME: To remove some day.
1354if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
Craig Silversteinab3d7652009-11-10 16:33:51 +00001357 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001358 If a cross compiler is detected then cross compile mode will be used." >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362fi
1363
1364ac_tool_prefix=
1365test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367test "$silent" = yes && exec 6>/dev/null
1368
1369
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Craig Silversteinab3d7652009-11-10 16:33:51 +00001373 as_fn_error "working directory cannot be determined"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Craig Silversteinab3d7652009-11-10 16:33:51 +00001375 as_fn_error "pwd does not report name of working directory"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001376
1377
Craig Silversteinb9f23482007-03-22 00:15:41 +00001378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001381 # Try the directory containing this script, then the parent directory.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387$as_echo X"$as_myself" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\).*/{
1401 s//\1/
1402 q
1403 }
1404 s/.*/./; q'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001405 srcdir=$ac_confdir
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001406 if test ! -r "$srcdir/$ac_unique_file"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00001407 srcdir=..
1408 fi
1409else
1410 ac_srcdir_defaulted=no
1411fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001412if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Craig Silversteinab3d7652009-11-10 16:33:51 +00001414 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001415fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
Craig Silversteinab3d7652009-11-10 16:33:51 +00001418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001419 pwd)`
1420# When building in place, set srcdir=.
1421if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 srcdir=.
1423fi
1424# Remove unnecessary trailing slashes from srcdir.
1425# Double slashes in file names in object file debugging info
1426# mess up M-x gdb in Emacs.
1427case $srcdir in
1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429esac
1430for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435done
Craig Silversteinb9f23482007-03-22 00:15:41 +00001436
1437#
1438# Report the --help message.
1439#
1440if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
Craig Silverstein24b4c592011-01-25 00:36:41 +00001444\`configure' configures gflags 1.5 to adapt to many kinds of systems.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001445
1446Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449VAR=VALUE. See below for descriptions of some of the useful variables.
1450
1451Defaults for the options are specified in brackets.
1452
1453Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print \`checking...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463
Craig Silversteinb9f23482007-03-22 00:15:41 +00001464Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
Craig Silversteinab3d7652009-11-10 16:33:51 +00001466 [$ac_default_prefix]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Craig Silversteinab3d7652009-11-10 16:33:51 +00001468 [PREFIX]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001469
1470By default, \`make install' will install all the files in
1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473for instance \`--prefix=\$HOME'.
1474
1475For better control, use the options below.
1476
1477Fine tuning of the installation directories:
Craig Silversteinab3d7652009-11-10 16:33:51 +00001478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/gflags]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001497_ACEOF
1498
1499 cat <<\_ACEOF
1500
1501Program names:
1502 --program-prefix=PREFIX prepend PREFIX to installed program names
1503 --program-suffix=SUFFIX append SUFFIX to installed program names
1504 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1505
1506System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509_ACEOF
1510fi
1511
1512if test -n "$ac_init_help"; then
1513 case $ac_init_help in
Craig Silverstein24b4c592011-01-25 00:36:41 +00001514 short | recursive ) echo "Configuration of gflags 1.5:";;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001515 esac
1516 cat <<\_ACEOF
1517
1518Optional Features:
Craig Silversteinab3d7652009-11-10 16:33:51 +00001519 --disable-option-checking ignore unrecognized --enable/--with options
Craig Silversteinb9f23482007-03-22 00:15:41 +00001520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --disable-dependency-tracking speeds up one-time build
1523 --enable-dependency-tracking do not reject slow dependency extractors
Craig Silversteinb9f23482007-03-22 00:15:41 +00001524 --enable-fast-install[=PKGS]
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001525 optimize for fast installation [default=no]
1526 --enable-shared[=PKGS] build shared libraries [default=yes]
1527 --enable-static[=PKGS] build static libraries [default=yes]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --enable-namespace=FOO to define these Google
1530 classes in the FOO namespace. --disable-namespace
1531 to define them in the global namespace. Default
1532 is to define them in namespace google.
1533
1534Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001537 --with-pic try to use only PIC/non-PIC objects [default=use
1538 both]
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001539 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001540
1541Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001546 LIBS libraries to pass to the linker, e.g. -l<library>
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001548 you have headers in a nonstandard directory <include dir>
Craig Silversteinb9f23482007-03-22 00:15:41 +00001549 CPP C preprocessor
1550 CXX C++ compiler command
1551 CXXFLAGS C++ compiler flags
1552 CXXCPP C++ preprocessor
Craig Silversteinb9f23482007-03-22 00:15:41 +00001553
1554Use these variables to override the choices made by `configure' or to help
1555it to find libraries and programs with nonstandard names/locations.
1556
1557Report bugs to <opensource@google.com>.
1558_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001559ac_status=$?
Craig Silversteinb9f23482007-03-22 00:15:41 +00001560fi
1561
1562if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Craig Silversteinab3d7652009-11-10 16:33:51 +00001565 test -d "$ac_dir" ||
1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567 continue
Craig Silversteinb9f23482007-03-22 00:15:41 +00001568 ac_builddir=.
1569
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001570case "$ac_dir" in
1571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001574 # A ".." for each directory in $ac_dir_suffix.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 esac ;;
1580esac
1581ac_abs_top_builddir=$ac_pwd
1582ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583# for backward compatibility:
1584ac_top_builddir=$ac_top_build_prefix
Craig Silversteinb9f23482007-03-22 00:15:41 +00001585
1586case $srcdir in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001587 .) # We are building in place.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001588 ac_srcdir=.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001592 ac_srcdir=$srcdir$ac_dir_suffix;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1595 *) # Relative name.
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001599esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Craig Silversteinb9f23482007-03-22 00:15:41 +00001601
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure" --help=recursive
Craig Silversteinb9f23482007-03-22 00:15:41 +00001610 else
Craig Silversteinab3d7652009-11-10 16:33:51 +00001611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001612 fi || ac_status=$?
1613 cd "$ac_pwd" || { ac_status=$?; break; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00001614 done
1615fi
1616
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001617test -n "$ac_init_help" && exit $ac_status
Craig Silversteinb9f23482007-03-22 00:15:41 +00001618if $ac_init_version; then
1619 cat <<\_ACEOF
Craig Silverstein24b4c592011-01-25 00:36:41 +00001620gflags configure 1.5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001621generated by GNU Autoconf 2.65
Craig Silversteinb9f23482007-03-22 00:15:41 +00001622
Craig Silversteinab3d7652009-11-10 16:33:51 +00001623Copyright (C) 2009 Free Software Foundation, Inc.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001624This configure script is free software; the Free Software Foundation
1625gives unlimited permission to copy, distribute and modify it.
1626_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001627 exit
Craig Silversteinb9f23482007-03-22 00:15:41 +00001628fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00001629
1630## ------------------------ ##
1631## Autoconf initialization. ##
1632## ------------------------ ##
1633
1634# ac_fn_c_try_compile LINENO
1635# --------------------------
1636# Try to compile conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_compile ()
1638{
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext
1641 if { { ac_try="$ac_compile"
1642case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_compile") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest.$ac_objext; then :
1660 ac_retval=0
1661else
1662 $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=1
1666fi
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001668 as_fn_set_status $ac_retval
Craig Silversteinab3d7652009-11-10 16:33:51 +00001669
1670} # ac_fn_c_try_compile
1671
1672# ac_fn_c_try_cpp LINENO
1673# ----------------------
1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_cpp ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } >/dev/null && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 }; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703fi
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001705 as_fn_set_status $ac_retval
Craig Silversteinab3d7652009-11-10 16:33:51 +00001706
1707} # ac_fn_c_try_cpp
1708
1709# ac_fn_cxx_try_compile LINENO
1710# ----------------------------
1711# Try to compile conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_cxx_try_compile ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_cxx_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736else
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741fi
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001743 as_fn_set_status $ac_retval
Craig Silversteinab3d7652009-11-10 16:33:51 +00001744
1745} # ac_fn_cxx_try_compile
1746
1747# ac_fn_c_try_link LINENO
1748# -----------------------
1749# Try to link conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_link ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1755case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 $as_test_x conftest$ac_exeext
1775 }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782fi
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001789 as_fn_set_status $ac_retval
Craig Silversteinab3d7652009-11-10 16:33:51 +00001790
1791} # ac_fn_c_try_link
1792
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001793# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Craig Silversteinab3d7652009-11-10 16:33:51 +00001794# -------------------------------------------------------
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001795# Tests whether HEADER exists and can be compiled using the include files in
1796# INCLUDES, setting the cache variable VAR accordingly.
1797ac_fn_c_check_header_compile ()
Craig Silversteinab3d7652009-11-10 16:33:51 +00001798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Craig Silversteinab3d7652009-11-10 16:33:51 +00001800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 $as_echo_n "(cached) " >&6
Craig Silversteinab3d7652009-11-10 16:33:51 +00001804else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinab3d7652009-11-10 16:33:51 +00001806/* end confdefs.h. */
1807$4
1808#include <$2>
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"; then :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001811 eval "$3=yes"
Craig Silversteinab3d7652009-11-10 16:33:51 +00001812else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001813 eval "$3=no"
Craig Silversteinab3d7652009-11-10 16:33:51 +00001814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinab3d7652009-11-10 16:33:51 +00001816fi
1817eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00001820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001822} # ac_fn_c_check_header_compile
Craig Silversteinab3d7652009-11-10 16:33:51 +00001823
1824# ac_fn_c_try_run LINENO
1825# ----------------------
1826# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1827# that executables *can* be run.
1828ac_fn_c_try_run ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1842 { { case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_try") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }; then :
1852 ac_retval=0
1853else
1854 $as_echo "$as_me: program exited with status $ac_status" >&5
1855 $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=$ac_status
1859fi
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001862 as_fn_set_status $ac_retval
Craig Silversteinab3d7652009-11-10 16:33:51 +00001863
1864} # ac_fn_c_try_run
1865
Craig Silversteinab3d7652009-11-10 16:33:51 +00001866# ac_fn_c_check_func LINENO FUNC VAR
1867# ----------------------------------
1868# Tests whether FUNC exists, setting the cache variable VAR accordingly
1869ac_fn_c_check_func ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873$as_echo_n "checking for $2... " >&6; }
1874if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881#define $2 innocuous_$2
1882
1883/* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1887
1888#ifdef __STDC__
1889# include <limits.h>
1890#else
1891# include <assert.h>
1892#endif
1893
1894#undef $2
1895
1896/* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1899#ifdef __cplusplus
1900extern "C"
1901#endif
1902char $2 ();
1903/* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906#if defined __stub_$2 || defined __stub___$2
1907choke me
1908#endif
1909
1910int
1911main ()
1912{
1913return $2 ();
1914 ;
1915 return 0;
1916}
1917_ACEOF
1918if ac_fn_c_try_link "$LINENO"; then :
1919 eval "$3=yes"
1920else
1921 eval "$3=no"
1922fi
1923rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930
1931} # ac_fn_c_check_func
1932
1933# ac_fn_cxx_try_cpp LINENO
1934# ------------------------
1935# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1936ac_fn_cxx_try_cpp ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_cpp conftest.$ac_ext"
1940case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943esac
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945$as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1952 fi
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } >/dev/null && {
1955 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1956 test ! -s conftest.err
1957 }; then :
1958 ac_retval=0
1959else
1960 $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=1
1964fi
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001966 as_fn_set_status $ac_retval
Craig Silversteinab3d7652009-11-10 16:33:51 +00001967
1968} # ac_fn_cxx_try_cpp
1969
1970# ac_fn_cxx_try_link LINENO
1971# -------------------------
1972# Try to link conftest.$ac_ext, and return whether this succeeded.
1973ac_fn_cxx_try_link ()
1974{
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest$ac_exeext
1977 if { { ac_try="$ac_link"
1978case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981esac
1982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983$as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1990 fi
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 $as_test_x conftest$ac_exeext
1998 }; then :
1999 ac_retval=0
2000else
2001 $as_echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_retval=1
2005fi
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002012 as_fn_set_status $ac_retval
Craig Silversteinab3d7652009-11-10 16:33:51 +00002013
2014} # ac_fn_cxx_try_link
2015
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002016# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2017# -------------------------------------------------------
2018# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019# the include files in INCLUDES and setting the cache variable VAR
2020# accordingly.
2021ac_fn_c_check_header_mongrel ()
Craig Silversteinab3d7652009-11-10 16:33:51 +00002022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
2027if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029fi
2030eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032$as_echo "$ac_res" >&6; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00002033else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002034 # Is the header compilable?
2035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036$as_echo_n "checking $2 usability... " >&6; }
2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h. */
2039$4
2040#include <$2>
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_header_compiler=yes
2044else
2045 ac_header_compiler=no
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049$as_echo "$ac_header_compiler" >&6; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00002050
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002051# Is the header present?
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053$as_echo_n "checking $2 presence... " >&6; }
2054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056#include <$2>
2057_ACEOF
2058if ac_fn_c_try_cpp "$LINENO"; then :
2059 ac_header_preproc=yes
2060else
2061 ac_header_preproc=no
2062fi
2063rm -f conftest.err conftest.$ac_ext
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065$as_echo "$ac_header_preproc" >&6; }
2066
2067# So? What about this header?
2068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2069 yes:no: )
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 ;;
2075 no:yes:* )
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2079$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2083$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086( cat <<\_ASBOX
2087## ------------------------------------ ##
2088## Report this to opensource@google.com ##
2089## ------------------------------------ ##
2090_ASBOX
2091 ) | sed "s/^/$as_me: WARNING: /" >&2
2092 ;;
2093esac
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095$as_echo_n "checking for $2... " >&6; }
2096if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 $as_echo_n "(cached) " >&6
2098else
2099 eval "$3=\$ac_header_compiler"
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00002104fi
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Craig Silversteinab3d7652009-11-10 16:33:51 +00002106
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002107} # ac_fn_c_check_header_mongrel
Craig Silversteinab3d7652009-11-10 16:33:51 +00002108
2109# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2110# -------------------------------------------
2111# Tests whether TYPE exists after having included INCLUDES, setting cache
2112# variable VAR accordingly.
2113ac_fn_c_check_type ()
2114{
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117$as_echo_n "checking for $2... " >&6; }
2118if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2119 $as_echo_n "(cached) " >&6
2120else
2121 eval "$3=no"
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124$4
2125int
2126main ()
2127{
2128if (sizeof ($2))
2129 return 0;
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141if (sizeof (($2)))
2142 return 0;
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148
2149else
2150 eval "$3=yes"
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155fi
2156eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158$as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160
2161} # ac_fn_c_check_type
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002162cat >config.log <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00002163This file contains any messages produced by compilers while
2164running configure, to aid debugging if configure makes a mistake.
2165
Craig Silverstein24b4c592011-01-25 00:36:41 +00002166It was created by gflags $as_me 1.5, which was
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002167generated by GNU Autoconf 2.65. Invocation command line was
Craig Silversteinb9f23482007-03-22 00:15:41 +00002168
2169 $ $0 $@
2170
2171_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002172exec 5>>config.log
Craig Silversteinb9f23482007-03-22 00:15:41 +00002173{
2174cat <<_ASUNAME
2175## --------- ##
2176## Platform. ##
2177## --------- ##
2178
2179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002191/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Craig Silversteinb9f23482007-03-22 00:15:41 +00002192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196_ASUNAME
2197
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002203 $as_echo "PATH: $as_dir"
2204 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002205IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002206
2207} >&5
2208
2209cat >&5 <<_ACEOF
2210
2211
2212## ----------- ##
2213## Core tests. ##
2214## ----------- ##
2215
2216_ACEOF
2217
2218
2219# Keep a trace of the command line.
2220# Strip out --no-create and --no-recursion so they do not pile up.
2221# Strip out --silent because we don't want to record it for future runs.
2222# Also quote any args containing shell meta-characters.
2223# Make two passes to allow for proper duplicate-argument suppression.
2224ac_configure_args=
2225ac_configure_args0=
2226ac_configure_args1=
Craig Silversteinb9f23482007-03-22 00:15:41 +00002227ac_must_keep_next=false
2228for ac_pass in 1 2
2229do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002237 *\'*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00002238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00002239 esac
2240 case $ac_pass in
Craig Silversteinab3d7652009-11-10 16:33:51 +00002241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00002242 2)
Craig Silversteinab3d7652009-11-10 16:33:51 +00002243 as_fn_append ac_configure_args1 " '$ac_arg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00002259 as_fn_append ac_configure_args " '$ac_arg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002260 ;;
2261 esac
2262 done
2263done
Craig Silversteinab3d7652009-11-10 16:33:51 +00002264{ ac_configure_args0=; unset ac_configure_args0;}
2265{ ac_configure_args1=; unset ac_configure_args1;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002266
2267# When interrupted or exit'd, cleanup temporary files, and complete
2268# config.log. We remove comments because anyway the quotes in there
2269# would cause problems or look ugly.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002270# WARNING: Use '\'' to represent an apostrophe within the trap.
2271# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Craig Silversteinb9f23482007-03-22 00:15:41 +00002272trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 cat <<\_ASBOX
2278## ---------------- ##
2279## Cache variables. ##
2280## ---------------- ##
2281_ASBOX
2282 echo
2283 # The following way of writing the cache mishandles newlines in values,
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002284(
2285 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in #(
2288 *${as_nl}*)
2289 case $ac_var in #(
Craig Silversteinab3d7652009-11-10 16:33:51 +00002290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002292 esac
2293 case $ac_var in #(
2294 _ | IFS | as_nl) ;; #(
Craig Silversteinab3d7652009-11-10 16:33:51 +00002295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296 *) { eval $ac_var=; unset $ac_var;} ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002297 esac ;;
2298 esac
2299 done
Craig Silversteinb9f23482007-03-22 00:15:41 +00002300 (set) 2>&1 |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002301 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302 *${as_nl}ac_space=\ *)
Craig Silversteinb9f23482007-03-22 00:15:41 +00002303 sed -n \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002304 "s/'\''/'\''\\\\'\'''\''/g;
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 ;; #(
Craig Silversteinb9f23482007-03-22 00:15:41 +00002307 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002309 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002310 esac |
2311 sort
2312)
Craig Silversteinb9f23482007-03-22 00:15:41 +00002313 echo
2314
2315 cat <<\_ASBOX
2316## ----------------- ##
2317## Output variables. ##
2318## ----------------- ##
2319_ASBOX
2320 echo
2321 for ac_var in $ac_subst_vars
2322 do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002323 eval ac_val=\$$ac_var
2324 case $ac_val in
Craig Silversteinab3d7652009-11-10 16:33:51 +00002325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002326 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00002327 $as_echo "$ac_var='\''$ac_val'\''"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002328 done | sort
2329 echo
2330
2331 if test -n "$ac_subst_files"; then
2332 cat <<\_ASBOX
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002333## ------------------- ##
2334## File substitutions. ##
2335## ------------------- ##
Craig Silversteinb9f23482007-03-22 00:15:41 +00002336_ASBOX
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002340 eval ac_val=\$$ac_var
2341 case $ac_val in
Craig Silversteinab3d7652009-11-10 16:33:51 +00002342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002343 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00002344 $as_echo "$ac_var='\''$ac_val'\''"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
2350 cat <<\_ASBOX
2351## ----------- ##
2352## confdefs.h. ##
2353## ----------- ##
2354_ASBOX
2355 echo
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002356 cat confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +00002357 echo
2358 fi
2359 test "$ac_signal" != 0 &&
Craig Silversteinab3d7652009-11-10 16:33:51 +00002360 $as_echo "$as_me: caught signal $ac_signal"
2361 $as_echo "$as_me: exit $exit_status"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002362 } >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002363 rm -f core *.core core.conftest.* &&
2364 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Craig Silversteinb9f23482007-03-22 00:15:41 +00002365 exit $exit_status
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002366' 0
Craig Silversteinb9f23482007-03-22 00:15:41 +00002367for ac_signal in 1 2 13 15; do
Craig Silversteinab3d7652009-11-10 16:33:51 +00002368 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Craig Silversteinb9f23482007-03-22 00:15:41 +00002369done
2370ac_signal=0
2371
2372# confdefs.h avoids OS command line length limits that DEFS can exceed.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002373rm -f -r conftest* confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +00002374
Craig Silversteinab3d7652009-11-10 16:33:51 +00002375$as_echo "/* confdefs.h */" > confdefs.h
2376
Craig Silversteinb9f23482007-03-22 00:15:41 +00002377# Predefined preprocessor variables.
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_NAME "$PACKAGE_NAME"
2381_ACEOF
2382
Craig Silversteinb9f23482007-03-22 00:15:41 +00002383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2385_ACEOF
2386
Craig Silversteinb9f23482007-03-22 00:15:41 +00002387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_VERSION "$PACKAGE_VERSION"
2389_ACEOF
2390
Craig Silversteinb9f23482007-03-22 00:15:41 +00002391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_STRING "$PACKAGE_STRING"
2393_ACEOF
2394
Craig Silversteinb9f23482007-03-22 00:15:41 +00002395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397_ACEOF
2398
Craig Silversteinab3d7652009-11-10 16:33:51 +00002399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_URL "$PACKAGE_URL"
2401_ACEOF
2402
Craig Silversteinb9f23482007-03-22 00:15:41 +00002403
2404# Let the site file select an alternate cache file if it wants to.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002405# Prefer an explicitly selected file to automatically selected ones.
2406ac_site_file1=NONE
2407ac_site_file2=NONE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002408if test -n "$CONFIG_SITE"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002409 ac_site_file1=$CONFIG_SITE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002410elif test "x$prefix" != xNONE; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002411 ac_site_file1=$prefix/share/config.site
2412 ac_site_file2=$prefix/etc/config.site
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002413else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002414 ac_site_file1=$ac_default_prefix/share/config.site
2415 ac_site_file2=$ac_default_prefix/etc/config.site
Craig Silversteinb9f23482007-03-22 00:15:41 +00002416fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00002417for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002418do
Craig Silversteinab3d7652009-11-10 16:33:51 +00002419 test "x$ac_site_file" = xNONE && continue
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002420 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002421 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2422$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002423 sed 's/^/| /' "$ac_site_file" >&5
2424 . "$ac_site_file"
2425 fi
2426done
2427
2428if test -r "$cache_file"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002429 # Some versions of bash will fail to source /dev/null (special files
2430 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2431 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2433$as_echo "$as_me: loading cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002434 case $cache_file in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002435 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2436 *) . "./$cache_file";;
Craig Silversteinb9f23482007-03-22 00:15:41 +00002437 esac
2438 fi
2439else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2441$as_echo "$as_me: creating cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002442 >$cache_file
2443fi
2444
2445# Check that the precious variables saved in the cache have kept the same
2446# value.
2447ac_cache_corrupted=false
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002448for ac_var in $ac_precious_vars; do
Craig Silversteinb9f23482007-03-22 00:15:41 +00002449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2450 eval ac_new_set=\$ac_env_${ac_var}_set
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002451 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2452 eval ac_new_val=\$ac_env_${ac_var}_value
Craig Silversteinb9f23482007-03-22 00:15:41 +00002453 case $ac_old_set,$ac_new_set in
2454 set,)
Craig Silversteinab3d7652009-11-10 16:33:51 +00002455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2456$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002457 ac_cache_corrupted=: ;;
2458 ,set)
Craig Silversteinab3d7652009-11-10 16:33:51 +00002459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2460$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002461 ac_cache_corrupted=: ;;
2462 ,);;
2463 *)
2464 if test "x$ac_old_val" != "x$ac_new_val"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002465 # differences in whitespace do not lead to failure.
2466 ac_old_val_w=`echo x $ac_old_val`
2467 ac_new_val_w=`echo x $ac_new_val`
2468 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2470$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2471 ac_cache_corrupted=:
2472 else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2474$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2475 eval $ac_var=\$ac_old_val
2476 fi
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2478$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2480$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002481 fi;;
2482 esac
2483 # Pass precious variables to config.status.
2484 if test "$ac_new_set" = set; then
2485 case $ac_new_val in
Craig Silversteinab3d7652009-11-10 16:33:51 +00002486 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00002487 *) ac_arg=$ac_var=$ac_new_val ;;
2488 esac
2489 case " $ac_configure_args " in
2490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002491 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00002492 esac
2493 fi
2494done
2495if $ac_cache_corrupted; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002501fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00002502## -------------------- ##
2503## Main body of script. ##
2504## -------------------- ##
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002505
Craig Silversteinb9f23482007-03-22 00:15:41 +00002506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
2512
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002513# Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
2514# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
Craig Silverstein24b4c592011-01-25 00:36:41 +00002515SO_VERSION=1:0:1
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002516
Craig Silversteinb9f23482007-03-22 00:15:41 +00002517# The argument here is just something that should be in the current directory
2518# (for sanity checking)
2519
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002520
Craig Silversteinb9f23482007-03-22 00:15:41 +00002521am__api_version="1.9"
2522ac_aux_dir=
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002523for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Craig Silversteinab3d7652009-11-10 16:33:51 +00002524 for ac_t in install-sh install.sh shtool; do
2525 if test -f "$ac_dir/$ac_t"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/$ac_t -c"
2528 break 2
2529 fi
2530 done
Craig Silversteinb9f23482007-03-22 00:15:41 +00002531done
2532if test -z "$ac_aux_dir"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002533 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002534fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002535
2536# These three variables are undocumented and unsupported,
2537# and are intended to be withdrawn in a future Autoconf release.
2538# They can cause serious problems if a builder's source tree is in a directory
2539# whose full name contains unusual characters.
2540ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2541ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2542ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2543
Craig Silversteinb9f23482007-03-22 00:15:41 +00002544
2545# Find a good install program. We prefer a C program (faster),
2546# so one script is as good as another. But avoid the broken or
2547# incompatible versions:
2548# SysV /etc/install, /usr/sbin/install
2549# SunOS /usr/etc/install
2550# IRIX /sbin/install
2551# AIX /bin/install
2552# AmigaOS /C/install, which installs bootblocks on floppy discs
2553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2556# OS/2's system install, which has a completely different semantic
2557# ./install, which can be erroneously created by make from ./install.sh.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002558# Reject install programs that cannot install multiple files.
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2560$as_echo_n "checking for a BSD-compatible install... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002561if test -z "$INSTALL"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002562if test "${ac_cv_path_install+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002564else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002570 # Account for people who put trailing slashes in PATH elements.
2571case $as_dir/ in #((
2572 ./ | .// | /[cC]/* | \
Craig Silversteinb9f23482007-03-22 00:15:41 +00002573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Craig Silversteinab3d7652009-11-10 16:33:51 +00002574 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Craig Silversteinb9f23482007-03-22 00:15:41 +00002575 /usr/ucb/* ) ;;
2576 *)
2577 # OSF1 and SCO ODT 3.0 have their own names for install.
2578 # Don't use installbsd from OSF since it installs stuff as root
2579 # by default.
2580 for ac_prog in ginstall scoinst install; do
2581 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002582 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002583 if test $ac_prog = install &&
2584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2585 # AIX install. It has an incompatible calling convention.
2586 :
2587 elif test $ac_prog = install &&
2588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2589 # program-specific install script used by HP pwplus--don't use.
2590 :
2591 else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002592 rm -rf conftest.one conftest.two conftest.dir
2593 echo one > conftest.one
2594 echo two > conftest.two
2595 mkdir conftest.dir
2596 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2597 test -s conftest.one && test -s conftest.two &&
2598 test -s conftest.dir/conftest.one &&
2599 test -s conftest.dir/conftest.two
2600 then
2601 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2602 break 3
2603 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00002604 fi
2605 fi
2606 done
2607 done
2608 ;;
2609esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00002610
2611 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002612IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002613
Craig Silversteinab3d7652009-11-10 16:33:51 +00002614rm -rf conftest.one conftest.two conftest.dir
Craig Silversteinb9f23482007-03-22 00:15:41 +00002615
2616fi
2617 if test "${ac_cv_path_install+set}" = set; then
2618 INSTALL=$ac_cv_path_install
2619 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002620 # As a last resort, use the slow shell script. Don't cache a
2621 # value for INSTALL within a source directory, because that will
Craig Silversteinb9f23482007-03-22 00:15:41 +00002622 # break other packages using the cache if that directory is
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002623 # removed, or if the value is a relative name.
Craig Silversteinb9f23482007-03-22 00:15:41 +00002624 INSTALL=$ac_install_sh
2625 fi
2626fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00002627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2628$as_echo "$INSTALL" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002629
2630# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2631# It thinks the first close brace ends the variable substitution.
2632test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2633
2634test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2635
2636test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2637
Craig Silversteinab3d7652009-11-10 16:33:51 +00002638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2639$as_echo_n "checking whether build environment is sane... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002640# Just in case
2641sleep 1
2642echo timestamp > conftest.file
2643# Do `set' in a subshell so we don't clobber the current shell's
2644# arguments. Must try -L first in case configure is actually a
2645# symlink; some systems play weird games with the mod time of symlinks
2646# (eg FreeBSD returns the mod time of the symlink's containing
2647# directory).
2648if (
2649 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2650 if test "$*" = "X"; then
2651 # -L didn't work.
2652 set X `ls -t $srcdir/configure conftest.file`
2653 fi
2654 rm -f conftest.file
2655 if test "$*" != "X $srcdir/configure conftest.file" \
2656 && test "$*" != "X conftest.file $srcdir/configure"; then
2657
2658 # If neither matched, then we have a broken ls. This can happen
2659 # if, for instance, CONFIG_SHELL is bash and it inherits a
2660 # broken ls alias from the environment. This has actually
2661 # happened. Such a system could not be considered "sane".
Craig Silversteinab3d7652009-11-10 16:33:51 +00002662 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2663alias in your environment" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002664 fi
2665
2666 test "$2" = conftest.file
2667 )
2668then
2669 # Ok.
2670 :
2671else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002672 as_fn_error "newly created file is older than distributed files!
2673Check your system clock" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002674fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00002675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676$as_echo "yes" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002677test "$program_prefix" != NONE &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002678 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002679# Use a double $ so make ignores it.
2680test "$program_suffix" != NONE &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002681 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Craig Silversteinab3d7652009-11-10 16:33:51 +00002682# Double any \ or $.
Craig Silversteinb9f23482007-03-22 00:15:41 +00002683# By default was `s,x,x', remove it if useless.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002684ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2685program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00002686
2687# expand $ac_aux_dir to an absolute path
2688am_aux_dir=`cd $ac_aux_dir && pwd`
2689
2690test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2691# Use eval to expand $SHELL
2692if eval "$MISSING --run true"; then
2693 am_missing_run="$MISSING --run "
2694else
2695 am_missing_run=
Craig Silversteinab3d7652009-11-10 16:33:51 +00002696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2697$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002698fi
2699
2700if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2701 # We used to keeping the `.' as first argument, in order to
2702 # allow $(mkdir_p) to be used without argument. As in
2703 # $(mkdir_p) $(somedir)
2704 # where $(somedir) is conditionally defined. However this is wrong
2705 # for two reasons:
2706 # 1. if the package is installed by a user who cannot write `.'
2707 # make install will fail,
2708 # 2. the above comment should most certainly read
2709 # $(mkdir_p) $(DESTDIR)$(somedir)
2710 # so it does not work when $(somedir) is undefined and
2711 # $(DESTDIR) is not.
2712 # To support the latter case, we have to write
2713 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2714 # so the `.' trick is pointless.
2715 mkdir_p='mkdir -p --'
2716else
2717 # On NextStep and OpenStep, the `mkdir' command does not
2718 # recognize any option. It will interpret all options as
2719 # directories to create, and then abort because `.' already
2720 # exists.
2721 for d in ./-p ./--version;
2722 do
2723 test -d $d && rmdir $d
2724 done
2725 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2726 if test -f "$ac_aux_dir/mkinstalldirs"; then
2727 mkdir_p='$(mkinstalldirs)'
2728 else
2729 mkdir_p='$(install_sh) -d'
2730 fi
2731fi
2732
2733for ac_prog in gawk mawk nawk awk
2734do
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736set dummy $ac_prog; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00002737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if test "${ac_cv_prog_AWK+set}" = set; then :
2740 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002741else
2742 if test -n "$AWK"; then
2743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002750 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002752 ac_cv_prog_AWK="$ac_prog"
Craig Silversteinab3d7652009-11-10 16:33:51 +00002753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002754 break 2
2755 fi
2756done
Craig Silversteinab3d7652009-11-10 16:33:51 +00002757 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002758IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002759
2760fi
2761fi
2762AWK=$ac_cv_prog_AWK
2763if test -n "$AWK"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2765$as_echo "$AWK" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002766else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002769fi
2770
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002771
Craig Silversteinb9f23482007-03-22 00:15:41 +00002772 test -n "$AWK" && break
2773done
2774
Craig Silversteinab3d7652009-11-10 16:33:51 +00002775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2776$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2777set x ${MAKE-make}
2778ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2779if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2780 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002781else
2782 cat >conftest.make <<\_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002783SHELL = /bin/sh
Craig Silversteinb9f23482007-03-22 00:15:41 +00002784all:
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002785 @echo '@@@%%%=$(MAKE)=@@@%%%'
Craig Silversteinb9f23482007-03-22 00:15:41 +00002786_ACEOF
2787# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002788case `${MAKE-make} -f conftest.make 2>/dev/null` in
2789 *@@@%%%=?*=@@@%%%*)
2790 eval ac_cv_prog_make_${ac_make}_set=yes;;
2791 *)
2792 eval ac_cv_prog_make_${ac_make}_set=no;;
2793esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00002794rm -f conftest.make
2795fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002796if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2798$as_echo "yes" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002799 SET_MAKE=
2800else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002803 SET_MAKE="MAKE=${MAKE-make}"
2804fi
2805
2806rm -rf .tst 2>/dev/null
2807mkdir .tst 2>/dev/null
2808if test -d .tst; then
2809 am__leading_dot=.
2810else
2811 am__leading_dot=_
2812fi
2813rmdir .tst 2>/dev/null
2814
2815# test to see if srcdir already configured
2816if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817 test -f $srcdir/config.status; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002818 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002819fi
2820
2821# test whether we have cygpath
2822if test -z "$CYGPATH_W"; then
2823 if (cygpath --version) >/dev/null 2>/dev/null; then
2824 CYGPATH_W='cygpath -w'
2825 else
2826 CYGPATH_W=echo
2827 fi
2828fi
2829
2830
2831# Define the identity of the package.
2832 PACKAGE='gflags'
Craig Silverstein24b4c592011-01-25 00:36:41 +00002833 VERSION='1.5'
Craig Silversteinb9f23482007-03-22 00:15:41 +00002834
2835
2836cat >>confdefs.h <<_ACEOF
2837#define PACKAGE "$PACKAGE"
2838_ACEOF
2839
2840
2841cat >>confdefs.h <<_ACEOF
2842#define VERSION "$VERSION"
2843_ACEOF
2844
2845# Some tools Automake needs.
2846
2847ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2848
2849
2850AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2851
2852
2853AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2854
2855
2856AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2857
2858
2859MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2860
2861install_sh=${install_sh-"$am_aux_dir/install-sh"}
2862
2863# Installed binaries are usually stripped using `strip' when the user
2864# run `make install-strip'. However `strip' might not be the right
2865# tool to use in cross-compilation environments, therefore Automake
2866# will honor the `STRIP' environment variable to overrule this program.
2867if test "$cross_compiling" != no; then
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}strip; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00002871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if test "${ac_cv_prog_STRIP+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002875else
2876 if test -n "$STRIP"; then
2877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002884 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Craig Silversteinab3d7652009-11-10 16:33:51 +00002887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002888 break 2
2889 fi
2890done
Craig Silversteinab3d7652009-11-10 16:33:51 +00002891 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002892IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002893
2894fi
2895fi
2896STRIP=$ac_cv_prog_STRIP
2897if test -n "$STRIP"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2899$as_echo "$STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002900else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002903fi
2904
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002905
Craig Silversteinb9f23482007-03-22 00:15:41 +00002906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00002911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002915else
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002924 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002926 ac_cv_prog_ac_ct_STRIP="strip"
Craig Silversteinab3d7652009-11-10 16:33:51 +00002927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002928 break 2
2929 fi
2930done
Craig Silversteinab3d7652009-11-10 16:33:51 +00002931 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002932IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002933
Craig Silversteinb9f23482007-03-22 00:15:41 +00002934fi
2935fi
2936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937if test -n "$ac_ct_STRIP"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2939$as_echo "$ac_ct_STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002940else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002943fi
2944
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002945 if test "x$ac_ct_STRIP" = x; then
2946 STRIP=":"
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00002950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002952ac_tool_warned=yes ;;
2953esac
2954 STRIP=$ac_ct_STRIP
2955 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00002956else
2957 STRIP="$ac_cv_prog_STRIP"
2958fi
2959
2960fi
2961INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2962
2963# We need awk for the "check" target. The system "awk" is bad on
2964# some platforms.
2965# Always define AMTAR for backward compatibility.
2966
2967AMTAR=${AMTAR-"${am_missing_run}tar"}
2968
2969am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2970
2971
2972
2973
2974
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002975ac_config_headers="$ac_config_headers src/config.h"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002976
2977
2978# Checks for programs.
2979ac_ext=c
2980ac_cpp='$CPP $CPPFLAGS'
2981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986set dummy ${ac_tool_prefix}gcc; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00002987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988$as_echo_n "checking for $ac_word... " >&6; }
2989if test "${ac_cv_prog_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002991else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994else
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003000 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003004 break 2
3005 fi
3006done
Craig Silversteinab3d7652009-11-10 16:33:51 +00003007 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003008IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003009
3010fi
3011fi
3012CC=$ac_cv_prog_CC
3013if test -n "$CC"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003016else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003019fi
3020
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003021
Craig Silversteinb9f23482007-03-22 00:15:41 +00003022fi
3023if test -z "$ac_cv_prog_CC"; then
3024 ac_ct_CC=$CC
3025 # Extract the first word of "gcc", so it can be a program name with args.
3026set dummy gcc; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00003027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028$as_echo_n "checking for $ac_word... " >&6; }
3029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003031else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003040 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003042 ac_cv_prog_ac_ct_CC="gcc"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003044 break 2
3045 fi
3046done
Craig Silversteinab3d7652009-11-10 16:33:51 +00003047 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003048IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003049
3050fi
3051fi
3052ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053if test -n "$ac_ct_CC"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055$as_echo "$ac_ct_CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003056else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003059fi
3060
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00003066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003068ac_tool_warned=yes ;;
3069esac
3070 CC=$ac_ct_CC
3071 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003072else
3073 CC="$ac_cv_prog_CC"
3074fi
3075
3076if test -z "$CC"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Craig Silversteinb9f23482007-03-22 00:15:41 +00003079set dummy ${ac_tool_prefix}cc; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00003080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if test "${ac_cv_prog_CC+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003084else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003093 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003095 ac_cv_prog_CC="${ac_tool_prefix}cc"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003097 break 2
3098 fi
3099done
Craig Silversteinab3d7652009-11-10 16:33:51 +00003100 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003101IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003102
3103fi
3104fi
3105CC=$ac_cv_prog_CC
3106if test -n "$CC"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003109else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003112fi
3113
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003114
Craig Silversteinb9f23482007-03-22 00:15:41 +00003115 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003116fi
3117if test -z "$CC"; then
3118 # Extract the first word of "cc", so it can be a program name with args.
3119set dummy cc; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00003120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if test "${ac_cv_prog_CC+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003124else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127else
3128 ac_prog_rejected=no
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003134 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003136 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3137 ac_prog_rejected=yes
3138 continue
3139 fi
3140 ac_cv_prog_CC="cc"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003142 break 2
3143 fi
3144done
Craig Silversteinab3d7652009-11-10 16:33:51 +00003145 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003146IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003147
3148if test $ac_prog_rejected = yes; then
3149 # We found a bogon in the path, so make sure we never use it.
3150 set dummy $ac_cv_prog_CC
3151 shift
3152 if test $# != 0; then
3153 # We chose a different compiler from the bogus one.
3154 # However, it has the same basename, so the bogon will be chosen
3155 # first if we set CC to just the basename; use the full file name.
3156 shift
3157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3158 fi
3159fi
3160fi
3161fi
3162CC=$ac_cv_prog_CC
3163if test -n "$CC"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003166else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003169fi
3170
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003171
Craig Silversteinb9f23482007-03-22 00:15:41 +00003172fi
3173if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003175 for ac_prog in cl.exe
Craig Silversteinb9f23482007-03-22 00:15:41 +00003176 do
3177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00003179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if test "${ac_cv_prog_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003183else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003192 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003196 break 2
3197 fi
3198done
Craig Silversteinab3d7652009-11-10 16:33:51 +00003199 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003200IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003201
3202fi
3203fi
3204CC=$ac_cv_prog_CC
3205if test -n "$CC"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003208else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003211fi
3212
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003213
Craig Silversteinb9f23482007-03-22 00:15:41 +00003214 test -n "$CC" && break
3215 done
3216fi
3217if test -z "$CC"; then
3218 ac_ct_CC=$CC
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003219 for ac_prog in cl.exe
Craig Silversteinb9f23482007-03-22 00:15:41 +00003220do
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222set dummy $ac_prog; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00003223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224$as_echo_n "checking for $ac_word... " >&6; }
3225if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003227else
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003236 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003238 ac_cv_prog_ac_ct_CC="$ac_prog"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003240 break 2
3241 fi
3242done
Craig Silversteinab3d7652009-11-10 16:33:51 +00003243 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003244IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003245
3246fi
3247fi
3248ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249if test -n "$ac_ct_CC"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251$as_echo "$ac_ct_CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003252else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003255fi
3256
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003257
Craig Silversteinb9f23482007-03-22 00:15:41 +00003258 test -n "$ac_ct_CC" && break
3259done
3260
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003261 if test "x$ac_ct_CC" = x; then
3262 CC=""
3263 else
3264 case $cross_compiling:$ac_tool_warned in
3265yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00003266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003268ac_tool_warned=yes ;;
3269esac
3270 CC=$ac_ct_CC
3271 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003272fi
3273
3274fi
3275
3276
Craig Silversteinab3d7652009-11-10 16:33:51 +00003277test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279as_fn_error "no acceptable C compiler found in \$PATH
3280See \`config.log' for more details." "$LINENO" 5; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003281
3282# Provide some information about the compiler.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003283$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3284set X $ac_compile
3285ac_compiler=$2
3286for ac_option in --version -v -V -qversion; do
3287 { { ac_try="$ac_compiler $ac_option >&5"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00003292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293$as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Craig Silversteinb9f23482007-03-22 00:15:41 +00003295 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +00003296 if test -s conftest.err; then
3297 sed '10a\
3298... rest of stderr output deleted ...
3299 10q' conftest.err >conftest.er1
3300 cat conftest.er1 >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003301 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003302 rm -f conftest.er1 conftest.err
Craig Silversteinab3d7652009-11-10 16:33:51 +00003303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }
3305done
Craig Silversteinb9f23482007-03-22 00:15:41 +00003306
Craig Silversteinab3d7652009-11-10 16:33:51 +00003307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003308/* end confdefs.h. */
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003309
Craig Silversteinb9f23482007-03-22 00:15:41 +00003310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318ac_clean_files_save=$ac_clean_files
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003319ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Craig Silversteinb9f23482007-03-22 00:15:41 +00003320# Try to create an executable without -o first, disregard a.out.
3321# It will help us diagnose broken compilers, and finding out an intuition
3322# of exeext.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3324$as_echo_n "checking whether the C compiler works... " >&6; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00003325ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3326
3327# The possible output files:
3328ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3329
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003330ac_rmfiles=
3331for ac_file in $ac_files
3332do
3333 case $ac_file in
Craig Silversteinab3d7652009-11-10 16:33:51 +00003334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003335 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3336 esac
3337done
3338rm -f $ac_rmfiles
3339
Craig Silversteinab3d7652009-11-10 16:33:51 +00003340if { { ac_try="$ac_link_default"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003341case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00003345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346$as_echo "$ac_try_echo"; } >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003347 (eval "$ac_link_default") 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003348 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +00003349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003351 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3352# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3353# in a Makefile. We should not override ac_cv_exeext if it was cached,
3354# so that the user can short-circuit this test for compilers unknown to
3355# Autoconf.
3356for ac_file in $ac_files ''
Craig Silversteinb9f23482007-03-22 00:15:41 +00003357do
3358 test -f "$ac_file" || continue
3359 case $ac_file in
Craig Silversteinab3d7652009-11-10 16:33:51 +00003360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Craig Silversteinb9f23482007-03-22 00:15:41 +00003361 ;;
3362 [ab].out )
3363 # We found the default executable, but exeext='' is most
3364 # certainly right.
3365 break;;
3366 *.* )
Craig Silversteinab3d7652009-11-10 16:33:51 +00003367 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003368 then :; else
3369 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370 fi
3371 # We set ac_cv_exeext here because the later test for it is not
3372 # safe: cross compilers may not add the suffix if given an `-o'
3373 # argument, so we may need to know it at that point already.
3374 # Even if this section looks crufty: it has the advantage of
3375 # actually working.
Craig Silversteinb9f23482007-03-22 00:15:41 +00003376 break;;
3377 * )
3378 break;;
3379 esac
3380done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003381test "$ac_cv_exeext" = no && ac_cv_exeext=
3382
Craig Silversteinb9f23482007-03-22 00:15:41 +00003383else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003384 ac_file=''
3385fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00003386if test -z "$ac_file"; then :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389$as_echo "$as_me: failed program was:" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003390sed 's/^/| /' conftest.$ac_ext >&5
3391
Craig Silversteinab3d7652009-11-10 16:33:51 +00003392{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394{ as_fn_set_status 77
3395as_fn_error "C compiler cannot create executables
3396See \`config.log' for more details." "$LINENO" 5; }; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003397else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399$as_echo "yes" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003400fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3402$as_echo_n "checking for C compiler default output file name... " >&6; }
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3404$as_echo "$ac_file" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003405ac_exeext=$ac_cv_exeext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003406
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003407rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Craig Silversteinb9f23482007-03-22 00:15:41 +00003408ac_clean_files=$ac_clean_files_save
Craig Silversteinab3d7652009-11-10 16:33:51 +00003409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3410$as_echo_n "checking for suffix of executables... " >&6; }
3411if { { ac_try="$ac_link"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003412case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00003416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003418 (eval "$ac_link") 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003419 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +00003420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00003422 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3423# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3424# work properly (i.e., refer to `conftest.exe'), while it won't with
3425# `rm'.
3426for ac_file in conftest.exe conftest conftest.*; do
3427 test -f "$ac_file" || continue
3428 case $ac_file in
Craig Silversteinab3d7652009-11-10 16:33:51 +00003429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00003430 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00003431 break;;
3432 * ) break;;
3433 esac
3434done
3435else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438as_fn_error "cannot compute suffix of executables: cannot compile and link
3439See \`config.log' for more details." "$LINENO" 5; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003440fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003441rm -f conftest conftest$ac_cv_exeext
Craig Silversteinab3d7652009-11-10 16:33:51 +00003442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3443$as_echo "$ac_cv_exeext" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003444
3445rm -f conftest.$ac_ext
3446EXEEXT=$ac_cv_exeext
3447ac_exeext=$EXEEXT
Craig Silverstein84b18ac2010-11-16 23:21:00 +00003448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h. */
3450#include <stdio.h>
3451int
3452main ()
3453{
3454FILE *f = fopen ("conftest.out", "w");
3455 return ferror (f) || fclose (f) != 0;
3456
3457 ;
3458 return 0;
3459}
3460_ACEOF
3461ac_clean_files="$ac_clean_files conftest.out"
3462# Check that the compiler produces executables we can run. If not, either
3463# the compiler is broken, or we cross compile.
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3465$as_echo_n "checking whether we are cross compiling... " >&6; }
3466if test "$cross_compiling" != yes; then
3467 { { ac_try="$ac_link"
3468case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link") 2>&5
3475 ac_status=$?
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }
3478 if { ac_try='./conftest$ac_cv_exeext'
3479 { { case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_try") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; }; then
3489 cross_compiling=no
3490 else
3491 if test "$cross_compiling" = maybe; then
3492 cross_compiling=yes
3493 else
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496as_fn_error "cannot run C compiled programs.
3497If you meant to cross compile, use \`--host'.
3498See \`config.log' for more details." "$LINENO" 5; }
3499 fi
3500 fi
3501fi
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3503$as_echo "$cross_compiling" >&6; }
3504
3505rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3506ac_clean_files=$ac_clean_files_save
Craig Silversteinab3d7652009-11-10 16:33:51 +00003507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3508$as_echo_n "checking for suffix of object files... " >&6; }
3509if test "${ac_cv_objext+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003511else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003513/* end confdefs.h. */
3514
3515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.o conftest.obj
Craig Silversteinab3d7652009-11-10 16:33:51 +00003524if { { ac_try="$ac_compile"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00003529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003531 (eval "$ac_compile") 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003532 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +00003533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003535 for ac_file in conftest.o conftest.obj conftest.*; do
3536 test -f "$ac_file" || continue;
Craig Silversteinb9f23482007-03-22 00:15:41 +00003537 case $ac_file in
Craig Silversteinab3d7652009-11-10 16:33:51 +00003538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00003539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3540 break;;
3541 esac
3542done
3543else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003544 $as_echo "$as_me: failed program was:" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003545sed 's/^/| /' conftest.$ac_ext >&5
3546
Craig Silversteinab3d7652009-11-10 16:33:51 +00003547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549as_fn_error "cannot compute suffix of object files: cannot compile
3550See \`config.log' for more details." "$LINENO" 5; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003551fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003552rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00003554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3555$as_echo "$ac_cv_objext" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003556OBJEXT=$ac_cv_objext
3557ac_objext=$OBJEXT
Craig Silversteinab3d7652009-11-10 16:33:51 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3559$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3560if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003562else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003564/* end confdefs.h. */
3565
3566int
3567main ()
3568{
3569#ifndef __GNUC__
3570 choke me
3571#endif
3572
3573 ;
3574 return 0;
3575}
3576_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00003577if ac_fn_c_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00003578 ac_compiler_gnu=yes
3579else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003580 ac_compiler_gnu=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00003581fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003583ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584
3585fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00003586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3587$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3588if test $ac_compiler_gnu = yes; then
3589 GCC=yes
3590else
3591 GCC=
3592fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003593ac_test_CFLAGS=${CFLAGS+set}
3594ac_save_CFLAGS=$CFLAGS
Craig Silversteinab3d7652009-11-10 16:33:51 +00003595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3596$as_echo_n "checking whether $CC accepts -g... " >&6; }
3597if test "${ac_cv_prog_cc_g+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003599else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003600 ac_save_c_werror_flag=$ac_c_werror_flag
3601 ac_c_werror_flag=yes
3602 ac_cv_prog_cc_g=no
3603 CFLAGS="-g"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003605/* end confdefs.h. */
3606
3607int
3608main ()
3609{
3610
3611 ;
3612 return 0;
3613}
3614_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00003615if ac_fn_c_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00003616 ac_cv_prog_cc_g=yes
3617else
Craig Silversteinab3d7652009-11-10 16:33:51 +00003618 CFLAGS=""
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003620/* end confdefs.h. */
3621
3622int
3623main ()
3624{
3625
3626 ;
3627 return 0;
3628}
3629_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00003630if ac_fn_c_try_compile "$LINENO"; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003631
Craig Silversteinab3d7652009-11-10 16:33:51 +00003632else
3633 ac_c_werror_flag=$ac_save_c_werror_flag
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003634 CFLAGS="-g"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003636/* end confdefs.h. */
3637
3638int
3639main ()
3640{
3641
3642 ;
3643 return 0;
3644}
3645_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00003646if ac_fn_c_try_compile "$LINENO"; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003647 ac_cv_prog_cc_g=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00003648fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003650fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_c_werror_flag=$ac_save_c_werror_flag
3655fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00003656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3657$as_echo "$ac_cv_prog_cc_g" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003658if test "$ac_test_CFLAGS" = set; then
3659 CFLAGS=$ac_save_CFLAGS
3660elif test $ac_cv_prog_cc_g = yes; then
3661 if test "$GCC" = yes; then
3662 CFLAGS="-g -O2"
3663 else
3664 CFLAGS="-g"
3665 fi
3666else
3667 if test "$GCC" = yes; then
3668 CFLAGS="-O2"
3669 else
3670 CFLAGS=
3671 fi
3672fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00003673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3674$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675if test "${ac_cv_prog_cc_c89+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003677else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003678 ac_cv_prog_cc_c89=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00003679ac_save_CC=$CC
Craig Silversteinab3d7652009-11-10 16:33:51 +00003680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003681/* end confdefs.h. */
3682#include <stdarg.h>
3683#include <stdio.h>
3684#include <sys/types.h>
3685#include <sys/stat.h>
3686/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3687struct buf { int x; };
3688FILE * (*rcsopen) (struct buf *, struct stat *, int);
3689static char *e (p, i)
3690 char **p;
3691 int i;
3692{
3693 return p[i];
3694}
3695static char *f (char * (*g) (char **, int), char **p, ...)
3696{
3697 char *s;
3698 va_list v;
3699 va_start (v,p);
3700 s = g (p, va_arg (v,int));
3701 va_end (v);
3702 return s;
3703}
3704
3705/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3706 function prototypes and stuff, but not '\xHH' hex character constants.
3707 These don't provoke an error unfortunately, instead are silently treated
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003708 as 'x'. The following induces an error, until -std is added to get
Craig Silversteinb9f23482007-03-22 00:15:41 +00003709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3710 array size at least. It's necessary to write '\x00'==0 to get something
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003711 that's true only with -std. */
Craig Silversteinb9f23482007-03-22 00:15:41 +00003712int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3713
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003714/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3715 inside strings and character constants. */
3716#define FOO(x) 'x'
3717int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3718
Craig Silversteinb9f23482007-03-22 00:15:41 +00003719int test (int i, double x);
3720struct s1 {int (*f) (int a);};
3721struct s2 {int (*f) (double a);};
3722int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3723int argc;
3724char **argv;
3725int
3726main ()
3727{
3728return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3729 ;
3730 return 0;
3731}
3732_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003733for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Craig Silversteinb9f23482007-03-22 00:15:41 +00003735do
3736 CC="$ac_save_CC $ac_arg"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003737 if ac_fn_c_try_compile "$LINENO"; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003738 ac_cv_prog_cc_c89=$ac_arg
Craig Silversteinb9f23482007-03-22 00:15:41 +00003739fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003740rm -f core conftest.err conftest.$ac_objext
3741 test "x$ac_cv_prog_cc_c89" != "xno" && break
Craig Silversteinb9f23482007-03-22 00:15:41 +00003742done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003743rm -f conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003744CC=$ac_save_CC
3745
3746fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003747# AC_CACHE_VAL
3748case "x$ac_cv_prog_cc_c89" in
3749 x)
Craig Silversteinab3d7652009-11-10 16:33:51 +00003750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3751$as_echo "none needed" >&6; } ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003752 xno)
Craig Silversteinab3d7652009-11-10 16:33:51 +00003753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754$as_echo "unsupported" >&6; } ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00003755 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003756 CC="$CC $ac_cv_prog_cc_c89"
Craig Silversteinab3d7652009-11-10 16:33:51 +00003757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3758$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00003759esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00003760if test "x$ac_cv_prog_cc_c89" != xno; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00003761
Craig Silversteinab3d7652009-11-10 16:33:51 +00003762fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003763
Craig Silversteinb9f23482007-03-22 00:15:41 +00003764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769DEPDIR="${am__leading_dot}deps"
3770
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003771ac_config_commands="$ac_config_commands depfiles"
Craig Silversteinb9f23482007-03-22 00:15:41 +00003772
3773
3774am_make=${MAKE-make}
3775cat > confinc << 'END'
3776am__doit:
3777 @echo done
3778.PHONY: am__doit
3779END
3780# If we don't find an include directive, just comment out the code.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3782$as_echo_n "checking for style of include used by $am_make... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003783am__include="#"
3784am__quote=
3785_am_result=none
3786# First try GNU make style include.
3787echo "include confinc" > confmf
3788# We grep out `Entering directory' and `Leaving directory'
3789# messages which can occur if `w' ends up in MAKEFLAGS.
3790# In particular we don't look at `^make:' because GNU make might
3791# be invoked under some other name (usually "gmake"), in which
3792# case it prints its new name instead of `make'.
3793if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3794 am__include=include
3795 am__quote=
3796 _am_result=GNU
3797fi
3798# Now try BSD make style include.
3799if test "$am__include" = "#"; then
3800 echo '.include "confinc"' > confmf
3801 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3802 am__include=.include
3803 am__quote="\""
3804 _am_result=BSD
3805 fi
3806fi
3807
3808
Craig Silversteinab3d7652009-11-10 16:33:51 +00003809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3810$as_echo "$_am_result" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003811rm -f confinc confmf
3812
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003813# Check whether --enable-dependency-tracking was given.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003814if test "${enable_dependency_tracking+set}" = set; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003815 enableval=$enable_dependency_tracking;
3816fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003817
Craig Silversteinb9f23482007-03-22 00:15:41 +00003818if test "x$enable_dependency_tracking" != xno; then
3819 am_depcomp="$ac_aux_dir/depcomp"
3820 AMDEPBACKSLASH='\'
3821fi
3822
3823
3824if test "x$enable_dependency_tracking" != xno; then
3825 AMDEP_TRUE=
3826 AMDEP_FALSE='#'
3827else
3828 AMDEP_TRUE='#'
3829 AMDEP_FALSE=
3830fi
3831
3832
3833
3834
3835depcc="$CC" am_compiler_list=
3836
Craig Silversteinab3d7652009-11-10 16:33:51 +00003837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3838$as_echo_n "checking dependency style of $depcc... " >&6; }
3839if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003841else
3842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3843 # We make a subdir and do the tests there. Otherwise we can end up
3844 # making bogus files that we don't know about and never remove. For
3845 # instance it was reported that on HP-UX the gcc test will end up
3846 # making a dummy file named `D' -- because `-MD' means `put the output
3847 # in D'.
3848 mkdir conftest.dir
3849 # Copy depcomp to subdir because otherwise we won't find it if we're
3850 # using a relative directory.
3851 cp "$am_depcomp" conftest.dir
3852 cd conftest.dir
3853 # We will build objects and dependencies in a subdirectory because
3854 # it helps to detect inapplicable dependency modes. For instance
3855 # both Tru64's cc and ICC support -MD to output dependencies as a
3856 # side effect of compilation, but ICC will put the dependencies in
3857 # the current directory while Tru64 will put them in the object
3858 # directory.
3859 mkdir sub
3860
3861 am_cv_CC_dependencies_compiler_type=none
3862 if test "$am_compiler_list" = ""; then
3863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3864 fi
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3869 #
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3873 : > sub/conftest.c
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3877 # Solaris 8's {/usr,}/bin/sh.
3878 touch sub/conftst$i.h
3879 done
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
3882 case $depmode in
3883 nosideeffect)
3884 # after this tag, mechanisms are not by side-effect, so they'll
3885 # only be used when explicitly requested
3886 if test "x$enable_dependency_tracking" = xyes; then
3887 continue
3888 else
3889 break
3890 fi
3891 ;;
3892 none) break ;;
3893 esac
3894 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3895 # mode. It turns out that the SunPro C++ compiler does not properly
3896 # handle `-M -o', and we need to detect this.
3897 if depmode=$depmode \
3898 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3900 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3901 >/dev/null 2>conftest.err &&
3902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905 # icc doesn't choke on unknown options, it will just issue warnings
3906 # or remarks (even with -Werror). So we grep stderr for any message
3907 # that says an option was ignored or not supported.
3908 # When given -MP, icc 7.0 and 7.1 complain thusly:
3909 # icc: Command line warning: ignoring option '-M'; no argument required
3910 # The diagnosis changed in icc 8.0:
3911 # icc: Command line remark: option '-MP' not supported
3912 if (grep 'ignoring option' conftest.err ||
3913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914 am_cv_CC_dependencies_compiler_type=$depmode
3915 break
3916 fi
3917 fi
3918 done
3919
3920 cd ..
3921 rm -rf conftest.dir
3922else
3923 am_cv_CC_dependencies_compiler_type=none
3924fi
3925
3926fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00003927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3928$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003929CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3930
3931
3932
3933if
3934 test "x$enable_dependency_tracking" != xno \
3935 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3936 am__fastdepCC_TRUE=
3937 am__fastdepCC_FALSE='#'
3938else
3939 am__fastdepCC_TRUE='#'
3940 am__fastdepCC_FALSE=
3941fi
3942
3943
3944ac_ext=c
3945ac_cpp='$CPP $CPPFLAGS'
3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948ac_compiler_gnu=$ac_cv_c_compiler_gnu
Craig Silversteinab3d7652009-11-10 16:33:51 +00003949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3950$as_echo_n "checking how to run the C preprocessor... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003951# On Suns, sometimes $CPP names a directory.
3952if test -n "$CPP" && test -d "$CPP"; then
3953 CPP=
3954fi
3955if test -z "$CPP"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003956 if test "${ac_cv_prog_CPP+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003958else
3959 # Double quotes because CPP needs to be expanded
3960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3961 do
3962 ac_preproc_ok=false
3963for ac_c_preproc_warn_flag in '' yes
3964do
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003972/* end confdefs.h. */
3973#ifdef __STDC__
3974# include <limits.h>
3975#else
3976# include <assert.h>
3977#endif
3978 Syntax error
3979_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00003980if ac_fn_c_try_cpp "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00003981
Craig Silversteinab3d7652009-11-10 16:33:51 +00003982else
Craig Silversteinb9f23482007-03-22 00:15:41 +00003983 # Broken: fails on valid input.
3984continue
3985fi
3986rm -f conftest.err conftest.$ac_ext
3987
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003988 # OK, works on sane cases. Now check whether nonexistent headers
Craig Silversteinb9f23482007-03-22 00:15:41 +00003989 # can be detected and how.
Craig Silversteinab3d7652009-11-10 16:33:51 +00003990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003991/* end confdefs.h. */
3992#include <ac_nonexistent.h>
3993_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00003994if ac_fn_c_try_cpp "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00003995 # Broken: success on invalid input.
3996continue
3997else
Craig Silversteinb9f23482007-03-22 00:15:41 +00003998 # Passes both tests.
3999ac_preproc_ok=:
4000break
4001fi
4002rm -f conftest.err conftest.$ac_ext
4003
4004done
4005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006rm -f conftest.err conftest.$ac_ext
Craig Silversteinab3d7652009-11-10 16:33:51 +00004007if $ac_preproc_ok; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00004008 break
4009fi
4010
4011 done
4012 ac_cv_prog_CPP=$CPP
4013
4014fi
4015 CPP=$ac_cv_prog_CPP
4016else
4017 ac_cv_prog_CPP=$CPP
4018fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4020$as_echo "$CPP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004021ac_preproc_ok=false
4022for ac_c_preproc_warn_flag in '' yes
4023do
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00004031/* end confdefs.h. */
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037 Syntax error
4038_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00004039if ac_fn_c_try_cpp "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00004040
Craig Silversteinab3d7652009-11-10 16:33:51 +00004041else
Craig Silversteinb9f23482007-03-22 00:15:41 +00004042 # Broken: fails on valid input.
4043continue
4044fi
4045rm -f conftest.err conftest.$ac_ext
4046
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004047 # OK, works on sane cases. Now check whether nonexistent headers
Craig Silversteinb9f23482007-03-22 00:15:41 +00004048 # can be detected and how.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00004050/* end confdefs.h. */
4051#include <ac_nonexistent.h>
4052_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00004053if ac_fn_c_try_cpp "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00004054 # Broken: success on invalid input.
4055continue
4056else
Craig Silversteinb9f23482007-03-22 00:15:41 +00004057 # Passes both tests.
4058ac_preproc_ok=:
4059break
4060fi
4061rm -f conftest.err conftest.$ac_ext
4062
4063done
4064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065rm -f conftest.err conftest.$ac_ext
Craig Silversteinab3d7652009-11-10 16:33:51 +00004066if $ac_preproc_ok; then :
4067
Craig Silversteinb9f23482007-03-22 00:15:41 +00004068else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071as_fn_error "C preprocessor \"$CPP\" fails sanity check
4072See \`config.log' for more details." "$LINENO" 5; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004073fi
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004081ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +00004082ac_cpp='$CXXCPP $CPPFLAGS'
4083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004086if test -z "$CXX"; then
4087 if test -n "$CCC"; then
4088 CXX=$CCC
4089 else
4090 if test -n "$ac_tool_prefix"; then
4091 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Craig Silversteinb9f23482007-03-22 00:15:41 +00004092 do
4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00004095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096$as_echo_n "checking for $ac_word... " >&6; }
4097if test "${ac_cv_prog_CXX+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004099else
4100 if test -n "$CXX"; then
4101 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4102else
4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004108 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00004110 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00004112 break 2
4113 fi
4114done
Craig Silversteinab3d7652009-11-10 16:33:51 +00004115 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004116IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00004117
4118fi
4119fi
4120CXX=$ac_cv_prog_CXX
4121if test -n "$CXX"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4123$as_echo "$CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004124else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004127fi
4128
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004129
Craig Silversteinb9f23482007-03-22 00:15:41 +00004130 test -n "$CXX" && break
4131 done
4132fi
4133if test -z "$CXX"; then
4134 ac_ct_CXX=$CXX
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Craig Silversteinb9f23482007-03-22 00:15:41 +00004136do
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138set dummy $ac_prog; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00004139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
4141if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004143else
4144 if test -n "$ac_ct_CXX"; then
4145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004152 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00004154 ac_cv_prog_ac_ct_CXX="$ac_prog"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00004156 break 2
4157 fi
4158done
Craig Silversteinab3d7652009-11-10 16:33:51 +00004159 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004160IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00004161
4162fi
4163fi
4164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4165if test -n "$ac_ct_CXX"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4167$as_echo "$ac_ct_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004168else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004171fi
4172
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004173
Craig Silversteinb9f23482007-03-22 00:15:41 +00004174 test -n "$ac_ct_CXX" && break
4175done
Craig Silversteinb9f23482007-03-22 00:15:41 +00004176
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004177 if test "x$ac_ct_CXX" = x; then
4178 CXX="g++"
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00004182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004184ac_tool_warned=yes ;;
4185esac
4186 CXX=$ac_ct_CXX
4187 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004188fi
4189
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004190 fi
4191fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004192# Provide some information about the compiler.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004193$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4194set X $ac_compile
4195ac_compiler=$2
4196for ac_option in --version -v -V -qversion; do
4197 { { ac_try="$ac_compiler $ac_option >&5"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004198case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00004202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203$as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Craig Silversteinb9f23482007-03-22 00:15:41 +00004205 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +00004206 if test -s conftest.err; then
4207 sed '10a\
4208... rest of stderr output deleted ...
4209 10q' conftest.err >conftest.er1
4210 cat conftest.er1 >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004211 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004212 rm -f conftest.er1 conftest.err
Craig Silversteinab3d7652009-11-10 16:33:51 +00004213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }
4215done
Craig Silversteinb9f23482007-03-22 00:15:41 +00004216
Craig Silversteinab3d7652009-11-10 16:33:51 +00004217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4218$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4219if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004221else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00004223/* end confdefs.h. */
4224
4225int
4226main ()
4227{
4228#ifndef __GNUC__
4229 choke me
4230#endif
4231
4232 ;
4233 return 0;
4234}
4235_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00004236if ac_fn_cxx_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00004237 ac_compiler_gnu=yes
4238else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004239 ac_compiler_gnu=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00004240fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00004242ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4243
4244fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4246$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4247if test $ac_compiler_gnu = yes; then
4248 GXX=yes
4249else
4250 GXX=
4251fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004252ac_test_CXXFLAGS=${CXXFLAGS+set}
4253ac_save_CXXFLAGS=$CXXFLAGS
Craig Silversteinab3d7652009-11-10 16:33:51 +00004254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4255$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4256if test "${ac_cv_prog_cxx_g+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004258else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004259 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4260 ac_cxx_werror_flag=yes
4261 ac_cv_prog_cxx_g=no
4262 CXXFLAGS="-g"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00004264/* end confdefs.h. */
4265
4266int
4267main ()
4268{
4269
4270 ;
4271 return 0;
4272}
4273_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00004274if ac_fn_cxx_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00004275 ac_cv_prog_cxx_g=yes
4276else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004277 CXXFLAGS=""
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004279/* end confdefs.h. */
4280
4281int
4282main ()
4283{
4284
4285 ;
4286 return 0;
4287}
4288_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00004289if ac_fn_cxx_try_compile "$LINENO"; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004290
Craig Silversteinab3d7652009-11-10 16:33:51 +00004291else
4292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004293 CXXFLAGS="-g"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004295/* end confdefs.h. */
4296
4297int
4298main ()
4299{
4300
4301 ;
4302 return 0;
4303}
4304_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00004305if ac_fn_cxx_try_compile "$LINENO"; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004306 ac_cv_prog_cxx_g=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00004307fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00004309fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4314fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4316$as_echo "$ac_cv_prog_cxx_g" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004317if test "$ac_test_CXXFLAGS" = set; then
4318 CXXFLAGS=$ac_save_CXXFLAGS
4319elif test $ac_cv_prog_cxx_g = yes; then
4320 if test "$GXX" = yes; then
4321 CXXFLAGS="-g -O2"
4322 else
4323 CXXFLAGS="-g"
4324 fi
4325else
4326 if test "$GXX" = yes; then
4327 CXXFLAGS="-O2"
4328 else
4329 CXXFLAGS=
4330 fi
4331fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338depcc="$CXX" am_compiler_list=
4339
Craig Silversteinab3d7652009-11-10 16:33:51 +00004340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4341$as_echo_n "checking dependency style of $depcc... " >&6; }
4342if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004344else
4345 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4346 # We make a subdir and do the tests there. Otherwise we can end up
4347 # making bogus files that we don't know about and never remove. For
4348 # instance it was reported that on HP-UX the gcc test will end up
4349 # making a dummy file named `D' -- because `-MD' means `put the output
4350 # in D'.
4351 mkdir conftest.dir
4352 # Copy depcomp to subdir because otherwise we won't find it if we're
4353 # using a relative directory.
4354 cp "$am_depcomp" conftest.dir
4355 cd conftest.dir
4356 # We will build objects and dependencies in a subdirectory because
4357 # it helps to detect inapplicable dependency modes. For instance
4358 # both Tru64's cc and ICC support -MD to output dependencies as a
4359 # side effect of compilation, but ICC will put the dependencies in
4360 # the current directory while Tru64 will put them in the object
4361 # directory.
4362 mkdir sub
4363
4364 am_cv_CXX_dependencies_compiler_type=none
4365 if test "$am_compiler_list" = ""; then
4366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4367 fi
4368 for depmode in $am_compiler_list; do
4369 # Setup a source with many dependencies, because some compilers
4370 # like to wrap large dependency lists on column 80 (with \), and
4371 # we should not choose a depcomp mode which is confused by this.
4372 #
4373 # We need to recreate these files for each test, as the compiler may
4374 # overwrite some of them when testing with obscure command lines.
4375 # This happens at least with the AIX C compiler.
4376 : > sub/conftest.c
4377 for i in 1 2 3 4 5 6; do
4378 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4379 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4380 # Solaris 8's {/usr,}/bin/sh.
4381 touch sub/conftst$i.h
4382 done
4383 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4384
4385 case $depmode in
4386 nosideeffect)
4387 # after this tag, mechanisms are not by side-effect, so they'll
4388 # only be used when explicitly requested
4389 if test "x$enable_dependency_tracking" = xyes; then
4390 continue
4391 else
4392 break
4393 fi
4394 ;;
4395 none) break ;;
4396 esac
4397 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4398 # mode. It turns out that the SunPro C++ compiler does not properly
4399 # handle `-M -o', and we need to detect this.
4400 if depmode=$depmode \
4401 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4402 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4403 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4404 >/dev/null 2>conftest.err &&
4405 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4406 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4407 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4408 # icc doesn't choke on unknown options, it will just issue warnings
4409 # or remarks (even with -Werror). So we grep stderr for any message
4410 # that says an option was ignored or not supported.
4411 # When given -MP, icc 7.0 and 7.1 complain thusly:
4412 # icc: Command line warning: ignoring option '-M'; no argument required
4413 # The diagnosis changed in icc 8.0:
4414 # icc: Command line remark: option '-MP' not supported
4415 if (grep 'ignoring option' conftest.err ||
4416 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4417 am_cv_CXX_dependencies_compiler_type=$depmode
4418 break
4419 fi
4420 fi
4421 done
4422
4423 cd ..
4424 rm -rf conftest.dir
4425else
4426 am_cv_CXX_dependencies_compiler_type=none
4427fi
4428
4429fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4431$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004432CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4433
4434
4435
4436if
4437 test "x$enable_dependency_tracking" != xno \
4438 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4439 am__fastdepCXX_TRUE=
4440 am__fastdepCXX_FALSE='#'
4441else
4442 am__fastdepCXX_TRUE='#'
4443 am__fastdepCXX_FALSE=
4444fi
4445
4446
4447
Craig Silversteinc79c32d2008-07-22 23:29:39 +00004448
4449if test "$GCC" = yes; then
4450 GCC_TRUE=
4451 GCC_FALSE='#'
4452else
4453 GCC_TRUE='#'
4454 GCC_FALSE=
4455fi
4456 # let the Makefile know if we're gcc
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004457# Make sure we can run config.sub.
4458$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Craig Silversteinab3d7652009-11-10 16:33:51 +00004459 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Craig Silversteinc79c32d2008-07-22 23:29:39 +00004460
Craig Silversteinab3d7652009-11-10 16:33:51 +00004461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4462$as_echo_n "checking build system type... " >&6; }
4463if test "${ac_cv_build+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004465else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004466 ac_build_alias=$build_alias
4467test "x$ac_build_alias" = x &&
4468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4469test "x$ac_build_alias" = x &&
Craig Silversteinab3d7652009-11-10 16:33:51 +00004470 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004471ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Craig Silversteinab3d7652009-11-10 16:33:51 +00004472 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +00004473
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004474fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4476$as_echo "$ac_cv_build" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004477case $ac_cv_build in
4478*-*-*) ;;
Craig Silversteinab3d7652009-11-10 16:33:51 +00004479*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004480esac
4481build=$ac_cv_build
4482ac_save_IFS=$IFS; IFS='-'
4483set x $ac_cv_build
4484shift
4485build_cpu=$1
4486build_vendor=$2
4487shift; shift
4488# Remember, the first character of IFS is used to create $*,
4489# except with old shells:
4490build_os=$*
4491IFS=$ac_save_IFS
4492case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4493
4494
Craig Silversteinab3d7652009-11-10 16:33:51 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4496$as_echo_n "checking host system type... " >&6; }
4497if test "${ac_cv_host+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004499else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004500 if test "x$host_alias" = x; then
4501 ac_cv_host=$ac_cv_build
4502else
4503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Craig Silversteinab3d7652009-11-10 16:33:51 +00004504 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004505fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004506
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004507fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4509$as_echo "$ac_cv_host" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004510case $ac_cv_host in
4511*-*-*) ;;
Craig Silversteinab3d7652009-11-10 16:33:51 +00004512*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004513esac
4514host=$ac_cv_host
4515ac_save_IFS=$IFS; IFS='-'
4516set x $ac_cv_host
4517shift
4518host_cpu=$1
4519host_vendor=$2
4520shift; shift
4521# Remember, the first character of IFS is used to create $*,
4522# except with old shells:
4523host_os=$*
4524IFS=$ac_save_IFS
4525case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4526
4527
4528
4529# Populate $host_cpu, $host_os, etc.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004530
4531case $host_os in
4532 *mingw*)
4533 # Disabling fast install keeps libtool from creating wrapper scripts
4534 # around the executables it builds. Such scripts have caused failures on
4535 # MinGW. Using this option means an extra link step is executed during
4536 # "make install".
4537 # Check whether --enable-fast-install was given.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004538if test "${enable_fast_install+set}" = set; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004539 enableval=$enable_fast_install; p=${PACKAGE-default}
4540 case $enableval in
4541 yes) enable_fast_install=yes ;;
4542 no) enable_fast_install=no ;;
4543 *)
4544 enable_fast_install=no
4545 # Look at the argument we got. We use all the common list separators.
4546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4547 for pkg in $enableval; do
4548 IFS="$lt_save_ifs"
4549 if test "X$pkg" = "X$p"; then
4550 enable_fast_install=yes
4551 fi
4552 done
4553 IFS="$lt_save_ifs"
4554 ;;
4555 esac
4556else
4557 enable_fast_install=no
4558fi
4559
4560
4561
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004562
4563
4564
4565
4566
4567
Craig Silverstein688ea022009-09-11 00:15:50 +00004568 # /tmp is a mount-point in mingw, and hard to use. use cwd instead
Craig Silversteinab3d7652009-11-10 16:33:51 +00004569 TEST_TMPDIR=gflags_testdir
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004570 ;;
4571 *)
4572 # Check whether --enable-fast-install was given.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004573if test "${enable_fast_install+set}" = set; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004574 enableval=$enable_fast_install; p=${PACKAGE-default}
Craig Silversteinb9f23482007-03-22 00:15:41 +00004575 case $enableval in
4576 yes) enable_fast_install=yes ;;
4577 no) enable_fast_install=no ;;
4578 *)
4579 enable_fast_install=no
4580 # Look at the argument we got. We use all the common list separators.
4581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4582 for pkg in $enableval; do
4583 IFS="$lt_save_ifs"
4584 if test "X$pkg" = "X$p"; then
4585 enable_fast_install=yes
4586 fi
4587 done
4588 IFS="$lt_save_ifs"
4589 ;;
4590 esac
4591else
4592 enable_fast_install=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00004593fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004594
4595
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004596
4597
4598
4599
Craig Silversteinab3d7652009-11-10 16:33:51 +00004600 TEST_TMPDIR=/tmp/gflags
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004601 ;;
4602esac
4603
Craig Silverstein688ea022009-09-11 00:15:50 +00004604
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004605# Uncomment this if you'll be exporting libraries (.so's)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004606case `pwd` in
4607 *\ * | *\ *)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4609$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4610esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00004611
4612
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004613
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004614macro_version='2.2.6b'
4615macro_revision='1.3017'
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629ltmain="$ac_aux_dir/ltmain.sh"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004630
Craig Silversteinab3d7652009-11-10 16:33:51 +00004631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4632$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004633if test "${ac_cv_path_SED+set}" = set; then :
Craig Silversteinab3d7652009-11-10 16:33:51 +00004634 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004635else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004636 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4637 for ac_i in 1 2 3 4 5 6 7; do
4638 ac_script="$ac_script$as_nl$ac_script"
4639 done
4640 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4641 { ac_script=; unset ac_script;}
4642 if test -z "$SED"; then
4643 ac_path_SED_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silversteinb9f23482007-03-22 00:15:41 +00004646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004650 for ac_prog in sed gsed; do
Craig Silversteinb9f23482007-03-22 00:15:41 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004652 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4654# Check for GNU ac_path_SED and select it if it is found.
4655 # Check for GNU $ac_path_SED
4656case `"$ac_path_SED" --version 2>&1` in
4657*GNU*)
4658 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4659*)
4660 ac_count=0
4661 $as_echo_n 0123456789 >"conftest.in"
4662 while :
4663 do
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo '' >> "conftest.nl"
4668 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_SED_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_SED="$ac_path_SED"
4674 ac_path_SED_max=$ac_count
4675 fi
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4678 done
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680esac
4681
4682 $ac_path_SED_found && break 3
Craig Silversteinb9f23482007-03-22 00:15:41 +00004683 done
4684 done
Craig Silversteinb9f23482007-03-22 00:15:41 +00004685 done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004686IFS=$as_save_IFS
4687 if test -z "$ac_cv_path_SED"; then
4688 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4689 fi
4690else
4691 ac_cv_path_SED=$SED
Craig Silversteinb9f23482007-03-22 00:15:41 +00004692fi
4693
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4696$as_echo "$ac_cv_path_SED" >&6; }
4697 SED="$ac_cv_path_SED"
4698 rm -f conftest.sed
Craig Silversteinb9f23482007-03-22 00:15:41 +00004699
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004700test -z "$SED" && SED=sed
4701Xsed="$SED -e 1s/^X//"
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004712
Craig Silversteinab3d7652009-11-10 16:33:51 +00004713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4714$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4715if test "${ac_cv_path_GREP+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004717else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004718 if test -z "$GREP"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004719 ac_path_GREP_found=false
Craig Silversteinab3d7652009-11-10 16:33:51 +00004720 # Loop through the user's path and test for each of PROGNAME-LIST
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4723do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004726 for ac_prog in grep ggrep; do
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4729 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4730# Check for GNU ac_path_GREP and select it if it is found.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004731 # Check for GNU $ac_path_GREP
4732case `"$ac_path_GREP" --version 2>&1` in
4733*GNU*)
4734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4735*)
4736 ac_count=0
Craig Silversteinab3d7652009-11-10 16:33:51 +00004737 $as_echo_n 0123456789 >"conftest.in"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004738 while :
4739 do
4740 cat "conftest.in" "conftest.in" >"conftest.tmp"
4741 mv "conftest.tmp" "conftest.in"
4742 cp "conftest.in" "conftest.nl"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004743 $as_echo 'GREP' >> "conftest.nl"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Craig Silversteinab3d7652009-11-10 16:33:51 +00004746 as_fn_arith $ac_count + 1 && ac_count=$as_val
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4748 # Best one so far, save it but keep looking for a better one
4749 ac_cv_path_GREP="$ac_path_GREP"
4750 ac_path_GREP_max=$ac_count
Craig Silversteinb9f23482007-03-22 00:15:41 +00004751 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004752 # 10*(2^10) chars as input seems more than enough
4753 test $ac_count -gt 10 && break
4754 done
4755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4756esac
4757
Craig Silversteinab3d7652009-11-10 16:33:51 +00004758 $ac_path_GREP_found && break 3
4759 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004760 done
Craig Silversteinab3d7652009-11-10 16:33:51 +00004761 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004762IFS=$as_save_IFS
Craig Silversteinab3d7652009-11-10 16:33:51 +00004763 if test -z "$ac_cv_path_GREP"; then
4764 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4765 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004766else
4767 ac_cv_path_GREP=$GREP
4768fi
4769
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004770fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4772$as_echo "$ac_cv_path_GREP" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004773 GREP="$ac_cv_path_GREP"
4774
4775
Craig Silversteinab3d7652009-11-10 16:33:51 +00004776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4777$as_echo_n "checking for egrep... " >&6; }
4778if test "${ac_cv_path_EGREP+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004780else
4781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4782 then ac_cv_path_EGREP="$GREP -E"
4783 else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004784 if test -z "$EGREP"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004785 ac_path_EGREP_found=false
Craig Silversteinab3d7652009-11-10 16:33:51 +00004786 # Loop through the user's path and test for each of PROGNAME-LIST
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004792 for ac_prog in egrep; do
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4795 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4796# Check for GNU ac_path_EGREP and select it if it is found.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004797 # Check for GNU $ac_path_EGREP
4798case `"$ac_path_EGREP" --version 2>&1` in
4799*GNU*)
4800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4801*)
4802 ac_count=0
Craig Silversteinab3d7652009-11-10 16:33:51 +00004803 $as_echo_n 0123456789 >"conftest.in"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004804 while :
4805 do
4806 cat "conftest.in" "conftest.in" >"conftest.tmp"
4807 mv "conftest.tmp" "conftest.in"
4808 cp "conftest.in" "conftest.nl"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004809 $as_echo 'EGREP' >> "conftest.nl"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Craig Silversteinab3d7652009-11-10 16:33:51 +00004812 as_fn_arith $ac_count + 1 && ac_count=$as_val
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4814 # Best one so far, save it but keep looking for a better one
4815 ac_cv_path_EGREP="$ac_path_EGREP"
4816 ac_path_EGREP_max=$ac_count
4817 fi
4818 # 10*(2^10) chars as input seems more than enough
4819 test $ac_count -gt 10 && break
4820 done
4821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822esac
4823
Craig Silversteinab3d7652009-11-10 16:33:51 +00004824 $ac_path_EGREP_found && break 3
4825 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004826 done
Craig Silversteinab3d7652009-11-10 16:33:51 +00004827 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004828IFS=$as_save_IFS
Craig Silversteinab3d7652009-11-10 16:33:51 +00004829 if test -z "$ac_cv_path_EGREP"; then
4830 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004832else
4833 ac_cv_path_EGREP=$EGREP
4834fi
4835
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004836 fi
4837fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4839$as_echo "$ac_cv_path_EGREP" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004840 EGREP="$ac_cv_path_EGREP"
Craig Silversteinb9f23482007-03-22 00:15:41 +00004841
4842
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4844$as_echo_n "checking for fgrep... " >&6; }
4845if test "${ac_cv_path_FGREP+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847else
4848 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4849 then ac_cv_path_FGREP="$GREP -F"
4850 else
4851 if test -z "$FGREP"; then
4852 ac_path_FGREP_found=false
4853 # Loop through the user's path and test for each of PROGNAME-LIST
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4856do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_prog in fgrep; do
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4862 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4863# Check for GNU ac_path_FGREP and select it if it is found.
4864 # Check for GNU $ac_path_FGREP
4865case `"$ac_path_FGREP" --version 2>&1` in
4866*GNU*)
4867 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4868*)
4869 ac_count=0
4870 $as_echo_n 0123456789 >"conftest.in"
4871 while :
4872 do
4873 cat "conftest.in" "conftest.in" >"conftest.tmp"
4874 mv "conftest.tmp" "conftest.in"
4875 cp "conftest.in" "conftest.nl"
4876 $as_echo 'FGREP' >> "conftest.nl"
4877 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4879 as_fn_arith $ac_count + 1 && ac_count=$as_val
4880 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4881 # Best one so far, save it but keep looking for a better one
4882 ac_cv_path_FGREP="$ac_path_FGREP"
4883 ac_path_FGREP_max=$ac_count
4884 fi
4885 # 10*(2^10) chars as input seems more than enough
4886 test $ac_count -gt 10 && break
4887 done
4888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4889esac
4890
4891 $ac_path_FGREP_found && break 3
4892 done
4893 done
4894 done
4895IFS=$as_save_IFS
4896 if test -z "$ac_cv_path_FGREP"; then
4897 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4898 fi
4899else
4900 ac_cv_path_FGREP=$FGREP
4901fi
4902
4903 fi
4904fi
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4906$as_echo "$ac_cv_path_FGREP" >&6; }
4907 FGREP="$ac_cv_path_FGREP"
4908
4909
4910test -z "$GREP" && GREP=grep
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
Craig Silversteinb9f23482007-03-22 00:15:41 +00004929
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004930# Check whether --with-gnu-ld was given.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004931if test "${with_gnu_ld+set}" = set; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00004933else
4934 with_gnu_ld=no
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004935fi
4936
Craig Silversteinb9f23482007-03-22 00:15:41 +00004937ac_prog=ld
4938if test "$GCC" = yes; then
4939 # Check if gcc -print-prog-name=ld gives a path.
Craig Silversteinab3d7652009-11-10 16:33:51 +00004940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4941$as_echo_n "checking for ld used by $CC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004942 case $host in
4943 *-*-mingw*)
4944 # gcc leaves a trailing carriage return which upsets mingw
4945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4946 *)
4947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4948 esac
4949 case $ac_prog in
4950 # Accept absolute paths.
4951 [\\/]* | ?:[\\/]*)
4952 re_direlt='/[^/][^/]*/\.\./'
Craig Silverstein690172b2007-04-20 21:16:33 +00004953 # Canonicalize the pathname of ld
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00004957 done
4958 test -z "$LD" && LD="$ac_prog"
4959 ;;
4960 "")
4961 # If it fails, then pretend we aren't using GCC.
4962 ac_prog=ld
4963 ;;
4964 *)
4965 # If it is relative, then search for the first ld in PATH.
4966 with_gnu_ld=unknown
4967 ;;
4968 esac
4969elif test "$with_gnu_ld" = yes; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4971$as_echo_n "checking for GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004972else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4974$as_echo_n "checking for non-GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004975fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00004976if test "${lt_cv_path_LD+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004978else
4979 if test -z "$LD"; then
4980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4981 for ac_dir in $PATH; do
4982 IFS="$lt_save_ifs"
4983 test -z "$ac_dir" && ac_dir=.
4984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4985 lt_cv_path_LD="$ac_dir/$ac_prog"
4986 # Check to see if the program is GNU ld. I'd rather use --version,
Craig Silverstein690172b2007-04-20 21:16:33 +00004987 # but apparently some variants of GNU ld only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +00004988 # Break only if it was the GNU/non-GNU ld that we prefer.
4989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4990 *GNU* | *'with BFD'*)
4991 test "$with_gnu_ld" != no && break
4992 ;;
4993 *)
4994 test "$with_gnu_ld" != yes && break
4995 ;;
4996 esac
4997 fi
4998 done
4999 IFS="$lt_save_ifs"
5000else
5001 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5002fi
5003fi
5004
5005LD="$lt_cv_path_LD"
5006if test -n "$LD"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5008$as_echo "$LD" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005009else
Craig Silversteinab3d7652009-11-10 16:33:51 +00005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005012fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00005013test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5015$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5016if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005018else
Craig Silverstein690172b2007-04-20 21:16:33 +00005019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +00005020case `$LD -v 2>&1 </dev/null` in
5021*GNU* | *'with BFD'*)
5022 lt_cv_prog_gnu_ld=yes
5023 ;;
5024*)
5025 lt_cv_prog_gnu_ld=no
5026 ;;
5027esac
5028fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00005029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5030$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005031with_gnu_ld=$lt_cv_prog_gnu_ld
5032
5033
Craig Silversteinb9f23482007-03-22 00:15:41 +00005034
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005035
5036
5037
5038
5039
5040
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5042$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00005043if test "${lt_cv_path_NM+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005045else
5046 if test -n "$NM"; then
5047 # Let the user override the test.
5048 lt_cv_path_NM="$NM"
5049else
Craig Silverstein690172b2007-04-20 21:16:33 +00005050 lt_nm_to_check="${ac_tool_prefix}nm"
5051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5052 lt_nm_to_check="$lt_nm_to_check nm"
5053 fi
5054 for lt_tmp_nm in $lt_nm_to_check; do
5055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5057 IFS="$lt_save_ifs"
5058 test -z "$ac_dir" && ac_dir=.
5059 tmp_nm="$ac_dir/$lt_tmp_nm"
5060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5061 # Check to see if the nm accepts a BSD-compat flag.
5062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5063 # nm: unknown option "B" ignored
5064 # Tru64's nm complains that /dev/null is an invalid object file
5065 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5066 */dev/null* | *'Invalid file or object type'*)
5067 lt_cv_path_NM="$tmp_nm -B"
Craig Silversteinb9f23482007-03-22 00:15:41 +00005068 break
5069 ;;
5070 *)
Craig Silverstein690172b2007-04-20 21:16:33 +00005071 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5072 */dev/null*)
5073 lt_cv_path_NM="$tmp_nm -p"
5074 break
5075 ;;
5076 *)
5077 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5078 continue # so that we can try to find one that supports BSD flags
5079 ;;
5080 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00005081 ;;
5082 esac
Craig Silverstein690172b2007-04-20 21:16:33 +00005083 fi
5084 done
5085 IFS="$lt_save_ifs"
Craig Silversteinb9f23482007-03-22 00:15:41 +00005086 done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005087 : ${lt_cv_path_NM=no}
Craig Silversteinb9f23482007-03-22 00:15:41 +00005088fi
5089fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00005090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5091$as_echo "$lt_cv_path_NM" >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005092if test "$lt_cv_path_NM" != "no"; then
5093 NM="$lt_cv_path_NM"
5094else
5095 # Didn't find any BSD compatible name lister, look for dumpbin.
5096 if test -n "$ac_tool_prefix"; then
5097 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5098 do
5099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102$as_echo_n "checking for $ac_word... " >&6; }
5103if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105else
5106 if test -n "$DUMPBIN"; then
5107 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120done
5121 done
5122IFS=$as_save_IFS
5123
5124fi
5125fi
5126DUMPBIN=$ac_cv_prog_DUMPBIN
5127if test -n "$DUMPBIN"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5129$as_echo "$DUMPBIN" >&6; }
5130else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }
5133fi
5134
5135
5136 test -n "$DUMPBIN" && break
5137 done
5138fi
5139if test -z "$DUMPBIN"; then
5140 ac_ct_DUMPBIN=$DUMPBIN
5141 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5142do
5143 # Extract the first word of "$ac_prog", so it can be a program name with args.
5144set dummy $ac_prog; ac_word=$2
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146$as_echo_n "checking for $ac_word... " >&6; }
5147if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149else
5150 if test -n "$ac_ct_DUMPBIN"; then
5151 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164done
5165 done
5166IFS=$as_save_IFS
5167
5168fi
5169fi
5170ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5171if test -n "$ac_ct_DUMPBIN"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5173$as_echo "$ac_ct_DUMPBIN" >&6; }
5174else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176$as_echo "no" >&6; }
5177fi
5178
5179
5180 test -n "$ac_ct_DUMPBIN" && break
5181done
5182
5183 if test "x$ac_ct_DUMPBIN" = x; then
5184 DUMPBIN=":"
5185 else
5186 case $cross_compiling:$ac_tool_warned in
5187yes:)
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190ac_tool_warned=yes ;;
5191esac
5192 DUMPBIN=$ac_ct_DUMPBIN
5193 fi
5194fi
5195
5196
5197 if test "$DUMPBIN" != ":"; then
5198 NM="$DUMPBIN"
5199 fi
5200fi
5201test -z "$NM" && NM=nm
5202
5203
5204
5205
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5209$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5210if test "${lt_cv_nm_interface+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 lt_cv_nm_interface="BSD nm"
5214 echo "int some_variable = 0;" > conftest.$ac_ext
5215 (eval echo "\"\$as_me:5215: $ac_compile\"" >&5)
5216 (eval "$ac_compile" 2>conftest.err)
5217 cat conftest.err >&5
5218 (eval echo "\"\$as_me:5218: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5219 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5220 cat conftest.err >&5
5221 (eval echo "\"\$as_me:5221: output\"" >&5)
5222 cat conftest.out >&5
5223 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5224 lt_cv_nm_interface="MS dumpbin"
5225 fi
5226 rm -f conftest*
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5229$as_echo "$lt_cv_nm_interface" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005230
Craig Silversteinab3d7652009-11-10 16:33:51 +00005231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5232$as_echo_n "checking whether ln -s works... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005233LN_S=$as_ln_s
5234if test "$LN_S" = "ln -s"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236$as_echo "yes" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005237else
Craig Silversteinab3d7652009-11-10 16:33:51 +00005238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5239$as_echo "no, using $LN_S" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005240fi
5241
Craig Silversteinb9f23482007-03-22 00:15:41 +00005242# find the maximum length of command line arguments
Craig Silversteinab3d7652009-11-10 16:33:51 +00005243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5244$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5245if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005247else
5248 i=0
Craig Silverstein690172b2007-04-20 21:16:33 +00005249 teststring="ABCD"
Craig Silversteinb9f23482007-03-22 00:15:41 +00005250
5251 case $build_os in
5252 msdosdjgpp*)
5253 # On DJGPP, this test can blow up pretty badly due to problems in libc
5254 # (any single argument exceeding 2000 bytes causes a buffer overrun
5255 # during glob expansion). Even if it were fixed, the result of this
5256 # check would be larger than it should be.
5257 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5258 ;;
5259
5260 gnu*)
5261 # Under GNU Hurd, this test is not required because there is
5262 # no limit to the length of command line arguments.
5263 # Libtool will interpret -1 as no limit whatsoever
5264 lt_cv_sys_max_cmd_len=-1;
5265 ;;
5266
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005267 cygwin* | mingw* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00005268 # On Win9x/ME, this test blows up -- it succeeds, but takes
5269 # about 5 minutes as the teststring grows exponentially.
5270 # Worse, since 9x/ME are not pre-emptively multitasking,
5271 # you end up with a "frozen" computer, even though with patience
5272 # the test eventually succeeds (with a max line length of 256k).
5273 # Instead, let's just punt: use the minimum linelength reported by
5274 # all of the supported platforms: 8192 (on NT/2K/XP).
5275 lt_cv_sys_max_cmd_len=8192;
5276 ;;
5277
Craig Silverstein690172b2007-04-20 21:16:33 +00005278 amigaos*)
5279 # On AmigaOS with pdksh, this test takes hours, literally.
5280 # So we just punt and use a minimum line length of 8192.
5281 lt_cv_sys_max_cmd_len=8192;
5282 ;;
5283
5284 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5285 # This has been around since 386BSD, at least. Likely further.
5286 if test -x /sbin/sysctl; then
5287 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5288 elif test -x /usr/sbin/sysctl; then
5289 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5290 else
5291 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5292 fi
5293 # And add a safety zone
5294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5296 ;;
5297
5298 interix*)
5299 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5300 lt_cv_sys_max_cmd_len=196608
5301 ;;
5302
5303 osf*)
5304 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5305 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5306 # nice to cause kernel panics so lets avoid the loop below.
5307 # First set a reasonable default.
5308 lt_cv_sys_max_cmd_len=16384
5309 #
5310 if test -x /sbin/sysconfig; then
5311 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5312 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5313 esac
5314 fi
5315 ;;
5316 sco3.2v5*)
5317 lt_cv_sys_max_cmd_len=102400
5318 ;;
5319 sysv5* | sco5v6* | sysv4.2uw2*)
5320 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5321 if test -n "$kargmax"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005322 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Craig Silverstein690172b2007-04-20 21:16:33 +00005323 else
5324 lt_cv_sys_max_cmd_len=32768
5325 fi
5326 ;;
5327 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005328 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5329 if test -n "$lt_cv_sys_max_cmd_len"; then
5330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5332 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005333 # Make teststring a little bigger before we do anything with it.
5334 # a 1K string should be a reasonable start.
5335 for i in 1 2 3 4 5 6 7 8 ; do
5336 teststring=$teststring$teststring
5337 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005338 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005339 # If test is not a shell built-in, we'll probably end up computing a
5340 # maximum length that is only half of the actual maximum length, but
5341 # we can't tell.
5342 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5343 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005344 test $i != 17 # 1/2 MB should be enough
5345 do
5346 i=`expr $i + 1`
5347 teststring=$teststring$teststring
5348 done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005349 # Only check the string length outside the loop.
5350 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005351 teststring=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005352 # Add a significant safety factor because C++ compilers can tack on
5353 # massive amounts of additional arguments before passing them to the
5354 # linker. It appears as though 1/2 is a usable value.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5356 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005357 ;;
5358 esac
5359
5360fi
5361
5362if test -n $lt_cv_sys_max_cmd_len ; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5364$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005365else
Craig Silversteinab3d7652009-11-10 16:33:51 +00005366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5367$as_echo "none" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005368fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005369max_cmd_len=$lt_cv_sys_max_cmd_len
Craig Silversteinb9f23482007-03-22 00:15:41 +00005370
5371
5372
5373
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005374
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005375
5376: ${CP="cp -f"}
5377: ${MV="mv -f"}
5378: ${RM="rm -f"}
5379
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5381$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5382# Try some XSI features
5383xsi_shell=no
5384( _lt_dummy="a/b/c"
5385 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5386 = c,a/b,, \
5387 && eval 'test $(( 1 + 1 )) -eq 2 \
5388 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5389 && xsi_shell=yes
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5391$as_echo "$xsi_shell" >&6; }
5392
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5395$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5396lt_shell_append=no
5397( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5398 >/dev/null 2>&1 \
5399 && lt_shell_append=yes
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5401$as_echo "$lt_shell_append" >&6; }
5402
5403
5404if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5405 lt_unset=unset
5406else
5407 lt_unset=false
5408fi
5409
5410
5411
5412
5413
5414# test EBCDIC or ASCII
5415case `echo X|tr X '\101'` in
5416 A) # ASCII based system
5417 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5418 lt_SP2NL='tr \040 \012'
5419 lt_NL2SP='tr \015\012 \040\040'
5420 ;;
5421 *) # EBCDIC based system
5422 lt_SP2NL='tr \100 \n'
5423 lt_NL2SP='tr \r\n \100\100'
5424 ;;
5425esac
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5436$as_echo_n "checking for $LD option to reload object files... " >&6; }
5437if test "${lt_cv_ld_reload_flag+set}" = set; then :
Craig Silversteinab3d7652009-11-10 16:33:51 +00005438 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005439else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005440 lt_cv_ld_reload_flag='-r'
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5443$as_echo "$lt_cv_ld_reload_flag" >&6; }
5444reload_flag=$lt_cv_ld_reload_flag
5445case $reload_flag in
5446"" | " "*) ;;
5447*) reload_flag=" $reload_flag" ;;
5448esac
5449reload_cmds='$LD$reload_flag -o $output$reload_objs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005450case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005451 darwin*)
5452 if test "$GCC" = yes; then
5453 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005454 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005456 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005457 ;;
5458esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00005459
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005460
5461
5462
5463
5464
5465
5466
5467
5468if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5470set dummy ${ac_tool_prefix}objdump; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475else
5476 if test -n "$OBJDUMP"; then
5477 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
Craig Silversteinb9f23482007-03-22 00:15:41 +00005489 fi
5490done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005491 done
5492IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005493
5494fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005495fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005496OBJDUMP=$ac_cv_prog_OBJDUMP
5497if test -n "$OBJDUMP"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5499$as_echo "$OBJDUMP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005500else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005503fi
5504
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005505
5506fi
5507if test -z "$ac_cv_prog_OBJDUMP"; then
5508 ac_ct_OBJDUMP=$OBJDUMP
5509 # Extract the first word of "objdump", so it can be a program name with args.
5510set dummy objdump; ac_word=$2
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
5513if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
Craig Silversteinab3d7652009-11-10 16:33:51 +00005514 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005515else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005516 if test -n "$ac_ct_OBJDUMP"; then
5517 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Craig Silversteinb9f23482007-03-22 00:15:41 +00005518else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530done
5531 done
5532IFS=$as_save_IFS
5533
Craig Silversteinb9f23482007-03-22 00:15:41 +00005534fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005535fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005536ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5537if test -n "$ac_ct_OBJDUMP"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5539$as_echo "$ac_ct_OBJDUMP" >&6; }
5540else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544
5545 if test "x$ac_ct_OBJDUMP" = x; then
5546 OBJDUMP="false"
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549yes:)
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552ac_tool_warned=yes ;;
5553esac
5554 OBJDUMP=$ac_ct_OBJDUMP
5555 fi
5556else
5557 OBJDUMP="$ac_cv_prog_OBJDUMP"
5558fi
5559
5560test -z "$OBJDUMP" && OBJDUMP=objdump
Craig Silversteinb9f23482007-03-22 00:15:41 +00005561
5562
5563
5564
5565
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005566
5567
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5571$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5572if test "${lt_cv_deplibs_check_method+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 lt_cv_file_magic_cmd='$MAGIC_CMD'
5576lt_cv_file_magic_test_file=
5577lt_cv_deplibs_check_method='unknown'
5578# Need to set the preceding variable on all platforms that support
5579# interlibrary dependencies.
5580# 'none' -- dependencies not supported.
5581# `unknown' -- same as none, but documents that we really don't know.
5582# 'pass_all' -- all dependencies passed with no checks.
5583# 'test_compile' -- check by making test program.
5584# 'file_magic [[regex]]' -- check by looking for files in library path
5585# which responds to the $file_magic_cmd with a given extended regex.
5586# If you have `file' or equivalent on your system and you're not sure
5587# whether `pass_all' will *always* work, you probably want this one.
5588
Craig Silversteinb9f23482007-03-22 00:15:41 +00005589case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005590aix[4-9]*)
5591 lt_cv_deplibs_check_method=pass_all
5592 ;;
5593
5594beos*)
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597
5598bsdi[45]*)
5599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5600 lt_cv_file_magic_cmd='/usr/bin/file -L'
5601 lt_cv_file_magic_test_file=/shlib/libc.so
5602 ;;
5603
5604cygwin*)
5605 # func_win32_libid is a shell function defined in ltmain.sh
5606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5607 lt_cv_file_magic_cmd='func_win32_libid'
5608 ;;
5609
5610mingw* | pw32*)
5611 # Base MSYS/MinGW do not provide the 'file' command needed by
5612 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5613 # unless we find 'file', for example because we are cross-compiling.
5614 if ( file / ) >/dev/null 2>&1; then
5615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5616 lt_cv_file_magic_cmd='func_win32_libid'
5617 else
5618 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5619 lt_cv_file_magic_cmd='$OBJDUMP -f'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005620 fi
5621 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005622
5623cegcc)
5624 # use the weaker test based on 'objdump'. See mingw*.
5625 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5626 lt_cv_file_magic_cmd='$OBJDUMP -f'
5627 ;;
5628
5629darwin* | rhapsody*)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632
5633freebsd* | dragonfly*)
5634 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5635 case $host_cpu in
5636 i*86 )
5637 # Not sure whether the presence of OpenBSD here was a mistake.
5638 # Let's accept both of them until this is cleared up.
5639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5640 lt_cv_file_magic_cmd=/usr/bin/file
5641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5642 ;;
5643 esac
5644 else
5645 lt_cv_deplibs_check_method=pass_all
5646 fi
5647 ;;
5648
5649gnu*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653hpux10.20* | hpux11*)
5654 lt_cv_file_magic_cmd=/usr/bin/file
5655 case $host_cpu in
5656 ia64*)
5657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5659 ;;
5660 hppa*64*)
5661 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]'
5662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5663 ;;
5664 *)
5665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5667 ;;
5668 esac
5669 ;;
5670
5671interix[3-9]*)
5672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5674 ;;
5675
5676irix5* | irix6* | nonstopux*)
5677 case $LD in
5678 *-32|*"-32 ") libmagic=32-bit;;
5679 *-n32|*"-n32 ") libmagic=N32;;
5680 *-64|*"-64 ") libmagic=64-bit;;
5681 *) libmagic=never-match;;
5682 esac
5683 lt_cv_deplibs_check_method=pass_all
5684 ;;
5685
5686# This must be Linux ELF.
5687linux* | k*bsd*-gnu | kopensolaris*-gnu)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691netbsd* | netbsdelf*-gnu)
5692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5694 else
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5696 fi
5697 ;;
5698
5699newos6*)
5700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5701 lt_cv_file_magic_cmd=/usr/bin/file
5702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5703 ;;
5704
5705*nto* | *qnx*)
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
5708
5709openbsd*)
5710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5712 else
5713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5714 fi
5715 ;;
5716
5717osf3* | osf4* | osf5*)
5718 lt_cv_deplibs_check_method=pass_all
5719 ;;
5720
5721rdos*)
5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724
5725solaris*)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728
5729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5730 lt_cv_deplibs_check_method=pass_all
5731 ;;
5732
5733sysv4 | sysv4.3*)
5734 case $host_vendor in
5735 motorola)
5736 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]'
5737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5738 ;;
5739 ncr)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742 sequent)
5743 lt_cv_file_magic_cmd='/bin/file'
5744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5745 ;;
5746 sni)
5747 lt_cv_file_magic_cmd='/bin/file'
5748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5749 lt_cv_file_magic_test_file=/lib/libc.so
5750 ;;
5751 siemens)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754 pc)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757 esac
5758 ;;
5759
5760tpf*)
5761 lt_cv_deplibs_check_method=pass_all
5762 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00005763esac
5764
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5767$as_echo "$lt_cv_deplibs_check_method" >&6; }
5768file_magic_cmd=$lt_cv_file_magic_cmd
5769deplibs_check_method=$lt_cv_deplibs_check_method
5770test -z "$deplibs_check_method" && deplibs_check_method=unknown
Craig Silversteinb9f23482007-03-22 00:15:41 +00005771
Craig Silversteinb9f23482007-03-22 00:15:41 +00005772
Craig Silversteinb9f23482007-03-22 00:15:41 +00005773
Craig Silversteinb9f23482007-03-22 00:15:41 +00005774
Craig Silversteinb9f23482007-03-22 00:15:41 +00005775
Craig Silversteinb9f23482007-03-22 00:15:41 +00005776
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005777
5778
5779
5780
5781
Craig Silversteinb9f23482007-03-22 00:15:41 +00005782
5783if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5785set dummy ${ac_tool_prefix}ar; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00005786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
5788if test "${ac_cv_prog_AR+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005790else
5791 if test -n "$AR"; then
5792 ac_cv_prog_AR="$AR" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00005799 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005801 ac_cv_prog_AR="${ac_tool_prefix}ar"
Craig Silversteinab3d7652009-11-10 16:33:51 +00005802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005803 break 2
5804 fi
5805done
Craig Silversteinab3d7652009-11-10 16:33:51 +00005806 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005807IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005808
5809fi
5810fi
5811AR=$ac_cv_prog_AR
5812if test -n "$AR"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5814$as_echo "$AR" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005815else
Craig Silversteinab3d7652009-11-10 16:33:51 +00005816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005818fi
5819
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005820
Craig Silversteinb9f23482007-03-22 00:15:41 +00005821fi
5822if test -z "$ac_cv_prog_AR"; then
5823 ac_ct_AR=$AR
5824 # Extract the first word of "ar", so it can be a program name with args.
5825set dummy ar; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00005826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005830else
5831 if test -n "$ac_ct_AR"; then
5832 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00005839 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005841 ac_cv_prog_ac_ct_AR="ar"
Craig Silversteinab3d7652009-11-10 16:33:51 +00005842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005843 break 2
5844 fi
5845done
Craig Silversteinab3d7652009-11-10 16:33:51 +00005846 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005847IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005848
Craig Silversteinb9f23482007-03-22 00:15:41 +00005849fi
5850fi
5851ac_ct_AR=$ac_cv_prog_ac_ct_AR
5852if test -n "$ac_ct_AR"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5854$as_echo "$ac_ct_AR" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005855else
Craig Silversteinab3d7652009-11-10 16:33:51 +00005856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005858fi
5859
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005860 if test "x$ac_ct_AR" = x; then
5861 AR="false"
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00005865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005867ac_tool_warned=yes ;;
5868esac
5869 AR=$ac_ct_AR
5870 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005871else
5872 AR="$ac_cv_prog_AR"
5873fi
5874
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005875test -z "$AR" && AR=ar
5876test -z "$AR_FLAGS" && AR_FLAGS=cru
Craig Silversteinb9f23482007-03-22 00:15:41 +00005877
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005878
Craig Silversteinb9f23482007-03-22 00:15:41 +00005879
Craig Silversteinb9f23482007-03-22 00:15:41 +00005880
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005881
5882
5883
5884
5885
5886
Craig Silversteinb9f23482007-03-22 00:15:41 +00005887
5888if test -n "$ac_tool_prefix"; then
5889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5890set dummy ${ac_tool_prefix}strip; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00005891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if test "${ac_cv_prog_STRIP+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005895else
5896 if test -n "$STRIP"; then
5897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00005904 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Craig Silversteinab3d7652009-11-10 16:33:51 +00005907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005908 break 2
5909 fi
5910done
Craig Silversteinab3d7652009-11-10 16:33:51 +00005911 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005912IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005913
5914fi
5915fi
5916STRIP=$ac_cv_prog_STRIP
5917if test -n "$STRIP"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5919$as_echo "$STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005920else
Craig Silversteinab3d7652009-11-10 16:33:51 +00005921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005923fi
5924
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005925
Craig Silversteinb9f23482007-03-22 00:15:41 +00005926fi
5927if test -z "$ac_cv_prog_STRIP"; then
5928 ac_ct_STRIP=$STRIP
5929 # Extract the first word of "strip", so it can be a program name with args.
5930set dummy strip; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00005931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932$as_echo_n "checking for $ac_word... " >&6; }
5933if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005935else
5936 if test -n "$ac_ct_STRIP"; then
5937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00005944 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005946 ac_cv_prog_ac_ct_STRIP="strip"
Craig Silversteinab3d7652009-11-10 16:33:51 +00005947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005948 break 2
5949 fi
5950done
Craig Silversteinab3d7652009-11-10 16:33:51 +00005951 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005952IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005953
Craig Silversteinb9f23482007-03-22 00:15:41 +00005954fi
5955fi
5956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5957if test -n "$ac_ct_STRIP"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5959$as_echo "$ac_ct_STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005960else
Craig Silversteinab3d7652009-11-10 16:33:51 +00005961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005963fi
5964
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005965 if test "x$ac_ct_STRIP" = x; then
5966 STRIP=":"
5967 else
5968 case $cross_compiling:$ac_tool_warned in
5969yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00005970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005972ac_tool_warned=yes ;;
5973esac
5974 STRIP=$ac_ct_STRIP
5975 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005976else
5977 STRIP="$ac_cv_prog_STRIP"
5978fi
5979
Craig Silversteinb9f23482007-03-22 00:15:41 +00005980test -z "$STRIP" && STRIP=:
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005981
5982
5983
5984
5985
5986
5987if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
5992if test "${ac_cv_prog_RANLIB+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994else
5995 if test -n "$RANLIB"; then
5996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010 done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015RANLIB=$ac_cv_prog_RANLIB
6016if test -n "$RANLIB"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6018$as_echo "$RANLIB" >&6; }
6019else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024
6025fi
6026if test -z "$ac_cv_prog_RANLIB"; then
6027 ac_ct_RANLIB=$RANLIB
6028 # Extract the first word of "ranlib", so it can be a program name with args.
6029set dummy ranlib; ac_word=$2
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031$as_echo_n "checking for $ac_word... " >&6; }
6032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6034else
6035 if test -n "$ac_ct_RANLIB"; then
6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_RANLIB="ranlib"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050 done
6051IFS=$as_save_IFS
6052
6053fi
6054fi
6055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6056if test -n "$ac_ct_RANLIB"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6058$as_echo "$ac_ct_RANLIB" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062fi
6063
6064 if test "x$ac_ct_RANLIB" = x; then
6065 RANLIB=":"
6066 else
6067 case $cross_compiling:$ac_tool_warned in
6068yes:)
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6071ac_tool_warned=yes ;;
6072esac
6073 RANLIB=$ac_ct_RANLIB
6074 fi
6075else
6076 RANLIB="$ac_cv_prog_RANLIB"
6077fi
6078
6079test -z "$RANLIB" && RANLIB=:
6080
6081
6082
6083
6084
Craig Silversteinb9f23482007-03-22 00:15:41 +00006085
6086# Determine commands to create old-style static archives.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00006088old_postinstall_cmds='chmod 644 $oldlib'
6089old_postuninstall_cmds=
6090
6091if test -n "$RANLIB"; then
6092 case $host_os in
6093 openbsd*)
Craig Silverstein690172b2007-04-20 21:16:33 +00006094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006095 ;;
6096 *)
Craig Silverstein690172b2007-04-20 21:16:33 +00006097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006098 ;;
6099 esac
6100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6101fi
6102
Craig Silverstein690172b2007-04-20 21:16:33 +00006103
6104
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136# If no C compiler was specified, use CC.
6137LTCC=${LTCC-"$CC"}
6138
6139# If no C compiler flags were specified, use CFLAGS.
6140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6141
6142# Allow CC to be a program name with arguments.
6143compiler=$CC
6144
6145
6146# Check for command to grab the raw symbol name followed by C symbol from nm.
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6148$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6149if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
Craig Silversteinab3d7652009-11-10 16:33:51 +00006150 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00006151else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006152
6153# These are sane defaults that work on at least a few old systems.
6154# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6155
6156# Character class describing NM global symbol codes.
6157symcode='[BCDEGRST]'
6158
6159# Regexp to match symbols that can be accessed directly from C.
6160sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6161
6162# Define system-specific variables.
6163case $host_os in
6164aix*)
6165 symcode='[BCDT]'
Craig Silversteinb9f23482007-03-22 00:15:41 +00006166 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006167cygwin* | mingw* | pw32* | cegcc*)
6168 symcode='[ABCDGISTW]'
6169 ;;
6170hpux*)
6171 if test "$host_cpu" = ia64; then
6172 symcode='[ABCDEGRST]'
6173 fi
6174 ;;
6175irix* | nonstopux*)
6176 symcode='[BCDEGRST]'
6177 ;;
6178osf*)
6179 symcode='[BCDEGQRST]'
6180 ;;
6181solaris*)
6182 symcode='[BDRT]'
6183 ;;
6184sco3.2v5*)
6185 symcode='[DT]'
6186 ;;
6187sysv4.2uw2*)
6188 symcode='[DT]'
6189 ;;
6190sysv5* | sco5v6* | unixware* | OpenUNIX*)
6191 symcode='[ABDT]'
6192 ;;
6193sysv4)
6194 symcode='[DFNSTU]'
Craig Silversteinb9f23482007-03-22 00:15:41 +00006195 ;;
6196esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00006197
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006198# If we're using GNU nm, then use its standard symbol codes.
6199case `$NM -V 2>&1` in
6200*GNU* | *'with BFD'*)
6201 symcode='[ABCDGIRSTW]' ;;
6202esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00006203
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006204# Transform an extracted symbol line into a proper C declaration.
6205# Some systems (esp. on ia64) link data and code symbols differently,
6206# so use this general approach.
6207lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006208
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006209# Transform an extracted symbol line into symbol name and symbol address
6210lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6211lt_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'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006212
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006213# Handle CRLF in mingw tool chain
6214opt_cr=
6215case $build_os in
6216mingw*)
6217 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Craig Silversteinb9f23482007-03-22 00:15:41 +00006218 ;;
6219esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00006220
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006221# Try without a prefix underscore, then with it.
6222for ac_symprfx in "" "_"; do
Craig Silversteinb9f23482007-03-22 00:15:41 +00006223
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006224 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6225 symxfrm="\\1 $ac_symprfx\\2 \\2"
6226
6227 # Write the raw and C identifiers.
6228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6229 # Fake it for dumpbin and say T for any non-static function
6230 # and D for any global variable.
6231 # Also find C++ and __fastcall symbols from MSVC++,
6232 # which start with @ or ?.
6233 lt_cv_sys_global_symbol_pipe="$AWK '"\
6234" {last_section=section; section=\$ 3};"\
6235" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6236" \$ 0!~/External *\|/{next};"\
6237" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6238" {if(hide[section]) next};"\
6239" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6240" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6241" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6242" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6243" ' prfx=^$ac_symprfx"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006244 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006245 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006246 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006247
6248 # Check to see that the pipe works correctly.
6249 pipe_works=no
6250
6251 rm -f conftest*
6252 cat > conftest.$ac_ext <<_LT_EOF
6253#ifdef __cplusplus
6254extern "C" {
6255#endif
6256char nm_test_var;
6257void nm_test_func(void);
6258void nm_test_func(void){}
6259#ifdef __cplusplus
6260}
6261#endif
6262int main(){nm_test_var='a';nm_test_func();return(0);}
6263_LT_EOF
6264
6265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6266 (eval $ac_compile) 2>&5
6267 ac_status=$?
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }; then
6270 # Now try to grab the symbols.
6271 nlist=conftest.nm
6272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6273 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6274 ac_status=$?
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; } && test -s "$nlist"; then
6277 # Try sorting and uniquifying the output.
6278 if sort "$nlist" | uniq > "$nlist"T; then
6279 mv -f "$nlist"T "$nlist"
6280 else
6281 rm -f "$nlist"T
6282 fi
6283
6284 # Make sure that we snagged all the symbols we need.
6285 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6286 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6287 cat <<_LT_EOF > conftest.$ac_ext
6288#ifdef __cplusplus
6289extern "C" {
6290#endif
6291
6292_LT_EOF
6293 # Now generate the symbol file.
6294 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6295
6296 cat <<_LT_EOF >> conftest.$ac_ext
6297
6298/* The mapping between symbol names and symbols. */
6299const struct {
6300 const char *name;
6301 void *address;
6302}
6303lt__PROGRAM__LTX_preloaded_symbols[] =
6304{
6305 { "@PROGRAM@", (void *) 0 },
6306_LT_EOF
6307 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6308 cat <<\_LT_EOF >> conftest.$ac_ext
6309 {0, (void *) 0}
6310};
6311
6312/* This works around a problem in FreeBSD linker */
6313#ifdef FREEBSD_WORKAROUND
6314static const void *lt_preloaded_setup() {
6315 return lt__PROGRAM__LTX_preloaded_symbols;
6316}
6317#endif
6318
6319#ifdef __cplusplus
6320}
6321#endif
6322_LT_EOF
6323 # Now try linking the two files.
6324 mv conftest.$ac_objext conftstm.$ac_objext
6325 lt_save_LIBS="$LIBS"
6326 lt_save_CFLAGS="$CFLAGS"
6327 LIBS="conftstm.$ac_objext"
6328 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6330 (eval $ac_link) 2>&5
6331 ac_status=$?
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6334 pipe_works=yes
6335 fi
6336 LIBS="$lt_save_LIBS"
6337 CFLAGS="$lt_save_CFLAGS"
6338 else
6339 echo "cannot find nm_test_func in $nlist" >&5
6340 fi
6341 else
6342 echo "cannot find nm_test_var in $nlist" >&5
6343 fi
6344 else
6345 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6346 fi
6347 else
6348 echo "$progname: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6350 fi
6351 rm -rf conftest* conftst*
6352
6353 # Do not use the global_symbol_pipe unless it works.
6354 if test "$pipe_works" = yes; then
6355 break
6356 else
6357 lt_cv_sys_global_symbol_pipe=
6358 fi
6359done
6360
Craig Silversteinb9f23482007-03-22 00:15:41 +00006361fi
6362
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006363if test -z "$lt_cv_sys_global_symbol_pipe"; then
6364 lt_cv_sys_global_symbol_to_cdecl=
6365fi
6366if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6368$as_echo "failed" >&6; }
6369else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6371$as_echo "ok" >&6; }
6372fi
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396# Check whether --enable-libtool-lock was given.
6397if test "${enable_libtool_lock+set}" = set; then :
6398 enableval=$enable_libtool_lock;
6399fi
6400
6401test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6402
6403# Some flags need to be propagated to the compiler or linker for good
6404# libtool support.
6405case $host in
6406ia64-*-hpux*)
6407 # Find out which ABI we are using.
6408 echo 'int i;' > conftest.$ac_ext
6409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6410 (eval $ac_compile) 2>&5
6411 ac_status=$?
6412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413 test $ac_status = 0; }; then
6414 case `/usr/bin/file conftest.$ac_objext` in
6415 *ELF-32*)
6416 HPUX_IA64_MODE="32"
6417 ;;
6418 *ELF-64*)
6419 HPUX_IA64_MODE="64"
6420 ;;
6421 esac
6422 fi
6423 rm -rf conftest*
6424 ;;
6425*-*-irix6*)
6426 # Find out which ABI we are using.
6427 echo '#line 6427 "configure"' > conftest.$ac_ext
6428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6429 (eval $ac_compile) 2>&5
6430 ac_status=$?
6431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432 test $ac_status = 0; }; then
6433 if test "$lt_cv_prog_gnu_ld" = yes; then
6434 case `/usr/bin/file conftest.$ac_objext` in
6435 *32-bit*)
6436 LD="${LD-ld} -melf32bsmip"
6437 ;;
6438 *N32*)
6439 LD="${LD-ld} -melf32bmipn32"
6440 ;;
6441 *64-bit*)
6442 LD="${LD-ld} -melf64bmip"
6443 ;;
6444 esac
6445 else
6446 case `/usr/bin/file conftest.$ac_objext` in
6447 *32-bit*)
6448 LD="${LD-ld} -32"
6449 ;;
6450 *N32*)
6451 LD="${LD-ld} -n32"
6452 ;;
6453 *64-bit*)
6454 LD="${LD-ld} -64"
6455 ;;
6456 esac
6457 fi
6458 fi
6459 rm -rf conftest*
6460 ;;
6461
6462x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6463s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6464 # Find out which ABI we are using.
6465 echo 'int i;' > conftest.$ac_ext
6466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467 (eval $ac_compile) 2>&5
6468 ac_status=$?
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }; then
6471 case `/usr/bin/file conftest.o` in
6472 *32-bit*)
6473 case $host in
6474 x86_64-*kfreebsd*-gnu)
6475 LD="${LD-ld} -m elf_i386_fbsd"
6476 ;;
6477 x86_64-*linux*)
6478 LD="${LD-ld} -m elf_i386"
6479 ;;
6480 ppc64-*linux*|powerpc64-*linux*)
6481 LD="${LD-ld} -m elf32ppclinux"
6482 ;;
6483 s390x-*linux*)
6484 LD="${LD-ld} -m elf_s390"
6485 ;;
6486 sparc64-*linux*)
6487 LD="${LD-ld} -m elf32_sparc"
6488 ;;
6489 esac
6490 ;;
6491 *64-bit*)
6492 case $host in
6493 x86_64-*kfreebsd*-gnu)
6494 LD="${LD-ld} -m elf_x86_64_fbsd"
6495 ;;
6496 x86_64-*linux*)
6497 LD="${LD-ld} -m elf_x86_64"
6498 ;;
6499 ppc*-*linux*|powerpc*-*linux*)
6500 LD="${LD-ld} -m elf64ppc"
6501 ;;
6502 s390*-*linux*|s390*-*tpf*)
6503 LD="${LD-ld} -m elf64_s390"
6504 ;;
6505 sparc*-*linux*)
6506 LD="${LD-ld} -m elf64_sparc"
6507 ;;
6508 esac
6509 ;;
6510 esac
6511 fi
6512 rm -rf conftest*
6513 ;;
6514
6515*-*-sco3.2v5*)
6516 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6517 SAVE_CFLAGS="$CFLAGS"
6518 CFLAGS="$CFLAGS -belf"
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6520$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6521if test "${lt_cv_cc_needs_belf+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6523else
6524 ac_ext=c
6525ac_cpp='$CPP $CPPFLAGS'
6526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h. */
6532
6533int
6534main ()
6535{
6536
6537 ;
6538 return 0;
6539}
6540_ACEOF
6541if ac_fn_c_try_link "$LINENO"; then :
6542 lt_cv_cc_needs_belf=yes
6543else
6544 lt_cv_cc_needs_belf=no
6545fi
6546rm -f core conftest.err conftest.$ac_objext \
6547 conftest$ac_exeext conftest.$ac_ext
6548 ac_ext=c
6549ac_cpp='$CPP $CPPFLAGS'
6550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552ac_compiler_gnu=$ac_cv_c_compiler_gnu
6553
6554fi
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6556$as_echo "$lt_cv_cc_needs_belf" >&6; }
6557 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6558 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6559 CFLAGS="$SAVE_CFLAGS"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006560 fi
6561 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006562sparc*-*solaris*)
6563 # Find out which ABI we are using.
6564 echo 'int i;' > conftest.$ac_ext
6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6566 (eval $ac_compile) 2>&5
6567 ac_status=$?
6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6569 test $ac_status = 0; }; then
6570 case `/usr/bin/file conftest.o` in
6571 *64-bit*)
6572 case $lt_cv_prog_gnu_ld in
6573 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6574 *)
6575 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6576 LD="${LD-ld} -64"
6577 fi
6578 ;;
6579 esac
6580 ;;
6581 esac
6582 fi
6583 rm -rf conftest*
6584 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00006585esac
6586
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006587need_locks="$enable_libtool_lock"
6588
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006589
6590 case $host_os in
6591 rhapsody* | darwin*)
6592 if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6594set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00006595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596$as_echo_n "checking for $ac_word... " >&6; }
6597if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006599else
6600 if test -n "$DSYMUTIL"; then
6601 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6602else
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00006608 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Craig Silversteinab3d7652009-11-10 16:33:51 +00006611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006612 break 2
6613 fi
6614done
Craig Silversteinab3d7652009-11-10 16:33:51 +00006615 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006616IFS=$as_save_IFS
6617
6618fi
6619fi
6620DSYMUTIL=$ac_cv_prog_DSYMUTIL
6621if test -n "$DSYMUTIL"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6623$as_echo "$DSYMUTIL" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006624else
Craig Silversteinab3d7652009-11-10 16:33:51 +00006625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006627fi
6628
6629
6630fi
6631if test -z "$ac_cv_prog_DSYMUTIL"; then
6632 ac_ct_DSYMUTIL=$DSYMUTIL
6633 # Extract the first word of "dsymutil", so it can be a program name with args.
6634set dummy dsymutil; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00006635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636$as_echo_n "checking for $ac_word... " >&6; }
6637if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006639else
6640 if test -n "$ac_ct_DSYMUTIL"; then
6641 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00006648 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Craig Silversteinab3d7652009-11-10 16:33:51 +00006651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006652 break 2
6653 fi
6654done
Craig Silversteinab3d7652009-11-10 16:33:51 +00006655 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006656IFS=$as_save_IFS
6657
6658fi
6659fi
6660ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6661if test -n "$ac_ct_DSYMUTIL"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6663$as_echo "$ac_ct_DSYMUTIL" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006664else
Craig Silversteinab3d7652009-11-10 16:33:51 +00006665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006667fi
6668
6669 if test "x$ac_ct_DSYMUTIL" = x; then
6670 DSYMUTIL=":"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00006674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006676ac_tool_warned=yes ;;
6677esac
6678 DSYMUTIL=$ac_ct_DSYMUTIL
6679 fi
6680else
6681 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6682fi
6683
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6686set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00006687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006691else
6692 if test -n "$NMEDIT"; then
6693 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00006700 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Craig Silversteinab3d7652009-11-10 16:33:51 +00006703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006704 break 2
6705 fi
6706done
Craig Silversteinab3d7652009-11-10 16:33:51 +00006707 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006708IFS=$as_save_IFS
6709
6710fi
6711fi
6712NMEDIT=$ac_cv_prog_NMEDIT
6713if test -n "$NMEDIT"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6715$as_echo "$NMEDIT" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006716else
Craig Silversteinab3d7652009-11-10 16:33:51 +00006717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006719fi
6720
6721
6722fi
6723if test -z "$ac_cv_prog_NMEDIT"; then
6724 ac_ct_NMEDIT=$NMEDIT
6725 # Extract the first word of "nmedit", so it can be a program name with args.
6726set dummy nmedit; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +00006727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006731else
6732 if test -n "$ac_ct_NMEDIT"; then
6733 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +00006740 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Craig Silversteinab3d7652009-11-10 16:33:51 +00006743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006744 break 2
6745 fi
6746done
Craig Silversteinab3d7652009-11-10 16:33:51 +00006747 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006748IFS=$as_save_IFS
6749
6750fi
6751fi
6752ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6753if test -n "$ac_ct_NMEDIT"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6755$as_echo "$ac_ct_NMEDIT" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006756else
Craig Silversteinab3d7652009-11-10 16:33:51 +00006757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006759fi
6760
6761 if test "x$ac_ct_NMEDIT" = x; then
6762 NMEDIT=":"
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765yes:)
Craig Silversteinab3d7652009-11-10 16:33:51 +00006766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006768ac_tool_warned=yes ;;
6769esac
6770 NMEDIT=$ac_ct_NMEDIT
6771 fi
6772else
6773 NMEDIT="$ac_cv_prog_NMEDIT"
6774fi
6775
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6778set dummy ${ac_tool_prefix}lipo; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
6781if test "${ac_cv_prog_LIPO+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783else
6784 if test -n "$LIPO"; then
6785 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799 done
6800IFS=$as_save_IFS
6801
6802fi
6803fi
6804LIPO=$ac_cv_prog_LIPO
6805if test -n "$LIPO"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6807$as_echo "$LIPO" >&6; }
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813
6814fi
6815if test -z "$ac_cv_prog_LIPO"; then
6816 ac_ct_LIPO=$LIPO
6817 # Extract the first word of "lipo", so it can be a program name with args.
6818set dummy lipo; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823else
6824 if test -n "$ac_ct_LIPO"; then
6825 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_LIPO="lipo"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839 done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6845if test -n "$ac_ct_LIPO"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6847$as_echo "$ac_ct_LIPO" >&6; }
6848else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853 if test "x$ac_ct_LIPO" = x; then
6854 LIPO=":"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857yes:)
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860ac_tool_warned=yes ;;
6861esac
6862 LIPO=$ac_ct_LIPO
6863 fi
6864else
6865 LIPO="$ac_cv_prog_LIPO"
6866fi
6867
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6870set dummy ${ac_tool_prefix}otool; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if test "${ac_cv_prog_OTOOL+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875else
6876 if test -n "$OTOOL"; then
6877 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890done
6891 done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896OTOOL=$ac_cv_prog_OTOOL
6897if test -n "$OTOOL"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6899$as_echo "$OTOOL" >&6; }
6900else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905
6906fi
6907if test -z "$ac_cv_prog_OTOOL"; then
6908 ac_ct_OTOOL=$OTOOL
6909 # Extract the first word of "otool", so it can be a program name with args.
6910set dummy otool; ac_word=$2
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912$as_echo_n "checking for $ac_word... " >&6; }
6913if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915else
6916 if test -n "$ac_ct_OTOOL"; then
6917 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_OTOOL="otool"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930done
6931 done
6932IFS=$as_save_IFS
6933
6934fi
6935fi
6936ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6937if test -n "$ac_ct_OTOOL"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6939$as_echo "$ac_ct_OTOOL" >&6; }
6940else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942$as_echo "no" >&6; }
6943fi
6944
6945 if test "x$ac_ct_OTOOL" = x; then
6946 OTOOL=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949yes:)
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952ac_tool_warned=yes ;;
6953esac
6954 OTOOL=$ac_ct_OTOOL
6955 fi
6956else
6957 OTOOL="$ac_cv_prog_OTOOL"
6958fi
6959
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6962set dummy ${ac_tool_prefix}otool64; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
6965if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967else
6968 if test -n "$OTOOL64"; then
6969 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982done
6983 done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988OTOOL64=$ac_cv_prog_OTOOL64
6989if test -n "$OTOOL64"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6991$as_echo "$OTOOL64" >&6; }
6992else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997
6998fi
6999if test -z "$ac_cv_prog_OTOOL64"; then
7000 ac_ct_OTOOL64=$OTOOL64
7001 # Extract the first word of "otool64", so it can be a program name with args.
7002set dummy otool64; ac_word=$2
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004$as_echo_n "checking for $ac_word... " >&6; }
7005if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7007else
7008 if test -n "$ac_ct_OTOOL64"; then
7009 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_ac_ct_OTOOL64="otool64"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022done
7023 done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
7028ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7029if test -n "$ac_ct_OTOOL64"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7031$as_echo "$ac_ct_OTOOL64" >&6; }
7032else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
7035fi
7036
7037 if test "x$ac_ct_OTOOL64" = x; then
7038 OTOOL64=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041yes:)
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044ac_tool_warned=yes ;;
7045esac
7046 OTOOL64=$ac_ct_OTOOL64
7047 fi
7048else
7049 OTOOL64="$ac_cv_prog_OTOOL64"
7050fi
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007077
Craig Silversteinab3d7652009-11-10 16:33:51 +00007078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7079$as_echo_n "checking for -single_module linker flag... " >&6; }
7080if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007082else
7083 lt_cv_apple_cc_single_mod=no
7084 if test -z "${LT_MULTI_MODULE}"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007085 # By default we will add the -single_module flag. You can override
7086 # by either setting the environment variable LT_MULTI_MODULE
7087 # non-empty at configure time, or by adding -multi_module to the
7088 # link flags.
7089 rm -rf libconftest.dylib*
7090 echo "int foo(void){return 1;}" > conftest.c
7091 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7092-dynamiclib -Wl,-single_module conftest.c" >&5
7093 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7094 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7095 _lt_result=$?
7096 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7097 lt_cv_apple_cc_single_mod=yes
7098 else
7099 cat conftest.err >&5
7100 fi
7101 rm -rf libconftest.dylib*
7102 rm -f conftest.*
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007103 fi
7104fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00007105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7106$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7108$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7109if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007111else
7112 lt_cv_ld_exported_symbols_list=no
7113 save_LDFLAGS=$LDFLAGS
7114 echo "_main" > conftest.sym
7115 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Craig Silversteinab3d7652009-11-10 16:33:51 +00007116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007117/* end confdefs.h. */
7118
7119int
7120main ()
7121{
7122
7123 ;
7124 return 0;
7125}
7126_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00007127if ac_fn_c_try_link "$LINENO"; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007128 lt_cv_ld_exported_symbols_list=yes
7129else
Craig Silversteinab3d7652009-11-10 16:33:51 +00007130 lt_cv_ld_exported_symbols_list=no
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007131fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00007132rm -f core conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007134 LDFLAGS="$save_LDFLAGS"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007135
7136fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00007137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7138$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007139 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007140 rhapsody* | darwin1.[012])
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007141 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7142 darwin1.*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007143 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7144 darwin*) # darwin 5.x on
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007145 # if running on 10.5 or later, the deployment target defaults
7146 # to the OS version, if on x86, and 10.4, the deployment
7147 # target defaults to 10.4. Don't you love it?
7148 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007149 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7150 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7151 10.[012]*)
7152 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7153 10.*)
7154 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007155 esac
7156 ;;
7157 esac
7158 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7159 _lt_dar_single_mod='$single_module'
7160 fi
7161 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7162 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7163 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007164 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007165 fi
7166 if test "$DSYMUTIL" != ":"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007167 _lt_dsymutil='~$DSYMUTIL $lib || :'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007168 else
7169 _lt_dsymutil=
7170 fi
7171 ;;
7172 esac
7173
7174
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7176$as_echo_n "checking for ANSI C header files... " >&6; }
7177if test "${ac_cv_header_stdc+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179else
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h. */
7182#include <stdlib.h>
7183#include <stdarg.h>
7184#include <string.h>
7185#include <float.h>
Craig Silversteinb9f23482007-03-22 00:15:41 +00007186
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007187int
7188main ()
7189{
7190
7191 ;
7192 return 0;
7193}
7194_ACEOF
7195if ac_fn_c_try_compile "$LINENO"; then :
7196 ac_cv_header_stdc=yes
7197else
7198 ac_cv_header_stdc=no
7199fi
7200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201
7202if test $ac_cv_header_stdc = yes; then
7203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h. */
7206#include <string.h>
7207
7208_ACEOF
7209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210 $EGREP "memchr" >/dev/null 2>&1; then :
7211
7212else
7213 ac_cv_header_stdc=no
7214fi
7215rm -f conftest*
7216
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007217fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00007218
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007219if test $ac_cv_header_stdc = yes; then
7220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h. */
7223#include <stdlib.h>
7224
7225_ACEOF
7226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7227 $EGREP "free" >/dev/null 2>&1; then :
7228
7229else
7230 ac_cv_header_stdc=no
7231fi
7232rm -f conftest*
7233
7234fi
7235
7236if test $ac_cv_header_stdc = yes; then
7237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7238 if test "$cross_compiling" = yes; then :
7239 :
7240else
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h. */
7243#include <ctype.h>
7244#include <stdlib.h>
7245#if ((' ' & 0x0FF) == 0x020)
7246# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7247# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7248#else
7249# define ISLOWER(c) \
7250 (('a' <= (c) && (c) <= 'i') \
7251 || ('j' <= (c) && (c) <= 'r') \
7252 || ('s' <= (c) && (c) <= 'z'))
7253# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7254#endif
7255
7256#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7257int
7258main ()
7259{
7260 int i;
7261 for (i = 0; i < 256; i++)
7262 if (XOR (islower (i), ISLOWER (i))
7263 || toupper (i) != TOUPPER (i))
7264 return 2;
7265 return 0;
7266}
7267_ACEOF
7268if ac_fn_c_try_run "$LINENO"; then :
7269
7270else
7271 ac_cv_header_stdc=no
7272fi
7273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7274 conftest.$ac_objext conftest.beam conftest.$ac_ext
7275fi
7276
7277fi
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7280$as_echo "$ac_cv_header_stdc" >&6; }
7281if test $ac_cv_header_stdc = yes; then
7282
7283$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7284
7285fi
7286
7287# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7288for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7289 inttypes.h stdint.h unistd.h
7290do :
7291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7293"
7294eval as_val=\$$as_ac_Header
7295 if test "x$as_val" = x""yes; then :
7296 cat >>confdefs.h <<_ACEOF
7297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7298_ACEOF
7299
7300fi
7301
7302done
7303
7304
7305for ac_header in dlfcn.h
7306do :
7307 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7308"
7309if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7310 cat >>confdefs.h <<_ACEOF
7311#define HAVE_DLFCN_H 1
7312_ACEOF
7313
7314fi
7315
7316done
7317
7318
7319
7320ac_ext=cpp
7321ac_cpp='$CXXCPP $CPPFLAGS'
7322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7325if test -z "$CXX"; then
7326 if test -n "$CCC"; then
7327 CXX=$CCC
7328 else
7329 if test -n "$ac_tool_prefix"; then
7330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7331 do
7332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if test "${ac_cv_prog_CXX+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338else
7339 if test -n "$CXX"; then
7340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353done
7354 done
7355IFS=$as_save_IFS
7356
7357fi
7358fi
7359CXX=$ac_cv_prog_CXX
7360if test -n "$CXX"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7362$as_echo "$CXX" >&6; }
7363else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366fi
7367
7368
7369 test -n "$CXX" && break
7370 done
7371fi
7372if test -z "$CXX"; then
7373 ac_ct_CXX=$CXX
7374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7375do
7376 # Extract the first word of "$ac_prog", so it can be a program name with args.
7377set dummy $ac_prog; ac_word=$2
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379$as_echo_n "checking for $ac_word... " >&6; }
7380if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382else
7383 if test -n "$ac_ct_CXX"; then
7384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7385else
7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_ac_ct_CXX="$ac_prog"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397done
7398 done
7399IFS=$as_save_IFS
7400
7401fi
7402fi
7403ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7404if test -n "$ac_ct_CXX"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7406$as_echo "$ac_ct_CXX" >&6; }
7407else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409$as_echo "no" >&6; }
7410fi
7411
7412
7413 test -n "$ac_ct_CXX" && break
7414done
7415
7416 if test "x$ac_ct_CXX" = x; then
7417 CXX="g++"
7418 else
7419 case $cross_compiling:$ac_tool_warned in
7420yes:)
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423ac_tool_warned=yes ;;
7424esac
7425 CXX=$ac_ct_CXX
7426 fi
7427fi
7428
7429 fi
7430fi
7431# Provide some information about the compiler.
7432$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7433set X $ac_compile
7434ac_compiler=$2
7435for ac_option in --version -v -V -qversion; do
7436 { { ac_try="$ac_compiler $ac_option >&5"
7437case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440esac
7441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7442$as_echo "$ac_try_echo"; } >&5
7443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7444 ac_status=$?
7445 if test -s conftest.err; then
7446 sed '10a\
7447... rest of stderr output deleted ...
7448 10q' conftest.err >conftest.er1
7449 cat conftest.er1 >&5
7450 fi
7451 rm -f conftest.er1 conftest.err
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }
7454done
7455
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7457$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7458if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
7460else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h. */
7463
7464int
7465main ()
7466{
7467#ifndef __GNUC__
7468 choke me
7469#endif
7470
7471 ;
7472 return 0;
7473}
7474_ACEOF
7475if ac_fn_cxx_try_compile "$LINENO"; then :
7476 ac_compiler_gnu=yes
7477else
7478 ac_compiler_gnu=no
7479fi
7480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7482
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7485$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7486if test $ac_compiler_gnu = yes; then
7487 GXX=yes
7488else
7489 GXX=
7490fi
7491ac_test_CXXFLAGS=${CXXFLAGS+set}
7492ac_save_CXXFLAGS=$CXXFLAGS
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7494$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7495if test "${ac_cv_prog_cxx_g+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497else
7498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7499 ac_cxx_werror_flag=yes
7500 ac_cv_prog_cxx_g=no
7501 CXXFLAGS="-g"
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h. */
7504
7505int
7506main ()
7507{
7508
7509 ;
7510 return 0;
7511}
7512_ACEOF
7513if ac_fn_cxx_try_compile "$LINENO"; then :
7514 ac_cv_prog_cxx_g=yes
7515else
7516 CXXFLAGS=""
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */
7519
7520int
7521main ()
7522{
7523
7524 ;
7525 return 0;
7526}
7527_ACEOF
7528if ac_fn_cxx_try_compile "$LINENO"; then :
7529
7530else
7531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7532 CXXFLAGS="-g"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h. */
7535
7536int
7537main ()
7538{
7539
7540 ;
7541 return 0;
7542}
7543_ACEOF
7544if ac_fn_cxx_try_compile "$LINENO"; then :
7545 ac_cv_prog_cxx_g=yes
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548fi
7549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7555$as_echo "$ac_cv_prog_cxx_g" >&6; }
7556if test "$ac_test_CXXFLAGS" = set; then
7557 CXXFLAGS=$ac_save_CXXFLAGS
7558elif test $ac_cv_prog_cxx_g = yes; then
7559 if test "$GXX" = yes; then
7560 CXXFLAGS="-g -O2"
7561 else
7562 CXXFLAGS="-g"
7563 fi
7564else
7565 if test "$GXX" = yes; then
7566 CXXFLAGS="-O2"
7567 else
7568 CXXFLAGS=
7569 fi
7570fi
7571ac_ext=c
7572ac_cpp='$CPP $CPPFLAGS'
7573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576
7577depcc="$CXX" am_compiler_list=
7578
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7580$as_echo_n "checking dependency style of $depcc... " >&6; }
7581if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583else
7584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7585 # We make a subdir and do the tests there. Otherwise we can end up
7586 # making bogus files that we don't know about and never remove. For
7587 # instance it was reported that on HP-UX the gcc test will end up
7588 # making a dummy file named `D' -- because `-MD' means `put the output
7589 # in D'.
7590 mkdir conftest.dir
7591 # Copy depcomp to subdir because otherwise we won't find it if we're
7592 # using a relative directory.
7593 cp "$am_depcomp" conftest.dir
7594 cd conftest.dir
7595 # We will build objects and dependencies in a subdirectory because
7596 # it helps to detect inapplicable dependency modes. For instance
7597 # both Tru64's cc and ICC support -MD to output dependencies as a
7598 # side effect of compilation, but ICC will put the dependencies in
7599 # the current directory while Tru64 will put them in the object
7600 # directory.
7601 mkdir sub
7602
7603 am_cv_CXX_dependencies_compiler_type=none
7604 if test "$am_compiler_list" = ""; then
7605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7606 fi
7607 for depmode in $am_compiler_list; do
7608 # Setup a source with many dependencies, because some compilers
7609 # like to wrap large dependency lists on column 80 (with \), and
7610 # we should not choose a depcomp mode which is confused by this.
7611 #
7612 # We need to recreate these files for each test, as the compiler may
7613 # overwrite some of them when testing with obscure command lines.
7614 # This happens at least with the AIX C compiler.
7615 : > sub/conftest.c
7616 for i in 1 2 3 4 5 6; do
7617 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7618 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7619 # Solaris 8's {/usr,}/bin/sh.
7620 touch sub/conftst$i.h
7621 done
7622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7623
7624 case $depmode in
7625 nosideeffect)
7626 # after this tag, mechanisms are not by side-effect, so they'll
7627 # only be used when explicitly requested
7628 if test "x$enable_dependency_tracking" = xyes; then
7629 continue
7630 else
7631 break
7632 fi
7633 ;;
7634 none) break ;;
7635 esac
7636 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7637 # mode. It turns out that the SunPro C++ compiler does not properly
7638 # handle `-M -o', and we need to detect this.
7639 if depmode=$depmode \
7640 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7641 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7642 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7643 >/dev/null 2>conftest.err &&
7644 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7645 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7647 # icc doesn't choke on unknown options, it will just issue warnings
7648 # or remarks (even with -Werror). So we grep stderr for any message
7649 # that says an option was ignored or not supported.
7650 # When given -MP, icc 7.0 and 7.1 complain thusly:
7651 # icc: Command line warning: ignoring option '-M'; no argument required
7652 # The diagnosis changed in icc 8.0:
7653 # icc: Command line remark: option '-MP' not supported
7654 if (grep 'ignoring option' conftest.err ||
7655 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7656 am_cv_CXX_dependencies_compiler_type=$depmode
7657 break
7658 fi
7659 fi
7660 done
7661
7662 cd ..
7663 rm -rf conftest.dir
7664else
7665 am_cv_CXX_dependencies_compiler_type=none
7666fi
7667
7668fi
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7670$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7671CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7672
7673
7674
7675if
7676 test "x$enable_dependency_tracking" != xno \
7677 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7678 am__fastdepCXX_TRUE=
7679 am__fastdepCXX_FALSE='#'
7680else
7681 am__fastdepCXX_TRUE='#'
7682 am__fastdepCXX_FALSE=
7683fi
7684
7685
7686if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7687 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7688 (test "X$CXX" != "Xg++"))) ; then
7689 ac_ext=cpp
7690ac_cpp='$CXXCPP $CPPFLAGS'
7691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7695$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7696if test -z "$CXXCPP"; then
7697 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699else
7700 # Double quotes because CXXCPP needs to be expanded
7701 for CXXCPP in "$CXX -E" "/lib/cpp"
7702 do
7703 ac_preproc_ok=false
7704for ac_cxx_preproc_warn_flag in '' yes
7705do
7706 # Use a header file that comes with gcc, so configuring glibc
7707 # with a fresh cross-compiler works.
7708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7709 # <limits.h> exists even on freestanding compilers.
7710 # On the NeXT, cc -E runs the code through the compiler's parser,
7711 # not just through cpp. "Syntax error" is here to catch this case.
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h. */
7714#ifdef __STDC__
7715# include <limits.h>
7716#else
7717# include <assert.h>
7718#endif
7719 Syntax error
7720_ACEOF
7721if ac_fn_cxx_try_cpp "$LINENO"; then :
7722
7723else
7724 # Broken: fails on valid input.
7725continue
7726fi
7727rm -f conftest.err conftest.$ac_ext
7728
7729 # OK, works on sane cases. Now check whether nonexistent headers
7730 # can be detected and how.
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h. */
7733#include <ac_nonexistent.h>
7734_ACEOF
7735if ac_fn_cxx_try_cpp "$LINENO"; then :
7736 # Broken: success on invalid input.
7737continue
7738else
7739 # Passes both tests.
7740ac_preproc_ok=:
7741break
7742fi
7743rm -f conftest.err conftest.$ac_ext
7744
7745done
7746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7747rm -f conftest.err conftest.$ac_ext
7748if $ac_preproc_ok; then :
7749 break
7750fi
7751
7752 done
7753 ac_cv_prog_CXXCPP=$CXXCPP
7754
7755fi
7756 CXXCPP=$ac_cv_prog_CXXCPP
7757else
7758 ac_cv_prog_CXXCPP=$CXXCPP
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7761$as_echo "$CXXCPP" >&6; }
7762ac_preproc_ok=false
7763for ac_cxx_preproc_warn_flag in '' yes
7764do
7765 # Use a header file that comes with gcc, so configuring glibc
7766 # with a fresh cross-compiler works.
7767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7768 # <limits.h> exists even on freestanding compilers.
7769 # On the NeXT, cc -E runs the code through the compiler's parser,
7770 # not just through cpp. "Syntax error" is here to catch this case.
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h. */
7773#ifdef __STDC__
7774# include <limits.h>
7775#else
7776# include <assert.h>
7777#endif
7778 Syntax error
7779_ACEOF
7780if ac_fn_cxx_try_cpp "$LINENO"; then :
7781
7782else
7783 # Broken: fails on valid input.
7784continue
7785fi
7786rm -f conftest.err conftest.$ac_ext
7787
7788 # OK, works on sane cases. Now check whether nonexistent headers
7789 # can be detected and how.
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h. */
7792#include <ac_nonexistent.h>
7793_ACEOF
7794if ac_fn_cxx_try_cpp "$LINENO"; then :
7795 # Broken: success on invalid input.
7796continue
7797else
7798 # Passes both tests.
7799ac_preproc_ok=:
7800break
7801fi
7802rm -f conftest.err conftest.$ac_ext
7803
7804done
7805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7806rm -f conftest.err conftest.$ac_ext
7807if $ac_preproc_ok; then :
7808
7809else
7810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7812_lt_caught_CXX_error=yes; }
7813fi
7814
7815ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821else
7822 _lt_caught_CXX_error=yes
7823fi
7824
7825
7826
7827
7828
7829# Set options
7830
7831
7832
7833 enable_dlopen=no
7834
7835
7836 enable_win32_dll=no
7837
7838
7839 # Check whether --enable-shared was given.
7840if test "${enable_shared+set}" = set; then :
7841 enableval=$enable_shared; p=${PACKAGE-default}
7842 case $enableval in
7843 yes) enable_shared=yes ;;
7844 no) enable_shared=no ;;
7845 *)
7846 enable_shared=no
7847 # Look at the argument we got. We use all the common list separators.
7848 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7849 for pkg in $enableval; do
7850 IFS="$lt_save_ifs"
7851 if test "X$pkg" = "X$p"; then
7852 enable_shared=yes
7853 fi
7854 done
7855 IFS="$lt_save_ifs"
7856 ;;
7857 esac
7858else
7859 enable_shared=yes
7860fi
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870 # Check whether --enable-static was given.
7871if test "${enable_static+set}" = set; then :
7872 enableval=$enable_static; p=${PACKAGE-default}
7873 case $enableval in
7874 yes) enable_static=yes ;;
7875 no) enable_static=no ;;
7876 *)
7877 enable_static=no
7878 # Look at the argument we got. We use all the common list separators.
7879 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7880 for pkg in $enableval; do
7881 IFS="$lt_save_ifs"
7882 if test "X$pkg" = "X$p"; then
7883 enable_static=yes
7884 fi
7885 done
7886 IFS="$lt_save_ifs"
7887 ;;
7888 esac
7889else
7890 enable_static=yes
7891fi
7892
7893
7894
7895
7896
7897
7898
7899
Craig Silversteinb9f23482007-03-22 00:15:41 +00007900
7901
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007902# Check whether --with-pic was given.
Craig Silversteinab3d7652009-11-10 16:33:51 +00007903if test "${with_pic+set}" = set; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007904 withval=$with_pic; pic_mode="$withval"
Craig Silversteinb9f23482007-03-22 00:15:41 +00007905else
7906 pic_mode=default
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007907fi
7908
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007909
Craig Silversteinb9f23482007-03-22 00:15:41 +00007910test -z "$pic_mode" && pic_mode=default
7911
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922# This can be used to rebuild libtool when needed
7923LIBTOOL_DEPS="$ltmain"
7924
7925# Always use our own libtool.
7926LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952test -z "$LN_S" && LN_S="ln -s"
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967if test -n "${ZSH_VERSION+set}" ; then
7968 setopt NO_GLOB_SUBST
7969fi
7970
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7972$as_echo_n "checking for objdir... " >&6; }
7973if test "${lt_cv_objdir+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975else
7976 rm -f .libs 2>/dev/null
7977mkdir .libs 2>/dev/null
7978if test -d .libs; then
7979 lt_cv_objdir=.libs
7980else
7981 # MS-DOS does not allow filenames that begin with a dot.
7982 lt_cv_objdir=_libs
7983fi
7984rmdir .libs 2>/dev/null
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7987$as_echo "$lt_cv_objdir" >&6; }
7988objdir=$lt_cv_objdir
7989
7990
7991
7992
7993
7994cat >>confdefs.h <<_ACEOF
7995#define LT_OBJDIR "$lt_cv_objdir/"
7996_ACEOF
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014case $host_os in
8015aix3*)
8016 # AIX sometimes has problems with the GCC collect2 program. For some
8017 # reason, if we set the COLLECT_NAMES environment variable, the problems
8018 # vanish in a puff of smoke.
8019 if test "X${COLLECT_NAMES+set}" != Xset; then
8020 COLLECT_NAMES=
8021 export COLLECT_NAMES
8022 fi
8023 ;;
8024esac
8025
8026# Sed substitution that helps us do robust quoting. It backslashifies
8027# metacharacters that are still active within double-quoted strings.
8028sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8029
8030# Same as above, but do not quote variable references.
8031double_quote_subst='s/\(["`\\]\)/\\\1/g'
8032
8033# Sed substitution to delay expansion of an escaped shell variable in a
8034# double_quote_subst'ed string.
8035delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8036
8037# Sed substitution to delay expansion of an escaped single quote.
8038delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8039
8040# Sed substitution to avoid accidental globbing in evaled expressions
8041no_glob_subst='s/\*/\\\*/g'
8042
8043# Global variables:
8044ofile=libtool
8045can_build_shared=yes
8046
8047# All known linkers require a `.a' archive for static linking (except MSVC,
8048# which needs '.lib').
8049libext=a
8050
8051with_gnu_ld="$lt_cv_prog_gnu_ld"
8052
8053old_CC="$CC"
8054old_CFLAGS="$CFLAGS"
8055
8056# Set sane defaults for various variables
8057test -z "$CC" && CC=cc
8058test -z "$LTCC" && LTCC=$CC
8059test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8060test -z "$LD" && LD=ld
8061test -z "$ac_objext" && ac_objext=o
8062
8063for cc_temp in $compiler""; do
8064 case $cc_temp in
8065 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8066 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8067 \-*) ;;
8068 *) break;;
8069 esac
8070done
8071cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8072
8073
8074# Only perform the check for file, if the check method requires it
8075test -z "$MAGIC_CMD" && MAGIC_CMD=file
8076case $deplibs_check_method in
8077file_magic*)
8078 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8080$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8081if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083else
8084 case $MAGIC_CMD in
8085[\\/*] | ?:[\\/]*)
8086 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8087 ;;
8088*)
8089 lt_save_MAGIC_CMD="$MAGIC_CMD"
8090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8091 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8092 for ac_dir in $ac_dummy; do
8093 IFS="$lt_save_ifs"
8094 test -z "$ac_dir" && ac_dir=.
8095 if test -f $ac_dir/${ac_tool_prefix}file; then
8096 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8097 if test -n "$file_magic_test_file"; then
8098 case $deplibs_check_method in
8099 "file_magic "*)
8100 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8102 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8103 $EGREP "$file_magic_regex" > /dev/null; then
8104 :
8105 else
8106 cat <<_LT_EOF 1>&2
8107
8108*** Warning: the command libtool uses to detect shared libraries,
8109*** $file_magic_cmd, produces output that libtool cannot recognize.
8110*** The result is that libtool may fail to recognize shared libraries
8111*** as such. This will affect the creation of libtool libraries that
8112*** depend on shared libraries, but programs linked with such libtool
8113*** libraries will work regardless of this problem. Nevertheless, you
8114*** may want to report the problem to your system manager and/or to
8115*** bug-libtool@gnu.org
8116
8117_LT_EOF
8118 fi ;;
8119 esac
8120 fi
8121 break
8122 fi
8123 done
8124 IFS="$lt_save_ifs"
8125 MAGIC_CMD="$lt_save_MAGIC_CMD"
8126 ;;
8127esac
8128fi
8129
8130MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8131if test -n "$MAGIC_CMD"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8133$as_echo "$MAGIC_CMD" >&6; }
8134else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136$as_echo "no" >&6; }
8137fi
8138
8139
8140
8141
8142
8143if test -z "$lt_cv_path_MAGIC_CMD"; then
8144 if test -n "$ac_tool_prefix"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8146$as_echo_n "checking for file... " >&6; }
8147if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149else
8150 case $MAGIC_CMD in
8151[\\/*] | ?:[\\/]*)
8152 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8153 ;;
8154*)
8155 lt_save_MAGIC_CMD="$MAGIC_CMD"
8156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8158 for ac_dir in $ac_dummy; do
8159 IFS="$lt_save_ifs"
8160 test -z "$ac_dir" && ac_dir=.
8161 if test -f $ac_dir/file; then
8162 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8163 if test -n "$file_magic_test_file"; then
8164 case $deplibs_check_method in
8165 "file_magic "*)
8166 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8169 $EGREP "$file_magic_regex" > /dev/null; then
8170 :
8171 else
8172 cat <<_LT_EOF 1>&2
8173
8174*** Warning: the command libtool uses to detect shared libraries,
8175*** $file_magic_cmd, produces output that libtool cannot recognize.
8176*** The result is that libtool may fail to recognize shared libraries
8177*** as such. This will affect the creation of libtool libraries that
8178*** depend on shared libraries, but programs linked with such libtool
8179*** libraries will work regardless of this problem. Nevertheless, you
8180*** may want to report the problem to your system manager and/or to
8181*** bug-libtool@gnu.org
8182
8183_LT_EOF
8184 fi ;;
8185 esac
8186 fi
8187 break
8188 fi
8189 done
8190 IFS="$lt_save_ifs"
8191 MAGIC_CMD="$lt_save_MAGIC_CMD"
8192 ;;
8193esac
8194fi
8195
8196MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8197if test -n "$MAGIC_CMD"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8199$as_echo "$MAGIC_CMD" >&6; }
8200else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
8203fi
8204
8205
8206 else
8207 MAGIC_CMD=:
8208 fi
8209fi
8210
8211 fi
8212 ;;
8213esac
8214
Craig Silversteinb9f23482007-03-22 00:15:41 +00008215# Use C for the default configuration in the libtool script
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008216
Craig Silversteinb9f23482007-03-22 00:15:41 +00008217lt_save_CC="$CC"
8218ac_ext=c
8219ac_cpp='$CPP $CPPFLAGS'
8220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223
8224
8225# Source file extension for C test sources.
8226ac_ext=c
8227
8228# Object file extension for compiled C test sources.
8229objext=o
8230objext=$objext
8231
8232# Code to be used in simple compile tests
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008233lt_simple_compile_test_code="int some_variable = 0;"
Craig Silversteinb9f23482007-03-22 00:15:41 +00008234
8235# Code to be used in simple link tests
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008236lt_simple_link_test_code='int main(){return(0);}'
Craig Silversteinb9f23482007-03-22 00:15:41 +00008237
8238
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008239
8240
8241
8242
8243
Craig Silversteinb9f23482007-03-22 00:15:41 +00008244# If no C compiler was specified, use CC.
8245LTCC=${LTCC-"$CC"}
8246
Craig Silverstein690172b2007-04-20 21:16:33 +00008247# If no C compiler flags were specified, use CFLAGS.
8248LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8249
Craig Silversteinb9f23482007-03-22 00:15:41 +00008250# Allow CC to be a program name with arguments.
8251compiler=$CC
8252
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008253# Save the default compiler, since it gets overwritten when the other
8254# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8255compiler_DEFAULT=$CC
Craig Silversteinb9f23482007-03-22 00:15:41 +00008256
Craig Silverstein690172b2007-04-20 21:16:33 +00008257# save warnings/boilerplate of simple test code
8258ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008259echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +00008260eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8261_lt_compiler_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008262$RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008263
Craig Silverstein690172b2007-04-20 21:16:33 +00008264ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008265echo "$lt_simple_link_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +00008266eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8267_lt_linker_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008268$RM -r conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008269
8270
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008271## CAVEAT EMPTOR:
8272## There is no encapsulation within the following macros, do not change
8273## the running order or otherwise move them around unless you know exactly
8274## what you are doing...
8275if test -n "$compiler"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00008276
8277lt_prog_compiler_no_builtin_flag=
8278
8279if test "$GCC" = yes; then
8280 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8281
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00008283$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8284if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00008286else
8287 lt_cv_prog_compiler_rtti_exceptions=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008288 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00008290 lt_compiler_flag="-fno-rtti -fno-exceptions"
8291 # Insert the option either (1) after the last *FLAGS variable, or
8292 # (2) before a word containing "conftest.", or (3) at the end.
8293 # Note that $ac_compile itself does not contain backslashes and begins
8294 # with a dollar sign (not a hyphen), so the echo should work correctly.
8295 # The option is referenced via a variable to avoid confusing sed.
8296 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +00008297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +00008298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008300 (eval echo "\"\$as_me:8300: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008301 (eval "$lt_compile" 2>conftest.err)
8302 ac_status=$?
8303 cat conftest.err >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008304 echo "$as_me:8304: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00008305 if (exit $ac_status) && test -s "$ac_outfile"; then
8306 # The compiler can only warn and ignore the option if not recognized
Craig Silverstein690172b2007-04-20 21:16:33 +00008307 # So say no if there are warnings other than the usual output.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008308 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00008309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00008311 lt_cv_prog_compiler_rtti_exceptions=yes
8312 fi
8313 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008314 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008315
8316fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00008317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8318$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008319
8320if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8321 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8322else
8323 :
8324fi
8325
8326fi
8327
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008328
8329
8330
8331
8332
8333 lt_prog_compiler_wl=
Craig Silversteinb9f23482007-03-22 00:15:41 +00008334lt_prog_compiler_pic=
8335lt_prog_compiler_static=
8336
Craig Silversteinab3d7652009-11-10 16:33:51 +00008337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8338$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008339
8340 if test "$GCC" = yes; then
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_static='-static'
8343
8344 case $host_os in
8345 aix*)
8346 # All AIX code is PIC.
8347 if test "$host_cpu" = ia64; then
8348 # AIX 5 now supports IA64 processor
8349 lt_prog_compiler_static='-Bstatic'
8350 fi
8351 ;;
8352
8353 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008354 case $host_cpu in
8355 powerpc)
8356 # see comment about AmigaOS4 .so support
8357 lt_prog_compiler_pic='-fPIC'
8358 ;;
8359 m68k)
8360 # FIXME: we need at least 68020 code to build shared libraries, but
8361 # adding the `-m68020' flag to GCC prevents building anything better,
8362 # like `-m68040'.
8363 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8364 ;;
8365 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00008366 ;;
8367
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008368 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008369 # PIC is the default for these OSes.
8370 ;;
8371
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008372 mingw* | cygwin* | pw32* | os2* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008373 # This hack is so that the source file can tell whether it is being
8374 # built for inclusion in a dll (and should export symbols for example).
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008375 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8376 # (--disable-auto-import) libraries
Craig Silversteinb9f23482007-03-22 00:15:41 +00008377 lt_prog_compiler_pic='-DDLL_EXPORT'
8378 ;;
8379
8380 darwin* | rhapsody*)
8381 # PIC is the default on this platform
8382 # Common symbols not allowed in MH_DYLIB files
8383 lt_prog_compiler_pic='-fno-common'
8384 ;;
8385
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008386 hpux*)
8387 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8388 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8389 # sets the default TLS model and affects inlining.
8390 case $host_cpu in
8391 hppa*64*)
8392 # +Z the default
8393 ;;
8394 *)
8395 lt_prog_compiler_pic='-fPIC'
8396 ;;
8397 esac
8398 ;;
8399
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008400 interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +00008401 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8402 # Instead, we relocate shared libraries at runtime.
8403 ;;
8404
Craig Silversteinb9f23482007-03-22 00:15:41 +00008405 msdosdjgpp*)
8406 # Just because we use GCC doesn't mean we suddenly get shared libraries
8407 # on systems that don't support them.
8408 lt_prog_compiler_can_build_shared=no
8409 enable_shared=no
8410 ;;
8411
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008412 *nto* | *qnx*)
8413 # QNX uses GNU C++, but need to define -shared option too, otherwise
8414 # it will coredump.
8415 lt_prog_compiler_pic='-fPIC -shared'
8416 ;;
8417
Craig Silversteinb9f23482007-03-22 00:15:41 +00008418 sysv4*MP*)
8419 if test -d /usr/nec; then
8420 lt_prog_compiler_pic=-Kconform_pic
8421 fi
8422 ;;
8423
Craig Silversteinb9f23482007-03-22 00:15:41 +00008424 *)
8425 lt_prog_compiler_pic='-fPIC'
8426 ;;
8427 esac
8428 else
8429 # PORTME Check for flag to pass linker flags through the system compiler.
8430 case $host_os in
8431 aix*)
8432 lt_prog_compiler_wl='-Wl,'
8433 if test "$host_cpu" = ia64; then
8434 # AIX 5 now supports IA64 processor
8435 lt_prog_compiler_static='-Bstatic'
8436 else
8437 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8438 fi
8439 ;;
8440
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008441 mingw* | cygwin* | pw32* | os2* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008442 # This hack is so that the source file can tell whether it is being
8443 # built for inclusion in a dll (and should export symbols for example).
8444 lt_prog_compiler_pic='-DDLL_EXPORT'
8445 ;;
8446
8447 hpux9* | hpux10* | hpux11*)
8448 lt_prog_compiler_wl='-Wl,'
8449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8450 # not for PA HP-UX.
Craig Silverstein690172b2007-04-20 21:16:33 +00008451 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +00008452 hppa*64*|ia64*)
8453 # +Z the default
8454 ;;
8455 *)
8456 lt_prog_compiler_pic='+Z'
8457 ;;
8458 esac
8459 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8460 lt_prog_compiler_static='${wl}-a ${wl}archive'
8461 ;;
8462
8463 irix5* | irix6* | nonstopux*)
8464 lt_prog_compiler_wl='-Wl,'
8465 # PIC (with -KPIC) is the default.
8466 lt_prog_compiler_static='-non_shared'
8467 ;;
8468
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008469 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silverstein690172b2007-04-20 21:16:33 +00008470 case $cc_basename in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008471 # old Intel for x86_64 which still supported -KPIC.
8472 ecc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-static'
8476 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008477 # icc used to be incompatible with GCC.
8478 # ICC 10 doesn't accept -KPIC any more.
8479 icc* | ifort*)
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-fPIC'
8482 lt_prog_compiler_static='-static'
8483 ;;
8484 # Lahey Fortran 8.1.
8485 lf95*)
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_pic='--shared'
8488 lt_prog_compiler_static='--static'
8489 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00008490 pgcc* | pgf77* | pgf90* | pgf95*)
8491 # Portland Group compilers (*not* the Pentium gcc compiler,
8492 # which looks to be a dead project)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-fpic'
8495 lt_prog_compiler_static='-Bstatic'
8496 ;;
8497 ccc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008498 lt_prog_compiler_wl='-Wl,'
8499 # All Alpha code is PIC.
8500 lt_prog_compiler_static='-non_shared'
8501 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008502 xl*)
8503 # IBM XL C 8.0/Fortran 10.1 on PPC
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-qpic'
8506 lt_prog_compiler_static='-qstaticlink'
8507 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008508 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008509 case `$CC -V 2>&1 | sed 5q` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008510 *Sun\ C*)
8511 # Sun C 5.9
8512 lt_prog_compiler_pic='-KPIC'
8513 lt_prog_compiler_static='-Bstatic'
8514 lt_prog_compiler_wl='-Wl,'
8515 ;;
8516 *Sun\ F*)
8517 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-Bstatic'
8520 lt_prog_compiler_wl=''
8521 ;;
8522 esac
8523 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00008524 esac
8525 ;;
8526
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008527 newsos6)
8528 lt_prog_compiler_pic='-KPIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
8531
8532 *nto* | *qnx*)
8533 # QNX uses GNU C++, but need to define -shared option too, otherwise
8534 # it will coredump.
8535 lt_prog_compiler_pic='-fPIC -shared'
8536 ;;
8537
Craig Silversteinb9f23482007-03-22 00:15:41 +00008538 osf3* | osf4* | osf5*)
8539 lt_prog_compiler_wl='-Wl,'
8540 # All OSF/1 code is PIC.
8541 lt_prog_compiler_static='-non_shared'
8542 ;;
8543
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008544 rdos*)
8545 lt_prog_compiler_static='-non_shared'
8546 ;;
8547
Craig Silversteinb9f23482007-03-22 00:15:41 +00008548 solaris*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
Craig Silverstein690172b2007-04-20 21:16:33 +00008551 case $cc_basename in
8552 f77* | f90* | f95*)
8553 lt_prog_compiler_wl='-Qoption ld ';;
8554 *)
8555 lt_prog_compiler_wl='-Wl,';;
8556 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00008557 ;;
8558
8559 sunos4*)
8560 lt_prog_compiler_wl='-Qoption ld '
8561 lt_prog_compiler_pic='-PIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 ;;
8564
Craig Silverstein690172b2007-04-20 21:16:33 +00008565 sysv4 | sysv4.2uw2* | sysv4.3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-KPIC'
8568 lt_prog_compiler_static='-Bstatic'
8569 ;;
8570
8571 sysv4*MP*)
8572 if test -d /usr/nec ;then
8573 lt_prog_compiler_pic='-Kconform_pic'
8574 lt_prog_compiler_static='-Bstatic'
8575 fi
8576 ;;
8577
Craig Silverstein690172b2007-04-20 21:16:33 +00008578 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-KPIC'
8581 lt_prog_compiler_static='-Bstatic'
8582 ;;
8583
8584 unicos*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_can_build_shared=no
8587 ;;
8588
Craig Silversteinb9f23482007-03-22 00:15:41 +00008589 uts4*)
8590 lt_prog_compiler_pic='-pic'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593
8594 *)
8595 lt_prog_compiler_can_build_shared=no
8596 ;;
8597 esac
8598 fi
8599
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008600case $host_os in
8601 # For platforms which do not support PIC, -DPIC is meaningless:
8602 *djgpp*)
8603 lt_prog_compiler_pic=
8604 ;;
8605 *)
8606 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8607 ;;
8608esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00008609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8610$as_echo "$lt_prog_compiler_pic" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008611
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008612
8613
8614
8615
8616
Craig Silversteinb9f23482007-03-22 00:15:41 +00008617#
8618# Check to make sure the PIC flag actually works.
8619#
8620if test -n "$lt_prog_compiler_pic"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00008622$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8623if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00008625else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008626 lt_cv_prog_compiler_pic_works=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008627 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00008629 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8630 # Insert the option either (1) after the last *FLAGS variable, or
8631 # (2) before a word containing "conftest.", or (3) at the end.
8632 # Note that $ac_compile itself does not contain backslashes and begins
8633 # with a dollar sign (not a hyphen), so the echo should work correctly.
8634 # The option is referenced via a variable to avoid confusing sed.
8635 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +00008636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +00008637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8638 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008639 (eval echo "\"\$as_me:8639: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008640 (eval "$lt_compile" 2>conftest.err)
8641 ac_status=$?
8642 cat conftest.err >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008643 echo "$as_me:8643: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00008644 if (exit $ac_status) && test -s "$ac_outfile"; then
8645 # The compiler can only warn and ignore the option if not recognized
Craig Silverstein690172b2007-04-20 21:16:33 +00008646 # So say no if there are warnings other than the usual output.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008647 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00008648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008650 lt_cv_prog_compiler_pic_works=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00008651 fi
8652 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008653 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008654
8655fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00008656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8657$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008658
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008659if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00008660 case $lt_prog_compiler_pic in
8661 "" | " "*) ;;
8662 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8663 esac
8664else
8665 lt_prog_compiler_pic=
8666 lt_prog_compiler_can_build_shared=no
8667fi
8668
8669fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008670
8671
8672
8673
8674
Craig Silversteinb9f23482007-03-22 00:15:41 +00008675
Craig Silverstein690172b2007-04-20 21:16:33 +00008676#
8677# Check to make sure the static flag actually works.
8678#
8679wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Craig Silversteinab3d7652009-11-10 16:33:51 +00008680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8681$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8682if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
Craig Silverstein690172b2007-04-20 21:16:33 +00008684else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008685 lt_cv_prog_compiler_static_works=no
Craig Silverstein690172b2007-04-20 21:16:33 +00008686 save_LDFLAGS="$LDFLAGS"
8687 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +00008689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8690 # The linker can only warn and ignore the option if not recognized
8691 # So say no if there are warnings
8692 if test -s conftest.err; then
8693 # Append any errors to the config.log.
8694 cat conftest.err 1>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008695 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00008696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697 if diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008698 lt_cv_prog_compiler_static_works=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00008699 fi
8700 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008701 lt_cv_prog_compiler_static_works=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00008702 fi
8703 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008704 $RM -r conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +00008705 LDFLAGS="$save_LDFLAGS"
8706
8707fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00008708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8709$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +00008710
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008711if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Craig Silverstein690172b2007-04-20 21:16:33 +00008712 :
8713else
8714 lt_prog_compiler_static=
8715fi
8716
8717
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008718
8719
8720
8721
8722
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00008724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8725if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00008727else
8728 lt_cv_prog_compiler_c_o=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008729 $RM -r conftest 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +00008730 mkdir conftest
8731 cd conftest
8732 mkdir out
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00008734
Craig Silversteinb9f23482007-03-22 00:15:41 +00008735 lt_compiler_flag="-o out/conftest2.$ac_objext"
8736 # Insert the option either (1) after the last *FLAGS variable, or
8737 # (2) before a word containing "conftest.", or (3) at the end.
8738 # Note that $ac_compile itself does not contain backslashes and begins
8739 # with a dollar sign (not a hyphen), so the echo should work correctly.
8740 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +00008741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +00008742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008744 (eval echo "\"\$as_me:8744: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008745 (eval "$lt_compile" 2>out/conftest.err)
8746 ac_status=$?
8747 cat out/conftest.err >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008748 echo "$as_me:8748: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00008749 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8750 then
8751 # The compiler can only warn and ignore the option if not recognized
8752 # So say no if there are warnings
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008753 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00008754 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8755 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00008756 lt_cv_prog_compiler_c_o=yes
8757 fi
8758 fi
Craig Silverstein690172b2007-04-20 21:16:33 +00008759 chmod u+w . 2>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008760 $RM conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +00008761 # SGI C++ compiler will create directory out/ii_files/ for
8762 # template instantiation
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008763 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8764 $RM out/* && rmdir out
Craig Silversteinb9f23482007-03-22 00:15:41 +00008765 cd ..
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008766 $RM -r conftest
8767 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008768
8769fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00008770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8771$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008772
8773
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008774
8775
8776
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8779$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8780if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8782else
8783 lt_cv_prog_compiler_c_o=no
8784 $RM -r conftest 2>/dev/null
8785 mkdir conftest
8786 cd conftest
8787 mkdir out
8788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8789
8790 lt_compiler_flag="-o out/conftest2.$ac_objext"
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 lt_compile=`echo "$ac_compile" | $SED \
8796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798 -e 's:$: $lt_compiler_flag:'`
8799 (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800 (eval "$lt_compile" 2>out/conftest.err)
8801 ac_status=$?
8802 cat out/conftest.err >&5
8803 echo "$as_me:8803: \$? = $ac_status" >&5
8804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8805 then
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings
8808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_c_o=yes
8812 fi
8813 fi
8814 chmod u+w . 2>&5
8815 $RM conftest*
8816 # SGI C++ compiler will create directory out/ii_files/ for
8817 # template instantiation
8818 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8819 $RM out/* && rmdir out
8820 cd ..
8821 $RM -r conftest
8822 $RM conftest*
8823
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8826$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8827
8828
8829
8830
Craig Silversteinb9f23482007-03-22 00:15:41 +00008831hard_links="nottested"
8832if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8833 # do not overwrite the value of need_locks provided by the user
Craig Silversteinab3d7652009-11-10 16:33:51 +00008834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8835$as_echo_n "checking if we can lock with hard links... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008836 hard_links=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008837 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839 touch conftest.a
8840 ln conftest.a conftest.b 2>&5 || hard_links=no
8841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Craig Silversteinab3d7652009-11-10 16:33:51 +00008842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8843$as_echo "$hard_links" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008844 if test "$hard_links" = no; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00008845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8846$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00008847 need_locks=warn
8848 fi
8849else
8850 need_locks=no
8851fi
8852
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008853
8854
8855
8856
8857
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00008859$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008860
8861 runpath_var=
8862 allow_undefined_flag=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008863 always_export_symbols=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00008864 archive_cmds=
8865 archive_expsym_cmds=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008866 compiler_needs_object=no
8867 enable_shared_with_static_runtimes=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00008868 export_dynamic_flag_spec=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008869 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8870 hardcode_automatic=no
8871 hardcode_direct=no
8872 hardcode_direct_absolute=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00008873 hardcode_libdir_flag_spec=
8874 hardcode_libdir_flag_spec_ld=
8875 hardcode_libdir_separator=
Craig Silversteinb9f23482007-03-22 00:15:41 +00008876 hardcode_minus_L=no
8877 hardcode_shlibpath_var=unsupported
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008878 inherit_rpath=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00008879 link_all_deplibs=unknown
Craig Silversteinb9f23482007-03-22 00:15:41 +00008880 module_cmds=
8881 module_expsym_cmds=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008882 old_archive_from_new_cmds=
8883 old_archive_from_expsyms_cmds=
8884 thread_safe_flag_spec=
8885 whole_archive_flag_spec=
Craig Silversteinb9f23482007-03-22 00:15:41 +00008886 # include_expsyms should be a list of space-separated symbols to be *always*
8887 # included in the symbol list
8888 include_expsyms=
8889 # exclude_expsyms can be an extended regexp of symbols to exclude
8890 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892 # as well as any symbol that contains `d'.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008893 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Craig Silversteinb9f23482007-03-22 00:15:41 +00008894 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895 # platforms (ab)use it in PIC code, but their linkers get confused if
8896 # the symbol is explicitly referenced. Since portable code cannot
8897 # rely on this symbol name, it's probably fine to never include it in
8898 # preloaded symbol tables.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008899 # Exclude shared library initialization/finalization symbols.
Craig Silversteinb9f23482007-03-22 00:15:41 +00008900 extract_expsyms_cmds=
8901
8902 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008903 cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8905 # When not using gcc, we currently assume that we are using
8906 # Microsoft Visual C++.
8907 if test "$GCC" != yes; then
8908 with_gnu_ld=no
8909 fi
8910 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00008911 interix*)
8912 # we just hope/assume this is gcc and not c89 (= MSVC++)
8913 with_gnu_ld=yes
8914 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00008915 openbsd*)
8916 with_gnu_ld=no
8917 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008918 linux* | k*bsd*-gnu)
8919 link_all_deplibs=no
8920 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00008921 esac
8922
8923 ld_shlibs=yes
8924 if test "$with_gnu_ld" = yes; then
8925 # If archive_cmds runs LD, not CC, wlarc should be empty
8926 wlarc='${wl}'
8927
Craig Silverstein690172b2007-04-20 21:16:33 +00008928 # Set some defaults for GNU ld with shared library support. These
8929 # are reset later if shared libraries are not supported. Putting them
8930 # here allows them to be overridden if necessary.
8931 runpath_var=LD_RUN_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Craig Silverstein690172b2007-04-20 21:16:33 +00008933 export_dynamic_flag_spec='${wl}--export-dynamic'
8934 # ancient GNU ld didn't support --whole-archive et. al.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008935 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8936 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8937 else
8938 whole_archive_flag_spec=
Craig Silverstein690172b2007-04-20 21:16:33 +00008939 fi
8940 supports_anon_versioning=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008941 case `$LD -v 2>&1` in
8942 *GNU\ gold*) supports_anon_versioning=yes ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00008943 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8944 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8945 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8946 *\ 2.11.*) ;; # other 2.11 versions
8947 *) supports_anon_versioning=yes ;;
8948 esac
8949
Craig Silversteinb9f23482007-03-22 00:15:41 +00008950 # See if GNU ld supports shared libraries.
8951 case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008952 aix[3-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008953 # On AIX/PPC, the GNU linker is very broken
8954 if test "$host_cpu" != ia64; then
8955 ld_shlibs=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008956 cat <<_LT_EOF 1>&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00008957
8958*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8959*** to be unable to reliably create shared libraries on AIX.
8960*** Therefore, libtool is disabling shared libraries support. If you
8961*** really care for shared libraries, you may want to modify your PATH
8962*** so that a non-GNU linker is found, and then restart.
8963
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008964_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00008965 fi
8966 ;;
8967
8968 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008969 case $host_cpu in
8970 powerpc)
8971 # see comment about AmigaOS4 .so support
8972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8973 archive_expsym_cmds=''
8974 ;;
8975 m68k)
8976 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)'
8977 hardcode_libdir_flag_spec='-L$libdir'
8978 hardcode_minus_L=yes
8979 ;;
8980 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00008981 ;;
8982
8983 beos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00008985 allow_undefined_flag=unsupported
8986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8987 # support --undefined. This deserves some investigation. FIXME
8988 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
8993
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008994 cygwin* | mingw* | pw32* | cegcc*)
8995 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Craig Silversteinb9f23482007-03-22 00:15:41 +00008996 # as there is no search path for DLLs.
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 allow_undefined_flag=unsupported
8999 always_export_symbols=no
9000 enable_shared_with_static_runtimes=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009002
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009003 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009005 # If the export-symbols file already is a .def file (1st line
9006 # is EXPORTS), use it as is; otherwise, prepend...
9007 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9008 cp $export_symbols $output_objdir/$soname.def;
9009 else
9010 echo EXPORTS > $output_objdir/$soname.def;
9011 cat $export_symbols >> $output_objdir/$soname.def;
9012 fi~
Craig Silverstein690172b2007-04-20 21:16:33 +00009013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009014 else
9015 ld_shlibs=no
9016 fi
9017 ;;
9018
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009019 interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +00009020 hardcode_direct=no
9021 hardcode_shlibpath_var=no
9022 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9023 export_dynamic_flag_spec='${wl}-E'
9024 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9025 # Instead, shared libraries are loaded at an image base (0x10000000 by
9026 # default) and relocated if they conflict, which is a slow very memory
9027 # consuming and fragmenting process. To avoid this, we pick a random,
9028 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9029 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9030 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9031 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'
9032 ;;
9033
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009034 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9035 tmp_diet=no
9036 if test "$host_os" = linux-dietlibc; then
9037 case $cc_basename in
9038 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9039 esac
9040 fi
9041 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9042 && test "$tmp_diet" = no
9043 then
Craig Silverstein690172b2007-04-20 21:16:33 +00009044 tmp_addflag=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009045 tmp_sharedflag='-shared'
Craig Silverstein690172b2007-04-20 21:16:33 +00009046 case $cc_basename,$host_cpu in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009047 pgcc*) # Portland Group C compiler
9048 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'
Craig Silverstein690172b2007-04-20 21:16:33 +00009049 tmp_addflag=' $pic_flag'
9050 ;;
9051 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009052 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'
Craig Silverstein690172b2007-04-20 21:16:33 +00009053 tmp_addflag=' $pic_flag -Mnomain' ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009054 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Craig Silverstein690172b2007-04-20 21:16:33 +00009055 tmp_addflag=' -i_dynamic' ;;
9056 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9057 tmp_addflag=' -i_dynamic -nofor_main' ;;
9058 ifc* | ifort*) # Intel Fortran compiler
9059 tmp_addflag=' -nofor_main' ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009060 lf95*) # Lahey Fortran 8.1
9061 whole_archive_flag_spec=
9062 tmp_sharedflag='--shared' ;;
9063 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9064 tmp_sharedflag='-qmkshrobj'
9065 tmp_addflag= ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00009066 esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009067 case `$CC -V 2>&1 | sed 5q` in
9068 *Sun\ C*) # Sun C 5.9
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009069 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'
9070 compiler_needs_object=yes
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009071 tmp_sharedflag='-G' ;;
9072 *Sun\ F*) # Sun Fortran 8.3
9073 tmp_sharedflag='-G' ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009074 esac
9075 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Craig Silverstein690172b2007-04-20 21:16:33 +00009076
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009077 if test "x$supports_anon_versioning" = xyes; then
9078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9080 echo "local: *; };" >> $output_objdir/$libname.ver~
9081 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9082 fi
9083
9084 case $cc_basename in
9085 xlf*)
9086 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9087 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9088 hardcode_libdir_flag_spec=
9089 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9090 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9091 if test "x$supports_anon_versioning" = xyes; then
9092 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9094 echo "local: *; };" >> $output_objdir/$libname.ver~
9095 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9096 fi
9097 ;;
9098 esac
Craig Silverstein690172b2007-04-20 21:16:33 +00009099 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009100 ld_shlibs=no
Craig Silverstein690172b2007-04-20 21:16:33 +00009101 fi
9102 ;;
9103
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009104 netbsd* | netbsdelf*-gnu)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009106 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9107 wlarc=
9108 else
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9111 fi
9112 ;;
9113
Craig Silverstein690172b2007-04-20 21:16:33 +00009114 solaris*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009115 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009116 ld_shlibs=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009117 cat <<_LT_EOF 1>&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00009118
9119*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9120*** create shared libraries on Solaris systems. Therefore, libtool
9121*** is disabling shared libraries support. We urge you to upgrade GNU
9122*** binutils to release 2.9.1 or newer. Another option is to modify
9123*** your PATH or compiler configuration so that the native linker is
9124*** used, and then restart.
9125
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009126_LT_EOF
9127 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9130 else
9131 ld_shlibs=no
9132 fi
9133 ;;
9134
Craig Silverstein690172b2007-04-20 21:16:33 +00009135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9136 case `$LD -v 2>&1` in
9137 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9138 ld_shlibs=no
9139 cat <<_LT_EOF 1>&2
9140
9141*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9142*** reliably create shared libraries on SCO systems. Therefore, libtool
9143*** is disabling shared libraries support. We urge you to upgrade GNU
9144*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9145*** your PATH or compiler configuration so that the native linker is
9146*** used, and then restart.
9147
9148_LT_EOF
9149 ;;
9150 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009151 # For security reasons, it is highly recommended that you always
9152 # use absolute paths for naming shared libraries, and exclude the
9153 # DT_RUNPATH tag from executables and libraries. But doing so
9154 # requires that you compile everything twice, which is a pain.
9155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Craig Silverstein690172b2007-04-20 21:16:33 +00009159 else
9160 ld_shlibs=no
9161 fi
9162 ;;
9163 esac
9164 ;;
9165
Craig Silversteinb9f23482007-03-22 00:15:41 +00009166 sunos4*)
9167 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9168 wlarc=
9169 hardcode_direct=yes
9170 hardcode_shlibpath_var=no
9171 ;;
9172
Craig Silversteinb9f23482007-03-22 00:15:41 +00009173 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9177 else
9178 ld_shlibs=no
9179 fi
9180 ;;
9181 esac
9182
Craig Silverstein690172b2007-04-20 21:16:33 +00009183 if test "$ld_shlibs" = no; then
9184 runpath_var=
9185 hardcode_libdir_flag_spec=
9186 export_dynamic_flag_spec=
9187 whole_archive_flag_spec=
Craig Silversteinb9f23482007-03-22 00:15:41 +00009188 fi
9189 else
9190 # PORTME fill in a description of your system's linker (not GNU ld)
9191 case $host_os in
9192 aix3*)
9193 allow_undefined_flag=unsupported
9194 always_export_symbols=yes
9195 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'
9196 # Note: this linker hardcodes the directories in LIBPATH if there
9197 # are no directories specified by -L.
9198 hardcode_minus_L=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00009199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009200 # Neither direct hardcoding nor static linking is supported with a
9201 # broken collect2.
9202 hardcode_direct=unsupported
9203 fi
9204 ;;
9205
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009206 aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009207 if test "$host_cpu" = ia64; then
9208 # On IA64, the linker does run time linking by default, so we don't
9209 # have to do anything special.
9210 aix_use_runtimelinking=no
9211 exp_sym_flag='-Bexport'
9212 no_entry_flag=""
9213 else
9214 # If we're using GNU nm, then we don't want the "-C" option.
9215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009216 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9217 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009218 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009219 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009220 fi
9221 aix_use_runtimelinking=no
9222
9223 # Test if we are trying to use run time linking or normal
9224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9225 # need to do runtime linking.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009227 for ld_flag in $LDFLAGS; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9229 aix_use_runtimelinking=yes
9230 break
9231 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009232 done
Craig Silverstein690172b2007-04-20 21:16:33 +00009233 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009234 esac
9235
9236 exp_sym_flag='-bexport'
9237 no_entry_flag='-bnoentry'
9238 fi
9239
9240 # When large executables or shared objects are built, AIX ld can
9241 # have problems creating the table of contents. If linking a library
9242 # or program results in "error TOC overflow" add -mminimal-toc to
9243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9245
9246 archive_cmds=''
9247 hardcode_direct=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009248 hardcode_direct_absolute=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00009249 hardcode_libdir_separator=':'
9250 link_all_deplibs=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009251 file_list_spec='${wl}-f,'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009252
9253 if test "$GCC" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009254 case $host_os in aix4.[012]|aix4.[012].*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009255 # We only want to do this on AIX 4.2 and lower, the check
9256 # below for broken collect2 doesn't work under 4.3+
9257 collect2name=`${CC} -print-prog-name=collect2`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009258 if test -f "$collect2name" &&
9259 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +00009260 then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009261 # We have reworked collect2
9262 :
Craig Silversteinb9f23482007-03-22 00:15:41 +00009263 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009264 # We have old collect2
9265 hardcode_direct=unsupported
9266 # It fails to find uninstalled libraries when the uninstalled
9267 # path is not listed in the libpath. Setting hardcode_minus_L
9268 # to unsupported forces relinking
9269 hardcode_minus_L=yes
9270 hardcode_libdir_flag_spec='-L$libdir'
9271 hardcode_libdir_separator=
Craig Silversteinb9f23482007-03-22 00:15:41 +00009272 fi
Craig Silverstein690172b2007-04-20 21:16:33 +00009273 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009274 esac
9275 shared_flag='-shared'
Craig Silverstein690172b2007-04-20 21:16:33 +00009276 if test "$aix_use_runtimelinking" = yes; then
9277 shared_flag="$shared_flag "'${wl}-G'
9278 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009279 link_all_deplibs=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009280 else
9281 # not using gcc
9282 if test "$host_cpu" = ia64; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9284 # chokes on -Wl,-G. The following line is correct:
Craig Silversteinb9f23482007-03-22 00:15:41 +00009285 shared_flag='-G'
9286 else
Craig Silverstein690172b2007-04-20 21:16:33 +00009287 if test "$aix_use_runtimelinking" = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009288 shared_flag='${wl}-G'
9289 else
9290 shared_flag='${wl}-bM:SRE'
Craig Silverstein690172b2007-04-20 21:16:33 +00009291 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009292 fi
9293 fi
9294
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009295 export_dynamic_flag_spec='${wl}-bexpall'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009296 # It seems that -bexpall does not export symbols beginning with
9297 # underscore (_), so it is better to generate a list of symbols to export.
9298 always_export_symbols=yes
9299 if test "$aix_use_runtimelinking" = yes; then
9300 # Warning - without using the other runtime loading flags (-brtl),
9301 # -berok will link without error, but may produce a broken library.
9302 allow_undefined_flag='-berok'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009303 # Determine the default libpath from the value encoded in an
9304 # empty executable.
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009306/* end confdefs.h. */
9307
9308int
9309main ()
9310{
9311
9312 ;
9313 return 0;
9314}
9315_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00009316if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00009317
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009318lt_aix_libpath_sed='
9319 /Import File Strings/,/^$/ {
9320 /^0/ {
9321 s/^0 *\(.*\)$/\1/
9322 p
9323 }
9324 }'
9325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00009326# Check for a 64-bit object if we didn't find anything.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009327if test -z "$aix_libpath"; then
9328 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9329fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009330fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00009331rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009333if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9334
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009335 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9336 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"
9337 else
Craig Silversteinb9f23482007-03-22 00:15:41 +00009338 if test "$host_cpu" = ia64; then
9339 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9340 allow_undefined_flag="-z nodefs"
Craig Silverstein690172b2007-04-20 21:16:33 +00009341 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"
Craig Silversteinb9f23482007-03-22 00:15:41 +00009342 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009343 # Determine the default libpath from the value encoded in an
9344 # empty executable.
Craig Silversteinab3d7652009-11-10 16:33:51 +00009345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009346/* end confdefs.h. */
9347
9348int
9349main ()
9350{
9351
9352 ;
9353 return 0;
9354}
9355_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +00009356if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +00009357
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009358lt_aix_libpath_sed='
9359 /Import File Strings/,/^$/ {
9360 /^0/ {
9361 s/^0 *\(.*\)$/\1/
9362 p
9363 }
9364 }'
9365aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00009366# Check for a 64-bit object if we didn't find anything.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009367if test -z "$aix_libpath"; then
9368 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9369fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009370fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00009371rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374
9375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376 # Warning - without using the other run time loading flags,
9377 # -berok will link without error, but may produce a broken library.
9378 no_undefined_flag=' ${wl}-bernotok'
9379 allow_undefined_flag=' ${wl}-berok'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009380 # Exported symbols can be pulled into shared objects from archives
Craig Silverstein690172b2007-04-20 21:16:33 +00009381 whole_archive_flag_spec='$convenience'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009382 archive_cmds_need_lc=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00009383 # This is similar to how AIX traditionally builds its shared libraries.
9384 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009385 fi
9386 fi
9387 ;;
9388
9389 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009390 case $host_cpu in
9391 powerpc)
9392 # see comment about AmigaOS4 .so support
9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9394 archive_expsym_cmds=''
9395 ;;
9396 m68k)
9397 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)'
9398 hardcode_libdir_flag_spec='-L$libdir'
9399 hardcode_minus_L=yes
9400 ;;
9401 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00009402 ;;
9403
Craig Silverstein690172b2007-04-20 21:16:33 +00009404 bsdi[45]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009405 export_dynamic_flag_spec=-rdynamic
9406 ;;
9407
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009408 cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009409 # When not using gcc, we currently assume that we are using
9410 # Microsoft Visual C++.
9411 # hardcode_libdir_flag_spec is actually meaningless, as there is
9412 # no search path for DLLs.
9413 hardcode_libdir_flag_spec=' '
9414 allow_undefined_flag=unsupported
9415 # Tell ltmain to make .lib files, not .a files.
9416 libext=lib
9417 # Tell ltmain to make .dll files, not .so files.
Craig Silverstein690172b2007-04-20 21:16:33 +00009418 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +00009419 # FIXME: Setting linknames here is a bad hack.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009420 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
Craig Silversteinb9f23482007-03-22 00:15:41 +00009421 # The linker will automatically build a .lib file if we build a DLL.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009422 old_archive_from_new_cmds='true'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009423 # FIXME: Should let the user specify the lib program.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009424 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009425 fix_srcfile_path='`cygpath -w "$srcfile"`'
9426 enable_shared_with_static_runtimes=yes
9427 ;;
9428
9429 darwin* | rhapsody*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009430
9431
9432 archive_cmds_need_lc=no
9433 hardcode_direct=no
9434 hardcode_automatic=yes
9435 hardcode_shlibpath_var=unsupported
9436 whole_archive_flag_spec=''
9437 link_all_deplibs=yes
9438 allow_undefined_flag="$_lt_dar_allow_undefined"
9439 case $cc_basename in
9440 ifort*) _lt_dar_can_shared=yes ;;
9441 *) _lt_dar_can_shared=$GCC ;;
9442 esac
9443 if test "$_lt_dar_can_shared" = "yes"; then
9444 output_verbose_link_cmd=echo
9445 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9446 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9447 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}"
9448 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}"
9449
9450 else
9451 ld_shlibs=no
9452 fi
9453
Craig Silversteinb9f23482007-03-22 00:15:41 +00009454 ;;
9455
9456 dgux*)
9457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458 hardcode_libdir_flag_spec='-L$libdir'
9459 hardcode_shlibpath_var=no
9460 ;;
9461
9462 freebsd1*)
9463 ld_shlibs=no
9464 ;;
9465
9466 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9467 # support. Future versions do this automatically, but an explicit c++rt0.o
9468 # does not break anything, and helps significantly (at the cost of a little
9469 # extra space).
9470 freebsd2.2*)
9471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9472 hardcode_libdir_flag_spec='-R$libdir'
9473 hardcode_direct=yes
9474 hardcode_shlibpath_var=no
9475 ;;
9476
9477 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9478 freebsd2*)
9479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_direct=yes
9481 hardcode_minus_L=yes
9482 hardcode_shlibpath_var=no
9483 ;;
9484
9485 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Craig Silverstein690172b2007-04-20 21:16:33 +00009486 freebsd* | dragonfly*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009487 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9488 hardcode_libdir_flag_spec='-R$libdir'
9489 hardcode_direct=yes
9490 hardcode_shlibpath_var=no
9491 ;;
9492
9493 hpux9*)
9494 if test "$GCC" = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009495 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009496 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009497 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009498 fi
9499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500 hardcode_libdir_separator=:
9501 hardcode_direct=yes
9502
9503 # hardcode_minus_L: Not really in the search PATH,
9504 # but as the default location of the library.
9505 hardcode_minus_L=yes
9506 export_dynamic_flag_spec='${wl}-E'
9507 ;;
9508
Craig Silverstein690172b2007-04-20 21:16:33 +00009509 hpux10*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009511 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9512 else
9513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514 fi
9515 if test "$with_gnu_ld" = no; then
9516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009517 hardcode_libdir_flag_spec_ld='+b $libdir'
Craig Silverstein690172b2007-04-20 21:16:33 +00009518 hardcode_libdir_separator=:
Craig Silverstein690172b2007-04-20 21:16:33 +00009519 hardcode_direct=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009520 hardcode_direct_absolute=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00009521 export_dynamic_flag_spec='${wl}-E'
Craig Silverstein690172b2007-04-20 21:16:33 +00009522 # hardcode_minus_L: Not really in the search PATH,
9523 # but as the default location of the library.
9524 hardcode_minus_L=yes
9525 fi
9526 ;;
9527
9528 hpux11*)
9529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9530 case $host_cpu in
9531 hppa*64*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009532 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00009534 ia64*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Craig Silverstein690172b2007-04-20 21:16:33 +00009536 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009537 *)
9538 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9539 ;;
9540 esac
9541 else
Craig Silverstein690172b2007-04-20 21:16:33 +00009542 case $host_cpu in
9543 hppa*64*)
9544 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 ;;
9546 ia64*)
9547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009548 ;;
9549 *)
Craig Silverstein690172b2007-04-20 21:16:33 +00009550 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009551 ;;
9552 esac
9553 fi
9554 if test "$with_gnu_ld" = no; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9556 hardcode_libdir_separator=:
Craig Silversteinb9f23482007-03-22 00:15:41 +00009557
Craig Silverstein690172b2007-04-20 21:16:33 +00009558 case $host_cpu in
9559 hppa*64*|ia64*)
Craig Silverstein690172b2007-04-20 21:16:33 +00009560 hardcode_direct=no
9561 hardcode_shlibpath_var=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009562 ;;
9563 *)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009564 hardcode_direct=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009565 hardcode_direct_absolute=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00009566 export_dynamic_flag_spec='${wl}-E'
9567
9568 # hardcode_minus_L: Not really in the search PATH,
9569 # but as the default location of the library.
9570 hardcode_minus_L=yes
9571 ;;
9572 esac
9573 fi
9574 ;;
9575
9576 irix5* | irix6* | nonstopux*)
9577 if test "$GCC" = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009578 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'
9579 # Try to use the -exported_symbol ld option, if it does not
9580 # work, assume that -exports_file does not work either and
9581 # implicitly export all symbols.
9582 save_LDFLAGS="$LDFLAGS"
9583 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h. */
9586int foo(void) {}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589 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'
9590
9591fi
9592rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9594 LDFLAGS="$save_LDFLAGS"
Craig Silversteinb9f23482007-03-22 00:15:41 +00009595 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009596 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'
9597 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009598 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009599 archive_cmds_need_lc='no'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 hardcode_libdir_separator=:
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009602 inherit_rpath=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00009603 link_all_deplibs=yes
9604 ;;
9605
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009606 netbsd* | netbsdelf*-gnu)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9609 else
9610 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9611 fi
9612 hardcode_libdir_flag_spec='-R$libdir'
9613 hardcode_direct=yes
9614 hardcode_shlibpath_var=no
9615 ;;
9616
9617 newsos6)
9618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619 hardcode_direct=yes
9620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621 hardcode_libdir_separator=:
9622 hardcode_shlibpath_var=no
9623 ;;
9624
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009625 *nto* | *qnx*)
9626 ;;
9627
Craig Silversteinb9f23482007-03-22 00:15:41 +00009628 openbsd*)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009629 if test -f /usr/libexec/ld.so; then
9630 hardcode_direct=yes
9631 hardcode_shlibpath_var=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009632 hardcode_direct_absolute=yes
9633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9637 export_dynamic_flag_spec='${wl}-E'
9638 else
9639 case $host_os in
9640 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_libdir_flag_spec='-R$libdir'
9643 ;;
9644 *)
9645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647 ;;
9648 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009649 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009650 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009651 ld_shlibs=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009652 fi
9653 ;;
9654
9655 os2*)
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9658 allow_undefined_flag=unsupported
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009659 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'
9660 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009661 ;;
9662
9663 osf3*)
9664 if test "$GCC" = yes; then
9665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009666 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009667 else
9668 allow_undefined_flag=' -expect_unresolved \*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009669 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009670 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009671 archive_cmds_need_lc='no'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673 hardcode_libdir_separator=:
9674 ;;
9675
9676 osf4* | osf5*) # as osf3* with the addition of -msym flag
9677 if test "$GCC" = yes; then
9678 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009679 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9681 else
9682 allow_undefined_flag=' -expect_unresolved \*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009683 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'
9684 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~
9685 $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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009686
9687 # Both c and cxx compiler support -rpath directly
9688 hardcode_libdir_flag_spec='-rpath $libdir'
9689 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009690 archive_cmds_need_lc='no'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009691 hardcode_libdir_separator=:
9692 ;;
9693
Craig Silversteinb9f23482007-03-22 00:15:41 +00009694 solaris*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009695 no_undefined_flag=' -z defs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009696 if test "$GCC" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009697 wlarc='${wl}'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009698 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9700 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009701 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009702 case `$CC -V 2>&1` in
9703 *"Compilers 5.0"*)
9704 wlarc=''
9705 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9708 ;;
9709 *)
9710 wlarc='${wl}'
9711 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9713 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9714 ;;
9715 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00009716 fi
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_shlibpath_var=no
9719 case $host_os in
9720 solaris2.[0-5] | solaris2.[0-5].*) ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00009721 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009722 # The compiler driver will combine and reorder linker options,
9723 # but understands `-z linker_flag'. GCC discards it without `$wl',
9724 # but is careful enough not to reorder.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009725 # Supported since Solaris 2.6 (maybe 2.5.1?)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009726 if test "$GCC" = yes; then
9727 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9728 else
9729 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9730 fi
9731 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009732 esac
9733 link_all_deplibs=yes
9734 ;;
9735
9736 sunos4*)
9737 if test "x$host_vendor" = xsequent; then
9738 # Use $CC to link under sequent, because it throws in some extra .o
9739 # files that make .init and .fini sections work.
9740 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9743 fi
9744 hardcode_libdir_flag_spec='-L$libdir'
9745 hardcode_direct=yes
9746 hardcode_minus_L=yes
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 sysv4)
9751 case $host_vendor in
9752 sni)
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_direct=yes # is this really true???
9755 ;;
9756 siemens)
9757 ## LD is ld it makes a PLAMLIB
9758 ## CC just makes a GrossModule.
9759 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760 reload_cmds='$CC -r -o $output$reload_objs'
9761 hardcode_direct=no
9762 ;;
9763 motorola)
9764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9766 ;;
9767 esac
9768 runpath_var='LD_RUN_PATH'
9769 hardcode_shlibpath_var=no
9770 ;;
9771
9772 sysv4.3*)
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_shlibpath_var=no
9775 export_dynamic_flag_spec='-Bexport'
9776 ;;
9777
9778 sysv4*MP*)
9779 if test -d /usr/nec; then
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_shlibpath_var=no
9782 runpath_var=LD_RUN_PATH
9783 hardcode_runpath_var=yes
9784 ld_shlibs=yes
9785 fi
9786 ;;
9787
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Craig Silverstein690172b2007-04-20 21:16:33 +00009789 no_undefined_flag='${wl}-z,text'
9790 archive_cmds_need_lc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009791 hardcode_shlibpath_var=no
Craig Silverstein690172b2007-04-20 21:16:33 +00009792 runpath_var='LD_RUN_PATH'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009793
Craig Silversteinb9f23482007-03-22 00:15:41 +00009794 if test "$GCC" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009795 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009797 else
Craig Silverstein690172b2007-04-20 21:16:33 +00009798 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009800 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009801 ;;
9802
Craig Silverstein690172b2007-04-20 21:16:33 +00009803 sysv5* | sco3.2v5* | sco5v6*)
9804 # Note: We can NOT use -z defs as we might desire, because we do not
9805 # link with -lc, and that would cause any symbols used from libc to
9806 # always be unresolved, which means just about no library would
9807 # ever link correctly. If we're not using GNU ld we use -z text
9808 # though, which does catch some bad symbols but isn't as heavy-handed
9809 # as -z defs.
9810 no_undefined_flag='${wl}-z,text'
9811 allow_undefined_flag='${wl}-z,nodefs'
9812 archive_cmds_need_lc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009813 hardcode_shlibpath_var=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009814 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Craig Silverstein690172b2007-04-20 21:16:33 +00009815 hardcode_libdir_separator=':'
9816 link_all_deplibs=yes
9817 export_dynamic_flag_spec='${wl}-Bexport'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009818 runpath_var='LD_RUN_PATH'
Craig Silverstein690172b2007-04-20 21:16:33 +00009819
9820 if test "$GCC" = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silverstein690172b2007-04-20 21:16:33 +00009823 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silverstein690172b2007-04-20 21:16:33 +00009826 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009827 ;;
9828
9829 uts4*)
9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_libdir_flag_spec='-L$libdir'
9832 hardcode_shlibpath_var=no
9833 ;;
9834
9835 *)
9836 ld_shlibs=no
9837 ;;
9838 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009839
9840 if test x$host_vendor = xsni; then
9841 case $host in
9842 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9843 export_dynamic_flag_spec='${wl}-Blargedynsym'
9844 ;;
9845 esac
9846 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009847 fi
9848
Craig Silversteinab3d7652009-11-10 16:33:51 +00009849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9850$as_echo "$ld_shlibs" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009851test "$ld_shlibs" = no && can_build_shared=no
9852
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009853with_gnu_ld=$with_gnu_ld
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
Craig Silversteinb9f23482007-03-22 00:15:41 +00009869#
9870# Do we need to explicitly link libc?
9871#
9872case "x$archive_cmds_need_lc" in
9873x|xyes)
9874 # Assume -lc should be added
9875 archive_cmds_need_lc=yes
9876
9877 if test "$enable_shared" = yes && test "$GCC" = yes; then
9878 case $archive_cmds in
9879 *'~'*)
9880 # FIXME: we may have to deal with multi-command sequences.
9881 ;;
9882 '$CC '*)
9883 # Test whether the compiler implicitly links with -lc since on some
9884 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9885 # to ld, don't add -lc before -lgcc.
Craig Silversteinab3d7652009-11-10 16:33:51 +00009886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9887$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009888 $RM conftest*
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009890
Craig Silversteinab3d7652009-11-10 16:33:51 +00009891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00009892 (eval $ac_compile) 2>&5
9893 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +00009894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9895 test $ac_status = 0; } 2>conftest.err; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009896 soname=conftest
9897 lib=conftest
9898 libobjs=conftest.$ac_objext
9899 deplibs=
9900 wl=$lt_prog_compiler_wl
Craig Silverstein690172b2007-04-20 21:16:33 +00009901 pic_flag=$lt_prog_compiler_pic
Craig Silversteinb9f23482007-03-22 00:15:41 +00009902 compiler_flags=-v
9903 linker_flags=-v
9904 verstring=
9905 output_objdir=.
9906 libname=conftest
9907 lt_save_allow_undefined_flag=$allow_undefined_flag
9908 allow_undefined_flag=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9910 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00009911 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +00009912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9913 test $ac_status = 0; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009914 then
9915 archive_cmds_need_lc=no
9916 else
9917 archive_cmds_need_lc=yes
9918 fi
9919 allow_undefined_flag=$lt_save_allow_undefined_flag
9920 else
9921 cat conftest.err 1>&5
9922 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009923 $RM conftest*
Craig Silversteinab3d7652009-11-10 16:33:51 +00009924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9925$as_echo "$archive_cmds_need_lc" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009926 ;;
9927 esac
9928 fi
9929 ;;
9930esac
9931
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000010089$as_echo_n "checking dynamic linker characteristics... " >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010090
Craig Silversteinb9f23482007-03-22 00:15:41 +000010091if test "$GCC" = yes; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010092 case $host_os in
10093 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10094 *) lt_awk_arg="/^libraries:/" ;;
10095 esac
10096 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010097 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010098 # if the path contains ";" then we assume it to be the separator
10099 # otherwise default to the standard path separator (i.e. ":") - it is
10100 # assumed that no part of a normal pathname contains ";" but that should
10101 # okay in the real world where ";" in dirpaths is itself problematic.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010102 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010103 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010104 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010105 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010106 # Ok, now we have the path, separated by spaces, we can step through it
10107 # and add multilib dir if necessary.
10108 lt_tmp_lt_search_path_spec=
10109 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10110 for lt_sys_path in $lt_search_path_spec; do
10111 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10112 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10113 else
10114 test -d "$lt_sys_path" && \
10115 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10116 fi
10117 done
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010118 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010119BEGIN {RS=" "; FS="/|\n";} {
10120 lt_foo="";
10121 lt_count=0;
10122 for (lt_i = NF; lt_i > 0; lt_i--) {
10123 if ($lt_i != "" && $lt_i != ".") {
10124 if ($lt_i == "..") {
10125 lt_count++;
10126 } else {
10127 if (lt_count == 0) {
10128 lt_foo="/" $lt_i lt_foo;
10129 } else {
10130 lt_count--;
10131 }
10132 }
10133 }
10134 }
10135 if (lt_foo != "") { lt_freq[lt_foo]++; }
10136 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10137}'`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010138 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010139else
10140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10141fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010142library_names_spec=
10143libname_spec='lib$name'
10144soname_spec=
10145shrext_cmds=".so"
10146postinstall_cmds=
10147postuninstall_cmds=
10148finish_cmds=
10149finish_eval=
10150shlibpath_var=
10151shlibpath_overrides_runpath=unknown
10152version_type=none
10153dynamic_linker="$host_os ld.so"
10154sys_lib_dlsearch_path_spec="/lib /usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010155need_lib_prefix=unknown
10156hardcode_into_libs=no
10157
10158# when you set need_version to no, make sure it does not cause -set_version
10159# flags to be left without arguments
10160need_version=unknown
10161
10162case $host_os in
10163aix3*)
10164 version_type=linux
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10166 shlibpath_var=LIBPATH
10167
10168 # AIX 3 has no versioning support, so we append a major version to the name.
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 ;;
10171
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010172aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010173 version_type=linux
10174 need_lib_prefix=no
10175 need_version=no
10176 hardcode_into_libs=yes
10177 if test "$host_cpu" = ia64; then
10178 # AIX 5 supports IA64
10179 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 else
10182 # With GCC up to 2.95.x, collect2 would create an import file
10183 # for dependence libraries. The import file would start with
10184 # the line `#! .'. This would cause the generated library to
10185 # depend on `.', always an invalid library. This was fixed in
10186 # development snapshots of GCC prior to 3.0.
10187 case $host_os in
10188 aix4 | aix4.[01] | aix4.[01].*)
10189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10190 echo ' yes '
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010191 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010192 :
10193 else
10194 can_build_shared=no
10195 fi
10196 ;;
10197 esac
10198 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10199 # soname into executable. Probably we can add versioning support to
10200 # collect2, so additional links can be useful in future.
10201 if test "$aix_use_runtimelinking" = yes; then
10202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10203 # instead of lib<name>.a to let people know that these are not
10204 # typical AIX shared libraries.
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 else
10207 # We preserve .a as extension for shared libraries through AIX4.2
10208 # and later when we are not doing run time linking.
10209 library_names_spec='${libname}${release}.a $libname.a'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 fi
10212 shlibpath_var=LIBPATH
10213 fi
10214 ;;
10215
10216amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010217 case $host_cpu in
10218 powerpc)
10219 # Since July 2007 AmigaOS4 officially supports .so libraries.
10220 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 ;;
10223 m68k)
10224 library_names_spec='$libname.ixlibrary $libname.a'
10225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10226 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'
10227 ;;
10228 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000010229 ;;
10230
10231beos*)
10232 library_names_spec='${libname}${shared_ext}'
10233 dynamic_linker="$host_os ld.so"
10234 shlibpath_var=LIBRARY_PATH
10235 ;;
10236
Craig Silverstein690172b2007-04-20 21:16:33 +000010237bsdi[45]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010238 version_type=linux
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10245 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10246 # the default ld.so.conf also contains /usr/contrib/lib and
10247 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10248 # libtool to hard-code these into programs
10249 ;;
10250
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010251cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010252 version_type=windows
Craig Silverstein690172b2007-04-20 21:16:33 +000010253 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010254 need_version=no
10255 need_lib_prefix=no
10256
10257 case $GCC,$host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010258 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010259 library_names_spec='$libname.dll.a'
10260 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10261 postinstall_cmds='base_file=`basename \${file}`~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010262 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Craig Silversteinb9f23482007-03-22 00:15:41 +000010263 dldir=$destdir/`dirname \$dlpath`~
10264 test -d \$dldir || mkdir -p \$dldir~
Craig Silverstein690172b2007-04-20 21:16:33 +000010265 $install_prog $dir/$dlname \$dldir/$dlname~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010266 chmod a+x \$dldir/$dlname~
10267 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10268 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10269 fi'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010270 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10271 dlpath=$dir/\$dldll~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010272 $RM \$dlpath'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010273 shlibpath_overrides_runpath=yes
10274
10275 case $host_os in
10276 cygwin*)
10277 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10278 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein690172b2007-04-20 21:16:33 +000010279 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010280 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010281 mingw* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010282 # MinGW DLLs use traditional 'lib' prefix
10283 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010284 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10285 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010286 # It is most probably a Windows format PATH printed by
10287 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10288 # path with ; separators, and with drive letters. We can handle the
10289 # drive letters (cygwin fileutils understands them), so leave them,
10290 # especially as we might pass files found there to a mingw objdump,
10291 # which wouldn't understand a cygwinified path. Ahh.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010292 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010293 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010294 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010295 fi
10296 ;;
10297 pw32*)
10298 # pw32 DLLs use 'pw' prefix rather than 'lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000010299 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010300 ;;
10301 esac
10302 ;;
10303
10304 *)
10305 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10306 ;;
10307 esac
10308 dynamic_linker='Win32 ld.exe'
10309 # FIXME: first we should search . and the directory the executable is in
10310 shlibpath_var=PATH
10311 ;;
10312
10313darwin* | rhapsody*)
10314 dynamic_linker="$host_os dyld"
10315 version_type=darwin
10316 need_lib_prefix=no
10317 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010318 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010319 soname_spec='${libname}${release}${major}$shared_ext'
10320 shlibpath_overrides_runpath=yes
10321 shlibpath_var=DYLD_LIBRARY_PATH
Craig Silverstein690172b2007-04-20 21:16:33 +000010322 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010323
10324 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10326 ;;
10327
10328dgux*)
10329 version_type=linux
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 ;;
10336
10337freebsd1*)
10338 dynamic_linker=no
10339 ;;
10340
Craig Silverstein690172b2007-04-20 21:16:33 +000010341freebsd* | dragonfly*)
10342 # DragonFly does not have aout. When/if they implement a new
10343 # versioning mechanism, adjust this.
10344 if test -x /usr/bin/objformat; then
10345 objformat=`/usr/bin/objformat`
10346 else
10347 case $host_os in
10348 freebsd[123]*) objformat=aout ;;
10349 *) objformat=elf ;;
10350 esac
10351 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000010352 version_type=freebsd-$objformat
10353 case $version_type in
10354 freebsd-elf*)
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10356 need_version=no
10357 need_lib_prefix=no
10358 ;;
10359 freebsd-*)
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10361 need_version=yes
10362 ;;
10363 esac
10364 shlibpath_var=LD_LIBRARY_PATH
10365 case $host_os in
10366 freebsd2*)
10367 shlibpath_overrides_runpath=yes
10368 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000010369 freebsd3.[01]* | freebsdelf3.[01]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000010373 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10374 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010375 shlibpath_overrides_runpath=no
10376 hardcode_into_libs=yes
10377 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010378 *) # from 4.6 on, and DragonFly
Craig Silverstein690172b2007-04-20 21:16:33 +000010379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10381 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010382 esac
10383 ;;
10384
10385gnu*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 hardcode_into_libs=yes
10393 ;;
10394
10395hpux9* | hpux10* | hpux11*)
10396 # Give a soname corresponding to the major version so that dld.sl refuses to
10397 # link against other versions.
10398 version_type=sunos
10399 need_lib_prefix=no
10400 need_version=no
Craig Silverstein690172b2007-04-20 21:16:33 +000010401 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +000010402 ia64*)
Craig Silverstein690172b2007-04-20 21:16:33 +000010403 shrext_cmds='.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010404 hardcode_into_libs=yes
10405 dynamic_linker="$host_os dld.so"
10406 shlibpath_var=LD_LIBRARY_PATH
10407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 if test "X$HPUX_IA64_MODE" = X32; then
10411 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10412 else
10413 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10414 fi
10415 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10416 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010417 hppa*64*)
10418 shrext_cmds='.sl'
10419 hardcode_into_libs=yes
10420 dynamic_linker="$host_os dld.sl"
10421 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10427 ;;
10428 *)
Craig Silverstein690172b2007-04-20 21:16:33 +000010429 shrext_cmds='.sl'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010430 dynamic_linker="$host_os dld.sl"
10431 shlibpath_var=SHLIB_PATH
10432 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 ;;
10436 esac
10437 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10438 postinstall_cmds='chmod 555 $lib'
10439 ;;
10440
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010441interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000010442 version_type=linux
10443 need_lib_prefix=no
10444 need_version=no
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 ;;
10452
Craig Silversteinb9f23482007-03-22 00:15:41 +000010453irix5* | irix6* | nonstopux*)
10454 case $host_os in
10455 nonstopux*) version_type=nonstopux ;;
10456 *)
10457 if test "$lt_cv_prog_gnu_ld" = yes; then
10458 version_type=linux
10459 else
10460 version_type=irix
10461 fi ;;
10462 esac
10463 need_lib_prefix=no
10464 need_version=no
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10467 case $host_os in
10468 irix5* | nonstopux*)
10469 libsuff= shlibsuff=
10470 ;;
10471 *)
10472 case $LD in # libtool.m4 will add one of these switches to LD
10473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10474 libsuff= shlibsuff= libmagic=32-bit;;
10475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10476 libsuff=32 shlibsuff=N32 libmagic=N32;;
10477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10479 *) libsuff= shlibsuff= libmagic=never-match;;
10480 esac
10481 ;;
10482 esac
10483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10484 shlibpath_overrides_runpath=no
10485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10487 hardcode_into_libs=yes
10488 ;;
10489
10490# No shared lib support for Linux oldld, aout, or coff.
10491linux*oldld* | linux*aout* | linux*coff*)
10492 dynamic_linker=no
10493 ;;
10494
10495# This must be Linux ELF.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010496linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010497 version_type=linux
10498 need_lib_prefix=no
10499 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010505 # Some binutils ld are patched to set DT_RUNPATH
10506 save_LDFLAGS=$LDFLAGS
10507 save_libdir=$libdir
10508 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10509 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511/* end confdefs.h. */
10512
10513int
10514main ()
10515{
10516
10517 ;
10518 return 0;
10519}
10520_ACEOF
10521if ac_fn_c_try_link "$LINENO"; then :
10522 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10523 shlibpath_overrides_runpath=yes
10524fi
10525fi
10526rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LDFLAGS=$save_LDFLAGS
10529 libdir=$save_libdir
10530
Craig Silversteinb9f23482007-03-22 00:15:41 +000010531 # This implies no fast_install, which is unacceptable.
10532 # Some rework will be needed to allow for fast_install
10533 # before this can be enabled.
10534 hardcode_into_libs=yes
10535
Craig Silverstein690172b2007-04-20 21:16:33 +000010536 # Append ld.so.conf contents to the search path
10537 if test -f /etc/ld.so.conf; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010538 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' ' '`
Craig Silverstein690172b2007-04-20 21:16:33 +000010539 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10540 fi
10541
Craig Silversteinb9f23482007-03-22 00:15:41 +000010542 # We used to test for /lib/ld.so.1 and disable shared libraries on
10543 # powerpc, because MkLinux only supported shared libraries with the
10544 # GNU dynamic linker. Since this was broken with cross compilers,
10545 # most powerpc-linux boxes support dynamic linking these days and
10546 # people can always --disable-shared, the test was removed, and we
10547 # assume the GNU/Linux dynamic linker is in use.
10548 dynamic_linker='GNU/Linux ld.so'
Craig Silverstein690172b2007-04-20 21:16:33 +000010549 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010550
Craig Silverstein690172b2007-04-20 21:16:33 +000010551netbsdelf*-gnu)
10552 version_type=linux
10553 need_lib_prefix=no
10554 need_version=no
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 hardcode_into_libs=yes
10560 dynamic_linker='NetBSD ld.elf_so'
10561 ;;
10562
Craig Silversteinb9f23482007-03-22 00:15:41 +000010563netbsd*)
10564 version_type=sunos
10565 need_lib_prefix=no
10566 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10570 dynamic_linker='NetBSD (a.out) ld.so'
10571 else
Craig Silverstein690172b2007-04-20 21:16:33 +000010572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010573 soname_spec='${libname}${release}${shared_ext}$major'
10574 dynamic_linker='NetBSD ld.elf_so'
10575 fi
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 ;;
10580
10581newsos6)
10582 version_type=linux
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 shlibpath_overrides_runpath=yes
10586 ;;
10587
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010588*nto* | *qnx*)
10589 version_type=qnx
Craig Silversteinb9f23482007-03-22 00:15:41 +000010590 need_lib_prefix=no
10591 need_version=no
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010595 shlibpath_overrides_runpath=no
10596 hardcode_into_libs=yes
10597 dynamic_linker='ldqnx.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010598 ;;
10599
10600openbsd*)
10601 version_type=sunos
Craig Silverstein690172b2007-04-20 21:16:33 +000010602 sys_lib_dlsearch_path_spec="/usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010603 need_lib_prefix=no
Craig Silverstein690172b2007-04-20 21:16:33 +000010604 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10605 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010606 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10607 *) need_version=no ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000010608 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000010609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10611 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010613 case $host_os in
10614 openbsd2.[89] | openbsd2.[89].*)
10615 shlibpath_overrides_runpath=no
10616 ;;
10617 *)
10618 shlibpath_overrides_runpath=yes
10619 ;;
10620 esac
10621 else
10622 shlibpath_overrides_runpath=yes
10623 fi
10624 ;;
10625
10626os2*)
10627 libname_spec='$name'
Craig Silverstein690172b2007-04-20 21:16:33 +000010628 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010629 need_lib_prefix=no
10630 library_names_spec='$libname${shared_ext} $libname.a'
10631 dynamic_linker='OS/2 ld.exe'
10632 shlibpath_var=LIBPATH
10633 ;;
10634
10635osf3* | osf4* | osf5*)
10636 version_type=osf
10637 need_lib_prefix=no
10638 need_version=no
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10644 ;;
10645
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010646rdos*)
10647 dynamic_linker=no
10648 ;;
10649
Craig Silversteinb9f23482007-03-22 00:15:41 +000010650solaris*)
10651 version_type=linux
10652 need_lib_prefix=no
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=yes
10658 hardcode_into_libs=yes
10659 # ldd complains unless libraries are executable
10660 postinstall_cmds='chmod +x $lib'
10661 ;;
10662
10663sunos4*)
10664 version_type=sunos
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 shlibpath_overrides_runpath=yes
10669 if test "$with_gnu_ld" = yes; then
10670 need_lib_prefix=no
10671 fi
10672 need_version=yes
10673 ;;
10674
Craig Silverstein690172b2007-04-20 21:16:33 +000010675sysv4 | sysv4.3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010676 version_type=linux
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 case $host_vendor in
10681 sni)
10682 shlibpath_overrides_runpath=no
10683 need_lib_prefix=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000010684 runpath_var=LD_RUN_PATH
10685 ;;
10686 siemens)
10687 need_lib_prefix=no
10688 ;;
10689 motorola)
10690 need_lib_prefix=no
10691 need_version=no
10692 shlibpath_overrides_runpath=no
10693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10694 ;;
10695 esac
10696 ;;
10697
10698sysv4*MP*)
10699 if test -d /usr/nec ;then
10700 version_type=linux
10701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10702 soname_spec='$libname${shared_ext}.$major'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 fi
10705 ;;
10706
Craig Silverstein690172b2007-04-20 21:16:33 +000010707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10708 version_type=freebsd-elf
10709 need_lib_prefix=no
10710 need_version=no
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010714 shlibpath_overrides_runpath=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000010715 hardcode_into_libs=yes
10716 if test "$with_gnu_ld" = yes; then
10717 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000010718 else
10719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000010720 case $host_os in
10721 sco3.2v5*)
10722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10723 ;;
10724 esac
10725 fi
10726 sys_lib_dlsearch_path_spec='/usr/lib'
10727 ;;
10728
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010729tpf*)
10730 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10731 version_type=linux
10732 need_lib_prefix=no
10733 need_version=no
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10738 ;;
10739
Craig Silversteinb9f23482007-03-22 00:15:41 +000010740uts4*)
10741 version_type=linux
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 ;;
10746
10747*)
10748 dynamic_linker=no
10749 ;;
10750esac
Craig Silversteinab3d7652009-11-10 16:33:51 +000010751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10752$as_echo "$dynamic_linker" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000010753test "$dynamic_linker" = no && can_build_shared=no
10754
Craig Silverstein690172b2007-04-20 21:16:33 +000010755variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10756if test "$GCC" = yes; then
10757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10758fi
10759
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010760if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10761 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10762fi
10763if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10764 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10765fi
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000010854$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000010855hardcode_action=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010856if test -n "$hardcode_libdir_flag_spec" ||
10857 test -n "$runpath_var" ||
Craig Silverstein690172b2007-04-20 21:16:33 +000010858 test "X$hardcode_automatic" = "Xyes" ; then
10859
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010860 # We can hardcode non-existent directories.
Craig Silverstein690172b2007-04-20 21:16:33 +000010861 if test "$hardcode_direct" != no &&
10862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10863 # have to relink, otherwise we might link with an installed library
10864 # when we should be linking with a yet-to-be-installed one
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010865 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Craig Silverstein690172b2007-04-20 21:16:33 +000010866 test "$hardcode_minus_L" != no; then
10867 # Linking always hardcodes the temporary library directory.
10868 hardcode_action=relink
10869 else
10870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10871 hardcode_action=immediate
10872 fi
10873else
10874 # We cannot hardcode anything, or else we can only hardcode existing
10875 # directories.
10876 hardcode_action=unsupported
10877fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000010878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10879$as_echo "$hardcode_action" >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000010880
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010881if test "$hardcode_action" = relink ||
10882 test "$inherit_rpath" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000010883 # Fast installation is not supported
10884 enable_fast_install=no
10885elif test "$shlibpath_overrides_runpath" = yes ||
10886 test "$enable_shared" = no; then
10887 # Fast installation is not necessary
10888 enable_fast_install=needless
10889fi
10890
Craig Silverstein690172b2007-04-20 21:16:33 +000010891
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010892
10893
10894
10895
10896 if test "x$enable_dlopen" != xyes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010897 enable_dlopen=unknown
10898 enable_dlopen_self=unknown
10899 enable_dlopen_self_static=unknown
10900else
10901 lt_cv_dlopen=no
10902 lt_cv_dlopen_libs=
10903
10904 case $host_os in
10905 beos*)
10906 lt_cv_dlopen="load_add_on"
10907 lt_cv_dlopen_libs=
10908 lt_cv_dlopen_self=yes
10909 ;;
10910
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010911 mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010912 lt_cv_dlopen="LoadLibrary"
10913 lt_cv_dlopen_libs=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010914 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010915
10916 cygwin*)
10917 lt_cv_dlopen="dlopen"
10918 lt_cv_dlopen_libs=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010919 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010920
10921 darwin*)
10922 # if libdl is installed we need to link against it
Craig Silversteinab3d7652009-11-10 16:33:51 +000010923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10924$as_echo_n "checking for dlopen in -ldl... " >&6; }
10925if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000010927else
10928 ac_check_lib_save_LIBS=$LIBS
10929LIBS="-ldl $LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000010930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000010931/* end confdefs.h. */
10932
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010933/* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000010936#ifdef __cplusplus
10937extern "C"
10938#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000010939char dlopen ();
10940int
10941main ()
10942{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010943return dlopen ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000010944 ;
10945 return 0;
10946}
10947_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000010948if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000010949 ac_cv_lib_dl_dlopen=yes
10950else
Craig Silversteinab3d7652009-11-10 16:33:51 +000010951 ac_cv_lib_dl_dlopen=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000010952fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000010953rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000010955LIBS=$ac_check_lib_save_LIBS
10956fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000010957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10958$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10959if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000010960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961else
10962
10963 lt_cv_dlopen="dyld"
10964 lt_cv_dlopen_libs=
10965 lt_cv_dlopen_self=yes
10966
10967fi
10968
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010969 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010970
10971 *)
Craig Silversteinab3d7652009-11-10 16:33:51 +000010972 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10973if test "x$ac_cv_func_shl_load" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000010974 lt_cv_dlopen="shl_load"
10975else
Craig Silversteinab3d7652009-11-10 16:33:51 +000010976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10977$as_echo_n "checking for shl_load in -ldld... " >&6; }
10978if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000010980else
10981 ac_check_lib_save_LIBS=$LIBS
10982LIBS="-ldld $LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000010983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000010984/* end confdefs.h. */
10985
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010986/* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000010989#ifdef __cplusplus
10990extern "C"
10991#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000010992char shl_load ();
10993int
10994main ()
10995{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010996return shl_load ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000010997 ;
10998 return 0;
10999}
11000_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000011001if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000011002 ac_cv_lib_dld_shl_load=yes
11003else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011004 ac_cv_lib_dld_shl_load=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011005fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011006rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011008LIBS=$ac_check_lib_save_LIBS
11009fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11011$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11012if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011013 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011014else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011015 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11016if test "x$ac_cv_func_dlopen" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000011017 lt_cv_dlopen="dlopen"
11018else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11020$as_echo_n "checking for dlopen in -ldl... " >&6; }
11021if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011023else
11024 ac_check_lib_save_LIBS=$LIBS
11025LIBS="-ldl $LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000011026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011027/* end confdefs.h. */
11028
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011029/* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011032#ifdef __cplusplus
11033extern "C"
11034#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011035char dlopen ();
11036int
11037main ()
11038{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011039return dlopen ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011040 ;
11041 return 0;
11042}
11043_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000011044if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000011045 ac_cv_lib_dl_dlopen=yes
11046else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011047 ac_cv_lib_dl_dlopen=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011048fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011049rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011051LIBS=$ac_check_lib_save_LIBS
11052fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11054$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11055if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000011056 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11057else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11059$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11060if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011062else
11063 ac_check_lib_save_LIBS=$LIBS
11064LIBS="-lsvld $LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000011065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011066/* end confdefs.h. */
11067
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011068/* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011071#ifdef __cplusplus
11072extern "C"
11073#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011074char dlopen ();
11075int
11076main ()
11077{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011078return dlopen ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011079 ;
11080 return 0;
11081}
11082_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000011083if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000011084 ac_cv_lib_svld_dlopen=yes
11085else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011086 ac_cv_lib_svld_dlopen=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011087fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011088rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011090LIBS=$ac_check_lib_save_LIBS
11091fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11093$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11094if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000011095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11096else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11098$as_echo_n "checking for dld_link in -ldld... " >&6; }
11099if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011101else
11102 ac_check_lib_save_LIBS=$LIBS
11103LIBS="-ldld $LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000011104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011105/* end confdefs.h. */
11106
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011107/* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011110#ifdef __cplusplus
11111extern "C"
11112#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011113char dld_link ();
11114int
11115main ()
11116{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011117return dld_link ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011118 ;
11119 return 0;
11120}
11121_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000011122if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000011123 ac_cv_lib_dld_dld_link=yes
11124else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011125 ac_cv_lib_dld_dld_link=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011126fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011127rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011129LIBS=$ac_check_lib_save_LIBS
11130fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11132$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11133if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011134 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011135fi
11136
11137
11138fi
11139
11140
11141fi
11142
11143
11144fi
11145
11146
11147fi
11148
11149
11150fi
11151
11152 ;;
11153 esac
11154
11155 if test "x$lt_cv_dlopen" != xno; then
11156 enable_dlopen=yes
11157 else
11158 enable_dlopen=no
11159 fi
11160
11161 case $lt_cv_dlopen in
11162 dlopen)
11163 save_CPPFLAGS="$CPPFLAGS"
11164 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11165
11166 save_LDFLAGS="$LDFLAGS"
Craig Silverstein690172b2007-04-20 21:16:33 +000011167 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011168
11169 save_LIBS="$LIBS"
11170 LIBS="$lt_cv_dlopen_libs $LIBS"
11171
Craig Silversteinab3d7652009-11-10 16:33:51 +000011172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11173$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11174if test "${lt_cv_dlopen_self+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011176else
11177 if test "$cross_compiling" = yes; then :
11178 lt_cv_dlopen_self=cross
11179else
11180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11181 lt_status=$lt_dlunknown
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011182 cat > conftest.$ac_ext <<_LT_EOF
11183#line 11183 "configure"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011184#include "confdefs.h"
11185
11186#if HAVE_DLFCN_H
11187#include <dlfcn.h>
11188#endif
11189
11190#include <stdio.h>
11191
11192#ifdef RTLD_GLOBAL
11193# define LT_DLGLOBAL RTLD_GLOBAL
11194#else
11195# ifdef DL_GLOBAL
11196# define LT_DLGLOBAL DL_GLOBAL
11197# else
11198# define LT_DLGLOBAL 0
11199# endif
11200#endif
11201
11202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11203 find out it does not work in some platform. */
11204#ifndef LT_DLLAZY_OR_NOW
11205# ifdef RTLD_LAZY
11206# define LT_DLLAZY_OR_NOW RTLD_LAZY
11207# else
11208# ifdef DL_LAZY
11209# define LT_DLLAZY_OR_NOW DL_LAZY
11210# else
11211# ifdef RTLD_NOW
11212# define LT_DLLAZY_OR_NOW RTLD_NOW
11213# else
11214# ifdef DL_NOW
11215# define LT_DLLAZY_OR_NOW DL_NOW
11216# else
11217# define LT_DLLAZY_OR_NOW 0
11218# endif
11219# endif
11220# endif
11221# endif
11222#endif
11223
Craig Silversteinb9f23482007-03-22 00:15:41 +000011224void fnord() { int i=42;}
11225int main ()
11226{
11227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11228 int status = $lt_dlunknown;
11229
11230 if (self)
11231 {
11232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11233 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11234 /* dlclose (self); */
11235 }
Craig Silverstein690172b2007-04-20 21:16:33 +000011236 else
11237 puts (dlerror ());
Craig Silversteinb9f23482007-03-22 00:15:41 +000011238
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011239 return status;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011240}
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011241_LT_EOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000011242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000011243 (eval $ac_link) 2>&5
11244 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +000011245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11246 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Craig Silverstein690172b2007-04-20 21:16:33 +000011247 (./conftest; exit; ) >&5 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000011248 lt_status=$?
11249 case x$lt_status in
11250 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11251 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000011252 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011253 esac
11254 else :
11255 # compilation failed
11256 lt_cv_dlopen_self=no
11257 fi
11258fi
11259rm -fr conftest*
11260
11261
11262fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11264$as_echo "$lt_cv_dlopen_self" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011265
11266 if test "x$lt_cv_dlopen_self" = xyes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000011267 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Craig Silversteinab3d7652009-11-10 16:33:51 +000011268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11269$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11270if test "${lt_cv_dlopen_self_static+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011272else
11273 if test "$cross_compiling" = yes; then :
11274 lt_cv_dlopen_self_static=cross
11275else
11276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11277 lt_status=$lt_dlunknown
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011278 cat > conftest.$ac_ext <<_LT_EOF
11279#line 11279 "configure"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011280#include "confdefs.h"
11281
11282#if HAVE_DLFCN_H
11283#include <dlfcn.h>
11284#endif
11285
11286#include <stdio.h>
11287
11288#ifdef RTLD_GLOBAL
11289# define LT_DLGLOBAL RTLD_GLOBAL
11290#else
11291# ifdef DL_GLOBAL
11292# define LT_DLGLOBAL DL_GLOBAL
11293# else
11294# define LT_DLGLOBAL 0
11295# endif
11296#endif
11297
11298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11299 find out it does not work in some platform. */
11300#ifndef LT_DLLAZY_OR_NOW
11301# ifdef RTLD_LAZY
11302# define LT_DLLAZY_OR_NOW RTLD_LAZY
11303# else
11304# ifdef DL_LAZY
11305# define LT_DLLAZY_OR_NOW DL_LAZY
11306# else
11307# ifdef RTLD_NOW
11308# define LT_DLLAZY_OR_NOW RTLD_NOW
11309# else
11310# ifdef DL_NOW
11311# define LT_DLLAZY_OR_NOW DL_NOW
11312# else
11313# define LT_DLLAZY_OR_NOW 0
11314# endif
11315# endif
11316# endif
11317# endif
11318#endif
11319
Craig Silversteinb9f23482007-03-22 00:15:41 +000011320void fnord() { int i=42;}
11321int main ()
11322{
11323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11324 int status = $lt_dlunknown;
11325
11326 if (self)
11327 {
11328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11329 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11330 /* dlclose (self); */
11331 }
Craig Silverstein690172b2007-04-20 21:16:33 +000011332 else
11333 puts (dlerror ());
Craig Silversteinb9f23482007-03-22 00:15:41 +000011334
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011335 return status;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011336}
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011337_LT_EOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000011338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000011339 (eval $ac_link) 2>&5
11340 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +000011341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Craig Silverstein690172b2007-04-20 21:16:33 +000011343 (./conftest; exit; ) >&5 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000011344 lt_status=$?
11345 case x$lt_status in
11346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000011348 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011349 esac
11350 else :
11351 # compilation failed
11352 lt_cv_dlopen_self_static=no
11353 fi
11354fi
11355rm -fr conftest*
11356
11357
11358fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11360$as_echo "$lt_cv_dlopen_self_static" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011361 fi
11362
11363 CPPFLAGS="$save_CPPFLAGS"
11364 LDFLAGS="$save_LDFLAGS"
11365 LIBS="$save_LIBS"
11366 ;;
11367 esac
11368
11369 case $lt_cv_dlopen_self in
11370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11371 *) enable_dlopen_self=unknown ;;
11372 esac
11373
11374 case $lt_cv_dlopen_self_static in
11375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11376 *) enable_dlopen_self_static=unknown ;;
11377 esac
11378fi
11379
11380
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396striplib=
11397old_striplib=
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11399$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11400if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11401 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11402 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404$as_echo "yes" >&6; }
11405else
11406# FIXME - insert some real tests, host_os isn't really good enough
11407 case $host_os in
11408 darwin*)
11409 if test -n "$STRIP" ; then
11410 striplib="$STRIP -x"
11411 old_striplib="$STRIP -S"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413$as_echo "yes" >&6; }
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
11417 fi
11418 ;;
11419 *)
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
11422 ;;
11423 esac
11424fi
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437 # Report which library types will actually be built
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011439$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011441$as_echo "$can_build_shared" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011442
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011444$as_echo_n "checking whether to build shared libraries... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011445 test "$can_build_shared" = "no" && enable_shared=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011446
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011447 # On AIX, shared libraries and static libraries use the same namespace, and
11448 # are all built from PIC.
Craig Silversteinb9f23482007-03-22 00:15:41 +000011449 case $host_os in
11450 aix3*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011451 test "$enable_shared" = yes && enable_static=no
11452 if test -n "$RANLIB"; then
11453 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11454 postinstall_cmds='$RANLIB $lib'
11455 fi
11456 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011457
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011458 aix[4-9]*)
11459 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11460 test "$enable_shared" = yes && enable_static=no
11461 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000011462 ;;
11463 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11465$as_echo "$enable_shared" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011466
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11468$as_echo_n "checking whether to build static libraries... " >&6; }
11469 # Make sure either enable_shared or enable_static is yes.
11470 test "$enable_shared" = yes || enable_static=yes
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11472$as_echo "$enable_static" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011473
Craig Silversteinb9f23482007-03-22 00:15:41 +000011474
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011475
11476
Craig Silversteinb9f23482007-03-22 00:15:41 +000011477fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000011478ac_ext=c
11479ac_cpp='$CPP $CPPFLAGS'
11480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11482ac_compiler_gnu=$ac_cv_c_compiler_gnu
11483
11484CC="$lt_save_CC"
11485
11486
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011487ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000011488ac_cpp='$CXXCPP $CPPFLAGS'
11489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11492
Craig Silversteinb9f23482007-03-22 00:15:41 +000011493archive_cmds_need_lc_CXX=no
11494allow_undefined_flag_CXX=
11495always_export_symbols_CXX=no
11496archive_expsym_cmds_CXX=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011497compiler_needs_object_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011498export_dynamic_flag_spec_CXX=
11499hardcode_direct_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011500hardcode_direct_absolute_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011501hardcode_libdir_flag_spec_CXX=
11502hardcode_libdir_flag_spec_ld_CXX=
11503hardcode_libdir_separator_CXX=
11504hardcode_minus_L_CXX=no
Craig Silverstein690172b2007-04-20 21:16:33 +000011505hardcode_shlibpath_var_CXX=unsupported
Craig Silversteinb9f23482007-03-22 00:15:41 +000011506hardcode_automatic_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011507inherit_rpath_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011508module_cmds_CXX=
11509module_expsym_cmds_CXX=
11510link_all_deplibs_CXX=unknown
11511old_archive_cmds_CXX=$old_archive_cmds
11512no_undefined_flag_CXX=
11513whole_archive_flag_spec_CXX=
11514enable_shared_with_static_runtimes_CXX=no
11515
Craig Silversteinb9f23482007-03-22 00:15:41 +000011516# Source file extension for C++ test sources.
Craig Silverstein690172b2007-04-20 21:16:33 +000011517ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000011518
11519# Object file extension for compiled C++ test sources.
11520objext=o
11521objext_CXX=$objext
11522
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011523# No sense in running all these tests if we already determined that
11524# the CXX compiler isn't working. Some variables (like enable_shared)
11525# are currently assumed to apply to all compilers on this platform,
11526# and will be corrupted by setting them based on a non-working compiler.
11527if test "$_lt_caught_CXX_error" != yes; then
11528 # Code to be used in simple compile tests
11529 lt_simple_compile_test_code="int some_variable = 0;"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011530
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011531 # Code to be used in simple link tests
11532 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
Craig Silversteinb9f23482007-03-22 00:15:41 +000011533
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11535
11536
11537
11538
11539
Craig Silversteinb9f23482007-03-22 00:15:41 +000011540
11541# If no C compiler was specified, use CC.
11542LTCC=${LTCC-"$CC"}
11543
Craig Silverstein690172b2007-04-20 21:16:33 +000011544# If no C compiler flags were specified, use CFLAGS.
11545LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11546
Craig Silversteinb9f23482007-03-22 00:15:41 +000011547# Allow CC to be a program name with arguments.
11548compiler=$CC
11549
11550
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011551 # save warnings/boilerplate of simple test code
11552 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011553echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +000011554eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11555_lt_compiler_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011556$RM conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000011557
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011558 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011559echo "$lt_simple_link_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +000011560eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11561_lt_linker_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011562$RM -r conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000011563
11564
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011565 # Allow CC to be a program name with arguments.
11566 lt_save_CC=$CC
11567 lt_save_LD=$LD
11568 lt_save_GCC=$GCC
11569 GCC=$GXX
11570 lt_save_with_gnu_ld=$with_gnu_ld
11571 lt_save_path_LD=$lt_cv_path_LD
11572 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11573 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11574 else
11575 $as_unset lt_cv_prog_gnu_ld
11576 fi
11577 if test -n "${lt_cv_path_LDCXX+set}"; then
11578 lt_cv_path_LD=$lt_cv_path_LDCXX
11579 else
11580 $as_unset lt_cv_path_LD
11581 fi
11582 test -z "${LDCXX+set}" || LD=$LDCXX
11583 CC=${CXX-"c++"}
11584 compiler=$CC
11585 compiler_CXX=$CC
11586 for cc_temp in $compiler""; do
Craig Silverstein690172b2007-04-20 21:16:33 +000011587 case $cc_temp in
11588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11590 \-*) ;;
11591 *) break;;
11592 esac
11593done
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011594cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Craig Silverstein690172b2007-04-20 21:16:33 +000011595
Craig Silversteinb9f23482007-03-22 00:15:41 +000011596
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011597 if test -n "$compiler"; then
11598 # We don't want -fno-exception when compiling C++ code, so set the
11599 # no_builtin_flag separately
11600 if test "$GXX" = yes; then
11601 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11602 else
11603 lt_prog_compiler_no_builtin_flag_CXX=
11604 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000011605
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011606 if test "$GXX" = yes; then
11607 # Set up default GNU C++ configuration
11608
Craig Silversteinb9f23482007-03-22 00:15:41 +000011609
11610
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011611# Check whether --with-gnu-ld was given.
Craig Silversteinab3d7652009-11-10 16:33:51 +000011612if test "${with_gnu_ld+set}" = set; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011613 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000011614else
11615 with_gnu_ld=no
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011616fi
11617
Craig Silversteinb9f23482007-03-22 00:15:41 +000011618ac_prog=ld
11619if test "$GCC" = yes; then
11620 # Check if gcc -print-prog-name=ld gives a path.
Craig Silversteinab3d7652009-11-10 16:33:51 +000011621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11622$as_echo_n "checking for ld used by $CC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011623 case $host in
11624 *-*-mingw*)
11625 # gcc leaves a trailing carriage return which upsets mingw
11626 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11627 *)
11628 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11629 esac
11630 case $ac_prog in
11631 # Accept absolute paths.
11632 [\\/]* | ?:[\\/]*)
11633 re_direlt='/[^/][^/]*/\.\./'
Craig Silverstein690172b2007-04-20 21:16:33 +000011634 # Canonicalize the pathname of ld
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011635 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11636 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11637 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000011638 done
11639 test -z "$LD" && LD="$ac_prog"
11640 ;;
11641 "")
11642 # If it fails, then pretend we aren't using GCC.
11643 ac_prog=ld
11644 ;;
11645 *)
11646 # If it is relative, then search for the first ld in PATH.
11647 with_gnu_ld=unknown
11648 ;;
11649 esac
11650elif test "$with_gnu_ld" = yes; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000011651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11652$as_echo_n "checking for GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011653else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11655$as_echo_n "checking for non-GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011656fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011657if test "${lt_cv_path_LD+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011659else
11660 if test -z "$LD"; then
11661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11662 for ac_dir in $PATH; do
11663 IFS="$lt_save_ifs"
11664 test -z "$ac_dir" && ac_dir=.
11665 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11666 lt_cv_path_LD="$ac_dir/$ac_prog"
11667 # Check to see if the program is GNU ld. I'd rather use --version,
Craig Silverstein690172b2007-04-20 21:16:33 +000011668 # but apparently some variants of GNU ld only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +000011669 # Break only if it was the GNU/non-GNU ld that we prefer.
11670 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11671 *GNU* | *'with BFD'*)
11672 test "$with_gnu_ld" != no && break
11673 ;;
11674 *)
11675 test "$with_gnu_ld" != yes && break
11676 ;;
11677 esac
11678 fi
11679 done
11680 IFS="$lt_save_ifs"
11681else
11682 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11683fi
11684fi
11685
11686LD="$lt_cv_path_LD"
11687if test -n "$LD"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000011688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11689$as_echo "$LD" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011690else
Craig Silversteinab3d7652009-11-10 16:33:51 +000011691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011693fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011694test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11696$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11697if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011699else
Craig Silverstein690172b2007-04-20 21:16:33 +000011700 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +000011701case `$LD -v 2>&1 </dev/null` in
11702*GNU* | *'with BFD'*)
11703 lt_cv_prog_gnu_ld=yes
11704 ;;
11705*)
11706 lt_cv_prog_gnu_ld=no
11707 ;;
11708esac
11709fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000011710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11711$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011712with_gnu_ld=$lt_cv_prog_gnu_ld
11713
11714
11715
Craig Silversteinb9f23482007-03-22 00:15:41 +000011716
Craig Silversteinb9f23482007-03-22 00:15:41 +000011717
Craig Silversteinb9f23482007-03-22 00:15:41 +000011718
Craig Silversteinb9f23482007-03-22 00:15:41 +000011719
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011720 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11721 # archiving commands below assume that GNU ld is being used.
11722 if test "$with_gnu_ld" = yes; then
11723 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11724 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000011725
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Craig Silversteinb9f23482007-03-22 00:15:41 +000011728
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011729 # If archive_cmds runs LD, not CC, wlarc should be empty
11730 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11731 # investigate it a little bit more. (MM)
11732 wlarc='${wl}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000011733
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011734 # ancient GNU ld didn't support --whole-archive et. al.
11735 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11736 $GREP 'no-whole-archive' > /dev/null; then
11737 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11738 else
11739 whole_archive_flag_spec_CXX=
11740 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000011741 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011742 with_gnu_ld=no
11743 wlarc=
11744
11745 # A generic and very simple default shared library creation
11746 # command for GNU C++ for the case where it uses the native
11747 # linker, instead of GNU ld. If possible, this setting should
11748 # overridden to take advantage of the native linker features on
11749 # the platform it is being used on.
11750 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +000011751 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000011752
Craig Silversteinb9f23482007-03-22 00:15:41 +000011753 # Commands to make compiler produce verbose output that lists
11754 # what "hidden" libraries, object files and flags are used when
11755 # linking a shared library.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011756 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11757
11758 else
11759 GXX=no
11760 with_gnu_ld=no
11761 wlarc=
11762 fi
11763
11764 # PORTME: fill in a description of your system's C++ link characteristics
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11766$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11767 ld_shlibs_CXX=yes
11768 case $host_os in
11769 aix3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000011770 # FIXME: insert proper C++ library support
11771 ld_shlibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011772 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011773 aix[4-9]*)
11774 if test "$host_cpu" = ia64; then
11775 # On IA64, the linker does run time linking by default, so we don't
11776 # have to do anything special.
11777 aix_use_runtimelinking=no
11778 exp_sym_flag='-Bexport'
11779 no_entry_flag=""
11780 else
11781 aix_use_runtimelinking=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011782
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011783 # Test if we are trying to use run time linking or normal
11784 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11785 # need to do runtime linking.
11786 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11787 for ld_flag in $LDFLAGS; do
11788 case $ld_flag in
11789 *-brtl*)
11790 aix_use_runtimelinking=yes
11791 break
11792 ;;
11793 esac
11794 done
11795 ;;
11796 esac
11797
11798 exp_sym_flag='-bexport'
11799 no_entry_flag='-bnoentry'
11800 fi
11801
11802 # When large executables or shared objects are built, AIX ld can
11803 # have problems creating the table of contents. If linking a library
11804 # or program results in "error TOC overflow" add -mminimal-toc to
11805 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11806 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11807
11808 archive_cmds_CXX=''
11809 hardcode_direct_CXX=yes
11810 hardcode_direct_absolute_CXX=yes
11811 hardcode_libdir_separator_CXX=':'
11812 link_all_deplibs_CXX=yes
11813 file_list_spec_CXX='${wl}-f,'
11814
11815 if test "$GXX" = yes; then
11816 case $host_os in aix4.[012]|aix4.[012].*)
11817 # We only want to do this on AIX 4.2 and lower, the check
11818 # below for broken collect2 doesn't work under 4.3+
11819 collect2name=`${CC} -print-prog-name=collect2`
11820 if test -f "$collect2name" &&
11821 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11822 then
11823 # We have reworked collect2
11824 :
11825 else
11826 # We have old collect2
11827 hardcode_direct_CXX=unsupported
11828 # It fails to find uninstalled libraries when the uninstalled
11829 # path is not listed in the libpath. Setting hardcode_minus_L
11830 # to unsupported forces relinking
11831 hardcode_minus_L_CXX=yes
11832 hardcode_libdir_flag_spec_CXX='-L$libdir'
11833 hardcode_libdir_separator_CXX=
11834 fi
11835 esac
11836 shared_flag='-shared'
11837 if test "$aix_use_runtimelinking" = yes; then
11838 shared_flag="$shared_flag "'${wl}-G'
11839 fi
11840 else
11841 # not using gcc
11842 if test "$host_cpu" = ia64; then
11843 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11844 # chokes on -Wl,-G. The following line is correct:
11845 shared_flag='-G'
11846 else
11847 if test "$aix_use_runtimelinking" = yes; then
11848 shared_flag='${wl}-G'
11849 else
11850 shared_flag='${wl}-bM:SRE'
11851 fi
11852 fi
11853 fi
11854
11855 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11856 # It seems that -bexpall does not export symbols beginning with
11857 # underscore (_), so it is better to generate a list of symbols to
11858 # export.
11859 always_export_symbols_CXX=yes
11860 if test "$aix_use_runtimelinking" = yes; then
11861 # Warning - without using the other runtime loading flags (-brtl),
11862 # -berok will link without error, but may produce a broken library.
11863 allow_undefined_flag_CXX='-berok'
11864 # Determine the default libpath from the value encoded in an empty
11865 # executable.
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867/* end confdefs.h. */
11868
11869int
11870main ()
11871{
11872
11873 ;
11874 return 0;
11875}
11876_ACEOF
11877if ac_fn_cxx_try_link "$LINENO"; then :
11878
11879lt_aix_libpath_sed='
11880 /Import File Strings/,/^$/ {
11881 /^0/ {
11882 s/^0 *\(.*\)$/\1/
11883 p
11884 }
11885 }'
11886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11887# Check for a 64-bit object if we didn't find anything.
11888if test -z "$aix_libpath"; then
11889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11890fi
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11895
11896 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11897
11898 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"
11899 else
11900 if test "$host_cpu" = ia64; then
11901 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11902 allow_undefined_flag_CXX="-z nodefs"
11903 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"
11904 else
11905 # Determine the default libpath from the value encoded in an
11906 # empty executable.
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908/* end confdefs.h. */
11909
11910int
11911main ()
11912{
11913
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918if ac_fn_cxx_try_link "$LINENO"; then :
11919
11920lt_aix_libpath_sed='
11921 /Import File Strings/,/^$/ {
11922 /^0/ {
11923 s/^0 *\(.*\)$/\1/
11924 p
11925 }
11926 }'
11927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928# Check for a 64-bit object if we didn't find anything.
11929if test -z "$aix_libpath"; then
11930 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11931fi
11932fi
11933rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11936
11937 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11938 # Warning - without using the other run time loading flags,
11939 # -berok will link without error, but may produce a broken library.
11940 no_undefined_flag_CXX=' ${wl}-bernotok'
11941 allow_undefined_flag_CXX=' ${wl}-berok'
11942 # Exported symbols can be pulled into shared objects from archives
11943 whole_archive_flag_spec_CXX='$convenience'
11944 archive_cmds_need_lc_CXX=yes
11945 # This is similar to how AIX traditionally builds its shared
11946 # libraries.
11947 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'
11948 fi
11949 fi
11950 ;;
11951
11952 beos*)
11953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11954 allow_undefined_flag_CXX=unsupported
11955 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11956 # support --undefined. This deserves some investigation. FIXME
11957 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11958 else
11959 ld_shlibs_CXX=no
11960 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000011961 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011962
11963 chorus*)
11964 case $cc_basename in
11965 *)
11966 # FIXME: insert proper C++ library support
11967 ld_shlibs_CXX=no
Craig Silverstein690172b2007-04-20 21:16:33 +000011968 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011969 esac
11970 ;;
11971
11972 cygwin* | mingw* | pw32* | cegcc*)
11973 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11974 # as there is no search path for DLLs.
11975 hardcode_libdir_flag_spec_CXX='-L$libdir'
11976 allow_undefined_flag_CXX=unsupported
11977 always_export_symbols_CXX=no
11978 enable_shared_with_static_runtimes_CXX=yes
11979
11980 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11981 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'
11982 # If the export-symbols file already is a .def file (1st line
11983 # is EXPORTS), use it as is; otherwise, prepend...
11984 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11985 cp $export_symbols $output_objdir/$soname.def;
11986 else
11987 echo EXPORTS > $output_objdir/$soname.def;
11988 cat $export_symbols >> $output_objdir/$soname.def;
11989 fi~
11990 $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'
11991 else
11992 ld_shlibs_CXX=no
11993 fi
11994 ;;
11995 darwin* | rhapsody*)
11996
11997
11998 archive_cmds_need_lc_CXX=no
11999 hardcode_direct_CXX=no
12000 hardcode_automatic_CXX=yes
12001 hardcode_shlibpath_var_CXX=unsupported
12002 whole_archive_flag_spec_CXX=''
12003 link_all_deplibs_CXX=yes
12004 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12005 case $cc_basename in
12006 ifort*) _lt_dar_can_shared=yes ;;
12007 *) _lt_dar_can_shared=$GCC ;;
12008 esac
12009 if test "$_lt_dar_can_shared" = "yes"; then
12010 output_verbose_link_cmd=echo
12011 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}"
12012 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12013 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}"
12014 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}"
12015 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12016 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}"
12017 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}"
12018 fi
12019
12020 else
12021 ld_shlibs_CXX=no
12022 fi
12023
Craig Silversteinb9f23482007-03-22 00:15:41 +000012024 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012025
12026 dgux*)
12027 case $cc_basename in
12028 ec++*)
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12031 ;;
12032 ghcx*)
12033 # Green Hills C++ Compiler
12034 # FIXME: insert proper C++ library support
12035 ld_shlibs_CXX=no
12036 ;;
12037 *)
12038 # FIXME: insert proper C++ library support
12039 ld_shlibs_CXX=no
12040 ;;
12041 esac
12042 ;;
12043
12044 freebsd[12]*)
12045 # C++ shared libraries reported to be fairly broken before
12046 # switch to ELF
12047 ld_shlibs_CXX=no
12048 ;;
12049
12050 freebsd-elf*)
12051 archive_cmds_need_lc_CXX=no
12052 ;;
12053
12054 freebsd* | dragonfly*)
12055 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12056 # conventions
12057 ld_shlibs_CXX=yes
12058 ;;
12059
12060 gnu*)
12061 ;;
12062
12063 hpux9*)
12064 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12065 hardcode_libdir_separator_CXX=:
12066 export_dynamic_flag_spec_CXX='${wl}-E'
12067 hardcode_direct_CXX=yes
12068 hardcode_minus_L_CXX=yes # Not in the search PATH,
12069 # but as the default
12070 # location of the library.
12071
12072 case $cc_basename in
12073 CC*)
12074 # FIXME: insert proper C++ library support
12075 ld_shlibs_CXX=no
12076 ;;
12077 aCC*)
12078 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'
12079 # Commands to make compiler produce verbose output that lists
12080 # what "hidden" libraries, object files and flags are used when
12081 # linking a shared library.
12082 #
12083 # There doesn't appear to be a way to prevent this compiler from
12084 # explicitly linking system object files so we need to strip them
12085 # from the output so that they don't get included in the library
12086 # dependencies.
12087 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'
12088 ;;
12089 *)
12090 if test "$GXX" = yes; then
12091 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'
12092 else
12093 # FIXME: insert proper C++ library support
12094 ld_shlibs_CXX=no
12095 fi
12096 ;;
12097 esac
12098 ;;
12099
12100 hpux10*|hpux11*)
12101 if test $with_gnu_ld = no; then
12102 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12103 hardcode_libdir_separator_CXX=:
12104
12105 case $host_cpu in
12106 hppa*64*|ia64*)
12107 ;;
12108 *)
12109 export_dynamic_flag_spec_CXX='${wl}-E'
12110 ;;
12111 esac
12112 fi
12113 case $host_cpu in
12114 hppa*64*|ia64*)
12115 hardcode_direct_CXX=no
12116 hardcode_shlibpath_var_CXX=no
12117 ;;
12118 *)
12119 hardcode_direct_CXX=yes
12120 hardcode_direct_absolute_CXX=yes
12121 hardcode_minus_L_CXX=yes # Not in the search PATH,
12122 # but as the default
12123 # location of the library.
12124 ;;
12125 esac
12126
12127 case $cc_basename in
12128 CC*)
12129 # FIXME: insert proper C++ library support
12130 ld_shlibs_CXX=no
12131 ;;
12132 aCC*)
Craig Silverstein690172b2007-04-20 21:16:33 +000012133 case $host_cpu in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012134 hppa*64*)
12135 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12136 ;;
12137 ia64*)
12138 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12139 ;;
12140 *)
12141 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12142 ;;
12143 esac
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12147 #
12148 # There doesn't appear to be a way to prevent this compiler from
12149 # explicitly linking system object files so we need to strip them
12150 # from the output so that they don't get included in the library
12151 # dependencies.
12152 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'
12153 ;;
12154 *)
12155 if test "$GXX" = yes; then
12156 if test $with_gnu_ld = no; then
12157 case $host_cpu in
12158 hppa*64*)
12159 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12160 ;;
12161 ia64*)
12162 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12163 ;;
12164 *)
12165 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'
12166 ;;
12167 esac
12168 fi
12169 else
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12172 fi
12173 ;;
12174 esac
12175 ;;
12176
12177 interix[3-9]*)
12178 hardcode_direct_CXX=no
12179 hardcode_shlibpath_var_CXX=no
12180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181 export_dynamic_flag_spec_CXX='${wl}-E'
12182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12183 # Instead, shared libraries are loaded at an image base (0x10000000 by
12184 # default) and relocated if they conflict, which is a slow very memory
12185 # consuming and fragmenting process. To avoid this, we pick a random,
12186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12188 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'
12189 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'
12190 ;;
12191 irix5* | irix6*)
12192 case $cc_basename in
12193 CC*)
12194 # SGI C++
12195 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'
12196
12197 # Archives containing C++ object files must be created using
12198 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12199 # necessary to make sure instantiated templates are included
12200 # in the archive.
12201 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12202 ;;
12203 *)
12204 if test "$GXX" = yes; then
12205 if test "$with_gnu_ld" = no; then
12206 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'
12207 else
12208 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'
12209 fi
12210 fi
12211 link_all_deplibs_CXX=yes
12212 ;;
12213 esac
12214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12215 hardcode_libdir_separator_CXX=:
12216 inherit_rpath_CXX=yes
12217 ;;
12218
12219 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12220 case $cc_basename in
12221 KCC*)
12222 # Kuck and Associates, Inc. (KAI) C++ Compiler
12223
12224 # KCC will only create a shared library if the output file
12225 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12226 # to its proper name (with version) after linking.
12227 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'
12228 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'
12229 # Commands to make compiler produce verbose output that lists
12230 # what "hidden" libraries, object files and flags are used when
12231 # linking a shared library.
12232 #
12233 # There doesn't appear to be a way to prevent this compiler from
12234 # explicitly linking system object files so we need to strip them
12235 # from the output so that they don't get included in the library
12236 # dependencies.
12237 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'
12238
12239 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12241
12242 # Archives containing C++ object files must be created using
12243 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12244 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12245 ;;
12246 icpc* | ecpc* )
12247 # Intel C++
12248 with_gnu_ld=yes
12249 # version 8.0 and above of icpc choke on multiply defined symbols
12250 # if we add $predep_objects and $postdep_objects, however 7.1 and
12251 # earlier do not add the objects themselves.
12252 case `$CC -V 2>&1` in
12253 *"Version 7."*)
12254 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255 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'
12256 ;;
12257 *) # Version 8.0 or newer
12258 tmp_idyn=
12259 case $host_cpu in
12260 ia64*) tmp_idyn=' -i_dynamic';;
12261 esac
12262 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263 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'
12264 ;;
12265 esac
12266 archive_cmds_need_lc_CXX=no
12267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12269 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12270 ;;
12271 pgCC* | pgcpp*)
12272 # Portland Group C++ compiler
12273 case `$CC -V` in
12274 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12275 prelink_cmds_CXX='tpldir=Template.dir~
12276 rm -rf $tpldir~
12277 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12278 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12279 old_archive_cmds_CXX='tpldir=Template.dir~
12280 rm -rf $tpldir~
12281 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12282 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12283 $RANLIB $oldlib'
12284 archive_cmds_CXX='tpldir=Template.dir~
12285 rm -rf $tpldir~
12286 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12287 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12288 archive_expsym_cmds_CXX='tpldir=Template.dir~
12289 rm -rf $tpldir~
12290 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12291 $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'
Craig Silverstein690172b2007-04-20 21:16:33 +000012292 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012293 *) # Version 6 will use weak symbols
12294 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12295 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012296 ;;
12297 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000012298
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012299 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12300 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12301 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'
12302 ;;
12303 cxx*)
12304 # Compaq C++
12305 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12306 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012307
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012308 runpath_var=LD_RUN_PATH
12309 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12310 hardcode_libdir_separator_CXX=:
Craig Silversteinb9f23482007-03-22 00:15:41 +000012311
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012312 # Commands to make compiler produce verbose output that lists
12313 # what "hidden" libraries, object files and flags are used when
12314 # linking a shared library.
12315 #
12316 # There doesn't appear to be a way to prevent this compiler from
12317 # explicitly linking system object files so we need to strip them
12318 # from the output so that they don't get included in the library
12319 # dependencies.
12320 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'
12321 ;;
12322 xl*)
12323 # IBM XL 8.0 on PPC, with GNU ld
12324 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12326 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327 if test "x$supports_anon_versioning" = xyes; then
12328 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12329 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12330 echo "local: *; };" >> $output_objdir/$libname.ver~
12331 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12332 fi
12333 ;;
12334 *)
12335 case `$CC -V 2>&1 | sed 5q` in
12336 *Sun\ C*)
12337 # Sun C++ 5.9
12338 no_undefined_flag_CXX=' -zdefs'
12339 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12340 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'
12341 hardcode_libdir_flag_spec_CXX='-R$libdir'
12342 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'
12343 compiler_needs_object_CXX=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000012344
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012345 # Not sure whether something based on
12346 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12347 # would be better.
12348 output_verbose_link_cmd='echo'
12349
12350 # Archives containing C++ object files must be created using
12351 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12352 # necessary to make sure instantiated templates are included
12353 # in the archive.
12354 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12355 ;;
12356 esac
12357 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000012358 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000012359 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000012360
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012361 lynxos*)
12362 # FIXME: insert proper C++ library support
12363 ld_shlibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012364 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012365
12366 m88k*)
12367 # FIXME: insert proper C++ library support
12368 ld_shlibs_CXX=no
12369 ;;
12370
12371 mvs*)
12372 case $cc_basename in
12373 cxx*)
12374 # FIXME: insert proper C++ library support
12375 ld_shlibs_CXX=no
12376 ;;
12377 *)
12378 # FIXME: insert proper C++ library support
12379 ld_shlibs_CXX=no
12380 ;;
12381 esac
12382 ;;
12383
12384 netbsd*)
12385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12386 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12387 wlarc=
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012388 hardcode_libdir_flag_spec_CXX='-R$libdir'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012389 hardcode_direct_CXX=yes
12390 hardcode_shlibpath_var_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012391 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012392 # Workaround some broken pre-1.5 toolchains
12393 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012394 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012395
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012396 *nto* | *qnx*)
12397 ld_shlibs_CXX=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000012398 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012399
12400 openbsd2*)
12401 # C++ shared libraries are fairly broken
Craig Silversteinb9f23482007-03-22 00:15:41 +000012402 ld_shlibs_CXX=no
12403 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012404
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012405 openbsd*)
12406 if test -f /usr/libexec/ld.so; then
12407 hardcode_direct_CXX=yes
12408 hardcode_shlibpath_var_CXX=no
12409 hardcode_direct_absolute_CXX=yes
12410 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12413 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12414 export_dynamic_flag_spec_CXX='${wl}-E'
12415 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012416 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012417 output_verbose_link_cmd=echo
12418 else
12419 ld_shlibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012420 fi
12421 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000012422
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012423 osf3* | osf4* | osf5*)
12424 case $cc_basename in
12425 KCC*)
12426 # Kuck and Associates, Inc. (KAI) C++ Compiler
Craig Silverstein690172b2007-04-20 21:16:33 +000012427
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012428 # KCC will only create a shared library if the output file
12429 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12430 # to its proper name (with version) after linking.
12431 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'
12432
12433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12434 hardcode_libdir_separator_CXX=:
12435
12436 # Archives containing C++ object files must be created using
12437 # the KAI C++ compiler.
12438 case $host in
12439 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12440 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12441 esac
12442 ;;
12443 RCC*)
12444 # Rational C++ 2.4.1
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12447 ;;
12448 cxx*)
12449 case $host in
12450 osf3*)
12451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12452 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'
12453 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12454 ;;
12455 *)
12456 allow_undefined_flag_CXX=' -expect_unresolved \*'
12457 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'
12458 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12459 echo "-hidden">> $lib.exp~
12460 $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~
12461 $RM $lib.exp'
12462 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12463 ;;
12464 esac
12465
12466 hardcode_libdir_separator_CXX=:
12467
12468 # Commands to make compiler produce verbose output that lists
12469 # what "hidden" libraries, object files and flags are used when
12470 # linking a shared library.
12471 #
12472 # There doesn't appear to be a way to prevent this compiler from
12473 # explicitly linking system object files so we need to strip them
12474 # from the output so that they don't get included in the library
12475 # dependencies.
12476 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'
12477 ;;
12478 *)
12479 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12480 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12481 case $host in
12482 osf3*)
12483 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'
12484 ;;
12485 *)
12486 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'
12487 ;;
12488 esac
12489
12490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12491 hardcode_libdir_separator_CXX=:
12492
12493 # Commands to make compiler produce verbose output that lists
12494 # what "hidden" libraries, object files and flags are used when
12495 # linking a shared library.
12496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12497
12498 else
12499 # FIXME: insert proper C++ library support
12500 ld_shlibs_CXX=no
12501 fi
12502 ;;
12503 esac
12504 ;;
12505
12506 psos*)
12507 # FIXME: insert proper C++ library support
12508 ld_shlibs_CXX=no
12509 ;;
12510
12511 sunos4*)
12512 case $cc_basename in
12513 CC*)
12514 # Sun C++ 4.x
12515 # FIXME: insert proper C++ library support
12516 ld_shlibs_CXX=no
12517 ;;
12518 lcc*)
12519 # Lucid
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12522 ;;
12523 *)
12524 # FIXME: insert proper C++ library support
12525 ld_shlibs_CXX=no
12526 ;;
12527 esac
12528 ;;
12529
12530 solaris*)
12531 case $cc_basename in
12532 CC*)
12533 # Sun C++ 4.2, 5.x and Centerline C++
12534 archive_cmds_need_lc_CXX=yes
12535 no_undefined_flag_CXX=' -zdefs'
12536 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12537 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12538 $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'
12539
12540 hardcode_libdir_flag_spec_CXX='-R$libdir'
12541 hardcode_shlibpath_var_CXX=no
12542 case $host_os in
12543 solaris2.[0-5] | solaris2.[0-5].*) ;;
12544 *)
12545 # The compiler driver will combine and reorder linker options,
12546 # but understands `-z linker_flag'.
12547 # Supported since Solaris 2.6 (maybe 2.5.1?)
12548 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12549 ;;
12550 esac
12551 link_all_deplibs_CXX=yes
12552
12553 output_verbose_link_cmd='echo'
12554
12555 # Archives containing C++ object files must be created using
12556 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12557 # necessary to make sure instantiated templates are included
12558 # in the archive.
12559 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12560 ;;
12561 gcx*)
12562 # Green Hills C++ Compiler
12563 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12564
12565 # The C++ compiler must be used to create the archive.
12566 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12567 ;;
12568 *)
12569 # GNU C++ compiler with Solaris linker
12570 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12571 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12572 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12573 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12574 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12575 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12576
12577 # Commands to make compiler produce verbose output that lists
12578 # what "hidden" libraries, object files and flags are used when
12579 # linking a shared library.
12580 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12581 else
12582 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12583 # platform.
12584 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12585 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12586 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12587
12588 # Commands to make compiler produce verbose output that lists
12589 # what "hidden" libraries, object files and flags are used when
12590 # linking a shared library.
12591 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12592 fi
12593
12594 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12595 case $host_os in
12596 solaris2.[0-5] | solaris2.[0-5].*) ;;
12597 *)
12598 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12599 ;;
12600 esac
12601 fi
12602 ;;
12603 esac
12604 ;;
12605
12606 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12607 no_undefined_flag_CXX='${wl}-z,text'
12608 archive_cmds_need_lc_CXX=no
12609 hardcode_shlibpath_var_CXX=no
12610 runpath_var='LD_RUN_PATH'
12611
12612 case $cc_basename in
12613 CC*)
12614 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616 ;;
12617 *)
12618 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12619 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12620 ;;
12621 esac
12622 ;;
12623
12624 sysv5* | sco3.2v5* | sco5v6*)
12625 # Note: We can NOT use -z defs as we might desire, because we do not
12626 # link with -lc, and that would cause any symbols used from libc to
12627 # always be unresolved, which means just about no library would
12628 # ever link correctly. If we're not using GNU ld we use -z text
12629 # though, which does catch some bad symbols but isn't as heavy-handed
12630 # as -z defs.
12631 no_undefined_flag_CXX='${wl}-z,text'
12632 allow_undefined_flag_CXX='${wl}-z,nodefs'
12633 archive_cmds_need_lc_CXX=no
12634 hardcode_shlibpath_var_CXX=no
12635 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12636 hardcode_libdir_separator_CXX=':'
12637 link_all_deplibs_CXX=yes
12638 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12639 runpath_var='LD_RUN_PATH'
12640
12641 case $cc_basename in
12642 CC*)
12643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12645 ;;
12646 *)
12647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12649 ;;
12650 esac
12651 ;;
12652
12653 tandem*)
12654 case $cc_basename in
12655 NCC*)
12656 # NonStop-UX NCC 3.20
12657 # FIXME: insert proper C++ library support
12658 ld_shlibs_CXX=no
12659 ;;
12660 *)
12661 # FIXME: insert proper C++ library support
12662 ld_shlibs_CXX=no
12663 ;;
12664 esac
12665 ;;
12666
12667 vxworks*)
12668 # FIXME: insert proper C++ library support
12669 ld_shlibs_CXX=no
12670 ;;
12671
Craig Silverstein690172b2007-04-20 21:16:33 +000012672 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012673 # FIXME: insert proper C++ library support
12674 ld_shlibs_CXX=no
12675 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000012676 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012677
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012679$as_echo "$ld_shlibs_CXX" >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012680 test "$ld_shlibs_CXX" = no && can_build_shared=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012681
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012682 GCC_CXX="$GXX"
12683 LD_CXX="$LD"
Craig Silversteinb9f23482007-03-22 00:15:41 +000012684
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012685 ## CAVEAT EMPTOR:
12686 ## There is no encapsulation within the following macros, do not change
12687 ## the running order or otherwise move them around unless you know exactly
12688 ## what you are doing...
12689 # Dependencies to place before and after the object being linked:
12690predep_objects_CXX=
12691postdep_objects_CXX=
12692predeps_CXX=
12693postdeps_CXX=
12694compiler_lib_search_path_CXX=
12695
12696cat > conftest.$ac_ext <<_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000012697class Foo
12698{
12699public:
12700 Foo (void) { a = 0; }
12701private:
12702 int a;
12703};
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012704_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000012705
Craig Silversteinab3d7652009-11-10 16:33:51 +000012706if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000012707 (eval $ac_compile) 2>&5
12708 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +000012709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12710 test $ac_status = 0; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000012711 # Parse the compiler output and extract the necessary
12712 # objects, libraries and library flags.
12713
12714 # Sentinel used to keep track of whether or not we are before
12715 # the conftest object file.
12716 pre_test_object_deps_done=no
12717
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012718 for p in `eval "$output_verbose_link_cmd"`; do
Craig Silversteinb9f23482007-03-22 00:15:41 +000012719 case $p in
12720
12721 -L* | -R* | -l*)
12722 # Some compilers place space between "-{L,R}" and the path.
12723 # Remove the space.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012724 if test $p = "-L" ||
12725 test $p = "-R"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000012726 prev=$p
12727 continue
12728 else
12729 prev=
12730 fi
12731
12732 if test "$pre_test_object_deps_done" = no; then
12733 case $p in
12734 -L* | -R*)
12735 # Internal compiler library paths should come after those
12736 # provided the user. The postdeps already come after the
12737 # user supplied libs so there is no need to process them.
12738 if test -z "$compiler_lib_search_path_CXX"; then
12739 compiler_lib_search_path_CXX="${prev}${p}"
12740 else
12741 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12742 fi
12743 ;;
12744 # The "-l" case would never come before the object being
12745 # linked, so don't bother handling this case.
12746 esac
12747 else
12748 if test -z "$postdeps_CXX"; then
12749 postdeps_CXX="${prev}${p}"
12750 else
12751 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12752 fi
12753 fi
12754 ;;
12755
12756 *.$objext)
12757 # This assumes that the test object file only shows up
12758 # once in the compiler output.
12759 if test "$p" = "conftest.$objext"; then
12760 pre_test_object_deps_done=yes
12761 continue
12762 fi
12763
12764 if test "$pre_test_object_deps_done" = no; then
12765 if test -z "$predep_objects_CXX"; then
12766 predep_objects_CXX="$p"
12767 else
12768 predep_objects_CXX="$predep_objects_CXX $p"
12769 fi
12770 else
12771 if test -z "$postdep_objects_CXX"; then
12772 postdep_objects_CXX="$p"
12773 else
12774 postdep_objects_CXX="$postdep_objects_CXX $p"
12775 fi
12776 fi
12777 ;;
12778
12779 *) ;; # Ignore the rest.
12780
12781 esac
12782 done
12783
12784 # Clean up.
12785 rm -f a.out a.exe
12786else
12787 echo "libtool.m4: error: problem compiling CXX test program"
12788fi
12789
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012790$RM -f confest.$objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012791
Craig Silverstein690172b2007-04-20 21:16:33 +000012792# PORTME: override above test on systems where it is broken
12793case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012794interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000012795 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12796 # hack all around it, let's just trust "g++" to DTRT.
12797 predep_objects_CXX=
12798 postdep_objects_CXX=
12799 postdeps_CXX=
12800 ;;
12801
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012802linux*)
12803 case `$CC -V 2>&1 | sed 5q` in
12804 *Sun\ C*)
12805 # Sun C++ 5.9
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012806
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012807 # The more standards-conforming stlport4 library is
12808 # incompatible with the Cstd library. Avoid specifying
12809 # it if it's in CXXFLAGS. Ignore libCrun as
12810 # -library=stlport4 depends on it.
12811 case " $CXX $CXXFLAGS " in
12812 *" -library=stlport4 "*)
12813 solaris_use_stlport4=yes
12814 ;;
12815 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012816
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012817 if test "$solaris_use_stlport4" != yes; then
12818 postdeps_CXX='-library=Cstd -library=Crun'
12819 fi
12820 ;;
12821 esac
12822 ;;
12823
Craig Silverstein690172b2007-04-20 21:16:33 +000012824solaris*)
12825 case $cc_basename in
12826 CC*)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012827 # The more standards-conforming stlport4 library is
12828 # incompatible with the Cstd library. Avoid specifying
12829 # it if it's in CXXFLAGS. Ignore libCrun as
12830 # -library=stlport4 depends on it.
12831 case " $CXX $CXXFLAGS " in
12832 *" -library=stlport4 "*)
12833 solaris_use_stlport4=yes
12834 ;;
12835 esac
12836
Craig Silverstein690172b2007-04-20 21:16:33 +000012837 # Adding this requires a known-good setup of shared libraries for
12838 # Sun compiler versions before 5.6, else PIC objects from an old
12839 # archive will be linked into the output, leading to subtle bugs.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012840 if test "$solaris_use_stlport4" != yes; then
12841 postdeps_CXX='-library=Cstd -library=Crun'
12842 fi
Craig Silverstein690172b2007-04-20 21:16:33 +000012843 ;;
12844 esac
12845 ;;
12846esac
12847
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012848
Craig Silversteinb9f23482007-03-22 00:15:41 +000012849case " $postdeps_CXX " in
12850*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12851esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012852 compiler_lib_search_dirs_CXX=
12853if test -n "${compiler_lib_search_path_CXX}"; then
12854 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12855fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000012856
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887 lt_prog_compiler_wl_CXX=
Craig Silversteinb9f23482007-03-22 00:15:41 +000012888lt_prog_compiler_pic_CXX=
12889lt_prog_compiler_static_CXX=
12890
Craig Silversteinab3d7652009-11-10 16:33:51 +000012891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12892$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012893
12894 # C++ specific cases for pic, static, wl, etc.
12895 if test "$GXX" = yes; then
12896 lt_prog_compiler_wl_CXX='-Wl,'
12897 lt_prog_compiler_static_CXX='-static'
12898
12899 case $host_os in
12900 aix*)
12901 # All AIX code is PIC.
12902 if test "$host_cpu" = ia64; then
12903 # AIX 5 now supports IA64 processor
12904 lt_prog_compiler_static_CXX='-Bstatic'
12905 fi
12906 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012907
Craig Silversteinb9f23482007-03-22 00:15:41 +000012908 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012909 case $host_cpu in
12910 powerpc)
12911 # see comment about AmigaOS4 .so support
12912 lt_prog_compiler_pic_CXX='-fPIC'
12913 ;;
12914 m68k)
12915 # FIXME: we need at least 68020 code to build shared libraries, but
12916 # adding the `-m68020' flag to GCC prevents building anything better,
12917 # like `-m68040'.
12918 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12919 ;;
12920 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000012921 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012922
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012924 # PIC is the default for these OSes.
12925 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012926 mingw* | cygwin* | os2* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012927 # This hack is so that the source file can tell whether it is being
12928 # built for inclusion in a dll (and should export symbols for example).
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012929 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12930 # (--disable-auto-import) libraries
Craig Silversteinb9f23482007-03-22 00:15:41 +000012931 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12932 ;;
12933 darwin* | rhapsody*)
12934 # PIC is the default on this platform
12935 # Common symbols not allowed in MH_DYLIB files
12936 lt_prog_compiler_pic_CXX='-fno-common'
12937 ;;
12938 *djgpp*)
12939 # DJGPP does not support shared libraries at all
12940 lt_prog_compiler_pic_CXX=
12941 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012942 interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000012943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12944 # Instead, we relocate shared libraries at runtime.
12945 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012946 sysv4*MP*)
12947 if test -d /usr/nec; then
12948 lt_prog_compiler_pic_CXX=-Kconform_pic
12949 fi
12950 ;;
12951 hpux*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012952 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12953 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12954 # sets the default TLS model and affects inlining.
Craig Silverstein690172b2007-04-20 21:16:33 +000012955 case $host_cpu in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012956 hppa*64*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012957 ;;
12958 *)
12959 lt_prog_compiler_pic_CXX='-fPIC'
12960 ;;
12961 esac
12962 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012963 *qnx* | *nto*)
12964 # QNX uses GNU C++, but need to define -shared option too, otherwise
12965 # it will coredump.
12966 lt_prog_compiler_pic_CXX='-fPIC -shared'
12967 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012968 *)
12969 lt_prog_compiler_pic_CXX='-fPIC'
12970 ;;
12971 esac
12972 else
12973 case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012974 aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012975 # All AIX code is PIC.
12976 if test "$host_cpu" = ia64; then
12977 # AIX 5 now supports IA64 processor
12978 lt_prog_compiler_static_CXX='-Bstatic'
12979 else
12980 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12981 fi
12982 ;;
12983 chorus*)
12984 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000012985 cxch68*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012986 # Green Hills C++ Compiler
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012987 # _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"
Craig Silversteinb9f23482007-03-22 00:15:41 +000012988 ;;
12989 esac
12990 ;;
12991 dgux*)
12992 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000012993 ec++*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012994 lt_prog_compiler_pic_CXX='-KPIC'
12995 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000012996 ghcx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012997 # Green Hills C++ Compiler
12998 lt_prog_compiler_pic_CXX='-pic'
12999 ;;
13000 *)
13001 ;;
13002 esac
13003 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013004 freebsd* | dragonfly*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013005 # FreeBSD uses GNU C++
13006 ;;
13007 hpux9* | hpux10* | hpux11*)
13008 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013009 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013010 lt_prog_compiler_wl_CXX='-Wl,'
Craig Silverstein690172b2007-04-20 21:16:33 +000013011 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013012 if test "$host_cpu" != ia64; then
13013 lt_prog_compiler_pic_CXX='+Z'
13014 fi
13015 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013016 aCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013017 lt_prog_compiler_wl_CXX='-Wl,'
Craig Silverstein690172b2007-04-20 21:16:33 +000013018 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13019 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +000013020 hppa*64*|ia64*)
13021 # +Z the default
13022 ;;
13023 *)
13024 lt_prog_compiler_pic_CXX='+Z'
13025 ;;
13026 esac
13027 ;;
13028 *)
13029 ;;
13030 esac
13031 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013032 interix*)
13033 # This is c89, which is MS Visual C++ (no shared libs)
13034 # Anyone wants to do a port?
13035 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013036 irix5* | irix6* | nonstopux*)
13037 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013038 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013039 lt_prog_compiler_wl_CXX='-Wl,'
13040 lt_prog_compiler_static_CXX='-non_shared'
13041 # CC pic flag -KPIC is the default.
13042 ;;
13043 *)
13044 ;;
13045 esac
13046 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013047 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013048 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013049 KCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013050 # KAI C++ Compiler
13051 lt_prog_compiler_wl_CXX='--backend -Wl,'
13052 lt_prog_compiler_pic_CXX='-fPIC'
13053 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013054 ecpc* )
13055 # old Intel C++ for x86_64 which still supported -KPIC.
Craig Silversteinb9f23482007-03-22 00:15:41 +000013056 lt_prog_compiler_wl_CXX='-Wl,'
13057 lt_prog_compiler_pic_CXX='-KPIC'
13058 lt_prog_compiler_static_CXX='-static'
13059 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013060 icpc* )
13061 # Intel C++, used to be incompatible with GCC.
13062 # ICC 10 doesn't accept -KPIC any more.
13063 lt_prog_compiler_wl_CXX='-Wl,'
13064 lt_prog_compiler_pic_CXX='-fPIC'
13065 lt_prog_compiler_static_CXX='-static'
13066 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013067 pgCC* | pgcpp*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013068 # Portland Group C++ compiler
Craig Silverstein690172b2007-04-20 21:16:33 +000013069 lt_prog_compiler_wl_CXX='-Wl,'
13070 lt_prog_compiler_pic_CXX='-fpic'
13071 lt_prog_compiler_static_CXX='-Bstatic'
13072 ;;
13073 cxx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013074 # Compaq C++
13075 # Make sure the PIC flag is empty. It appears that all Alpha
13076 # Linux and Compaq Tru64 Unix objects are PIC.
13077 lt_prog_compiler_pic_CXX=
13078 lt_prog_compiler_static_CXX='-non_shared'
13079 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013080 xlc* | xlC*)
13081 # IBM XL 8.0 on PPC
13082 lt_prog_compiler_wl_CXX='-Wl,'
13083 lt_prog_compiler_pic_CXX='-qpic'
13084 lt_prog_compiler_static_CXX='-qstaticlink'
13085 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013086 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013087 case `$CC -V 2>&1 | sed 5q` in
13088 *Sun\ C*)
13089 # Sun C++ 5.9
13090 lt_prog_compiler_pic_CXX='-KPIC'
13091 lt_prog_compiler_static_CXX='-Bstatic'
13092 lt_prog_compiler_wl_CXX='-Qoption ld '
13093 ;;
13094 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000013095 ;;
13096 esac
13097 ;;
13098 lynxos*)
13099 ;;
13100 m88k*)
13101 ;;
13102 mvs*)
13103 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013104 cxx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013105 lt_prog_compiler_pic_CXX='-W c,exportall'
13106 ;;
13107 *)
13108 ;;
13109 esac
13110 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013111 netbsd* | netbsdelf*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013112 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013113 *qnx* | *nto*)
13114 # QNX uses GNU C++, but need to define -shared option too, otherwise
13115 # it will coredump.
13116 lt_prog_compiler_pic_CXX='-fPIC -shared'
13117 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013118 osf3* | osf4* | osf5*)
13119 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013120 KCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013121 lt_prog_compiler_wl_CXX='--backend -Wl,'
13122 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013123 RCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013124 # Rational C++ 2.4.1
13125 lt_prog_compiler_pic_CXX='-pic'
13126 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013127 cxx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013128 # Digital/Compaq C++
13129 lt_prog_compiler_wl_CXX='-Wl,'
13130 # Make sure the PIC flag is empty. It appears that all Alpha
13131 # Linux and Compaq Tru64 Unix objects are PIC.
13132 lt_prog_compiler_pic_CXX=
13133 lt_prog_compiler_static_CXX='-non_shared'
13134 ;;
13135 *)
13136 ;;
13137 esac
13138 ;;
13139 psos*)
13140 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013141 solaris*)
13142 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013143 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013144 # Sun C++ 4.2, 5.x and Centerline C++
13145 lt_prog_compiler_pic_CXX='-KPIC'
13146 lt_prog_compiler_static_CXX='-Bstatic'
13147 lt_prog_compiler_wl_CXX='-Qoption ld '
13148 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013149 gcx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013150 # Green Hills C++ Compiler
13151 lt_prog_compiler_pic_CXX='-PIC'
13152 ;;
13153 *)
13154 ;;
13155 esac
13156 ;;
13157 sunos4*)
13158 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013159 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013160 # Sun C++ 4.x
13161 lt_prog_compiler_pic_CXX='-pic'
13162 lt_prog_compiler_static_CXX='-Bstatic'
13163 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013164 lcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013165 # Lucid
13166 lt_prog_compiler_pic_CXX='-pic'
13167 ;;
13168 *)
13169 ;;
13170 esac
13171 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013172 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13173 case $cc_basename in
13174 CC*)
13175 lt_prog_compiler_wl_CXX='-Wl,'
13176 lt_prog_compiler_pic_CXX='-KPIC'
13177 lt_prog_compiler_static_CXX='-Bstatic'
13178 ;;
13179 esac
13180 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013181 tandem*)
13182 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013183 NCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013184 # NonStop-UX NCC 3.20
13185 lt_prog_compiler_pic_CXX='-KPIC'
13186 ;;
13187 *)
13188 ;;
13189 esac
13190 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013191 vxworks*)
13192 ;;
13193 *)
13194 lt_prog_compiler_can_build_shared_CXX=no
13195 ;;
13196 esac
13197 fi
13198
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013199case $host_os in
13200 # For platforms which do not support PIC, -DPIC is meaningless:
13201 *djgpp*)
13202 lt_prog_compiler_pic_CXX=
13203 ;;
13204 *)
13205 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13206 ;;
13207esac
Craig Silversteinab3d7652009-11-10 16:33:51 +000013208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13209$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013210
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013211
13212
Craig Silversteinb9f23482007-03-22 00:15:41 +000013213#
13214# Check to make sure the PIC flag actually works.
13215#
13216if test -n "$lt_prog_compiler_pic_CXX"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000013218$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13219if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000013221else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013222 lt_cv_prog_compiler_pic_works_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013223 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000013225 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13226 # Insert the option either (1) after the last *FLAGS variable, or
13227 # (2) before a word containing "conftest.", or (3) at the end.
13228 # Note that $ac_compile itself does not contain backslashes and begins
13229 # with a dollar sign (not a hyphen), so the echo should work correctly.
13230 # The option is referenced via a variable to avoid confusing sed.
13231 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +000013232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +000013233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013235 (eval echo "\"\$as_me:13235: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013236 (eval "$lt_compile" 2>conftest.err)
13237 ac_status=$?
13238 cat conftest.err >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013239 echo "$as_me:13239: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000013240 if (exit $ac_status) && test -s "$ac_outfile"; then
13241 # The compiler can only warn and ignore the option if not recognized
Craig Silverstein690172b2007-04-20 21:16:33 +000013242 # So say no if there are warnings other than the usual output.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013243 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +000013244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013246 lt_cv_prog_compiler_pic_works_CXX=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000013247 fi
13248 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013249 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +000013250
13251fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000013252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13253$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013254
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013255if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000013256 case $lt_prog_compiler_pic_CXX in
13257 "" | " "*) ;;
13258 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13259 esac
13260else
13261 lt_prog_compiler_pic_CXX=
13262 lt_prog_compiler_can_build_shared_CXX=no
13263fi
13264
13265fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013266
13267
Craig Silversteinb9f23482007-03-22 00:15:41 +000013268
Craig Silverstein690172b2007-04-20 21:16:33 +000013269#
13270# Check to make sure the static flag actually works.
13271#
13272wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Craig Silversteinab3d7652009-11-10 16:33:51 +000013273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13274$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13275if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
Craig Silverstein690172b2007-04-20 21:16:33 +000013277else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013278 lt_cv_prog_compiler_static_works_CXX=no
Craig Silverstein690172b2007-04-20 21:16:33 +000013279 save_LDFLAGS="$LDFLAGS"
13280 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013281 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +000013282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13283 # The linker can only warn and ignore the option if not recognized
13284 # So say no if there are warnings
13285 if test -s conftest.err; then
13286 # Append any errors to the config.log.
13287 cat conftest.err 1>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013288 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +000013289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13290 if diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013291 lt_cv_prog_compiler_static_works_CXX=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000013292 fi
13293 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013294 lt_cv_prog_compiler_static_works_CXX=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000013295 fi
13296 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013297 $RM -r conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000013298 LDFLAGS="$save_LDFLAGS"
13299
13300fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000013301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13302$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000013303
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013304if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000013305 :
13306else
13307 lt_prog_compiler_static_CXX=
13308fi
13309
13310
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013311
13312
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000013314$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13315if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000013317else
13318 lt_cv_prog_compiler_c_o_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013319 $RM -r conftest 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000013320 mkdir conftest
13321 cd conftest
13322 mkdir out
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000013324
Craig Silversteinb9f23482007-03-22 00:15:41 +000013325 lt_compiler_flag="-o out/conftest2.$ac_objext"
13326 # Insert the option either (1) after the last *FLAGS variable, or
13327 # (2) before a word containing "conftest.", or (3) at the end.
13328 # Note that $ac_compile itself does not contain backslashes and begins
13329 # with a dollar sign (not a hyphen), so the echo should work correctly.
13330 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +000013331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +000013332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013334 (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013335 (eval "$lt_compile" 2>out/conftest.err)
13336 ac_status=$?
13337 cat out/conftest.err >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013338 echo "$as_me:13338: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000013339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13340 then
13341 # The compiler can only warn and ignore the option if not recognized
13342 # So say no if there are warnings
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013343 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +000013344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000013346 lt_cv_prog_compiler_c_o_CXX=yes
13347 fi
13348 fi
Craig Silverstein690172b2007-04-20 21:16:33 +000013349 chmod u+w . 2>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013350 $RM conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000013351 # SGI C++ compiler will create directory out/ii_files/ for
13352 # template instantiation
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13354 $RM out/* && rmdir out
Craig Silversteinb9f23482007-03-22 00:15:41 +000013355 cd ..
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013356 $RM -r conftest
13357 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +000013358
13359fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000013360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13361$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013362
13363
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013364
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13366$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13367if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13368 $as_echo_n "(cached) " >&6
13369else
13370 lt_cv_prog_compiler_c_o_CXX=no
13371 $RM -r conftest 2>/dev/null
13372 mkdir conftest
13373 cd conftest
13374 mkdir out
13375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13376
13377 lt_compiler_flag="-o out/conftest2.$ac_objext"
13378 # Insert the option either (1) after the last *FLAGS variable, or
13379 # (2) before a word containing "conftest.", or (3) at the end.
13380 # Note that $ac_compile itself does not contain backslashes and begins
13381 # with a dollar sign (not a hyphen), so the echo should work correctly.
13382 lt_compile=`echo "$ac_compile" | $SED \
13383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13385 -e 's:$: $lt_compiler_flag:'`
13386 (eval echo "\"\$as_me:13386: $lt_compile\"" >&5)
13387 (eval "$lt_compile" 2>out/conftest.err)
13388 ac_status=$?
13389 cat out/conftest.err >&5
13390 echo "$as_me:13390: \$? = $ac_status" >&5
13391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13392 then
13393 # The compiler can only warn and ignore the option if not recognized
13394 # So say no if there are warnings
13395 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13398 lt_cv_prog_compiler_c_o_CXX=yes
13399 fi
13400 fi
13401 chmod u+w . 2>&5
13402 $RM conftest*
13403 # SGI C++ compiler will create directory out/ii_files/ for
13404 # template instantiation
13405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13406 $RM out/* && rmdir out
13407 cd ..
13408 $RM -r conftest
13409 $RM conftest*
13410
13411fi
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13413$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13414
13415
13416
13417
Craig Silversteinb9f23482007-03-22 00:15:41 +000013418hard_links="nottested"
13419if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13420 # do not overwrite the value of need_locks provided by the user
Craig Silversteinab3d7652009-11-10 16:33:51 +000013421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13422$as_echo_n "checking if we can lock with hard links... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013423 hard_links=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013424 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +000013425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13426 touch conftest.a
13427 ln conftest.a conftest.b 2>&5 || hard_links=no
13428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Craig Silversteinab3d7652009-11-10 16:33:51 +000013429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13430$as_echo "$hard_links" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013431 if test "$hard_links" = no; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000013432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13433$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000013434 need_locks=warn
13435 fi
13436else
13437 need_locks=no
13438fi
13439
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013440
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000013443$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013444
13445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13446 case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013447 aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013448 # If we're using GNU nm, then we don't want the "-C" option.
13449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013450 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13451 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013452 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013453 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013454 fi
13455 ;;
13456 pw32*)
13457 export_symbols_cmds_CXX="$ltdll_cmds"
13458 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013459 cygwin* | mingw* | cegcc*)
13460 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'
Craig Silverstein690172b2007-04-20 21:16:33 +000013461 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013462 linux* | k*bsd*-gnu)
Craig Silverstein690172b2007-04-20 21:16:33 +000013463 link_all_deplibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000013464 ;;
13465 *)
13466 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13467 ;;
13468 esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013469 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013470
Craig Silversteinab3d7652009-11-10 16:33:51 +000013471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13472$as_echo "$ld_shlibs_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013473test "$ld_shlibs_CXX" = no && can_build_shared=no
13474
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013475with_gnu_ld_CXX=$with_gnu_ld
13476
13477
13478
13479
13480
13481
Craig Silversteinb9f23482007-03-22 00:15:41 +000013482#
13483# Do we need to explicitly link libc?
13484#
13485case "x$archive_cmds_need_lc_CXX" in
13486x|xyes)
13487 # Assume -lc should be added
13488 archive_cmds_need_lc_CXX=yes
13489
13490 if test "$enable_shared" = yes && test "$GCC" = yes; then
13491 case $archive_cmds_CXX in
13492 *'~'*)
13493 # FIXME: we may have to deal with multi-command sequences.
13494 ;;
13495 '$CC '*)
13496 # Test whether the compiler implicitly links with -lc since on some
13497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13498 # to ld, don't add -lc before -lgcc.
Craig Silversteinab3d7652009-11-10 16:33:51 +000013499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13500$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013501 $RM conftest*
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000013503
Craig Silversteinab3d7652009-11-10 16:33:51 +000013504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000013505 (eval $ac_compile) 2>&5
13506 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +000013507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13508 test $ac_status = 0; } 2>conftest.err; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000013509 soname=conftest
13510 lib=conftest
13511 libobjs=conftest.$ac_objext
13512 deplibs=
13513 wl=$lt_prog_compiler_wl_CXX
Craig Silverstein690172b2007-04-20 21:16:33 +000013514 pic_flag=$lt_prog_compiler_pic_CXX
Craig Silversteinb9f23482007-03-22 00:15:41 +000013515 compiler_flags=-v
13516 linker_flags=-v
13517 verstring=
13518 output_objdir=.
13519 libname=conftest
13520 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13521 allow_undefined_flag_CXX=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13523 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000013524 ac_status=$?
Craig Silversteinab3d7652009-11-10 16:33:51 +000013525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13526 test $ac_status = 0; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013527 then
13528 archive_cmds_need_lc_CXX=no
13529 else
13530 archive_cmds_need_lc_CXX=yes
13531 fi
13532 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13533 else
13534 cat conftest.err 1>&5
13535 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013536 $RM conftest*
Craig Silversteinab3d7652009-11-10 16:33:51 +000013537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13538$as_echo "$archive_cmds_need_lc_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013539 ;;
13540 esac
13541 fi
13542 ;;
13543esac
13544
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000013609$as_echo_n "checking dynamic linker characteristics... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013610
Craig Silversteinb9f23482007-03-22 00:15:41 +000013611library_names_spec=
13612libname_spec='lib$name'
13613soname_spec=
Craig Silverstein690172b2007-04-20 21:16:33 +000013614shrext_cmds=".so"
Craig Silversteinb9f23482007-03-22 00:15:41 +000013615postinstall_cmds=
13616postuninstall_cmds=
13617finish_cmds=
13618finish_eval=
13619shlibpath_var=
13620shlibpath_overrides_runpath=unknown
13621version_type=none
13622dynamic_linker="$host_os ld.so"
13623sys_lib_dlsearch_path_spec="/lib /usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000013624need_lib_prefix=unknown
13625hardcode_into_libs=no
13626
13627# when you set need_version to no, make sure it does not cause -set_version
13628# flags to be left without arguments
13629need_version=unknown
13630
13631case $host_os in
13632aix3*)
13633 version_type=linux
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13635 shlibpath_var=LIBPATH
13636
13637 # AIX 3 has no versioning support, so we append a major version to the name.
13638 soname_spec='${libname}${release}${shared_ext}$major'
13639 ;;
13640
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013641aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013642 version_type=linux
13643 need_lib_prefix=no
13644 need_version=no
13645 hardcode_into_libs=yes
13646 if test "$host_cpu" = ia64; then
13647 # AIX 5 supports IA64
13648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 else
13651 # With GCC up to 2.95.x, collect2 would create an import file
13652 # for dependence libraries. The import file would start with
13653 # the line `#! .'. This would cause the generated library to
13654 # depend on `.', always an invalid library. This was fixed in
13655 # development snapshots of GCC prior to 3.0.
13656 case $host_os in
13657 aix4 | aix4.[01] | aix4.[01].*)
13658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13659 echo ' yes '
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013660 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000013661 :
13662 else
13663 can_build_shared=no
13664 fi
13665 ;;
13666 esac
13667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13668 # soname into executable. Probably we can add versioning support to
13669 # collect2, so additional links can be useful in future.
13670 if test "$aix_use_runtimelinking" = yes; then
13671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13672 # instead of lib<name>.a to let people know that these are not
13673 # typical AIX shared libraries.
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675 else
13676 # We preserve .a as extension for shared libraries through AIX4.2
13677 # and later when we are not doing run time linking.
13678 library_names_spec='${libname}${release}.a $libname.a'
13679 soname_spec='${libname}${release}${shared_ext}$major'
13680 fi
13681 shlibpath_var=LIBPATH
13682 fi
13683 ;;
13684
13685amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013686 case $host_cpu in
13687 powerpc)
13688 # Since July 2007 AmigaOS4 officially supports .so libraries.
13689 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691 ;;
13692 m68k)
13693 library_names_spec='$libname.ixlibrary $libname.a'
13694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13695 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'
13696 ;;
13697 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000013698 ;;
13699
13700beos*)
13701 library_names_spec='${libname}${shared_ext}'
13702 dynamic_linker="$host_os ld.so"
13703 shlibpath_var=LIBRARY_PATH
13704 ;;
13705
Craig Silverstein690172b2007-04-20 21:16:33 +000013706bsdi[45]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013707 version_type=linux
13708 need_version=no
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710 soname_spec='${libname}${release}${shared_ext}$major'
13711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13712 shlibpath_var=LD_LIBRARY_PATH
13713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13715 # the default ld.so.conf also contains /usr/contrib/lib and
13716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13717 # libtool to hard-code these into programs
13718 ;;
13719
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013720cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013721 version_type=windows
Craig Silverstein690172b2007-04-20 21:16:33 +000013722 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000013723 need_version=no
13724 need_lib_prefix=no
13725
13726 case $GCC,$host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013727 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013728 library_names_spec='$libname.dll.a'
13729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13730 postinstall_cmds='base_file=`basename \${file}`~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Craig Silversteinb9f23482007-03-22 00:15:41 +000013732 dldir=$destdir/`dirname \$dlpath`~
13733 test -d \$dldir || mkdir -p \$dldir~
Craig Silverstein690172b2007-04-20 21:16:33 +000013734 $install_prog $dir/$dlname \$dldir/$dlname~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013735 chmod a+x \$dldir/$dlname~
13736 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13737 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13738 fi'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13740 dlpath=$dir/\$dldll~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013741 $RM \$dlpath'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013742 shlibpath_overrides_runpath=yes
13743
13744 case $host_os in
13745 cygwin*)
13746 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein690172b2007-04-20 21:16:33 +000013748 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000013749 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013750 mingw* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013751 # MinGW DLLs use traditional 'lib' prefix
13752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013753 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13754 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000013755 # It is most probably a Windows format PATH printed by
13756 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13757 # path with ; separators, and with drive letters. We can handle the
13758 # drive letters (cygwin fileutils understands them), so leave them,
13759 # especially as we might pass files found there to a mingw objdump,
13760 # which wouldn't understand a cygwinified path. Ahh.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013761 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000013762 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013763 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000013764 fi
13765 ;;
13766 pw32*)
13767 # pw32 DLLs use 'pw' prefix rather than 'lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000013768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013769 ;;
13770 esac
13771 ;;
13772
13773 *)
13774 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13775 ;;
13776 esac
13777 dynamic_linker='Win32 ld.exe'
13778 # FIXME: first we should search . and the directory the executable is in
13779 shlibpath_var=PATH
13780 ;;
13781
13782darwin* | rhapsody*)
13783 dynamic_linker="$host_os dyld"
13784 version_type=darwin
13785 need_lib_prefix=no
13786 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013787 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013788 soname_spec='${libname}${release}${major}$shared_ext'
13789 shlibpath_overrides_runpath=yes
13790 shlibpath_var=DYLD_LIBRARY_PATH
Craig Silverstein690172b2007-04-20 21:16:33 +000013791 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013792
Craig Silversteinb9f23482007-03-22 00:15:41 +000013793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13794 ;;
13795
13796dgux*)
13797 version_type=linux
13798 need_lib_prefix=no
13799 need_version=no
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13801 soname_spec='${libname}${release}${shared_ext}$major'
13802 shlibpath_var=LD_LIBRARY_PATH
13803 ;;
13804
13805freebsd1*)
13806 dynamic_linker=no
13807 ;;
13808
Craig Silverstein690172b2007-04-20 21:16:33 +000013809freebsd* | dragonfly*)
13810 # DragonFly does not have aout. When/if they implement a new
13811 # versioning mechanism, adjust this.
13812 if test -x /usr/bin/objformat; then
13813 objformat=`/usr/bin/objformat`
13814 else
13815 case $host_os in
13816 freebsd[123]*) objformat=aout ;;
13817 *) objformat=elf ;;
13818 esac
13819 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000013820 version_type=freebsd-$objformat
13821 case $version_type in
13822 freebsd-elf*)
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13824 need_version=no
13825 need_lib_prefix=no
13826 ;;
13827 freebsd-*)
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13829 need_version=yes
13830 ;;
13831 esac
13832 shlibpath_var=LD_LIBRARY_PATH
13833 case $host_os in
13834 freebsd2*)
13835 shlibpath_overrides_runpath=yes
13836 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013837 freebsd3.[01]* | freebsdelf3.[01]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013838 shlibpath_overrides_runpath=yes
13839 hardcode_into_libs=yes
13840 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013843 shlibpath_overrides_runpath=no
13844 hardcode_into_libs=yes
13845 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013846 *) # from 4.6 on, and DragonFly
Craig Silverstein690172b2007-04-20 21:16:33 +000013847 shlibpath_overrides_runpath=yes
13848 hardcode_into_libs=yes
13849 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013850 esac
13851 ;;
13852
13853gnu*)
13854 version_type=linux
13855 need_lib_prefix=no
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 hardcode_into_libs=yes
13861 ;;
13862
13863hpux9* | hpux10* | hpux11*)
13864 # Give a soname corresponding to the major version so that dld.sl refuses to
13865 # link against other versions.
13866 version_type=sunos
13867 need_lib_prefix=no
13868 need_version=no
Craig Silverstein690172b2007-04-20 21:16:33 +000013869 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +000013870 ia64*)
Craig Silverstein690172b2007-04-20 21:16:33 +000013871 shrext_cmds='.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013872 hardcode_into_libs=yes
13873 dynamic_linker="$host_os dld.so"
13874 shlibpath_var=LD_LIBRARY_PATH
13875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13877 soname_spec='${libname}${release}${shared_ext}$major'
13878 if test "X$HPUX_IA64_MODE" = X32; then
13879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13880 else
13881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13882 fi
13883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13884 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013885 hppa*64*)
13886 shrext_cmds='.sl'
13887 hardcode_into_libs=yes
13888 dynamic_linker="$host_os dld.sl"
13889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13895 ;;
13896 *)
Craig Silverstein690172b2007-04-20 21:16:33 +000013897 shrext_cmds='.sl'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013898 dynamic_linker="$host_os dld.sl"
13899 shlibpath_var=SHLIB_PATH
13900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902 soname_spec='${libname}${release}${shared_ext}$major'
13903 ;;
13904 esac
13905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13906 postinstall_cmds='chmod 555 $lib'
13907 ;;
13908
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013909interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000013910 version_type=linux
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13916 shlibpath_var=LD_LIBRARY_PATH
13917 shlibpath_overrides_runpath=no
13918 hardcode_into_libs=yes
13919 ;;
13920
Craig Silversteinb9f23482007-03-22 00:15:41 +000013921irix5* | irix6* | nonstopux*)
13922 case $host_os in
13923 nonstopux*) version_type=nonstopux ;;
13924 *)
13925 if test "$lt_cv_prog_gnu_ld" = yes; then
13926 version_type=linux
13927 else
13928 version_type=irix
13929 fi ;;
13930 esac
13931 need_lib_prefix=no
13932 need_version=no
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13935 case $host_os in
13936 irix5* | nonstopux*)
13937 libsuff= shlibsuff=
13938 ;;
13939 *)
13940 case $LD in # libtool.m4 will add one of these switches to LD
13941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13942 libsuff= shlibsuff= libmagic=32-bit;;
13943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13944 libsuff=32 shlibsuff=N32 libmagic=N32;;
13945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13947 *) libsuff= shlibsuff= libmagic=never-match;;
13948 esac
13949 ;;
13950 esac
13951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13952 shlibpath_overrides_runpath=no
13953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13955 hardcode_into_libs=yes
13956 ;;
13957
13958# No shared lib support for Linux oldld, aout, or coff.
13959linux*oldld* | linux*aout* | linux*coff*)
13960 dynamic_linker=no
13961 ;;
13962
13963# This must be Linux ELF.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013964linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013965 version_type=linux
13966 need_lib_prefix=no
13967 need_version=no
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 soname_spec='${libname}${release}${shared_ext}$major'
13970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13971 shlibpath_var=LD_LIBRARY_PATH
13972 shlibpath_overrides_runpath=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013973 # Some binutils ld are patched to set DT_RUNPATH
13974 save_LDFLAGS=$LDFLAGS
13975 save_libdir=$libdir
13976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h. */
13980
13981int
13982main ()
13983{
13984
13985 ;
13986 return 0;
13987}
13988_ACEOF
13989if ac_fn_cxx_try_link "$LINENO"; then :
13990 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13991 shlibpath_overrides_runpath=yes
13992fi
13993fi
13994rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LDFLAGS=$save_LDFLAGS
13997 libdir=$save_libdir
13998
Craig Silversteinb9f23482007-03-22 00:15:41 +000013999 # This implies no fast_install, which is unacceptable.
14000 # Some rework will be needed to allow for fast_install
14001 # before this can be enabled.
14002 hardcode_into_libs=yes
14003
Craig Silverstein690172b2007-04-20 21:16:33 +000014004 # Append ld.so.conf contents to the search path
14005 if test -f /etc/ld.so.conf; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014006 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' ' '`
Craig Silverstein690172b2007-04-20 21:16:33 +000014007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14008 fi
14009
Craig Silversteinb9f23482007-03-22 00:15:41 +000014010 # We used to test for /lib/ld.so.1 and disable shared libraries on
14011 # powerpc, because MkLinux only supported shared libraries with the
14012 # GNU dynamic linker. Since this was broken with cross compilers,
14013 # most powerpc-linux boxes support dynamic linking these days and
14014 # people can always --disable-shared, the test was removed, and we
14015 # assume the GNU/Linux dynamic linker is in use.
14016 dynamic_linker='GNU/Linux ld.so'
Craig Silverstein690172b2007-04-20 21:16:33 +000014017 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014018
Craig Silverstein690172b2007-04-20 21:16:33 +000014019netbsdelf*-gnu)
14020 version_type=linux
14021 need_lib_prefix=no
14022 need_version=no
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 shlibpath_var=LD_LIBRARY_PATH
14026 shlibpath_overrides_runpath=no
14027 hardcode_into_libs=yes
14028 dynamic_linker='NetBSD ld.elf_so'
14029 ;;
14030
Craig Silversteinb9f23482007-03-22 00:15:41 +000014031netbsd*)
14032 version_type=sunos
14033 need_lib_prefix=no
14034 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14038 dynamic_linker='NetBSD (a.out) ld.so'
14039 else
Craig Silverstein690172b2007-04-20 21:16:33 +000014040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014041 soname_spec='${libname}${release}${shared_ext}$major'
14042 dynamic_linker='NetBSD ld.elf_so'
14043 fi
14044 shlibpath_var=LD_LIBRARY_PATH
14045 shlibpath_overrides_runpath=yes
14046 hardcode_into_libs=yes
14047 ;;
14048
14049newsos6)
14050 version_type=linux
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 shlibpath_overrides_runpath=yes
14054 ;;
14055
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014056*nto* | *qnx*)
14057 version_type=qnx
Craig Silversteinb9f23482007-03-22 00:15:41 +000014058 need_lib_prefix=no
14059 need_version=no
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014063 shlibpath_overrides_runpath=no
14064 hardcode_into_libs=yes
14065 dynamic_linker='ldqnx.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014066 ;;
14067
14068openbsd*)
14069 version_type=sunos
Craig Silverstein690172b2007-04-20 21:16:33 +000014070 sys_lib_dlsearch_path_spec="/usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014071 need_lib_prefix=no
Craig Silverstein690172b2007-04-20 21:16:33 +000014072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14073 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014074 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14075 *) need_version=no ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014076 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000014077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14079 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014081 case $host_os in
14082 openbsd2.[89] | openbsd2.[89].*)
14083 shlibpath_overrides_runpath=no
14084 ;;
14085 *)
14086 shlibpath_overrides_runpath=yes
14087 ;;
14088 esac
14089 else
14090 shlibpath_overrides_runpath=yes
14091 fi
14092 ;;
14093
14094os2*)
14095 libname_spec='$name'
Craig Silverstein690172b2007-04-20 21:16:33 +000014096 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014097 need_lib_prefix=no
14098 library_names_spec='$libname${shared_ext} $libname.a'
14099 dynamic_linker='OS/2 ld.exe'
14100 shlibpath_var=LIBPATH
14101 ;;
14102
14103osf3* | osf4* | osf5*)
14104 version_type=osf
14105 need_lib_prefix=no
14106 need_version=no
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14112 ;;
14113
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014114rdos*)
14115 dynamic_linker=no
14116 ;;
14117
Craig Silversteinb9f23482007-03-22 00:15:41 +000014118solaris*)
14119 version_type=linux
14120 need_lib_prefix=no
14121 need_version=no
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes
14126 hardcode_into_libs=yes
14127 # ldd complains unless libraries are executable
14128 postinstall_cmds='chmod +x $lib'
14129 ;;
14130
14131sunos4*)
14132 version_type=sunos
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14135 shlibpath_var=LD_LIBRARY_PATH
14136 shlibpath_overrides_runpath=yes
14137 if test "$with_gnu_ld" = yes; then
14138 need_lib_prefix=no
14139 fi
14140 need_version=yes
14141 ;;
14142
Craig Silverstein690172b2007-04-20 21:16:33 +000014143sysv4 | sysv4.3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014144 version_type=linux
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 case $host_vendor in
14149 sni)
14150 shlibpath_overrides_runpath=no
14151 need_lib_prefix=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000014152 runpath_var=LD_RUN_PATH
14153 ;;
14154 siemens)
14155 need_lib_prefix=no
14156 ;;
14157 motorola)
14158 need_lib_prefix=no
14159 need_version=no
14160 shlibpath_overrides_runpath=no
14161 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14162 ;;
14163 esac
14164 ;;
14165
14166sysv4*MP*)
14167 if test -d /usr/nec ;then
14168 version_type=linux
14169 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14170 soname_spec='$libname${shared_ext}.$major'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 fi
14173 ;;
14174
Craig Silverstein690172b2007-04-20 21:16:33 +000014175sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14176 version_type=freebsd-elf
14177 need_lib_prefix=no
14178 need_version=no
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14180 soname_spec='${libname}${release}${shared_ext}$major'
14181 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014182 shlibpath_overrides_runpath=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000014183 hardcode_into_libs=yes
14184 if test "$with_gnu_ld" = yes; then
14185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000014186 else
14187 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000014188 case $host_os in
14189 sco3.2v5*)
14190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14191 ;;
14192 esac
14193 fi
14194 sys_lib_dlsearch_path_spec='/usr/lib'
14195 ;;
14196
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014197tpf*)
14198 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14199 version_type=linux
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 shlibpath_overrides_runpath=no
14205 hardcode_into_libs=yes
14206 ;;
14207
Craig Silversteinb9f23482007-03-22 00:15:41 +000014208uts4*)
14209 version_type=linux
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 ;;
14214
14215*)
14216 dynamic_linker=no
14217 ;;
14218esac
Craig Silversteinab3d7652009-11-10 16:33:51 +000014219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14220$as_echo "$dynamic_linker" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014221test "$dynamic_linker" = no && can_build_shared=no
14222
Craig Silverstein690172b2007-04-20 21:16:33 +000014223variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14224if test "$GCC" = yes; then
14225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014226fi
14227
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014228if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14229 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14230fi
14231if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14232 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14233fi
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014271$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000014272hardcode_action_CXX=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014273if test -n "$hardcode_libdir_flag_spec_CXX" ||
14274 test -n "$runpath_var_CXX" ||
Craig Silverstein690172b2007-04-20 21:16:33 +000014275 test "X$hardcode_automatic_CXX" = "Xyes" ; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014276
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014277 # We can hardcode non-existent directories.
Craig Silverstein690172b2007-04-20 21:16:33 +000014278 if test "$hardcode_direct_CXX" != no &&
14279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14280 # have to relink, otherwise we might link with an installed library
14281 # when we should be linking with a yet-to-be-installed one
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014282 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
Craig Silverstein690172b2007-04-20 21:16:33 +000014283 test "$hardcode_minus_L_CXX" != no; then
14284 # Linking always hardcodes the temporary library directory.
14285 hardcode_action_CXX=relink
Craig Silversteinb9f23482007-03-22 00:15:41 +000014286 else
Craig Silverstein690172b2007-04-20 21:16:33 +000014287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14288 hardcode_action_CXX=immediate
Craig Silversteinb9f23482007-03-22 00:15:41 +000014289 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000014290else
Craig Silverstein690172b2007-04-20 21:16:33 +000014291 # We cannot hardcode anything, or else we can only hardcode existing
14292 # directories.
14293 hardcode_action_CXX=unsupported
Craig Silversteinb9f23482007-03-22 00:15:41 +000014294fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14296$as_echo "$hardcode_action_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014297
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014298if test "$hardcode_action_CXX" = relink ||
14299 test "$inherit_rpath_CXX" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000014300 # Fast installation is not supported
14301 enable_fast_install=no
14302elif test "$shlibpath_overrides_runpath" = yes ||
14303 test "$enable_shared" = no; then
14304 # Fast installation is not necessary
14305 enable_fast_install=needless
Craig Silversteinb9f23482007-03-22 00:15:41 +000014306fi
14307
14308
Craig Silversteinb9f23482007-03-22 00:15:41 +000014309
Craig Silversteinb9f23482007-03-22 00:15:41 +000014310
Craig Silversteinb9f23482007-03-22 00:15:41 +000014311
Craig Silversteinb9f23482007-03-22 00:15:41 +000014312
Craig Silversteinb9f23482007-03-22 00:15:41 +000014313
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014314 fi # test -n "$compiler"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014315
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014316 CC=$lt_save_CC
14317 LDCXX=$LD
14318 LD=$lt_save_LD
14319 GCC=$lt_save_GCC
14320 with_gnu_ld=$lt_save_with_gnu_ld
14321 lt_cv_path_LDCXX=$lt_cv_path_LD
14322 lt_cv_path_LD=$lt_save_path_LD
14323 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14324 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14325fi # test "$_lt_caught_CXX_error" != yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000014326
14327ac_ext=c
14328ac_cpp='$CPP $CPPFLAGS'
14329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14331ac_compiler_gnu=$ac_cv_c_compiler_gnu
14332
Craig Silversteinb9f23482007-03-22 00:15:41 +000014333
Craig Silversteinb9f23482007-03-22 00:15:41 +000014334
Craig Silversteinb9f23482007-03-22 00:15:41 +000014335
Craig Silversteinb9f23482007-03-22 00:15:41 +000014336
14337
Craig Silversteinb9f23482007-03-22 00:15:41 +000014338
Craig Silversteinb9f23482007-03-22 00:15:41 +000014339
Craig Silversteinb9f23482007-03-22 00:15:41 +000014340
Craig Silversteinb9f23482007-03-22 00:15:41 +000014341
Craig Silversteinb9f23482007-03-22 00:15:41 +000014342
Craig Silversteinb9f23482007-03-22 00:15:41 +000014343
Craig Silversteinb9f23482007-03-22 00:15:41 +000014344
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014345 ac_config_commands="$ac_config_commands libtool"
Craig Silverstein690172b2007-04-20 21:16:33 +000014346
Craig Silversteinb9f23482007-03-22 00:15:41 +000014347
14348
Craig Silverstein690172b2007-04-20 21:16:33 +000014349
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014350# Only expand once:
Craig Silversteinb9f23482007-03-22 00:15:41 +000014351
14352
14353
14354
14355
14356# Check whether some low-level functions/files are available
Craig Silversteinab3d7652009-11-10 16:33:51 +000014357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14358$as_echo_n "checking for ANSI C header files... " >&6; }
14359if test "${ac_cv_header_stdc+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000014361else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014363/* end confdefs.h. */
14364#include <stdlib.h>
14365#include <stdarg.h>
14366#include <string.h>
14367#include <float.h>
14368
14369int
14370main ()
14371{
14372
14373 ;
14374 return 0;
14375}
14376_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014377if ac_fn_c_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014378 ac_cv_header_stdc=yes
14379else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014380 ac_cv_header_stdc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000014381fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014383
14384if test $ac_cv_header_stdc = yes; then
14385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014387/* end confdefs.h. */
14388#include <string.h>
14389
14390_ACEOF
14391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Craig Silversteinab3d7652009-11-10 16:33:51 +000014392 $EGREP "memchr" >/dev/null 2>&1; then :
14393
Craig Silversteinb9f23482007-03-22 00:15:41 +000014394else
14395 ac_cv_header_stdc=no
14396fi
14397rm -f conftest*
14398
14399fi
14400
14401if test $ac_cv_header_stdc = yes; then
14402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014404/* end confdefs.h. */
14405#include <stdlib.h>
14406
14407_ACEOF
14408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Craig Silversteinab3d7652009-11-10 16:33:51 +000014409 $EGREP "free" >/dev/null 2>&1; then :
14410
Craig Silversteinb9f23482007-03-22 00:15:41 +000014411else
14412 ac_cv_header_stdc=no
14413fi
14414rm -f conftest*
14415
14416fi
14417
14418if test $ac_cv_header_stdc = yes; then
14419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014420 if test "$cross_compiling" = yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014421 :
14422else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014424/* end confdefs.h. */
14425#include <ctype.h>
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014426#include <stdlib.h>
Craig Silversteinb9f23482007-03-22 00:15:41 +000014427#if ((' ' & 0x0FF) == 0x020)
14428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14430#else
14431# define ISLOWER(c) \
14432 (('a' <= (c) && (c) <= 'i') \
14433 || ('j' <= (c) && (c) <= 'r') \
14434 || ('s' <= (c) && (c) <= 'z'))
14435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14436#endif
14437
14438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14439int
14440main ()
14441{
14442 int i;
14443 for (i = 0; i < 256; i++)
14444 if (XOR (islower (i), ISLOWER (i))
14445 || toupper (i) != TOUPPER (i))
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014446 return 2;
14447 return 0;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014448}
14449_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014450if ac_fn_c_try_run "$LINENO"; then :
14451
Craig Silversteinb9f23482007-03-22 00:15:41 +000014452else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014453 ac_cv_header_stdc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000014454fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14456 conftest.$ac_objext conftest.beam conftest.$ac_ext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014457fi
14458
Craig Silversteinb9f23482007-03-22 00:15:41 +000014459fi
14460fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14462$as_echo "$ac_cv_header_stdc" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014463if test $ac_cv_header_stdc = yes; then
14464
Craig Silversteinab3d7652009-11-10 16:33:51 +000014465$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +000014466
14467fi
14468
14469
14470# These are tested for by AC_HEADER_STDC, but I check again to set the var
Craig Silversteinab3d7652009-11-10 16:33:51 +000014471ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14472if test "x$ac_cv_header_stdint_h" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014473 ac_cv_have_stdint_h=1
14474else
14475 ac_cv_have_stdint_h=0
14476fi
14477
14478
Craig Silversteinab3d7652009-11-10 16:33:51 +000014479ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14480if test "x$ac_cv_header_sys_types_h" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014481 ac_cv_have_systypes_h=1
14482else
14483 ac_cv_have_systypes_h=0
14484fi
14485
14486
Craig Silversteinab3d7652009-11-10 16:33:51 +000014487ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14488if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014489 ac_cv_have_inttypes_h=1
14490else
14491 ac_cv_have_inttypes_h=0
14492fi
14493
14494
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014495for ac_header in fnmatch.h
Craig Silversteinab3d7652009-11-10 16:33:51 +000014496do :
14497 ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
14498if test "x$ac_cv_header_fnmatch_h" = x""yes; then :
Craig Silverstein67914682008-08-21 00:50:59 +000014499 cat >>confdefs.h <<_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014500#define HAVE_FNMATCH_H 1
Craig Silverstein67914682008-08-21 00:50:59 +000014501_ACEOF
14502
14503fi
14504
14505done
14506
14507
Craig Silversteinb9f23482007-03-22 00:15:41 +000014508# These are the types I need. We look for them in either stdint.h,
14509# sys/types.h, or inttypes.h, all of which are part of the default-includes.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014510ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14511if test "x$ac_cv_type_uint16_t" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014512 ac_cv_have_uint16_t=1
14513else
14514 ac_cv_have_uint16_t=0
14515fi
14516
Craig Silversteinab3d7652009-11-10 16:33:51 +000014517ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
14518if test "x$ac_cv_type_u_int16_t" = x""yes; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014519 ac_cv_have_u_int16_t=1
14520else
14521 ac_cv_have_u_int16_t=0
14522fi
14523
Craig Silversteinab3d7652009-11-10 16:33:51 +000014524ac_fn_c_check_type "$LINENO" "__int16" "ac_cv_type___int16" "$ac_includes_default"
14525if test "x$ac_cv_type___int16" = x""yes; then :
Craig Silverstein67914682008-08-21 00:50:59 +000014526 ac_cv_have___int16=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000014527else
Craig Silverstein67914682008-08-21 00:50:59 +000014528 ac_cv_have___int16=0
Craig Silversteinb9f23482007-03-22 00:15:41 +000014529fi
14530
14531
Craig Silverstein67914682008-08-21 00:50:59 +000014532for ac_func in strtoll strtoq
Craig Silversteinab3d7652009-11-10 16:33:51 +000014533do :
14534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14536eval as_val=\$$as_ac_var
14537 if test "x$as_val" = x""yes; then :
Craig Silverstein690172b2007-04-20 21:16:33 +000014538 cat >>confdefs.h <<_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014539#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Craig Silverstein690172b2007-04-20 21:16:33 +000014540_ACEOF
14541
14542fi
14543done
14544
Craig Silverstein688ea022009-09-11 00:15:50 +000014545for ac_func in setenv putenv
Craig Silversteinab3d7652009-11-10 16:33:51 +000014546do :
14547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14548ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14549eval as_val=\$$as_ac_var
14550 if test "x$as_val" = x""yes; then :
Craig Silverstein688ea022009-09-11 00:15:50 +000014551 cat >>confdefs.h <<_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Craig Silverstein688ea022009-09-11 00:15:50 +000014553_ACEOF
14554
14555fi
14556done
14557 # MinGW has putenv but not setenv
14558
14559
Craig Silversteinab3d7652009-11-10 16:33:51 +000014560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
14561$as_echo_n "checking for __attribute__... " >&6; }
14562 if test "${ac_cv___attribute__+set}" = set; then :
14563 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000014564else
14565
Craig Silversteinab3d7652009-11-10 16:33:51 +000014566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014567/* end confdefs.h. */
14568#include <stdlib.h>
Craig Silverstein290da382007-03-28 21:54:07 +000014569 static void foo(void) __attribute__ ((unused));
14570 void foo(void) { exit(1); }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014571int
14572main ()
14573{
Craig Silverstein290da382007-03-28 21:54:07 +000014574
Craig Silversteinb9f23482007-03-22 00:15:41 +000014575 ;
14576 return 0;
14577}
14578_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014579if ac_fn_c_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014580 ac_cv___attribute__=yes
14581else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014582 ac_cv___attribute__=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000014583
14584fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014586fi
14587
14588 if test "$ac_cv___attribute__" = "yes"; then
14589
Craig Silversteinab3d7652009-11-10 16:33:51 +000014590$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +000014591
14592 fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
14594$as_echo "$ac_cv___attribute__" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014595
Craig Silversteineb208392007-08-15 19:44:54 +000014596# We only care about __attribute__ ((unused))
14597if test x"$ac_cv___attribute__" = x"yes"; then
14598 ac_cv___attribute__unused="__attribute__ ((unused))"
14599else
14600 ac_cv___attribute__unused=
14601fi
14602
Craig Silversteinb9f23482007-03-22 00:15:41 +000014603
14604
14605
Craig Silversteinb9f23482007-03-22 00:15:41 +000014606ac_ext=c
14607ac_cpp='$CPP $CPPFLAGS'
14608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
14612acx_pthread_ok=no
14613
14614# We used to check for pthread.h first, but this fails if pthread.h
14615# requires special compiler flags (e.g. on True64 or Sequent).
14616# It gets checked for in the link test anyway.
14617
14618# First of all, check if the user has set any of the PTHREAD_LIBS,
14619# etcetera environment variables, and if threads linking works using
14620# them:
14621if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14622 save_CFLAGS="$CFLAGS"
14623 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14624 save_LIBS="$LIBS"
14625 LIBS="$PTHREAD_LIBS $LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000014626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14627$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014629/* end confdefs.h. */
14630
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014631/* Override any GCC internal prototype to avoid an error.
14632 Use char because int might match the return type of a GCC
14633 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000014634#ifdef __cplusplus
14635extern "C"
14636#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000014637char pthread_join ();
14638int
14639main ()
14640{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014641return pthread_join ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000014642 ;
14643 return 0;
14644}
14645_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014646if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014647 acx_pthread_ok=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000014648fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014649rm -f core conftest.err conftest.$ac_objext \
14650 conftest$ac_exeext conftest.$ac_ext
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14652$as_echo "$acx_pthread_ok" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014653 if test x"$acx_pthread_ok" = xno; then
14654 PTHREAD_LIBS=""
14655 PTHREAD_CFLAGS=""
14656 fi
14657 LIBS="$save_LIBS"
14658 CFLAGS="$save_CFLAGS"
14659fi
14660
14661# We must check for the threads library under a number of different
14662# names; the ordering is very important because some systems
14663# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14664# libraries is broken (non-POSIX).
14665
14666# Create a list of thread flags to try. Items starting with a "-" are
14667# C compiler flags, and other items are library names, except for "none"
14668# which indicates that we try without any flags at all, and "pthread-config"
14669# which is a program returning the flags for the Pth emulation library.
14670
14671acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14672
14673# The ordering *is* (sometimes) important. Some notes on the
14674# individual items follow:
14675
14676# pthreads: AIX (must check this before -lpthread)
14677# none: in case threads are in libc; should be tried before -Kthread and
14678# other compiler flags to prevent continual compiler warnings
14679# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14680# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14681# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14682# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14683# -pthreads: Solaris/gcc
14684# -mthreads: Mingw32/gcc, Lynx/gcc
14685# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14686# doesn't hurt to check since this sometimes defines pthreads too;
14687# also defines -D_REENTRANT)
14688# ... -mt is also the pthreads flag for HP/aCC
14689# pthread: Linux, etcetera
14690# --thread-safe: KAI C++
14691# pthread-config: use pthread-config program (for GNU Pth library)
14692
14693case "${host_cpu}-${host_os}" in
14694 *solaris*)
14695
14696 # On Solaris (at least, for some versions), libc contains stubbed
14697 # (non-functional) versions of the pthreads routines, so link-based
14698 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14699 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14700 # a function called by this macro, so we could check for that, but
14701 # who knows whether they'll stub that too in a future libc.) So,
14702 # we'll just look for -pthreads and -lpthread first:
14703
14704 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14705 ;;
14706esac
14707
14708if test x"$acx_pthread_ok" = xno; then
14709for flag in $acx_pthread_flags; do
14710
14711 case $flag in
14712 none)
Craig Silversteinab3d7652009-11-10 16:33:51 +000014713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14714$as_echo_n "checking whether pthreads work without any flags... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014715 ;;
14716
14717 -*)
Craig Silversteinab3d7652009-11-10 16:33:51 +000014718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14719$as_echo_n "checking whether pthreads work with $flag... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014720 PTHREAD_CFLAGS="$flag"
14721 ;;
14722
14723 pthread-config)
14724 # Extract the first word of "pthread-config", so it can be a program name with args.
14725set dummy pthread-config; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +000014726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14727$as_echo_n "checking for $ac_word... " >&6; }
14728if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
14729 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000014730else
14731 if test -n "$acx_pthread_config"; then
14732 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14733else
14734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735for as_dir in $PATH
14736do
14737 IFS=$as_save_IFS
14738 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014739 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014741 ac_cv_prog_acx_pthread_config="yes"
Craig Silversteinab3d7652009-11-10 16:33:51 +000014742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000014743 break 2
14744 fi
14745done
Craig Silversteinab3d7652009-11-10 16:33:51 +000014746 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014747IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +000014748
14749 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14750fi
14751fi
14752acx_pthread_config=$ac_cv_prog_acx_pthread_config
14753if test -n "$acx_pthread_config"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14755$as_echo "$acx_pthread_config" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014756else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014759fi
14760
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014761
Craig Silversteinb9f23482007-03-22 00:15:41 +000014762 if test x"$acx_pthread_config" = xno; then continue; fi
14763 PTHREAD_CFLAGS="`pthread-config --cflags`"
14764 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14765 ;;
14766
14767 *)
Craig Silversteinab3d7652009-11-10 16:33:51 +000014768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14769$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014770 PTHREAD_LIBS="-l$flag"
14771 ;;
14772 esac
14773
14774 save_LIBS="$LIBS"
14775 save_CFLAGS="$CFLAGS"
14776 LIBS="$PTHREAD_LIBS $LIBS"
14777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14778
14779 # Check for various functions. We must include pthread.h,
14780 # since some functions may be macros. (On the Sequent, we
14781 # need a special flag -Kthread to make this header compile.)
14782 # We check for pthread_join because it is in -lpthread on IRIX
14783 # while pthread_create is in libc. We check for pthread_attr_init
14784 # due to DEC craziness with -lpthreads. We check for
14785 # pthread_cleanup_push because it is one of the few pthread
14786 # functions on Solaris that doesn't have a non-functional libc stub.
14787 # We try pthread_create on general principles.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014789/* end confdefs.h. */
14790#include <pthread.h>
14791int
14792main ()
14793{
14794pthread_t th; pthread_join(th, 0);
14795 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14796 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14797 ;
14798 return 0;
14799}
14800_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014801if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014802 acx_pthread_ok=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000014803fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014804rm -f core conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014806
14807 LIBS="$save_LIBS"
14808 CFLAGS="$save_CFLAGS"
14809
Craig Silversteinab3d7652009-11-10 16:33:51 +000014810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14811$as_echo "$acx_pthread_ok" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014812 if test "x$acx_pthread_ok" = xyes; then
14813 break;
14814 fi
14815
14816 PTHREAD_LIBS=""
14817 PTHREAD_CFLAGS=""
14818done
14819fi
14820
14821# Various other checks:
14822if test "x$acx_pthread_ok" = xyes; then
14823 save_LIBS="$LIBS"
14824 LIBS="$PTHREAD_LIBS $LIBS"
14825 save_CFLAGS="$CFLAGS"
14826 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14827
14828 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14830$as_echo_n "checking for joinable pthread attribute... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014831 attr_name=unknown
14832 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
Craig Silversteinab3d7652009-11-10 16:33:51 +000014833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014834/* end confdefs.h. */
14835#include <pthread.h>
14836int
14837main ()
14838{
14839int attr=$attr; return attr;
14840 ;
14841 return 0;
14842}
14843_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014844if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000014845 attr_name=$attr; break
Craig Silversteinb9f23482007-03-22 00:15:41 +000014846fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014847rm -f core conftest.err conftest.$ac_objext \
14848 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014849 done
Craig Silversteinab3d7652009-11-10 16:33:51 +000014850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14851$as_echo "$attr_name" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014852 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14853
14854cat >>confdefs.h <<_ACEOF
14855#define PTHREAD_CREATE_JOINABLE $attr_name
14856_ACEOF
14857
14858 fi
14859
Craig Silversteinab3d7652009-11-10 16:33:51 +000014860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14861$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014862 flag=no
14863 case "${host_cpu}-${host_os}" in
14864 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14865 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14866 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +000014867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14868$as_echo "${flag}" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014869 if test "x$flag" != xno; then
14870 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14871 fi
14872
14873 LIBS="$save_LIBS"
14874 CFLAGS="$save_CFLAGS"
Craig Silversteineb208392007-08-15 19:44:54 +000014875 # More AIX lossage: must compile with xlc_r or cc_r
14876 if test x"$GCC" != xyes; then
14877 for ac_prog in xlc_r cc_r
14878do
14879 # Extract the first word of "$ac_prog", so it can be a program name with args.
14880set dummy $ac_prog; ac_word=$2
Craig Silversteinab3d7652009-11-10 16:33:51 +000014881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14882$as_echo_n "checking for $ac_word... " >&6; }
14883if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14884 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000014885else
14886 if test -n "$PTHREAD_CC"; then
14887 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14888else
14889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890for as_dir in $PATH
14891do
14892 IFS=$as_save_IFS
14893 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +000014894 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteineb208392007-08-15 19:44:54 +000014896 ac_cv_prog_PTHREAD_CC="$ac_prog"
Craig Silversteinab3d7652009-11-10 16:33:51 +000014897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000014898 break 2
14899 fi
14900done
Craig Silversteinab3d7652009-11-10 16:33:51 +000014901 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014902IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +000014903
Craig Silversteinb9f23482007-03-22 00:15:41 +000014904fi
14905fi
14906PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14907if test -n "$PTHREAD_CC"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14909$as_echo "$PTHREAD_CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014910else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014913fi
14914
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014915
Craig Silversteineb208392007-08-15 19:44:54 +000014916 test -n "$PTHREAD_CC" && break
14917done
14918test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14919
14920 else
14921 PTHREAD_CC=$CC
14922 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000014923
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014924 # The next part tries to detect GCC inconsistency with -shared on some
14925 # architectures and systems. The problem is that in certain
14926 # configurations, when -shared is specified, GCC "forgets" to
14927 # internally use various flags which are still necessary.
Craig Silversteinb9f23482007-03-22 00:15:41 +000014928
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014929 #
14930 # Prepare the flags
14931 #
14932 save_CFLAGS="$CFLAGS"
14933 save_LIBS="$LIBS"
14934 save_CC="$CC"
14935
14936 # Try with the flags determined by the earlier checks.
14937 #
14938 # -Wl,-z,defs forces link-time symbol resolution, so that the
14939 # linking checks with -shared actually have any value
14940 #
14941 # FIXME: -fPIC is required for -shared on many architectures,
14942 # so we specify it here, but the right way would probably be to
14943 # properly detect whether it is actually required.
14944 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
14945 LIBS="$PTHREAD_LIBS $LIBS"
14946 CC="$PTHREAD_CC"
14947
14948 # In order not to create several levels of indentation, we test
14949 # the value of "$done" until we find the cure or run out of ideas.
14950 done="no"
14951
14952 # First, make sure the CFLAGS we added are actually accepted by our
14953 # compiler. If not (and OS X's ld, for instance, does not accept -z),
14954 # then we can't do this test.
14955 if test x"$done" = xno; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
14957$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014959/* end confdefs.h. */
14960
14961int
14962main ()
14963{
14964
14965 ;
14966 return 0;
14967}
14968_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000014969if ac_fn_c_try_link "$LINENO"; then :
14970
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014971else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014972 done=yes
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014973fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000014974rm -f core conftest.err conftest.$ac_objext \
14975 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014976
14977 if test "x$done" = xyes ; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014980 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000014981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14982$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014983 fi
14984 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000014985
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014986 if test x"$done" = xno; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
14988$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014990/* end confdefs.h. */
14991#include <pthread.h>
14992int
14993main ()
14994{
14995pthread_t th; pthread_join(th, 0);
Craig Silversteinc79c32d2008-07-22 23:29:39 +000014996 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14997 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
Craig Silversteinb9f23482007-03-22 00:15:41 +000014998 ;
14999 return 0;
15000}
15001_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000015002if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015003 done=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000015004fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000015005rm -f core conftest.err conftest.$ac_objext \
15006 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015007
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015008 if test "x$done" = xyes; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15010$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015011 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000015012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015014 fi
15015 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000015016
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015017 #
15018 # Linux gcc on some architectures such as mips/mipsel forgets
15019 # about -lpthread
15020 #
15021 if test x"$done" = xno; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15023$as_echo_n "checking whether -lpthread fixes that... " >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015024 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000015025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015026/* end confdefs.h. */
15027#include <pthread.h>
15028int
15029main ()
15030{
15031pthread_t th; pthread_join(th, 0);
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015032 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15033 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
Craig Silversteinb9f23482007-03-22 00:15:41 +000015034 ;
15035 return 0;
15036}
15037_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000015038if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015039 done=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000015040fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000015041rm -f core conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015043
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015044 if test "x$done" = xyes; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15046$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015047 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15048 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000015049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015051 fi
15052 fi
15053 #
15054 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15055 #
15056 if test x"$done" = xno; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15058$as_echo_n "checking whether -lc_r fixes that... " >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015059 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000015060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015061/* end confdefs.h. */
15062#include <pthread.h>
15063int
15064main ()
15065{
15066pthread_t th; pthread_join(th, 0);
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015067 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15068 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
Craig Silversteinb9f23482007-03-22 00:15:41 +000015069 ;
15070 return 0;
15071}
15072_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000015073if ac_fn_c_try_link "$LINENO"; then :
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015074 done=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000015075fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000015076rm -f core conftest.err conftest.$ac_objext \
15077 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015078
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015079 if test "x$done" = xyes; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15081$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015082 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15083 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000015084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015086 fi
15087 fi
15088 if test x"$done" = xno; then
15089 # OK, we have run out of ideas
Craig Silversteinab3d7652009-11-10 16:33:51 +000015090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15091$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000015092
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015093 # so it's not safe to assume that we may use pthreads
15094 acx_pthread_ok=no
15095 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000015096
Craig Silverstein71e1be92011-03-02 08:05:17 +000015097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
15098$as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
15099 CFLAGS="-nostdlib $CFLAGS"
15100 # we need c with nostdlib
15101 LIBS="$LIBS -lc"
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103/* end confdefs.h. */
15104#include <pthread.h>
15105int
15106main ()
15107{
15108pthread_t th; pthread_join(th, 0);
15109 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15110 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15111 ;
15112 return 0;
15113}
15114_ACEOF
15115if ac_fn_c_try_link "$LINENO"; then :
15116 done=yes
15117else
15118 done=no
15119fi
15120rm -f core conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
15122
15123 if test "x$done" = xyes; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15125$as_echo "yes" >&6; }
15126 else
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128$as_echo "no" >&6; }
15129 fi
15130
15131 if test x"$done" = xno; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
15133$as_echo_n "checking whether -lpthread saves the day... " >&6; }
15134 LIBS="-lpthread $LIBS"
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136/* end confdefs.h. */
15137#include <pthread.h>
15138int
15139main ()
15140{
15141pthread_t th; pthread_join(th, 0);
15142 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15143 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148if ac_fn_c_try_link "$LINENO"; then :
15149 done=yes
15150else
15151 done=no
15152fi
15153rm -f core conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext conftest.$ac_ext
15155
15156 if test "x$done" = xyes; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15158$as_echo "yes" >&6; }
15159 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
15160 else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162$as_echo "no" >&6; }
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
15164$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
15165 fi
15166 fi
15167
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015168 CFLAGS="$save_CFLAGS"
15169 LIBS="$save_LIBS"
15170 CC="$save_CC"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015171else
15172 PTHREAD_CC="$CC"
15173fi
15174
15175
15176
15177
15178
15179# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15180if test x"$acx_pthread_ok" = xyes; then
15181
Craig Silversteinab3d7652009-11-10 16:33:51 +000015182$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +000015183
15184 :
15185else
15186 acx_pthread_ok=no
15187
15188fi
15189ac_ext=c
15190ac_cpp='$CPP $CPPFLAGS'
15191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15193ac_compiler_gnu=$ac_cv_c_compiler_gnu
15194
15195
15196
15197# Find out what namespace 'normal' STL code lives in, and also what namespace
15198# the user wants our classes to be defined in
Craig Silversteinab3d7652009-11-10 16:33:51 +000015199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
15200$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
15201if test "${ac_cv_cxx_namespaces+set}" = set; then :
15202 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000015203else
15204
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015205 ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000015206ac_cpp='$CXXCPP $CPPFLAGS'
15207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15210
Craig Silversteinab3d7652009-11-10 16:33:51 +000015211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015212/* end confdefs.h. */
15213namespace Outer {
15214 namespace Inner { int i = 0; }}
15215int
15216main ()
15217{
15218using namespace Outer::Inner; return i;
15219 ;
15220 return 0;
15221}
15222_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000015223if ac_fn_cxx_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000015224 ac_cv_cxx_namespaces=yes
15225else
Craig Silversteinab3d7652009-11-10 16:33:51 +000015226 ac_cv_cxx_namespaces=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000015227fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015229 ac_ext=c
15230ac_cpp='$CPP $CPPFLAGS'
15231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15233ac_compiler_gnu=$ac_cv_c_compiler_gnu
15234
15235fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000015236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
15237$as_echo "$ac_cv_cxx_namespaces" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000015238 if test "$ac_cv_cxx_namespaces" = yes; then
15239
Craig Silversteinab3d7652009-11-10 16:33:51 +000015240$as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +000015241
15242 fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000015243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
15244$as_echo_n "checking what namespace STL code is in... " >&6; }
15245if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
15246 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000015247else
15248
15249
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015250 ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000015251ac_cpp='$CXXCPP $CPPFLAGS'
15252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15255
Craig Silversteinab3d7652009-11-10 16:33:51 +000015256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015257/* end confdefs.h. */
15258#include <vector>
15259int
15260main ()
15261{
15262vector<int> t; return 0;
15263 ;
15264 return 0;
15265}
15266_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000015267if ac_fn_cxx_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000015268 ac_cv_cxx_stl_namespace=none
Craig Silversteinb9f23482007-03-22 00:15:41 +000015269fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinab3d7652009-11-10 16:33:51 +000015271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015272/* end confdefs.h. */
15273#include <vector>
15274int
15275main ()
15276{
15277std::vector<int> t; return 0;
15278 ;
15279 return 0;
15280}
15281_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000015282if ac_fn_cxx_try_compile "$LINENO"; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000015283 ac_cv_cxx_stl_namespace=std
Craig Silversteinb9f23482007-03-22 00:15:41 +000015284fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015286 ac_ext=c
15287ac_cpp='$CPP $CPPFLAGS'
15288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15290ac_compiler_gnu=$ac_cv_c_compiler_gnu
15291
15292fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000015293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
15294$as_echo "$ac_cv_cxx_stl_namespace" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000015295 if test "$ac_cv_cxx_stl_namespace" = none; then
15296
Craig Silversteinab3d7652009-11-10 16:33:51 +000015297$as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +000015298
15299 fi
15300 if test "$ac_cv_cxx_stl_namespace" = std; then
15301
Craig Silversteinab3d7652009-11-10 16:33:51 +000015302$as_echo "#define STL_NAMESPACE std" >>confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +000015303
15304 fi
15305
15306google_namespace_default=google
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015307 # Check whether --enable-namespace was given.
Craig Silversteinab3d7652009-11-10 16:33:51 +000015308if test "${enable_namespace+set}" = set; then :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015309 enableval=$enable_namespace; case "$enableval" in
Craig Silversteinb9f23482007-03-22 00:15:41 +000015310 yes) google_namespace="$google_namespace_default" ;;
15311 no) google_namespace="" ;;
15312 *) google_namespace="$enableval" ;;
15313 esac
15314else
15315 google_namespace="$google_namespace_default"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015316fi
15317
Craig Silversteinb9f23482007-03-22 00:15:41 +000015318 if test -n "$google_namespace"; then
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015319 ac_google_namespace="::$google_namespace"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015320 ac_google_start_namespace="namespace $google_namespace {"
15321 ac_google_end_namespace="}"
15322 else
15323 ac_google_namespace=""
15324 ac_google_start_namespace=""
15325 ac_google_end_namespace=""
15326 fi
15327
15328cat >>confdefs.h <<_ACEOF
15329#define GOOGLE_NAMESPACE $ac_google_namespace
15330_ACEOF
15331
15332
15333cat >>confdefs.h <<_ACEOF
15334#define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
15335_ACEOF
15336
15337
15338cat >>confdefs.h <<_ACEOF
15339#define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
15340_ACEOF
15341
15342
15343
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015344# Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
15345# If so, we replace it with our own version.
15346LIBSTDCXX_LA_LINKER_FLAG=
15347if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
15348then
15349 LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
15350fi
15351
15352
Craig Silversteinb9f23482007-03-22 00:15:41 +000015353# These are what's needed by gflags.h.in
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365## Check out ../autoconf/ for other macros you can call to do useful stuff
15366
Craig Silversteinab3d7652009-11-10 16:33:51 +000015367# For windows, this has a non-trivial value (__declspec(export)), but any
15368# system that uses configure wants this to be the empty string.
15369
15370$as_echo "#define GFLAGS_DLL_DECL /**/" >>confdefs.h
15371
15372
Craig Silversteinb9f23482007-03-22 00:15:41 +000015373# Write generated configuration file, and also .h files
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015374ac_config_files="$ac_config_files Makefile src/gflags/gflags.h src/gflags/gflags_completions.h"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015375
15376cat >confcache <<\_ACEOF
15377# This file is a shell script that caches the results of configure
15378# tests run on this system so they can be shared between configure
15379# scripts and configure runs, see configure's option --config-cache.
15380# It is not useful on other systems. If it contains results you don't
15381# want to keep, you may remove or edit it.
15382#
15383# config.status only pays attention to the cache file if you give it
15384# the --recheck option to rerun configure.
15385#
15386# `ac_cv_env_foo' variables (set or unset) will be overridden when
15387# loading this file, other *unset* `ac_cv_foo' will be assigned the
15388# following values.
15389
15390_ACEOF
15391
15392# The following way of writing the cache mishandles newlines in values,
15393# but we know of no workaround that is simple, portable, and efficient.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015394# So, we kill variables containing newlines.
Craig Silversteinb9f23482007-03-22 00:15:41 +000015395# Ultrix sh set writes to stderr and can't be redirected directly,
15396# and sets the high bit in the cache file unless we assign to the vars.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015397(
15398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15399 eval ac_val=\$$ac_var
15400 case $ac_val in #(
15401 *${as_nl}*)
15402 case $ac_var in #(
Craig Silversteinab3d7652009-11-10 16:33:51 +000015403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15404$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015405 esac
15406 case $ac_var in #(
15407 _ | IFS | as_nl) ;; #(
Craig Silversteinab3d7652009-11-10 16:33:51 +000015408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15409 *) { eval $ac_var=; unset $ac_var;} ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015410 esac ;;
15411 esac
15412 done
15413
Craig Silversteinb9f23482007-03-22 00:15:41 +000015414 (set) 2>&1 |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15416 *${as_nl}ac_space=\ *)
Craig Silversteinab3d7652009-11-10 16:33:51 +000015417 # `set' does not quote correctly, so add quotes: double-quote
15418 # substitution turns \\\\ into \\, and sed turns \\ into \.
Craig Silversteinb9f23482007-03-22 00:15:41 +000015419 sed -n \
15420 "s/'/'\\\\''/g;
15421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015422 ;; #(
Craig Silversteinb9f23482007-03-22 00:15:41 +000015423 *)
15424 # `set' quotes correctly as required by POSIX, so do not add quotes.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015426 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015427 esac |
15428 sort
15429) |
Craig Silversteinb9f23482007-03-22 00:15:41 +000015430 sed '
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015431 /^ac_cv_env_/b end
Craig Silversteinb9f23482007-03-22 00:15:41 +000015432 t clear
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015433 :clear
Craig Silversteinb9f23482007-03-22 00:15:41 +000015434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15435 t end
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15437 :end' >>confcache
15438if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15439 if test -w "$cache_file"; then
15440 test "x$cache_file" != "x/dev/null" &&
Craig Silversteinab3d7652009-11-10 16:33:51 +000015441 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15442$as_echo "$as_me: updating cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000015443 cat confcache >$cache_file
15444 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000015445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15446$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000015447 fi
15448fi
15449rm -f confcache
15450
15451test "x$prefix" = xNONE && prefix=$ac_default_prefix
15452# Let make expand exec_prefix.
15453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15454
Craig Silversteinb9f23482007-03-22 00:15:41 +000015455DEFS=-DHAVE_CONFIG_H
15456
15457ac_libobjs=
15458ac_ltlibobjs=
15459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15460 # 1. Remove the extension, and $U if already installed.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Craig Silversteinab3d7652009-11-10 16:33:51 +000015462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15464 # will be set to the directory where LIBOBJS objects are built.
Craig Silversteinab3d7652009-11-10 16:33:51 +000015465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Craig Silversteinb9f23482007-03-22 00:15:41 +000015467done
15468LIBOBJS=$ac_libobjs
15469
15470LTLIBOBJS=$ac_ltlibobjs
15471
15472
15473if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015474 as_fn_error "conditional \"AMDEP\" was never defined.
15475Usually this means the macro was only invoked conditionally." "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +000015476fi
15477if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015478 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15479Usually this means the macro was only invoked conditionally." "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +000015480fi
15481if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015482 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15483Usually this means the macro was only invoked conditionally." "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +000015484fi
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015485if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015486 as_fn_error "conditional \"GCC\" was never defined.
15487Usually this means the macro was only invoked conditionally." "$LINENO" 5
Craig Silversteinc79c32d2008-07-22 23:29:39 +000015488fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015489if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15490 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15491Usually this means the macro was only invoked conditionally." "$LINENO" 5
15492fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000015493
15494: ${CONFIG_STATUS=./config.status}
Craig Silversteinab3d7652009-11-10 16:33:51 +000015495ac_write_fail=0
Craig Silversteinb9f23482007-03-22 00:15:41 +000015496ac_clean_files_save=$ac_clean_files
15497ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Craig Silversteinab3d7652009-11-10 16:33:51 +000015498{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15499$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15500as_write_fail=0
15501cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000015502#! $SHELL
15503# Generated by $as_me.
15504# Run this file to recreate the current configuration.
15505# Compiler output produced by configure, useful for debugging
15506# configure, is in config.log if it exists.
15507
15508debug=false
15509ac_cs_recheck=false
15510ac_cs_silent=false
Craig Silversteinb9f23482007-03-22 00:15:41 +000015511
Craig Silversteinab3d7652009-11-10 16:33:51 +000015512SHELL=\${CONFIG_SHELL-$SHELL}
15513export SHELL
15514_ASEOF
15515cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15516## -------------------- ##
15517## M4sh Initialization. ##
15518## -------------------- ##
Craig Silversteinb9f23482007-03-22 00:15:41 +000015519
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015520# Be more Bourne compatible
15521DUALCASE=1; export DUALCASE # for MKS sh
Craig Silversteinab3d7652009-11-10 16:33:51 +000015522if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Craig Silversteinb9f23482007-03-22 00:15:41 +000015523 emulate sh
15524 NULLCMD=:
Craig Silversteinab3d7652009-11-10 16:33:51 +000015525 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Craig Silversteinb9f23482007-03-22 00:15:41 +000015526 # is contrary to our usage. Disable this feature.
15527 alias -g '${1+"$@"}'='"$@"'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015528 setopt NO_GLOB_SUBST
Craig Silversteinb9f23482007-03-22 00:15:41 +000015529else
Craig Silversteinab3d7652009-11-10 16:33:51 +000015530 case `(set -o) 2>/dev/null` in #(
15531 *posix*) :
15532 set -o posix ;; #(
15533 *) :
15534 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015535esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000015536fi
15537
15538
Craig Silversteinab3d7652009-11-10 16:33:51 +000015539as_nl='
15540'
15541export as_nl
15542# Printing a long string crashes Solaris 7 /usr/bin/printf.
15543as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15544as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15545as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15546# Prefer a ksh shell builtin over an external printf program on Solaris,
15547# but without wasting forks for bash or zsh.
15548if test -z "$BASH_VERSION$ZSH_VERSION" \
15549 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15550 as_echo='print -r --'
15551 as_echo_n='print -rn --'
15552elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15553 as_echo='printf %s\n'
15554 as_echo_n='printf %s'
15555else
15556 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15557 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15558 as_echo_n='/usr/ucb/echo -n'
15559 else
15560 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15561 as_echo_n_body='eval
15562 arg=$1;
15563 case $arg in #(
15564 *"$as_nl"*)
15565 expr "X$arg" : "X\\(.*\\)$as_nl";
15566 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15567 esac;
15568 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15569 '
15570 export as_echo_n_body
15571 as_echo_n='sh -c $as_echo_n_body as_echo'
15572 fi
15573 export as_echo_body
15574 as_echo='sh -c $as_echo_body as_echo'
15575fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000015576
15577# The user is always right.
15578if test "${PATH_SEPARATOR+set}" != set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015579 PATH_SEPARATOR=:
15580 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15581 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15582 PATH_SEPARATOR=';'
15583 }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015584fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000015585
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015586
15587# IFS
15588# We need space, tab and new line, in precisely that order. Quoting is
15589# there to prevent editors from complaining about space-tab.
15590# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15591# splitting by setting IFS to empty value.)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015592IFS=" "" $as_nl"
15593
15594# Find who we are. Look in the path if we contain no directory separator.
Craig Silversteinab3d7652009-11-10 16:33:51 +000015595case $0 in #((
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015596 *[\\/]* ) as_myself=$0 ;;
15597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silversteinb9f23482007-03-22 00:15:41 +000015598for as_dir in $PATH
15599do
15600 IFS=$as_save_IFS
15601 test -z "$as_dir" && as_dir=.
Craig Silversteinab3d7652009-11-10 16:33:51 +000015602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15603 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015604IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +000015605
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015606 ;;
15607esac
15608# We did not find ourselves, most probably we were run as `sh COMMAND'
15609# in which case we are not to be found in the path.
15610if test "x$as_myself" = x; then
15611 as_myself=$0
15612fi
15613if test ! -f "$as_myself"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15615 exit 1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015616fi
15617
Craig Silversteinab3d7652009-11-10 16:33:51 +000015618# Unset variables that we do not need and which cause bugs (e.g. in
15619# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15620# suppresses any "Segmentation fault" message there. '((' could
15621# trigger a bug in pdksh 5.2.14.
15622for as_var in BASH_ENV ENV MAIL MAILPATH
15623do eval test x\${$as_var+set} = xset \
15624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015625done
15626PS1='$ '
15627PS2='> '
15628PS4='+ '
15629
15630# NLS nuisances.
Craig Silversteinab3d7652009-11-10 16:33:51 +000015631LC_ALL=C
15632export LC_ALL
15633LANGUAGE=C
15634export LANGUAGE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015635
Craig Silversteinab3d7652009-11-10 16:33:51 +000015636# CDPATH.
15637(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15638
15639
15640# as_fn_error ERROR [LINENO LOG_FD]
15641# ---------------------------------
15642# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15643# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15644# script with status $?, using 1 if that was 0.
15645as_fn_error ()
15646{
15647 as_status=$?; test $as_status -eq 0 && as_status=1
15648 if test "$3"; then
15649 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15651 fi
15652 $as_echo "$as_me: error: $1" >&2
15653 as_fn_exit $as_status
15654} # as_fn_error
15655
15656
15657# as_fn_set_status STATUS
15658# -----------------------
15659# Set $? to STATUS, without forking.
15660as_fn_set_status ()
15661{
15662 return $1
15663} # as_fn_set_status
15664
15665# as_fn_exit STATUS
15666# -----------------
15667# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15668as_fn_exit ()
15669{
15670 set +e
15671 as_fn_set_status $1
15672 exit $1
15673} # as_fn_exit
15674
15675# as_fn_unset VAR
15676# ---------------
15677# Portably unset VAR.
15678as_fn_unset ()
15679{
15680 { eval $1=; unset $1;}
15681}
15682as_unset=as_fn_unset
15683# as_fn_append VAR VALUE
15684# ----------------------
15685# Append the text in VALUE to the end of the definition contained in VAR. Take
15686# advantage of any shell optimizations that allow amortized linear growth over
15687# repeated appends, instead of the typical quadratic growth present in naive
15688# implementations.
15689if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15690 eval 'as_fn_append ()
15691 {
15692 eval $1+=\$2
15693 }'
15694else
15695 as_fn_append ()
15696 {
15697 eval $1=\$$1\$2
15698 }
15699fi # as_fn_append
15700
15701# as_fn_arith ARG...
15702# ------------------
15703# Perform arithmetic evaluation on the ARGs, and store the result in the
15704# global $as_val. Take advantage of shells that can avoid forks. The arguments
15705# must be portable across $(()) and expr.
15706if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15707 eval 'as_fn_arith ()
15708 {
15709 as_val=$(( $* ))
15710 }'
15711else
15712 as_fn_arith ()
15713 {
15714 as_val=`expr "$@" || test $? -eq 1`
15715 }
15716fi # as_fn_arith
15717
15718
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015719if expr a : '\(a\)' >/dev/null 2>&1 &&
15720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15721 as_expr=expr
15722else
15723 as_expr=false
15724fi
15725
15726if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15727 as_basename=basename
15728else
15729 as_basename=false
15730fi
15731
Craig Silversteinab3d7652009-11-10 16:33:51 +000015732if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15733 as_dirname=dirname
15734else
15735 as_dirname=false
15736fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015737
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015738as_me=`$as_basename -- "$0" ||
15739$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15740 X"$0" : 'X\(//\)$' \| \
15741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000015742$as_echo X/"$0" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015743 sed '/^.*\/\([^/][^/]*\)\/*$/{
15744 s//\1/
15745 q
15746 }
15747 /^X\/\(\/\/\)$/{
15748 s//\1/
15749 q
15750 }
15751 /^X\/\(\/\).*/{
15752 s//\1/
15753 q
15754 }
15755 s/.*/./; q'`
15756
Craig Silversteinab3d7652009-11-10 16:33:51 +000015757# Avoid depending upon Character Ranges.
15758as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15759as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15760as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15761as_cr_digits='0123456789'
15762as_cr_alnum=$as_cr_Letters$as_cr_digits
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015763
15764ECHO_C= ECHO_N= ECHO_T=
Craig Silversteinab3d7652009-11-10 16:33:51 +000015765case `echo -n x` in #(((((
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015766-n*)
Craig Silversteinab3d7652009-11-10 16:33:51 +000015767 case `echo 'xy\c'` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Craig Silversteinab3d7652009-11-10 16:33:51 +000015769 xy) ECHO_C='\c';;
15770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15771 ECHO_T=' ';;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015772 esac;;
15773*)
15774 ECHO_N='-n';;
Craig Silversteinb9f23482007-03-22 00:15:41 +000015775esac
15776
Craig Silversteinb9f23482007-03-22 00:15:41 +000015777rm -f conf$$ conf$$.exe conf$$.file
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015778if test -d conf$$.dir; then
15779 rm -f conf$$.dir/conf$$.file
15780else
15781 rm -f conf$$.dir
Craig Silversteinab3d7652009-11-10 16:33:51 +000015782 mkdir conf$$.dir 2>/dev/null
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015783fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000015784if (echo >conf$$.file) 2>/dev/null; then
15785 if ln -s conf$$.file conf$$ 2>/dev/null; then
15786 as_ln_s='ln -s'
15787 # ... but there are two gotchas:
15788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15790 # In both cases, we have to default to `cp -p'.
15791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15792 as_ln_s='cp -p'
15793 elif ln conf$$.file conf$$ 2>/dev/null; then
15794 as_ln_s=ln
15795 else
Craig Silversteinb9f23482007-03-22 00:15:41 +000015796 as_ln_s='cp -p'
Craig Silversteinab3d7652009-11-10 16:33:51 +000015797 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000015798else
15799 as_ln_s='cp -p'
15800fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015801rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15802rmdir conf$$.dir 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000015803
Craig Silversteinab3d7652009-11-10 16:33:51 +000015804
15805# as_fn_mkdir_p
15806# -------------
15807# Create "$as_dir" as a directory, including parents if necessary.
15808as_fn_mkdir_p ()
15809{
15810
15811 case $as_dir in #(
15812 -*) as_dir=./$as_dir;;
15813 esac
15814 test -d "$as_dir" || eval $as_mkdir_p || {
15815 as_dirs=
15816 while :; do
15817 case $as_dir in #(
15818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15819 *) as_qdir=$as_dir;;
15820 esac
15821 as_dirs="'$as_qdir' $as_dirs"
15822 as_dir=`$as_dirname -- "$as_dir" ||
15823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15824 X"$as_dir" : 'X\(//\)[^/]' \| \
15825 X"$as_dir" : 'X\(//\)$' \| \
15826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15827$as_echo X"$as_dir" |
15828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15829 s//\1/
15830 q
15831 }
15832 /^X\(\/\/\)[^/].*/{
15833 s//\1/
15834 q
15835 }
15836 /^X\(\/\/\)$/{
15837 s//\1/
15838 q
15839 }
15840 /^X\(\/\).*/{
15841 s//\1/
15842 q
15843 }
15844 s/.*/./; q'`
15845 test -d "$as_dir" && break
15846 done
15847 test -z "$as_dirs" || eval "mkdir $as_dirs"
15848 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15849
15850
15851} # as_fn_mkdir_p
Craig Silversteinb9f23482007-03-22 00:15:41 +000015852if mkdir -p . 2>/dev/null; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015853 as_mkdir_p='mkdir -p "$as_dir"'
Craig Silversteinb9f23482007-03-22 00:15:41 +000015854else
15855 test -d ./-p && rmdir ./-p
15856 as_mkdir_p=false
15857fi
15858
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015859if test -x / >/dev/null 2>&1; then
15860 as_test_x='test -x'
15861else
15862 if ls -dL / >/dev/null 2>&1; then
15863 as_ls_L_option=L
15864 else
15865 as_ls_L_option=
15866 fi
15867 as_test_x='
15868 eval sh -c '\''
15869 if test -d "$1"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015870 test -d "$1/.";
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015871 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000015872 case $1 in #(
15873 -*)set "./$1";;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015874 esac;
Craig Silversteinab3d7652009-11-10 16:33:51 +000015875 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015876 ???[sx]*):;;*)false;;esac;fi
15877 '\'' sh
15878 '
15879fi
15880as_executable_p=$as_test_x
Craig Silversteinb9f23482007-03-22 00:15:41 +000015881
15882# Sed expression to map a string onto a valid CPP name.
15883as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15884
15885# Sed expression to map a string onto a valid variable name.
15886as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15887
15888
Craig Silversteinb9f23482007-03-22 00:15:41 +000015889exec 6>&1
Craig Silversteinab3d7652009-11-10 16:33:51 +000015890## ----------------------------------- ##
15891## Main body of $CONFIG_STATUS script. ##
15892## ----------------------------------- ##
15893_ASEOF
15894test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000015895
Craig Silversteinab3d7652009-11-10 16:33:51 +000015896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897# Save the log message, to keep $0 and so on meaningful, and to
Craig Silversteinb9f23482007-03-22 00:15:41 +000015898# report actual input values of CONFIG_FILES etc. instead of their
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015899# values after options handling.
15900ac_log="
Craig Silverstein24b4c592011-01-25 00:36:41 +000015901This file was extended by gflags $as_me 1.5, which was
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015902generated by GNU Autoconf 2.65. Invocation command line was
Craig Silversteinb9f23482007-03-22 00:15:41 +000015903
15904 CONFIG_FILES = $CONFIG_FILES
15905 CONFIG_HEADERS = $CONFIG_HEADERS
15906 CONFIG_LINKS = $CONFIG_LINKS
15907 CONFIG_COMMANDS = $CONFIG_COMMANDS
15908 $ $0 $@
15909
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015910on `(hostname || uname -n) 2>/dev/null | sed 1q`
15911"
15912
Craig Silversteinb9f23482007-03-22 00:15:41 +000015913_ACEOF
15914
Craig Silversteinab3d7652009-11-10 16:33:51 +000015915case $ac_config_files in *"
15916"*) set x $ac_config_files; shift; ac_config_files=$*;;
15917esac
15918
15919case $ac_config_headers in *"
15920"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15921esac
15922
15923
15924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000015925# Files that config.status was made for.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015926config_files="$ac_config_files"
15927config_headers="$ac_config_headers"
15928config_commands="$ac_config_commands"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015929
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015930_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000015931
Craig Silversteinab3d7652009-11-10 16:33:51 +000015932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000015933ac_cs_usage="\
Craig Silversteinab3d7652009-11-10 16:33:51 +000015934\`$as_me' instantiates files and other configuration actions
15935from templates according to the current configuration. Unless the files
15936and actions are specified as TAGs, all are instantiated by default.
Craig Silversteinb9f23482007-03-22 00:15:41 +000015937
Craig Silversteinab3d7652009-11-10 16:33:51 +000015938Usage: $0 [OPTION]... [TAG]...
Craig Silversteinb9f23482007-03-22 00:15:41 +000015939
15940 -h, --help print this help, then exit
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015941 -V, --version print version number and configuration settings, then exit
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015942 --config print configuration, then exit
Craig Silversteinab3d7652009-11-10 16:33:51 +000015943 -q, --quiet, --silent
15944 do not print progress messages
Craig Silversteinb9f23482007-03-22 00:15:41 +000015945 -d, --debug don't remove temporary files
15946 --recheck update $as_me by reconfiguring in the same conditions
Craig Silversteinab3d7652009-11-10 16:33:51 +000015947 --file=FILE[:TEMPLATE]
15948 instantiate the configuration file FILE
15949 --header=FILE[:TEMPLATE]
15950 instantiate the configuration header FILE
Craig Silversteinb9f23482007-03-22 00:15:41 +000015951
15952Configuration files:
15953$config_files
15954
15955Configuration headers:
15956$config_headers
15957
15958Configuration commands:
15959$config_commands
15960
Craig Silversteinab3d7652009-11-10 16:33:51 +000015961Report bugs to <opensource@google.com>."
Craig Silversteinb9f23482007-03-22 00:15:41 +000015962
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015963_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000015964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015965ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015966ac_cs_version="\\
Craig Silverstein24b4c592011-01-25 00:36:41 +000015967gflags config.status 1.5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015968configured by $0, generated by GNU Autoconf 2.65,
15969 with options \\"\$ac_cs_config\\"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015970
Craig Silversteinab3d7652009-11-10 16:33:51 +000015971Copyright (C) 2009 Free Software Foundation, Inc.
Craig Silversteinb9f23482007-03-22 00:15:41 +000015972This config.status script is free software; the Free Software Foundation
15973gives unlimited permission to copy, distribute and modify it."
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015974
15975ac_pwd='$ac_pwd'
15976srcdir='$srcdir'
15977INSTALL='$INSTALL'
Craig Silversteinab3d7652009-11-10 16:33:51 +000015978AWK='$AWK'
15979test -n "\$AWK" || AWK=awk
Craig Silversteinb9f23482007-03-22 00:15:41 +000015980_ACEOF
15981
Craig Silversteinab3d7652009-11-10 16:33:51 +000015982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15983# The default lists apply if the user does not specify any file.
Craig Silversteinb9f23482007-03-22 00:15:41 +000015984ac_need_defaults=:
15985while test $# != 0
15986do
15987 case $1 in
15988 --*=*)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015989 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15990 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000015991 ac_shift=:
15992 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015993 *)
Craig Silversteinb9f23482007-03-22 00:15:41 +000015994 ac_option=$1
15995 ac_optarg=$2
15996 ac_shift=shift
15997 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000015998 esac
15999
16000 case $ac_option in
16001 # Handling of the options.
Craig Silversteinb9f23482007-03-22 00:15:41 +000016002 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16003 ac_cs_recheck=: ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016004 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Craig Silversteinab3d7652009-11-10 16:33:51 +000016005 $as_echo "$ac_cs_version"; exit ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000016006 --config | --confi | --conf | --con | --co | --c )
16007 $as_echo "$ac_cs_config"; exit ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016008 --debug | --debu | --deb | --de | --d | -d )
Craig Silversteinb9f23482007-03-22 00:15:41 +000016009 debug=: ;;
16010 --file | --fil | --fi | --f )
16011 $ac_shift
Craig Silversteinab3d7652009-11-10 16:33:51 +000016012 case $ac_optarg in
16013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16014 esac
16015 as_fn_append CONFIG_FILES " '$ac_optarg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +000016016 ac_need_defaults=false;;
16017 --header | --heade | --head | --hea )
16018 $ac_shift
Craig Silversteinab3d7652009-11-10 16:33:51 +000016019 case $ac_optarg in
16020 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16021 esac
16022 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +000016023 ac_need_defaults=false;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016024 --he | --h)
16025 # Conflict between --help and --header
Craig Silversteinab3d7652009-11-10 16:33:51 +000016026 as_fn_error "ambiguous option: \`$1'
16027Try \`$0 --help' for more information.";;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016028 --help | --hel | -h )
Craig Silversteinab3d7652009-11-10 16:33:51 +000016029 $as_echo "$ac_cs_usage"; exit ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000016030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16031 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16032 ac_cs_silent=: ;;
16033
16034 # This is an error.
Craig Silversteinab3d7652009-11-10 16:33:51 +000016035 -*) as_fn_error "unrecognized option: \`$1'
16036Try \`$0 --help' for more information." ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000016037
Craig Silversteinab3d7652009-11-10 16:33:51 +000016038 *) as_fn_append ac_config_targets " $1"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016039 ac_need_defaults=false ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000016040
16041 esac
16042 shift
16043done
16044
16045ac_configure_extra_args=
16046
16047if $ac_cs_silent; then
16048 exec 6>/dev/null
16049 ac_configure_extra_args="$ac_configure_extra_args --silent"
16050fi
16051
16052_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000016054if \$ac_cs_recheck; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000016055 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16056 shift
16057 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16058 CONFIG_SHELL='$SHELL'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016059 export CONFIG_SHELL
Craig Silversteinab3d7652009-11-10 16:33:51 +000016060 exec "\$@"
Craig Silversteinb9f23482007-03-22 00:15:41 +000016061fi
16062
16063_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016065exec 5>>config.log
16066{
16067 echo
16068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16069## Running $as_me. ##
16070_ASBOX
Craig Silversteinab3d7652009-11-10 16:33:51 +000016071 $as_echo "$ac_log"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016072} >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000016073
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016074_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000016076#
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016077# INIT-COMMANDS
Craig Silversteinb9f23482007-03-22 00:15:41 +000016078#
Craig Silversteinb9f23482007-03-22 00:15:41 +000016079AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16080
Craig Silverstein84b18ac2010-11-16 23:21:00 +000016081
16082# The HP-UX ksh and POSIX shell print the target directory to stdout
16083# if CDPATH is set.
16084(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16085
16086sed_quote_subst='$sed_quote_subst'
16087double_quote_subst='$double_quote_subst'
16088delay_variable_subst='$delay_variable_subst'
16089enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16090macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16091macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16092enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16093enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16094pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16095host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16096host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16097host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16098build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16099build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16100build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16101SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16102Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16103GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16104EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16105FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16106LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16107NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16108LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16109max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16110ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16111exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16112lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16113lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16114lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16115reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16116reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16117OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16118deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16119file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16120AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16121AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16122STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16123RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16124old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16125old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16126old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16127CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16128CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16129compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16130GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16131lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16132lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16133lt_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"`'
16134lt_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"`'
16135objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16136SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16137ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16138MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16139lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16140lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16141lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16142lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16143lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16144need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16145DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16146NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16147LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16148OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16149OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16150libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16151shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16152extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16153archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16154enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16155export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16156whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16157compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16158old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16159old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16160archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16161archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16162module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16163module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16164with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16165allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16166no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16167hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16168hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16169hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16170hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16171hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16172hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16173hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16174hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16175inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16176link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16177fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16178always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16179export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16180exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16181include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16182prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16183file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16184variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16185need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16186need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16187version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16188runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16189shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16190shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16191libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16192library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16193soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16194postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16195postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16196finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16197finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16198hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16199sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16200sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16201hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16202enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16203enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16204enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16205old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16206striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16207compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16208predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16209postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16210predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16211postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16212compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16213LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16214old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16215compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16216GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16217lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16218lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16219lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16220lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16221lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16222archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16223enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16224export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16225whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16226compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16227old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16228old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16229archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16230archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16231module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16232module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16233with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16234allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16235no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16236hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16237hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16238hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16239hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16240hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16241hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16242hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16243hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16244inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16245link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16246fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16247always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16248export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16249exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16250include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16251prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16252file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16253hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16254compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16255predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16256postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16257predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16258postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16259compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16260
16261LTCC='$LTCC'
16262LTCFLAGS='$LTCFLAGS'
16263compiler='$compiler_DEFAULT'
16264
16265# Quote evaled strings.
16266for var in SED \
16267GREP \
16268EGREP \
16269FGREP \
16270LD \
16271NM \
16272LN_S \
16273lt_SP2NL \
16274lt_NL2SP \
16275reload_flag \
16276OBJDUMP \
16277deplibs_check_method \
16278file_magic_cmd \
16279AR \
16280AR_FLAGS \
16281STRIP \
16282RANLIB \
16283CC \
16284CFLAGS \
16285compiler \
16286lt_cv_sys_global_symbol_pipe \
16287lt_cv_sys_global_symbol_to_cdecl \
16288lt_cv_sys_global_symbol_to_c_name_address \
16289lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16290SHELL \
16291ECHO \
16292lt_prog_compiler_no_builtin_flag \
16293lt_prog_compiler_wl \
16294lt_prog_compiler_pic \
16295lt_prog_compiler_static \
16296lt_cv_prog_compiler_c_o \
16297need_locks \
16298DSYMUTIL \
16299NMEDIT \
16300LIPO \
16301OTOOL \
16302OTOOL64 \
16303shrext_cmds \
16304export_dynamic_flag_spec \
16305whole_archive_flag_spec \
16306compiler_needs_object \
16307with_gnu_ld \
16308allow_undefined_flag \
16309no_undefined_flag \
16310hardcode_libdir_flag_spec \
16311hardcode_libdir_flag_spec_ld \
16312hardcode_libdir_separator \
16313fix_srcfile_path \
16314exclude_expsyms \
16315include_expsyms \
16316file_list_spec \
16317variables_saved_for_relink \
16318libname_spec \
16319library_names_spec \
16320soname_spec \
16321finish_eval \
16322old_striplib \
16323striplib \
16324compiler_lib_search_dirs \
16325predep_objects \
16326postdep_objects \
16327predeps \
16328postdeps \
16329compiler_lib_search_path \
16330LD_CXX \
16331compiler_CXX \
16332lt_prog_compiler_no_builtin_flag_CXX \
16333lt_prog_compiler_wl_CXX \
16334lt_prog_compiler_pic_CXX \
16335lt_prog_compiler_static_CXX \
16336lt_cv_prog_compiler_c_o_CXX \
16337export_dynamic_flag_spec_CXX \
16338whole_archive_flag_spec_CXX \
16339compiler_needs_object_CXX \
16340with_gnu_ld_CXX \
16341allow_undefined_flag_CXX \
16342no_undefined_flag_CXX \
16343hardcode_libdir_flag_spec_CXX \
16344hardcode_libdir_flag_spec_ld_CXX \
16345hardcode_libdir_separator_CXX \
16346fix_srcfile_path_CXX \
16347exclude_expsyms_CXX \
16348include_expsyms_CXX \
16349file_list_spec_CXX \
16350compiler_lib_search_dirs_CXX \
16351predep_objects_CXX \
16352postdep_objects_CXX \
16353predeps_CXX \
16354postdeps_CXX \
16355compiler_lib_search_path_CXX; do
16356 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16357 *[\\\\\\\`\\"\\\$]*)
16358 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16359 ;;
16360 *)
16361 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16362 ;;
16363 esac
16364done
16365
16366# Double-quote double-evaled strings.
16367for var in reload_cmds \
16368old_postinstall_cmds \
16369old_postuninstall_cmds \
16370old_archive_cmds \
16371extract_expsyms_cmds \
16372old_archive_from_new_cmds \
16373old_archive_from_expsyms_cmds \
16374archive_cmds \
16375archive_expsym_cmds \
16376module_cmds \
16377module_expsym_cmds \
16378export_symbols_cmds \
16379prelink_cmds \
16380postinstall_cmds \
16381postuninstall_cmds \
16382finish_cmds \
16383sys_lib_search_path_spec \
16384sys_lib_dlsearch_path_spec \
16385old_archive_cmds_CXX \
16386old_archive_from_new_cmds_CXX \
16387old_archive_from_expsyms_cmds_CXX \
16388archive_cmds_CXX \
16389archive_expsym_cmds_CXX \
16390module_cmds_CXX \
16391module_expsym_cmds_CXX \
16392export_symbols_cmds_CXX \
16393prelink_cmds_CXX; do
16394 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16395 *[\\\\\\\`\\"\\\$]*)
16396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16397 ;;
16398 *)
16399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16400 ;;
16401 esac
16402done
16403
16404# Fix-up fallback echo if it was mangled by the above quoting rules.
16405case \$lt_ECHO in
16406*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16407 ;;
16408esac
16409
16410ac_aux_dir='$ac_aux_dir'
16411xsi_shell='$xsi_shell'
16412lt_shell_append='$lt_shell_append'
16413
16414# See if we are running on zsh, and set the options which allow our
16415# commands through without removal of \ escapes INIT.
16416if test -n "\${ZSH_VERSION+set}" ; then
16417 setopt NO_GLOB_SUBST
16418fi
16419
16420
16421 PACKAGE='$PACKAGE'
16422 VERSION='$VERSION'
16423 TIMESTAMP='$TIMESTAMP'
16424 RM='$RM'
16425 ofile='$ofile'
16426
16427
16428
16429
16430
16431
Craig Silversteinb9f23482007-03-22 00:15:41 +000016432_ACEOF
16433
Craig Silversteinab3d7652009-11-10 16:33:51 +000016434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016435
16436# Handling of arguments.
Craig Silversteinb9f23482007-03-22 00:15:41 +000016437for ac_config_target in $ac_config_targets
16438do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016439 case $ac_config_target in
16440 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000016442 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016443 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16444 "src/gflags/gflags.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags.h" ;;
16445 "src/gflags/gflags_completions.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags_completions.h" ;;
16446
Craig Silversteinab3d7652009-11-10 16:33:51 +000016447 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000016448 esac
16449done
16450
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016451
Craig Silversteinb9f23482007-03-22 00:15:41 +000016452# If the user did not use the arguments to specify the items to instantiate,
16453# then the envvar interface is used. Set only those that are not.
16454# We use the long form for the default assignment because of an extremely
16455# bizarre bug on SunOS 4.1.3.
16456if $ac_need_defaults; then
16457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16459 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16460fi
16461
16462# Have a temporary directory for convenience. Make it in the build tree
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016463# simply because there is no reason against having it here, and in addition,
Craig Silversteinb9f23482007-03-22 00:15:41 +000016464# creating and moving files from /tmp can sometimes cause problems.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016465# Hook for its removal unless debugging.
16466# Note that there is a small window in which the directory will not be cleaned:
16467# after its creation but before its name has been assigned to `$tmp'.
Craig Silversteinb9f23482007-03-22 00:15:41 +000016468$debug ||
16469{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016470 tmp=
16471 trap 'exit_status=$?
16472 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16473' 0
Craig Silversteinab3d7652009-11-10 16:33:51 +000016474 trap 'as_fn_exit 1' 1 2 13 15
Craig Silversteinb9f23482007-03-22 00:15:41 +000016475}
Craig Silversteinb9f23482007-03-22 00:15:41 +000016476# Create a (secure) tmp directory for tmp files.
16477
16478{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016479 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Craig Silversteinb9f23482007-03-22 00:15:41 +000016480 test -n "$tmp" && test -d "$tmp"
16481} ||
16482{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016483 tmp=./conf$$-$RANDOM
16484 (umask 077 && mkdir "$tmp")
Craig Silversteinab3d7652009-11-10 16:33:51 +000016485} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +000016486
Craig Silversteinab3d7652009-11-10 16:33:51 +000016487# Set up the scripts for CONFIG_FILES section.
16488# No need to generate them if there are no CONFIG_FILES.
16489# This happens for instance with `./config.status config.h'.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016490if test -n "$CONFIG_FILES"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000016491
Craig Silversteinab3d7652009-11-10 16:33:51 +000016492
16493ac_cr=`echo X | tr X '\015'`
16494# On cygwin, bash can eat \r inside `` if the user requested igncr.
16495# But we know of no other shell where ac_cr would be empty at this
16496# point, so we can use a bashism as a fallback.
16497if test "x$ac_cr" = x; then
16498 eval ac_cr=\$\'\\r\'
16499fi
16500ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16501if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16502 ac_cs_awk_cr='\r'
16503else
16504 ac_cs_awk_cr=$ac_cr
16505fi
16506
16507echo 'BEGIN {' >"$tmp/subs1.awk" &&
Craig Silversteinb9f23482007-03-22 00:15:41 +000016508_ACEOF
16509
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016510
Craig Silversteinab3d7652009-11-10 16:33:51 +000016511{
16512 echo "cat >conf$$subs.awk <<_ACEOF" &&
16513 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16514 echo "_ACEOF"
16515} >conf$$subs.sh ||
16516 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16517ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016518ac_delim='%!_!# '
16519for ac_last_try in false false false false false :; do
Craig Silversteinab3d7652009-11-10 16:33:51 +000016520 . ./conf$$subs.sh ||
16521 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016522
Craig Silversteinab3d7652009-11-10 16:33:51 +000016523 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16524 if test $ac_delim_n = $ac_delim_num; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016525 break
16526 elif $ac_last_try; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000016527 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016528 else
16529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Craig Silversteinb9f23482007-03-22 00:15:41 +000016530 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016531done
Craig Silversteinab3d7652009-11-10 16:33:51 +000016532rm -f conf$$subs.sh
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016533
Craig Silversteinab3d7652009-11-10 16:33:51 +000016534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16535cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016536_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016537sed -n '
16538h
16539s/^/S["/; s/!.*/"]=/
16540p
16541g
16542s/^[^!]*!//
16543:repl
16544t repl
16545s/'"$ac_delim"'$//
16546t delim
16547:nl
16548h
Craig Silverstein84b18ac2010-11-16 23:21:00 +000016549s/\(.\{148\}\)..*/\1/
Craig Silversteinab3d7652009-11-10 16:33:51 +000016550t more1
16551s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16552p
16553n
16554b repl
16555:more1
16556s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16557p
16558g
16559s/.\{148\}//
16560t nl
16561:delim
16562h
Craig Silverstein84b18ac2010-11-16 23:21:00 +000016563s/\(.\{148\}\)..*/\1/
Craig Silversteinab3d7652009-11-10 16:33:51 +000016564t more2
16565s/["\\]/\\&/g; s/^/"/; s/$/"/
16566p
16567b
16568:more2
16569s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16570p
16571g
16572s/.\{148\}//
16573t delim
16574' <conf$$subs.awk | sed '
16575/^[^""]/{
16576 N
16577 s/\n//
16578}
16579' >>$CONFIG_STATUS || ac_write_fail=1
16580rm -f conf$$subs.awk
16581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16582_ACAWK
16583cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16584 for (key in S) S_is_set[key] = 1
16585 FS = ""
16586
16587}
16588{
16589 line = $ 0
16590 nfields = split(line, field, "@")
16591 substed = 0
16592 len = length(field[1])
16593 for (i = 2; i < nfields; i++) {
16594 key = field[i]
16595 keylen = length(key)
16596 if (S_is_set[key]) {
16597 value = S[key]
16598 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16599 len += length(value) + length(field[++i])
16600 substed = 1
16601 } else
16602 len += 1 + keylen
16603 }
16604
16605 print line
16606}
16607
16608_ACAWK
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016609_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16611if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16612 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16613else
16614 cat
16615fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16616 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016617_ACEOF
16618
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016619# VPATH may cause trouble with some makes, so we remove $(srcdir),
16620# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16621# trailing colons and then remove the whole line if VPATH becomes empty
16622# (actually we leave an empty line to preserve line numbers).
16623if test "x$srcdir" = x.; then
16624 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16625s/:*\$(srcdir):*/:/
16626s/:*\${srcdir}:*/:/
16627s/:*@srcdir@:*/:/
16628s/^\([^=]*=[ ]*\):*/\1/
16629s/:*$//
16630s/^[^=]*=[ ]*$//
16631}'
16632fi
16633
Craig Silversteinab3d7652009-11-10 16:33:51 +000016634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000016635fi # test -n "$CONFIG_FILES"
16636
Craig Silversteinab3d7652009-11-10 16:33:51 +000016637# Set up the scripts for CONFIG_HEADERS section.
16638# No need to generate them if there are no CONFIG_HEADERS.
16639# This happens for instance with `./config.status Makefile'.
16640if test -n "$CONFIG_HEADERS"; then
16641cat >"$tmp/defines.awk" <<\_ACAWK ||
16642BEGIN {
16643_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016644
Craig Silversteinab3d7652009-11-10 16:33:51 +000016645# Transform confdefs.h into an awk script `defines.awk', embedded as
16646# here-document in config.status, that substitutes the proper values into
16647# config.h.in to produce config.h.
16648
16649# Create a delimiter string that does not exist in confdefs.h, to ease
16650# handling of long lines.
16651ac_delim='%!_!# '
16652for ac_last_try in false false :; do
16653 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16654 if test -z "$ac_t"; then
16655 break
16656 elif $ac_last_try; then
16657 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16658 else
16659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16660 fi
16661done
16662
16663# For the awk script, D is an array of macro values keyed by name,
16664# likewise P contains macro parameters if any. Preserve backslash
16665# newline sequences.
16666
16667ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16668sed -n '
16669s/.\{148\}/&'"$ac_delim"'/g
16670t rset
16671:rset
16672s/^[ ]*#[ ]*define[ ][ ]*/ /
16673t def
16674d
16675:def
16676s/\\$//
16677t bsnl
16678s/["\\]/\\&/g
16679s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16680D["\1"]=" \3"/p
16681s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16682d
16683:bsnl
16684s/["\\]/\\&/g
16685s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16686D["\1"]=" \3\\\\\\n"\\/p
16687t cont
16688s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16689t cont
16690d
16691:cont
16692n
16693s/.\{148\}/&'"$ac_delim"'/g
16694t clear
16695:clear
16696s/\\$//
16697t bsnlc
16698s/["\\]/\\&/g; s/^/"/; s/$/"/p
16699d
16700:bsnlc
16701s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16702b cont
16703' <confdefs.h | sed '
16704s/'"$ac_delim"'/"\\\
16705"/g' >>$CONFIG_STATUS || ac_write_fail=1
16706
16707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16708 for (key in D) D_is_set[key] = 1
16709 FS = ""
16710}
16711/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16712 line = \$ 0
16713 split(line, arg, " ")
16714 if (arg[1] == "#") {
16715 defundef = arg[2]
16716 mac1 = arg[3]
16717 } else {
16718 defundef = substr(arg[1], 2)
16719 mac1 = arg[2]
16720 }
16721 split(mac1, mac2, "(") #)
16722 macro = mac2[1]
16723 prefix = substr(line, 1, index(line, defundef) - 1)
16724 if (D_is_set[macro]) {
16725 # Preserve the white space surrounding the "#".
16726 print prefix "define", macro P[macro] D[macro]
16727 next
16728 } else {
16729 # Replace #undef with comments. This is necessary, for example,
16730 # in the case of _POSIX_SOURCE, which is predefined and required
16731 # on some systems where configure will not decide to define it.
16732 if (defundef == "undef") {
16733 print "/*", prefix defundef, macro, "*/"
16734 next
16735 }
16736 }
16737}
16738{ print }
16739_ACAWK
16740_ACEOF
16741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16742 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16743fi # test -n "$CONFIG_HEADERS"
16744
16745
16746eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16747shift
16748for ac_tag
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016749do
16750 case $ac_tag in
16751 :[FHLC]) ac_mode=$ac_tag; continue;;
16752 esac
16753 case $ac_mode$ac_tag in
16754 :[FHL]*:*);;
Craig Silversteinab3d7652009-11-10 16:33:51 +000016755 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016756 :[FH]-) ac_tag=-:-;;
16757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16758 esac
16759 ac_save_IFS=$IFS
16760 IFS=:
16761 set x $ac_tag
16762 IFS=$ac_save_IFS
16763 shift
16764 ac_file=$1
16765 shift
16766
16767 case $ac_mode in
16768 :L) ac_source=$1;;
16769 :[FH])
16770 ac_file_inputs=
16771 for ac_f
16772 do
16773 case $ac_f in
16774 -) ac_f="$tmp/stdin";;
16775 *) # Look for the file first in the build tree, then in the source tree
16776 # (if the path is not absolute). The absolute path cannot be DOS-style,
16777 # because $ac_f cannot contain `:'.
16778 test -f "$ac_f" ||
16779 case $ac_f in
16780 [\\/$]*) false;;
16781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16782 esac ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000016783 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016784 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +000016785 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16786 as_fn_append ac_file_inputs " '$ac_f'"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016787 done
16788
16789 # Let's still pretend it is `configure' which instantiates (i.e., don't
16790 # use $as_me), people would be surprised to read:
16791 # /* config.h. Generated by config.status. */
Craig Silversteinab3d7652009-11-10 16:33:51 +000016792 configure_input='Generated from '`
16793 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16794 `' by configure.'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016795 if test x"$ac_file" != x-; then
16796 configure_input="$ac_file. $configure_input"
Craig Silversteinab3d7652009-11-10 16:33:51 +000016797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16798$as_echo "$as_me: creating $ac_file" >&6;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016799 fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000016800 # Neutralize special characters interpreted by sed in replacement strings.
16801 case $configure_input in #(
16802 *\&* | *\|* | *\\* )
16803 ac_sed_conf_input=`$as_echo "$configure_input" |
16804 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16805 *) ac_sed_conf_input=$configure_input;;
16806 esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016807
16808 case $ac_tag in
Craig Silversteinab3d7652009-11-10 16:33:51 +000016809 *:-:* | *:-) cat >"$tmp/stdin" \
16810 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016811 esac
16812 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000016813 esac
16814
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016815 ac_dir=`$as_dirname -- "$ac_file" ||
Craig Silversteinb9f23482007-03-22 00:15:41 +000016816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16817 X"$ac_file" : 'X\(//\)[^/]' \| \
16818 X"$ac_file" : 'X\(//\)$' \| \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016819 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000016820$as_echo X"$ac_file" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16822 s//\1/
16823 q
16824 }
16825 /^X\(\/\/\)[^/].*/{
16826 s//\1/
16827 q
16828 }
16829 /^X\(\/\/\)$/{
16830 s//\1/
16831 q
16832 }
16833 /^X\(\/\).*/{
16834 s//\1/
16835 q
16836 }
16837 s/.*/./; q'`
Craig Silversteinab3d7652009-11-10 16:33:51 +000016838 as_dir="$ac_dir"; as_fn_mkdir_p
Craig Silversteinb9f23482007-03-22 00:15:41 +000016839 ac_builddir=.
16840
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016841case "$ac_dir" in
16842.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16843*)
Craig Silversteinab3d7652009-11-10 16:33:51 +000016844 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016845 # A ".." for each directory in $ac_dir_suffix.
Craig Silversteinab3d7652009-11-10 16:33:51 +000016846 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016847 case $ac_top_builddir_sub in
16848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16850 esac ;;
16851esac
16852ac_abs_top_builddir=$ac_pwd
16853ac_abs_builddir=$ac_pwd$ac_dir_suffix
16854# for backward compatibility:
16855ac_top_builddir=$ac_top_build_prefix
Craig Silversteinb9f23482007-03-22 00:15:41 +000016856
16857case $srcdir in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016858 .) # We are building in place.
Craig Silversteinb9f23482007-03-22 00:15:41 +000016859 ac_srcdir=.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016860 ac_top_srcdir=$ac_top_builddir_sub
16861 ac_abs_top_srcdir=$ac_pwd ;;
16862 [\\/]* | ?:[\\/]* ) # Absolute name.
Craig Silversteinb9f23482007-03-22 00:15:41 +000016863 ac_srcdir=$srcdir$ac_dir_suffix;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016864 ac_top_srcdir=$srcdir
16865 ac_abs_top_srcdir=$srcdir ;;
16866 *) # Relative name.
16867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16868 ac_top_srcdir=$ac_top_build_prefix$srcdir
16869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000016870esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016871ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Craig Silversteinb9f23482007-03-22 00:15:41 +000016872
Craig Silversteinb9f23482007-03-22 00:15:41 +000016873
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016874 case $ac_mode in
16875 :F)
16876 #
16877 # CONFIG_FILE
16878 #
Craig Silversteinb9f23482007-03-22 00:15:41 +000016879
16880 case $INSTALL in
16881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000016883 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000016884_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016885
Craig Silversteinab3d7652009-11-10 16:33:51 +000016886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016887# If the template does not know about datarootdir, expand it.
16888# FIXME: This hack should be removed a few years after 2.60.
16889ac_datarootdir_hack=; ac_datarootdir_seen=
Craig Silversteinab3d7652009-11-10 16:33:51 +000016890ac_sed_dataroot='
16891/datarootdir/ {
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016892 p
16893 q
16894}
16895/@datadir@/p
16896/@docdir@/p
16897/@infodir@/p
16898/@localedir@/p
Craig Silversteinab3d7652009-11-10 16:33:51 +000016899/@mandir@/p'
16900case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016901*datarootdir*) ac_datarootdir_seen=yes;;
16902*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Craig Silversteinab3d7652009-11-10 16:33:51 +000016903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16904$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016905_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016907 ac_datarootdir_hack='
16908 s&@datadir@&$datadir&g
16909 s&@docdir@&$docdir&g
16910 s&@infodir@&$infodir&g
16911 s&@localedir@&$localedir&g
16912 s&@mandir@&$mandir&g
Craig Silversteinab3d7652009-11-10 16:33:51 +000016913 s&\\\${datarootdir}&$datarootdir&g' ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016914esac
16915_ACEOF
16916
16917# Neutralize VPATH when `$srcdir' = `.'.
16918# Shell code in configure.ac might set extrasub.
16919# FIXME: do we really want to maintain this feature?
Craig Silversteinab3d7652009-11-10 16:33:51 +000016920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16921ac_sed_extra="$ac_vpsub
Craig Silversteinb9f23482007-03-22 00:15:41 +000016922$extrasub
16923_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000016925:t
16926/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Craig Silversteinab3d7652009-11-10 16:33:51 +000016927s|@configure_input@|$ac_sed_conf_input|;t t
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016928s&@top_builddir@&$ac_top_builddir_sub&;t t
Craig Silversteinab3d7652009-11-10 16:33:51 +000016929s&@top_build_prefix@&$ac_top_build_prefix&;t t
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016930s&@srcdir@&$ac_srcdir&;t t
16931s&@abs_srcdir@&$ac_abs_srcdir&;t t
16932s&@top_srcdir@&$ac_top_srcdir&;t t
16933s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16934s&@builddir@&$ac_builddir&;t t
16935s&@abs_builddir@&$ac_abs_builddir&;t t
16936s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16937s&@INSTALL@&$ac_INSTALL&;t t
16938$ac_datarootdir_hack
Craig Silversteinab3d7652009-11-10 16:33:51 +000016939"
16940eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16941 || as_fn_error "could not create $ac_file" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +000016942
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016943test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16944 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Craig Silversteinab3d7652009-11-10 16:33:51 +000016946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016947which seems to be undefined. Please make sure it is defined." >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000016948$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016949which seems to be undefined. Please make sure it is defined." >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000016950
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016951 rm -f "$tmp/stdin"
Craig Silversteinb9f23482007-03-22 00:15:41 +000016952 case $ac_file in
Craig Silversteinab3d7652009-11-10 16:33:51 +000016953 -) cat "$tmp/out" && rm -f "$tmp/out";;
16954 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16955 esac \
16956 || as_fn_error "could not create $ac_file" "$LINENO" 5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016957 ;;
16958 :H)
16959 #
16960 # CONFIG_HEADER
16961 #
Craig Silversteinb9f23482007-03-22 00:15:41 +000016962 if test x"$ac_file" != x-; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000016963 {
16964 $as_echo "/* $configure_input */" \
16965 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16966 } >"$tmp/config.h" \
16967 || as_fn_error "could not create $ac_file" "$LINENO" 5
16968 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16970$as_echo "$as_me: $ac_file is unchanged" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000016971 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000016972 rm -f "$ac_file"
16973 mv "$tmp/config.h" "$ac_file" \
16974 || as_fn_error "could not create $ac_file" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +000016975 fi
16976 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000016977 $as_echo "/* $configure_input */" \
16978 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16979 || as_fn_error "could not create -" "$LINENO" 5
Craig Silversteinb9f23482007-03-22 00:15:41 +000016980 fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000016981# Compute "$ac_file"'s index in $config_headers.
Craig Silversteinb9f23482007-03-22 00:15:41 +000016982_am_stamp_count=1
16983for _am_header in $config_headers :; do
16984 case $_am_header in
Craig Silversteinab3d7652009-11-10 16:33:51 +000016985 "$ac_file" | "$ac_file":* )
Craig Silversteinb9f23482007-03-22 00:15:41 +000016986 break ;;
16987 * )
16988 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16989 esac
16990done
Craig Silversteinab3d7652009-11-10 16:33:51 +000016991echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
16992$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16993 X"$ac_file" : 'X\(//\)[^/]' \| \
16994 X"$ac_file" : 'X\(//\)$' \| \
16995 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16996$as_echo X"$ac_file" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16998 s//\1/
16999 q
17000 }
17001 /^X\(\/\/\)[^/].*/{
17002 s//\1/
17003 q
17004 }
17005 /^X\(\/\/\)$/{
17006 s//\1/
17007 q
17008 }
17009 /^X\(\/\).*/{
17010 s//\1/
17011 q
17012 }
17013 s/.*/./; q'`/stamp-h$_am_stamp_count
17014 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000017015
Craig Silversteinab3d7652009-11-10 16:33:51 +000017016 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17017$as_echo "$as_me: executing $ac_file commands" >&6;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017018 ;;
17019 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000017020
17021
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017022 case $ac_file$ac_mode in
17023 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Craig Silversteinb9f23482007-03-22 00:15:41 +000017024 # Strip MF so we end up with the name of the file.
17025 mf=`echo "$mf" | sed -e 's/:.*$//'`
17026 # Check whether this is an Automake generated Makefile or not.
17027 # We used to match only the files named `Makefile.in', but
17028 # some people rename them; so instead we look at the file content.
17029 # Grep'ing the first line is not enough: some people post-process
17030 # each Makefile.in and add a new line on top of each file to say so.
17031 # So let's grep whole file.
17032 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017033 dirpart=`$as_dirname -- "$mf" ||
Craig Silversteinb9f23482007-03-22 00:15:41 +000017034$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17035 X"$mf" : 'X\(//\)[^/]' \| \
17036 X"$mf" : 'X\(//\)$' \| \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017037 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000017038$as_echo X"$mf" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17040 s//\1/
17041 q
17042 }
17043 /^X\(\/\/\)[^/].*/{
17044 s//\1/
17045 q
17046 }
17047 /^X\(\/\/\)$/{
17048 s//\1/
17049 q
17050 }
17051 /^X\(\/\).*/{
17052 s//\1/
17053 q
17054 }
17055 s/.*/./; q'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000017056 else
17057 continue
17058 fi
17059 # Extract the definition of DEPDIR, am__include, and am__quote
17060 # from the Makefile without running `make'.
17061 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17062 test -z "$DEPDIR" && continue
17063 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17064 test -z "am__include" && continue
17065 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17066 # When using ansi2knr, U may be empty or an underscore; expand it
17067 U=`sed -n 's/^U = //p' < "$mf"`
17068 # Find all dependency output files, they are included files with
17069 # $(DEPDIR) in their names. We invoke sed twice because it is the
17070 # simplest approach to changing $(DEPDIR) to its actual value in the
17071 # expansion.
17072 for file in `sed -n "
17073 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17074 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17075 # Make sure the directory exists.
17076 test -f "$dirpart/$file" && continue
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017077 fdir=`$as_dirname -- "$file" ||
Craig Silversteinb9f23482007-03-22 00:15:41 +000017078$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17079 X"$file" : 'X\(//\)[^/]' \| \
17080 X"$file" : 'X\(//\)$' \| \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017081 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000017082$as_echo X"$file" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17084 s//\1/
17085 q
17086 }
17087 /^X\(\/\/\)[^/].*/{
17088 s//\1/
17089 q
17090 }
17091 /^X\(\/\/\)$/{
17092 s//\1/
17093 q
17094 }
17095 /^X\(\/\).*/{
17096 s//\1/
17097 q
17098 }
17099 s/.*/./; q'`
Craig Silversteinab3d7652009-11-10 16:33:51 +000017100 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Craig Silversteinb9f23482007-03-22 00:15:41 +000017101 # echo "creating $dirpart/$file"
17102 echo '# dummy' > "$dirpart/$file"
17103 done
17104done
17105 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000017106 "libtool":C)
17107
17108 # See if we are running on zsh, and set the options which allow our
17109 # commands through without removal of \ escapes.
17110 if test -n "${ZSH_VERSION+set}" ; then
17111 setopt NO_GLOB_SUBST
17112 fi
17113
17114 cfgfile="${ofile}T"
17115 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17116 $RM "$cfgfile"
17117
17118 cat <<_LT_EOF >> "$cfgfile"
17119#! $SHELL
17120
17121# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17122# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17123# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17124# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17125#
17126# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17127# 2006, 2007, 2008 Free Software Foundation, Inc.
17128# Written by Gordon Matzigkeit, 1996
17129#
17130# This file is part of GNU Libtool.
17131#
17132# GNU Libtool is free software; you can redistribute it and/or
17133# modify it under the terms of the GNU General Public License as
17134# published by the Free Software Foundation; either version 2 of
17135# the License, or (at your option) any later version.
17136#
17137# As a special exception to the GNU General Public License,
17138# if you distribute this file as part of a program or library that
17139# is built using GNU Libtool, you may include this file under the
17140# same distribution terms that you use for the rest of that program.
17141#
17142# GNU Libtool is distributed in the hope that it will be useful,
17143# but WITHOUT ANY WARRANTY; without even the implied warranty of
17144# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17145# GNU General Public License for more details.
17146#
17147# You should have received a copy of the GNU General Public License
17148# along with GNU Libtool; see the file COPYING. If not, a copy
17149# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17150# obtained by writing to the Free Software Foundation, Inc.,
17151# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17152
17153
17154# The names of the tagged configurations supported by this script.
17155available_tags="CXX "
17156
17157# ### BEGIN LIBTOOL CONFIG
17158
17159# Whether or not to optimize for fast installation.
17160fast_install=$enable_fast_install
17161
17162# Which release of libtool.m4 was used?
17163macro_version=$macro_version
17164macro_revision=$macro_revision
17165
17166# Whether or not to build shared libraries.
17167build_libtool_libs=$enable_shared
17168
17169# Whether or not to build static libraries.
17170build_old_libs=$enable_static
17171
17172# What type of objects to build.
17173pic_mode=$pic_mode
17174
17175# The host system.
17176host_alias=$host_alias
17177host=$host
17178host_os=$host_os
17179
17180# The build system.
17181build_alias=$build_alias
17182build=$build
17183build_os=$build_os
17184
17185# A sed program that does not truncate output.
17186SED=$lt_SED
17187
17188# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17189Xsed="\$SED -e 1s/^X//"
17190
17191# A grep program that handles long lines.
17192GREP=$lt_GREP
17193
17194# An ERE matcher.
17195EGREP=$lt_EGREP
17196
17197# A literal string matcher.
17198FGREP=$lt_FGREP
17199
17200# A BSD- or MS-compatible name lister.
17201NM=$lt_NM
17202
17203# Whether we need soft or hard links.
17204LN_S=$lt_LN_S
17205
17206# What is the maximum length of a command?
17207max_cmd_len=$max_cmd_len
17208
17209# Object file suffix (normally "o").
17210objext=$ac_objext
17211
17212# Executable file suffix (normally "").
17213exeext=$exeext
17214
17215# whether the shell understands "unset".
17216lt_unset=$lt_unset
17217
17218# turn spaces into newlines.
17219SP2NL=$lt_lt_SP2NL
17220
17221# turn newlines into spaces.
17222NL2SP=$lt_lt_NL2SP
17223
17224# How to create reloadable object files.
17225reload_flag=$lt_reload_flag
17226reload_cmds=$lt_reload_cmds
17227
17228# An object symbol dumper.
17229OBJDUMP=$lt_OBJDUMP
17230
17231# Method to check whether dependent libraries are shared objects.
17232deplibs_check_method=$lt_deplibs_check_method
17233
17234# Command to use when deplibs_check_method == "file_magic".
17235file_magic_cmd=$lt_file_magic_cmd
17236
17237# The archiver.
17238AR=$lt_AR
17239AR_FLAGS=$lt_AR_FLAGS
17240
17241# A symbol stripping program.
17242STRIP=$lt_STRIP
17243
17244# Commands used to install an old-style archive.
17245RANLIB=$lt_RANLIB
17246old_postinstall_cmds=$lt_old_postinstall_cmds
17247old_postuninstall_cmds=$lt_old_postuninstall_cmds
17248
17249# A C compiler.
17250LTCC=$lt_CC
17251
17252# LTCC compiler flags.
17253LTCFLAGS=$lt_CFLAGS
17254
17255# Take the output of nm and produce a listing of raw symbols and C names.
17256global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17257
17258# Transform the output of nm in a proper C declaration.
17259global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17260
17261# Transform the output of nm in a C name address pair.
17262global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17263
17264# Transform the output of nm in a C name address pair when lib prefix is needed.
17265global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17266
17267# The name of the directory that contains temporary libtool files.
17268objdir=$objdir
17269
17270# Shell to use when invoking shell scripts.
17271SHELL=$lt_SHELL
17272
17273# An echo program that does not interpret backslashes.
17274ECHO=$lt_ECHO
17275
17276# Used to examine libraries when file_magic_cmd begins with "file".
17277MAGIC_CMD=$MAGIC_CMD
17278
17279# Must we lock files when doing compilation?
17280need_locks=$lt_need_locks
17281
17282# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17283DSYMUTIL=$lt_DSYMUTIL
17284
17285# Tool to change global to local symbols on Mac OS X.
17286NMEDIT=$lt_NMEDIT
17287
17288# Tool to manipulate fat objects and archives on Mac OS X.
17289LIPO=$lt_LIPO
17290
17291# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17292OTOOL=$lt_OTOOL
17293
17294# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17295OTOOL64=$lt_OTOOL64
17296
17297# Old archive suffix (normally "a").
17298libext=$libext
17299
17300# Shared library suffix (normally ".so").
17301shrext_cmds=$lt_shrext_cmds
17302
17303# The commands to extract the exported symbol list from a shared archive.
17304extract_expsyms_cmds=$lt_extract_expsyms_cmds
17305
17306# Variables whose values should be saved in libtool wrapper scripts and
17307# restored at link time.
17308variables_saved_for_relink=$lt_variables_saved_for_relink
17309
17310# Do we need the "lib" prefix for modules?
17311need_lib_prefix=$need_lib_prefix
17312
17313# Do we need a version for libraries?
17314need_version=$need_version
17315
17316# Library versioning type.
17317version_type=$version_type
17318
17319# Shared library runtime path variable.
17320runpath_var=$runpath_var
17321
17322# Shared library path variable.
17323shlibpath_var=$shlibpath_var
17324
17325# Is shlibpath searched before the hard-coded library search path?
17326shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17327
17328# Format of library name prefix.
17329libname_spec=$lt_libname_spec
17330
17331# List of archive names. First name is the real one, the rest are links.
17332# The last name is the one that the linker finds with -lNAME
17333library_names_spec=$lt_library_names_spec
17334
17335# The coded name of the library, if different from the real name.
17336soname_spec=$lt_soname_spec
17337
17338# Command to use after installation of a shared archive.
17339postinstall_cmds=$lt_postinstall_cmds
17340
17341# Command to use after uninstallation of a shared archive.
17342postuninstall_cmds=$lt_postuninstall_cmds
17343
17344# Commands used to finish a libtool library installation in a directory.
17345finish_cmds=$lt_finish_cmds
17346
17347# As "finish_cmds", except a single script fragment to be evaled but
17348# not shown.
17349finish_eval=$lt_finish_eval
17350
17351# Whether we should hardcode library paths into libraries.
17352hardcode_into_libs=$hardcode_into_libs
17353
17354# Compile-time system search path for libraries.
17355sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17356
17357# Run-time system search path for libraries.
17358sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17359
17360# Whether dlopen is supported.
17361dlopen_support=$enable_dlopen
17362
17363# Whether dlopen of programs is supported.
17364dlopen_self=$enable_dlopen_self
17365
17366# Whether dlopen of statically linked programs is supported.
17367dlopen_self_static=$enable_dlopen_self_static
17368
17369# Commands to strip libraries.
17370old_striplib=$lt_old_striplib
17371striplib=$lt_striplib
17372
17373
17374# The linker used to build libraries.
17375LD=$lt_LD
17376
17377# Commands used to build an old-style archive.
17378old_archive_cmds=$lt_old_archive_cmds
17379
17380# A language specific compiler.
17381CC=$lt_compiler
17382
17383# Is the compiler the GNU compiler?
17384with_gcc=$GCC
17385
17386# Compiler flag to turn off builtin functions.
17387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17388
17389# How to pass a linker flag through the compiler.
17390wl=$lt_lt_prog_compiler_wl
17391
17392# Additional compiler flags for building library objects.
17393pic_flag=$lt_lt_prog_compiler_pic
17394
17395# Compiler flag to prevent dynamic linking.
17396link_static_flag=$lt_lt_prog_compiler_static
17397
17398# Does compiler simultaneously support -c and -o options?
17399compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17400
17401# Whether or not to add -lc for building shared libraries.
17402build_libtool_need_lc=$archive_cmds_need_lc
17403
17404# Whether or not to disallow shared libs when runtime libs are static.
17405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17406
17407# Compiler flag to allow reflexive dlopens.
17408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17409
17410# Compiler flag to generate shared objects directly from archives.
17411whole_archive_flag_spec=$lt_whole_archive_flag_spec
17412
17413# Whether the compiler copes with passing no objects directly.
17414compiler_needs_object=$lt_compiler_needs_object
17415
17416# Create an old-style archive from a shared archive.
17417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17418
17419# Create a temporary old-style archive to link instead of a shared archive.
17420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17421
17422# Commands used to build a shared archive.
17423archive_cmds=$lt_archive_cmds
17424archive_expsym_cmds=$lt_archive_expsym_cmds
17425
17426# Commands used to build a loadable module if different from building
17427# a shared archive.
17428module_cmds=$lt_module_cmds
17429module_expsym_cmds=$lt_module_expsym_cmds
17430
17431# Whether we are building with GNU ld or not.
17432with_gnu_ld=$lt_with_gnu_ld
17433
17434# Flag that allows shared libraries with undefined symbols to be built.
17435allow_undefined_flag=$lt_allow_undefined_flag
17436
17437# Flag that enforces no undefined symbols.
17438no_undefined_flag=$lt_no_undefined_flag
17439
17440# Flag to hardcode \$libdir into a binary during linking.
17441# This must work even if \$libdir does not exist
17442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17443
17444# If ld is used when linking, flag to hardcode \$libdir into a binary
17445# during linking. This must work even if \$libdir does not exist.
17446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17447
17448# Whether we need a single "-rpath" flag with a separated argument.
17449hardcode_libdir_separator=$lt_hardcode_libdir_separator
17450
17451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17452# DIR into the resulting binary.
17453hardcode_direct=$hardcode_direct
17454
17455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17456# DIR into the resulting binary and the resulting library dependency is
17457# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17458# library is relocated.
17459hardcode_direct_absolute=$hardcode_direct_absolute
17460
17461# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17462# into the resulting binary.
17463hardcode_minus_L=$hardcode_minus_L
17464
17465# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17466# into the resulting binary.
17467hardcode_shlibpath_var=$hardcode_shlibpath_var
17468
17469# Set to "yes" if building a shared library automatically hardcodes DIR
17470# into the library and all subsequent libraries and executables linked
17471# against it.
17472hardcode_automatic=$hardcode_automatic
17473
17474# Set to yes if linker adds runtime paths of dependent libraries
17475# to runtime path list.
17476inherit_rpath=$inherit_rpath
17477
17478# Whether libtool must link a program against all its dependency libraries.
17479link_all_deplibs=$link_all_deplibs
17480
17481# Fix the shell variable \$srcfile for the compiler.
17482fix_srcfile_path=$lt_fix_srcfile_path
17483
17484# Set to "yes" if exported symbols are required.
17485always_export_symbols=$always_export_symbols
17486
17487# The commands to list exported symbols.
17488export_symbols_cmds=$lt_export_symbols_cmds
17489
17490# Symbols that should not be listed in the preloaded symbols.
17491exclude_expsyms=$lt_exclude_expsyms
17492
17493# Symbols that must always be exported.
17494include_expsyms=$lt_include_expsyms
17495
17496# Commands necessary for linking programs (against libraries) with templates.
17497prelink_cmds=$lt_prelink_cmds
17498
17499# Specify filename containing input files.
17500file_list_spec=$lt_file_list_spec
17501
17502# How to hardcode a shared library path into an executable.
17503hardcode_action=$hardcode_action
17504
17505# The directories searched by this compiler when creating a shared library.
17506compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17507
17508# Dependencies to place before and after the objects being linked to
17509# create a shared library.
17510predep_objects=$lt_predep_objects
17511postdep_objects=$lt_postdep_objects
17512predeps=$lt_predeps
17513postdeps=$lt_postdeps
17514
17515# The library search path used internally by the compiler when linking
17516# a shared library.
17517compiler_lib_search_path=$lt_compiler_lib_search_path
17518
17519# ### END LIBTOOL CONFIG
17520
17521_LT_EOF
17522
17523 case $host_os in
17524 aix3*)
17525 cat <<\_LT_EOF >> "$cfgfile"
17526# AIX sometimes has problems with the GCC collect2 program. For some
17527# reason, if we set the COLLECT_NAMES environment variable, the problems
17528# vanish in a puff of smoke.
17529if test "X${COLLECT_NAMES+set}" != Xset; then
17530 COLLECT_NAMES=
17531 export COLLECT_NAMES
17532fi
17533_LT_EOF
17534 ;;
17535 esac
17536
17537
17538ltmain="$ac_aux_dir/ltmain.sh"
17539
17540
17541 # We use sed instead of cat because bash on DJGPP gets confused if
17542 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17543 # text mode, it properly converts lines to CR/LF. This bash problem
17544 # is reportedly fixed, but why not run on old versions too?
17545 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17546 || (rm -f "$cfgfile"; exit 1)
17547
17548 case $xsi_shell in
17549 yes)
17550 cat << \_LT_EOF >> "$cfgfile"
17551
17552# func_dirname file append nondir_replacement
17553# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17554# otherwise set result to NONDIR_REPLACEMENT.
17555func_dirname ()
17556{
17557 case ${1} in
17558 */*) func_dirname_result="${1%/*}${2}" ;;
17559 * ) func_dirname_result="${3}" ;;
17560 esac
17561}
17562
17563# func_basename file
17564func_basename ()
17565{
17566 func_basename_result="${1##*/}"
17567}
17568
17569# func_dirname_and_basename file append nondir_replacement
17570# perform func_basename and func_dirname in a single function
17571# call:
17572# dirname: Compute the dirname of FILE. If nonempty,
17573# add APPEND to the result, otherwise set result
17574# to NONDIR_REPLACEMENT.
17575# value returned in "$func_dirname_result"
17576# basename: Compute filename of FILE.
17577# value retuned in "$func_basename_result"
17578# Implementation must be kept synchronized with func_dirname
17579# and func_basename. For efficiency, we do not delegate to
17580# those functions but instead duplicate the functionality here.
17581func_dirname_and_basename ()
17582{
17583 case ${1} in
17584 */*) func_dirname_result="${1%/*}${2}" ;;
17585 * ) func_dirname_result="${3}" ;;
17586 esac
17587 func_basename_result="${1##*/}"
17588}
17589
17590# func_stripname prefix suffix name
17591# strip PREFIX and SUFFIX off of NAME.
17592# PREFIX and SUFFIX must not contain globbing or regex special
17593# characters, hashes, percent signs, but SUFFIX may contain a leading
17594# dot (in which case that matches only a dot).
17595func_stripname ()
17596{
17597 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17598 # positional parameters, so assign one to ordinary parameter first.
17599 func_stripname_result=${3}
17600 func_stripname_result=${func_stripname_result#"${1}"}
17601 func_stripname_result=${func_stripname_result%"${2}"}
17602}
17603
17604# func_opt_split
17605func_opt_split ()
17606{
17607 func_opt_split_opt=${1%%=*}
17608 func_opt_split_arg=${1#*=}
17609}
17610
17611# func_lo2o object
17612func_lo2o ()
17613{
17614 case ${1} in
17615 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17616 *) func_lo2o_result=${1} ;;
17617 esac
17618}
17619
17620# func_xform libobj-or-source
17621func_xform ()
17622{
17623 func_xform_result=${1%.*}.lo
17624}
17625
17626# func_arith arithmetic-term...
17627func_arith ()
17628{
17629 func_arith_result=$(( $* ))
17630}
17631
17632# func_len string
17633# STRING may not start with a hyphen.
17634func_len ()
17635{
17636 func_len_result=${#1}
17637}
17638
17639_LT_EOF
17640 ;;
17641 *) # Bourne compatible functions.
17642 cat << \_LT_EOF >> "$cfgfile"
17643
17644# func_dirname file append nondir_replacement
17645# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17646# otherwise set result to NONDIR_REPLACEMENT.
17647func_dirname ()
17648{
17649 # Extract subdirectory from the argument.
17650 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17651 if test "X$func_dirname_result" = "X${1}"; then
17652 func_dirname_result="${3}"
17653 else
17654 func_dirname_result="$func_dirname_result${2}"
17655 fi
17656}
17657
17658# func_basename file
17659func_basename ()
17660{
17661 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17662}
17663
17664
17665# func_stripname prefix suffix name
17666# strip PREFIX and SUFFIX off of NAME.
17667# PREFIX and SUFFIX must not contain globbing or regex special
17668# characters, hashes, percent signs, but SUFFIX may contain a leading
17669# dot (in which case that matches only a dot).
17670# func_strip_suffix prefix name
17671func_stripname ()
17672{
17673 case ${2} in
17674 .*) func_stripname_result=`$ECHO "X${3}" \
17675 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17676 *) func_stripname_result=`$ECHO "X${3}" \
17677 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17678 esac
17679}
17680
17681# sed scripts:
17682my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17683my_sed_long_arg='1s/^-[^=]*=//'
17684
17685# func_opt_split
17686func_opt_split ()
17687{
17688 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17689 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17690}
17691
17692# func_lo2o object
17693func_lo2o ()
17694{
17695 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17696}
17697
17698# func_xform libobj-or-source
17699func_xform ()
17700{
17701 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17702}
17703
17704# func_arith arithmetic-term...
17705func_arith ()
17706{
17707 func_arith_result=`expr "$@"`
17708}
17709
17710# func_len string
17711# STRING may not start with a hyphen.
17712func_len ()
17713{
17714 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17715}
17716
17717_LT_EOF
17718esac
17719
17720case $lt_shell_append in
17721 yes)
17722 cat << \_LT_EOF >> "$cfgfile"
17723
17724# func_append var value
17725# Append VALUE to the end of shell variable VAR.
17726func_append ()
17727{
17728 eval "$1+=\$2"
17729}
17730_LT_EOF
17731 ;;
17732 *)
17733 cat << \_LT_EOF >> "$cfgfile"
17734
17735# func_append var value
17736# Append VALUE to the end of shell variable VAR.
17737func_append ()
17738{
17739 eval "$1=\$$1\$2"
17740}
17741
17742_LT_EOF
17743 ;;
17744 esac
17745
17746
17747 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17748 || (rm -f "$cfgfile"; exit 1)
17749
17750 mv -f "$cfgfile" "$ofile" ||
17751 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17752 chmod +x "$ofile"
17753
17754
17755 cat <<_LT_EOF >> "$ofile"
17756
17757# ### BEGIN LIBTOOL TAG CONFIG: CXX
17758
17759# The linker used to build libraries.
17760LD=$lt_LD_CXX
17761
17762# Commands used to build an old-style archive.
17763old_archive_cmds=$lt_old_archive_cmds_CXX
17764
17765# A language specific compiler.
17766CC=$lt_compiler_CXX
17767
17768# Is the compiler the GNU compiler?
17769with_gcc=$GCC_CXX
17770
17771# Compiler flag to turn off builtin functions.
17772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17773
17774# How to pass a linker flag through the compiler.
17775wl=$lt_lt_prog_compiler_wl_CXX
17776
17777# Additional compiler flags for building library objects.
17778pic_flag=$lt_lt_prog_compiler_pic_CXX
17779
17780# Compiler flag to prevent dynamic linking.
17781link_static_flag=$lt_lt_prog_compiler_static_CXX
17782
17783# Does compiler simultaneously support -c and -o options?
17784compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17785
17786# Whether or not to add -lc for building shared libraries.
17787build_libtool_need_lc=$archive_cmds_need_lc_CXX
17788
17789# Whether or not to disallow shared libs when runtime libs are static.
17790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17791
17792# Compiler flag to allow reflexive dlopens.
17793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17794
17795# Compiler flag to generate shared objects directly from archives.
17796whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17797
17798# Whether the compiler copes with passing no objects directly.
17799compiler_needs_object=$lt_compiler_needs_object_CXX
17800
17801# Create an old-style archive from a shared archive.
17802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17803
17804# Create a temporary old-style archive to link instead of a shared archive.
17805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17806
17807# Commands used to build a shared archive.
17808archive_cmds=$lt_archive_cmds_CXX
17809archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17810
17811# Commands used to build a loadable module if different from building
17812# a shared archive.
17813module_cmds=$lt_module_cmds_CXX
17814module_expsym_cmds=$lt_module_expsym_cmds_CXX
17815
17816# Whether we are building with GNU ld or not.
17817with_gnu_ld=$lt_with_gnu_ld_CXX
17818
17819# Flag that allows shared libraries with undefined symbols to be built.
17820allow_undefined_flag=$lt_allow_undefined_flag_CXX
17821
17822# Flag that enforces no undefined symbols.
17823no_undefined_flag=$lt_no_undefined_flag_CXX
17824
17825# Flag to hardcode \$libdir into a binary during linking.
17826# This must work even if \$libdir does not exist
17827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17828
17829# If ld is used when linking, flag to hardcode \$libdir into a binary
17830# during linking. This must work even if \$libdir does not exist.
17831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17832
17833# Whether we need a single "-rpath" flag with a separated argument.
17834hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17835
17836# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17837# DIR into the resulting binary.
17838hardcode_direct=$hardcode_direct_CXX
17839
17840# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17841# DIR into the resulting binary and the resulting library dependency is
17842# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17843# library is relocated.
17844hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17845
17846# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17847# into the resulting binary.
17848hardcode_minus_L=$hardcode_minus_L_CXX
17849
17850# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17851# into the resulting binary.
17852hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17853
17854# Set to "yes" if building a shared library automatically hardcodes DIR
17855# into the library and all subsequent libraries and executables linked
17856# against it.
17857hardcode_automatic=$hardcode_automatic_CXX
17858
17859# Set to yes if linker adds runtime paths of dependent libraries
17860# to runtime path list.
17861inherit_rpath=$inherit_rpath_CXX
17862
17863# Whether libtool must link a program against all its dependency libraries.
17864link_all_deplibs=$link_all_deplibs_CXX
17865
17866# Fix the shell variable \$srcfile for the compiler.
17867fix_srcfile_path=$lt_fix_srcfile_path_CXX
17868
17869# Set to "yes" if exported symbols are required.
17870always_export_symbols=$always_export_symbols_CXX
17871
17872# The commands to list exported symbols.
17873export_symbols_cmds=$lt_export_symbols_cmds_CXX
17874
17875# Symbols that should not be listed in the preloaded symbols.
17876exclude_expsyms=$lt_exclude_expsyms_CXX
17877
17878# Symbols that must always be exported.
17879include_expsyms=$lt_include_expsyms_CXX
17880
17881# Commands necessary for linking programs (against libraries) with templates.
17882prelink_cmds=$lt_prelink_cmds_CXX
17883
17884# Specify filename containing input files.
17885file_list_spec=$lt_file_list_spec_CXX
17886
17887# How to hardcode a shared library path into an executable.
17888hardcode_action=$hardcode_action_CXX
17889
17890# The directories searched by this compiler when creating a shared library.
17891compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17892
17893# Dependencies to place before and after the objects being linked to
17894# create a shared library.
17895predep_objects=$lt_predep_objects_CXX
17896postdep_objects=$lt_postdep_objects_CXX
17897predeps=$lt_predeps_CXX
17898postdeps=$lt_postdeps_CXX
17899
17900# The library search path used internally by the compiler when linking
17901# a shared library.
17902compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17903
17904# ### END LIBTOOL TAG CONFIG: CXX
17905_LT_EOF
17906
17907 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000017908
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017909 esac
17910done # for ac_tag
17911
Craig Silversteinb9f23482007-03-22 00:15:41 +000017912
Craig Silversteinab3d7652009-11-10 16:33:51 +000017913as_fn_exit 0
Craig Silversteinb9f23482007-03-22 00:15:41 +000017914_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017915ac_clean_files=$ac_clean_files_save
17916
Craig Silversteinab3d7652009-11-10 16:33:51 +000017917test $ac_write_fail = 0 ||
17918 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17919
Craig Silversteinb9f23482007-03-22 00:15:41 +000017920
17921# configure is writing to config.log, and then calls config.status.
17922# config.status does its own redirection, appending to config.log.
17923# Unfortunately, on DOS this fails, as config.log is still kept open
17924# by configure, so config.status won't be able to write to it; its
17925# output is simply discarded. So we exec the FD to /dev/null,
17926# effectively closing config.log, so it can be properly (re)opened and
17927# appended to by config.status. When coming back to configure, we
17928# need to make the FD available again.
17929if test "$no_create" != yes; then
17930 ac_cs_success=:
17931 ac_config_status_args=
17932 test "$silent" = yes &&
17933 ac_config_status_args="$ac_config_status_args --quiet"
17934 exec 5>/dev/null
17935 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17936 exec 5>>config.log
17937 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17938 # would make configure fail if this is the last instruction.
Craig Silversteinab3d7652009-11-10 16:33:51 +000017939 $ac_cs_success || as_fn_exit $?
17940fi
17941if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17943$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000017944fi
17945