blob: 8001f82c13ca7786c6f6c2db09c5ff28972e0671 [file] [log] [blame]
Wink Savillefbaaef92010-05-27 16:25:37 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003# Generated by GNU Autoconf 2.68 for Google C++ Testing Framework 1.4.0.
Wink Savillefbaaef92010-05-27 16:25:37 -07004#
5# Report bugs to <googletestframework@googlegroups.com>.
6#
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007#
Wink Savillefbaaef92010-05-27 16:25:37 -07008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
Wink Savillefbaaef92010-05-27 16:25:37 -070013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -070018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070022 emulate sh
23 NULLCMD=:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Wink Savillefbaaef92010-05-27 16:25:37 -070025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070034esac
Wink Savillefbaaef92010-05-27 16:25:37 -070035fi
36
37
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070038as_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
Wink Savillefbaaef92010-05-27 16:25:37 -070075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070078 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 }
Wink Savillefbaaef92010-05-27 16:25:37 -070083fi
84
85
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.)
Wink Savillefbaaef92010-05-27 16:25:37 -070091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070094as_myself=
95case $0 in #((
Wink Savillefbaaef92010-05-27 16:25:37 -070096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
Wink Savillefbaaef92010-05-27 16:25:37 -0700104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
Wink Savillefbaaef92010-05-27 16:25:37 -0700116fi
117
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Wink Savillefbaaef92010-05-27 16:25:37 -0700125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Wink Savillefbaaef92010-05-27 16:25:37 -0700135
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: googletestframework@googlegroups.com about your system,
251$0: including any error possibly output before this
252$0: message. Then install a modern shell, or manually run
253$0: the script under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392} # as_fn_error
393
Wink Savillefbaaef92010-05-27 16:25:37 -0700394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
Wink Savillefbaaef92010-05-27 16:25:37 -0700412
Wink Savillefbaaef92010-05-27 16:25:37 -0700413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700417$as_echo X/"$0" |
Wink Savillefbaaef92010-05-27 16:25:37 -0700418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
Wink Savillefbaaef92010-05-27 16:25:37 -0700438
439
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Wink Savillefbaaef92010-05-27 16:25:37 -0700445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Wink Savillefbaaef92010-05-27 16:25:37 -0700462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
Wink Savillefbaaef92010-05-27 16:25:37 -0700471ECHO_C= ECHO_N= ECHO_T=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700472case `echo -n x` in #(((((
Wink Savillefbaaef92010-05-27 16:25:37 -0700473-n*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700474 case `echo 'xy\c'` in
Wink Savillefbaaef92010-05-27 16:25:37 -0700475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
Wink Savillefbaaef92010-05-27 16:25:37 -0700479 esac;;
480*)
481 ECHO_N='-n';;
482esac
483
Wink Savillefbaaef92010-05-27 16:25:37 -0700484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700489 mkdir conf$$.dir 2>/dev/null
Wink Savillefbaaef92010-05-27 16:25:37 -0700490fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
Wink Savillefbaaef92010-05-27 16:25:37 -0700503 as_ln_s='cp -p'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700504 fi
Wink Savillefbaaef92010-05-27 16:25:37 -0700505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700512 as_mkdir_p='mkdir -p "$as_dir"'
Wink Savillefbaaef92010-05-27 16:25:37 -0700513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700529 test -d "$1/.";
Wink Savillefbaaef92010-05-27 16:25:37 -0700530 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700531 case $1 in #(
532 -*)set "./$1";;
Wink Savillefbaaef92010-05-27 16:25:37 -0700533 esac;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Wink Savillefbaaef92010-05-27 16:25:37 -0700535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
Wink Savillefbaaef92010-05-27 16:25:37 -0700547SHELL=${CONFIG_SHELL-/bin/sh}
548
Wink Savillefbaaef92010-05-27 16:25:37 -0700549
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
Wink Savillefbaaef92010-05-27 16:25:37 -0700552
553# Name of the host.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Wink Savillefbaaef92010-05-27 16:25:37 -0700555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
Wink Savillefbaaef92010-05-27 16:25:37 -0700569
570# Identity of this package.
571PACKAGE_NAME='Google C++ Testing Framework'
572PACKAGE_TARNAME='gtest'
Wink Savilled0332952010-05-29 13:00:38 -0700573PACKAGE_VERSION='1.4.0'
574PACKAGE_STRING='Google C++ Testing Framework 1.4.0'
Wink Savillefbaaef92010-05-27 16:25:37 -0700575PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700576PACKAGE_URL=''
Wink Savillefbaaef92010-05-27 16:25:37 -0700577
578ac_unique_file="./COPYING"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593# include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598# include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
Wink Savillefbaaef92010-05-27 16:25:37 -0700618LIBOBJS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700619PTHREAD_CFLAGS
620PTHREAD_LIBS
621PTHREAD_CC
622acx_pthread_config
623HAVE_PYTHON_FALSE
624HAVE_PYTHON_TRUE
625PYTHON
626CXXCPP
627CPP
628OTOOL64
629OTOOL
630LIPO
631NMEDIT
632DSYMUTIL
633MANIFEST_TOOL
634RANLIB
635ac_ct_AR
636AR
637DLLTOOL
638OBJDUMP
639LN_S
640NM
641ac_ct_DUMPBIN
642DUMPBIN
643LD
644FGREP
645EGREP
646GREP
647SED
648host_os
649host_vendor
650host_cpu
651host
652build_os
653build_vendor
654build_cpu
655build
656LIBTOOL
657am__fastdepCXX_FALSE
658am__fastdepCXX_TRUE
659CXXDEPMODE
660ac_ct_CXX
661CXXFLAGS
662CXX
663am__fastdepCC_FALSE
664am__fastdepCC_TRUE
665CCDEPMODE
666am__nodep
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673OBJEXT
674EXEEXT
675ac_ct_CC
676CPPFLAGS
677LDFLAGS
678CFLAGS
679CC
680am__untar
681am__tar
682AMTAR
683am__leading_dot
684SET_MAKE
685AWK
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689STRIP
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
Wink Savillefbaaef92010-05-27 16:25:37 -0700741ac_subst_files=''
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700742ac_user_opts='
743enable_option_checking
744enable_dependency_tracking
745enable_shared
746enable_static
747with_pic
748enable_fast_install
749with_gnu_ld
750with_sysroot
751enable_libtool_lock
752'
Wink Savillefbaaef92010-05-27 16:25:37 -0700753 ac_precious_vars='build_alias
754host_alias
755target_alias
756CC
757CFLAGS
758LDFLAGS
759LIBS
760CPPFLAGS
761CXX
762CXXFLAGS
763CCC
764CPP
765CXXCPP'
766
767
768# Initialize some variables set by options.
769ac_init_help=
770ac_init_version=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700771ac_unrecognized_opts=
772ac_unrecognized_sep=
Wink Savillefbaaef92010-05-27 16:25:37 -0700773# The variables have the same names as the options, with
774# dashes changed to underlines.
775cache_file=/dev/null
776exec_prefix=NONE
777no_create=
778no_recursion=
779prefix=NONE
780program_prefix=NONE
781program_suffix=NONE
782program_transform_name=s,x,x,
783silent=
784site=
785srcdir=
786verbose=
787x_includes=NONE
788x_libraries=NONE
789
790# Installation directory options.
791# These are left unexpanded so users can "make install exec_prefix=/foo"
792# and all the variables that are supposed to be based on exec_prefix
793# by default will actually change.
794# Use braces instead of parens because sh, perl, etc. also accept them.
795# (The list follows the same order as the GNU Coding Standards.)
796bindir='${exec_prefix}/bin'
797sbindir='${exec_prefix}/sbin'
798libexecdir='${exec_prefix}/libexec'
799datarootdir='${prefix}/share'
800datadir='${datarootdir}'
801sysconfdir='${prefix}/etc'
802sharedstatedir='${prefix}/com'
803localstatedir='${prefix}/var'
804includedir='${prefix}/include'
805oldincludedir='/usr/include'
806docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807infodir='${datarootdir}/info'
808htmldir='${docdir}'
809dvidir='${docdir}'
810pdfdir='${docdir}'
811psdir='${docdir}'
812libdir='${exec_prefix}/lib'
813localedir='${datarootdir}/locale'
814mandir='${datarootdir}/man'
815
816ac_prev=
817ac_dashdash=
818for ac_option
819do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *=) ac_optarg= ;;
830 *) ac_optarg=yes ;;
Wink Savillefbaaef92010-05-27 16:25:37 -0700831 esac
832
833 # Accept the important Cygnus configure options, so we can diagnose typos.
834
835 case $ac_dashdash$ac_option in
836 --)
837 ac_dashdash=yes ;;
838
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
843
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
848
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
855
856 --config-cache | -C)
857 cache_file=config.cache ;;
858
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
863
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
870
871 -disable-* | --disable-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -0700873 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880"enable_$ac_useropt"
881"*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
Wink Savillefbaaef92010-05-27 16:25:37 -0700886
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
891
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
896
897 -enable-* | --enable-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -0700899 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906"enable_$ac_useropt"
907"*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
Wink Savillefbaaef92010-05-27 16:25:37 -0700912
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
921
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
925
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
932
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
937
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
943
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
950
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
955
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
960
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
967
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
972
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
979
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
984
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
988
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
992
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
996
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1005
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1010
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1017
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1024
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1041
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1046
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1051
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001103 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110"with_$ac_useropt"
1111"*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07001116
1117 -without-* | --without-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001119 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07001132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152Try \`$0 --help' for more information"
Wink Savillefbaaef92010-05-27 16:25:37 -07001153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07001162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Wink Savillefbaaef92010-05-27 16:25:37 -07001168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Wink Savillefbaaef92010-05-27 16:25:37 -07001171 ;;
1172
1173 esac
1174done
1175
1176if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001178 as_fn_error $? "missing argument to $ac_option"
Wink Savillefbaaef92010-05-27 16:25:37 -07001179fi
1180
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001181if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187fi
1188
1189# Check all directory arguments for consistency.
Wink Savillefbaaef92010-05-27 16:25:37 -07001190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1194do
1195 eval ac_val=\$$ac_var
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
Wink Savillefbaaef92010-05-27 16:25:37 -07001203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Wink Savillefbaaef92010-05-27 16:25:37 -07001208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001221 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used" >&2
Wink Savillefbaaef92010-05-27 16:25:37 -07001223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226fi
1227
1228ac_tool_prefix=
1229test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231test "$silent" = yes && exec 6>/dev/null
1232
1233
1234ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235ac_ls_di=`ls -di .` &&
1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001237 as_fn_error $? "working directory cannot be determined"
Wink Savillefbaaef92010-05-27 16:25:37 -07001238test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001239 as_fn_error $? "pwd does not report name of working directory"
Wink Savillefbaaef92010-05-27 16:25:37 -07001240
1241
1242# Find the source files, if location was not specified.
1243if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251$as_echo X"$as_myself" |
Wink Savillefbaaef92010-05-27 16:25:37 -07001252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273else
1274 ac_srcdir_defaulted=no
1275fi
1276if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Wink Savillefbaaef92010-05-27 16:25:37 -07001279fi
1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281ac_abs_confdir=`(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Wink Savillefbaaef92010-05-27 16:25:37 -07001283 pwd)`
1284# When building in place, set srcdir=.
1285if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287fi
1288# Remove unnecessary trailing slashes from srcdir.
1289# Double slashes in file names in object file debugging info
1290# mess up M-x gdb in Emacs.
1291case $srcdir in
1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293esac
1294for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299done
1300
1301#
1302# Report the --help message.
1303#
1304if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
Wink Savilled0332952010-05-29 13:00:38 -07001308\`configure' configures Google C++ Testing Framework 1.4.0 to adapt to many kinds of systems.
Wink Savillefbaaef92010-05-27 16:25:37 -07001309
1310Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315Defaults for the options are specified in brackets.
1316
1317Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001322 -q, --quiet, --silent do not print \`checking ...' messages
Wink Savillefbaaef92010-05-27 16:25:37 -07001323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001330 [$ac_default_prefix]
Wink Savillefbaaef92010-05-27 16:25:37 -07001331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001332 [PREFIX]
Wink Savillefbaaef92010-05-27 16:25:37 -07001333
1334By default, \`make install' will install all the files in
1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337for instance \`--prefix=\$HOME'.
1338
1339For better control, use the options below.
1340
1341Fine tuning of the installation directories:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/gtest]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
Wink Savillefbaaef92010-05-27 16:25:37 -07001361_ACEOF
1362
1363 cat <<\_ACEOF
1364
1365Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369
1370System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373_ACEOF
1374fi
1375
1376if test -n "$ac_init_help"; then
1377 case $ac_init_help in
Wink Savilled0332952010-05-29 13:00:38 -07001378 short | recursive ) echo "Configuration of Google C++ Testing Framework 1.4.0:";;
Wink Savillefbaaef92010-05-27 16:25:37 -07001379 esac
1380 cat <<\_ACEOF
1381
1382Optional Features:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001383 --disable-option-checking ignore unrecognized --enable/--with options
Wink Savillefbaaef92010-05-27 16:25:37 -07001384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1388 --enable-shared[=PKGS] build shared libraries [default=yes]
1389 --enable-static[=PKGS] build static libraries [default=yes]
1390 --enable-fast-install[=PKGS]
1391 optimize for fast installation [default=yes]
1392 --disable-libtool-lock avoid locking (might break parallel builds)
1393
1394Optional Packages:
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001397 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Wink Savillefbaaef92010-05-27 16:25:37 -07001398 both]
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001400 --with-sysroot=DIR Search for dependent libraries within DIR
1401 (or the compiler's sysroot if not specified).
Wink Savillefbaaef92010-05-27 16:25:37 -07001402
1403Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001409 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Wink Savillefbaaef92010-05-27 16:25:37 -07001410 you have headers in a nonstandard directory <include dir>
1411 CXX C++ compiler command
1412 CXXFLAGS C++ compiler flags
1413 CPP C preprocessor
1414 CXXCPP C++ preprocessor
1415
1416Use these variables to override the choices made by `configure' or to help
1417it to find libraries and programs with nonstandard names/locations.
1418
1419Report bugs to <googletestframework@googlegroups.com>.
1420_ACEOF
1421ac_status=$?
1422fi
1423
1424if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
Wink Savillefbaaef92010-05-27 16:25:37 -07001430 ac_builddir=.
1431
1432case "$ac_dir" in
1433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001436 # A ".." for each directory in $ac_dir_suffix.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442esac
1443ac_abs_top_builddir=$ac_pwd
1444ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445# for backward compatibility:
1446ac_top_builddir=$ac_top_build_prefix
1447
1448case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461esac
1462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Wink Savillefbaaef92010-05-27 16:25:37 -07001474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1477fi
1478
1479test -n "$ac_init_help" && exit $ac_status
1480if $ac_init_version; then
1481 cat <<\_ACEOF
Wink Savilled0332952010-05-29 13:00:38 -07001482Google C++ Testing Framework configure 1.4.0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001483generated by GNU Autoconf 2.68
Wink Savillefbaaef92010-05-27 16:25:37 -07001484
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001485Copyright (C) 2010 Free Software Foundation, Inc.
Wink Savillefbaaef92010-05-27 16:25:37 -07001486This configure script is free software; the Free Software Foundation
1487gives unlimited permission to copy, distribute and modify it.
1488_ACEOF
1489 exit
1490fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001491
1492## ------------------------ ##
1493## Autoconf initialization. ##
1494## ------------------------ ##
1495
1496# ac_fn_c_try_compile LINENO
1497# --------------------------
1498# Try to compile conftest.$ac_ext, and return whether this succeeded.
1499ac_fn_c_try_compile ()
1500{
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1504case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507esac
1508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509$as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1522 ac_retval=0
1523else
1524 $as_echo "$as_me: failed program was:" >&5
1525sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528fi
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1531
1532} # ac_fn_c_try_compile
1533
1534# ac_fn_cxx_try_compile LINENO
1535# ----------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_cxx_try_compile ()
1538{
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_cxx_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570} # ac_fn_cxx_try_compile
1571
1572# ac_fn_c_try_link LINENO
1573# -----------------------
1574# Try to link conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_link ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext conftest$ac_exeext
1579 if { { ac_try="$ac_link"
1580case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest$ac_exeext && {
1598 test "$cross_compiling" = yes ||
1599 $as_test_x conftest$ac_exeext
1600 }; then :
1601 ac_retval=0
1602else
1603 $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607fi
1608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610 # interfere with the next link command; also delete a directory that is
1611 # left behind by Apple's compiler. We do this before executing the actions.
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_link
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1629else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h. */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637else
1638 eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_cpp
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_run
1727
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h. */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743#define $2 innocuous_$2
1744
1745/* System header to define __stub macros and hopefully few prototypes,
1746 which can conflict with char $2 (); below.
1747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748 <limits.h> exists even on freestanding compilers. */
1749
1750#ifdef __STDC__
1751# include <limits.h>
1752#else
1753# include <assert.h>
1754#endif
1755
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 ();
1765/* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main ()
1774{
1775return $2 ();
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"; then :
1781 eval "$3=yes"
1782else
1783 eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext \
1786 conftest$ac_exeext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_func
1794
1795# ac_fn_cxx_try_cpp LINENO
1796# ------------------------
1797# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_cpp ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_cpp conftest.$ac_ext"
1802case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } > conftest.i && {
1817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826fi
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830} # ac_fn_cxx_try_cpp
1831
1832# ac_fn_cxx_try_link LINENO
1833# -------------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_cxx_try_link ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876} # ac_fn_cxx_try_link
Wink Savillefbaaef92010-05-27 16:25:37 -07001877cat >config.log <<_ACEOF
1878This file contains any messages produced by compilers while
1879running configure, to aid debugging if configure makes a mistake.
1880
Wink Savilled0332952010-05-29 13:00:38 -07001881It was created by Google C++ Testing Framework $as_me 1.4.0, which was
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001882generated by GNU Autoconf 2.68. Invocation command line was
Wink Savillefbaaef92010-05-27 16:25:37 -07001883
1884 $ $0 $@
1885
1886_ACEOF
1887exec 5>>config.log
1888{
1889cat <<_ASUNAME
1890## --------- ##
1891## Platform. ##
1892## --------- ##
1893
1894hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911_ASUNAME
1912
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001918 $as_echo "PATH: $as_dir"
1919 done
Wink Savillefbaaef92010-05-27 16:25:37 -07001920IFS=$as_save_IFS
1921
1922} >&5
1923
1924cat >&5 <<_ACEOF
1925
1926
1927## ----------- ##
1928## Core tests. ##
1929## ----------- ##
1930
1931_ACEOF
1932
1933
1934# Keep a trace of the command line.
1935# Strip out --no-create and --no-recursion so they do not pile up.
1936# Strip out --silent because we don't want to record it for future runs.
1937# Also quote any args containing shell meta-characters.
1938# Make two passes to allow for proper duplicate-argument suppression.
1939ac_configure_args=
1940ac_configure_args0=
1941ac_configure_args1=
1942ac_must_keep_next=false
1943for ac_pass in 1 2
1944do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07001954 esac
1955 case $ac_pass in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07001957 2)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001958 as_fn_append ac_configure_args1 " '$ac_arg'"
Wink Savillefbaaef92010-05-27 16:25:37 -07001959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001974 as_fn_append ac_configure_args " '$ac_arg'"
Wink Savillefbaaef92010-05-27 16:25:37 -07001975 ;;
1976 esac
1977 done
1978done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001979{ ac_configure_args0=; unset ac_configure_args0;}
1980{ ac_configure_args1=; unset ac_configure_args1;}
Wink Savillefbaaef92010-05-27 16:25:37 -07001981
1982# When interrupted or exit'd, cleanup temporary files, and complete
1983# config.log. We remove comments because anyway the quotes in there
1984# would cause problems or look ugly.
1985# WARNING: Use '\'' to represent an apostrophe within the trap.
1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1989 {
1990 echo
1991
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001992 $as_echo "## ---------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07001993## Cache variables. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001994## ---------------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07001995 echo
1996 # The following way of writing the cache mishandles newlines in values,
1997(
1998 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in #(
2001 *${as_nl}*)
2002 case $ac_var in #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002003 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002005 esac
2006 case $ac_var in #(
2007 _ | IFS | as_nl) ;; #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009 *) { eval $ac_var=; unset $ac_var;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002010 esac ;;
2011 esac
2012 done
2013 (set) 2>&1 |
2014 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015 *${as_nl}ac_space=\ *)
2016 sed -n \
2017 "s/'\''/'\''\\\\'\'''\''/g;
2018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019 ;; #(
2020 *)
2021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 ;;
2023 esac |
2024 sort
2025)
2026 echo
2027
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002028 $as_echo "## ----------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002029## Output variables. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002030## ----------------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07002031 echo
2032 for ac_var in $ac_subst_vars
2033 do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002037 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002038 $as_echo "$ac_var='\''$ac_val'\''"
Wink Savillefbaaef92010-05-27 16:25:37 -07002039 done | sort
2040 echo
2041
2042 if test -n "$ac_subst_files"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002043 $as_echo "## ------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002044## File substitutions. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002045## ------------------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07002046 echo
2047 for ac_var in $ac_subst_files
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002052 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002053 $as_echo "$ac_var='\''$ac_val'\''"
Wink Savillefbaaef92010-05-27 16:25:37 -07002054 done | sort
2055 echo
2056 fi
2057
2058 if test -s confdefs.h; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002059 $as_echo "## ----------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002060## confdefs.h. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002061## ----------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07002062 echo
2063 cat confdefs.h
2064 echo
2065 fi
2066 test "$ac_signal" != 0 &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002067 $as_echo "$as_me: caught signal $ac_signal"
2068 $as_echo "$as_me: exit $exit_status"
Wink Savillefbaaef92010-05-27 16:25:37 -07002069 } >&5
2070 rm -f core *.core core.conftest.* &&
2071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072 exit $exit_status
2073' 0
2074for ac_signal in 1 2 13 15; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Wink Savillefbaaef92010-05-27 16:25:37 -07002076done
2077ac_signal=0
2078
2079# confdefs.h avoids OS command line length limits that DEFS can exceed.
2080rm -f -r conftest* confdefs.h
2081
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002082$as_echo "/* confdefs.h */" > confdefs.h
2083
Wink Savillefbaaef92010-05-27 16:25:37 -07002084# Predefined preprocessor variables.
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_NAME "$PACKAGE_NAME"
2088_ACEOF
2089
Wink Savillefbaaef92010-05-27 16:25:37 -07002090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092_ACEOF
2093
Wink Savillefbaaef92010-05-27 16:25:37 -07002094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_VERSION "$PACKAGE_VERSION"
2096_ACEOF
2097
Wink Savillefbaaef92010-05-27 16:25:37 -07002098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_STRING "$PACKAGE_STRING"
2100_ACEOF
2101
Wink Savillefbaaef92010-05-27 16:25:37 -07002102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104_ACEOF
2105
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_URL "$PACKAGE_URL"
2108_ACEOF
2109
Wink Savillefbaaef92010-05-27 16:25:37 -07002110
2111# Let the site file select an alternate cache file if it wants to.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002112# Prefer an explicitly selected file to automatically selected ones.
2113ac_site_file1=NONE
2114ac_site_file2=NONE
Wink Savillefbaaef92010-05-27 16:25:37 -07002115if test -n "$CONFIG_SITE"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002116 # We do not want a PATH search for config.site.
2117 case $CONFIG_SITE in #((
2118 -*) ac_site_file1=./$CONFIG_SITE;;
2119 */*) ac_site_file1=$CONFIG_SITE;;
2120 *) ac_site_file1=./$CONFIG_SITE;;
2121 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07002122elif test "x$prefix" != xNONE; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
Wink Savillefbaaef92010-05-27 16:25:37 -07002125else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
Wink Savillefbaaef92010-05-27 16:25:37 -07002128fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002129for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Wink Savillefbaaef92010-05-27 16:25:37 -07002130do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002131 test "x$ac_site_file" = xNONE && continue
2132 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002135 sed 's/^/| /' "$ac_site_file" >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002136 . "$ac_site_file" \
2137 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139as_fn_error $? "failed to load site script $ac_site_file
2140See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002141 fi
2142done
2143
2144if test -r "$cache_file"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002158 >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
2164for ac_var in $ac_precious_vars; do
2165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
2167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
2169 case $ac_old_set,$ac_new_set in
2170 set,)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002173 ac_cache_corrupted=: ;;
2174 ,set)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002177 ac_cache_corrupted=: ;;
2178 ,);;
2179 *)
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2192 fi
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002197 fi;;
2198 esac
2199 # Pass precious variables to config.status.
2200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002208 esac
2209 fi
2210done
2211if $ac_cache_corrupted; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002217fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002221
2222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229
2230# Provide various options to initialize the Autoconf and configure processes.
2231
2232
2233ac_aux_dir=
2234for ac_dir in build-aux "$srcdir"/build-aux; do
2235 if test -f "$ac_dir/install-sh"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/install-sh -c"
2238 break
2239 elif test -f "$ac_dir/install.sh"; then
2240 ac_aux_dir=$ac_dir
2241 ac_install_sh="$ac_aux_dir/install.sh -c"
2242 break
2243 elif test -f "$ac_dir/shtool"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/shtool install -c"
2246 break
2247 fi
2248done
2249if test -z "$ac_aux_dir"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002250 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002251fi
2252
2253# These three variables are undocumented and unsupported,
2254# and are intended to be withdrawn in a future Autoconf release.
2255# They can cause serious problems if a builder's source tree is in a directory
2256# whose full name contains unusual characters.
2257ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2258ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2259ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2260
2261
2262ac_config_headers="$ac_config_headers build-aux/config.h"
2263
2264ac_config_files="$ac_config_files Makefile"
2265
2266ac_config_files="$ac_config_files scripts/gtest-config"
2267
2268
2269# Initialize Automake with various options. We require at least v1.9, prevent
2270# pedantic complaints about package files, and enable various distribution
2271# targets.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002272am__api_version='1.11'
Wink Savillefbaaef92010-05-27 16:25:37 -07002273
2274# Find a good install program. We prefer a C program (faster),
2275# so one script is as good as another. But avoid the broken or
2276# incompatible versions:
2277# SysV /etc/install, /usr/sbin/install
2278# SunOS /usr/etc/install
2279# IRIX /sbin/install
2280# AIX /bin/install
2281# AmigaOS /C/install, which installs bootblocks on floppy discs
2282# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2283# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2284# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2285# OS/2's system install, which has a completely different semantic
2286# ./install, which can be erroneously created by make from ./install.sh.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002287# Reject install programs that cannot install multiple files.
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2289$as_echo_n "checking for a BSD-compatible install... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002290if test -z "$INSTALL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002291if ${ac_cv_path_install+:} false; then :
2292 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002293else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002299 # Account for people who put trailing slashes in PATH elements.
2300case $as_dir/ in #((
2301 ./ | .// | /[cC]/* | \
Wink Savillefbaaef92010-05-27 16:25:37 -07002302 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002303 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Wink Savillefbaaef92010-05-27 16:25:37 -07002304 /usr/ucb/* ) ;;
2305 *)
2306 # OSF1 and SCO ODT 3.0 have their own names for install.
2307 # Don't use installbsd from OSF since it installs stuff as root
2308 # by default.
2309 for ac_prog in ginstall scoinst install; do
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2312 if test $ac_prog = install &&
2313 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314 # AIX install. It has an incompatible calling convention.
2315 :
2316 elif test $ac_prog = install &&
2317 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2318 # program-specific install script used by HP pwplus--don't use.
2319 :
2320 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002321 rm -rf conftest.one conftest.two conftest.dir
2322 echo one > conftest.one
2323 echo two > conftest.two
2324 mkdir conftest.dir
2325 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2326 test -s conftest.one && test -s conftest.two &&
2327 test -s conftest.dir/conftest.one &&
2328 test -s conftest.dir/conftest.two
2329 then
2330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2331 break 3
2332 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07002333 fi
2334 fi
2335 done
2336 done
2337 ;;
2338esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002339
2340 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002341IFS=$as_save_IFS
2342
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002343rm -rf conftest.one conftest.two conftest.dir
Wink Savillefbaaef92010-05-27 16:25:37 -07002344
2345fi
2346 if test "${ac_cv_path_install+set}" = set; then
2347 INSTALL=$ac_cv_path_install
2348 else
2349 # As a last resort, use the slow shell script. Don't cache a
2350 # value for INSTALL within a source directory, because that will
2351 # break other packages using the cache if that directory is
2352 # removed, or if the value is a relative name.
2353 INSTALL=$ac_install_sh
2354 fi
2355fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2357$as_echo "$INSTALL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002358
2359# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2360# It thinks the first close brace ends the variable substitution.
2361test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2362
2363test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2364
2365test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2366
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2368$as_echo_n "checking whether build environment is sane... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002369# Just in case
2370sleep 1
2371echo timestamp > conftest.file
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002372# Reject unsafe characters in $srcdir or the absolute working directory
2373# name. Accept space and tab only in the latter.
2374am_lf='
2375'
2376case `pwd` in
2377 *[\\\"\#\$\&\'\`$am_lf]*)
2378 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2379esac
2380case $srcdir in
2381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2382 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2383esac
2384
Wink Savillefbaaef92010-05-27 16:25:37 -07002385# Do `set' in a subshell so we don't clobber the current shell's
2386# arguments. Must try -L first in case configure is actually a
2387# symlink; some systems play weird games with the mod time of symlinks
2388# (eg FreeBSD returns the mod time of the symlink's containing
2389# directory).
2390if (
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002391 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Wink Savillefbaaef92010-05-27 16:25:37 -07002392 if test "$*" = "X"; then
2393 # -L didn't work.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002394 set X `ls -t "$srcdir/configure" conftest.file`
Wink Savillefbaaef92010-05-27 16:25:37 -07002395 fi
2396 rm -f conftest.file
2397 if test "$*" != "X $srcdir/configure conftest.file" \
2398 && test "$*" != "X conftest.file $srcdir/configure"; then
2399
2400 # If neither matched, then we have a broken ls. This can happen
2401 # if, for instance, CONFIG_SHELL is bash and it inherits a
2402 # broken ls alias from the environment. This has actually
2403 # happened. Such a system could not be considered "sane".
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002404 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2405alias in your environment" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002406 fi
2407
2408 test "$2" = conftest.file
2409 )
2410then
2411 # Ok.
2412 :
2413else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002414 as_fn_error $? "newly created file is older than distributed files!
2415Check your system clock" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002416fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002419test "$program_prefix" != NONE &&
2420 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421# Use a double $ so make ignores it.
2422test "$program_suffix" != NONE &&
2423 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002424# Double any \ or $.
Wink Savillefbaaef92010-05-27 16:25:37 -07002425# By default was `s,x,x', remove it if useless.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002426ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Wink Savillefbaaef92010-05-27 16:25:37 -07002428
2429# expand $ac_aux_dir to an absolute path
2430am_aux_dir=`cd $ac_aux_dir && pwd`
2431
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002432if test x"${MISSING+set}" != xset; then
2433 case $am_aux_dir in
2434 *\ * | *\ *)
2435 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436 *)
2437 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2438 esac
2439fi
Wink Savillefbaaef92010-05-27 16:25:37 -07002440# Use eval to expand $SHELL
2441if eval "$MISSING --run true"; then
2442 am_missing_run="$MISSING --run "
2443else
2444 am_missing_run=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2446$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002447fi
2448
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002449if test x"${install_sh}" != xset; then
2450 case $am_aux_dir in
2451 *\ * | *\ *)
2452 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453 *)
2454 install_sh="\${SHELL} $am_aux_dir/install-sh"
2455 esac
2456fi
2457
2458# Installed binaries are usually stripped using `strip' when the user
2459# run `make install-strip'. However `strip' might not be the right
2460# tool to use in cross-compilation environments, therefore Automake
2461# will honor the `STRIP' environment variable to overrule this program.
2462if test "$cross_compiling" != no; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465set dummy ${ac_tool_prefix}strip; ac_word=$2
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if ${ac_cv_prog_STRIP+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470else
2471 if test -n "$STRIP"; then
2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485done
2486 done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491STRIP=$ac_cv_prog_STRIP
2492if test -n "$STRIP"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494$as_echo "$STRIP" >&6; }
2495else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497$as_echo "no" >&6; }
2498fi
2499
2500
2501fi
2502if test -z "$ac_cv_prog_STRIP"; then
2503 ac_ct_STRIP=$STRIP
2504 # Extract the first word of "strip", so it can be a program name with args.
2505set dummy strip; ac_word=$2
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510else
2511 if test -n "$ac_ct_STRIP"; then
2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_STRIP="strip"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525done
2526 done
2527IFS=$as_save_IFS
2528
2529fi
2530fi
2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532if test -n "$ac_ct_STRIP"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534$as_echo "$ac_ct_STRIP" >&6; }
2535else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
2538fi
2539
2540 if test "x$ac_ct_STRIP" = x; then
2541 STRIP=":"
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544yes:)
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549 STRIP=$ac_ct_STRIP
2550 fi
2551else
2552 STRIP="$ac_cv_prog_STRIP"
2553fi
2554
2555fi
2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002560if test -z "$MKDIR_P"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002561 if ${ac_cv_path_mkdir+:} false; then :
2562 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002563else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002569 for ac_prog in mkdir gmkdir; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2572 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573 'mkdir (GNU coreutils) '* | \
2574 'mkdir (coreutils) '* | \
2575 'mkdir (fileutils) '4.1*)
2576 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2577 break 3;;
2578 esac
2579 done
2580 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002581 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002582IFS=$as_save_IFS
2583
2584fi
2585
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002586 test -d ./--version && rmdir ./--version
Wink Savillefbaaef92010-05-27 16:25:37 -07002587 if test "${ac_cv_path_mkdir+set}" = set; then
2588 MKDIR_P="$ac_cv_path_mkdir -p"
2589 else
2590 # As a last resort, use the slow shell script. Don't cache a
2591 # value for MKDIR_P within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the value is a relative name.
Wink Savillefbaaef92010-05-27 16:25:37 -07002594 MKDIR_P="$ac_install_sh -d"
2595 fi
2596fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598$as_echo "$MKDIR_P" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002599
2600mkdir_p="$MKDIR_P"
2601case $mkdir_p in
2602 [\\/$]* | ?:[\\/]*) ;;
2603 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2604esac
2605
2606for ac_prog in gawk mawk nawk awk
2607do
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if ${ac_cv_prog_AWK+:} false; then :
2613 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002614else
2615 if test -n "$AWK"; then
2616 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002623 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_AWK="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07002627 break 2
2628 fi
2629done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002630 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002631IFS=$as_save_IFS
2632
2633fi
2634fi
2635AWK=$ac_cv_prog_AWK
2636if test -n "$AWK"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2638$as_echo "$AWK" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002639else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002642fi
2643
2644
2645 test -n "$AWK" && break
2646done
2647
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2649$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2650set x ${MAKE-make}
2651ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2652if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2653 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002654else
2655 cat >conftest.make <<\_ACEOF
2656SHELL = /bin/sh
2657all:
2658 @echo '@@@%%%=$(MAKE)=@@@%%%'
2659_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002660# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Wink Savillefbaaef92010-05-27 16:25:37 -07002661case `${MAKE-make} -f conftest.make 2>/dev/null` in
2662 *@@@%%%=?*=@@@%%%*)
2663 eval ac_cv_prog_make_${ac_make}_set=yes;;
2664 *)
2665 eval ac_cv_prog_make_${ac_make}_set=no;;
2666esac
2667rm -f conftest.make
2668fi
2669if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002672 SET_MAKE=
2673else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002676 SET_MAKE="MAKE=${MAKE-make}"
2677fi
2678
2679rm -rf .tst 2>/dev/null
2680mkdir .tst 2>/dev/null
2681if test -d .tst; then
2682 am__leading_dot=.
2683else
2684 am__leading_dot=_
2685fi
2686rmdir .tst 2>/dev/null
2687
2688if test "`cd $srcdir && pwd`" != "`pwd`"; then
2689 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2690 # is not polluted with repeated "-I."
2691 am__isrc=' -I$(srcdir)'
2692 # test to see if srcdir already configured
2693 if test -f $srcdir/config.status; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002694 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002695 fi
2696fi
2697
2698# test whether we have cygpath
2699if test -z "$CYGPATH_W"; then
2700 if (cygpath --version) >/dev/null 2>/dev/null; then
2701 CYGPATH_W='cygpath -w'
2702 else
2703 CYGPATH_W=echo
2704 fi
2705fi
2706
2707
2708# Define the identity of the package.
2709 PACKAGE='gtest'
Wink Savilled0332952010-05-29 13:00:38 -07002710 VERSION='1.4.0'
Wink Savillefbaaef92010-05-27 16:25:37 -07002711
2712
2713cat >>confdefs.h <<_ACEOF
2714#define PACKAGE "$PACKAGE"
2715_ACEOF
2716
2717
2718cat >>confdefs.h <<_ACEOF
2719#define VERSION "$VERSION"
2720_ACEOF
2721
2722# Some tools Automake needs.
2723
2724ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2725
2726
2727AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2728
2729
2730AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2731
2732
2733AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2734
2735
2736MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2737
Wink Savillefbaaef92010-05-27 16:25:37 -07002738# We need awk for the "check" target. The system "awk" is bad on
2739# some platforms.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002740# Always define AMTAR for backward compatibility. Yes, it's still used
2741# in the wild :-( We should find a proper way to deprecate it ...
2742AMTAR='$${TAR-tar}'
Wink Savillefbaaef92010-05-27 16:25:37 -07002743
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002744am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Wink Savillefbaaef92010-05-27 16:25:37 -07002745
2746
2747
2748
2749
2750
2751# Check for programs used in building Google Test.
2752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2759set dummy ${ac_tool_prefix}gcc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
2762if ${ac_cv_prog_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002764else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002773 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07002777 break 2
2778 fi
2779done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002780 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002781IFS=$as_save_IFS
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002789else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002792fi
2793
2794
2795fi
2796if test -z "$ac_cv_prog_CC"; then
2797 ac_ct_CC=$CC
2798 # Extract the first word of "gcc", so it can be a program name with args.
2799set dummy gcc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if ${ac_cv_prog_ac_ct_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002804else
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002813 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="gcc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07002817 break 2
2818 fi
2819done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002820 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002821IFS=$as_save_IFS
2822
2823fi
2824fi
2825ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826if test -n "$ac_ct_CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2828$as_echo "$ac_ct_CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002829else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002832fi
2833
2834 if test "x$ac_ct_CC" = x; then
2835 CC=""
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002841ac_tool_warned=yes ;;
2842esac
2843 CC=$ac_ct_CC
2844 fi
2845else
2846 CC="$ac_cv_prog_CC"
2847fi
2848
2849if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2852set dummy ${ac_tool_prefix}cc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002857else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002866 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_CC="${ac_tool_prefix}cc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07002870 break 2
2871 fi
2872done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002873 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002874IFS=$as_save_IFS
2875
2876fi
2877fi
2878CC=$ac_cv_prog_CC
2879if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002882else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002885fi
2886
2887
2888 fi
2889fi
2890if test -z "$CC"; then
2891 # Extract the first word of "cc", so it can be a program name with args.
2892set dummy cc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901 ac_prog_rejected=no
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002907 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910 ac_prog_rejected=yes
2911 continue
2912 fi
2913 ac_cv_prog_CC="cc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07002915 break 2
2916 fi
2917done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002918 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002919IFS=$as_save_IFS
2920
2921if test $ac_prog_rejected = yes; then
2922 # We found a bogon in the path, so make sure we never use it.
2923 set dummy $ac_cv_prog_CC
2924 shift
2925 if test $# != 0; then
2926 # We chose a different compiler from the bogus one.
2927 # However, it has the same basename, so the bogon will be chosen
2928 # first if we set CC to just the basename; use the full file name.
2929 shift
2930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2931 fi
2932fi
2933fi
2934fi
2935CC=$ac_cv_prog_CC
2936if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002939else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002942fi
2943
2944
2945fi
2946if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 for ac_prog in cl.exe
2949 do
2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953$as_echo_n "checking for $ac_word... " >&6; }
2954if ${ac_cv_prog_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002956else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959else
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH
2962do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002965 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07002969 break 2
2970 fi
2971done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002972 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002973IFS=$as_save_IFS
2974
2975fi
2976fi
2977CC=$ac_cv_prog_CC
2978if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002981else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002984fi
2985
2986
2987 test -n "$CC" && break
2988 done
2989fi
2990if test -z "$CC"; then
2991 ac_ct_CC=$CC
2992 for ac_prog in cl.exe
2993do
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997$as_echo_n "checking for $ac_word... " >&6; }
2998if ${ac_cv_prog_ac_ct_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003000else
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003009 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07003010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003013 break 2
3014 fi
3015done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003016 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003017IFS=$as_save_IFS
3018
3019fi
3020fi
3021ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022if test -n "$ac_ct_CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3024$as_echo "$ac_ct_CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003025else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003028fi
3029
3030
3031 test -n "$ac_ct_CC" && break
3032done
3033
3034 if test "x$ac_ct_CC" = x; then
3035 CC=""
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07003041ac_tool_warned=yes ;;
3042esac
3043 CC=$ac_ct_CC
3044 fi
3045fi
3046
3047fi
3048
3049
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003050test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052as_fn_error $? "no acceptable C compiler found in \$PATH
3053See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003054
3055# Provide some information about the compiler.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003056$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3057set X $ac_compile
3058ac_compiler=$2
3059for ac_option in --version -v -V -qversion; do
3060 { { ac_try="$ac_compiler $ac_option >&5"
Wink Savillefbaaef92010-05-27 16:25:37 -07003061case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066$as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Wink Savillefbaaef92010-05-27 16:25:37 -07003068 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003069 if test -s conftest.err; then
3070 sed '10a\
3071... rest of stderr output deleted ...
3072 10q' conftest.err >conftest.er1
3073 cat conftest.er1 >&5
3074 fi
3075 rm -f conftest.er1 conftest.err
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }
3078done
Wink Savillefbaaef92010-05-27 16:25:37 -07003079
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003081/* end confdefs.h. */
3082
3083int
3084main ()
3085{
3086
3087 ;
3088 return 0;
3089}
3090_ACEOF
3091ac_clean_files_save=$ac_clean_files
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003092ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Wink Savillefbaaef92010-05-27 16:25:37 -07003093# Try to create an executable without -o first, disregard a.out.
3094# It will help us diagnose broken compilers, and finding out an intuition
3095# of exeext.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3097$as_echo_n "checking whether the C compiler works... " >&6; }
3098ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099
3100# The possible output files:
3101ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3102
Wink Savillefbaaef92010-05-27 16:25:37 -07003103ac_rmfiles=
3104for ac_file in $ac_files
3105do
3106 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003108 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3109 esac
3110done
3111rm -f $ac_rmfiles
3112
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003113if { { ac_try="$ac_link_default"
Wink Savillefbaaef92010-05-27 16:25:37 -07003114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119$as_echo "$ac_try_echo"; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003120 (eval "$ac_link_default") 2>&5
3121 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003124 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3125# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3126# in a Makefile. We should not override ac_cv_exeext if it was cached,
3127# so that the user can short-circuit this test for compilers unknown to
3128# Autoconf.
3129for ac_file in $ac_files ''
3130do
3131 test -f "$ac_file" || continue
3132 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Wink Savillefbaaef92010-05-27 16:25:37 -07003134 ;;
3135 [ab].out )
3136 # We found the default executable, but exeext='' is most
3137 # certainly right.
3138 break;;
3139 *.* )
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Wink Savillefbaaef92010-05-27 16:25:37 -07003141 then :; else
3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 fi
3144 # We set ac_cv_exeext here because the later test for it is not
3145 # safe: cross compilers may not add the suffix if given an `-o'
3146 # argument, so we may need to know it at that point already.
3147 # Even if this section looks crufty: it has the advantage of
3148 # actually working.
3149 break;;
3150 * )
3151 break;;
3152 esac
3153done
3154test "$ac_cv_exeext" = no && ac_cv_exeext=
3155
3156else
3157 ac_file=''
3158fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003159if test -z "$ac_file"; then :
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162$as_echo "$as_me: failed program was:" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003163sed 's/^/| /' conftest.$ac_ext >&5
3164
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003165{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167as_fn_error 77 "C compiler cannot create executables
3168See \`config.log' for more details" "$LINENO" 5; }
3169else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003172fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174$as_echo_n "checking for C compiler default output file name... " >&6; }
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176$as_echo "$ac_file" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003177ac_exeext=$ac_cv_exeext
3178
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003179rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Wink Savillefbaaef92010-05-27 16:25:37 -07003180ac_clean_files=$ac_clean_files_save
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3182$as_echo_n "checking for suffix of executables... " >&6; }
3183if { { ac_try="$ac_link"
Wink Savillefbaaef92010-05-27 16:25:37 -07003184case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003190 (eval "$ac_link") 2>&5
3191 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3196# work properly (i.e., refer to `conftest.exe'), while it won't with
3197# `rm'.
3198for ac_file in conftest.exe conftest conftest.*; do
3199 test -f "$ac_file" || continue
3200 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 break;;
3204 * ) break;;
3205 esac
3206done
3207else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3211See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003212fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003213rm -f conftest conftest$ac_cv_exeext
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3215$as_echo "$ac_cv_exeext" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003216
3217rm -f conftest.$ac_ext
3218EXEEXT=$ac_cv_exeext
3219ac_exeext=$EXEEXT
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h. */
3222#include <stdio.h>
3223int
3224main ()
3225{
3226FILE *f = fopen ("conftest.out", "w");
3227 return ferror (f) || fclose (f) != 0;
3228
3229 ;
3230 return 0;
3231}
Wink Savillefbaaef92010-05-27 16:25:37 -07003232_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003233ac_clean_files="$ac_clean_files conftest.out"
3234# Check that the compiler produces executables we can run. If not, either
3235# the compiler is broken, or we cross compile.
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3237$as_echo_n "checking whether we are cross compiling... " >&6; }
3238if test "$cross_compiling" != yes; then
3239 { { ac_try="$ac_link"
3240case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 if { ac_try='./conftest$ac_cv_exeext'
3251 { { case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256$as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_try") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; }; then
3261 cross_compiling=no
3262 else
3263 if test "$cross_compiling" = maybe; then
3264 cross_compiling=yes
3265 else
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error $? "cannot run C compiled programs.
3269If you meant to cross compile, use \`--host'.
3270See \`config.log' for more details" "$LINENO" 5; }
3271 fi
3272 fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3275$as_echo "$cross_compiling" >&6; }
3276
3277rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3278ac_clean_files=$ac_clean_files_save
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3280$as_echo_n "checking for suffix of object files... " >&6; }
3281if ${ac_cv_objext+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003285/* end confdefs.h. */
3286
3287int
3288main ()
3289{
3290
3291 ;
3292 return 0;
3293}
3294_ACEOF
3295rm -f conftest.o conftest.obj
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003296if { { ac_try="$ac_compile"
Wink Savillefbaaef92010-05-27 16:25:37 -07003297case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003303 (eval "$ac_compile") 2>&5
3304 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003307 for ac_file in conftest.o conftest.obj conftest.*; do
3308 test -f "$ac_file" || continue;
3309 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3312 break;;
3313 esac
3314done
3315else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003316 $as_echo "$as_me: failed program was:" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003317sed 's/^/| /' conftest.$ac_ext >&5
3318
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error $? "cannot compute suffix of object files: cannot compile
3322See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003323fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003324rm -f conftest.$ac_cv_objext conftest.$ac_ext
3325fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3327$as_echo "$ac_cv_objext" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003328OBJEXT=$ac_cv_objext
3329ac_objext=$OBJEXT
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332if ${ac_cv_c_compiler_gnu+:} false; then :
3333 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003334else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341#ifndef __GNUC__
3342 choke me
3343#endif
3344
3345 ;
3346 return 0;
3347}
3348_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003349if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003350 ac_compiler_gnu=yes
3351else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003352 ac_compiler_gnu=no
Wink Savillefbaaef92010-05-27 16:25:37 -07003353fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356
3357fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3360if test $ac_compiler_gnu = yes; then
3361 GCC=yes
3362else
3363 GCC=
3364fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003365ac_test_CFLAGS=${CFLAGS+set}
3366ac_save_CFLAGS=$CFLAGS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3368$as_echo_n "checking whether $CC accepts -g... " >&6; }
3369if ${ac_cv_prog_cc_g+:} false; then :
3370 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003371else
3372 ac_save_c_werror_flag=$ac_c_werror_flag
3373 ac_c_werror_flag=yes
3374 ac_cv_prog_cc_g=no
3375 CFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003377/* end confdefs.h. */
3378
3379int
3380main ()
3381{
3382
3383 ;
3384 return 0;
3385}
3386_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003387if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003388 ac_cv_prog_cc_g=yes
3389else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003390 CFLAGS=""
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003392/* end confdefs.h. */
3393
3394int
3395main ()
3396{
3397
3398 ;
3399 return 0;
3400}
3401_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003402if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003403
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003404else
3405 ac_c_werror_flag=$ac_save_c_werror_flag
Wink Savillefbaaef92010-05-27 16:25:37 -07003406 CFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003408/* end confdefs.h. */
3409
3410int
3411main ()
3412{
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003418if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003419 ac_cv_prog_cc_g=yes
Wink Savillefbaaef92010-05-27 16:25:37 -07003420fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3427fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3429$as_echo "$ac_cv_prog_cc_g" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003430if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3434 CFLAGS="-g -O2"
3435 else
3436 CFLAGS="-g"
3437 fi
3438else
3439 if test "$GCC" = yes; then
3440 CFLAGS="-O2"
3441 else
3442 CFLAGS=
3443 fi
3444fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447if ${ac_cv_prog_cc_c89+:} false; then :
3448 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003449else
3450 ac_cv_prog_cc_c89=no
3451ac_save_CC=$CC
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003453/* end confdefs.h. */
3454#include <stdarg.h>
3455#include <stdio.h>
3456#include <sys/types.h>
3457#include <sys/stat.h>
3458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459struct buf { int x; };
3460FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461static char *e (p, i)
3462 char **p;
3463 int i;
3464{
3465 return p[i];
3466}
3467static char *f (char * (*g) (char **, int), char **p, ...)
3468{
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3475}
3476
3477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485
3486/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3488#define FOO(x) 'x'
3489int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490
3491int test (int i, double x);
3492struct s1 {int (*f) (int a);};
3493struct s2 {int (*f) (double a);};
3494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495int argc;
3496char **argv;
3497int
3498main ()
3499{
3500return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507do
3508 CC="$ac_save_CC $ac_arg"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003509 if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003510 ac_cv_prog_cc_c89=$ac_arg
Wink Savillefbaaef92010-05-27 16:25:37 -07003511fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003512rm -f core conftest.err conftest.$ac_objext
3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514done
3515rm -f conftest.$ac_ext
3516CC=$ac_save_CC
3517
3518fi
3519# AC_CACHE_VAL
3520case "x$ac_cv_prog_cc_c89" in
3521 x)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3523$as_echo "none needed" >&6; } ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003524 xno)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3526$as_echo "unsupported" >&6; } ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003527 *)
3528 CC="$CC $ac_cv_prog_cc_c89"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3530$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003531esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003532if test "x$ac_cv_prog_cc_c89" != xno; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003533
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003534fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003535
3536ac_ext=c
3537ac_cpp='$CPP $CPPFLAGS'
3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541DEPDIR="${am__leading_dot}deps"
3542
3543ac_config_commands="$ac_config_commands depfiles"
3544
3545
3546am_make=${MAKE-make}
3547cat > confinc << 'END'
3548am__doit:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003549 @echo this is the am__doit target
Wink Savillefbaaef92010-05-27 16:25:37 -07003550.PHONY: am__doit
3551END
3552# If we don't find an include directive, just comment out the code.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3554$as_echo_n "checking for style of include used by $am_make... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003555am__include="#"
3556am__quote=
3557_am_result=none
3558# First try GNU make style include.
3559echo "include confinc" > confmf
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003560# Ignore all kinds of additional output from `make'.
3561case `$am_make -s -f confmf 2> /dev/null` in #(
3562*the\ am__doit\ target*)
3563 am__include=include
3564 am__quote=
3565 _am_result=GNU
3566 ;;
3567esac
Wink Savillefbaaef92010-05-27 16:25:37 -07003568# Now try BSD make style include.
3569if test "$am__include" = "#"; then
3570 echo '.include "confinc"' > confmf
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003571 case `$am_make -s -f confmf 2> /dev/null` in #(
3572 *the\ am__doit\ target*)
3573 am__include=.include
3574 am__quote="\""
3575 _am_result=BSD
3576 ;;
3577 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07003578fi
3579
3580
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3582$as_echo "$_am_result" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003583rm -f confinc confmf
3584
3585# Check whether --enable-dependency-tracking was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003586if test "${enable_dependency_tracking+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003587 enableval=$enable_dependency_tracking;
3588fi
3589
3590if test "x$enable_dependency_tracking" != xno; then
3591 am_depcomp="$ac_aux_dir/depcomp"
3592 AMDEPBACKSLASH='\'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003593 am__nodep='_no'
Wink Savillefbaaef92010-05-27 16:25:37 -07003594fi
3595 if test "x$enable_dependency_tracking" != xno; then
3596 AMDEP_TRUE=
3597 AMDEP_FALSE='#'
3598else
3599 AMDEP_TRUE='#'
3600 AMDEP_FALSE=
3601fi
3602
3603
3604
3605depcc="$CC" am_compiler_list=
3606
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3608$as_echo_n "checking dependency style of $depcc... " >&6; }
3609if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3610 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003611else
3612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613 # We make a subdir and do the tests there. Otherwise we can end up
3614 # making bogus files that we don't know about and never remove. For
3615 # instance it was reported that on HP-UX the gcc test will end up
3616 # making a dummy file named `D' -- because `-MD' means `put the output
3617 # in D'.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003618 rm -rf conftest.dir
Wink Savillefbaaef92010-05-27 16:25:37 -07003619 mkdir conftest.dir
3620 # Copy depcomp to subdir because otherwise we won't find it if we're
3621 # using a relative directory.
3622 cp "$am_depcomp" conftest.dir
3623 cd conftest.dir
3624 # We will build objects and dependencies in a subdirectory because
3625 # it helps to detect inapplicable dependency modes. For instance
3626 # both Tru64's cc and ICC support -MD to output dependencies as a
3627 # side effect of compilation, but ICC will put the dependencies in
3628 # the current directory while Tru64 will put them in the object
3629 # directory.
3630 mkdir sub
3631
3632 am_cv_CC_dependencies_compiler_type=none
3633 if test "$am_compiler_list" = ""; then
3634 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3635 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003636 am__universal=false
3637 case " $depcc " in #(
3638 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3639 esac
3640
Wink Savillefbaaef92010-05-27 16:25:37 -07003641 for depmode in $am_compiler_list; do
3642 # Setup a source with many dependencies, because some compilers
3643 # like to wrap large dependency lists on column 80 (with \), and
3644 # we should not choose a depcomp mode which is confused by this.
3645 #
3646 # We need to recreate these files for each test, as the compiler may
3647 # overwrite some of them when testing with obscure command lines.
3648 # This happens at least with the AIX C compiler.
3649 : > sub/conftest.c
3650 for i in 1 2 3 4 5 6; do
3651 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3652 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3653 # Solaris 8's {/usr,}/bin/sh.
3654 touch sub/conftst$i.h
3655 done
3656 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3657
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003658 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3659 # mode. It turns out that the SunPro C++ compiler does not properly
3660 # handle `-M -o', and we need to detect this. Also, some Intel
3661 # versions had trouble with output in subdirs
3662 am__obj=sub/conftest.${OBJEXT-o}
3663 am__minus_obj="-o $am__obj"
Wink Savillefbaaef92010-05-27 16:25:37 -07003664 case $depmode in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003665 gcc)
3666 # This depmode causes a compiler race in universal mode.
3667 test "$am__universal" = false || continue
3668 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003669 nosideeffect)
3670 # after this tag, mechanisms are not by side-effect, so they'll
3671 # only be used when explicitly requested
3672 if test "x$enable_dependency_tracking" = xyes; then
3673 continue
3674 else
3675 break
3676 fi
3677 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003678 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3679 # This compiler won't grok `-c -o', but also, the minuso test has
3680 # not run yet. These depmodes are late enough in the game, and
3681 # so weak that their functioning should not be impacted.
3682 am__obj=conftest.${OBJEXT-o}
3683 am__minus_obj=
3684 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003685 none) break ;;
3686 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07003687 if depmode=$depmode \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003688 source=sub/conftest.c object=$am__obj \
Wink Savillefbaaef92010-05-27 16:25:37 -07003689 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003690 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Wink Savillefbaaef92010-05-27 16:25:37 -07003691 >/dev/null 2>conftest.err &&
3692 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3693 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003694 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Wink Savillefbaaef92010-05-27 16:25:37 -07003695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3696 # icc doesn't choke on unknown options, it will just issue warnings
3697 # or remarks (even with -Werror). So we grep stderr for any message
3698 # that says an option was ignored or not supported.
3699 # When given -MP, icc 7.0 and 7.1 complain thusly:
3700 # icc: Command line warning: ignoring option '-M'; no argument required
3701 # The diagnosis changed in icc 8.0:
3702 # icc: Command line remark: option '-MP' not supported
3703 if (grep 'ignoring option' conftest.err ||
3704 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3705 am_cv_CC_dependencies_compiler_type=$depmode
3706 break
3707 fi
3708 fi
3709 done
3710
3711 cd ..
3712 rm -rf conftest.dir
3713else
3714 am_cv_CC_dependencies_compiler_type=none
3715fi
3716
3717fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3719$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003720CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3721
3722 if
3723 test "x$enable_dependency_tracking" != xno \
3724 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3725 am__fastdepCC_TRUE=
3726 am__fastdepCC_FALSE='#'
3727else
3728 am__fastdepCC_TRUE='#'
3729 am__fastdepCC_FALSE=
3730fi
3731
3732
3733ac_ext=cpp
3734ac_cpp='$CXXCPP $CPPFLAGS'
3735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3738if test -z "$CXX"; then
3739 if test -n "$CCC"; then
3740 CXX=$CCC
3741 else
3742 if test -n "$ac_tool_prefix"; then
3743 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3744 do
3745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748$as_echo_n "checking for $ac_word... " >&6; }
3749if ${ac_cv_prog_CXX+:} false; then :
3750 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003751else
3752 if test -n "$CXX"; then
3753 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3754else
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003760 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07003761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003764 break 2
3765 fi
3766done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003767 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003768IFS=$as_save_IFS
3769
3770fi
3771fi
3772CXX=$ac_cv_prog_CXX
3773if test -n "$CXX"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3775$as_echo "$CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003776else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003779fi
3780
3781
3782 test -n "$CXX" && break
3783 done
3784fi
3785if test -z "$CXX"; then
3786 ac_ct_CXX=$CXX
3787 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3788do
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
3793if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3794 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003795else
3796 if test -n "$ac_ct_CXX"; then
3797 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003804 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07003805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_CXX="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003808 break 2
3809 fi
3810done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003811 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003812IFS=$as_save_IFS
3813
3814fi
3815fi
3816ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3817if test -n "$ac_ct_CXX"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3819$as_echo "$ac_ct_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003820else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003823fi
3824
3825
3826 test -n "$ac_ct_CXX" && break
3827done
3828
3829 if test "x$ac_ct_CXX" = x; then
3830 CXX="g++"
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07003836ac_tool_warned=yes ;;
3837esac
3838 CXX=$ac_ct_CXX
3839 fi
3840fi
3841
3842 fi
3843fi
3844# Provide some information about the compiler.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003845$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3846set X $ac_compile
3847ac_compiler=$2
3848for ac_option in --version -v -V -qversion; do
3849 { { ac_try="$ac_compiler $ac_option >&5"
Wink Savillefbaaef92010-05-27 16:25:37 -07003850case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855$as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Wink Savillefbaaef92010-05-27 16:25:37 -07003857 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003858 if test -s conftest.err; then
3859 sed '10a\
3860... rest of stderr output deleted ...
3861 10q' conftest.err >conftest.er1
3862 cat conftest.er1 >&5
3863 fi
3864 rm -f conftest.er1 conftest.err
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867done
Wink Savillefbaaef92010-05-27 16:25:37 -07003868
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3870$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3871if ${ac_cv_cxx_compiler_gnu+:} false; then :
3872 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003873else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003875/* end confdefs.h. */
3876
3877int
3878main ()
3879{
3880#ifndef __GNUC__
3881 choke me
3882#endif
3883
3884 ;
3885 return 0;
3886}
3887_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003888if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003889 ac_compiler_gnu=yes
3890else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003891 ac_compiler_gnu=no
Wink Savillefbaaef92010-05-27 16:25:37 -07003892fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3895
3896fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3898$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3899if test $ac_compiler_gnu = yes; then
3900 GXX=yes
3901else
3902 GXX=
3903fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003904ac_test_CXXFLAGS=${CXXFLAGS+set}
3905ac_save_CXXFLAGS=$CXXFLAGS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3907$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3908if ${ac_cv_prog_cxx_g+:} false; then :
3909 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003910else
3911 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3912 ac_cxx_werror_flag=yes
3913 ac_cv_prog_cxx_g=no
3914 CXXFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003916/* end confdefs.h. */
3917
3918int
3919main ()
3920{
3921
3922 ;
3923 return 0;
3924}
3925_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003926if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003927 ac_cv_prog_cxx_g=yes
3928else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003929 CXXFLAGS=""
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003931/* end confdefs.h. */
3932
3933int
3934main ()
3935{
3936
3937 ;
3938 return 0;
3939}
3940_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003941if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003942
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003943else
3944 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Wink Savillefbaaef92010-05-27 16:25:37 -07003945 CXXFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003947/* end confdefs.h. */
3948
3949int
3950main ()
3951{
3952
3953 ;
3954 return 0;
3955}
3956_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003957if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003958 ac_cv_prog_cxx_g=yes
Wink Savillefbaaef92010-05-27 16:25:37 -07003959fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3966fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3968$as_echo "$ac_cv_prog_cxx_g" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003969if test "$ac_test_CXXFLAGS" = set; then
3970 CXXFLAGS=$ac_save_CXXFLAGS
3971elif test $ac_cv_prog_cxx_g = yes; then
3972 if test "$GXX" = yes; then
3973 CXXFLAGS="-g -O2"
3974 else
3975 CXXFLAGS="-g"
3976 fi
3977else
3978 if test "$GXX" = yes; then
3979 CXXFLAGS="-O2"
3980 else
3981 CXXFLAGS=
3982 fi
3983fi
3984ac_ext=c
3985ac_cpp='$CPP $CPPFLAGS'
3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989
3990depcc="$CXX" am_compiler_list=
3991
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3993$as_echo_n "checking dependency style of $depcc... " >&6; }
3994if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3995 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003996else
3997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3998 # We make a subdir and do the tests there. Otherwise we can end up
3999 # making bogus files that we don't know about and never remove. For
4000 # instance it was reported that on HP-UX the gcc test will end up
4001 # making a dummy file named `D' -- because `-MD' means `put the output
4002 # in D'.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004003 rm -rf conftest.dir
Wink Savillefbaaef92010-05-27 16:25:37 -07004004 mkdir conftest.dir
4005 # Copy depcomp to subdir because otherwise we won't find it if we're
4006 # using a relative directory.
4007 cp "$am_depcomp" conftest.dir
4008 cd conftest.dir
4009 # We will build objects and dependencies in a subdirectory because
4010 # it helps to detect inapplicable dependency modes. For instance
4011 # both Tru64's cc and ICC support -MD to output dependencies as a
4012 # side effect of compilation, but ICC will put the dependencies in
4013 # the current directory while Tru64 will put them in the object
4014 # directory.
4015 mkdir sub
4016
4017 am_cv_CXX_dependencies_compiler_type=none
4018 if test "$am_compiler_list" = ""; then
4019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4020 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004021 am__universal=false
4022 case " $depcc " in #(
4023 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4024 esac
4025
Wink Savillefbaaef92010-05-27 16:25:37 -07004026 for depmode in $am_compiler_list; do
4027 # Setup a source with many dependencies, because some compilers
4028 # like to wrap large dependency lists on column 80 (with \), and
4029 # we should not choose a depcomp mode which is confused by this.
4030 #
4031 # We need to recreate these files for each test, as the compiler may
4032 # overwrite some of them when testing with obscure command lines.
4033 # This happens at least with the AIX C compiler.
4034 : > sub/conftest.c
4035 for i in 1 2 3 4 5 6; do
4036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4038 # Solaris 8's {/usr,}/bin/sh.
4039 touch sub/conftst$i.h
4040 done
4041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4042
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004043 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4044 # mode. It turns out that the SunPro C++ compiler does not properly
4045 # handle `-M -o', and we need to detect this. Also, some Intel
4046 # versions had trouble with output in subdirs
4047 am__obj=sub/conftest.${OBJEXT-o}
4048 am__minus_obj="-o $am__obj"
Wink Savillefbaaef92010-05-27 16:25:37 -07004049 case $depmode in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004050 gcc)
4051 # This depmode causes a compiler race in universal mode.
4052 test "$am__universal" = false || continue
4053 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004054 nosideeffect)
4055 # after this tag, mechanisms are not by side-effect, so they'll
4056 # only be used when explicitly requested
4057 if test "x$enable_dependency_tracking" = xyes; then
4058 continue
4059 else
4060 break
4061 fi
4062 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004063 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4064 # This compiler won't grok `-c -o', but also, the minuso test has
4065 # not run yet. These depmodes are late enough in the game, and
4066 # so weak that their functioning should not be impacted.
4067 am__obj=conftest.${OBJEXT-o}
4068 am__minus_obj=
4069 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004070 none) break ;;
4071 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07004072 if depmode=$depmode \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004073 source=sub/conftest.c object=$am__obj \
Wink Savillefbaaef92010-05-27 16:25:37 -07004074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004075 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Wink Savillefbaaef92010-05-27 16:25:37 -07004076 >/dev/null 2>conftest.err &&
4077 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004079 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Wink Savillefbaaef92010-05-27 16:25:37 -07004080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4081 # icc doesn't choke on unknown options, it will just issue warnings
4082 # or remarks (even with -Werror). So we grep stderr for any message
4083 # that says an option was ignored or not supported.
4084 # When given -MP, icc 7.0 and 7.1 complain thusly:
4085 # icc: Command line warning: ignoring option '-M'; no argument required
4086 # The diagnosis changed in icc 8.0:
4087 # icc: Command line remark: option '-MP' not supported
4088 if (grep 'ignoring option' conftest.err ||
4089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4090 am_cv_CXX_dependencies_compiler_type=$depmode
4091 break
4092 fi
4093 fi
4094 done
4095
4096 cd ..
4097 rm -rf conftest.dir
4098else
4099 am_cv_CXX_dependencies_compiler_type=none
4100fi
4101
4102fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4104$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004105CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4106
4107 if
4108 test "x$enable_dependency_tracking" != xno \
4109 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4110 am__fastdepCXX_TRUE=
4111 am__fastdepCXX_FALSE='#'
4112else
4113 am__fastdepCXX_TRUE='#'
4114 am__fastdepCXX_FALSE=
4115fi
4116
4117
4118ac_ext=cpp
4119ac_cpp='$CXXCPP $CPPFLAGS'
4120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4123
4124case `pwd` in
4125 *\ * | *\ *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4127$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004128esac
4129
4130
4131
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004132macro_version='2.4.2'
4133macro_revision='1.3337'
Wink Savillefbaaef92010-05-27 16:25:37 -07004134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147ltmain="$ac_aux_dir/ltmain.sh"
4148
4149# Make sure we can run config.sub.
4150$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004151 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07004152
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4154$as_echo_n "checking build system type... " >&6; }
4155if ${ac_cv_build+:} false; then :
4156 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004157else
4158 ac_build_alias=$build_alias
4159test "x$ac_build_alias" = x &&
4160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4161test "x$ac_build_alias" = x &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004162 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07004163ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004164 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07004165
4166fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4168$as_echo "$ac_cv_build" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004169case $ac_cv_build in
4170*-*-*) ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004171*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004172esac
4173build=$ac_cv_build
4174ac_save_IFS=$IFS; IFS='-'
4175set x $ac_cv_build
4176shift
4177build_cpu=$1
4178build_vendor=$2
4179shift; shift
4180# Remember, the first character of IFS is used to create $*,
4181# except with old shells:
4182build_os=$*
4183IFS=$ac_save_IFS
4184case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4185
4186
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4188$as_echo_n "checking host system type... " >&6; }
4189if ${ac_cv_host+:} false; then :
4190 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004191else
4192 if test "x$host_alias" = x; then
4193 ac_cv_host=$ac_cv_build
4194else
4195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07004197fi
4198
4199fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4201$as_echo "$ac_cv_host" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004202case $ac_cv_host in
4203*-*-*) ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004204*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004205esac
4206host=$ac_cv_host
4207ac_save_IFS=$IFS; IFS='-'
4208set x $ac_cv_host
4209shift
4210host_cpu=$1
4211host_vendor=$2
4212shift; shift
4213# Remember, the first character of IFS is used to create $*,
4214# except with old shells:
4215host_os=$*
4216IFS=$ac_save_IFS
4217case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4218
4219
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004220# Backslashify metacharacters that are still active within
4221# double-quoted strings.
4222sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4223
4224# Same as above, but do not quote variable references.
4225double_quote_subst='s/\(["`\\]\)/\\\1/g'
4226
4227# Sed substitution to delay expansion of an escaped shell variable in a
4228# double_quote_subst'ed string.
4229delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4230
4231# Sed substitution to delay expansion of an escaped single quote.
4232delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4233
4234# Sed substitution to avoid accidental globbing in evaled expressions
4235no_glob_subst='s/\*/\\\*/g'
4236
4237ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4238ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4239ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4242$as_echo_n "checking how to print strings... " >&6; }
4243# Test print first, because it will be a builtin if present.
4244if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4245 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4246 ECHO='print -r --'
4247elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4248 ECHO='printf %s\n'
4249else
4250 # Use this function as a fallback that always works.
4251 func_fallback_echo ()
4252 {
4253 eval 'cat <<_LTECHO_EOF
4254$1
4255_LTECHO_EOF'
4256 }
4257 ECHO='func_fallback_echo'
4258fi
4259
4260# func_echo_all arg...
4261# Invoke $ECHO with all args, space-separated.
4262func_echo_all ()
4263{
4264 $ECHO ""
4265}
4266
4267case "$ECHO" in
4268 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4269$as_echo "printf" >&6; } ;;
4270 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4271$as_echo "print -r" >&6; } ;;
4272 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4273$as_echo "cat" >&6; } ;;
4274esac
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4290$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4291if ${ac_cv_path_SED+:} false; then :
4292 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004293else
4294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4295 for ac_i in 1 2 3 4 5 6 7; do
4296 ac_script="$ac_script$as_nl$ac_script"
4297 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4299 { ac_script=; unset ac_script;}
4300 if test -z "$SED"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004301 ac_path_SED_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07004304for as_dir in $PATH
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004308 for ac_prog in sed gsed; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4311 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4312# Check for GNU ac_path_SED and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07004313 # Check for GNU $ac_path_SED
4314case `"$ac_path_SED" --version 2>&1` in
4315*GNU*)
4316 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4317*)
4318 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004319 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07004320 while :
4321 do
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004325 $as_echo '' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07004326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004328 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07004329 if test $ac_count -gt ${ac_path_SED_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_SED="$ac_path_SED"
4332 ac_path_SED_max=$ac_count
4333 fi
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4336 done
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338esac
4339
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004340 $ac_path_SED_found && break 3
4341 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004342 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004343 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004344IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004345 if test -z "$ac_cv_path_SED"; then
4346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4347 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004348else
4349 ac_cv_path_SED=$SED
4350fi
4351
4352fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4354$as_echo "$ac_cv_path_SED" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004355 SED="$ac_cv_path_SED"
4356 rm -f conftest.sed
4357
4358test -z "$SED" && SED=sed
4359Xsed="$SED -e 1s/^X//"
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4372$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4373if ${ac_cv_path_GREP+:} false; then :
4374 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004375else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004376 if test -z "$GREP"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004377 ac_path_GREP_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07004380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004384 for ac_prog in grep ggrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4388# Check for GNU ac_path_GREP and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07004389 # Check for GNU $ac_path_GREP
4390case `"$ac_path_GREP" --version 2>&1` in
4391*GNU*)
4392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4393*)
4394 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004395 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07004396 while :
4397 do
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004401 $as_echo 'GREP' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07004402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004404 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07004405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_GREP="$ac_path_GREP"
4408 ac_path_GREP_max=$ac_count
4409 fi
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414esac
4415
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004416 $ac_path_GREP_found && break 3
4417 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004418 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004419 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004420IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004421 if test -z "$ac_cv_path_GREP"; then
4422 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004424else
4425 ac_cv_path_GREP=$GREP
4426fi
4427
Wink Savillefbaaef92010-05-27 16:25:37 -07004428fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4430$as_echo "$ac_cv_path_GREP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004431 GREP="$ac_cv_path_GREP"
4432
4433
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4435$as_echo_n "checking for egrep... " >&6; }
4436if ${ac_cv_path_EGREP+:} false; then :
4437 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004438else
4439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4440 then ac_cv_path_EGREP="$GREP -E"
4441 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004442 if test -z "$EGREP"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004443 ac_path_EGREP_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004444 # Loop through the user's path and test for each of PROGNAME-LIST
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07004446for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004450 for ac_prog in egrep; do
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4453 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4454# Check for GNU ac_path_EGREP and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07004455 # Check for GNU $ac_path_EGREP
4456case `"$ac_path_EGREP" --version 2>&1` in
4457*GNU*)
4458 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4459*)
4460 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004461 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07004462 while :
4463 do
4464 cat "conftest.in" "conftest.in" >"conftest.tmp"
4465 mv "conftest.tmp" "conftest.in"
4466 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004467 $as_echo 'EGREP' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07004468 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004470 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07004471 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4472 # Best one so far, save it but keep looking for a better one
4473 ac_cv_path_EGREP="$ac_path_EGREP"
4474 ac_path_EGREP_max=$ac_count
4475 fi
4476 # 10*(2^10) chars as input seems more than enough
4477 test $ac_count -gt 10 && break
4478 done
4479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4480esac
4481
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004482 $ac_path_EGREP_found && break 3
4483 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004484 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004485 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004486IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004487 if test -z "$ac_cv_path_EGREP"; then
4488 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4489 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004490else
4491 ac_cv_path_EGREP=$EGREP
4492fi
4493
Wink Savillefbaaef92010-05-27 16:25:37 -07004494 fi
4495fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4497$as_echo "$ac_cv_path_EGREP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004498 EGREP="$ac_cv_path_EGREP"
4499
4500
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4502$as_echo_n "checking for fgrep... " >&6; }
4503if ${ac_cv_path_FGREP+:} false; then :
4504 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004505else
4506 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4507 then ac_cv_path_FGREP="$GREP -F"
4508 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004509 if test -z "$FGREP"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004510 ac_path_FGREP_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07004513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004517 for ac_prog in fgrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4521# Check for GNU ac_path_FGREP and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07004522 # Check for GNU $ac_path_FGREP
4523case `"$ac_path_FGREP" --version 2>&1` in
4524*GNU*)
4525 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4526*)
4527 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004528 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07004529 while :
4530 do
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004534 $as_echo 'FGREP' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07004535 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004537 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07004538 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_FGREP="$ac_path_FGREP"
4541 ac_path_FGREP_max=$ac_count
4542 fi
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4545 done
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547esac
4548
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004549 $ac_path_FGREP_found && break 3
4550 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004551 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004552 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004553IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004554 if test -z "$ac_cv_path_FGREP"; then
4555 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004557else
4558 ac_cv_path_FGREP=$FGREP
4559fi
4560
Wink Savillefbaaef92010-05-27 16:25:37 -07004561 fi
4562fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4564$as_echo "$ac_cv_path_FGREP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004565 FGREP="$ac_cv_path_FGREP"
4566
4567
4568test -z "$GREP" && GREP=grep
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588# Check whether --with-gnu-ld was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004589if test "${with_gnu_ld+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004590 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4591else
4592 with_gnu_ld=no
4593fi
4594
4595ac_prog=ld
4596if test "$GCC" = yes; then
4597 # Check if gcc -print-prog-name=ld gives a path.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4599$as_echo_n "checking for ld used by $CC... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004600 case $host in
4601 *-*-mingw*)
4602 # gcc leaves a trailing carriage return which upsets mingw
4603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4604 *)
4605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4606 esac
4607 case $ac_prog in
4608 # Accept absolute paths.
4609 [\\/]* | ?:[\\/]*)
4610 re_direlt='/[^/][^/]*/\.\./'
4611 # Canonicalize the pathname of ld
4612 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4613 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4614 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4615 done
4616 test -z "$LD" && LD="$ac_prog"
4617 ;;
4618 "")
4619 # If it fails, then pretend we aren't using GCC.
4620 ac_prog=ld
4621 ;;
4622 *)
4623 # If it is relative, then search for the first ld in PATH.
4624 with_gnu_ld=unknown
4625 ;;
4626 esac
4627elif test "$with_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4629$as_echo_n "checking for GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004630else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4632$as_echo_n "checking for non-GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004633fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004634if ${lt_cv_path_LD+:} false; then :
4635 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004636else
4637 if test -z "$LD"; then
4638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4639 for ac_dir in $PATH; do
4640 IFS="$lt_save_ifs"
4641 test -z "$ac_dir" && ac_dir=.
4642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4643 lt_cv_path_LD="$ac_dir/$ac_prog"
4644 # Check to see if the program is GNU ld. I'd rather use --version,
4645 # but apparently some variants of GNU ld only accept -v.
4646 # Break only if it was the GNU/non-GNU ld that we prefer.
4647 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4648 *GNU* | *'with BFD'*)
4649 test "$with_gnu_ld" != no && break
4650 ;;
4651 *)
4652 test "$with_gnu_ld" != yes && break
4653 ;;
4654 esac
4655 fi
4656 done
4657 IFS="$lt_save_ifs"
4658else
4659 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4660fi
4661fi
4662
4663LD="$lt_cv_path_LD"
4664if test -n "$LD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4666$as_echo "$LD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004667else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004670fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004671test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4673$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4674if ${lt_cv_prog_gnu_ld+:} false; then :
4675 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004676else
4677 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4678case `$LD -v 2>&1 </dev/null` in
4679*GNU* | *'with BFD'*)
4680 lt_cv_prog_gnu_ld=yes
4681 ;;
4682*)
4683 lt_cv_prog_gnu_ld=no
4684 ;;
4685esac
4686fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4688$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004689with_gnu_ld=$lt_cv_prog_gnu_ld
4690
4691
4692
4693
4694
4695
4696
4697
4698
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4700$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4701if ${lt_cv_path_NM+:} false; then :
4702 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004703else
4704 if test -n "$NM"; then
4705 # Let the user override the test.
4706 lt_cv_path_NM="$NM"
4707else
4708 lt_nm_to_check="${ac_tool_prefix}nm"
4709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4710 lt_nm_to_check="$lt_nm_to_check nm"
4711 fi
4712 for lt_tmp_nm in $lt_nm_to_check; do
4713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4715 IFS="$lt_save_ifs"
4716 test -z "$ac_dir" && ac_dir=.
4717 tmp_nm="$ac_dir/$lt_tmp_nm"
4718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4719 # Check to see if the nm accepts a BSD-compat flag.
4720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4721 # nm: unknown option "B" ignored
4722 # Tru64's nm complains that /dev/null is an invalid object file
4723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4724 */dev/null* | *'Invalid file or object type'*)
4725 lt_cv_path_NM="$tmp_nm -B"
4726 break
4727 ;;
4728 *)
4729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4730 */dev/null*)
4731 lt_cv_path_NM="$tmp_nm -p"
4732 break
4733 ;;
4734 *)
4735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4736 continue # so that we can try to find one that supports BSD flags
4737 ;;
4738 esac
4739 ;;
4740 esac
4741 fi
4742 done
4743 IFS="$lt_save_ifs"
4744 done
4745 : ${lt_cv_path_NM=no}
4746fi
4747fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4749$as_echo "$lt_cv_path_NM" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004750if test "$lt_cv_path_NM" != "no"; then
4751 NM="$lt_cv_path_NM"
4752else
4753 # Didn't find any BSD compatible name lister, look for dumpbin.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004754 if test -n "$DUMPBIN"; then :
4755 # Let the user override the test.
4756 else
4757 if test -n "$ac_tool_prefix"; then
4758 for ac_prog in dumpbin "link -dump"
Wink Savillefbaaef92010-05-27 16:25:37 -07004759 do
4760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4761set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763$as_echo_n "checking for $ac_word... " >&6; }
4764if ${ac_cv_prog_DUMPBIN+:} false; then :
4765 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004766else
4767 if test -n "$DUMPBIN"; then
4768 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004775 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07004776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07004779 break 2
4780 fi
4781done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004782 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004783IFS=$as_save_IFS
4784
4785fi
4786fi
4787DUMPBIN=$ac_cv_prog_DUMPBIN
4788if test -n "$DUMPBIN"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4790$as_echo "$DUMPBIN" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004791else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004794fi
4795
4796
4797 test -n "$DUMPBIN" && break
4798 done
4799fi
4800if test -z "$DUMPBIN"; then
4801 ac_ct_DUMPBIN=$DUMPBIN
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004802 for ac_prog in dumpbin "link -dump"
Wink Savillefbaaef92010-05-27 16:25:37 -07004803do
4804 # Extract the first word of "$ac_prog", so it can be a program name with args.
4805set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807$as_echo_n "checking for $ac_word... " >&6; }
4808if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4809 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004810else
4811 if test -n "$ac_ct_DUMPBIN"; then
4812 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004819 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07004820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07004823 break 2
4824 fi
4825done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004826 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004827IFS=$as_save_IFS
4828
4829fi
4830fi
4831ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4832if test -n "$ac_ct_DUMPBIN"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4834$as_echo "$ac_ct_DUMPBIN" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004835else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004838fi
4839
4840
4841 test -n "$ac_ct_DUMPBIN" && break
4842done
4843
4844 if test "x$ac_ct_DUMPBIN" = x; then
4845 DUMPBIN=":"
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07004851ac_tool_warned=yes ;;
4852esac
4853 DUMPBIN=$ac_ct_DUMPBIN
4854 fi
4855fi
4856
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004857 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4858 *COFF*)
4859 DUMPBIN="$DUMPBIN -symbols"
4860 ;;
4861 *)
4862 DUMPBIN=:
4863 ;;
4864 esac
4865 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004866
4867 if test "$DUMPBIN" != ":"; then
4868 NM="$DUMPBIN"
4869 fi
4870fi
4871test -z "$NM" && NM=nm
4872
4873
4874
4875
4876
4877
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4879$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4880if ${lt_cv_nm_interface+:} false; then :
4881 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004882else
4883 lt_cv_nm_interface="BSD nm"
4884 echo "int some_variable = 0;" > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004885 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07004886 (eval "$ac_compile" 2>conftest.err)
4887 cat conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004888 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07004889 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4890 cat conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004891 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07004892 cat conftest.out >&5
4893 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4894 lt_cv_nm_interface="MS dumpbin"
4895 fi
4896 rm -f conftest*
4897fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4899$as_echo "$lt_cv_nm_interface" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004900
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4902$as_echo_n "checking whether ln -s works... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004903LN_S=$as_ln_s
4904if test "$LN_S" = "ln -s"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4906$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004907else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4909$as_echo "no, using $LN_S" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004910fi
4911
4912# find the maximum length of command line arguments
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4914$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4915if ${lt_cv_sys_max_cmd_len+:} false; then :
4916 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004917else
4918 i=0
4919 teststring="ABCD"
4920
4921 case $build_os in
4922 msdosdjgpp*)
4923 # On DJGPP, this test can blow up pretty badly due to problems in libc
4924 # (any single argument exceeding 2000 bytes causes a buffer overrun
4925 # during glob expansion). Even if it were fixed, the result of this
4926 # check would be larger than it should be.
4927 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4928 ;;
4929
4930 gnu*)
4931 # Under GNU Hurd, this test is not required because there is
4932 # no limit to the length of command line arguments.
4933 # Libtool will interpret -1 as no limit whatsoever
4934 lt_cv_sys_max_cmd_len=-1;
4935 ;;
4936
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004937 cygwin* | mingw* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07004938 # On Win9x/ME, this test blows up -- it succeeds, but takes
4939 # about 5 minutes as the teststring grows exponentially.
4940 # Worse, since 9x/ME are not pre-emptively multitasking,
4941 # you end up with a "frozen" computer, even though with patience
4942 # the test eventually succeeds (with a max line length of 256k).
4943 # Instead, let's just punt: use the minimum linelength reported by
4944 # all of the supported platforms: 8192 (on NT/2K/XP).
4945 lt_cv_sys_max_cmd_len=8192;
4946 ;;
4947
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004948 mint*)
4949 # On MiNT this can take a long time and run out of memory.
4950 lt_cv_sys_max_cmd_len=8192;
4951 ;;
4952
Wink Savillefbaaef92010-05-27 16:25:37 -07004953 amigaos*)
4954 # On AmigaOS with pdksh, this test takes hours, literally.
4955 # So we just punt and use a minimum line length of 8192.
4956 lt_cv_sys_max_cmd_len=8192;
4957 ;;
4958
4959 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4960 # This has been around since 386BSD, at least. Likely further.
4961 if test -x /sbin/sysctl; then
4962 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4963 elif test -x /usr/sbin/sysctl; then
4964 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4965 else
4966 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4967 fi
4968 # And add a safety zone
4969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4971 ;;
4972
4973 interix*)
4974 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4975 lt_cv_sys_max_cmd_len=196608
4976 ;;
4977
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004978 os2*)
4979 # The test takes a long time on OS/2.
4980 lt_cv_sys_max_cmd_len=8192
4981 ;;
4982
Wink Savillefbaaef92010-05-27 16:25:37 -07004983 osf*)
4984 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4985 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4986 # nice to cause kernel panics so lets avoid the loop below.
4987 # First set a reasonable default.
4988 lt_cv_sys_max_cmd_len=16384
4989 #
4990 if test -x /sbin/sysconfig; then
4991 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4992 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4993 esac
4994 fi
4995 ;;
4996 sco3.2v5*)
4997 lt_cv_sys_max_cmd_len=102400
4998 ;;
4999 sysv5* | sco5v6* | sysv4.2uw2*)
5000 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5001 if test -n "$kargmax"; then
5002 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5003 else
5004 lt_cv_sys_max_cmd_len=32768
5005 fi
5006 ;;
5007 *)
5008 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5009 if test -n "$lt_cv_sys_max_cmd_len"; then
5010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5012 else
5013 # Make teststring a little bigger before we do anything with it.
5014 # a 1K string should be a reasonable start.
5015 for i in 1 2 3 4 5 6 7 8 ; do
5016 teststring=$teststring$teststring
5017 done
5018 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5019 # If test is not a shell built-in, we'll probably end up computing a
5020 # maximum length that is only half of the actual maximum length, but
5021 # we can't tell.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005022 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5023 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Wink Savillefbaaef92010-05-27 16:25:37 -07005024 test $i != 17 # 1/2 MB should be enough
5025 do
5026 i=`expr $i + 1`
5027 teststring=$teststring$teststring
5028 done
5029 # Only check the string length outside the loop.
5030 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5031 teststring=
5032 # Add a significant safety factor because C++ compilers can tack on
5033 # massive amounts of additional arguments before passing them to the
5034 # linker. It appears as though 1/2 is a usable value.
5035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5036 fi
5037 ;;
5038 esac
5039
5040fi
5041
5042if test -n $lt_cv_sys_max_cmd_len ; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5044$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005045else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5047$as_echo "none" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005048fi
5049max_cmd_len=$lt_cv_sys_max_cmd_len
5050
5051
5052
5053
5054
5055
5056: ${CP="cp -f"}
5057: ${MV="mv -f"}
5058: ${RM="rm -f"}
5059
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5061$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005062# Try some XSI features
5063xsi_shell=no
5064( _lt_dummy="a/b/c"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005065 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5066 = c,a/b,b/c, \
Wink Savillefbaaef92010-05-27 16:25:37 -07005067 && eval 'test $(( 1 + 1 )) -eq 2 \
5068 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5069 && xsi_shell=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5071$as_echo "$xsi_shell" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005072
5073
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5075$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005076lt_shell_append=no
5077( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5078 >/dev/null 2>&1 \
5079 && lt_shell_append=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5081$as_echo "$lt_shell_append" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005082
5083
5084if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5085 lt_unset=unset
5086else
5087 lt_unset=false
5088fi
5089
5090
5091
5092
5093
5094# test EBCDIC or ASCII
5095case `echo X|tr X '\101'` in
5096 A) # ASCII based system
5097 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5098 lt_SP2NL='tr \040 \012'
5099 lt_NL2SP='tr \015\012 \040\040'
5100 ;;
5101 *) # EBCDIC based system
5102 lt_SP2NL='tr \100 \n'
5103 lt_NL2SP='tr \r\n \100\100'
5104 ;;
5105esac
5106
5107
5108
5109
5110
5111
5112
5113
5114
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5116$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5117if ${lt_cv_to_host_file_cmd+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119else
5120 case $host in
5121 *-*-mingw* )
5122 case $build in
5123 *-*-mingw* ) # actually msys
5124 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5125 ;;
5126 *-*-cygwin* )
5127 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5128 ;;
5129 * ) # otherwise, assume *nix
5130 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5131 ;;
5132 esac
5133 ;;
5134 *-*-cygwin* )
5135 case $build in
5136 *-*-mingw* ) # actually msys
5137 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5138 ;;
5139 *-*-cygwin* )
5140 lt_cv_to_host_file_cmd=func_convert_file_noop
5141 ;;
5142 * ) # otherwise, assume *nix
5143 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5144 ;;
5145 esac
5146 ;;
5147 * ) # unhandled hosts (and "normal" native builds)
5148 lt_cv_to_host_file_cmd=func_convert_file_noop
5149 ;;
5150esac
5151
5152fi
5153
5154to_host_file_cmd=$lt_cv_to_host_file_cmd
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5156$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5157
5158
5159
5160
5161
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5163$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5164if ${lt_cv_to_tool_file_cmd+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166else
5167 #assume ordinary cross tools, or native build.
5168lt_cv_to_tool_file_cmd=func_convert_file_noop
5169case $host in
5170 *-*-mingw* )
5171 case $build in
5172 *-*-mingw* ) # actually msys
5173 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5174 ;;
5175 esac
5176 ;;
5177esac
5178
5179fi
5180
5181to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5183$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5184
5185
5186
5187
5188
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5190$as_echo_n "checking for $LD option to reload object files... " >&6; }
5191if ${lt_cv_ld_reload_flag+:} false; then :
5192 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005193else
5194 lt_cv_ld_reload_flag='-r'
5195fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5197$as_echo "$lt_cv_ld_reload_flag" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005198reload_flag=$lt_cv_ld_reload_flag
5199case $reload_flag in
5200"" | " "*) ;;
5201*) reload_flag=" $reload_flag" ;;
5202esac
5203reload_cmds='$LD$reload_flag -o $output$reload_objs'
5204case $host_os in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005205 cygwin* | mingw* | pw32* | cegcc*)
5206 if test "$GCC" != yes; then
5207 reload_cmds=false
5208 fi
5209 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07005210 darwin*)
5211 if test "$GCC" = yes; then
5212 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5213 else
5214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5215 fi
5216 ;;
5217esac
5218
5219
5220
5221
5222
5223
5224
5225
5226
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005227if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5229set dummy ${ac_tool_prefix}objdump; ac_word=$2
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231$as_echo_n "checking for $ac_word... " >&6; }
5232if ${ac_cv_prog_OBJDUMP+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234else
5235 if test -n "$OBJDUMP"; then
5236 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249done
5250 done
5251IFS=$as_save_IFS
Wink Savillefbaaef92010-05-27 16:25:37 -07005252
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005253fi
5254fi
5255OBJDUMP=$ac_cv_prog_OBJDUMP
5256if test -n "$OBJDUMP"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5258$as_echo "$OBJDUMP" >&6; }
5259else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261$as_echo "no" >&6; }
5262fi
5263
5264
5265fi
5266if test -z "$ac_cv_prog_OBJDUMP"; then
5267 ac_ct_OBJDUMP=$OBJDUMP
5268 # Extract the first word of "objdump", so it can be a program name with args.
5269set dummy objdump; ac_word=$2
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271$as_echo_n "checking for $ac_word... " >&6; }
5272if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274else
5275 if test -n "$ac_ct_OBJDUMP"; then
5276 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290 done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5296if test -n "$ac_ct_OBJDUMP"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5298$as_echo "$ac_ct_OBJDUMP" >&6; }
5299else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301$as_echo "no" >&6; }
5302fi
5303
5304 if test "x$ac_ct_OBJDUMP" = x; then
5305 OBJDUMP="false"
5306 else
5307 case $cross_compiling:$ac_tool_warned in
5308yes:)
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311ac_tool_warned=yes ;;
5312esac
5313 OBJDUMP=$ac_ct_OBJDUMP
5314 fi
5315else
5316 OBJDUMP="$ac_cv_prog_OBJDUMP"
5317fi
5318
5319test -z "$OBJDUMP" && OBJDUMP=objdump
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5330$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5331if ${lt_cv_deplibs_check_method+:} false; then :
5332 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005333else
5334 lt_cv_file_magic_cmd='$MAGIC_CMD'
5335lt_cv_file_magic_test_file=
5336lt_cv_deplibs_check_method='unknown'
5337# Need to set the preceding variable on all platforms that support
5338# interlibrary dependencies.
5339# 'none' -- dependencies not supported.
5340# `unknown' -- same as none, but documents that we really don't know.
5341# 'pass_all' -- all dependencies passed with no checks.
5342# 'test_compile' -- check by making test program.
5343# 'file_magic [[regex]]' -- check by looking for files in library path
5344# which responds to the $file_magic_cmd with a given extended regex.
5345# If you have `file' or equivalent on your system and you're not sure
5346# whether `pass_all' will *always* work, you probably want this one.
5347
5348case $host_os in
5349aix[4-9]*)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353beos*)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356
5357bsdi[45]*)
5358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5359 lt_cv_file_magic_cmd='/usr/bin/file -L'
5360 lt_cv_file_magic_test_file=/shlib/libc.so
5361 ;;
5362
5363cygwin*)
5364 # func_win32_libid is a shell function defined in ltmain.sh
5365 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5366 lt_cv_file_magic_cmd='func_win32_libid'
5367 ;;
5368
5369mingw* | pw32*)
5370 # Base MSYS/MinGW do not provide the 'file' command needed by
5371 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5372 # unless we find 'file', for example because we are cross-compiling.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005373 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5374 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5376 lt_cv_file_magic_cmd='func_win32_libid'
5377 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005378 # Keep this pattern in sync with the one in func_win32_libid.
5379 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Wink Savillefbaaef92010-05-27 16:25:37 -07005380 lt_cv_file_magic_cmd='$OBJDUMP -f'
5381 fi
5382 ;;
5383
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005384cegcc*)
5385 # use the weaker test based on 'objdump'. See mingw*.
5386 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5387 lt_cv_file_magic_cmd='$OBJDUMP -f'
5388 ;;
5389
Wink Savillefbaaef92010-05-27 16:25:37 -07005390darwin* | rhapsody*)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393
5394freebsd* | dragonfly*)
5395 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5396 case $host_cpu in
5397 i*86 )
5398 # Not sure whether the presence of OpenBSD here was a mistake.
5399 # Let's accept both of them until this is cleared up.
5400 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5401 lt_cv_file_magic_cmd=/usr/bin/file
5402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5403 ;;
5404 esac
5405 else
5406 lt_cv_deplibs_check_method=pass_all
5407 fi
5408 ;;
5409
5410gnu*)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005414haiku*)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417
Wink Savillefbaaef92010-05-27 16:25:37 -07005418hpux10.20* | hpux11*)
5419 lt_cv_file_magic_cmd=/usr/bin/file
5420 case $host_cpu in
5421 ia64*)
5422 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5423 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5424 ;;
5425 hppa*64*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Wink Savillefbaaef92010-05-27 16:25:37 -07005427 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5428 ;;
5429 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005430 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Wink Savillefbaaef92010-05-27 16:25:37 -07005431 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5432 ;;
5433 esac
5434 ;;
5435
5436interix[3-9]*)
5437 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5439 ;;
5440
5441irix5* | irix6* | nonstopux*)
5442 case $LD in
5443 *-32|*"-32 ") libmagic=32-bit;;
5444 *-n32|*"-n32 ") libmagic=N32;;
5445 *-64|*"-64 ") libmagic=64-bit;;
5446 *) libmagic=never-match;;
5447 esac
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005451# This must be glibc/ELF.
5452linux* | k*bsd*-gnu | kopensolaris*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07005453 lt_cv_deplibs_check_method=pass_all
5454 ;;
5455
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005456netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07005457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5459 else
5460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5461 fi
5462 ;;
5463
5464newos6*)
5465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5466 lt_cv_file_magic_cmd=/usr/bin/file
5467 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5468 ;;
5469
5470*nto* | *qnx*)
5471 lt_cv_deplibs_check_method=pass_all
5472 ;;
5473
5474openbsd*)
5475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5477 else
5478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5479 fi
5480 ;;
5481
5482osf3* | osf4* | osf5*)
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
5485
5486rdos*)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489
5490solaris*)
5491 lt_cv_deplibs_check_method=pass_all
5492 ;;
5493
5494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5495 lt_cv_deplibs_check_method=pass_all
5496 ;;
5497
5498sysv4 | sysv4.3*)
5499 case $host_vendor in
5500 motorola)
5501 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]'
5502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5503 ;;
5504 ncr)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507 sequent)
5508 lt_cv_file_magic_cmd='/bin/file'
5509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5510 ;;
5511 sni)
5512 lt_cv_file_magic_cmd='/bin/file'
5513 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5514 lt_cv_file_magic_test_file=/lib/libc.so
5515 ;;
5516 siemens)
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519 pc)
5520 lt_cv_deplibs_check_method=pass_all
5521 ;;
5522 esac
5523 ;;
5524
5525tpf*)
5526 lt_cv_deplibs_check_method=pass_all
5527 ;;
5528esac
5529
5530fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5532$as_echo "$lt_cv_deplibs_check_method" >&6; }
5533
5534file_magic_glob=
5535want_nocaseglob=no
5536if test "$build" = "$host"; then
5537 case $host_os in
5538 mingw* | pw32*)
5539 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5540 want_nocaseglob=yes
5541 else
5542 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5543 fi
5544 ;;
5545 esac
5546fi
5547
Wink Savillefbaaef92010-05-27 16:25:37 -07005548file_magic_cmd=$lt_cv_file_magic_cmd
5549deplibs_check_method=$lt_cv_deplibs_check_method
5550test -z "$deplibs_check_method" && deplibs_check_method=unknown
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005563
5564
5565
5566
5567
5568
5569
5570
5571
5572
Wink Savillefbaaef92010-05-27 16:25:37 -07005573if test -n "$ac_tool_prefix"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005574 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5575set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
5578if ${ac_cv_prog_DLLTOOL+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 if test -n "$DLLTOOL"; then
5582 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595done
5596 done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601DLLTOOL=$ac_cv_prog_DLLTOOL
5602if test -n "$DLLTOOL"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5604$as_echo "$DLLTOOL" >&6; }
5605else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608fi
5609
5610
5611fi
5612if test -z "$ac_cv_prog_DLLTOOL"; then
5613 ac_ct_DLLTOOL=$DLLTOOL
5614 # Extract the first word of "dlltool", so it can be a program name with args.
5615set dummy dlltool; ac_word=$2
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617$as_echo_n "checking for $ac_word... " >&6; }
5618if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620else
5621 if test -n "$ac_ct_DLLTOOL"; then
5622 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635done
5636 done
5637IFS=$as_save_IFS
5638
5639fi
5640fi
5641ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5642if test -n "$ac_ct_DLLTOOL"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5644$as_echo "$ac_ct_DLLTOOL" >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; }
5648fi
5649
5650 if test "x$ac_ct_DLLTOOL" = x; then
5651 DLLTOOL="false"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654yes:)
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657ac_tool_warned=yes ;;
5658esac
5659 DLLTOOL=$ac_ct_DLLTOOL
5660 fi
5661else
5662 DLLTOOL="$ac_cv_prog_DLLTOOL"
5663fi
5664
5665test -z "$DLLTOOL" && DLLTOOL=dlltool
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5677$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5678if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680else
5681 lt_cv_sharedlib_from_linklib_cmd='unknown'
5682
5683case $host_os in
5684cygwin* | mingw* | pw32* | cegcc*)
5685 # two different shell functions defined in ltmain.sh
5686 # decide which to use based on capabilities of $DLLTOOL
5687 case `$DLLTOOL --help 2>&1` in
5688 *--identify-strict*)
5689 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5690 ;;
5691 *)
5692 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5693 ;;
5694 esac
5695 ;;
5696*)
5697 # fallback: assume linklib IS sharedlib
5698 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5699 ;;
5700esac
5701
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5704$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5705sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5706test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5707
5708
5709
5710
5711
5712
5713
5714
5715if test -n "$ac_tool_prefix"; then
5716 for ac_prog in ar
5717 do
5718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5719set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721$as_echo_n "checking for $ac_word... " >&6; }
5722if ${ac_cv_prog_AR+:} false; then :
5723 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005724else
5725 if test -n "$AR"; then
5726 ac_cv_prog_AR="$AR" # Let the user override the test.
5727else
5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005733 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07005734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005735 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07005737 break 2
5738 fi
5739done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005740 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005741IFS=$as_save_IFS
5742
5743fi
5744fi
5745AR=$ac_cv_prog_AR
5746if test -n "$AR"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5748$as_echo "$AR" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005749else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005752fi
5753
5754
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005755 test -n "$AR" && break
5756 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005757fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005758if test -z "$AR"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005759 ac_ct_AR=$AR
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005760 for ac_prog in ar
5761do
5762 # Extract the first word of "$ac_prog", so it can be a program name with args.
5763set dummy $ac_prog; ac_word=$2
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765$as_echo_n "checking for $ac_word... " >&6; }
5766if ${ac_cv_prog_ac_ct_AR+:} false; then :
5767 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005768else
5769 if test -n "$ac_ct_AR"; then
5770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005777 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07005778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005779 ac_cv_prog_ac_ct_AR="$ac_prog"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07005781 break 2
5782 fi
5783done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005784 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005785IFS=$as_save_IFS
5786
5787fi
5788fi
5789ac_ct_AR=$ac_cv_prog_ac_ct_AR
5790if test -n "$ac_ct_AR"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5792$as_echo "$ac_ct_AR" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005793else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005796fi
5797
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005798
5799 test -n "$ac_ct_AR" && break
5800done
5801
Wink Savillefbaaef92010-05-27 16:25:37 -07005802 if test "x$ac_ct_AR" = x; then
5803 AR="false"
5804 else
5805 case $cross_compiling:$ac_tool_warned in
5806yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07005809ac_tool_warned=yes ;;
5810esac
5811 AR=$ac_ct_AR
5812 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07005813fi
5814
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005815: ${AR=ar}
5816: ${AR_FLAGS=cru}
Wink Savillefbaaef92010-05-27 16:25:37 -07005817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5829$as_echo_n "checking for archiver @FILE support... " >&6; }
5830if ${lt_cv_ar_at_file+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832else
5833 lt_cv_ar_at_file=no
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h. */
5836
5837int
5838main ()
5839{
5840
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845if ac_fn_cxx_try_compile "$LINENO"; then :
5846 echo conftest.$ac_objext > conftest.lst
5847 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5849 (eval $lt_ar_try) 2>&5
5850 ac_status=$?
5851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5852 test $ac_status = 0; }
5853 if test "$ac_status" -eq 0; then
5854 # Ensure the archiver fails upon bogus file names.
5855 rm -f conftest.$ac_objext libconftest.a
5856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5857 (eval $lt_ar_try) 2>&5
5858 ac_status=$?
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; }
5861 if test "$ac_status" -ne 0; then
5862 lt_cv_ar_at_file=@
5863 fi
5864 fi
5865 rm -f conftest.* libconftest.a
5866
5867fi
5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869
5870fi
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5872$as_echo "$lt_cv_ar_at_file" >&6; }
5873
5874if test "x$lt_cv_ar_at_file" = xno; then
5875 archiver_list_spec=
5876else
5877 archiver_list_spec=$lt_cv_ar_at_file
5878fi
5879
5880
5881
5882
5883
5884
5885
Wink Savillefbaaef92010-05-27 16:25:37 -07005886if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5888set dummy ${ac_tool_prefix}strip; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890$as_echo_n "checking for $ac_word... " >&6; }
5891if ${ac_cv_prog_STRIP+:} false; then :
5892 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005893else
5894 if test -n "$STRIP"; then
5895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005902 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07005903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07005906 break 2
5907 fi
5908done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005909 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005910IFS=$as_save_IFS
5911
5912fi
5913fi
5914STRIP=$ac_cv_prog_STRIP
5915if test -n "$STRIP"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5917$as_echo "$STRIP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005918else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005921fi
5922
5923
5924fi
5925if test -z "$ac_cv_prog_STRIP"; then
5926 ac_ct_STRIP=$STRIP
5927 # Extract the first word of "strip", so it can be a program name with args.
5928set dummy strip; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930$as_echo_n "checking for $ac_word... " >&6; }
5931if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5932 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005933else
5934 if test -n "$ac_ct_STRIP"; then
5935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005942 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07005943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_ac_ct_STRIP="strip"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07005946 break 2
5947 fi
5948done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005949 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005950IFS=$as_save_IFS
5951
5952fi
5953fi
5954ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5955if test -n "$ac_ct_STRIP"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5957$as_echo "$ac_ct_STRIP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005958else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005961fi
5962
5963 if test "x$ac_ct_STRIP" = x; then
5964 STRIP=":"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07005970ac_tool_warned=yes ;;
5971esac
5972 STRIP=$ac_ct_STRIP
5973 fi
5974else
5975 STRIP="$ac_cv_prog_STRIP"
5976fi
5977
5978test -z "$STRIP" && STRIP=:
5979
5980
5981
5982
5983
5984
5985if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5987set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989$as_echo_n "checking for $ac_word... " >&6; }
5990if ${ac_cv_prog_RANLIB+:} false; then :
5991 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005992else
5993 if test -n "$RANLIB"; then
5994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5995else
5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006001 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07006002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006005 break 2
6006 fi
6007done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006008 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006009IFS=$as_save_IFS
6010
6011fi
6012fi
6013RANLIB=$ac_cv_prog_RANLIB
6014if test -n "$RANLIB"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6016$as_echo "$RANLIB" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006017else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006020fi
6021
6022
6023fi
6024if test -z "$ac_cv_prog_RANLIB"; then
6025 ac_ct_RANLIB=$RANLIB
6026 # Extract the first word of "ranlib", so it can be a program name with args.
6027set dummy ranlib; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029$as_echo_n "checking for $ac_word... " >&6; }
6030if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6031 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006032else
6033 if test -n "$ac_ct_RANLIB"; then
6034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6035else
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006041 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07006042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_ac_ct_RANLIB="ranlib"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006045 break 2
6046 fi
6047done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006048 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006049IFS=$as_save_IFS
6050
6051fi
6052fi
6053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6054if test -n "$ac_ct_RANLIB"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6056$as_echo "$ac_ct_RANLIB" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006057else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006060fi
6061
6062 if test "x$ac_ct_RANLIB" = x; then
6063 RANLIB=":"
6064 else
6065 case $cross_compiling:$ac_tool_warned in
6066yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07006069ac_tool_warned=yes ;;
6070esac
6071 RANLIB=$ac_ct_RANLIB
6072 fi
6073else
6074 RANLIB="$ac_cv_prog_RANLIB"
6075fi
6076
6077test -z "$RANLIB" && RANLIB=:
6078
6079
6080
6081
6082
6083
6084# Determine commands to create old-style static archives.
6085old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6086old_postinstall_cmds='chmod 644 $oldlib'
6087old_postuninstall_cmds=
6088
6089if test -n "$RANLIB"; then
6090 case $host_os in
6091 openbsd*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Wink Savillefbaaef92010-05-27 16:25:37 -07006093 ;;
6094 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Wink Savillefbaaef92010-05-27 16:25:37 -07006096 ;;
6097 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006098 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Wink Savillefbaaef92010-05-27 16:25:37 -07006099fi
6100
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006101case $host_os in
6102 darwin*)
6103 lock_old_archive_extraction=yes ;;
6104 *)
6105 lock_old_archive_extraction=no ;;
6106esac
6107
6108
6109
6110
6111
6112
Wink Savillefbaaef92010-05-27 16:25:37 -07006113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146# If no C compiler was specified, use CC.
6147LTCC=${LTCC-"$CC"}
6148
6149# If no C compiler flags were specified, use CFLAGS.
6150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6151
6152# Allow CC to be a program name with arguments.
6153compiler=$CC
6154
6155
6156# Check for command to grab the raw symbol name followed by C symbol from nm.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6158$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6159if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6160 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006161else
6162
6163# These are sane defaults that work on at least a few old systems.
6164# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6165
6166# Character class describing NM global symbol codes.
6167symcode='[BCDEGRST]'
6168
6169# Regexp to match symbols that can be accessed directly from C.
6170sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6171
6172# Define system-specific variables.
6173case $host_os in
6174aix*)
6175 symcode='[BCDT]'
6176 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006177cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07006178 symcode='[ABCDGISTW]'
6179 ;;
6180hpux*)
6181 if test "$host_cpu" = ia64; then
6182 symcode='[ABCDEGRST]'
6183 fi
6184 ;;
6185irix* | nonstopux*)
6186 symcode='[BCDEGRST]'
6187 ;;
6188osf*)
6189 symcode='[BCDEGQRST]'
6190 ;;
6191solaris*)
6192 symcode='[BDRT]'
6193 ;;
6194sco3.2v5*)
6195 symcode='[DT]'
6196 ;;
6197sysv4.2uw2*)
6198 symcode='[DT]'
6199 ;;
6200sysv5* | sco5v6* | unixware* | OpenUNIX*)
6201 symcode='[ABDT]'
6202 ;;
6203sysv4)
6204 symcode='[DFNSTU]'
6205 ;;
6206esac
6207
6208# If we're using GNU nm, then use its standard symbol codes.
6209case `$NM -V 2>&1` in
6210*GNU* | *'with BFD'*)
6211 symcode='[ABCDGIRSTW]' ;;
6212esac
6213
6214# Transform an extracted symbol line into a proper C declaration.
6215# Some systems (esp. on ia64) link data and code symbols differently,
6216# so use this general approach.
6217lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6218
6219# Transform an extracted symbol line into symbol name and symbol address
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006220lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6221lt_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'"
Wink Savillefbaaef92010-05-27 16:25:37 -07006222
6223# Handle CRLF in mingw tool chain
6224opt_cr=
6225case $build_os in
6226mingw*)
6227 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6228 ;;
6229esac
6230
6231# Try without a prefix underscore, then with it.
6232for ac_symprfx in "" "_"; do
6233
6234 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6235 symxfrm="\\1 $ac_symprfx\\2 \\2"
6236
6237 # Write the raw and C identifiers.
6238 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6239 # Fake it for dumpbin and say T for any non-static function
6240 # and D for any global variable.
6241 # Also find C++ and __fastcall symbols from MSVC++,
6242 # which start with @ or ?.
6243 lt_cv_sys_global_symbol_pipe="$AWK '"\
6244" {last_section=section; section=\$ 3};"\
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006245" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Wink Savillefbaaef92010-05-27 16:25:37 -07006246" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6247" \$ 0!~/External *\|/{next};"\
6248" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6249" {if(hide[section]) next};"\
6250" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6251" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6252" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6253" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6254" ' prfx=^$ac_symprfx"
6255 else
6256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6257 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006258 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Wink Savillefbaaef92010-05-27 16:25:37 -07006259
6260 # Check to see that the pipe works correctly.
6261 pipe_works=no
6262
6263 rm -f conftest*
6264 cat > conftest.$ac_ext <<_LT_EOF
6265#ifdef __cplusplus
6266extern "C" {
6267#endif
6268char nm_test_var;
6269void nm_test_func(void);
6270void nm_test_func(void){}
6271#ifdef __cplusplus
6272}
6273#endif
6274int main(){nm_test_var='a';nm_test_func();return(0);}
6275_LT_EOF
6276
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006278 (eval $ac_compile) 2>&5
6279 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006282 # Now try to grab the symbols.
6283 nlist=conftest.nm
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006286 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; } && test -s "$nlist"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006289 # Try sorting and uniquifying the output.
6290 if sort "$nlist" | uniq > "$nlist"T; then
6291 mv -f "$nlist"T "$nlist"
6292 else
6293 rm -f "$nlist"T
6294 fi
6295
6296 # Make sure that we snagged all the symbols we need.
6297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6299 cat <<_LT_EOF > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006300/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6301#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6302/* DATA imports from DLLs on WIN32 con't be const, because runtime
6303 relocations are performed -- see ld's documentation on pseudo-relocs. */
6304# define LT_DLSYM_CONST
6305#elif defined(__osf__)
6306/* This system does not cope well with relocations in const data. */
6307# define LT_DLSYM_CONST
6308#else
6309# define LT_DLSYM_CONST const
6310#endif
6311
Wink Savillefbaaef92010-05-27 16:25:37 -07006312#ifdef __cplusplus
6313extern "C" {
6314#endif
6315
6316_LT_EOF
6317 # Now generate the symbol file.
6318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6319
6320 cat <<_LT_EOF >> conftest.$ac_ext
6321
6322/* The mapping between symbol names and symbols. */
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006323LT_DLSYM_CONST struct {
Wink Savillefbaaef92010-05-27 16:25:37 -07006324 const char *name;
6325 void *address;
6326}
6327lt__PROGRAM__LTX_preloaded_symbols[] =
6328{
6329 { "@PROGRAM@", (void *) 0 },
6330_LT_EOF
6331 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6332 cat <<\_LT_EOF >> conftest.$ac_ext
6333 {0, (void *) 0}
6334};
6335
6336/* This works around a problem in FreeBSD linker */
6337#ifdef FREEBSD_WORKAROUND
6338static const void *lt_preloaded_setup() {
6339 return lt__PROGRAM__LTX_preloaded_symbols;
6340}
6341#endif
6342
6343#ifdef __cplusplus
6344}
6345#endif
6346_LT_EOF
6347 # Now try linking the two files.
6348 mv conftest.$ac_objext conftstm.$ac_objext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006349 lt_globsym_save_LIBS=$LIBS
6350 lt_globsym_save_CFLAGS=$CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -07006351 LIBS="conftstm.$ac_objext"
6352 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006354 (eval $ac_link) 2>&5
6355 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6357 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006358 pipe_works=yes
6359 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006360 LIBS=$lt_globsym_save_LIBS
6361 CFLAGS=$lt_globsym_save_CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -07006362 else
6363 echo "cannot find nm_test_func in $nlist" >&5
6364 fi
6365 else
6366 echo "cannot find nm_test_var in $nlist" >&5
6367 fi
6368 else
6369 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6370 fi
6371 else
6372 echo "$progname: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 fi
6375 rm -rf conftest* conftst*
6376
6377 # Do not use the global_symbol_pipe unless it works.
6378 if test "$pipe_works" = yes; then
6379 break
6380 else
6381 lt_cv_sys_global_symbol_pipe=
6382 fi
6383done
6384
6385fi
6386
6387if test -z "$lt_cv_sys_global_symbol_pipe"; then
6388 lt_cv_sys_global_symbol_to_cdecl=
6389fi
6390if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6392$as_echo "failed" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006393else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6395$as_echo "ok" >&6; }
6396fi
6397
6398# Response file support.
6399if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6400 nm_file_list_spec='@'
6401elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6402 nm_file_list_spec='@'
Wink Savillefbaaef92010-05-27 16:25:37 -07006403fi
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006427
6428
6429
6430
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6432$as_echo_n "checking for sysroot... " >&6; }
6433
6434# Check whether --with-sysroot was given.
6435if test "${with_sysroot+set}" = set; then :
6436 withval=$with_sysroot;
6437else
6438 with_sysroot=no
6439fi
6440
6441
6442lt_sysroot=
6443case ${with_sysroot} in #(
6444 yes)
6445 if test "$GCC" = yes; then
6446 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6447 fi
6448 ;; #(
6449 /*)
6450 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6451 ;; #(
6452 no|'')
6453 ;; #(
6454 *)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6456$as_echo "${with_sysroot}" >&6; }
6457 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6458 ;;
6459esac
6460
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6462$as_echo "${lt_sysroot:-no}" >&6; }
6463
6464
6465
6466
6467
6468
Wink Savillefbaaef92010-05-27 16:25:37 -07006469# Check whether --enable-libtool-lock was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006470if test "${enable_libtool_lock+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07006471 enableval=$enable_libtool_lock;
6472fi
6473
6474test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6475
6476# Some flags need to be propagated to the compiler or linker for good
6477# libtool support.
6478case $host in
6479ia64-*-hpux*)
6480 # Find out which ABI we are using.
6481 echo 'int i;' > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006483 (eval $ac_compile) 2>&5
6484 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006487 case `/usr/bin/file conftest.$ac_objext` in
6488 *ELF-32*)
6489 HPUX_IA64_MODE="32"
6490 ;;
6491 *ELF-64*)
6492 HPUX_IA64_MODE="64"
6493 ;;
6494 esac
6495 fi
6496 rm -rf conftest*
6497 ;;
6498*-*-irix6*)
6499 # Find out which ABI we are using.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006500 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006502 (eval $ac_compile) 2>&5
6503 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006506 if test "$lt_cv_prog_gnu_ld" = yes; then
6507 case `/usr/bin/file conftest.$ac_objext` in
6508 *32-bit*)
6509 LD="${LD-ld} -melf32bsmip"
6510 ;;
6511 *N32*)
6512 LD="${LD-ld} -melf32bmipn32"
6513 ;;
6514 *64-bit*)
6515 LD="${LD-ld} -melf64bmip"
6516 ;;
6517 esac
6518 else
6519 case `/usr/bin/file conftest.$ac_objext` in
6520 *32-bit*)
6521 LD="${LD-ld} -32"
6522 ;;
6523 *N32*)
6524 LD="${LD-ld} -n32"
6525 ;;
6526 *64-bit*)
6527 LD="${LD-ld} -64"
6528 ;;
6529 esac
6530 fi
6531 fi
6532 rm -rf conftest*
6533 ;;
6534
6535x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6536s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6537 # Find out which ABI we are using.
6538 echo 'int i;' > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006540 (eval $ac_compile) 2>&5
6541 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006544 case `/usr/bin/file conftest.o` in
6545 *32-bit*)
6546 case $host in
6547 x86_64-*kfreebsd*-gnu)
6548 LD="${LD-ld} -m elf_i386_fbsd"
6549 ;;
6550 x86_64-*linux*)
6551 LD="${LD-ld} -m elf_i386"
6552 ;;
6553 ppc64-*linux*|powerpc64-*linux*)
6554 LD="${LD-ld} -m elf32ppclinux"
6555 ;;
6556 s390x-*linux*)
6557 LD="${LD-ld} -m elf_s390"
6558 ;;
6559 sparc64-*linux*)
6560 LD="${LD-ld} -m elf32_sparc"
6561 ;;
6562 esac
6563 ;;
6564 *64-bit*)
6565 case $host in
6566 x86_64-*kfreebsd*-gnu)
6567 LD="${LD-ld} -m elf_x86_64_fbsd"
6568 ;;
6569 x86_64-*linux*)
6570 LD="${LD-ld} -m elf_x86_64"
6571 ;;
6572 ppc*-*linux*|powerpc*-*linux*)
6573 LD="${LD-ld} -m elf64ppc"
6574 ;;
6575 s390*-*linux*|s390*-*tpf*)
6576 LD="${LD-ld} -m elf64_s390"
6577 ;;
6578 sparc*-*linux*)
6579 LD="${LD-ld} -m elf64_sparc"
6580 ;;
6581 esac
6582 ;;
6583 esac
6584 fi
6585 rm -rf conftest*
6586 ;;
6587
6588*-*-sco3.2v5*)
6589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6590 SAVE_CFLAGS="$CFLAGS"
6591 CFLAGS="$CFLAGS -belf"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6593$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6594if ${lt_cv_cc_needs_belf+:} false; then :
6595 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006596else
6597 ac_ext=c
6598ac_cpp='$CPP $CPPFLAGS'
6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07006604/* end confdefs.h. */
6605
6606int
6607main ()
6608{
6609
6610 ;
6611 return 0;
6612}
6613_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006614if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07006615 lt_cv_cc_needs_belf=yes
6616else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006617 lt_cv_cc_needs_belf=no
Wink Savillefbaaef92010-05-27 16:25:37 -07006618fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006619rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07006621 ac_ext=c
6622ac_cpp='$CPP $CPPFLAGS'
6623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6629$as_echo "$lt_cv_cc_needs_belf" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006630 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6632 CFLAGS="$SAVE_CFLAGS"
6633 fi
6634 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006635*-*solaris*)
Wink Savillefbaaef92010-05-27 16:25:37 -07006636 # Find out which ABI we are using.
6637 echo 'int i;' > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006639 (eval $ac_compile) 2>&5
6640 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006643 case `/usr/bin/file conftest.o` in
6644 *64-bit*)
6645 case $lt_cv_prog_gnu_ld in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006646 yes*)
6647 case $host in
6648 i?86-*-solaris*)
6649 LD="${LD-ld} -m elf_x86_64"
6650 ;;
6651 sparc*-*-solaris*)
6652 LD="${LD-ld} -m elf64_sparc"
6653 ;;
6654 esac
6655 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6656 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6657 LD="${LD-ld}_sol2"
6658 fi
6659 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07006660 *)
6661 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6662 LD="${LD-ld} -64"
6663 fi
6664 ;;
6665 esac
6666 ;;
6667 esac
6668 fi
6669 rm -rf conftest*
6670 ;;
6671esac
6672
6673need_locks="$enable_libtool_lock"
6674
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006675if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}mt; ac_word=$2
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679$as_echo_n "checking for $ac_word... " >&6; }
6680if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682else
6683 if test -n "$MANIFEST_TOOL"; then
6684 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697done
6698 done
6699IFS=$as_save_IFS
6700
6701fi
6702fi
6703MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6704if test -n "$MANIFEST_TOOL"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6706$as_echo "$MANIFEST_TOOL" >&6; }
6707else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
6710fi
6711
6712
6713fi
6714if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6715 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6716 # Extract the first word of "mt", so it can be a program name with args.
6717set dummy mt; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722else
6723 if test -n "$ac_ct_MANIFEST_TOOL"; then
6724 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738 done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6744if test -n "$ac_ct_MANIFEST_TOOL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6746$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6747else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6753 MANIFEST_TOOL=":"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756yes:)
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759ac_tool_warned=yes ;;
6760esac
6761 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6762 fi
6763else
6764 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6765fi
6766
6767test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6769$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6770if ${lt_cv_path_mainfest_tool+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772else
6773 lt_cv_path_mainfest_tool=no
6774 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6775 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6776 cat conftest.err >&5
6777 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6778 lt_cv_path_mainfest_tool=yes
6779 fi
6780 rm -f conftest*
6781fi
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6783$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6784if test "x$lt_cv_path_mainfest_tool" != xyes; then
6785 MANIFEST_TOOL=:
6786fi
6787
6788
6789
6790
6791
Wink Savillefbaaef92010-05-27 16:25:37 -07006792
6793 case $host_os in
6794 rhapsody* | darwin*)
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6797set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_DSYMUTIL+:} false; then :
6801 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006802else
6803 if test -n "$DSYMUTIL"; then
6804 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006811 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07006812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006815 break 2
6816 fi
6817done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006818 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006819IFS=$as_save_IFS
6820
6821fi
6822fi
6823DSYMUTIL=$ac_cv_prog_DSYMUTIL
6824if test -n "$DSYMUTIL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6826$as_echo "$DSYMUTIL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006827else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006830fi
6831
6832
6833fi
6834if test -z "$ac_cv_prog_DSYMUTIL"; then
6835 ac_ct_DSYMUTIL=$DSYMUTIL
6836 # Extract the first word of "dsymutil", so it can be a program name with args.
6837set dummy dsymutil; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839$as_echo_n "checking for $ac_word... " >&6; }
6840if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6841 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006842else
6843 if test -n "$ac_ct_DSYMUTIL"; then
6844 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006851 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07006852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006855 break 2
6856 fi
6857done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006858 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006859IFS=$as_save_IFS
6860
6861fi
6862fi
6863ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6864if test -n "$ac_ct_DSYMUTIL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6866$as_echo "$ac_ct_DSYMUTIL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006867else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006870fi
6871
6872 if test "x$ac_ct_DSYMUTIL" = x; then
6873 DSYMUTIL=":"
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07006879ac_tool_warned=yes ;;
6880esac
6881 DSYMUTIL=$ac_ct_DSYMUTIL
6882 fi
6883else
6884 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6885fi
6886
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_NMEDIT+:} false; then :
6893 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006894else
6895 if test -n "$NMEDIT"; then
6896 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006903 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07006904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006907 break 2
6908 fi
6909done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006910 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006911IFS=$as_save_IFS
6912
6913fi
6914fi
6915NMEDIT=$ac_cv_prog_NMEDIT
6916if test -n "$NMEDIT"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6918$as_echo "$NMEDIT" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006919else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_NMEDIT"; then
6927 ac_ct_NMEDIT=$NMEDIT
6928 # Extract the first word of "nmedit", so it can be a program name with args.
6929set dummy nmedit; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6933 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006934else
6935 if test -n "$ac_ct_NMEDIT"; then
6936 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006943 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07006944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006947 break 2
6948 fi
6949done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006950 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6956if test -n "$ac_ct_NMEDIT"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6958$as_echo "$ac_ct_NMEDIT" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006959else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006962fi
6963
6964 if test "x$ac_ct_NMEDIT" = x; then
6965 NMEDIT=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07006971ac_tool_warned=yes ;;
6972esac
6973 NMEDIT=$ac_ct_NMEDIT
6974 fi
6975else
6976 NMEDIT="$ac_cv_prog_NMEDIT"
6977fi
6978
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}lipo; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_LIPO+:} false; then :
6985 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006986else
6987 if test -n "$LIPO"; then
6988 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006995 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07006996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006999 break 2
7000 fi
7001done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007002 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007003IFS=$as_save_IFS
7004
7005fi
7006fi
7007LIPO=$ac_cv_prog_LIPO
7008if test -n "$LIPO"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7010$as_echo "$LIPO" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007011else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_LIPO"; then
7019 ac_ct_LIPO=$LIPO
7020 # Extract the first word of "lipo", so it can be a program name with args.
7021set dummy lipo; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7025 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007026else
7027 if test -n "$ac_ct_LIPO"; then
7028 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007035 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07007036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_ac_ct_LIPO="lipo"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007039 break 2
7040 fi
7041done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007042 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007043IFS=$as_save_IFS
7044
7045fi
7046fi
7047ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7048if test -n "$ac_ct_LIPO"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7050$as_echo "$ac_ct_LIPO" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007051else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007054fi
7055
7056 if test "x$ac_ct_LIPO" = x; then
7057 LIPO=":"
7058 else
7059 case $cross_compiling:$ac_tool_warned in
7060yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07007063ac_tool_warned=yes ;;
7064esac
7065 LIPO=$ac_ct_LIPO
7066 fi
7067else
7068 LIPO="$ac_cv_prog_LIPO"
7069fi
7070
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}otool; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_OTOOL+:} false; then :
7077 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007078else
7079 if test -n "$OTOOL"; then
7080 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007087 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07007088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007091 break 2
7092 fi
7093done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007094 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007095IFS=$as_save_IFS
7096
7097fi
7098fi
7099OTOOL=$ac_cv_prog_OTOOL
7100if test -n "$OTOOL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7102$as_echo "$OTOOL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007103else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_OTOOL"; then
7111 ac_ct_OTOOL=$OTOOL
7112 # Extract the first word of "otool", so it can be a program name with args.
7113set dummy otool; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7117 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007118else
7119 if test -n "$ac_ct_OTOOL"; then
7120 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007127 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07007128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_ac_ct_OTOOL="otool"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007131 break 2
7132 fi
7133done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007134 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7140if test -n "$ac_ct_OTOOL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7142$as_echo "$ac_ct_OTOOL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007143else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007146fi
7147
7148 if test "x$ac_ct_OTOOL" = x; then
7149 OTOOL=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07007155ac_tool_warned=yes ;;
7156esac
7157 OTOOL=$ac_ct_OTOOL
7158 fi
7159else
7160 OTOOL="$ac_cv_prog_OTOOL"
7161fi
7162
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7165set dummy ${ac_tool_prefix}otool64; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if ${ac_cv_prog_OTOOL64+:} false; then :
7169 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007170else
7171 if test -n "$OTOOL64"; then
7172 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007179 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07007180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007183 break 2
7184 fi
7185done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007186 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007187IFS=$as_save_IFS
7188
7189fi
7190fi
7191OTOOL64=$ac_cv_prog_OTOOL64
7192if test -n "$OTOOL64"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7194$as_echo "$OTOOL64" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007195else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007198fi
7199
7200
7201fi
7202if test -z "$ac_cv_prog_OTOOL64"; then
7203 ac_ct_OTOOL64=$OTOOL64
7204 # Extract the first word of "otool64", so it can be a program name with args.
7205set dummy otool64; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7209 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007210else
7211 if test -n "$ac_ct_OTOOL64"; then
7212 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007219 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -07007220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_prog_ac_ct_OTOOL64="otool64"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007223 break 2
7224 fi
7225done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007226 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007227IFS=$as_save_IFS
7228
7229fi
7230fi
7231ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7232if test -n "$ac_ct_OTOOL64"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7234$as_echo "$ac_ct_OTOOL64" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007235else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007238fi
7239
7240 if test "x$ac_ct_OTOOL64" = x; then
7241 OTOOL64=":"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07007247ac_tool_warned=yes ;;
7248esac
7249 OTOOL64=$ac_ct_OTOOL64
7250 fi
7251else
7252 OTOOL64="$ac_cv_prog_OTOOL64"
7253fi
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7282$as_echo_n "checking for -single_module linker flag... " >&6; }
7283if ${lt_cv_apple_cc_single_mod+:} false; then :
7284 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007285else
7286 lt_cv_apple_cc_single_mod=no
7287 if test -z "${LT_MULTI_MODULE}"; then
7288 # By default we will add the -single_module flag. You can override
7289 # by either setting the environment variable LT_MULTI_MODULE
7290 # non-empty at configure time, or by adding -multi_module to the
7291 # link flags.
7292 rm -rf libconftest.dylib*
7293 echo "int foo(void){return 1;}" > conftest.c
7294 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7295-dynamiclib -Wl,-single_module conftest.c" >&5
7296 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7297 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7298 _lt_result=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007299 # If there is a non-empty error log, and "single_module"
7300 # appears in it, assume the flag caused a linker warning
7301 if test -s conftest.err && $GREP single_module conftest.err; then
7302 cat conftest.err >&5
7303 # Otherwise, if the output was created with a 0 exit code from
7304 # the compiler, it worked.
7305 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007306 lt_cv_apple_cc_single_mod=yes
7307 else
7308 cat conftest.err >&5
7309 fi
7310 rm -rf libconftest.dylib*
7311 rm -f conftest.*
7312 fi
7313fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7315$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7318$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7319if ${lt_cv_ld_exported_symbols_list+:} false; then :
7320 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007321else
7322 lt_cv_ld_exported_symbols_list=no
7323 save_LDFLAGS=$LDFLAGS
7324 echo "_main" > conftest.sym
7325 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007327/* end confdefs.h. */
7328
7329int
7330main ()
7331{
7332
7333 ;
7334 return 0;
7335}
7336_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007337if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007338 lt_cv_ld_exported_symbols_list=yes
7339else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007340 lt_cv_ld_exported_symbols_list=no
Wink Savillefbaaef92010-05-27 16:25:37 -07007341fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007342rm -f core conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007344 LDFLAGS="$save_LDFLAGS"
7345
7346fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7348$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7349
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7351$as_echo_n "checking for -force_load linker flag... " >&6; }
7352if ${lt_cv_ld_force_load+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354else
7355 lt_cv_ld_force_load=no
7356 cat > conftest.c << _LT_EOF
7357int forced_loaded() { return 2;}
7358_LT_EOF
7359 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7360 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7361 echo "$AR cru libconftest.a conftest.o" >&5
7362 $AR cru libconftest.a conftest.o 2>&5
7363 echo "$RANLIB libconftest.a" >&5
7364 $RANLIB libconftest.a 2>&5
7365 cat > conftest.c << _LT_EOF
7366int main() { return 0;}
7367_LT_EOF
7368 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7369 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7370 _lt_result=$?
7371 if test -s conftest.err && $GREP force_load conftest.err; then
7372 cat conftest.err >&5
7373 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7374 lt_cv_ld_force_load=yes
7375 else
7376 cat conftest.err >&5
7377 fi
7378 rm -f conftest.err libconftest.a conftest conftest.c
7379 rm -rf conftest.dSYM
7380
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7383$as_echo "$lt_cv_ld_force_load" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007384 case $host_os in
7385 rhapsody* | darwin1.[012])
7386 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7387 darwin1.*)
7388 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7389 darwin*) # darwin 5.x on
7390 # if running on 10.5 or later, the deployment target defaults
7391 # to the OS version, if on x86, and 10.4, the deployment
7392 # target defaults to 10.4. Don't you love it?
7393 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7394 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7395 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7396 10.[012]*)
7397 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7398 10.*)
7399 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7400 esac
7401 ;;
7402 esac
7403 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7404 _lt_dar_single_mod='$single_module'
7405 fi
7406 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7407 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7408 else
7409 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7410 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007411 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007412 _lt_dsymutil='~$DSYMUTIL $lib || :'
7413 else
7414 _lt_dsymutil=
7415 fi
7416 ;;
7417 esac
7418
7419ac_ext=c
7420ac_cpp='$CPP $CPPFLAGS'
7421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423ac_compiler_gnu=$ac_cv_c_compiler_gnu
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7425$as_echo_n "checking how to run the C preprocessor... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007426# On Suns, sometimes $CPP names a directory.
7427if test -n "$CPP" && test -d "$CPP"; then
7428 CPP=
7429fi
7430if test -z "$CPP"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007431 if ${ac_cv_prog_CPP+:} false; then :
7432 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007433else
7434 # Double quotes because CPP needs to be expanded
7435 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7436 do
7437 ac_preproc_ok=false
7438for ac_c_preproc_warn_flag in '' yes
7439do
7440 # Use a header file that comes with gcc, so configuring glibc
7441 # with a fresh cross-compiler works.
7442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7443 # <limits.h> exists even on freestanding compilers.
7444 # On the NeXT, cc -E runs the code through the compiler's parser,
7445 # not just through cpp. "Syntax error" is here to catch this case.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007447/* end confdefs.h. */
7448#ifdef __STDC__
7449# include <limits.h>
7450#else
7451# include <assert.h>
7452#endif
7453 Syntax error
7454_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007455if ac_fn_c_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007456
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007457else
Wink Savillefbaaef92010-05-27 16:25:37 -07007458 # Broken: fails on valid input.
7459continue
7460fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007461rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007462
7463 # OK, works on sane cases. Now check whether nonexistent headers
7464 # can be detected and how.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007466/* end confdefs.h. */
7467#include <ac_nonexistent.h>
7468_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007469if ac_fn_c_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007470 # Broken: success on invalid input.
7471continue
7472else
Wink Savillefbaaef92010-05-27 16:25:37 -07007473 # Passes both tests.
7474ac_preproc_ok=:
7475break
7476fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007477rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007478
7479done
7480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007481rm -f conftest.i conftest.err conftest.$ac_ext
7482if $ac_preproc_ok; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007483 break
7484fi
7485
7486 done
7487 ac_cv_prog_CPP=$CPP
7488
7489fi
7490 CPP=$ac_cv_prog_CPP
7491else
7492 ac_cv_prog_CPP=$CPP
7493fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7495$as_echo "$CPP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007496ac_preproc_ok=false
7497for ac_c_preproc_warn_flag in '' yes
7498do
7499 # Use a header file that comes with gcc, so configuring glibc
7500 # with a fresh cross-compiler works.
7501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7502 # <limits.h> exists even on freestanding compilers.
7503 # On the NeXT, cc -E runs the code through the compiler's parser,
7504 # not just through cpp. "Syntax error" is here to catch this case.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007506/* end confdefs.h. */
7507#ifdef __STDC__
7508# include <limits.h>
7509#else
7510# include <assert.h>
7511#endif
7512 Syntax error
7513_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007514if ac_fn_c_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007515
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007516else
Wink Savillefbaaef92010-05-27 16:25:37 -07007517 # Broken: fails on valid input.
7518continue
7519fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007520rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007521
7522 # OK, works on sane cases. Now check whether nonexistent headers
7523 # can be detected and how.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007525/* end confdefs.h. */
7526#include <ac_nonexistent.h>
7527_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007528if ac_fn_c_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007529 # Broken: success on invalid input.
7530continue
7531else
Wink Savillefbaaef92010-05-27 16:25:37 -07007532 # Passes both tests.
7533ac_preproc_ok=:
7534break
7535fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007536rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007537
7538done
7539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007540rm -f conftest.i conftest.err conftest.$ac_ext
7541if $ac_preproc_ok; then :
7542
Wink Savillefbaaef92010-05-27 16:25:37 -07007543else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7546as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7547See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007548fi
7549
7550ac_ext=c
7551ac_cpp='$CPP $CPPFLAGS'
7552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554ac_compiler_gnu=$ac_cv_c_compiler_gnu
7555
7556
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7558$as_echo_n "checking for ANSI C header files... " >&6; }
7559if ${ac_cv_header_stdc+:} false; then :
7560 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007561else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007563/* end confdefs.h. */
7564#include <stdlib.h>
7565#include <stdarg.h>
7566#include <string.h>
7567#include <float.h>
7568
7569int
7570main ()
7571{
7572
7573 ;
7574 return 0;
7575}
7576_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007577if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007578 ac_cv_header_stdc=yes
7579else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007580 ac_cv_header_stdc=no
Wink Savillefbaaef92010-05-27 16:25:37 -07007581fi
Wink Savillefbaaef92010-05-27 16:25:37 -07007582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583
7584if test $ac_cv_header_stdc = yes; then
7585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007587/* end confdefs.h. */
7588#include <string.h>
7589
7590_ACEOF
7591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007592 $EGREP "memchr" >/dev/null 2>&1; then :
7593
Wink Savillefbaaef92010-05-27 16:25:37 -07007594else
7595 ac_cv_header_stdc=no
7596fi
7597rm -f conftest*
7598
7599fi
7600
7601if test $ac_cv_header_stdc = yes; then
7602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007604/* end confdefs.h. */
7605#include <stdlib.h>
7606
7607_ACEOF
7608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007609 $EGREP "free" >/dev/null 2>&1; then :
7610
Wink Savillefbaaef92010-05-27 16:25:37 -07007611else
7612 ac_cv_header_stdc=no
7613fi
7614rm -f conftest*
7615
7616fi
7617
7618if test $ac_cv_header_stdc = yes; then
7619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007620 if test "$cross_compiling" = yes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007621 :
7622else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007624/* end confdefs.h. */
7625#include <ctype.h>
7626#include <stdlib.h>
7627#if ((' ' & 0x0FF) == 0x020)
7628# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7629# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7630#else
7631# define ISLOWER(c) \
7632 (('a' <= (c) && (c) <= 'i') \
7633 || ('j' <= (c) && (c) <= 'r') \
7634 || ('s' <= (c) && (c) <= 'z'))
7635# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7636#endif
7637
7638#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7639int
7640main ()
7641{
7642 int i;
7643 for (i = 0; i < 256; i++)
7644 if (XOR (islower (i), ISLOWER (i))
7645 || toupper (i) != TOUPPER (i))
7646 return 2;
7647 return 0;
7648}
7649_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007650if ac_fn_c_try_run "$LINENO"; then :
7651
Wink Savillefbaaef92010-05-27 16:25:37 -07007652else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007653 ac_cv_header_stdc=no
Wink Savillefbaaef92010-05-27 16:25:37 -07007654fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7656 conftest.$ac_objext conftest.beam conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007657fi
7658
Wink Savillefbaaef92010-05-27 16:25:37 -07007659fi
7660fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7662$as_echo "$ac_cv_header_stdc" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007663if test $ac_cv_header_stdc = yes; then
7664
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007665$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -07007666
7667fi
7668
7669# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Wink Savillefbaaef92010-05-27 16:25:37 -07007670for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7671 inttypes.h stdint.h unistd.h
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007672do :
7673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7674ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7675"
7676if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007677 cat >>confdefs.h <<_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007678#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Wink Savillefbaaef92010-05-27 16:25:37 -07007679_ACEOF
7680
7681fi
7682
7683done
7684
7685
Wink Savillefbaaef92010-05-27 16:25:37 -07007686for ac_header in dlfcn.h
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007687do :
7688 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7689"
7690if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007691 cat >>confdefs.h <<_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007692#define HAVE_DLFCN_H 1
Wink Savillefbaaef92010-05-27 16:25:37 -07007693_ACEOF
7694
7695fi
7696
7697done
7698
7699
7700
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007701func_stripname_cnf ()
Wink Savillefbaaef92010-05-27 16:25:37 -07007702{
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007703 case ${2} in
7704 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7705 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7706 esac
7707} # func_stripname_cnf
Wink Savillefbaaef92010-05-27 16:25:37 -07007708
7709
7710
7711
7712
7713# Set options
7714
7715
7716
7717 enable_dlopen=no
7718
7719
7720 enable_win32_dll=no
7721
7722
7723 # Check whether --enable-shared was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007724if test "${enable_shared+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007725 enableval=$enable_shared; p=${PACKAGE-default}
7726 case $enableval in
7727 yes) enable_shared=yes ;;
7728 no) enable_shared=no ;;
7729 *)
7730 enable_shared=no
7731 # Look at the argument we got. We use all the common list separators.
7732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7733 for pkg in $enableval; do
7734 IFS="$lt_save_ifs"
7735 if test "X$pkg" = "X$p"; then
7736 enable_shared=yes
7737 fi
7738 done
7739 IFS="$lt_save_ifs"
7740 ;;
7741 esac
7742else
7743 enable_shared=yes
7744fi
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754 # Check whether --enable-static was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007755if test "${enable_static+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007756 enableval=$enable_static; p=${PACKAGE-default}
7757 case $enableval in
7758 yes) enable_static=yes ;;
7759 no) enable_static=no ;;
7760 *)
7761 enable_static=no
7762 # Look at the argument we got. We use all the common list separators.
7763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764 for pkg in $enableval; do
7765 IFS="$lt_save_ifs"
7766 if test "X$pkg" = "X$p"; then
7767 enable_static=yes
7768 fi
7769 done
7770 IFS="$lt_save_ifs"
7771 ;;
7772 esac
7773else
7774 enable_static=yes
7775fi
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786# Check whether --with-pic was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007787if test "${with_pic+set}" = set; then :
7788 withval=$with_pic; lt_p=${PACKAGE-default}
7789 case $withval in
7790 yes|no) pic_mode=$withval ;;
7791 *)
7792 pic_mode=default
7793 # Look at the argument we got. We use all the common list separators.
7794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7795 for lt_pkg in $withval; do
7796 IFS="$lt_save_ifs"
7797 if test "X$lt_pkg" = "X$lt_p"; then
7798 pic_mode=yes
7799 fi
7800 done
7801 IFS="$lt_save_ifs"
7802 ;;
7803 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07007804else
7805 pic_mode=default
7806fi
7807
7808
7809test -z "$pic_mode" && pic_mode=default
7810
7811
7812
7813
7814
7815
7816
7817 # Check whether --enable-fast-install was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007818if test "${enable_fast_install+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007819 enableval=$enable_fast_install; p=${PACKAGE-default}
7820 case $enableval in
7821 yes) enable_fast_install=yes ;;
7822 no) enable_fast_install=no ;;
7823 *)
7824 enable_fast_install=no
7825 # Look at the argument we got. We use all the common list separators.
7826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7827 for pkg in $enableval; do
7828 IFS="$lt_save_ifs"
7829 if test "X$pkg" = "X$p"; then
7830 enable_fast_install=yes
7831 fi
7832 done
7833 IFS="$lt_save_ifs"
7834 ;;
7835 esac
7836else
7837 enable_fast_install=yes
7838fi
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850# This can be used to rebuild libtool when needed
7851LIBTOOL_DEPS="$ltmain"
7852
7853# Always use our own libtool.
7854LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007880
7881
7882
7883
7884
Wink Savillefbaaef92010-05-27 16:25:37 -07007885test -z "$LN_S" && LN_S="ln -s"
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900if test -n "${ZSH_VERSION+set}" ; then
7901 setopt NO_GLOB_SUBST
7902fi
7903
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7905$as_echo_n "checking for objdir... " >&6; }
7906if ${lt_cv_objdir+:} false; then :
7907 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007908else
7909 rm -f .libs 2>/dev/null
7910mkdir .libs 2>/dev/null
7911if test -d .libs; then
7912 lt_cv_objdir=.libs
7913else
7914 # MS-DOS does not allow filenames that begin with a dot.
7915 lt_cv_objdir=_libs
7916fi
7917rmdir .libs 2>/dev/null
7918fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7920$as_echo "$lt_cv_objdir" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007921objdir=$lt_cv_objdir
7922
7923
7924
7925
7926
7927cat >>confdefs.h <<_ACEOF
7928#define LT_OBJDIR "$lt_cv_objdir/"
7929_ACEOF
7930
7931
7932
7933
Wink Savillefbaaef92010-05-27 16:25:37 -07007934case $host_os in
7935aix3*)
7936 # AIX sometimes has problems with the GCC collect2 program. For some
7937 # reason, if we set the COLLECT_NAMES environment variable, the problems
7938 # vanish in a puff of smoke.
7939 if test "X${COLLECT_NAMES+set}" != Xset; then
7940 COLLECT_NAMES=
7941 export COLLECT_NAMES
7942 fi
7943 ;;
7944esac
7945
Wink Savillefbaaef92010-05-27 16:25:37 -07007946# Global variables:
7947ofile=libtool
7948can_build_shared=yes
7949
7950# All known linkers require a `.a' archive for static linking (except MSVC,
7951# which needs '.lib').
7952libext=a
7953
7954with_gnu_ld="$lt_cv_prog_gnu_ld"
7955
7956old_CC="$CC"
7957old_CFLAGS="$CFLAGS"
7958
7959# Set sane defaults for various variables
7960test -z "$CC" && CC=cc
7961test -z "$LTCC" && LTCC=$CC
7962test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7963test -z "$LD" && LD=ld
7964test -z "$ac_objext" && ac_objext=o
7965
7966for cc_temp in $compiler""; do
7967 case $cc_temp in
7968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7970 \-*) ;;
7971 *) break;;
7972 esac
7973done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007974cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Wink Savillefbaaef92010-05-27 16:25:37 -07007975
7976
7977# Only perform the check for file, if the check method requires it
7978test -z "$MAGIC_CMD" && MAGIC_CMD=file
7979case $deplibs_check_method in
7980file_magic*)
7981 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7983$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7984if ${lt_cv_path_MAGIC_CMD+:} false; then :
7985 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007986else
7987 case $MAGIC_CMD in
7988[\\/*] | ?:[\\/]*)
7989 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7990 ;;
7991*)
7992 lt_save_MAGIC_CMD="$MAGIC_CMD"
7993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7994 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7995 for ac_dir in $ac_dummy; do
7996 IFS="$lt_save_ifs"
7997 test -z "$ac_dir" && ac_dir=.
7998 if test -f $ac_dir/${ac_tool_prefix}file; then
7999 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8000 if test -n "$file_magic_test_file"; then
8001 case $deplibs_check_method in
8002 "file_magic "*)
8003 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8006 $EGREP "$file_magic_regex" > /dev/null; then
8007 :
8008 else
8009 cat <<_LT_EOF 1>&2
8010
8011*** Warning: the command libtool uses to detect shared libraries,
8012*** $file_magic_cmd, produces output that libtool cannot recognize.
8013*** The result is that libtool may fail to recognize shared libraries
8014*** as such. This will affect the creation of libtool libraries that
8015*** depend on shared libraries, but programs linked with such libtool
8016*** libraries will work regardless of this problem. Nevertheless, you
8017*** may want to report the problem to your system manager and/or to
8018*** bug-libtool@gnu.org
8019
8020_LT_EOF
8021 fi ;;
8022 esac
8023 fi
8024 break
8025 fi
8026 done
8027 IFS="$lt_save_ifs"
8028 MAGIC_CMD="$lt_save_MAGIC_CMD"
8029 ;;
8030esac
8031fi
8032
8033MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8034if test -n "$MAGIC_CMD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8036$as_echo "$MAGIC_CMD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008037else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008040fi
8041
8042
8043
8044
8045
8046if test -z "$lt_cv_path_MAGIC_CMD"; then
8047 if test -n "$ac_tool_prefix"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8049$as_echo_n "checking for file... " >&6; }
8050if ${lt_cv_path_MAGIC_CMD+:} false; then :
8051 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008052else
8053 case $MAGIC_CMD in
8054[\\/*] | ?:[\\/]*)
8055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8056 ;;
8057*)
8058 lt_save_MAGIC_CMD="$MAGIC_CMD"
8059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8061 for ac_dir in $ac_dummy; do
8062 IFS="$lt_save_ifs"
8063 test -z "$ac_dir" && ac_dir=.
8064 if test -f $ac_dir/file; then
8065 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8066 if test -n "$file_magic_test_file"; then
8067 case $deplibs_check_method in
8068 "file_magic "*)
8069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8072 $EGREP "$file_magic_regex" > /dev/null; then
8073 :
8074 else
8075 cat <<_LT_EOF 1>&2
8076
8077*** Warning: the command libtool uses to detect shared libraries,
8078*** $file_magic_cmd, produces output that libtool cannot recognize.
8079*** The result is that libtool may fail to recognize shared libraries
8080*** as such. This will affect the creation of libtool libraries that
8081*** depend on shared libraries, but programs linked with such libtool
8082*** libraries will work regardless of this problem. Nevertheless, you
8083*** may want to report the problem to your system manager and/or to
8084*** bug-libtool@gnu.org
8085
8086_LT_EOF
8087 fi ;;
8088 esac
8089 fi
8090 break
8091 fi
8092 done
8093 IFS="$lt_save_ifs"
8094 MAGIC_CMD="$lt_save_MAGIC_CMD"
8095 ;;
8096esac
8097fi
8098
8099MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8100if test -n "$MAGIC_CMD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8102$as_echo "$MAGIC_CMD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008103else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008106fi
8107
8108
8109 else
8110 MAGIC_CMD=:
8111 fi
8112fi
8113
8114 fi
8115 ;;
8116esac
8117
8118# Use C for the default configuration in the libtool script
8119
8120lt_save_CC="$CC"
8121ac_ext=c
8122ac_cpp='$CPP $CPPFLAGS'
8123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127
8128# Source file extension for C test sources.
8129ac_ext=c
8130
8131# Object file extension for compiled C test sources.
8132objext=o
8133objext=$objext
8134
8135# Code to be used in simple compile tests
8136lt_simple_compile_test_code="int some_variable = 0;"
8137
8138# Code to be used in simple link tests
8139lt_simple_link_test_code='int main(){return(0);}'
8140
8141
8142
8143
8144
8145
8146
8147# If no C compiler was specified, use CC.
8148LTCC=${LTCC-"$CC"}
8149
8150# If no C compiler flags were specified, use CFLAGS.
8151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8152
8153# Allow CC to be a program name with arguments.
8154compiler=$CC
8155
8156# Save the default compiler, since it gets overwritten when the other
8157# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8158compiler_DEFAULT=$CC
8159
8160# save warnings/boilerplate of simple test code
8161ac_outfile=conftest.$ac_objext
8162echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8163eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8164_lt_compiler_boilerplate=`cat conftest.err`
8165$RM conftest*
8166
8167ac_outfile=conftest.$ac_objext
8168echo "$lt_simple_link_test_code" >conftest.$ac_ext
8169eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8170_lt_linker_boilerplate=`cat conftest.err`
8171$RM -r conftest*
8172
8173
8174if test -n "$compiler"; then
8175
8176lt_prog_compiler_no_builtin_flag=
8177
8178if test "$GCC" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008179 case $cc_basename in
8180 nvcc*)
8181 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8182 *)
8183 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8184 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07008185
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8187$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8188if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8189 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008190else
8191 lt_cv_prog_compiler_rtti_exceptions=no
8192 ac_outfile=conftest.$ac_objext
8193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8194 lt_compiler_flag="-fno-rtti -fno-exceptions"
8195 # Insert the option either (1) after the last *FLAGS variable, or
8196 # (2) before a word containing "conftest.", or (3) at the end.
8197 # Note that $ac_compile itself does not contain backslashes and begins
8198 # with a dollar sign (not a hyphen), so the echo should work correctly.
8199 # The option is referenced via a variable to avoid confusing sed.
8200 lt_compile=`echo "$ac_compile" | $SED \
8201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8203 -e 's:$: $lt_compiler_flag:'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07008205 (eval "$lt_compile" 2>conftest.err)
8206 ac_status=$?
8207 cat conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008209 if (exit $ac_status) && test -s "$ac_outfile"; then
8210 # The compiler can only warn and ignore the option if not recognized
8211 # So say no if there are warnings other than the usual output.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07008213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8215 lt_cv_prog_compiler_rtti_exceptions=yes
8216 fi
8217 fi
8218 $RM conftest*
8219
8220fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8222$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008223
8224if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8225 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8226else
8227 :
8228fi
8229
8230fi
8231
8232
8233
8234
8235
8236
8237 lt_prog_compiler_wl=
8238lt_prog_compiler_pic=
8239lt_prog_compiler_static=
8240
Wink Savillefbaaef92010-05-27 16:25:37 -07008241
8242 if test "$GCC" = yes; then
8243 lt_prog_compiler_wl='-Wl,'
8244 lt_prog_compiler_static='-static'
8245
8246 case $host_os in
8247 aix*)
8248 # All AIX code is PIC.
8249 if test "$host_cpu" = ia64; then
8250 # AIX 5 now supports IA64 processor
8251 lt_prog_compiler_static='-Bstatic'
8252 fi
8253 ;;
8254
8255 amigaos*)
8256 case $host_cpu in
8257 powerpc)
8258 # see comment about AmigaOS4 .so support
8259 lt_prog_compiler_pic='-fPIC'
8260 ;;
8261 m68k)
8262 # FIXME: we need at least 68020 code to build shared libraries, but
8263 # adding the `-m68020' flag to GCC prevents building anything better,
8264 # like `-m68040'.
8265 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8266 ;;
8267 esac
8268 ;;
8269
8270 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8271 # PIC is the default for these OSes.
8272 ;;
8273
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008274 mingw* | cygwin* | pw32* | os2* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008275 # This hack is so that the source file can tell whether it is being
8276 # built for inclusion in a dll (and should export symbols for example).
8277 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8278 # (--disable-auto-import) libraries
8279 lt_prog_compiler_pic='-DDLL_EXPORT'
8280 ;;
8281
8282 darwin* | rhapsody*)
8283 # PIC is the default on this platform
8284 # Common symbols not allowed in MH_DYLIB files
8285 lt_prog_compiler_pic='-fno-common'
8286 ;;
8287
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008288 haiku*)
8289 # PIC is the default for Haiku.
8290 # The "-static" flag exists, but is broken.
8291 lt_prog_compiler_static=
8292 ;;
8293
Wink Savillefbaaef92010-05-27 16:25:37 -07008294 hpux*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008295 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8296 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8297 # sets the default TLS model and affects inlining.
Wink Savillefbaaef92010-05-27 16:25:37 -07008298 case $host_cpu in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008299 hppa*64*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008300 # +Z the default
8301 ;;
8302 *)
8303 lt_prog_compiler_pic='-fPIC'
8304 ;;
8305 esac
8306 ;;
8307
8308 interix[3-9]*)
8309 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8310 # Instead, we relocate shared libraries at runtime.
8311 ;;
8312
8313 msdosdjgpp*)
8314 # Just because we use GCC doesn't mean we suddenly get shared libraries
8315 # on systems that don't support them.
8316 lt_prog_compiler_can_build_shared=no
8317 enable_shared=no
8318 ;;
8319
8320 *nto* | *qnx*)
8321 # QNX uses GNU C++, but need to define -shared option too, otherwise
8322 # it will coredump.
8323 lt_prog_compiler_pic='-fPIC -shared'
8324 ;;
8325
8326 sysv4*MP*)
8327 if test -d /usr/nec; then
8328 lt_prog_compiler_pic=-Kconform_pic
8329 fi
8330 ;;
8331
8332 *)
8333 lt_prog_compiler_pic='-fPIC'
8334 ;;
8335 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008336
8337 case $cc_basename in
8338 nvcc*) # Cuda Compiler Driver 2.2
8339 lt_prog_compiler_wl='-Xlinker '
8340 if test -n "$lt_prog_compiler_pic"; then
8341 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8342 fi
8343 ;;
8344 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07008345 else
8346 # PORTME Check for flag to pass linker flags through the system compiler.
8347 case $host_os in
8348 aix*)
8349 lt_prog_compiler_wl='-Wl,'
8350 if test "$host_cpu" = ia64; then
8351 # AIX 5 now supports IA64 processor
8352 lt_prog_compiler_static='-Bstatic'
8353 else
8354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8355 fi
8356 ;;
8357
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008358 mingw* | cygwin* | pw32* | os2* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008359 # This hack is so that the source file can tell whether it is being
8360 # built for inclusion in a dll (and should export symbols for example).
8361 lt_prog_compiler_pic='-DDLL_EXPORT'
8362 ;;
8363
8364 hpux9* | hpux10* | hpux11*)
8365 lt_prog_compiler_wl='-Wl,'
8366 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8367 # not for PA HP-UX.
8368 case $host_cpu in
8369 hppa*64*|ia64*)
8370 # +Z the default
8371 ;;
8372 *)
8373 lt_prog_compiler_pic='+Z'
8374 ;;
8375 esac
8376 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8377 lt_prog_compiler_static='${wl}-a ${wl}archive'
8378 ;;
8379
8380 irix5* | irix6* | nonstopux*)
8381 lt_prog_compiler_wl='-Wl,'
8382 # PIC (with -KPIC) is the default.
8383 lt_prog_compiler_static='-non_shared'
8384 ;;
8385
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07008387 case $cc_basename in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008388 # old Intel for x86_64 which still supported -KPIC.
8389 ecc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-static'
8393 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008394 # icc used to be incompatible with GCC.
8395 # ICC 10 doesn't accept -KPIC any more.
8396 icc* | ifort*)
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='-fPIC'
8399 lt_prog_compiler_static='-static'
8400 ;;
8401 # Lahey Fortran 8.1.
8402 lf95*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='--shared'
8405 lt_prog_compiler_static='--static'
8406 ;;
8407 nagfor*)
8408 # NAG Fortran compiler
8409 lt_prog_compiler_wl='-Wl,-Wl,,'
8410 lt_prog_compiler_pic='-PIC'
8411 lt_prog_compiler_static='-Bstatic'
8412 ;;
8413 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008414 # Portland Group compilers (*not* the Pentium gcc compiler,
8415 # which looks to be a dead project)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-fpic'
8418 lt_prog_compiler_static='-Bstatic'
8419 ;;
8420 ccc*)
8421 lt_prog_compiler_wl='-Wl,'
8422 # All Alpha code is PIC.
8423 lt_prog_compiler_static='-non_shared'
8424 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008425 xl* | bgxl* | bgf* | mpixl*)
8426 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Wink Savillefbaaef92010-05-27 16:25:37 -07008427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-qpic'
8429 lt_prog_compiler_static='-qstaticlink'
8430 ;;
8431 *)
8432 case `$CC -V 2>&1 | sed 5q` in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008433 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8434 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
8437 lt_prog_compiler_wl=''
8438 ;;
8439 *Sun\ F* | *Sun*Fortran*)
8440 lt_prog_compiler_pic='-KPIC'
8441 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_wl='-Qoption ld '
8443 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07008444 *Sun\ C*)
8445 # Sun C 5.9
8446 lt_prog_compiler_pic='-KPIC'
8447 lt_prog_compiler_static='-Bstatic'
8448 lt_prog_compiler_wl='-Wl,'
8449 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008450 *Intel*\ [CF]*Compiler*)
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_pic='-fPIC'
8453 lt_prog_compiler_static='-static'
8454 ;;
8455 *Portland\ Group*)
8456 lt_prog_compiler_wl='-Wl,'
8457 lt_prog_compiler_pic='-fpic'
Wink Savillefbaaef92010-05-27 16:25:37 -07008458 lt_prog_compiler_static='-Bstatic'
Wink Savillefbaaef92010-05-27 16:25:37 -07008459 ;;
8460 esac
8461 ;;
8462 esac
8463 ;;
8464
8465 newsos6)
8466 lt_prog_compiler_pic='-KPIC'
8467 lt_prog_compiler_static='-Bstatic'
8468 ;;
8469
8470 *nto* | *qnx*)
8471 # QNX uses GNU C++, but need to define -shared option too, otherwise
8472 # it will coredump.
8473 lt_prog_compiler_pic='-fPIC -shared'
8474 ;;
8475
8476 osf3* | osf4* | osf5*)
8477 lt_prog_compiler_wl='-Wl,'
8478 # All OSF/1 code is PIC.
8479 lt_prog_compiler_static='-non_shared'
8480 ;;
8481
8482 rdos*)
8483 lt_prog_compiler_static='-non_shared'
8484 ;;
8485
8486 solaris*)
8487 lt_prog_compiler_pic='-KPIC'
8488 lt_prog_compiler_static='-Bstatic'
8489 case $cc_basename in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008490 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008491 lt_prog_compiler_wl='-Qoption ld ';;
8492 *)
8493 lt_prog_compiler_wl='-Wl,';;
8494 esac
8495 ;;
8496
8497 sunos4*)
8498 lt_prog_compiler_wl='-Qoption ld '
8499 lt_prog_compiler_pic='-PIC'
8500 lt_prog_compiler_static='-Bstatic'
8501 ;;
8502
8503 sysv4 | sysv4.2uw2* | sysv4.3*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8507 ;;
8508
8509 sysv4*MP*)
8510 if test -d /usr/nec ;then
8511 lt_prog_compiler_pic='-Kconform_pic'
8512 lt_prog_compiler_static='-Bstatic'
8513 fi
8514 ;;
8515
8516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
8521
8522 unicos*)
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_can_build_shared=no
8525 ;;
8526
8527 uts4*)
8528 lt_prog_compiler_pic='-pic'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
8531
8532 *)
8533 lt_prog_compiler_can_build_shared=no
8534 ;;
8535 esac
8536 fi
8537
8538case $host_os in
8539 # For platforms which do not support PIC, -DPIC is meaningless:
8540 *djgpp*)
8541 lt_prog_compiler_pic=
8542 ;;
8543 *)
8544 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8545 ;;
8546esac
Wink Savillefbaaef92010-05-27 16:25:37 -07008547
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8549$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8550if ${lt_cv_prog_compiler_pic+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552else
8553 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8556$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8557lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Wink Savillefbaaef92010-05-27 16:25:37 -07008558
8559#
8560# Check to make sure the PIC flag actually works.
8561#
8562if test -n "$lt_prog_compiler_pic"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8564$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8565if ${lt_cv_prog_compiler_pic_works+:} false; then :
8566 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008567else
8568 lt_cv_prog_compiler_pic_works=no
8569 ac_outfile=conftest.$ac_objext
8570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8571 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8572 # Insert the option either (1) after the last *FLAGS variable, or
8573 # (2) before a word containing "conftest.", or (3) at the end.
8574 # Note that $ac_compile itself does not contain backslashes and begins
8575 # with a dollar sign (not a hyphen), so the echo should work correctly.
8576 # The option is referenced via a variable to avoid confusing sed.
8577 lt_compile=`echo "$ac_compile" | $SED \
8578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8580 -e 's:$: $lt_compiler_flag:'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07008582 (eval "$lt_compile" 2>conftest.err)
8583 ac_status=$?
8584 cat conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008586 if (exit $ac_status) && test -s "$ac_outfile"; then
8587 # The compiler can only warn and ignore the option if not recognized
8588 # So say no if there are warnings other than the usual output.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07008590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8592 lt_cv_prog_compiler_pic_works=yes
8593 fi
8594 fi
8595 $RM conftest*
8596
8597fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8599$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008600
8601if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8602 case $lt_prog_compiler_pic in
8603 "" | " "*) ;;
8604 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8605 esac
8606else
8607 lt_prog_compiler_pic=
8608 lt_prog_compiler_can_build_shared=no
8609fi
8610
8611fi
8612
8613
8614
8615
8616
8617
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008618
8619
8620
8621
8622
Wink Savillefbaaef92010-05-27 16:25:37 -07008623#
8624# Check to make sure the static flag actually works.
8625#
8626wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8628$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8629if ${lt_cv_prog_compiler_static_works+:} false; then :
8630 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008631else
8632 lt_cv_prog_compiler_static_works=no
8633 save_LDFLAGS="$LDFLAGS"
8634 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8637 # The linker can only warn and ignore the option if not recognized
8638 # So say no if there are warnings
8639 if test -s conftest.err; then
8640 # Append any errors to the config.log.
8641 cat conftest.err 1>&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07008643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8644 if diff conftest.exp conftest.er2 >/dev/null; then
8645 lt_cv_prog_compiler_static_works=yes
8646 fi
8647 else
8648 lt_cv_prog_compiler_static_works=yes
8649 fi
8650 fi
8651 $RM -r conftest*
8652 LDFLAGS="$save_LDFLAGS"
8653
8654fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8656$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008657
8658if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8659 :
8660else
8661 lt_prog_compiler_static=
8662fi
8663
8664
8665
8666
8667
8668
8669
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8671$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8672if ${lt_cv_prog_compiler_c_o+:} false; then :
8673 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008674else
8675 lt_cv_prog_compiler_c_o=no
8676 $RM -r conftest 2>/dev/null
8677 mkdir conftest
8678 cd conftest
8679 mkdir out
8680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681
8682 lt_compiler_flag="-o out/conftest2.$ac_objext"
8683 # Insert the option either (1) after the last *FLAGS variable, or
8684 # (2) before a word containing "conftest.", or (3) at the end.
8685 # Note that $ac_compile itself does not contain backslashes and begins
8686 # with a dollar sign (not a hyphen), so the echo should work correctly.
8687 lt_compile=`echo "$ac_compile" | $SED \
8688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690 -e 's:$: $lt_compiler_flag:'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07008692 (eval "$lt_compile" 2>out/conftest.err)
8693 ac_status=$?
8694 cat out/conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008696 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8697 then
8698 # The compiler can only warn and ignore the option if not recognized
8699 # So say no if there are warnings
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07008701 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8702 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8703 lt_cv_prog_compiler_c_o=yes
8704 fi
8705 fi
8706 chmod u+w . 2>&5
8707 $RM conftest*
8708 # SGI C++ compiler will create directory out/ii_files/ for
8709 # template instantiation
8710 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8711 $RM out/* && rmdir out
8712 cd ..
8713 $RM -r conftest
8714 $RM conftest*
8715
8716fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8718$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008719
8720
8721
8722
8723
8724
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8726$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8727if ${lt_cv_prog_compiler_c_o+:} false; then :
8728 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008729else
8730 lt_cv_prog_compiler_c_o=no
8731 $RM -r conftest 2>/dev/null
8732 mkdir conftest
8733 cd conftest
8734 mkdir out
8735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736
8737 lt_compiler_flag="-o out/conftest2.$ac_objext"
8738 # Insert the option either (1) after the last *FLAGS variable, or
8739 # (2) before a word containing "conftest.", or (3) at the end.
8740 # Note that $ac_compile itself does not contain backslashes and begins
8741 # with a dollar sign (not a hyphen), so the echo should work correctly.
8742 lt_compile=`echo "$ac_compile" | $SED \
8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745 -e 's:$: $lt_compiler_flag:'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07008747 (eval "$lt_compile" 2>out/conftest.err)
8748 ac_status=$?
8749 cat out/conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8752 then
8753 # The compiler can only warn and ignore the option if not recognized
8754 # So say no if there are warnings
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07008756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_c_o=yes
8759 fi
8760 fi
8761 chmod u+w . 2>&5
8762 $RM conftest*
8763 # SGI C++ compiler will create directory out/ii_files/ for
8764 # template instantiation
8765 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8766 $RM out/* && rmdir out
8767 cd ..
8768 $RM -r conftest
8769 $RM conftest*
8770
8771fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8773$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008774
8775
8776
8777
8778hard_links="nottested"
8779if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8780 # do not overwrite the value of need_locks provided by the user
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8782$as_echo_n "checking if we can lock with hard links... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008783 hard_links=yes
8784 $RM conftest*
8785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8786 touch conftest.a
8787 ln conftest.a conftest.b 2>&5 || hard_links=no
8788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8790$as_echo "$hard_links" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008791 if test "$hard_links" = no; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8793$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07008794 need_locks=warn
8795 fi
8796else
8797 need_locks=no
8798fi
8799
8800
8801
8802
8803
8804
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8806$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008807
8808 runpath_var=
8809 allow_undefined_flag=
8810 always_export_symbols=no
8811 archive_cmds=
8812 archive_expsym_cmds=
8813 compiler_needs_object=no
8814 enable_shared_with_static_runtimes=no
8815 export_dynamic_flag_spec=
8816 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8817 hardcode_automatic=no
8818 hardcode_direct=no
8819 hardcode_direct_absolute=no
8820 hardcode_libdir_flag_spec=
Wink Savillefbaaef92010-05-27 16:25:37 -07008821 hardcode_libdir_separator=
8822 hardcode_minus_L=no
8823 hardcode_shlibpath_var=unsupported
8824 inherit_rpath=no
8825 link_all_deplibs=unknown
8826 module_cmds=
8827 module_expsym_cmds=
8828 old_archive_from_new_cmds=
8829 old_archive_from_expsyms_cmds=
8830 thread_safe_flag_spec=
8831 whole_archive_flag_spec=
8832 # include_expsyms should be a list of space-separated symbols to be *always*
8833 # included in the symbol list
8834 include_expsyms=
8835 # exclude_expsyms can be an extended regexp of symbols to exclude
8836 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8838 # as well as any symbol that contains `d'.
8839 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8841 # platforms (ab)use it in PIC code, but their linkers get confused if
8842 # the symbol is explicitly referenced. Since portable code cannot
8843 # rely on this symbol name, it's probably fine to never include it in
8844 # preloaded symbol tables.
8845 # Exclude shared library initialization/finalization symbols.
8846 extract_expsyms_cmds=
8847
8848 case $host_os in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008849 cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008850 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8851 # When not using gcc, we currently assume that we are using
8852 # Microsoft Visual C++.
8853 if test "$GCC" != yes; then
8854 with_gnu_ld=no
8855 fi
8856 ;;
8857 interix*)
8858 # we just hope/assume this is gcc and not c89 (= MSVC++)
8859 with_gnu_ld=yes
8860 ;;
8861 openbsd*)
8862 with_gnu_ld=no
8863 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008864 linux* | k*bsd*-gnu | gnu*)
8865 link_all_deplibs=no
8866 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07008867 esac
8868
8869 ld_shlibs=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008870
8871 # On some targets, GNU ld is compatible enough with the native linker
8872 # that we're better off using the native interface for both.
8873 lt_use_gnu_ld_interface=no
Wink Savillefbaaef92010-05-27 16:25:37 -07008874 if test "$with_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008875 case $host_os in
8876 aix*)
8877 # The AIX port of GNU ld has always aspired to compatibility
8878 # with the native linker. However, as the warning in the GNU ld
8879 # block says, versions before 2.19.5* couldn't really create working
8880 # shared libraries, regardless of the interface used.
8881 case `$LD -v 2>&1` in
8882 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8883 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8884 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8885 *)
8886 lt_use_gnu_ld_interface=yes
8887 ;;
8888 esac
8889 ;;
8890 *)
8891 lt_use_gnu_ld_interface=yes
8892 ;;
8893 esac
8894 fi
8895
8896 if test "$lt_use_gnu_ld_interface" = yes; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008897 # If archive_cmds runs LD, not CC, wlarc should be empty
8898 wlarc='${wl}'
8899
8900 # Set some defaults for GNU ld with shared library support. These
8901 # are reset later if shared libraries are not supported. Putting them
8902 # here allows them to be overridden if necessary.
8903 runpath_var=LD_RUN_PATH
8904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905 export_dynamic_flag_spec='${wl}--export-dynamic'
8906 # ancient GNU ld didn't support --whole-archive et. al.
8907 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8908 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8909 else
8910 whole_archive_flag_spec=
8911 fi
8912 supports_anon_versioning=no
8913 case `$LD -v 2>&1` in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008914 *GNU\ gold*) supports_anon_versioning=yes ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07008915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8918 *\ 2.11.*) ;; # other 2.11 versions
8919 *) supports_anon_versioning=yes ;;
8920 esac
8921
8922 # See if GNU ld supports shared libraries.
8923 case $host_os in
8924 aix[3-9]*)
8925 # On AIX/PPC, the GNU linker is very broken
8926 if test "$host_cpu" != ia64; then
8927 ld_shlibs=no
8928 cat <<_LT_EOF 1>&2
8929
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008930*** Warning: the GNU linker, at least up to release 2.19, is reported
Wink Savillefbaaef92010-05-27 16:25:37 -07008931*** to be unable to reliably create shared libraries on AIX.
8932*** Therefore, libtool is disabling shared libraries support. If you
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008933*** really care for shared libraries, you may want to install binutils
8934*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8935*** You will then need to restart the configuration process.
Wink Savillefbaaef92010-05-27 16:25:37 -07008936
8937_LT_EOF
8938 fi
8939 ;;
8940
8941 amigaos*)
8942 case $host_cpu in
8943 powerpc)
8944 # see comment about AmigaOS4 .so support
8945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8946 archive_expsym_cmds=''
8947 ;;
8948 m68k)
8949 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)'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_minus_L=yes
8952 ;;
8953 esac
8954 ;;
8955
8956 beos*)
8957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8958 allow_undefined_flag=unsupported
8959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8960 # support --undefined. This deserves some investigation. FIXME
8961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962 else
8963 ld_shlibs=no
8964 fi
8965 ;;
8966
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008967 cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07008968 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8969 # as there is no search path for DLLs.
8970 hardcode_libdir_flag_spec='-L$libdir'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008971 export_dynamic_flag_spec='${wl}--export-all-symbols'
Wink Savillefbaaef92010-05-27 16:25:37 -07008972 allow_undefined_flag=unsupported
8973 always_export_symbols=no
8974 enable_shared_with_static_runtimes=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8976 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Wink Savillefbaaef92010-05-27 16:25:37 -07008977
8978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8980 # If the export-symbols file already is a .def file (1st line
8981 # is EXPORTS), use it as is; otherwise, prepend...
8982 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8983 cp $export_symbols $output_objdir/$soname.def;
8984 else
8985 echo EXPORTS > $output_objdir/$soname.def;
8986 cat $export_symbols >> $output_objdir/$soname.def;
8987 fi~
8988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
8993
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008994 haiku*)
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 link_all_deplibs=yes
8997 ;;
8998
Wink Savillefbaaef92010-05-27 16:25:37 -07008999 interix[3-9]*)
9000 hardcode_direct=no
9001 hardcode_shlibpath_var=no
9002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9003 export_dynamic_flag_spec='${wl}-E'
9004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9005 # Instead, shared libraries are loaded at an image base (0x10000000 by
9006 # default) and relocated if they conflict, which is a slow very memory
9007 # consuming and fragmenting process. To avoid this, we pick a random,
9008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9011 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'
9012 ;;
9013
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009014 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07009015 tmp_diet=no
9016 if test "$host_os" = linux-dietlibc; then
9017 case $cc_basename in
9018 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9019 esac
9020 fi
9021 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9022 && test "$tmp_diet" = no
9023 then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009024 tmp_addflag=' $pic_flag'
Wink Savillefbaaef92010-05-27 16:25:37 -07009025 tmp_sharedflag='-shared'
9026 case $cc_basename,$host_cpu in
9027 pgcc*) # Portland Group C compiler
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009028 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Wink Savillefbaaef92010-05-27 16:25:37 -07009029 tmp_addflag=' $pic_flag'
9030 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009031 pgf77* | pgf90* | pgf95* | pgfortran*)
9032 # Portland Group f77 and f90 compilers
9033 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Wink Savillefbaaef92010-05-27 16:25:37 -07009034 tmp_addflag=' $pic_flag -Mnomain' ;;
9035 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9036 tmp_addflag=' -i_dynamic' ;;
9037 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9038 tmp_addflag=' -i_dynamic -nofor_main' ;;
9039 ifc* | ifort*) # Intel Fortran compiler
9040 tmp_addflag=' -nofor_main' ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009041 lf95*) # Lahey Fortran 8.1
9042 whole_archive_flag_spec=
9043 tmp_sharedflag='--shared' ;;
9044 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Wink Savillefbaaef92010-05-27 16:25:37 -07009045 tmp_sharedflag='-qmkshrobj'
9046 tmp_addflag= ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009047 nvcc*) # Cuda Compiler Driver 2.2
9048 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9049 compiler_needs_object=yes
9050 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07009051 esac
9052 case `$CC -V 2>&1 | sed 5q` in
9053 *Sun\ C*) # Sun C 5.9
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009054 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Wink Savillefbaaef92010-05-27 16:25:37 -07009055 compiler_needs_object=yes
9056 tmp_sharedflag='-G' ;;
9057 *Sun\ F*) # Sun Fortran 8.3
9058 tmp_sharedflag='-G' ;;
9059 esac
9060 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061
9062 if test "x$supports_anon_versioning" = xyes; then
9063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9065 echo "local: *; };" >> $output_objdir/$libname.ver~
9066 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9067 fi
9068
9069 case $cc_basename in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009070 xlf* | bgf* | bgxlf* | mpixlf*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009071 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9072 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009075 if test "x$supports_anon_versioning" = xyes; then
9076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9078 echo "local: *; };" >> $output_objdir/$libname.ver~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009079 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009080 fi
9081 ;;
9082 esac
9083 else
9084 ld_shlibs=no
9085 fi
9086 ;;
9087
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009088 netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07009089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9090 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9091 wlarc=
9092 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9094 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009095 fi
9096 ;;
9097
9098 solaris*)
9099 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9100 ld_shlibs=no
9101 cat <<_LT_EOF 1>&2
9102
9103*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9104*** create shared libraries on Solaris systems. Therefore, libtool
9105*** is disabling shared libraries support. We urge you to upgrade GNU
9106*** binutils to release 2.9.1 or newer. Another option is to modify
9107*** your PATH or compiler configuration so that the native linker is
9108*** used, and then restart.
9109
9110_LT_EOF
9111 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009112 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009114 else
9115 ld_shlibs=no
9116 fi
9117 ;;
9118
9119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9120 case `$LD -v 2>&1` in
9121 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9122 ld_shlibs=no
9123 cat <<_LT_EOF 1>&2
9124
9125*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9126*** reliably create shared libraries on SCO systems. Therefore, libtool
9127*** is disabling shared libraries support. We urge you to upgrade GNU
9128*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9129*** your PATH or compiler configuration so that the native linker is
9130*** used, and then restart.
9131
9132_LT_EOF
9133 ;;
9134 *)
9135 # For security reasons, it is highly recommended that you always
9136 # use absolute paths for naming shared libraries, and exclude the
9137 # DT_RUNPATH tag from executables and libraries. But doing so
9138 # requires that you compile everything twice, which is a pain.
9139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9143 else
9144 ld_shlibs=no
9145 fi
9146 ;;
9147 esac
9148 ;;
9149
9150 sunos4*)
9151 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9152 wlarc=
9153 hardcode_direct=yes
9154 hardcode_shlibpath_var=no
9155 ;;
9156
9157 *)
9158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9160 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009161 else
9162 ld_shlibs=no
9163 fi
9164 ;;
9165 esac
9166
9167 if test "$ld_shlibs" = no; then
9168 runpath_var=
9169 hardcode_libdir_flag_spec=
9170 export_dynamic_flag_spec=
9171 whole_archive_flag_spec=
9172 fi
9173 else
9174 # PORTME fill in a description of your system's linker (not GNU ld)
9175 case $host_os in
9176 aix3*)
9177 allow_undefined_flag=unsupported
9178 always_export_symbols=yes
9179 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'
9180 # Note: this linker hardcodes the directories in LIBPATH if there
9181 # are no directories specified by -L.
9182 hardcode_minus_L=yes
9183 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9184 # Neither direct hardcoding nor static linking is supported with a
9185 # broken collect2.
9186 hardcode_direct=unsupported
9187 fi
9188 ;;
9189
9190 aix[4-9]*)
9191 if test "$host_cpu" = ia64; then
9192 # On IA64, the linker does run time linking by default, so we don't
9193 # have to do anything special.
9194 aix_use_runtimelinking=no
9195 exp_sym_flag='-Bexport'
9196 no_entry_flag=""
9197 else
9198 # If we're using GNU nm, then we don't want the "-C" option.
9199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009200 # Also, AIX nm treats weak defined symbols like other global
9201 # defined symbols, whereas GNU nm marks them as "W".
Wink Savillefbaaef92010-05-27 16:25:37 -07009202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009203 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Wink Savillefbaaef92010-05-27 16:25:37 -07009204 else
9205 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'
9206 fi
9207 aix_use_runtimelinking=no
9208
9209 # Test if we are trying to use run time linking or normal
9210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9211 # need to do runtime linking.
9212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9213 for ld_flag in $LDFLAGS; do
9214 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9215 aix_use_runtimelinking=yes
9216 break
9217 fi
9218 done
9219 ;;
9220 esac
9221
9222 exp_sym_flag='-bexport'
9223 no_entry_flag='-bnoentry'
9224 fi
9225
9226 # When large executables or shared objects are built, AIX ld can
9227 # have problems creating the table of contents. If linking a library
9228 # or program results in "error TOC overflow" add -mminimal-toc to
9229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9231
9232 archive_cmds=''
9233 hardcode_direct=yes
9234 hardcode_direct_absolute=yes
9235 hardcode_libdir_separator=':'
9236 link_all_deplibs=yes
9237 file_list_spec='${wl}-f,'
9238
9239 if test "$GCC" = yes; then
9240 case $host_os in aix4.[012]|aix4.[012].*)
9241 # We only want to do this on AIX 4.2 and lower, the check
9242 # below for broken collect2 doesn't work under 4.3+
9243 collect2name=`${CC} -print-prog-name=collect2`
9244 if test -f "$collect2name" &&
9245 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9246 then
9247 # We have reworked collect2
9248 :
9249 else
9250 # We have old collect2
9251 hardcode_direct=unsupported
9252 # It fails to find uninstalled libraries when the uninstalled
9253 # path is not listed in the libpath. Setting hardcode_minus_L
9254 # to unsupported forces relinking
9255 hardcode_minus_L=yes
9256 hardcode_libdir_flag_spec='-L$libdir'
9257 hardcode_libdir_separator=
9258 fi
9259 ;;
9260 esac
9261 shared_flag='-shared'
9262 if test "$aix_use_runtimelinking" = yes; then
9263 shared_flag="$shared_flag "'${wl}-G'
9264 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009265 link_all_deplibs=no
Wink Savillefbaaef92010-05-27 16:25:37 -07009266 else
9267 # not using gcc
9268 if test "$host_cpu" = ia64; then
9269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9270 # chokes on -Wl,-G. The following line is correct:
9271 shared_flag='-G'
9272 else
9273 if test "$aix_use_runtimelinking" = yes; then
9274 shared_flag='${wl}-G'
9275 else
9276 shared_flag='${wl}-bM:SRE'
9277 fi
9278 fi
9279 fi
9280
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009281 export_dynamic_flag_spec='${wl}-bexpall'
Wink Savillefbaaef92010-05-27 16:25:37 -07009282 # It seems that -bexpall does not export symbols beginning with
9283 # underscore (_), so it is better to generate a list of symbols to export.
9284 always_export_symbols=yes
9285 if test "$aix_use_runtimelinking" = yes; then
9286 # Warning - without using the other runtime loading flags (-brtl),
9287 # -berok will link without error, but may produce a broken library.
9288 allow_undefined_flag='-berok'
9289 # Determine the default libpath from the value encoded in an
9290 # empty executable.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009291 if test "${lt_cv_aix_libpath+set}" = set; then
9292 aix_libpath=$lt_cv_aix_libpath
9293else
9294 if ${lt_cv_aix_libpath_+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07009298/* end confdefs.h. */
9299
9300int
9301main ()
9302{
9303
9304 ;
9305 return 0;
9306}
9307_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009308if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07009309
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009310 lt_aix_libpath_sed='
9311 /Import File Strings/,/^$/ {
9312 /^0/ {
9313 s/^0 *\([^ ]*\) *$/\1/
9314 p
9315 }
9316 }'
9317 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9318 # Check for a 64-bit object if we didn't find anything.
9319 if test -z "$lt_cv_aix_libpath_"; then
9320 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9321 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009322fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009323rm -f core conftest.err conftest.$ac_objext \
9324 conftest$ac_exeext conftest.$ac_ext
9325 if test -z "$lt_cv_aix_libpath_"; then
9326 lt_cv_aix_libpath_="/usr/lib:/lib"
9327 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009328
9329fi
9330
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009331 aix_libpath=$lt_cv_aix_libpath_
9332fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009333
9334 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009335 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Wink Savillefbaaef92010-05-27 16:25:37 -07009336 else
9337 if test "$host_cpu" = ia64; then
9338 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9339 allow_undefined_flag="-z nodefs"
9340 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"
9341 else
9342 # Determine the default libpath from the value encoded in an
9343 # empty executable.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009344 if test "${lt_cv_aix_libpath+set}" = set; then
9345 aix_libpath=$lt_cv_aix_libpath
9346else
9347 if ${lt_cv_aix_libpath_+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349else
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07009351/* end confdefs.h. */
9352
9353int
9354main ()
9355{
9356
9357 ;
9358 return 0;
9359}
9360_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009361if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07009362
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009363 lt_aix_libpath_sed='
9364 /Import File Strings/,/^$/ {
9365 /^0/ {
9366 s/^0 *\([^ ]*\) *$/\1/
9367 p
9368 }
9369 }'
9370 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9371 # Check for a 64-bit object if we didn't find anything.
9372 if test -z "$lt_cv_aix_libpath_"; then
9373 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9374 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009375fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009376rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9378 if test -z "$lt_cv_aix_libpath_"; then
9379 lt_cv_aix_libpath_="/usr/lib:/lib"
9380 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009381
9382fi
9383
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009384 aix_libpath=$lt_cv_aix_libpath_
9385fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009386
9387 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9388 # Warning - without using the other run time loading flags,
9389 # -berok will link without error, but may produce a broken library.
9390 no_undefined_flag=' ${wl}-bernotok'
9391 allow_undefined_flag=' ${wl}-berok'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009392 if test "$with_gnu_ld" = yes; then
9393 # We only use this code for GNU lds that support --whole-archive.
9394 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9395 else
9396 # Exported symbols can be pulled into shared objects from archives
9397 whole_archive_flag_spec='$convenience'
9398 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009399 archive_cmds_need_lc=yes
9400 # This is similar to how AIX traditionally builds its shared libraries.
9401 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'
9402 fi
9403 fi
9404 ;;
9405
9406 amigaos*)
9407 case $host_cpu in
9408 powerpc)
9409 # see comment about AmigaOS4 .so support
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds=''
9412 ;;
9413 m68k)
9414 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)'
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_minus_L=yes
9417 ;;
9418 esac
9419 ;;
9420
9421 bsdi[45]*)
9422 export_dynamic_flag_spec=-rdynamic
9423 ;;
9424
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009425 cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009426 # When not using gcc, we currently assume that we are using
9427 # Microsoft Visual C++.
9428 # hardcode_libdir_flag_spec is actually meaningless, as there is
9429 # no search path for DLLs.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009430 case $cc_basename in
9431 cl*)
9432 # Native MSVC
9433 hardcode_libdir_flag_spec=' '
9434 allow_undefined_flag=unsupported
9435 always_export_symbols=yes
9436 file_list_spec='@'
9437 # Tell ltmain to make .lib files, not .a files.
9438 libext=lib
9439 # Tell ltmain to make .dll files, not .so files.
9440 shrext_cmds=".dll"
9441 # FIXME: Setting linknames here is a bad hack.
9442 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9443 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9444 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9445 else
9446 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9447 fi~
9448 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9449 linknames='
9450 # The linker will not automatically build a static lib if we build a DLL.
9451 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9452 enable_shared_with_static_runtimes=yes
9453 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9454 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9455 # Don't use ranlib
9456 old_postinstall_cmds='chmod 644 $oldlib'
9457 postlink_cmds='lt_outputfile="@OUTPUT@"~
9458 lt_tool_outputfile="@TOOL_OUTPUT@"~
9459 case $lt_outputfile in
9460 *.exe|*.EXE) ;;
9461 *)
9462 lt_outputfile="$lt_outputfile.exe"
9463 lt_tool_outputfile="$lt_tool_outputfile.exe"
9464 ;;
9465 esac~
9466 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9467 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9468 $RM "$lt_outputfile.manifest";
9469 fi'
9470 ;;
9471 *)
9472 # Assume MSVC wrapper
9473 hardcode_libdir_flag_spec=' '
9474 allow_undefined_flag=unsupported
9475 # Tell ltmain to make .lib files, not .a files.
9476 libext=lib
9477 # Tell ltmain to make .dll files, not .so files.
9478 shrext_cmds=".dll"
9479 # FIXME: Setting linknames here is a bad hack.
9480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9481 # The linker will automatically build a .lib file if we build a DLL.
9482 old_archive_from_new_cmds='true'
9483 # FIXME: Should let the user specify the lib program.
9484 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9485 enable_shared_with_static_runtimes=yes
9486 ;;
9487 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07009488 ;;
9489
9490 darwin* | rhapsody*)
9491
9492
9493 archive_cmds_need_lc=no
9494 hardcode_direct=no
9495 hardcode_automatic=yes
9496 hardcode_shlibpath_var=unsupported
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009497 if test "$lt_cv_ld_force_load" = "yes"; then
9498 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9499
9500 else
9501 whole_archive_flag_spec=''
9502 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009503 link_all_deplibs=yes
9504 allow_undefined_flag="$_lt_dar_allow_undefined"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009505 case $cc_basename in
9506 ifort*) _lt_dar_can_shared=yes ;;
9507 *) _lt_dar_can_shared=$GCC ;;
9508 esac
9509 if test "$_lt_dar_can_shared" = "yes"; then
9510 output_verbose_link_cmd=func_echo_all
Wink Savillefbaaef92010-05-27 16:25:37 -07009511 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9512 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9513 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}"
9514 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}"
9515
9516 else
9517 ld_shlibs=no
9518 fi
9519
9520 ;;
9521
9522 dgux*)
9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_shlibpath_var=no
9526 ;;
9527
Wink Savillefbaaef92010-05-27 16:25:37 -07009528 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9529 # support. Future versions do this automatically, but an explicit c++rt0.o
9530 # does not break anything, and helps significantly (at the cost of a little
9531 # extra space).
9532 freebsd2.2*)
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9534 hardcode_libdir_flag_spec='-R$libdir'
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009540 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_direct=yes
9543 hardcode_minus_L=yes
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9548 freebsd* | dragonfly*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -07009550 hardcode_libdir_flag_spec='-R$libdir'
9551 hardcode_direct=yes
9552 hardcode_shlibpath_var=no
9553 ;;
9554
9555 hpux9*)
9556 if test "$GCC" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009557 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009558 else
9559 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'
9560 fi
9561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9562 hardcode_libdir_separator=:
9563 hardcode_direct=yes
9564
9565 # hardcode_minus_L: Not really in the search PATH,
9566 # but as the default location of the library.
9567 hardcode_minus_L=yes
9568 export_dynamic_flag_spec='${wl}-E'
9569 ;;
9570
9571 hpux10*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009572 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9573 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -07009574 else
9575 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9576 fi
9577 if test "$with_gnu_ld" = no; then
9578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Wink Savillefbaaef92010-05-27 16:25:37 -07009579 hardcode_libdir_separator=:
9580 hardcode_direct=yes
9581 hardcode_direct_absolute=yes
9582 export_dynamic_flag_spec='${wl}-E'
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9586 fi
9587 ;;
9588
9589 hpux11*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009590 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Wink Savillefbaaef92010-05-27 16:25:37 -07009591 case $host_cpu in
9592 hppa*64*)
9593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 ;;
9595 ia64*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009596 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -07009597 ;;
9598 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009599 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -07009600 ;;
9601 esac
9602 else
9603 case $host_cpu in
9604 hppa*64*)
9605 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 ;;
9607 ia64*)
9608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9609 ;;
9610 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009611
9612 # Older versions of the 11.00 compiler do not understand -b yet
9613 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9615$as_echo_n "checking if $CC understands -b... " >&6; }
9616if ${lt_cv_prog_compiler__b+:} false; then :
9617 $as_echo_n "(cached) " >&6
9618else
9619 lt_cv_prog_compiler__b=no
9620 save_LDFLAGS="$LDFLAGS"
9621 LDFLAGS="$LDFLAGS -b"
9622 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9623 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9624 # The linker can only warn and ignore the option if not recognized
9625 # So say no if there are warnings
9626 if test -s conftest.err; then
9627 # Append any errors to the config.log.
9628 cat conftest.err 1>&5
9629 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631 if diff conftest.exp conftest.er2 >/dev/null; then
9632 lt_cv_prog_compiler__b=yes
9633 fi
9634 else
9635 lt_cv_prog_compiler__b=yes
9636 fi
9637 fi
9638 $RM -r conftest*
9639 LDFLAGS="$save_LDFLAGS"
9640
9641fi
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9643$as_echo "$lt_cv_prog_compiler__b" >&6; }
9644
9645if test x"$lt_cv_prog_compiler__b" = xyes; then
9646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9647else
9648 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9649fi
9650
Wink Savillefbaaef92010-05-27 16:25:37 -07009651 ;;
9652 esac
9653 fi
9654 if test "$with_gnu_ld" = no; then
9655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9656 hardcode_libdir_separator=:
9657
9658 case $host_cpu in
9659 hppa*64*|ia64*)
9660 hardcode_direct=no
9661 hardcode_shlibpath_var=no
9662 ;;
9663 *)
9664 hardcode_direct=yes
9665 hardcode_direct_absolute=yes
9666 export_dynamic_flag_spec='${wl}-E'
9667
9668 # hardcode_minus_L: Not really in the search PATH,
9669 # but as the default location of the library.
9670 hardcode_minus_L=yes
9671 ;;
9672 esac
9673 fi
9674 ;;
9675
9676 irix5* | irix6* | nonstopux*)
9677 if test "$GCC" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009679 # Try to use the -exported_symbol ld option, if it does not
9680 # work, assume that -exports_file does not work either and
9681 # implicitly export all symbols.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009682 # This should be the same for all languages, so no per-tag cache variable.
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9684$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9685if ${lt_cv_irix_exported_symbol+:} false; then :
9686 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07009687else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009688 save_LDFLAGS="$LDFLAGS"
9689 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691/* end confdefs.h. */
9692int foo (void) { return 0; }
9693_ACEOF
9694if ac_fn_c_try_link "$LINENO"; then :
9695 lt_cv_irix_exported_symbol=yes
9696else
9697 lt_cv_irix_exported_symbol=no
Wink Savillefbaaef92010-05-27 16:25:37 -07009698fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009699rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LDFLAGS="$save_LDFLAGS"
9702fi
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9704$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9705 if test "$lt_cv_irix_exported_symbol" = yes; then
9706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9707 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07009708 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009711 fi
9712 archive_cmds_need_lc='no'
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 hardcode_libdir_separator=:
9715 inherit_rpath=yes
9716 link_all_deplibs=yes
9717 ;;
9718
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009719 netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07009720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9722 else
9723 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9724 fi
9725 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_direct=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 newsos6)
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_direct=yes
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator=:
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 *nto* | *qnx*)
9739 ;;
9740
9741 openbsd*)
9742 if test -f /usr/libexec/ld.so; then
9743 hardcode_direct=yes
9744 hardcode_shlibpath_var=no
9745 hardcode_direct_absolute=yes
9746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9750 export_dynamic_flag_spec='${wl}-E'
9751 else
9752 case $host_os in
9753 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-R$libdir'
9756 ;;
9757 *)
9758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9760 ;;
9761 esac
9762 fi
9763 else
9764 ld_shlibs=no
9765 fi
9766 ;;
9767
9768 os2*)
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_minus_L=yes
9771 allow_undefined_flag=unsupported
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009772 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'
Wink Savillefbaaef92010-05-27 16:25:37 -07009773 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9774 ;;
9775
9776 osf3*)
9777 if test "$GCC" = yes; then
9778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009779 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009780 else
9781 allow_undefined_flag=' -expect_unresolved \*'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009782 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009783 fi
9784 archive_cmds_need_lc='no'
9785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9786 hardcode_libdir_separator=:
9787 ;;
9788
9789 osf4* | osf5*) # as osf3* with the addition of -msym flag
9790 if test "$GCC" = yes; then
9791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009792 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794 else
9795 allow_undefined_flag=' -expect_unresolved \*'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009796 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009797 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~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009798 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Wink Savillefbaaef92010-05-27 16:25:37 -07009799
9800 # Both c and cxx compiler support -rpath directly
9801 hardcode_libdir_flag_spec='-rpath $libdir'
9802 fi
9803 archive_cmds_need_lc='no'
9804 hardcode_libdir_separator=:
9805 ;;
9806
9807 solaris*)
9808 no_undefined_flag=' -z defs'
9809 if test "$GCC" = yes; then
9810 wlarc='${wl}'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009811 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -07009812 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009813 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Wink Savillefbaaef92010-05-27 16:25:37 -07009814 else
9815 case `$CC -V 2>&1` in
9816 *"Compilers 5.0"*)
9817 wlarc=''
9818 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9821 ;;
9822 *)
9823 wlarc='${wl}'
9824 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9826 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9827 ;;
9828 esac
9829 fi
9830 hardcode_libdir_flag_spec='-R$libdir'
9831 hardcode_shlibpath_var=no
9832 case $host_os in
9833 solaris2.[0-5] | solaris2.[0-5].*) ;;
9834 *)
9835 # The compiler driver will combine and reorder linker options,
9836 # but understands `-z linker_flag'. GCC discards it without `$wl',
9837 # but is careful enough not to reorder.
9838 # Supported since Solaris 2.6 (maybe 2.5.1?)
9839 if test "$GCC" = yes; then
9840 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9841 else
9842 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9843 fi
9844 ;;
9845 esac
9846 link_all_deplibs=yes
9847 ;;
9848
9849 sunos4*)
9850 if test "x$host_vendor" = xsequent; then
9851 # Use $CC to link under sequent, because it throws in some extra .o
9852 # files that make .init and .fini sections work.
9853 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9854 else
9855 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9856 fi
9857 hardcode_libdir_flag_spec='-L$libdir'
9858 hardcode_direct=yes
9859 hardcode_minus_L=yes
9860 hardcode_shlibpath_var=no
9861 ;;
9862
9863 sysv4)
9864 case $host_vendor in
9865 sni)
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_direct=yes # is this really true???
9868 ;;
9869 siemens)
9870 ## LD is ld it makes a PLAMLIB
9871 ## CC just makes a GrossModule.
9872 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9873 reload_cmds='$CC -r -o $output$reload_objs'
9874 hardcode_direct=no
9875 ;;
9876 motorola)
9877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9879 ;;
9880 esac
9881 runpath_var='LD_RUN_PATH'
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 sysv4.3*)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_shlibpath_var=no
9888 export_dynamic_flag_spec='-Bexport'
9889 ;;
9890
9891 sysv4*MP*)
9892 if test -d /usr/nec; then
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_shlibpath_var=no
9895 runpath_var=LD_RUN_PATH
9896 hardcode_runpath_var=yes
9897 ld_shlibs=yes
9898 fi
9899 ;;
9900
9901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9902 no_undefined_flag='${wl}-z,text'
9903 archive_cmds_need_lc=no
9904 hardcode_shlibpath_var=no
9905 runpath_var='LD_RUN_PATH'
9906
9907 if test "$GCC" = yes; then
9908 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910 else
9911 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 fi
9914 ;;
9915
9916 sysv5* | sco3.2v5* | sco5v6*)
9917 # Note: We can NOT use -z defs as we might desire, because we do not
9918 # link with -lc, and that would cause any symbols used from libc to
9919 # always be unresolved, which means just about no library would
9920 # ever link correctly. If we're not using GNU ld we use -z text
9921 # though, which does catch some bad symbols but isn't as heavy-handed
9922 # as -z defs.
9923 no_undefined_flag='${wl}-z,text'
9924 allow_undefined_flag='${wl}-z,nodefs'
9925 archive_cmds_need_lc=no
9926 hardcode_shlibpath_var=no
9927 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9928 hardcode_libdir_separator=':'
9929 link_all_deplibs=yes
9930 export_dynamic_flag_spec='${wl}-Bexport'
9931 runpath_var='LD_RUN_PATH'
9932
9933 if test "$GCC" = yes; then
9934 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 else
9937 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 fi
9940 ;;
9941
9942 uts4*)
9943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 hardcode_libdir_flag_spec='-L$libdir'
9945 hardcode_shlibpath_var=no
9946 ;;
9947
9948 *)
9949 ld_shlibs=no
9950 ;;
9951 esac
9952
9953 if test x$host_vendor = xsni; then
9954 case $host in
9955 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9956 export_dynamic_flag_spec='${wl}-Blargedynsym'
9957 ;;
9958 esac
9959 fi
9960 fi
9961
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9963$as_echo "$ld_shlibs" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009964test "$ld_shlibs" = no && can_build_shared=no
9965
9966with_gnu_ld=$with_gnu_ld
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982#
9983# Do we need to explicitly link libc?
9984#
9985case "x$archive_cmds_need_lc" in
9986x|xyes)
9987 # Assume -lc should be added
9988 archive_cmds_need_lc=yes
9989
9990 if test "$enable_shared" = yes && test "$GCC" = yes; then
9991 case $archive_cmds in
9992 *'~'*)
9993 # FIXME: we may have to deal with multi-command sequences.
9994 ;;
9995 '$CC '*)
9996 # Test whether the compiler implicitly links with -lc since on some
9997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9998 # to ld, don't add -lc before -lgcc.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10000$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10001if ${lt_cv_archive_cmds_need_lc+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003else
10004 $RM conftest*
10005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070010006
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070010008 (eval $ac_compile) 2>&5
10009 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10011 test $ac_status = 0; } 2>conftest.err; then
10012 soname=conftest
10013 lib=conftest
10014 libobjs=conftest.$ac_objext
10015 deplibs=
10016 wl=$lt_prog_compiler_wl
10017 pic_flag=$lt_prog_compiler_pic
10018 compiler_flags=-v
10019 linker_flags=-v
10020 verstring=
10021 output_objdir=.
10022 libname=conftest
10023 lt_save_allow_undefined_flag=$allow_undefined_flag
10024 allow_undefined_flag=
10025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070010026 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10027 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029 test $ac_status = 0; }
10030 then
10031 lt_cv_archive_cmds_need_lc=no
10032 else
10033 lt_cv_archive_cmds_need_lc=yes
10034 fi
10035 allow_undefined_flag=$lt_save_allow_undefined_flag
10036 else
10037 cat conftest.err 1>&5
10038 fi
10039 $RM conftest*
10040
10041fi
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10043$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10044 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Wink Savillefbaaef92010-05-27 16:25:37 -070010045 ;;
10046 esac
10047 fi
10048 ;;
10049esac
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10203$as_echo_n "checking dynamic linker characteristics... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070010204
10205if test "$GCC" = yes; then
10206 case $host_os in
10207 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10208 *) lt_awk_arg="/^libraries:/" ;;
10209 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010210 case $host_os in
10211 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10212 *) lt_sed_strip_eq="s,=/,/,g" ;;
10213 esac
10214 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10215 case $lt_search_path_spec in
10216 *\;*)
Wink Savillefbaaef92010-05-27 16:25:37 -070010217 # if the path contains ";" then we assume it to be the separator
10218 # otherwise default to the standard path separator (i.e. ":") - it is
10219 # assumed that no part of a normal pathname contains ";" but that should
10220 # okay in the real world where ";" in dirpaths is itself problematic.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010221 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10222 ;;
10223 *)
10224 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10225 ;;
10226 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070010227 # Ok, now we have the path, separated by spaces, we can step through it
10228 # and add multilib dir if necessary.
10229 lt_tmp_lt_search_path_spec=
10230 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10231 for lt_sys_path in $lt_search_path_spec; do
10232 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10233 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10234 else
10235 test -d "$lt_sys_path" && \
10236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10237 fi
10238 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010239 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Wink Savillefbaaef92010-05-27 16:25:37 -070010240BEGIN {RS=" "; FS="/|\n";} {
10241 lt_foo="";
10242 lt_count=0;
10243 for (lt_i = NF; lt_i > 0; lt_i--) {
10244 if ($lt_i != "" && $lt_i != ".") {
10245 if ($lt_i == "..") {
10246 lt_count++;
10247 } else {
10248 if (lt_count == 0) {
10249 lt_foo="/" $lt_i lt_foo;
10250 } else {
10251 lt_count--;
10252 }
10253 }
10254 }
10255 }
10256 if (lt_foo != "") { lt_freq[lt_foo]++; }
10257 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10258}'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010259 # AWK program above erroneously prepends '/' to C:/dos/paths
10260 # for these hosts.
10261 case $host_os in
10262 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10263 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10264 esac
10265 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Wink Savillefbaaef92010-05-27 16:25:37 -070010266else
10267 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10268fi
10269library_names_spec=
10270libname_spec='lib$name'
10271soname_spec=
10272shrext_cmds=".so"
10273postinstall_cmds=
10274postuninstall_cmds=
10275finish_cmds=
10276finish_eval=
10277shlibpath_var=
10278shlibpath_overrides_runpath=unknown
10279version_type=none
10280dynamic_linker="$host_os ld.so"
10281sys_lib_dlsearch_path_spec="/lib /usr/lib"
10282need_lib_prefix=unknown
10283hardcode_into_libs=no
10284
10285# when you set need_version to no, make sure it does not cause -set_version
10286# flags to be left without arguments
10287need_version=unknown
10288
10289case $host_os in
10290aix3*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010291 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10293 shlibpath_var=LIBPATH
10294
10295 # AIX 3 has no versioning support, so we append a major version to the name.
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 ;;
10298
10299aix[4-9]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010300 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010301 need_lib_prefix=no
10302 need_version=no
10303 hardcode_into_libs=yes
10304 if test "$host_cpu" = ia64; then
10305 # AIX 5 supports IA64
10306 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 else
10309 # With GCC up to 2.95.x, collect2 would create an import file
10310 # for dependence libraries. The import file would start with
10311 # the line `#! .'. This would cause the generated library to
10312 # depend on `.', always an invalid library. This was fixed in
10313 # development snapshots of GCC prior to 3.0.
10314 case $host_os in
10315 aix4 | aix4.[01] | aix4.[01].*)
10316 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10317 echo ' yes '
10318 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10319 :
10320 else
10321 can_build_shared=no
10322 fi
10323 ;;
10324 esac
10325 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10326 # soname into executable. Probably we can add versioning support to
10327 # collect2, so additional links can be useful in future.
10328 if test "$aix_use_runtimelinking" = yes; then
10329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10330 # instead of lib<name>.a to let people know that these are not
10331 # typical AIX shared libraries.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 else
10334 # We preserve .a as extension for shared libraries through AIX4.2
10335 # and later when we are not doing run time linking.
10336 library_names_spec='${libname}${release}.a $libname.a'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 fi
10339 shlibpath_var=LIBPATH
10340 fi
10341 ;;
10342
10343amigaos*)
10344 case $host_cpu in
10345 powerpc)
10346 # Since July 2007 AmigaOS4 officially supports .so libraries.
10347 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 ;;
10350 m68k)
10351 library_names_spec='$libname.ixlibrary $libname.a'
10352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010353 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010354 ;;
10355 esac
10356 ;;
10357
10358beos*)
10359 library_names_spec='${libname}${shared_ext}'
10360 dynamic_linker="$host_os ld.so"
10361 shlibpath_var=LIBRARY_PATH
10362 ;;
10363
10364bsdi[45]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010365 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10373 # the default ld.so.conf also contains /usr/contrib/lib and
10374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10375 # libtool to hard-code these into programs
10376 ;;
10377
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010378cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070010379 version_type=windows
10380 shrext_cmds=".dll"
10381 need_version=no
10382 need_lib_prefix=no
10383
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010384 case $GCC,$cc_basename in
10385 yes,*)
10386 # gcc
Wink Savillefbaaef92010-05-27 16:25:37 -070010387 library_names_spec='$libname.dll.a'
10388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10389 postinstall_cmds='base_file=`basename \${file}`~
10390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10391 dldir=$destdir/`dirname \$dlpath`~
10392 test -d \$dldir || mkdir -p \$dldir~
10393 $install_prog $dir/$dlname \$dldir/$dlname~
10394 chmod a+x \$dldir/$dlname~
10395 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10396 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10397 fi'
10398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10399 dlpath=$dir/\$dldll~
10400 $RM \$dlpath'
10401 shlibpath_overrides_runpath=yes
10402
10403 case $host_os in
10404 cygwin*)
10405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010407
10408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Wink Savillefbaaef92010-05-27 16:25:37 -070010409 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010410 mingw* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070010411 # MinGW DLLs use traditional 'lib' prefix
10412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070010413 ;;
10414 pw32*)
10415 # pw32 DLLs use 'pw' prefix rather than 'lib'
10416 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10417 ;;
10418 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010419 dynamic_linker='Win32 ld.exe'
10420 ;;
10421
10422 *,cl*)
10423 # Native MSVC
10424 libname_spec='$name'
10425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10426 library_names_spec='${libname}.dll.lib'
10427
10428 case $build_os in
10429 mingw*)
10430 sys_lib_search_path_spec=
10431 lt_save_ifs=$IFS
10432 IFS=';'
10433 for lt_path in $LIB
10434 do
10435 IFS=$lt_save_ifs
10436 # Let DOS variable expansion print the short 8.3 style file name.
10437 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10438 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10439 done
10440 IFS=$lt_save_ifs
10441 # Convert to MSYS style.
10442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10443 ;;
10444 cygwin*)
10445 # Convert to unix form, then to dos form, then back to unix form
10446 # but this time dos style (no spaces!) so that the unix form looks
10447 # like /cygdrive/c/PROGRA~1:/cygdr...
10448 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10449 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10450 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10451 ;;
10452 *)
10453 sys_lib_search_path_spec="$LIB"
10454 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10455 # It is most probably a Windows format PATH.
10456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10457 else
10458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10459 fi
10460 # FIXME: find the short name or the path components, as spaces are
10461 # common. (e.g. "Program Files" -> "PROGRA~1")
10462 ;;
10463 esac
10464
10465 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10466 postinstall_cmds='base_file=`basename \${file}`~
10467 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10468 dldir=$destdir/`dirname \$dlpath`~
10469 test -d \$dldir || mkdir -p \$dldir~
10470 $install_prog $dir/$dlname \$dldir/$dlname'
10471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10472 dlpath=$dir/\$dldll~
10473 $RM \$dlpath'
10474 shlibpath_overrides_runpath=yes
10475 dynamic_linker='Win32 link.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070010476 ;;
10477
10478 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010479 # Assume MSVC wrapper
Wink Savillefbaaef92010-05-27 16:25:37 -070010480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010481 dynamic_linker='Win32 ld.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070010482 ;;
10483 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070010484 # FIXME: first we should search . and the directory the executable is in
10485 shlibpath_var=PATH
10486 ;;
10487
10488darwin* | rhapsody*)
10489 dynamic_linker="$host_os dyld"
10490 version_type=darwin
10491 need_lib_prefix=no
10492 need_version=no
10493 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10494 soname_spec='${libname}${release}${major}$shared_ext'
10495 shlibpath_overrides_runpath=yes
10496 shlibpath_var=DYLD_LIBRARY_PATH
10497 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10498
10499 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10500 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10501 ;;
10502
10503dgux*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010504 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010505 need_lib_prefix=no
10506 need_version=no
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 ;;
10511
Wink Savillefbaaef92010-05-27 16:25:37 -070010512freebsd* | dragonfly*)
10513 # DragonFly does not have aout. When/if they implement a new
10514 # versioning mechanism, adjust this.
10515 if test -x /usr/bin/objformat; then
10516 objformat=`/usr/bin/objformat`
10517 else
10518 case $host_os in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010519 freebsd[23].*) objformat=aout ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070010520 *) objformat=elf ;;
10521 esac
10522 fi
10523 version_type=freebsd-$objformat
10524 case $version_type in
10525 freebsd-elf*)
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10527 need_version=no
10528 need_lib_prefix=no
10529 ;;
10530 freebsd-*)
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10532 need_version=yes
10533 ;;
10534 esac
10535 shlibpath_var=LD_LIBRARY_PATH
10536 case $host_os in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010537 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -070010538 shlibpath_overrides_runpath=yes
10539 ;;
10540 freebsd3.[01]* | freebsdelf3.[01]*)
10541 shlibpath_overrides_runpath=yes
10542 hardcode_into_libs=yes
10543 ;;
10544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10546 shlibpath_overrides_runpath=no
10547 hardcode_into_libs=yes
10548 ;;
10549 *) # from 4.6 on, and DragonFly
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10552 ;;
10553 esac
10554 ;;
10555
10556gnu*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010557 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010558 need_lib_prefix=no
10559 need_version=no
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 shlibpath_var=LD_LIBRARY_PATH
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010563 shlibpath_overrides_runpath=no
10564 hardcode_into_libs=yes
10565 ;;
10566
10567haiku*)
10568 version_type=linux # correct to gnu/linux during the next big refactor
10569 need_lib_prefix=no
10570 need_version=no
10571 dynamic_linker="$host_os runtime_loader"
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LIBRARY_PATH
10575 shlibpath_overrides_runpath=yes
10576 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070010577 hardcode_into_libs=yes
10578 ;;
10579
10580hpux9* | hpux10* | hpux11*)
10581 # Give a soname corresponding to the major version so that dld.sl refuses to
10582 # link against other versions.
10583 version_type=sunos
10584 need_lib_prefix=no
10585 need_version=no
10586 case $host_cpu in
10587 ia64*)
10588 shrext_cmds='.so'
10589 hardcode_into_libs=yes
10590 dynamic_linker="$host_os dld.so"
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 if test "X$HPUX_IA64_MODE" = X32; then
10596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10597 else
10598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10599 fi
10600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10601 ;;
10602 hppa*64*)
10603 shrext_cmds='.sl'
10604 hardcode_into_libs=yes
10605 dynamic_linker="$host_os dld.sl"
10606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10612 ;;
10613 *)
10614 shrext_cmds='.sl'
10615 dynamic_linker="$host_os dld.sl"
10616 shlibpath_var=SHLIB_PATH
10617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 ;;
10621 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010622 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Wink Savillefbaaef92010-05-27 16:25:37 -070010623 postinstall_cmds='chmod 555 $lib'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010624 # or fails outright, so override atomically:
10625 install_override_mode=555
Wink Savillefbaaef92010-05-27 16:25:37 -070010626 ;;
10627
10628interix[3-9]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010629 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=no
10637 hardcode_into_libs=yes
10638 ;;
10639
10640irix5* | irix6* | nonstopux*)
10641 case $host_os in
10642 nonstopux*) version_type=nonstopux ;;
10643 *)
10644 if test "$lt_cv_prog_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010645 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010646 else
10647 version_type=irix
10648 fi ;;
10649 esac
10650 need_lib_prefix=no
10651 need_version=no
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10654 case $host_os in
10655 irix5* | nonstopux*)
10656 libsuff= shlibsuff=
10657 ;;
10658 *)
10659 case $LD in # libtool.m4 will add one of these switches to LD
10660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10661 libsuff= shlibsuff= libmagic=32-bit;;
10662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10663 libsuff=32 shlibsuff=N32 libmagic=N32;;
10664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10665 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10666 *) libsuff= shlibsuff= libmagic=never-match;;
10667 esac
10668 ;;
10669 esac
10670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10671 shlibpath_overrides_runpath=no
10672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10674 hardcode_into_libs=yes
10675 ;;
10676
10677# No shared lib support for Linux oldld, aout, or coff.
10678linux*oldld* | linux*aout* | linux*coff*)
10679 dynamic_linker=no
10680 ;;
10681
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010682# This must be glibc/ELF.
10683linux* | k*bsd*-gnu | kopensolaris*-gnu)
10684 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010685 need_lib_prefix=no
10686 need_version=no
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 shlibpath_overrides_runpath=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010692
Wink Savillefbaaef92010-05-27 16:25:37 -070010693 # Some binutils ld are patched to set DT_RUNPATH
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010694 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10695 $as_echo_n "(cached) " >&6
10696else
10697 lt_cv_shlibpath_overrides_runpath=no
10698 save_LDFLAGS=$LDFLAGS
10699 save_libdir=$libdir
10700 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10701 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070010703/* end confdefs.h. */
10704
10705int
10706main ()
10707{
10708
10709 ;
10710 return 0;
10711}
10712_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010713if ac_fn_c_try_link "$LINENO"; then :
10714 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10715 lt_cv_shlibpath_overrides_runpath=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070010716fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010717fi
10718rm -f core conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LDFLAGS=$save_LDFLAGS
10721 libdir=$save_libdir
Wink Savillefbaaef92010-05-27 16:25:37 -070010722
10723fi
10724
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010725 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Wink Savillefbaaef92010-05-27 16:25:37 -070010726
10727 # This implies no fast_install, which is unacceptable.
10728 # Some rework will be needed to allow for fast_install
10729 # before this can be enabled.
10730 hardcode_into_libs=yes
10731
10732 # Append ld.so.conf contents to the search path
10733 if test -f /etc/ld.so.conf; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010734 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;s/"//g;/^$/d' | tr '\n' ' '`
Wink Savillefbaaef92010-05-27 16:25:37 -070010735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10736 fi
10737
10738 # We used to test for /lib/ld.so.1 and disable shared libraries on
10739 # powerpc, because MkLinux only supported shared libraries with the
10740 # GNU dynamic linker. Since this was broken with cross compilers,
10741 # most powerpc-linux boxes support dynamic linking these days and
10742 # people can always --disable-shared, the test was removed, and we
10743 # assume the GNU/Linux dynamic linker is in use.
10744 dynamic_linker='GNU/Linux ld.so'
10745 ;;
10746
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010747netbsdelf*-gnu)
10748 version_type=linux
10749 need_lib_prefix=no
10750 need_version=no
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=no
10755 hardcode_into_libs=yes
10756 dynamic_linker='NetBSD ld.elf_so'
10757 ;;
10758
Wink Savillefbaaef92010-05-27 16:25:37 -070010759netbsd*)
10760 version_type=sunos
10761 need_lib_prefix=no
10762 need_version=no
10763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10766 dynamic_linker='NetBSD (a.out) ld.so'
10767 else
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 dynamic_linker='NetBSD ld.elf_so'
10771 fi
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes
10774 hardcode_into_libs=yes
10775 ;;
10776
10777newsos6)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010778 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 shlibpath_overrides_runpath=yes
10782 ;;
10783
10784*nto* | *qnx*)
10785 version_type=qnx
10786 need_lib_prefix=no
10787 need_version=no
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 dynamic_linker='ldqnx.so'
10794 ;;
10795
10796openbsd*)
10797 version_type=sunos
10798 sys_lib_dlsearch_path_spec="/usr/lib"
10799 need_lib_prefix=no
10800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10801 case $host_os in
10802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10803 *) need_version=no ;;
10804 esac
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10809 case $host_os in
10810 openbsd2.[89] | openbsd2.[89].*)
10811 shlibpath_overrides_runpath=no
10812 ;;
10813 *)
10814 shlibpath_overrides_runpath=yes
10815 ;;
10816 esac
10817 else
10818 shlibpath_overrides_runpath=yes
10819 fi
10820 ;;
10821
10822os2*)
10823 libname_spec='$name'
10824 shrext_cmds=".dll"
10825 need_lib_prefix=no
10826 library_names_spec='$libname${shared_ext} $libname.a'
10827 dynamic_linker='OS/2 ld.exe'
10828 shlibpath_var=LIBPATH
10829 ;;
10830
10831osf3* | osf4* | osf5*)
10832 version_type=osf
10833 need_lib_prefix=no
10834 need_version=no
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10840 ;;
10841
10842rdos*)
10843 dynamic_linker=no
10844 ;;
10845
10846solaris*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010847 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010848 need_lib_prefix=no
10849 need_version=no
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=yes
10854 hardcode_into_libs=yes
10855 # ldd complains unless libraries are executable
10856 postinstall_cmds='chmod +x $lib'
10857 ;;
10858
10859sunos4*)
10860 version_type=sunos
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes
10865 if test "$with_gnu_ld" = yes; then
10866 need_lib_prefix=no
10867 fi
10868 need_version=yes
10869 ;;
10870
10871sysv4 | sysv4.3*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010872 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 case $host_vendor in
10877 sni)
10878 shlibpath_overrides_runpath=no
10879 need_lib_prefix=no
10880 runpath_var=LD_RUN_PATH
10881 ;;
10882 siemens)
10883 need_lib_prefix=no
10884 ;;
10885 motorola)
10886 need_lib_prefix=no
10887 need_version=no
10888 shlibpath_overrides_runpath=no
10889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10890 ;;
10891 esac
10892 ;;
10893
10894sysv4*MP*)
10895 if test -d /usr/nec ;then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010896 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10898 soname_spec='$libname${shared_ext}.$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 fi
10901 ;;
10902
10903sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10904 version_type=freebsd-elf
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=yes
10911 hardcode_into_libs=yes
10912 if test "$with_gnu_ld" = yes; then
10913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10914 else
10915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10916 case $host_os in
10917 sco3.2v5*)
10918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10919 ;;
10920 esac
10921 fi
10922 sys_lib_dlsearch_path_spec='/usr/lib'
10923 ;;
10924
10925tpf*)
10926 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010927 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010928 need_lib_prefix=no
10929 need_version=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070010931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=no
10933 hardcode_into_libs=yes
10934 ;;
10935
10936uts4*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010937 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070010938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 ;;
10942
10943*)
10944 dynamic_linker=no
10945 ;;
10946esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10948$as_echo "$dynamic_linker" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070010949test "$dynamic_linker" = no && can_build_shared=no
10950
10951variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10952if test "$GCC" = yes; then
10953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10954fi
10955
10956if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10958fi
10959if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10960 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10961fi
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011049
11050
11051
11052
11053
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11055$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011056hardcode_action=
11057if test -n "$hardcode_libdir_flag_spec" ||
11058 test -n "$runpath_var" ||
11059 test "X$hardcode_automatic" = "Xyes" ; then
11060
11061 # We can hardcode non-existent directories.
11062 if test "$hardcode_direct" != no &&
11063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11064 # have to relink, otherwise we might link with an installed library
11065 # when we should be linking with a yet-to-be-installed one
11066 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11067 test "$hardcode_minus_L" != no; then
11068 # Linking always hardcodes the temporary library directory.
11069 hardcode_action=relink
11070 else
11071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11072 hardcode_action=immediate
11073 fi
11074else
11075 # We cannot hardcode anything, or else we can only hardcode existing
11076 # directories.
11077 hardcode_action=unsupported
11078fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11080$as_echo "$hardcode_action" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011081
11082if test "$hardcode_action" = relink ||
11083 test "$inherit_rpath" = yes; then
11084 # Fast installation is not supported
11085 enable_fast_install=no
11086elif test "$shlibpath_overrides_runpath" = yes ||
11087 test "$enable_shared" = no; then
11088 # Fast installation is not necessary
11089 enable_fast_install=needless
11090fi
11091
11092
11093
11094
11095
11096
11097 if test "x$enable_dlopen" != xyes; then
11098 enable_dlopen=unknown
11099 enable_dlopen_self=unknown
11100 enable_dlopen_self_static=unknown
11101else
11102 lt_cv_dlopen=no
11103 lt_cv_dlopen_libs=
11104
11105 case $host_os in
11106 beos*)
11107 lt_cv_dlopen="load_add_on"
11108 lt_cv_dlopen_libs=
11109 lt_cv_dlopen_self=yes
11110 ;;
11111
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011112 mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070011113 lt_cv_dlopen="LoadLibrary"
11114 lt_cv_dlopen_libs=
11115 ;;
11116
11117 cygwin*)
11118 lt_cv_dlopen="dlopen"
11119 lt_cv_dlopen_libs=
11120 ;;
11121
11122 darwin*)
11123 # if libdl is installed we need to link against it
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11125$as_echo_n "checking for dlopen in -ldl... " >&6; }
11126if ${ac_cv_lib_dl_dlopen+:} false; then :
11127 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011128else
11129 ac_check_lib_save_LIBS=$LIBS
11130LIBS="-ldl $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011132/* end confdefs.h. */
11133
11134/* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11137#ifdef __cplusplus
11138extern "C"
11139#endif
11140char dlopen ();
11141int
11142main ()
11143{
11144return dlopen ();
11145 ;
11146 return 0;
11147}
11148_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011149if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011150 ac_cv_lib_dl_dlopen=yes
11151else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011152 ac_cv_lib_dl_dlopen=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011153fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011154rm -f core conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011156LIBS=$ac_check_lib_save_LIBS
11157fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11159$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11160if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11162else
11163
11164 lt_cv_dlopen="dyld"
11165 lt_cv_dlopen_libs=
11166 lt_cv_dlopen_self=yes
11167
11168fi
11169
11170 ;;
11171
11172 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011173 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11174if test "x$ac_cv_func_shl_load" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011175 lt_cv_dlopen="shl_load"
11176else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11178$as_echo_n "checking for shl_load in -ldld... " >&6; }
11179if ${ac_cv_lib_dld_shl_load+:} false; then :
11180 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011181else
11182 ac_check_lib_save_LIBS=$LIBS
11183LIBS="-ldld $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011185/* end confdefs.h. */
11186
11187/* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11190#ifdef __cplusplus
11191extern "C"
11192#endif
11193char shl_load ();
11194int
11195main ()
11196{
11197return shl_load ();
11198 ;
11199 return 0;
11200}
11201_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011202if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011203 ac_cv_lib_dld_shl_load=yes
11204else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011205 ac_cv_lib_dld_shl_load=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011206fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011207rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011209LIBS=$ac_check_lib_save_LIBS
11210fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11212$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11213if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11215else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011216 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11217if test "x$ac_cv_func_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011218 lt_cv_dlopen="dlopen"
11219else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11221$as_echo_n "checking for dlopen in -ldl... " >&6; }
11222if ${ac_cv_lib_dl_dlopen+:} false; then :
11223 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011224else
11225 ac_check_lib_save_LIBS=$LIBS
11226LIBS="-ldl $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011228/* end confdefs.h. */
11229
11230/* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233#ifdef __cplusplus
11234extern "C"
11235#endif
11236char dlopen ();
11237int
11238main ()
11239{
11240return dlopen ();
11241 ;
11242 return 0;
11243}
11244_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011245if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011246 ac_cv_lib_dl_dlopen=yes
11247else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011248 ac_cv_lib_dl_dlopen=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011249fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011250rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011252LIBS=$ac_check_lib_save_LIBS
11253fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11255$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11256if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11258else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11260$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11261if ${ac_cv_lib_svld_dlopen+:} false; then :
11262 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011263else
11264 ac_check_lib_save_LIBS=$LIBS
11265LIBS="-lsvld $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011267/* end confdefs.h. */
11268
11269/* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272#ifdef __cplusplus
11273extern "C"
11274#endif
11275char dlopen ();
11276int
11277main ()
11278{
11279return dlopen ();
11280 ;
11281 return 0;
11282}
11283_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011284if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011285 ac_cv_lib_svld_dlopen=yes
11286else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011287 ac_cv_lib_svld_dlopen=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011288fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011289rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011291LIBS=$ac_check_lib_save_LIBS
11292fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11294$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11295if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11297else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11299$as_echo_n "checking for dld_link in -ldld... " >&6; }
11300if ${ac_cv_lib_dld_dld_link+:} false; then :
11301 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011302else
11303 ac_check_lib_save_LIBS=$LIBS
11304LIBS="-ldld $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011306/* end confdefs.h. */
11307
11308/* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311#ifdef __cplusplus
11312extern "C"
11313#endif
11314char dld_link ();
11315int
11316main ()
11317{
11318return dld_link ();
11319 ;
11320 return 0;
11321}
11322_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011323if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011324 ac_cv_lib_dld_dld_link=yes
11325else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011326 ac_cv_lib_dld_dld_link=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011327fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011328rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011330LIBS=$ac_check_lib_save_LIBS
11331fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11333$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11334if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11336fi
11337
11338
11339fi
11340
11341
11342fi
11343
11344
11345fi
11346
11347
11348fi
11349
11350
11351fi
11352
11353 ;;
11354 esac
11355
11356 if test "x$lt_cv_dlopen" != xno; then
11357 enable_dlopen=yes
11358 else
11359 enable_dlopen=no
11360 fi
11361
11362 case $lt_cv_dlopen in
11363 dlopen)
11364 save_CPPFLAGS="$CPPFLAGS"
11365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11366
11367 save_LDFLAGS="$LDFLAGS"
11368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11369
11370 save_LIBS="$LIBS"
11371 LIBS="$lt_cv_dlopen_libs $LIBS"
11372
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11374$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11375if ${lt_cv_dlopen_self+:} false; then :
11376 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011377else
11378 if test "$cross_compiling" = yes; then :
11379 lt_cv_dlopen_self=cross
11380else
11381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11382 lt_status=$lt_dlunknown
11383 cat > conftest.$ac_ext <<_LT_EOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011384#line $LINENO "configure"
Wink Savillefbaaef92010-05-27 16:25:37 -070011385#include "confdefs.h"
11386
11387#if HAVE_DLFCN_H
11388#include <dlfcn.h>
11389#endif
11390
11391#include <stdio.h>
11392
11393#ifdef RTLD_GLOBAL
11394# define LT_DLGLOBAL RTLD_GLOBAL
11395#else
11396# ifdef DL_GLOBAL
11397# define LT_DLGLOBAL DL_GLOBAL
11398# else
11399# define LT_DLGLOBAL 0
11400# endif
11401#endif
11402
11403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11404 find out it does not work in some platform. */
11405#ifndef LT_DLLAZY_OR_NOW
11406# ifdef RTLD_LAZY
11407# define LT_DLLAZY_OR_NOW RTLD_LAZY
11408# else
11409# ifdef DL_LAZY
11410# define LT_DLLAZY_OR_NOW DL_LAZY
11411# else
11412# ifdef RTLD_NOW
11413# define LT_DLLAZY_OR_NOW RTLD_NOW
11414# else
11415# ifdef DL_NOW
11416# define LT_DLLAZY_OR_NOW DL_NOW
11417# else
11418# define LT_DLLAZY_OR_NOW 0
11419# endif
11420# endif
11421# endif
11422# endif
11423#endif
11424
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011425/* When -fvisbility=hidden is used, assume the code has been annotated
11426 correspondingly for the symbols needed. */
11427#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11428int fnord () __attribute__((visibility("default")));
Wink Savillefbaaef92010-05-27 16:25:37 -070011429#endif
11430
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011431int fnord () { return 42; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011432int main ()
11433{
11434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11435 int status = $lt_dlunknown;
11436
11437 if (self)
11438 {
11439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011440 else
11441 {
11442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11443 else puts (dlerror ());
11444 }
Wink Savillefbaaef92010-05-27 16:25:37 -070011445 /* dlclose (self); */
11446 }
11447 else
11448 puts (dlerror ());
11449
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011450 return status;
Wink Savillefbaaef92010-05-27 16:25:37 -070011451}
11452_LT_EOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070011454 (eval $ac_link) 2>&5
11455 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Wink Savillefbaaef92010-05-27 16:25:37 -070011458 (./conftest; exit; ) >&5 2>/dev/null
11459 lt_status=$?
11460 case x$lt_status in
11461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11464 esac
11465 else :
11466 # compilation failed
11467 lt_cv_dlopen_self=no
11468 fi
11469fi
11470rm -fr conftest*
11471
11472
11473fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11475$as_echo "$lt_cv_dlopen_self" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011476
11477 if test "x$lt_cv_dlopen_self" = xyes; then
11478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11480$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11481if ${lt_cv_dlopen_self_static+:} false; then :
11482 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011483else
11484 if test "$cross_compiling" = yes; then :
11485 lt_cv_dlopen_self_static=cross
11486else
11487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11488 lt_status=$lt_dlunknown
11489 cat > conftest.$ac_ext <<_LT_EOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011490#line $LINENO "configure"
Wink Savillefbaaef92010-05-27 16:25:37 -070011491#include "confdefs.h"
11492
11493#if HAVE_DLFCN_H
11494#include <dlfcn.h>
11495#endif
11496
11497#include <stdio.h>
11498
11499#ifdef RTLD_GLOBAL
11500# define LT_DLGLOBAL RTLD_GLOBAL
11501#else
11502# ifdef DL_GLOBAL
11503# define LT_DLGLOBAL DL_GLOBAL
11504# else
11505# define LT_DLGLOBAL 0
11506# endif
11507#endif
11508
11509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11510 find out it does not work in some platform. */
11511#ifndef LT_DLLAZY_OR_NOW
11512# ifdef RTLD_LAZY
11513# define LT_DLLAZY_OR_NOW RTLD_LAZY
11514# else
11515# ifdef DL_LAZY
11516# define LT_DLLAZY_OR_NOW DL_LAZY
11517# else
11518# ifdef RTLD_NOW
11519# define LT_DLLAZY_OR_NOW RTLD_NOW
11520# else
11521# ifdef DL_NOW
11522# define LT_DLLAZY_OR_NOW DL_NOW
11523# else
11524# define LT_DLLAZY_OR_NOW 0
11525# endif
11526# endif
11527# endif
11528# endif
11529#endif
11530
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011531/* When -fvisbility=hidden is used, assume the code has been annotated
11532 correspondingly for the symbols needed. */
11533#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11534int fnord () __attribute__((visibility("default")));
Wink Savillefbaaef92010-05-27 16:25:37 -070011535#endif
11536
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011537int fnord () { return 42; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011538int main ()
11539{
11540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11541 int status = $lt_dlunknown;
11542
11543 if (self)
11544 {
11545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011546 else
11547 {
11548 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11549 else puts (dlerror ());
11550 }
Wink Savillefbaaef92010-05-27 16:25:37 -070011551 /* dlclose (self); */
11552 }
11553 else
11554 puts (dlerror ());
11555
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011556 return status;
Wink Savillefbaaef92010-05-27 16:25:37 -070011557}
11558_LT_EOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070011560 (eval $ac_link) 2>&5
11561 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Wink Savillefbaaef92010-05-27 16:25:37 -070011564 (./conftest; exit; ) >&5 2>/dev/null
11565 lt_status=$?
11566 case x$lt_status in
11567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11569 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11570 esac
11571 else :
11572 # compilation failed
11573 lt_cv_dlopen_self_static=no
11574 fi
11575fi
11576rm -fr conftest*
11577
11578
11579fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11581$as_echo "$lt_cv_dlopen_self_static" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011582 fi
11583
11584 CPPFLAGS="$save_CPPFLAGS"
11585 LDFLAGS="$save_LDFLAGS"
11586 LIBS="$save_LIBS"
11587 ;;
11588 esac
11589
11590 case $lt_cv_dlopen_self in
11591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11592 *) enable_dlopen_self=unknown ;;
11593 esac
11594
11595 case $lt_cv_dlopen_self_static in
11596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11597 *) enable_dlopen_self_static=unknown ;;
11598 esac
11599fi
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617striplib=
11618old_striplib=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11620$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011621if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011626else
11627# FIXME - insert some real tests, host_os isn't really good enough
11628 case $host_os in
11629 darwin*)
11630 if test -n "$STRIP" ; then
11631 striplib="$STRIP -x"
11632 old_striplib="$STRIP -S"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011635 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011638 fi
11639 ;;
11640 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011643 ;;
11644 esac
11645fi
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658 # Report which library types will actually be built
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11660$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11662$as_echo "$can_build_shared" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011663
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11665$as_echo_n "checking whether to build shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011666 test "$can_build_shared" = "no" && enable_shared=no
11667
11668 # On AIX, shared libraries and static libraries use the same namespace, and
11669 # are all built from PIC.
11670 case $host_os in
11671 aix3*)
11672 test "$enable_shared" = yes && enable_static=no
11673 if test -n "$RANLIB"; then
11674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11675 postinstall_cmds='$RANLIB $lib'
11676 fi
11677 ;;
11678
11679 aix[4-9]*)
11680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11681 test "$enable_shared" = yes && enable_static=no
11682 fi
11683 ;;
11684 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11686$as_echo "$enable_shared" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011687
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11689$as_echo_n "checking whether to build static libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011690 # Make sure either enable_shared or enable_static is yes.
11691 test "$enable_shared" = yes || enable_static=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11693$as_echo "$enable_static" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011694
11695
11696
11697
11698fi
11699ac_ext=cpp
11700ac_cpp='$CXXCPP $CPPFLAGS'
11701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11704
11705CC="$lt_save_CC"
11706
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011707 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11708 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11709 (test "X$CXX" != "Xg++"))) ; then
11710 ac_ext=cpp
11711ac_cpp='$CXXCPP $CPPFLAGS'
11712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11716$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11717if test -z "$CXXCPP"; then
11718 if ${ac_cv_prog_CXXCPP+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720else
11721 # Double quotes because CXXCPP needs to be expanded
11722 for CXXCPP in "$CXX -E" "/lib/cpp"
11723 do
11724 ac_preproc_ok=false
11725for ac_cxx_preproc_warn_flag in '' yes
11726do
11727 # Use a header file that comes with gcc, so configuring glibc
11728 # with a fresh cross-compiler works.
11729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 # <limits.h> exists even on freestanding compilers.
11731 # On the NeXT, cc -E runs the code through the compiler's parser,
11732 # not just through cpp. "Syntax error" is here to catch this case.
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734/* end confdefs.h. */
11735#ifdef __STDC__
11736# include <limits.h>
11737#else
11738# include <assert.h>
11739#endif
11740 Syntax error
11741_ACEOF
11742if ac_fn_cxx_try_cpp "$LINENO"; then :
11743
11744else
11745 # Broken: fails on valid input.
11746continue
11747fi
11748rm -f conftest.err conftest.i conftest.$ac_ext
11749
11750 # OK, works on sane cases. Now check whether nonexistent headers
11751 # can be detected and how.
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753/* end confdefs.h. */
11754#include <ac_nonexistent.h>
11755_ACEOF
11756if ac_fn_cxx_try_cpp "$LINENO"; then :
11757 # Broken: success on invalid input.
11758continue
11759else
11760 # Passes both tests.
11761ac_preproc_ok=:
11762break
11763fi
11764rm -f conftest.err conftest.i conftest.$ac_ext
11765
11766done
11767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11768rm -f conftest.i conftest.err conftest.$ac_ext
11769if $ac_preproc_ok; then :
11770 break
11771fi
11772
11773 done
11774 ac_cv_prog_CXXCPP=$CXXCPP
11775
11776fi
11777 CXXCPP=$ac_cv_prog_CXXCPP
11778else
11779 ac_cv_prog_CXXCPP=$CXXCPP
11780fi
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11782$as_echo "$CXXCPP" >&6; }
11783ac_preproc_ok=false
11784for ac_cxx_preproc_warn_flag in '' yes
11785do
11786 # Use a header file that comes with gcc, so configuring glibc
11787 # with a fresh cross-compiler works.
11788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11789 # <limits.h> exists even on freestanding compilers.
11790 # On the NeXT, cc -E runs the code through the compiler's parser,
11791 # not just through cpp. "Syntax error" is here to catch this case.
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h. */
11794#ifdef __STDC__
11795# include <limits.h>
11796#else
11797# include <assert.h>
11798#endif
11799 Syntax error
11800_ACEOF
11801if ac_fn_cxx_try_cpp "$LINENO"; then :
11802
11803else
11804 # Broken: fails on valid input.
11805continue
11806fi
11807rm -f conftest.err conftest.i conftest.$ac_ext
11808
11809 # OK, works on sane cases. Now check whether nonexistent headers
11810 # can be detected and how.
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812/* end confdefs.h. */
11813#include <ac_nonexistent.h>
11814_ACEOF
11815if ac_fn_cxx_try_cpp "$LINENO"; then :
11816 # Broken: success on invalid input.
11817continue
11818else
11819 # Passes both tests.
11820ac_preproc_ok=:
11821break
11822fi
11823rm -f conftest.err conftest.i conftest.$ac_ext
11824
11825done
11826# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11827rm -f conftest.i conftest.err conftest.$ac_ext
11828if $ac_preproc_ok; then :
11829
11830else
11831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11833as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11834See \`config.log' for more details" "$LINENO" 5; }
11835fi
11836
11837ac_ext=cpp
11838ac_cpp='$CXXCPP $CPPFLAGS'
11839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11842
11843else
11844 _lt_caught_CXX_error=yes
11845fi
Wink Savillefbaaef92010-05-27 16:25:37 -070011846
11847ac_ext=cpp
11848ac_cpp='$CXXCPP $CPPFLAGS'
11849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11852
11853archive_cmds_need_lc_CXX=no
11854allow_undefined_flag_CXX=
11855always_export_symbols_CXX=no
11856archive_expsym_cmds_CXX=
11857compiler_needs_object_CXX=no
11858export_dynamic_flag_spec_CXX=
11859hardcode_direct_CXX=no
11860hardcode_direct_absolute_CXX=no
11861hardcode_libdir_flag_spec_CXX=
Wink Savillefbaaef92010-05-27 16:25:37 -070011862hardcode_libdir_separator_CXX=
11863hardcode_minus_L_CXX=no
11864hardcode_shlibpath_var_CXX=unsupported
11865hardcode_automatic_CXX=no
11866inherit_rpath_CXX=no
11867module_cmds_CXX=
11868module_expsym_cmds_CXX=
11869link_all_deplibs_CXX=unknown
11870old_archive_cmds_CXX=$old_archive_cmds
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011871reload_flag_CXX=$reload_flag
11872reload_cmds_CXX=$reload_cmds
Wink Savillefbaaef92010-05-27 16:25:37 -070011873no_undefined_flag_CXX=
11874whole_archive_flag_spec_CXX=
11875enable_shared_with_static_runtimes_CXX=no
11876
11877# Source file extension for C++ test sources.
11878ac_ext=cpp
11879
11880# Object file extension for compiled C++ test sources.
11881objext=o
11882objext_CXX=$objext
11883
11884# No sense in running all these tests if we already determined that
11885# the CXX compiler isn't working. Some variables (like enable_shared)
11886# are currently assumed to apply to all compilers on this platform,
11887# and will be corrupted by setting them based on a non-working compiler.
11888if test "$_lt_caught_CXX_error" != yes; then
11889 # Code to be used in simple compile tests
11890 lt_simple_compile_test_code="int some_variable = 0;"
11891
11892 # Code to be used in simple link tests
11893 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11894
11895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11896
11897
11898
11899
11900
11901
11902# If no C compiler was specified, use CC.
11903LTCC=${LTCC-"$CC"}
11904
11905# If no C compiler flags were specified, use CFLAGS.
11906LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11907
11908# Allow CC to be a program name with arguments.
11909compiler=$CC
11910
11911
11912 # save warnings/boilerplate of simple test code
11913 ac_outfile=conftest.$ac_objext
11914echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11915eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11916_lt_compiler_boilerplate=`cat conftest.err`
11917$RM conftest*
11918
11919 ac_outfile=conftest.$ac_objext
11920echo "$lt_simple_link_test_code" >conftest.$ac_ext
11921eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922_lt_linker_boilerplate=`cat conftest.err`
11923$RM -r conftest*
11924
11925
11926 # Allow CC to be a program name with arguments.
11927 lt_save_CC=$CC
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011928 lt_save_CFLAGS=$CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070011929 lt_save_LD=$LD
11930 lt_save_GCC=$GCC
11931 GCC=$GXX
11932 lt_save_with_gnu_ld=$with_gnu_ld
11933 lt_save_path_LD=$lt_cv_path_LD
11934 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11935 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11936 else
11937 $as_unset lt_cv_prog_gnu_ld
11938 fi
11939 if test -n "${lt_cv_path_LDCXX+set}"; then
11940 lt_cv_path_LD=$lt_cv_path_LDCXX
11941 else
11942 $as_unset lt_cv_path_LD
11943 fi
11944 test -z "${LDCXX+set}" || LD=$LDCXX
11945 CC=${CXX-"c++"}
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011946 CFLAGS=$CXXFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070011947 compiler=$CC
11948 compiler_CXX=$CC
11949 for cc_temp in $compiler""; do
11950 case $cc_temp in
11951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11953 \-*) ;;
11954 *) break;;
11955 esac
11956done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011957cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Wink Savillefbaaef92010-05-27 16:25:37 -070011958
11959
11960 if test -n "$compiler"; then
11961 # We don't want -fno-exception when compiling C++ code, so set the
11962 # no_builtin_flag separately
11963 if test "$GXX" = yes; then
11964 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11965 else
11966 lt_prog_compiler_no_builtin_flag_CXX=
11967 fi
11968
11969 if test "$GXX" = yes; then
11970 # Set up default GNU C++ configuration
11971
11972
11973
11974# Check whether --with-gnu-ld was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011975if test "${with_gnu_ld+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11977else
11978 with_gnu_ld=no
11979fi
11980
11981ac_prog=ld
11982if test "$GCC" = yes; then
11983 # Check if gcc -print-prog-name=ld gives a path.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11985$as_echo_n "checking for ld used by $CC... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011986 case $host in
11987 *-*-mingw*)
11988 # gcc leaves a trailing carriage return which upsets mingw
11989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11990 *)
11991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11992 esac
11993 case $ac_prog in
11994 # Accept absolute paths.
11995 [\\/]* | ?:[\\/]*)
11996 re_direlt='/[^/][^/]*/\.\./'
11997 # Canonicalize the pathname of ld
11998 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11999 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12000 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12001 done
12002 test -z "$LD" && LD="$ac_prog"
12003 ;;
12004 "")
12005 # If it fails, then pretend we aren't using GCC.
12006 ac_prog=ld
12007 ;;
12008 *)
12009 # If it is relative, then search for the first ld in PATH.
12010 with_gnu_ld=unknown
12011 ;;
12012 esac
12013elif test "$with_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12015$as_echo_n "checking for GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012016else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12018$as_echo_n "checking for non-GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012019fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012020if ${lt_cv_path_LD+:} false; then :
12021 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070012022else
12023 if test -z "$LD"; then
12024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12025 for ac_dir in $PATH; do
12026 IFS="$lt_save_ifs"
12027 test -z "$ac_dir" && ac_dir=.
12028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12029 lt_cv_path_LD="$ac_dir/$ac_prog"
12030 # Check to see if the program is GNU ld. I'd rather use --version,
12031 # but apparently some variants of GNU ld only accept -v.
12032 # Break only if it was the GNU/non-GNU ld that we prefer.
12033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12034 *GNU* | *'with BFD'*)
12035 test "$with_gnu_ld" != no && break
12036 ;;
12037 *)
12038 test "$with_gnu_ld" != yes && break
12039 ;;
12040 esac
12041 fi
12042 done
12043 IFS="$lt_save_ifs"
12044else
12045 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12046fi
12047fi
12048
12049LD="$lt_cv_path_LD"
12050if test -n "$LD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12052$as_echo "$LD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012053else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012056fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012057test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12059$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12060if ${lt_cv_prog_gnu_ld+:} false; then :
12061 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070012062else
12063 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12064case `$LD -v 2>&1 </dev/null` in
12065*GNU* | *'with BFD'*)
12066 lt_cv_prog_gnu_ld=yes
12067 ;;
12068*)
12069 lt_cv_prog_gnu_ld=no
12070 ;;
12071esac
12072fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12074$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012075with_gnu_ld=$lt_cv_prog_gnu_ld
12076
12077
12078
12079
12080
12081
12082
12083 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12084 # archiving commands below assume that GNU ld is being used.
12085 if test "$with_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012086 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12087 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012088
12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12091
12092 # If archive_cmds runs LD, not CC, wlarc should be empty
12093 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12094 # investigate it a little bit more. (MM)
12095 wlarc='${wl}'
12096
12097 # ancient GNU ld didn't support --whole-archive et. al.
12098 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12099 $GREP 'no-whole-archive' > /dev/null; then
12100 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12101 else
12102 whole_archive_flag_spec_CXX=
12103 fi
12104 else
12105 with_gnu_ld=no
12106 wlarc=
12107
12108 # A generic and very simple default shared library creation
12109 # command for GNU C++ for the case where it uses the native
12110 # linker, instead of GNU ld. If possible, this setting should
12111 # overridden to take advantage of the native linker features on
12112 # the platform it is being used on.
12113 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12114 fi
12115
12116 # Commands to make compiler produce verbose output that lists
12117 # what "hidden" libraries, object files and flags are used when
12118 # linking a shared library.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012120
12121 else
12122 GXX=no
12123 with_gnu_ld=no
12124 wlarc=
12125 fi
12126
12127 # PORTME: fill in a description of your system's C++ link characteristics
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12129$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012130 ld_shlibs_CXX=yes
12131 case $host_os in
12132 aix3*)
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 ;;
12136 aix[4-9]*)
12137 if test "$host_cpu" = ia64; then
12138 # On IA64, the linker does run time linking by default, so we don't
12139 # have to do anything special.
12140 aix_use_runtimelinking=no
12141 exp_sym_flag='-Bexport'
12142 no_entry_flag=""
12143 else
12144 aix_use_runtimelinking=no
12145
12146 # Test if we are trying to use run time linking or normal
12147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12148 # need to do runtime linking.
12149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12150 for ld_flag in $LDFLAGS; do
12151 case $ld_flag in
12152 *-brtl*)
12153 aix_use_runtimelinking=yes
12154 break
12155 ;;
12156 esac
12157 done
12158 ;;
12159 esac
12160
12161 exp_sym_flag='-bexport'
12162 no_entry_flag='-bnoentry'
12163 fi
12164
12165 # When large executables or shared objects are built, AIX ld can
12166 # have problems creating the table of contents. If linking a library
12167 # or program results in "error TOC overflow" add -mminimal-toc to
12168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12170
12171 archive_cmds_CXX=''
12172 hardcode_direct_CXX=yes
12173 hardcode_direct_absolute_CXX=yes
12174 hardcode_libdir_separator_CXX=':'
12175 link_all_deplibs_CXX=yes
12176 file_list_spec_CXX='${wl}-f,'
12177
12178 if test "$GXX" = yes; then
12179 case $host_os in aix4.[012]|aix4.[012].*)
12180 # We only want to do this on AIX 4.2 and lower, the check
12181 # below for broken collect2 doesn't work under 4.3+
12182 collect2name=`${CC} -print-prog-name=collect2`
12183 if test -f "$collect2name" &&
12184 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12185 then
12186 # We have reworked collect2
12187 :
12188 else
12189 # We have old collect2
12190 hardcode_direct_CXX=unsupported
12191 # It fails to find uninstalled libraries when the uninstalled
12192 # path is not listed in the libpath. Setting hardcode_minus_L
12193 # to unsupported forces relinking
12194 hardcode_minus_L_CXX=yes
12195 hardcode_libdir_flag_spec_CXX='-L$libdir'
12196 hardcode_libdir_separator_CXX=
12197 fi
12198 esac
12199 shared_flag='-shared'
12200 if test "$aix_use_runtimelinking" = yes; then
12201 shared_flag="$shared_flag "'${wl}-G'
12202 fi
12203 else
12204 # not using gcc
12205 if test "$host_cpu" = ia64; then
12206 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12207 # chokes on -Wl,-G. The following line is correct:
12208 shared_flag='-G'
12209 else
12210 if test "$aix_use_runtimelinking" = yes; then
12211 shared_flag='${wl}-G'
12212 else
12213 shared_flag='${wl}-bM:SRE'
12214 fi
12215 fi
12216 fi
12217
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012218 export_dynamic_flag_spec_CXX='${wl}-bexpall'
Wink Savillefbaaef92010-05-27 16:25:37 -070012219 # It seems that -bexpall does not export symbols beginning with
12220 # underscore (_), so it is better to generate a list of symbols to
12221 # export.
12222 always_export_symbols_CXX=yes
12223 if test "$aix_use_runtimelinking" = yes; then
12224 # Warning - without using the other runtime loading flags (-brtl),
12225 # -berok will link without error, but may produce a broken library.
12226 allow_undefined_flag_CXX='-berok'
12227 # Determine the default libpath from the value encoded in an empty
12228 # executable.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012229 if test "${lt_cv_aix_libpath+set}" = set; then
12230 aix_libpath=$lt_cv_aix_libpath
12231else
12232 if ${lt_cv_aix_libpath__CXX+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234else
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070012236/* end confdefs.h. */
12237
12238int
12239main ()
12240{
12241
12242 ;
12243 return 0;
12244}
12245_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012246if ac_fn_cxx_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012247
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012248 lt_aix_libpath_sed='
12249 /Import File Strings/,/^$/ {
12250 /^0/ {
12251 s/^0 *\([^ ]*\) *$/\1/
12252 p
12253 }
12254 }'
12255 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12256 # Check for a 64-bit object if we didn't find anything.
12257 if test -z "$lt_cv_aix_libpath__CXX"; then
12258 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12259 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012260fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012261rm -f core conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
12263 if test -z "$lt_cv_aix_libpath__CXX"; then
12264 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12265 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012266
12267fi
12268
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012269 aix_libpath=$lt_cv_aix_libpath__CXX
12270fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012271
12272 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12273
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012274 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Wink Savillefbaaef92010-05-27 16:25:37 -070012275 else
12276 if test "$host_cpu" = ia64; then
12277 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12278 allow_undefined_flag_CXX="-z nodefs"
12279 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"
12280 else
12281 # Determine the default libpath from the value encoded in an
12282 # empty executable.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012283 if test "${lt_cv_aix_libpath+set}" = set; then
12284 aix_libpath=$lt_cv_aix_libpath
12285else
12286 if ${lt_cv_aix_libpath__CXX+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288else
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070012290/* end confdefs.h. */
12291
12292int
12293main ()
12294{
12295
12296 ;
12297 return 0;
12298}
12299_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012300if ac_fn_cxx_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012301
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012302 lt_aix_libpath_sed='
12303 /Import File Strings/,/^$/ {
12304 /^0/ {
12305 s/^0 *\([^ ]*\) *$/\1/
12306 p
12307 }
12308 }'
12309 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12310 # Check for a 64-bit object if we didn't find anything.
12311 if test -z "$lt_cv_aix_libpath__CXX"; then
12312 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12313 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012314fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012315rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 if test -z "$lt_cv_aix_libpath__CXX"; then
12318 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12319 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012320
12321fi
12322
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012323 aix_libpath=$lt_cv_aix_libpath__CXX
12324fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012325
12326 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12327 # Warning - without using the other run time loading flags,
12328 # -berok will link without error, but may produce a broken library.
12329 no_undefined_flag_CXX=' ${wl}-bernotok'
12330 allow_undefined_flag_CXX=' ${wl}-berok'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012331 if test "$with_gnu_ld" = yes; then
12332 # We only use this code for GNU lds that support --whole-archive.
12333 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12334 else
12335 # Exported symbols can be pulled into shared objects from archives
12336 whole_archive_flag_spec_CXX='$convenience'
12337 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012338 archive_cmds_need_lc_CXX=yes
12339 # This is similar to how AIX traditionally builds its shared
12340 # libraries.
12341 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'
12342 fi
12343 fi
12344 ;;
12345
12346 beos*)
12347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12348 allow_undefined_flag_CXX=unsupported
12349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12350 # support --undefined. This deserves some investigation. FIXME
12351 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12352 else
12353 ld_shlibs_CXX=no
12354 fi
12355 ;;
12356
12357 chorus*)
12358 case $cc_basename in
12359 *)
12360 # FIXME: insert proper C++ library support
12361 ld_shlibs_CXX=no
12362 ;;
12363 esac
12364 ;;
12365
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012366 cygwin* | mingw* | pw32* | cegcc*)
12367 case $GXX,$cc_basename in
12368 ,cl* | no,cl*)
12369 # Native MSVC
12370 # hardcode_libdir_flag_spec is actually meaningless, as there is
12371 # no search path for DLLs.
12372 hardcode_libdir_flag_spec_CXX=' '
12373 allow_undefined_flag_CXX=unsupported
12374 always_export_symbols_CXX=yes
12375 file_list_spec_CXX='@'
12376 # Tell ltmain to make .lib files, not .a files.
12377 libext=lib
12378 # Tell ltmain to make .dll files, not .so files.
12379 shrext_cmds=".dll"
12380 # FIXME: Setting linknames here is a bad hack.
12381 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12382 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12383 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12384 else
12385 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12386 fi~
12387 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12388 linknames='
12389 # The linker will not automatically build a static lib if we build a DLL.
12390 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12391 enable_shared_with_static_runtimes_CXX=yes
12392 # Don't use ranlib
12393 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12394 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12395 lt_tool_outputfile="@TOOL_OUTPUT@"~
12396 case $lt_outputfile in
12397 *.exe|*.EXE) ;;
12398 *)
12399 lt_outputfile="$lt_outputfile.exe"
12400 lt_tool_outputfile="$lt_tool_outputfile.exe"
12401 ;;
12402 esac~
12403 func_to_tool_file "$lt_outputfile"~
12404 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12405 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12406 $RM "$lt_outputfile.manifest";
12407 fi'
12408 ;;
12409 *)
12410 # g++
12411 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12412 # as there is no search path for DLLs.
12413 hardcode_libdir_flag_spec_CXX='-L$libdir'
12414 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12415 allow_undefined_flag_CXX=unsupported
12416 always_export_symbols_CXX=no
12417 enable_shared_with_static_runtimes_CXX=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070012418
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012419 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12420 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'
12421 # If the export-symbols file already is a .def file (1st line
12422 # is EXPORTS), use it as is; otherwise, prepend...
12423 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12424 cp $export_symbols $output_objdir/$soname.def;
12425 else
12426 echo EXPORTS > $output_objdir/$soname.def;
12427 cat $export_symbols >> $output_objdir/$soname.def;
12428 fi~
12429 $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'
12430 else
12431 ld_shlibs_CXX=no
12432 fi
12433 ;;
12434 esac
12435 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070012436 darwin* | rhapsody*)
12437
12438
12439 archive_cmds_need_lc_CXX=no
12440 hardcode_direct_CXX=no
12441 hardcode_automatic_CXX=yes
12442 hardcode_shlibpath_var_CXX=unsupported
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012443 if test "$lt_cv_ld_force_load" = "yes"; then
12444 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12445
12446 else
12447 whole_archive_flag_spec_CXX=''
12448 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012449 link_all_deplibs_CXX=yes
12450 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012451 case $cc_basename in
12452 ifort*) _lt_dar_can_shared=yes ;;
12453 *) _lt_dar_can_shared=$GCC ;;
12454 esac
12455 if test "$_lt_dar_can_shared" = "yes"; then
12456 output_verbose_link_cmd=func_echo_all
Wink Savillefbaaef92010-05-27 16:25:37 -070012457 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}"
12458 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12459 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}"
12460 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}"
12461 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12462 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}"
12463 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}"
12464 fi
12465
12466 else
12467 ld_shlibs_CXX=no
12468 fi
12469
12470 ;;
12471
12472 dgux*)
12473 case $cc_basename in
12474 ec++*)
12475 # FIXME: insert proper C++ library support
12476 ld_shlibs_CXX=no
12477 ;;
12478 ghcx*)
12479 # Green Hills C++ Compiler
12480 # FIXME: insert proper C++ library support
12481 ld_shlibs_CXX=no
12482 ;;
12483 *)
12484 # FIXME: insert proper C++ library support
12485 ld_shlibs_CXX=no
12486 ;;
12487 esac
12488 ;;
12489
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012490 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -070012491 # C++ shared libraries reported to be fairly broken before
12492 # switch to ELF
12493 ld_shlibs_CXX=no
12494 ;;
12495
12496 freebsd-elf*)
12497 archive_cmds_need_lc_CXX=no
12498 ;;
12499
12500 freebsd* | dragonfly*)
12501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12502 # conventions
12503 ld_shlibs_CXX=yes
12504 ;;
12505
12506 gnu*)
12507 ;;
12508
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012509 haiku*)
12510 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12511 link_all_deplibs_CXX=yes
12512 ;;
12513
Wink Savillefbaaef92010-05-27 16:25:37 -070012514 hpux9*)
12515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12516 hardcode_libdir_separator_CXX=:
12517 export_dynamic_flag_spec_CXX='${wl}-E'
12518 hardcode_direct_CXX=yes
12519 hardcode_minus_L_CXX=yes # Not in the search PATH,
12520 # but as the default
12521 # location of the library.
12522
12523 case $cc_basename in
12524 CC*)
12525 # FIXME: insert proper C++ library support
12526 ld_shlibs_CXX=no
12527 ;;
12528 aCC*)
12529 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'
12530 # Commands to make compiler produce verbose output that lists
12531 # what "hidden" libraries, object files and flags are used when
12532 # linking a shared library.
12533 #
12534 # There doesn't appear to be a way to prevent this compiler from
12535 # explicitly linking system object files so we need to strip them
12536 # from the output so that they don't get included in the library
12537 # dependencies.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012538 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; func_echo_all "$list"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012539 ;;
12540 *)
12541 if test "$GXX" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012542 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
Wink Savillefbaaef92010-05-27 16:25:37 -070012543 else
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 fi
12547 ;;
12548 esac
12549 ;;
12550
12551 hpux10*|hpux11*)
12552 if test $with_gnu_ld = no; then
12553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12554 hardcode_libdir_separator_CXX=:
12555
12556 case $host_cpu in
12557 hppa*64*|ia64*)
12558 ;;
12559 *)
12560 export_dynamic_flag_spec_CXX='${wl}-E'
12561 ;;
12562 esac
12563 fi
12564 case $host_cpu in
12565 hppa*64*|ia64*)
12566 hardcode_direct_CXX=no
12567 hardcode_shlibpath_var_CXX=no
12568 ;;
12569 *)
12570 hardcode_direct_CXX=yes
12571 hardcode_direct_absolute_CXX=yes
12572 hardcode_minus_L_CXX=yes # Not in the search PATH,
12573 # but as the default
12574 # location of the library.
12575 ;;
12576 esac
12577
12578 case $cc_basename in
12579 CC*)
12580 # FIXME: insert proper C++ library support
12581 ld_shlibs_CXX=no
12582 ;;
12583 aCC*)
12584 case $host_cpu in
12585 hppa*64*)
12586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12587 ;;
12588 ia64*)
12589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12590 ;;
12591 *)
12592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12593 ;;
12594 esac
12595 # Commands to make compiler produce verbose output that lists
12596 # what "hidden" libraries, object files and flags are used when
12597 # linking a shared library.
12598 #
12599 # There doesn't appear to be a way to prevent this compiler from
12600 # explicitly linking system object files so we need to strip them
12601 # from the output so that they don't get included in the library
12602 # dependencies.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012603 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; func_echo_all "$list"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012604 ;;
12605 *)
12606 if test "$GXX" = yes; then
12607 if test $with_gnu_ld = no; then
12608 case $host_cpu in
12609 hppa*64*)
12610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12611 ;;
12612 ia64*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012613 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070012614 ;;
12615 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012616 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070012617 ;;
12618 esac
12619 fi
12620 else
12621 # FIXME: insert proper C++ library support
12622 ld_shlibs_CXX=no
12623 fi
12624 ;;
12625 esac
12626 ;;
12627
12628 interix[3-9]*)
12629 hardcode_direct_CXX=no
12630 hardcode_shlibpath_var_CXX=no
12631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12632 export_dynamic_flag_spec_CXX='${wl}-E'
12633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12634 # Instead, shared libraries are loaded at an image base (0x10000000 by
12635 # default) and relocated if they conflict, which is a slow very memory
12636 # consuming and fragmenting process. To avoid this, we pick a random,
12637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12639 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'
12640 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'
12641 ;;
12642 irix5* | irix6*)
12643 case $cc_basename in
12644 CC*)
12645 # SGI C++
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012646 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012647
12648 # Archives containing C++ object files must be created using
12649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12650 # necessary to make sure instantiated templates are included
12651 # in the archive.
12652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12653 ;;
12654 *)
12655 if test "$GXX" = yes; then
12656 if test "$with_gnu_ld" = no; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012657 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012658 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012659 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012660 fi
12661 fi
12662 link_all_deplibs_CXX=yes
12663 ;;
12664 esac
12665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12666 hardcode_libdir_separator_CXX=:
12667 inherit_rpath_CXX=yes
12668 ;;
12669
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -070012671 case $cc_basename in
12672 KCC*)
12673 # Kuck and Associates, Inc. (KAI) C++ Compiler
12674
12675 # KCC will only create a shared library if the output file
12676 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12677 # to its proper name (with version) after linking.
12678 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'
12679 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'
12680 # Commands to make compiler produce verbose output that lists
12681 # what "hidden" libraries, object files and flags are used when
12682 # linking a shared library.
12683 #
12684 # There doesn't appear to be a way to prevent this compiler from
12685 # explicitly linking system object files so we need to strip them
12686 # from the output so that they don't get included in the library
12687 # dependencies.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012688 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; func_echo_all "$list"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012689
12690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12692
12693 # Archives containing C++ object files must be created using
12694 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12695 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12696 ;;
12697 icpc* | ecpc* )
12698 # Intel C++
12699 with_gnu_ld=yes
12700 # version 8.0 and above of icpc choke on multiply defined symbols
12701 # if we add $predep_objects and $postdep_objects, however 7.1 and
12702 # earlier do not add the objects themselves.
12703 case `$CC -V 2>&1` in
12704 *"Version 7."*)
12705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12706 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'
12707 ;;
12708 *) # Version 8.0 or newer
12709 tmp_idyn=
12710 case $host_cpu in
12711 ia64*) tmp_idyn=' -i_dynamic';;
12712 esac
12713 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12714 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'
12715 ;;
12716 esac
12717 archive_cmds_need_lc_CXX=no
12718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12720 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12721 ;;
12722 pgCC* | pgcpp*)
12723 # Portland Group C++ compiler
12724 case `$CC -V` in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012725 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
Wink Savillefbaaef92010-05-27 16:25:37 -070012726 prelink_cmds_CXX='tpldir=Template.dir~
12727 rm -rf $tpldir~
12728 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012729 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012730 old_archive_cmds_CXX='tpldir=Template.dir~
12731 rm -rf $tpldir~
12732 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012733 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
Wink Savillefbaaef92010-05-27 16:25:37 -070012734 $RANLIB $oldlib'
12735 archive_cmds_CXX='tpldir=Template.dir~
12736 rm -rf $tpldir~
12737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012738 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012739 archive_expsym_cmds_CXX='tpldir=Template.dir~
12740 rm -rf $tpldir~
12741 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012742 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012743 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012744 *) # Version 6 and above use weak symbols
Wink Savillefbaaef92010-05-27 16:25:37 -070012745 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12746 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'
12747 ;;
12748 esac
12749
12750 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012752 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Wink Savillefbaaef92010-05-27 16:25:37 -070012753 ;;
12754 cxx*)
12755 # Compaq C++
12756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757 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'
12758
12759 runpath_var=LD_RUN_PATH
12760 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12761 hardcode_libdir_separator_CXX=:
12762
12763 # Commands to make compiler produce verbose output that lists
12764 # what "hidden" libraries, object files and flags are used when
12765 # linking a shared library.
12766 #
12767 # There doesn't appear to be a way to prevent this compiler from
12768 # explicitly linking system object files so we need to strip them
12769 # from the output so that they don't get included in the library
12770 # dependencies.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012771 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
Wink Savillefbaaef92010-05-27 16:25:37 -070012772 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012773 xl* | mpixl* | bgxl*)
Wink Savillefbaaef92010-05-27 16:25:37 -070012774 # IBM XL 8.0 on PPC, with GNU ld
12775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12777 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 if test "x$supports_anon_versioning" = xyes; then
12779 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12781 echo "local: *; };" >> $output_objdir/$libname.ver~
12782 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12783 fi
12784 ;;
12785 *)
12786 case `$CC -V 2>&1 | sed 5q` in
12787 *Sun\ C*)
12788 # Sun C++ 5.9
12789 no_undefined_flag_CXX=' -zdefs'
12790 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12791 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'
12792 hardcode_libdir_flag_spec_CXX='-R$libdir'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012793 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Wink Savillefbaaef92010-05-27 16:25:37 -070012794 compiler_needs_object_CXX=yes
12795
12796 # Not sure whether something based on
12797 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12798 # would be better.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012799 output_verbose_link_cmd='func_echo_all'
Wink Savillefbaaef92010-05-27 16:25:37 -070012800
12801 # Archives containing C++ object files must be created using
12802 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12803 # necessary to make sure instantiated templates are included
12804 # in the archive.
12805 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12806 ;;
12807 esac
12808 ;;
12809 esac
12810 ;;
12811
12812 lynxos*)
12813 # FIXME: insert proper C++ library support
12814 ld_shlibs_CXX=no
12815 ;;
12816
12817 m88k*)
12818 # FIXME: insert proper C++ library support
12819 ld_shlibs_CXX=no
12820 ;;
12821
12822 mvs*)
12823 case $cc_basename in
12824 cxx*)
12825 # FIXME: insert proper C++ library support
12826 ld_shlibs_CXX=no
12827 ;;
12828 *)
12829 # FIXME: insert proper C++ library support
12830 ld_shlibs_CXX=no
12831 ;;
12832 esac
12833 ;;
12834
12835 netbsd*)
12836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12837 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12838 wlarc=
12839 hardcode_libdir_flag_spec_CXX='-R$libdir'
12840 hardcode_direct_CXX=yes
12841 hardcode_shlibpath_var_CXX=no
12842 fi
12843 # Workaround some broken pre-1.5 toolchains
12844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12845 ;;
12846
12847 *nto* | *qnx*)
12848 ld_shlibs_CXX=yes
12849 ;;
12850
12851 openbsd2*)
12852 # C++ shared libraries are fairly broken
12853 ld_shlibs_CXX=no
12854 ;;
12855
12856 openbsd*)
12857 if test -f /usr/libexec/ld.so; then
12858 hardcode_direct_CXX=yes
12859 hardcode_shlibpath_var_CXX=no
12860 hardcode_direct_absolute_CXX=yes
12861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12864 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12865 export_dynamic_flag_spec_CXX='${wl}-E'
12866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12867 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012868 output_verbose_link_cmd=func_echo_all
Wink Savillefbaaef92010-05-27 16:25:37 -070012869 else
12870 ld_shlibs_CXX=no
12871 fi
12872 ;;
12873
12874 osf3* | osf4* | osf5*)
12875 case $cc_basename in
12876 KCC*)
12877 # Kuck and Associates, Inc. (KAI) C++ Compiler
12878
12879 # KCC will only create a shared library if the output file
12880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12881 # to its proper name (with version) after linking.
12882 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'
12883
12884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12885 hardcode_libdir_separator_CXX=:
12886
12887 # Archives containing C++ object files must be created using
12888 # the KAI C++ compiler.
12889 case $host in
12890 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12891 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12892 esac
12893 ;;
12894 RCC*)
12895 # Rational C++ 2.4.1
12896 # FIXME: insert proper C++ library support
12897 ld_shlibs_CXX=no
12898 ;;
12899 cxx*)
12900 case $host in
12901 osf3*)
12902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012903 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12905 ;;
12906 *)
12907 allow_undefined_flag_CXX=' -expect_unresolved \*'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012908 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012909 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12910 echo "-hidden">> $lib.exp~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012911 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
Wink Savillefbaaef92010-05-27 16:25:37 -070012912 $RM $lib.exp'
12913 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12914 ;;
12915 esac
12916
12917 hardcode_libdir_separator_CXX=:
12918
12919 # Commands to make compiler produce verbose output that lists
12920 # what "hidden" libraries, object files and flags are used when
12921 # linking a shared library.
12922 #
12923 # There doesn't appear to be a way to prevent this compiler from
12924 # explicitly linking system object files so we need to strip them
12925 # from the output so that they don't get included in the library
12926 # dependencies.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012927 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012928 ;;
12929 *)
12930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12932 case $host in
12933 osf3*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012934 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012935 ;;
12936 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012937 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070012938 ;;
12939 esac
12940
12941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12942 hardcode_libdir_separator_CXX=:
12943
12944 # Commands to make compiler produce verbose output that lists
12945 # what "hidden" libraries, object files and flags are used when
12946 # linking a shared library.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012948
12949 else
12950 # FIXME: insert proper C++ library support
12951 ld_shlibs_CXX=no
12952 fi
12953 ;;
12954 esac
12955 ;;
12956
12957 psos*)
12958 # FIXME: insert proper C++ library support
12959 ld_shlibs_CXX=no
12960 ;;
12961
12962 sunos4*)
12963 case $cc_basename in
12964 CC*)
12965 # Sun C++ 4.x
12966 # FIXME: insert proper C++ library support
12967 ld_shlibs_CXX=no
12968 ;;
12969 lcc*)
12970 # Lucid
12971 # FIXME: insert proper C++ library support
12972 ld_shlibs_CXX=no
12973 ;;
12974 *)
12975 # FIXME: insert proper C++ library support
12976 ld_shlibs_CXX=no
12977 ;;
12978 esac
12979 ;;
12980
12981 solaris*)
12982 case $cc_basename in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012983 CC* | sunCC*)
Wink Savillefbaaef92010-05-27 16:25:37 -070012984 # Sun C++ 4.2, 5.x and Centerline C++
12985 archive_cmds_need_lc_CXX=yes
12986 no_undefined_flag_CXX=' -zdefs'
12987 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12988 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12989 $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'
12990
12991 hardcode_libdir_flag_spec_CXX='-R$libdir'
12992 hardcode_shlibpath_var_CXX=no
12993 case $host_os in
12994 solaris2.[0-5] | solaris2.[0-5].*) ;;
12995 *)
12996 # The compiler driver will combine and reorder linker options,
12997 # but understands `-z linker_flag'.
12998 # Supported since Solaris 2.6 (maybe 2.5.1?)
12999 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13000 ;;
13001 esac
13002 link_all_deplibs_CXX=yes
13003
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013004 output_verbose_link_cmd='func_echo_all'
Wink Savillefbaaef92010-05-27 16:25:37 -070013005
13006 # Archives containing C++ object files must be created using
13007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13008 # necessary to make sure instantiated templates are included
13009 # in the archive.
13010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13011 ;;
13012 gcx*)
13013 # Green Hills C++ Compiler
13014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13015
13016 # The C++ compiler must be used to create the archive.
13017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13018 ;;
13019 *)
13020 # GNU C++ compiler with Solaris linker
13021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13023 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013024 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070013025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013026 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Wink Savillefbaaef92010-05-27 16:25:37 -070013027
13028 # Commands to make compiler produce verbose output that lists
13029 # what "hidden" libraries, object files and flags are used when
13030 # linking a shared library.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013032 else
13033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13034 # platform.
13035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13036 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13038
13039 # Commands to make compiler produce verbose output that lists
13040 # what "hidden" libraries, object files and flags are used when
13041 # linking a shared library.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013042 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013043 fi
13044
13045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13046 case $host_os in
13047 solaris2.[0-5] | solaris2.[0-5].*) ;;
13048 *)
13049 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13050 ;;
13051 esac
13052 fi
13053 ;;
13054 esac
13055 ;;
13056
13057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13058 no_undefined_flag_CXX='${wl}-z,text'
13059 archive_cmds_need_lc_CXX=no
13060 hardcode_shlibpath_var_CXX=no
13061 runpath_var='LD_RUN_PATH'
13062
13063 case $cc_basename in
13064 CC*)
13065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13067 ;;
13068 *)
13069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 ;;
13072 esac
13073 ;;
13074
13075 sysv5* | sco3.2v5* | sco5v6*)
13076 # Note: We can NOT use -z defs as we might desire, because we do not
13077 # link with -lc, and that would cause any symbols used from libc to
13078 # always be unresolved, which means just about no library would
13079 # ever link correctly. If we're not using GNU ld we use -z text
13080 # though, which does catch some bad symbols but isn't as heavy-handed
13081 # as -z defs.
13082 no_undefined_flag_CXX='${wl}-z,text'
13083 allow_undefined_flag_CXX='${wl}-z,nodefs'
13084 archive_cmds_need_lc_CXX=no
13085 hardcode_shlibpath_var_CXX=no
13086 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13087 hardcode_libdir_separator_CXX=':'
13088 link_all_deplibs_CXX=yes
13089 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13090 runpath_var='LD_RUN_PATH'
13091
13092 case $cc_basename in
13093 CC*)
13094 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013096 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13097 '"$old_archive_cmds_CXX"
13098 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13099 '"$reload_cmds_CXX"
Wink Savillefbaaef92010-05-27 16:25:37 -070013100 ;;
13101 *)
13102 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 ;;
13105 esac
13106 ;;
13107
13108 tandem*)
13109 case $cc_basename in
13110 NCC*)
13111 # NonStop-UX NCC 3.20
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13114 ;;
13115 *)
13116 # FIXME: insert proper C++ library support
13117 ld_shlibs_CXX=no
13118 ;;
13119 esac
13120 ;;
13121
13122 vxworks*)
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13125 ;;
13126
13127 *)
13128 # FIXME: insert proper C++ library support
13129 ld_shlibs_CXX=no
13130 ;;
13131 esac
13132
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13134$as_echo "$ld_shlibs_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013135 test "$ld_shlibs_CXX" = no && can_build_shared=no
13136
13137 GCC_CXX="$GXX"
13138 LD_CXX="$LD"
13139
13140 ## CAVEAT EMPTOR:
13141 ## There is no encapsulation within the following macros, do not change
13142 ## the running order or otherwise move them around unless you know exactly
13143 ## what you are doing...
13144 # Dependencies to place before and after the object being linked:
13145predep_objects_CXX=
13146postdep_objects_CXX=
13147predeps_CXX=
13148postdeps_CXX=
13149compiler_lib_search_path_CXX=
13150
13151cat > conftest.$ac_ext <<_LT_EOF
13152class Foo
13153{
13154public:
13155 Foo (void) { a = 0; }
13156private:
13157 int a;
13158};
13159_LT_EOF
13160
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013161
13162_lt_libdeps_save_CFLAGS=$CFLAGS
13163case "$CC $CFLAGS " in #(
13164*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13165*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13166*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13167esac
13168
13169if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070013170 (eval $ac_compile) 2>&5
13171 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13173 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -070013174 # Parse the compiler output and extract the necessary
13175 # objects, libraries and library flags.
13176
13177 # Sentinel used to keep track of whether or not we are before
13178 # the conftest object file.
13179 pre_test_object_deps_done=no
13180
13181 for p in `eval "$output_verbose_link_cmd"`; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013182 case ${prev}${p} in
Wink Savillefbaaef92010-05-27 16:25:37 -070013183
13184 -L* | -R* | -l*)
13185 # Some compilers place space between "-{L,R}" and the path.
13186 # Remove the space.
13187 if test $p = "-L" ||
13188 test $p = "-R"; then
13189 prev=$p
13190 continue
Wink Savillefbaaef92010-05-27 16:25:37 -070013191 fi
13192
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013193 # Expand the sysroot to ease extracting the directories later.
13194 if test -z "$prev"; then
13195 case $p in
13196 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13197 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13198 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13199 esac
13200 fi
13201 case $p in
13202 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13203 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070013204 if test "$pre_test_object_deps_done" = no; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013205 case ${prev} in
13206 -L | -R)
Wink Savillefbaaef92010-05-27 16:25:37 -070013207 # Internal compiler library paths should come after those
13208 # provided the user. The postdeps already come after the
13209 # user supplied libs so there is no need to process them.
13210 if test -z "$compiler_lib_search_path_CXX"; then
13211 compiler_lib_search_path_CXX="${prev}${p}"
13212 else
13213 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13214 fi
13215 ;;
13216 # The "-l" case would never come before the object being
13217 # linked, so don't bother handling this case.
13218 esac
13219 else
13220 if test -z "$postdeps_CXX"; then
13221 postdeps_CXX="${prev}${p}"
13222 else
13223 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13224 fi
13225 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013226 prev=
Wink Savillefbaaef92010-05-27 16:25:37 -070013227 ;;
13228
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013229 *.lto.$objext) ;; # Ignore GCC LTO objects
Wink Savillefbaaef92010-05-27 16:25:37 -070013230 *.$objext)
13231 # This assumes that the test object file only shows up
13232 # once in the compiler output.
13233 if test "$p" = "conftest.$objext"; then
13234 pre_test_object_deps_done=yes
13235 continue
13236 fi
13237
13238 if test "$pre_test_object_deps_done" = no; then
13239 if test -z "$predep_objects_CXX"; then
13240 predep_objects_CXX="$p"
13241 else
13242 predep_objects_CXX="$predep_objects_CXX $p"
13243 fi
13244 else
13245 if test -z "$postdep_objects_CXX"; then
13246 postdep_objects_CXX="$p"
13247 else
13248 postdep_objects_CXX="$postdep_objects_CXX $p"
13249 fi
13250 fi
13251 ;;
13252
13253 *) ;; # Ignore the rest.
13254
13255 esac
13256 done
13257
13258 # Clean up.
13259 rm -f a.out a.exe
13260else
13261 echo "libtool.m4: error: problem compiling CXX test program"
13262fi
13263
13264$RM -f confest.$objext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013265CFLAGS=$_lt_libdeps_save_CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070013266
13267# PORTME: override above test on systems where it is broken
13268case $host_os in
13269interix[3-9]*)
13270 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13271 # hack all around it, let's just trust "g++" to DTRT.
13272 predep_objects_CXX=
13273 postdep_objects_CXX=
13274 postdeps_CXX=
13275 ;;
13276
13277linux*)
13278 case `$CC -V 2>&1 | sed 5q` in
13279 *Sun\ C*)
13280 # Sun C++ 5.9
13281
13282 # The more standards-conforming stlport4 library is
13283 # incompatible with the Cstd library. Avoid specifying
13284 # it if it's in CXXFLAGS. Ignore libCrun as
13285 # -library=stlport4 depends on it.
13286 case " $CXX $CXXFLAGS " in
13287 *" -library=stlport4 "*)
13288 solaris_use_stlport4=yes
13289 ;;
13290 esac
13291
13292 if test "$solaris_use_stlport4" != yes; then
13293 postdeps_CXX='-library=Cstd -library=Crun'
13294 fi
13295 ;;
13296 esac
13297 ;;
13298
13299solaris*)
13300 case $cc_basename in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013301 CC* | sunCC*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013302 # The more standards-conforming stlport4 library is
13303 # incompatible with the Cstd library. Avoid specifying
13304 # it if it's in CXXFLAGS. Ignore libCrun as
13305 # -library=stlport4 depends on it.
13306 case " $CXX $CXXFLAGS " in
13307 *" -library=stlport4 "*)
13308 solaris_use_stlport4=yes
13309 ;;
13310 esac
13311
13312 # Adding this requires a known-good setup of shared libraries for
13313 # Sun compiler versions before 5.6, else PIC objects from an old
13314 # archive will be linked into the output, leading to subtle bugs.
13315 if test "$solaris_use_stlport4" != yes; then
13316 postdeps_CXX='-library=Cstd -library=Crun'
13317 fi
13318 ;;
13319 esac
13320 ;;
13321esac
13322
13323
13324case " $postdeps_CXX " in
13325*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13326esac
13327 compiler_lib_search_dirs_CXX=
13328if test -n "${compiler_lib_search_path_CXX}"; then
13329 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13330fi
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362 lt_prog_compiler_wl_CXX=
13363lt_prog_compiler_pic_CXX=
13364lt_prog_compiler_static_CXX=
13365
Wink Savillefbaaef92010-05-27 16:25:37 -070013366
13367 # C++ specific cases for pic, static, wl, etc.
13368 if test "$GXX" = yes; then
13369 lt_prog_compiler_wl_CXX='-Wl,'
13370 lt_prog_compiler_static_CXX='-static'
13371
13372 case $host_os in
13373 aix*)
13374 # All AIX code is PIC.
13375 if test "$host_cpu" = ia64; then
13376 # AIX 5 now supports IA64 processor
13377 lt_prog_compiler_static_CXX='-Bstatic'
13378 fi
13379 ;;
13380
13381 amigaos*)
13382 case $host_cpu in
13383 powerpc)
13384 # see comment about AmigaOS4 .so support
13385 lt_prog_compiler_pic_CXX='-fPIC'
13386 ;;
13387 m68k)
13388 # FIXME: we need at least 68020 code to build shared libraries, but
13389 # adding the `-m68020' flag to GCC prevents building anything better,
13390 # like `-m68040'.
13391 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13392 ;;
13393 esac
13394 ;;
13395
13396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13397 # PIC is the default for these OSes.
13398 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013399 mingw* | cygwin* | os2* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013400 # This hack is so that the source file can tell whether it is being
13401 # built for inclusion in a dll (and should export symbols for example).
13402 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13403 # (--disable-auto-import) libraries
13404 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13405 ;;
13406 darwin* | rhapsody*)
13407 # PIC is the default on this platform
13408 # Common symbols not allowed in MH_DYLIB files
13409 lt_prog_compiler_pic_CXX='-fno-common'
13410 ;;
13411 *djgpp*)
13412 # DJGPP does not support shared libraries at all
13413 lt_prog_compiler_pic_CXX=
13414 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013415 haiku*)
13416 # PIC is the default for Haiku.
13417 # The "-static" flag exists, but is broken.
13418 lt_prog_compiler_static_CXX=
13419 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070013420 interix[3-9]*)
13421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13422 # Instead, we relocate shared libraries at runtime.
13423 ;;
13424 sysv4*MP*)
13425 if test -d /usr/nec; then
13426 lt_prog_compiler_pic_CXX=-Kconform_pic
13427 fi
13428 ;;
13429 hpux*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013430 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13431 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13432 # sets the default TLS model and affects inlining.
Wink Savillefbaaef92010-05-27 16:25:37 -070013433 case $host_cpu in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013434 hppa*64*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013435 ;;
13436 *)
13437 lt_prog_compiler_pic_CXX='-fPIC'
13438 ;;
13439 esac
13440 ;;
13441 *qnx* | *nto*)
13442 # QNX uses GNU C++, but need to define -shared option too, otherwise
13443 # it will coredump.
13444 lt_prog_compiler_pic_CXX='-fPIC -shared'
13445 ;;
13446 *)
13447 lt_prog_compiler_pic_CXX='-fPIC'
13448 ;;
13449 esac
13450 else
13451 case $host_os in
13452 aix[4-9]*)
13453 # All AIX code is PIC.
13454 if test "$host_cpu" = ia64; then
13455 # AIX 5 now supports IA64 processor
13456 lt_prog_compiler_static_CXX='-Bstatic'
13457 else
13458 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13459 fi
13460 ;;
13461 chorus*)
13462 case $cc_basename in
13463 cxch68*)
13464 # Green Hills C++ Compiler
13465 # _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"
13466 ;;
13467 esac
13468 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013469 mingw* | cygwin* | os2* | pw32* | cegcc*)
13470 # This hack is so that the source file can tell whether it is being
13471 # built for inclusion in a dll (and should export symbols for example).
13472 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13473 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070013474 dgux*)
13475 case $cc_basename in
13476 ec++*)
13477 lt_prog_compiler_pic_CXX='-KPIC'
13478 ;;
13479 ghcx*)
13480 # Green Hills C++ Compiler
13481 lt_prog_compiler_pic_CXX='-pic'
13482 ;;
13483 *)
13484 ;;
13485 esac
13486 ;;
13487 freebsd* | dragonfly*)
13488 # FreeBSD uses GNU C++
13489 ;;
13490 hpux9* | hpux10* | hpux11*)
13491 case $cc_basename in
13492 CC*)
13493 lt_prog_compiler_wl_CXX='-Wl,'
13494 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13495 if test "$host_cpu" != ia64; then
13496 lt_prog_compiler_pic_CXX='+Z'
13497 fi
13498 ;;
13499 aCC*)
13500 lt_prog_compiler_wl_CXX='-Wl,'
13501 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13502 case $host_cpu in
13503 hppa*64*|ia64*)
13504 # +Z the default
13505 ;;
13506 *)
13507 lt_prog_compiler_pic_CXX='+Z'
13508 ;;
13509 esac
13510 ;;
13511 *)
13512 ;;
13513 esac
13514 ;;
13515 interix*)
13516 # This is c89, which is MS Visual C++ (no shared libs)
13517 # Anyone wants to do a port?
13518 ;;
13519 irix5* | irix6* | nonstopux*)
13520 case $cc_basename in
13521 CC*)
13522 lt_prog_compiler_wl_CXX='-Wl,'
13523 lt_prog_compiler_static_CXX='-non_shared'
13524 # CC pic flag -KPIC is the default.
13525 ;;
13526 *)
13527 ;;
13528 esac
13529 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013530 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -070013531 case $cc_basename in
13532 KCC*)
13533 # KAI C++ Compiler
13534 lt_prog_compiler_wl_CXX='--backend -Wl,'
13535 lt_prog_compiler_pic_CXX='-fPIC'
13536 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013537 ecpc* )
13538 # old Intel C++ for x86_64 which still supported -KPIC.
Wink Savillefbaaef92010-05-27 16:25:37 -070013539 lt_prog_compiler_wl_CXX='-Wl,'
13540 lt_prog_compiler_pic_CXX='-KPIC'
13541 lt_prog_compiler_static_CXX='-static'
13542 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013543 icpc* )
13544 # Intel C++, used to be incompatible with GCC.
13545 # ICC 10 doesn't accept -KPIC any more.
13546 lt_prog_compiler_wl_CXX='-Wl,'
13547 lt_prog_compiler_pic_CXX='-fPIC'
13548 lt_prog_compiler_static_CXX='-static'
13549 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070013550 pgCC* | pgcpp*)
13551 # Portland Group C++ compiler
13552 lt_prog_compiler_wl_CXX='-Wl,'
13553 lt_prog_compiler_pic_CXX='-fpic'
13554 lt_prog_compiler_static_CXX='-Bstatic'
13555 ;;
13556 cxx*)
13557 # Compaq C++
13558 # Make sure the PIC flag is empty. It appears that all Alpha
13559 # Linux and Compaq Tru64 Unix objects are PIC.
13560 lt_prog_compiler_pic_CXX=
13561 lt_prog_compiler_static_CXX='-non_shared'
13562 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013563 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13564 # IBM XL 8.0, 9.0 on PPC and BlueGene
Wink Savillefbaaef92010-05-27 16:25:37 -070013565 lt_prog_compiler_wl_CXX='-Wl,'
13566 lt_prog_compiler_pic_CXX='-qpic'
13567 lt_prog_compiler_static_CXX='-qstaticlink'
13568 ;;
13569 *)
13570 case `$CC -V 2>&1 | sed 5q` in
13571 *Sun\ C*)
13572 # Sun C++ 5.9
13573 lt_prog_compiler_pic_CXX='-KPIC'
13574 lt_prog_compiler_static_CXX='-Bstatic'
13575 lt_prog_compiler_wl_CXX='-Qoption ld '
13576 ;;
13577 esac
13578 ;;
13579 esac
13580 ;;
13581 lynxos*)
13582 ;;
13583 m88k*)
13584 ;;
13585 mvs*)
13586 case $cc_basename in
13587 cxx*)
13588 lt_prog_compiler_pic_CXX='-W c,exportall'
13589 ;;
13590 *)
13591 ;;
13592 esac
13593 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013594 netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -070013595 ;;
13596 *qnx* | *nto*)
13597 # QNX uses GNU C++, but need to define -shared option too, otherwise
13598 # it will coredump.
13599 lt_prog_compiler_pic_CXX='-fPIC -shared'
13600 ;;
13601 osf3* | osf4* | osf5*)
13602 case $cc_basename in
13603 KCC*)
13604 lt_prog_compiler_wl_CXX='--backend -Wl,'
13605 ;;
13606 RCC*)
13607 # Rational C++ 2.4.1
13608 lt_prog_compiler_pic_CXX='-pic'
13609 ;;
13610 cxx*)
13611 # Digital/Compaq C++
13612 lt_prog_compiler_wl_CXX='-Wl,'
13613 # Make sure the PIC flag is empty. It appears that all Alpha
13614 # Linux and Compaq Tru64 Unix objects are PIC.
13615 lt_prog_compiler_pic_CXX=
13616 lt_prog_compiler_static_CXX='-non_shared'
13617 ;;
13618 *)
13619 ;;
13620 esac
13621 ;;
13622 psos*)
13623 ;;
13624 solaris*)
13625 case $cc_basename in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013626 CC* | sunCC*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013627 # Sun C++ 4.2, 5.x and Centerline C++
13628 lt_prog_compiler_pic_CXX='-KPIC'
13629 lt_prog_compiler_static_CXX='-Bstatic'
13630 lt_prog_compiler_wl_CXX='-Qoption ld '
13631 ;;
13632 gcx*)
13633 # Green Hills C++ Compiler
13634 lt_prog_compiler_pic_CXX='-PIC'
13635 ;;
13636 *)
13637 ;;
13638 esac
13639 ;;
13640 sunos4*)
13641 case $cc_basename in
13642 CC*)
13643 # Sun C++ 4.x
13644 lt_prog_compiler_pic_CXX='-pic'
13645 lt_prog_compiler_static_CXX='-Bstatic'
13646 ;;
13647 lcc*)
13648 # Lucid
13649 lt_prog_compiler_pic_CXX='-pic'
13650 ;;
13651 *)
13652 ;;
13653 esac
13654 ;;
13655 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13656 case $cc_basename in
13657 CC*)
13658 lt_prog_compiler_wl_CXX='-Wl,'
13659 lt_prog_compiler_pic_CXX='-KPIC'
13660 lt_prog_compiler_static_CXX='-Bstatic'
13661 ;;
13662 esac
13663 ;;
13664 tandem*)
13665 case $cc_basename in
13666 NCC*)
13667 # NonStop-UX NCC 3.20
13668 lt_prog_compiler_pic_CXX='-KPIC'
13669 ;;
13670 *)
13671 ;;
13672 esac
13673 ;;
13674 vxworks*)
13675 ;;
13676 *)
13677 lt_prog_compiler_can_build_shared_CXX=no
13678 ;;
13679 esac
13680 fi
13681
13682case $host_os in
13683 # For platforms which do not support PIC, -DPIC is meaningless:
13684 *djgpp*)
13685 lt_prog_compiler_pic_CXX=
13686 ;;
13687 *)
13688 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13689 ;;
13690esac
Wink Savillefbaaef92010-05-27 16:25:37 -070013691
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13693$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13694if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13695 $as_echo_n "(cached) " >&6
13696else
13697 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13698fi
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13700$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13701lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
Wink Savillefbaaef92010-05-27 16:25:37 -070013702
13703#
13704# Check to make sure the PIC flag actually works.
13705#
13706if test -n "$lt_prog_compiler_pic_CXX"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13708$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13709if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13710 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070013711else
13712 lt_cv_prog_compiler_pic_works_CXX=no
13713 ac_outfile=conftest.$ac_objext
13714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13715 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13716 # Insert the option either (1) after the last *FLAGS variable, or
13717 # (2) before a word containing "conftest.", or (3) at the end.
13718 # Note that $ac_compile itself does not contain backslashes and begins
13719 # with a dollar sign (not a hyphen), so the echo should work correctly.
13720 # The option is referenced via a variable to avoid confusing sed.
13721 lt_compile=`echo "$ac_compile" | $SED \
13722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13724 -e 's:$: $lt_compiler_flag:'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -070013726 (eval "$lt_compile" 2>conftest.err)
13727 ac_status=$?
13728 cat conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070013730 if (exit $ac_status) && test -s "$ac_outfile"; then
13731 # The compiler can only warn and ignore the option if not recognized
13732 # So say no if there are warnings other than the usual output.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070013734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13736 lt_cv_prog_compiler_pic_works_CXX=yes
13737 fi
13738 fi
13739 $RM conftest*
13740
13741fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13743$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013744
13745if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13746 case $lt_prog_compiler_pic_CXX in
13747 "" | " "*) ;;
13748 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13749 esac
13750else
13751 lt_prog_compiler_pic_CXX=
13752 lt_prog_compiler_can_build_shared_CXX=no
13753fi
13754
13755fi
13756
13757
13758
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013759
13760
Wink Savillefbaaef92010-05-27 16:25:37 -070013761#
13762# Check to make sure the static flag actually works.
13763#
13764wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13766$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13767if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13768 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070013769else
13770 lt_cv_prog_compiler_static_works_CXX=no
13771 save_LDFLAGS="$LDFLAGS"
13772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13775 # The linker can only warn and ignore the option if not recognized
13776 # So say no if there are warnings
13777 if test -s conftest.err; then
13778 # Append any errors to the config.log.
13779 cat conftest.err 1>&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013780 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070013781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13782 if diff conftest.exp conftest.er2 >/dev/null; then
13783 lt_cv_prog_compiler_static_works_CXX=yes
13784 fi
13785 else
13786 lt_cv_prog_compiler_static_works_CXX=yes
13787 fi
13788 fi
13789 $RM -r conftest*
13790 LDFLAGS="$save_LDFLAGS"
13791
13792fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13794$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013795
13796if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13797 :
13798else
13799 lt_prog_compiler_static_CXX=
13800fi
13801
13802
13803
13804
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13806$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13807if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13808 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070013809else
13810 lt_cv_prog_compiler_c_o_CXX=no
13811 $RM -r conftest 2>/dev/null
13812 mkdir conftest
13813 cd conftest
13814 mkdir out
13815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13816
13817 lt_compiler_flag="-o out/conftest2.$ac_objext"
13818 # Insert the option either (1) after the last *FLAGS variable, or
13819 # (2) before a word containing "conftest.", or (3) at the end.
13820 # Note that $ac_compile itself does not contain backslashes and begins
13821 # with a dollar sign (not a hyphen), so the echo should work correctly.
13822 lt_compile=`echo "$ac_compile" | $SED \
13823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13825 -e 's:$: $lt_compiler_flag:'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -070013827 (eval "$lt_compile" 2>out/conftest.err)
13828 ac_status=$?
13829 cat out/conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070013831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13832 then
13833 # The compiler can only warn and ignore the option if not recognized
13834 # So say no if there are warnings
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070013836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13838 lt_cv_prog_compiler_c_o_CXX=yes
13839 fi
13840 fi
13841 chmod u+w . 2>&5
13842 $RM conftest*
13843 # SGI C++ compiler will create directory out/ii_files/ for
13844 # template instantiation
13845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13846 $RM out/* && rmdir out
13847 cd ..
13848 $RM -r conftest
13849 $RM conftest*
13850
13851fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13853$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013854
13855
13856
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13858$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13859if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13860 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070013861else
13862 lt_cv_prog_compiler_c_o_CXX=no
13863 $RM -r conftest 2>/dev/null
13864 mkdir conftest
13865 cd conftest
13866 mkdir out
13867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13868
13869 lt_compiler_flag="-o out/conftest2.$ac_objext"
13870 # Insert the option either (1) after the last *FLAGS variable, or
13871 # (2) before a word containing "conftest.", or (3) at the end.
13872 # Note that $ac_compile itself does not contain backslashes and begins
13873 # with a dollar sign (not a hyphen), so the echo should work correctly.
13874 lt_compile=`echo "$ac_compile" | $SED \
13875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13877 -e 's:$: $lt_compiler_flag:'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -070013879 (eval "$lt_compile" 2>out/conftest.err)
13880 ac_status=$?
13881 cat out/conftest.err >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070013883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13884 then
13885 # The compiler can only warn and ignore the option if not recognized
13886 # So say no if there are warnings
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070013888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13890 lt_cv_prog_compiler_c_o_CXX=yes
13891 fi
13892 fi
13893 chmod u+w . 2>&5
13894 $RM conftest*
13895 # SGI C++ compiler will create directory out/ii_files/ for
13896 # template instantiation
13897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13898 $RM out/* && rmdir out
13899 cd ..
13900 $RM -r conftest
13901 $RM conftest*
13902
13903fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13905$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013906
13907
13908
13909
13910hard_links="nottested"
13911if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13912 # do not overwrite the value of need_locks provided by the user
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13914$as_echo_n "checking if we can lock with hard links... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013915 hard_links=yes
13916 $RM conftest*
13917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13918 touch conftest.a
13919 ln conftest.a conftest.b 2>&5 || hard_links=no
13920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13922$as_echo "$hard_links" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013923 if test "$hard_links" = no; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13925$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070013926 need_locks=warn
13927 fi
13928else
13929 need_locks=no
13930fi
13931
13932
13933
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13935$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013936
13937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013938 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Wink Savillefbaaef92010-05-27 16:25:37 -070013939 case $host_os in
13940 aix[4-9]*)
13941 # If we're using GNU nm, then we don't want the "-C" option.
13942 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013943 # Also, AIX nm treats weak defined symbols like other global defined
13944 # symbols, whereas GNU nm marks them as "W".
Wink Savillefbaaef92010-05-27 16:25:37 -070013945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013946 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Wink Savillefbaaef92010-05-27 16:25:37 -070013947 else
13948 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'
13949 fi
13950 ;;
13951 pw32*)
13952 export_symbols_cmds_CXX="$ltdll_cmds"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013953 ;;
13954 cygwin* | mingw* | cegcc*)
13955 case $cc_basename in
13956 cl*)
13957 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13958 ;;
13959 *)
13960 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13961 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13962 ;;
13963 esac
13964 ;;
13965 linux* | k*bsd*-gnu | gnu*)
13966 link_all_deplibs_CXX=no
13967 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070013968 *)
13969 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013970 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070013971 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070013972
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13974$as_echo "$ld_shlibs_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013975test "$ld_shlibs_CXX" = no && can_build_shared=no
13976
13977with_gnu_ld_CXX=$with_gnu_ld
13978
13979
13980
13981
13982
13983
13984#
13985# Do we need to explicitly link libc?
13986#
13987case "x$archive_cmds_need_lc_CXX" in
13988x|xyes)
13989 # Assume -lc should be added
13990 archive_cmds_need_lc_CXX=yes
13991
13992 if test "$enable_shared" = yes && test "$GCC" = yes; then
13993 case $archive_cmds_CXX in
13994 *'~'*)
13995 # FIXME: we may have to deal with multi-command sequences.
13996 ;;
13997 '$CC '*)
13998 # Test whether the compiler implicitly links with -lc since on some
13999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14000 # to ld, don't add -lc before -lgcc.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14002$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14003if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005else
14006 $RM conftest*
14007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070014008
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014010 (eval $ac_compile) 2>&5
14011 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14013 test $ac_status = 0; } 2>conftest.err; then
14014 soname=conftest
14015 lib=conftest
14016 libobjs=conftest.$ac_objext
14017 deplibs=
14018 wl=$lt_prog_compiler_wl_CXX
14019 pic_flag=$lt_prog_compiler_pic_CXX
14020 compiler_flags=-v
14021 linker_flags=-v
14022 verstring=
14023 output_objdir=.
14024 libname=conftest
14025 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14026 allow_undefined_flag_CXX=
14027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014028 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14029 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14031 test $ac_status = 0; }
14032 then
14033 lt_cv_archive_cmds_need_lc_CXX=no
14034 else
14035 lt_cv_archive_cmds_need_lc_CXX=yes
14036 fi
14037 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14038 else
14039 cat conftest.err 1>&5
14040 fi
14041 $RM conftest*
14042
14043fi
14044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14045$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14046 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
Wink Savillefbaaef92010-05-27 16:25:37 -070014047 ;;
14048 esac
14049 fi
14050 ;;
14051esac
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14115$as_echo_n "checking dynamic linker characteristics... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014116
14117library_names_spec=
14118libname_spec='lib$name'
14119soname_spec=
14120shrext_cmds=".so"
14121postinstall_cmds=
14122postuninstall_cmds=
14123finish_cmds=
14124finish_eval=
14125shlibpath_var=
14126shlibpath_overrides_runpath=unknown
14127version_type=none
14128dynamic_linker="$host_os ld.so"
14129sys_lib_dlsearch_path_spec="/lib /usr/lib"
14130need_lib_prefix=unknown
14131hardcode_into_libs=no
14132
14133# when you set need_version to no, make sure it does not cause -set_version
14134# flags to be left without arguments
14135need_version=unknown
14136
14137case $host_os in
14138aix3*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014139 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14141 shlibpath_var=LIBPATH
14142
14143 # AIX 3 has no versioning support, so we append a major version to the name.
14144 soname_spec='${libname}${release}${shared_ext}$major'
14145 ;;
14146
14147aix[4-9]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014148 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014149 need_lib_prefix=no
14150 need_version=no
14151 hardcode_into_libs=yes
14152 if test "$host_cpu" = ia64; then
14153 # AIX 5 supports IA64
14154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 else
14157 # With GCC up to 2.95.x, collect2 would create an import file
14158 # for dependence libraries. The import file would start with
14159 # the line `#! .'. This would cause the generated library to
14160 # depend on `.', always an invalid library. This was fixed in
14161 # development snapshots of GCC prior to 3.0.
14162 case $host_os in
14163 aix4 | aix4.[01] | aix4.[01].*)
14164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14165 echo ' yes '
14166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14167 :
14168 else
14169 can_build_shared=no
14170 fi
14171 ;;
14172 esac
14173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14174 # soname into executable. Probably we can add versioning support to
14175 # collect2, so additional links can be useful in future.
14176 if test "$aix_use_runtimelinking" = yes; then
14177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14178 # instead of lib<name>.a to let people know that these are not
14179 # typical AIX shared libraries.
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181 else
14182 # We preserve .a as extension for shared libraries through AIX4.2
14183 # and later when we are not doing run time linking.
14184 library_names_spec='${libname}${release}.a $libname.a'
14185 soname_spec='${libname}${release}${shared_ext}$major'
14186 fi
14187 shlibpath_var=LIBPATH
14188 fi
14189 ;;
14190
14191amigaos*)
14192 case $host_cpu in
14193 powerpc)
14194 # Since July 2007 AmigaOS4 officially supports .so libraries.
14195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 ;;
14198 m68k)
14199 library_names_spec='$libname.ixlibrary $libname.a'
14200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014201 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
Wink Savillefbaaef92010-05-27 16:25:37 -070014202 ;;
14203 esac
14204 ;;
14205
14206beos*)
14207 library_names_spec='${libname}${shared_ext}'
14208 dynamic_linker="$host_os ld.so"
14209 shlibpath_var=LIBRARY_PATH
14210 ;;
14211
14212bsdi[45]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014213 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014214 need_version=no
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14218 shlibpath_var=LD_LIBRARY_PATH
14219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14221 # the default ld.so.conf also contains /usr/contrib/lib and
14222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14223 # libtool to hard-code these into programs
14224 ;;
14225
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014226cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014227 version_type=windows
14228 shrext_cmds=".dll"
14229 need_version=no
14230 need_lib_prefix=no
14231
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014232 case $GCC,$cc_basename in
14233 yes,*)
14234 # gcc
Wink Savillefbaaef92010-05-27 16:25:37 -070014235 library_names_spec='$libname.dll.a'
14236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14237 postinstall_cmds='base_file=`basename \${file}`~
14238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14239 dldir=$destdir/`dirname \$dlpath`~
14240 test -d \$dldir || mkdir -p \$dldir~
14241 $install_prog $dir/$dlname \$dldir/$dlname~
14242 chmod a+x \$dldir/$dlname~
14243 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14244 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14245 fi'
14246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14247 dlpath=$dir/\$dldll~
14248 $RM \$dlpath'
14249 shlibpath_overrides_runpath=yes
14250
14251 case $host_os in
14252 cygwin*)
14253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014255
Wink Savillefbaaef92010-05-27 16:25:37 -070014256 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014257 mingw* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014258 # MinGW DLLs use traditional 'lib' prefix
14259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070014260 ;;
14261 pw32*)
14262 # pw32 DLLs use 'pw' prefix rather than 'lib'
14263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14264 ;;
14265 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014266 dynamic_linker='Win32 ld.exe'
14267 ;;
14268
14269 *,cl*)
14270 # Native MSVC
14271 libname_spec='$name'
14272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14273 library_names_spec='${libname}.dll.lib'
14274
14275 case $build_os in
14276 mingw*)
14277 sys_lib_search_path_spec=
14278 lt_save_ifs=$IFS
14279 IFS=';'
14280 for lt_path in $LIB
14281 do
14282 IFS=$lt_save_ifs
14283 # Let DOS variable expansion print the short 8.3 style file name.
14284 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14285 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14286 done
14287 IFS=$lt_save_ifs
14288 # Convert to MSYS style.
14289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14290 ;;
14291 cygwin*)
14292 # Convert to unix form, then to dos form, then back to unix form
14293 # but this time dos style (no spaces!) so that the unix form looks
14294 # like /cygdrive/c/PROGRA~1:/cygdr...
14295 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14296 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14297 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14298 ;;
14299 *)
14300 sys_lib_search_path_spec="$LIB"
14301 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14302 # It is most probably a Windows format PATH.
14303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14304 else
14305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14306 fi
14307 # FIXME: find the short name or the path components, as spaces are
14308 # common. (e.g. "Program Files" -> "PROGRA~1")
14309 ;;
14310 esac
14311
14312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14313 postinstall_cmds='base_file=`basename \${file}`~
14314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14315 dldir=$destdir/`dirname \$dlpath`~
14316 test -d \$dldir || mkdir -p \$dldir~
14317 $install_prog $dir/$dlname \$dldir/$dlname'
14318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14319 dlpath=$dir/\$dldll~
14320 $RM \$dlpath'
14321 shlibpath_overrides_runpath=yes
14322 dynamic_linker='Win32 link.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070014323 ;;
14324
14325 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014326 # Assume MSVC wrapper
Wink Savillefbaaef92010-05-27 16:25:37 -070014327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014328 dynamic_linker='Win32 ld.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070014329 ;;
14330 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070014331 # FIXME: first we should search . and the directory the executable is in
14332 shlibpath_var=PATH
14333 ;;
14334
14335darwin* | rhapsody*)
14336 dynamic_linker="$host_os dyld"
14337 version_type=darwin
14338 need_lib_prefix=no
14339 need_version=no
14340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14341 soname_spec='${libname}${release}${major}$shared_ext'
14342 shlibpath_overrides_runpath=yes
14343 shlibpath_var=DYLD_LIBRARY_PATH
14344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14345
14346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14347 ;;
14348
14349dgux*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014350 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014351 need_lib_prefix=no
14352 need_version=no
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 shlibpath_var=LD_LIBRARY_PATH
14356 ;;
14357
Wink Savillefbaaef92010-05-27 16:25:37 -070014358freebsd* | dragonfly*)
14359 # DragonFly does not have aout. When/if they implement a new
14360 # versioning mechanism, adjust this.
14361 if test -x /usr/bin/objformat; then
14362 objformat=`/usr/bin/objformat`
14363 else
14364 case $host_os in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014365 freebsd[23].*) objformat=aout ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070014366 *) objformat=elf ;;
14367 esac
14368 fi
14369 version_type=freebsd-$objformat
14370 case $version_type in
14371 freebsd-elf*)
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14373 need_version=no
14374 need_lib_prefix=no
14375 ;;
14376 freebsd-*)
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14378 need_version=yes
14379 ;;
14380 esac
14381 shlibpath_var=LD_LIBRARY_PATH
14382 case $host_os in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014383 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014384 shlibpath_overrides_runpath=yes
14385 ;;
14386 freebsd3.[01]* | freebsdelf3.[01]*)
14387 shlibpath_overrides_runpath=yes
14388 hardcode_into_libs=yes
14389 ;;
14390 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14391 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14392 shlibpath_overrides_runpath=no
14393 hardcode_into_libs=yes
14394 ;;
14395 *) # from 4.6 on, and DragonFly
14396 shlibpath_overrides_runpath=yes
14397 hardcode_into_libs=yes
14398 ;;
14399 esac
14400 ;;
14401
14402gnu*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014403 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014404 need_lib_prefix=no
14405 need_version=no
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 shlibpath_var=LD_LIBRARY_PATH
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014409 shlibpath_overrides_runpath=no
14410 hardcode_into_libs=yes
14411 ;;
14412
14413haiku*)
14414 version_type=linux # correct to gnu/linux during the next big refactor
14415 need_lib_prefix=no
14416 need_version=no
14417 dynamic_linker="$host_os runtime_loader"
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 shlibpath_var=LIBRARY_PATH
14421 shlibpath_overrides_runpath=yes
14422 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070014423 hardcode_into_libs=yes
14424 ;;
14425
14426hpux9* | hpux10* | hpux11*)
14427 # Give a soname corresponding to the major version so that dld.sl refuses to
14428 # link against other versions.
14429 version_type=sunos
14430 need_lib_prefix=no
14431 need_version=no
14432 case $host_cpu in
14433 ia64*)
14434 shrext_cmds='.so'
14435 hardcode_into_libs=yes
14436 dynamic_linker="$host_os dld.so"
14437 shlibpath_var=LD_LIBRARY_PATH
14438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 if test "X$HPUX_IA64_MODE" = X32; then
14442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14443 else
14444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14445 fi
14446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14447 ;;
14448 hppa*64*)
14449 shrext_cmds='.sl'
14450 hardcode_into_libs=yes
14451 dynamic_linker="$host_os dld.sl"
14452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14458 ;;
14459 *)
14460 shrext_cmds='.sl'
14461 dynamic_linker="$host_os dld.sl"
14462 shlibpath_var=SHLIB_PATH
14463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 ;;
14467 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014468 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Wink Savillefbaaef92010-05-27 16:25:37 -070014469 postinstall_cmds='chmod 555 $lib'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014470 # or fails outright, so override atomically:
14471 install_override_mode=555
Wink Savillefbaaef92010-05-27 16:25:37 -070014472 ;;
14473
14474interix[3-9]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014475 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014476 need_lib_prefix=no
14477 need_version=no
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14479 soname_spec='${libname}${release}${shared_ext}$major'
14480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 shlibpath_overrides_runpath=no
14483 hardcode_into_libs=yes
14484 ;;
14485
14486irix5* | irix6* | nonstopux*)
14487 case $host_os in
14488 nonstopux*) version_type=nonstopux ;;
14489 *)
14490 if test "$lt_cv_prog_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014491 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014492 else
14493 version_type=irix
14494 fi ;;
14495 esac
14496 need_lib_prefix=no
14497 need_version=no
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14500 case $host_os in
14501 irix5* | nonstopux*)
14502 libsuff= shlibsuff=
14503 ;;
14504 *)
14505 case $LD in # libtool.m4 will add one of these switches to LD
14506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14507 libsuff= shlibsuff= libmagic=32-bit;;
14508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14509 libsuff=32 shlibsuff=N32 libmagic=N32;;
14510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14511 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14512 *) libsuff= shlibsuff= libmagic=never-match;;
14513 esac
14514 ;;
14515 esac
14516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14517 shlibpath_overrides_runpath=no
14518 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14519 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14520 hardcode_into_libs=yes
14521 ;;
14522
14523# No shared lib support for Linux oldld, aout, or coff.
14524linux*oldld* | linux*aout* | linux*coff*)
14525 dynamic_linker=no
14526 ;;
14527
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014528# This must be glibc/ELF.
14529linux* | k*bsd*-gnu | kopensolaris*-gnu)
14530 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014531 need_lib_prefix=no
14532 need_version=no
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014538
Wink Savillefbaaef92010-05-27 16:25:37 -070014539 # Some binutils ld are patched to set DT_RUNPATH
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014540 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542else
14543 lt_cv_shlibpath_overrides_runpath=no
14544 save_LDFLAGS=$LDFLAGS
14545 save_libdir=$libdir
14546 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14547 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070014549/* end confdefs.h. */
14550
14551int
14552main ()
14553{
14554
14555 ;
14556 return 0;
14557}
14558_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014559if ac_fn_cxx_try_link "$LINENO"; then :
14560 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14561 lt_cv_shlibpath_overrides_runpath=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070014562fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014563fi
14564rm -f core conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14566 LDFLAGS=$save_LDFLAGS
14567 libdir=$save_libdir
Wink Savillefbaaef92010-05-27 16:25:37 -070014568
14569fi
14570
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014571 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Wink Savillefbaaef92010-05-27 16:25:37 -070014572
14573 # This implies no fast_install, which is unacceptable.
14574 # Some rework will be needed to allow for fast_install
14575 # before this can be enabled.
14576 hardcode_into_libs=yes
14577
14578 # Append ld.so.conf contents to the search path
14579 if test -f /etc/ld.so.conf; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014580 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;s/"//g;/^$/d' | tr '\n' ' '`
Wink Savillefbaaef92010-05-27 16:25:37 -070014581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14582 fi
14583
14584 # We used to test for /lib/ld.so.1 and disable shared libraries on
14585 # powerpc, because MkLinux only supported shared libraries with the
14586 # GNU dynamic linker. Since this was broken with cross compilers,
14587 # most powerpc-linux boxes support dynamic linking these days and
14588 # people can always --disable-shared, the test was removed, and we
14589 # assume the GNU/Linux dynamic linker is in use.
14590 dynamic_linker='GNU/Linux ld.so'
14591 ;;
14592
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014593netbsdelf*-gnu)
14594 version_type=linux
14595 need_lib_prefix=no
14596 need_version=no
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=no
14601 hardcode_into_libs=yes
14602 dynamic_linker='NetBSD ld.elf_so'
14603 ;;
14604
Wink Savillefbaaef92010-05-27 16:25:37 -070014605netbsd*)
14606 version_type=sunos
14607 need_lib_prefix=no
14608 need_version=no
14609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14612 dynamic_linker='NetBSD (a.out) ld.so'
14613 else
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 dynamic_linker='NetBSD ld.elf_so'
14617 fi
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14621 ;;
14622
14623newsos6)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014624 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=yes
14628 ;;
14629
14630*nto* | *qnx*)
14631 version_type=qnx
14632 need_lib_prefix=no
14633 need_version=no
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=no
14638 hardcode_into_libs=yes
14639 dynamic_linker='ldqnx.so'
14640 ;;
14641
14642openbsd*)
14643 version_type=sunos
14644 sys_lib_dlsearch_path_spec="/usr/lib"
14645 need_lib_prefix=no
14646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14647 case $host_os in
14648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14649 *) need_version=no ;;
14650 esac
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14655 case $host_os in
14656 openbsd2.[89] | openbsd2.[89].*)
14657 shlibpath_overrides_runpath=no
14658 ;;
14659 *)
14660 shlibpath_overrides_runpath=yes
14661 ;;
14662 esac
14663 else
14664 shlibpath_overrides_runpath=yes
14665 fi
14666 ;;
14667
14668os2*)
14669 libname_spec='$name'
14670 shrext_cmds=".dll"
14671 need_lib_prefix=no
14672 library_names_spec='$libname${shared_ext} $libname.a'
14673 dynamic_linker='OS/2 ld.exe'
14674 shlibpath_var=LIBPATH
14675 ;;
14676
14677osf3* | osf4* | osf5*)
14678 version_type=osf
14679 need_lib_prefix=no
14680 need_version=no
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14686 ;;
14687
14688rdos*)
14689 dynamic_linker=no
14690 ;;
14691
14692solaris*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014693 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014694 need_lib_prefix=no
14695 need_version=no
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=yes
14700 hardcode_into_libs=yes
14701 # ldd complains unless libraries are executable
14702 postinstall_cmds='chmod +x $lib'
14703 ;;
14704
14705sunos4*)
14706 version_type=sunos
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=yes
14711 if test "$with_gnu_ld" = yes; then
14712 need_lib_prefix=no
14713 fi
14714 need_version=yes
14715 ;;
14716
14717sysv4 | sysv4.3*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014718 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 case $host_vendor in
14723 sni)
14724 shlibpath_overrides_runpath=no
14725 need_lib_prefix=no
14726 runpath_var=LD_RUN_PATH
14727 ;;
14728 siemens)
14729 need_lib_prefix=no
14730 ;;
14731 motorola)
14732 need_lib_prefix=no
14733 need_version=no
14734 shlibpath_overrides_runpath=no
14735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14736 ;;
14737 esac
14738 ;;
14739
14740sysv4*MP*)
14741 if test -d /usr/nec ;then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014742 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14744 soname_spec='$libname${shared_ext}.$major'
14745 shlibpath_var=LD_LIBRARY_PATH
14746 fi
14747 ;;
14748
14749sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14750 version_type=freebsd-elf
14751 need_lib_prefix=no
14752 need_version=no
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=yes
14757 hardcode_into_libs=yes
14758 if test "$with_gnu_ld" = yes; then
14759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14760 else
14761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14762 case $host_os in
14763 sco3.2v5*)
14764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14765 ;;
14766 esac
14767 fi
14768 sys_lib_dlsearch_path_spec='/usr/lib'
14769 ;;
14770
14771tpf*)
14772 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014773 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014774 need_lib_prefix=no
14775 need_version=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070014777 shlibpath_var=LD_LIBRARY_PATH
14778 shlibpath_overrides_runpath=no
14779 hardcode_into_libs=yes
14780 ;;
14781
14782uts4*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014783 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 ;;
14788
14789*)
14790 dynamic_linker=no
14791 ;;
14792esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14794$as_echo "$dynamic_linker" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014795test "$dynamic_linker" = no && can_build_shared=no
14796
14797variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14798if test "$GCC" = yes; then
14799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14800fi
14801
14802if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14804fi
14805if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14807fi
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014844
14845
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14847$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014848hardcode_action_CXX=
14849if test -n "$hardcode_libdir_flag_spec_CXX" ||
14850 test -n "$runpath_var_CXX" ||
14851 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14852
14853 # We can hardcode non-existent directories.
14854 if test "$hardcode_direct_CXX" != no &&
14855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14856 # have to relink, otherwise we might link with an installed library
14857 # when we should be linking with a yet-to-be-installed one
14858 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14859 test "$hardcode_minus_L_CXX" != no; then
14860 # Linking always hardcodes the temporary library directory.
14861 hardcode_action_CXX=relink
14862 else
14863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14864 hardcode_action_CXX=immediate
14865 fi
14866else
14867 # We cannot hardcode anything, or else we can only hardcode existing
14868 # directories.
14869 hardcode_action_CXX=unsupported
14870fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14872$as_echo "$hardcode_action_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014873
14874if test "$hardcode_action_CXX" = relink ||
14875 test "$inherit_rpath_CXX" = yes; then
14876 # Fast installation is not supported
14877 enable_fast_install=no
14878elif test "$shlibpath_overrides_runpath" = yes ||
14879 test "$enable_shared" = no; then
14880 # Fast installation is not necessary
14881 enable_fast_install=needless
14882fi
14883
14884
14885
14886
14887
14888
14889
14890 fi # test -n "$compiler"
14891
14892 CC=$lt_save_CC
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014893 CFLAGS=$lt_save_CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070014894 LDCXX=$LD
14895 LD=$lt_save_LD
14896 GCC=$lt_save_GCC
14897 with_gnu_ld=$lt_save_with_gnu_ld
14898 lt_cv_path_LDCXX=$lt_cv_path_LD
14899 lt_cv_path_LD=$lt_save_path_LD
14900 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14901 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14902fi # test "$_lt_caught_CXX_error" != yes
14903
14904ac_ext=cpp
14905ac_cpp='$CXXCPP $CPPFLAGS'
14906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014922
14923
Wink Savillefbaaef92010-05-27 16:25:37 -070014924 ac_config_commands="$ac_config_commands libtool"
14925
14926
14927
14928
14929# Only expand once:
14930
14931
14932
14933# TODO(chandlerc@google.com): Currently we aren't running the Python tests
14934# against the interpreter detected by AM_PATH_PYTHON, and so we condition
14935# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
14936# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
14937# hashbang.
14938PYTHON= # We *do not* allow the user to specify a python interpreter
14939# Extract the first word of "python", so it can be a program name with args.
14940set dummy python; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14942$as_echo_n "checking for $ac_word... " >&6; }
14943if ${ac_cv_path_PYTHON+:} false; then :
14944 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070014945else
14946 case $PYTHON in
14947 [\\/]* | ?:[\\/]*)
14948 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14949 ;;
14950 *)
14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952for as_dir in $PATH
14953do
14954 IFS=$as_save_IFS
14955 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014956 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -070014957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14958 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014960 break 2
14961 fi
14962done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014963 done
Wink Savillefbaaef92010-05-27 16:25:37 -070014964IFS=$as_save_IFS
14965
14966 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
14967 ;;
14968esac
14969fi
14970PYTHON=$ac_cv_path_PYTHON
14971if test -n "$PYTHON"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14973$as_echo "$PYTHON" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014974else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014977fi
14978
14979
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014980if test "$PYTHON" != ":"; then :
14981 prog="import sys
Wink Savillefbaaef92010-05-27 16:25:37 -070014982# split strings by '.' and convert to numeric. Append some zeros
14983# because we need at least 4 digits for the hex conversion.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014984# map returns an iterator in Python 3.0 and a list in 2.x
14985minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
Wink Savillefbaaef92010-05-27 16:25:37 -070014986minverhex = 0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014987# xrange is not present in Python 3.0 and range returns an iterator
14988for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
Wink Savillefbaaef92010-05-27 16:25:37 -070014989sys.exit(sys.hexversion < minverhex)"
14990 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14991 ($PYTHON -c "$prog") >&5 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014994 (exit $ac_status); }; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070014995 :
14996else
14997 PYTHON=":"
14998fi
Wink Savillefbaaef92010-05-27 16:25:37 -070014999fi
Wink Savillefbaaef92010-05-27 16:25:37 -070015000 if test "$PYTHON" != ":"; then
15001 HAVE_PYTHON_TRUE=
15002 HAVE_PYTHON_FALSE='#'
15003else
15004 HAVE_PYTHON_TRUE='#'
15005 HAVE_PYTHON_FALSE=
15006fi
15007
15008
15009# Check for pthreads.
15010
15011
15012
15013ac_ext=c
15014ac_cpp='$CPP $CPPFLAGS'
15015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15017ac_compiler_gnu=$ac_cv_c_compiler_gnu
15018
15019acx_pthread_ok=no
15020
15021# We used to check for pthread.h first, but this fails if pthread.h
15022# requires special compiler flags (e.g. on True64 or Sequent).
15023# It gets checked for in the link test anyway.
15024
15025# First of all, check if the user has set any of the PTHREAD_LIBS,
15026# etcetera environment variables, and if threads linking works using
15027# them:
15028if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15029 save_CFLAGS="$CFLAGS"
15030 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15031 save_LIBS="$LIBS"
15032 LIBS="$PTHREAD_LIBS $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15034$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015036/* end confdefs.h. */
15037
15038/* Override any GCC internal prototype to avoid an error.
15039 Use char because int might match the return type of a GCC
15040 builtin and then its argument prototype would still apply. */
15041#ifdef __cplusplus
15042extern "C"
15043#endif
15044char pthread_join ();
15045int
15046main ()
15047{
15048return pthread_join ();
15049 ;
15050 return 0;
15051}
15052_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015053if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015054 acx_pthread_ok=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070015055fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015056rm -f core conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15059$as_echo "$acx_pthread_ok" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015060 if test x"$acx_pthread_ok" = xno; then
15061 PTHREAD_LIBS=""
15062 PTHREAD_CFLAGS=""
15063 fi
15064 LIBS="$save_LIBS"
15065 CFLAGS="$save_CFLAGS"
15066fi
15067
15068# We must check for the threads library under a number of different
15069# names; the ordering is very important because some systems
15070# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15071# libraries is broken (non-POSIX).
15072
15073# Create a list of thread flags to try. Items starting with a "-" are
15074# C compiler flags, and other items are library names, except for "none"
15075# which indicates that we try without any flags at all, and "pthread-config"
15076# which is a program returning the flags for the Pth emulation library.
15077
15078acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15079
15080# The ordering *is* (sometimes) important. Some notes on the
15081# individual items follow:
15082
15083# pthreads: AIX (must check this before -lpthread)
15084# none: in case threads are in libc; should be tried before -Kthread and
15085# other compiler flags to prevent continual compiler warnings
15086# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15087# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15088# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15089# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15090# -pthreads: Solaris/gcc
15091# -mthreads: Mingw32/gcc, Lynx/gcc
15092# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15093# doesn't hurt to check since this sometimes defines pthreads too;
15094# also defines -D_REENTRANT)
15095# ... -mt is also the pthreads flag for HP/aCC
15096# pthread: Linux, etcetera
15097# --thread-safe: KAI C++
15098# pthread-config: use pthread-config program (for GNU Pth library)
15099
15100case "${host_cpu}-${host_os}" in
15101 *solaris*)
15102
15103 # On Solaris (at least, for some versions), libc contains stubbed
15104 # (non-functional) versions of the pthreads routines, so link-based
15105 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15106 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15107 # a function called by this macro, so we could check for that, but
15108 # who knows whether they'll stub that too in a future libc.) So,
15109 # we'll just look for -pthreads and -lpthread first:
15110
15111 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15112 ;;
15113esac
15114
15115if test x"$acx_pthread_ok" = xno; then
15116for flag in $acx_pthread_flags; do
15117
15118 case $flag in
15119 none)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15121$as_echo_n "checking whether pthreads work without any flags... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015122 ;;
15123
15124 -*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15126$as_echo_n "checking whether pthreads work with $flag... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015127 PTHREAD_CFLAGS="$flag"
15128 ;;
15129
15130 pthread-config)
15131 # Extract the first word of "pthread-config", so it can be a program name with args.
15132set dummy pthread-config; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15134$as_echo_n "checking for $ac_word... " >&6; }
15135if ${ac_cv_prog_acx_pthread_config+:} false; then :
15136 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070015137else
15138 if test -n "$acx_pthread_config"; then
15139 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15140else
15141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15142for as_dir in $PATH
15143do
15144 IFS=$as_save_IFS
15145 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015146 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -070015147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15148 ac_cv_prog_acx_pthread_config="yes"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070015150 break 2
15151 fi
15152done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015153 done
Wink Savillefbaaef92010-05-27 16:25:37 -070015154IFS=$as_save_IFS
15155
15156 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15157fi
15158fi
15159acx_pthread_config=$ac_cv_prog_acx_pthread_config
15160if test -n "$acx_pthread_config"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15162$as_echo "$acx_pthread_config" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015163else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15165$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015166fi
15167
15168
15169 if test x"$acx_pthread_config" = xno; then continue; fi
15170 PTHREAD_CFLAGS="`pthread-config --cflags`"
15171 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15172 ;;
15173
15174 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15176$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015177 PTHREAD_LIBS="-l$flag"
15178 ;;
15179 esac
15180
15181 save_LIBS="$LIBS"
15182 save_CFLAGS="$CFLAGS"
15183 LIBS="$PTHREAD_LIBS $LIBS"
15184 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15185
15186 # Check for various functions. We must include pthread.h,
15187 # since some functions may be macros. (On the Sequent, we
15188 # need a special flag -Kthread to make this header compile.)
15189 # We check for pthread_join because it is in -lpthread on IRIX
15190 # while pthread_create is in libc. We check for pthread_attr_init
15191 # due to DEC craziness with -lpthreads. We check for
15192 # pthread_cleanup_push because it is one of the few pthread
15193 # functions on Solaris that doesn't have a non-functional libc stub.
15194 # We try pthread_create on general principles.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015196/* end confdefs.h. */
15197#include <pthread.h>
15198int
15199main ()
15200{
15201pthread_t th; pthread_join(th, 0);
15202 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15203 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15204 ;
15205 return 0;
15206}
15207_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015208if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015209 acx_pthread_ok=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070015210fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015211rm -f core conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015213
15214 LIBS="$save_LIBS"
15215 CFLAGS="$save_CFLAGS"
15216
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15218$as_echo "$acx_pthread_ok" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015219 if test "x$acx_pthread_ok" = xyes; then
15220 break;
15221 fi
15222
15223 PTHREAD_LIBS=""
15224 PTHREAD_CFLAGS=""
15225done
15226fi
15227
15228# Various other checks:
15229if test "x$acx_pthread_ok" = xyes; then
15230 save_LIBS="$LIBS"
15231 LIBS="$PTHREAD_LIBS $LIBS"
15232 save_CFLAGS="$CFLAGS"
15233 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15234
15235 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15237$as_echo_n "checking for joinable pthread attribute... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015238 attr_name=unknown
15239 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015241/* end confdefs.h. */
15242#include <pthread.h>
15243int
15244main ()
15245{
15246int attr=$attr; return attr;
15247 ;
15248 return 0;
15249}
15250_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015251if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015252 attr_name=$attr; break
Wink Savillefbaaef92010-05-27 16:25:37 -070015253fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015254rm -f core conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015256 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15258$as_echo "$attr_name" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015259 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15260
15261cat >>confdefs.h <<_ACEOF
15262#define PTHREAD_CREATE_JOINABLE $attr_name
15263_ACEOF
15264
15265 fi
15266
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15268$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015269 flag=no
15270 case "${host_cpu}-${host_os}" in
15271 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15272 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15273 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15275$as_echo "${flag}" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015276 if test "x$flag" != xno; then
15277 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15278 fi
15279
15280 LIBS="$save_LIBS"
15281 CFLAGS="$save_CFLAGS"
15282 # More AIX lossage: must compile with xlc_r or cc_r
15283 if test x"$GCC" != xyes; then
15284 for ac_prog in xlc_r cc_r
15285do
15286 # Extract the first word of "$ac_prog", so it can be a program name with args.
15287set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15289$as_echo_n "checking for $ac_word... " >&6; }
15290if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15291 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070015292else
15293 if test -n "$PTHREAD_CC"; then
15294 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15295else
15296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15297for as_dir in $PATH
15298do
15299 IFS=$as_save_IFS
15300 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015301 for ac_exec_ext in '' $ac_executable_extensions; do
Wink Savillefbaaef92010-05-27 16:25:37 -070015302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15303 ac_cv_prog_PTHREAD_CC="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070015305 break 2
15306 fi
15307done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015308 done
Wink Savillefbaaef92010-05-27 16:25:37 -070015309IFS=$as_save_IFS
15310
15311fi
15312fi
15313PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15314if test -n "$PTHREAD_CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15316$as_echo "$PTHREAD_CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015317else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15319$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015320fi
15321
15322
15323 test -n "$PTHREAD_CC" && break
15324done
15325test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15326
15327 else
15328 PTHREAD_CC=$CC
15329 fi
15330
15331 # The next part tries to detect GCC inconsistency with -shared on some
15332 # architectures and systems. The problem is that in certain
15333 # configurations, when -shared is specified, GCC "forgets" to
15334 # internally use various flags which are still necessary.
15335
15336 #
15337 # Prepare the flags
15338 #
15339 save_CFLAGS="$CFLAGS"
15340 save_LIBS="$LIBS"
15341 save_CC="$CC"
15342
15343 # Try with the flags determined by the earlier checks.
15344 #
15345 # -Wl,-z,defs forces link-time symbol resolution, so that the
15346 # linking checks with -shared actually have any value
15347 #
15348 # FIXME: -fPIC is required for -shared on many architectures,
15349 # so we specify it here, but the right way would probably be to
15350 # properly detect whether it is actually required.
15351 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15352 LIBS="$PTHREAD_LIBS $LIBS"
15353 CC="$PTHREAD_CC"
15354
15355 # In order not to create several levels of indentation, we test
15356 # the value of "$done" until we find the cure or run out of ideas.
15357 done="no"
15358
15359 # First, make sure the CFLAGS we added are actually accepted by our
15360 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15361 # then we can't do this test.
15362 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15364$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015366/* end confdefs.h. */
15367
15368int
15369main ()
15370{
15371
15372 ;
15373 return 0;
15374}
15375_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015376if ac_fn_c_try_link "$LINENO"; then :
15377
Wink Savillefbaaef92010-05-27 16:25:37 -070015378else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015379 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070015380fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015381rm -f core conftest.err conftest.$ac_objext \
15382 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015383
15384 if test "x$done" = xyes ; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015387 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15389$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015390 fi
15391 fi
15392
15393 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15395$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015397/* end confdefs.h. */
15398#include <pthread.h>
15399int
15400main ()
15401{
15402pthread_t th; pthread_join(th, 0);
15403 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15404 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15405 ;
15406 return 0;
15407}
15408_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015409if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015410 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070015411fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015412rm -f core conftest.err conftest.$ac_objext \
15413 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015414
15415 if test "x$done" = xyes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15417$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015418 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15420$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015421 fi
15422 fi
15423
15424 #
15425 # Linux gcc on some architectures such as mips/mipsel forgets
15426 # about -lpthread
15427 #
15428 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15430$as_echo_n "checking whether -lpthread fixes that... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015431 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015433/* end confdefs.h. */
15434#include <pthread.h>
15435int
15436main ()
15437{
15438pthread_t th; pthread_join(th, 0);
15439 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15440 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15441 ;
15442 return 0;
15443}
15444_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015445if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015446 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070015447fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015448rm -f core conftest.err conftest.$ac_objext \
15449 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015450
15451 if test "x$done" = xyes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15453$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015454 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15455 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15457$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015458 fi
15459 fi
15460 #
15461 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15462 #
15463 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15465$as_echo_n "checking whether -lc_r fixes that... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015466 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015468/* end confdefs.h. */
15469#include <pthread.h>
15470int
15471main ()
15472{
15473pthread_t th; pthread_join(th, 0);
15474 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15475 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15476 ;
15477 return 0;
15478}
15479_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015480if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015481 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070015482fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015483rm -f core conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015485
15486 if test "x$done" = xyes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15488$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015489 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15490 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15492$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015493 fi
15494 fi
15495 if test x"$done" = xno; then
15496 # OK, we have run out of ideas
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15498$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070015499
15500 # so it's not safe to assume that we may use pthreads
15501 acx_pthread_ok=no
15502 fi
15503
15504 CFLAGS="$save_CFLAGS"
15505 LIBS="$save_LIBS"
15506 CC="$save_CC"
15507else
15508 PTHREAD_CC="$CC"
15509fi
15510
15511
15512
15513
15514
15515# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15516if test x"$acx_pthread_ok" = xyes; then
15517
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015518$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -070015519
15520 :
15521else
15522 acx_pthread_ok=no
15523
15524fi
15525ac_ext=cpp
15526ac_cpp='$CXXCPP $CPPFLAGS'
15527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15530
15531
15532
15533# TODO(chandlerc@google.com) Check for the necessary system headers.
15534
15535# TODO(chandlerc@google.com) Check the types, structures, and other compiler
15536# and architecture characteristics.
15537
15538# Output the generated files. No further autoconf macros may be used.
15539cat >confcache <<\_ACEOF
15540# This file is a shell script that caches the results of configure
15541# tests run on this system so they can be shared between configure
15542# scripts and configure runs, see configure's option --config-cache.
15543# It is not useful on other systems. If it contains results you don't
15544# want to keep, you may remove or edit it.
15545#
15546# config.status only pays attention to the cache file if you give it
15547# the --recheck option to rerun configure.
15548#
15549# `ac_cv_env_foo' variables (set or unset) will be overridden when
15550# loading this file, other *unset* `ac_cv_foo' will be assigned the
15551# following values.
15552
15553_ACEOF
15554
15555# The following way of writing the cache mishandles newlines in values,
15556# but we know of no workaround that is simple, portable, and efficient.
15557# So, we kill variables containing newlines.
15558# Ultrix sh set writes to stderr and can't be redirected directly,
15559# and sets the high bit in the cache file unless we assign to the vars.
15560(
15561 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15562 eval ac_val=\$$ac_var
15563 case $ac_val in #(
15564 *${as_nl}*)
15565 case $ac_var in #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15567$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070015568 esac
15569 case $ac_var in #(
15570 _ | IFS | as_nl) ;; #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15572 *) { eval $ac_var=; unset $ac_var;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070015573 esac ;;
15574 esac
15575 done
15576
15577 (set) 2>&1 |
15578 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15579 *${as_nl}ac_space=\ *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015580 # `set' does not quote correctly, so add quotes: double-quote
15581 # substitution turns \\\\ into \\, and sed turns \\ into \.
Wink Savillefbaaef92010-05-27 16:25:37 -070015582 sed -n \
15583 "s/'/'\\\\''/g;
15584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15585 ;; #(
15586 *)
15587 # `set' quotes correctly as required by POSIX, so do not add quotes.
15588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15589 ;;
15590 esac |
15591 sort
15592) |
15593 sed '
15594 /^ac_cv_env_/b end
15595 t clear
15596 :clear
15597 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15598 t end
15599 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15600 :end' >>confcache
15601if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15602 if test -w "$cache_file"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015603 if test "x$cache_file" != "x/dev/null"; then
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15605$as_echo "$as_me: updating cache $cache_file" >&6;}
15606 if test ! -f "$cache_file" || test -h "$cache_file"; then
15607 cat confcache >"$cache_file"
15608 else
15609 case $cache_file in #(
15610 */* | ?:*)
15611 mv -f confcache "$cache_file"$$ &&
15612 mv -f "$cache_file"$$ "$cache_file" ;; #(
15613 *)
15614 mv -f confcache "$cache_file" ;;
15615 esac
15616 fi
15617 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070015618 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15620$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070015621 fi
15622fi
15623rm -f confcache
15624
15625test "x$prefix" = xNONE && prefix=$ac_default_prefix
15626# Let make expand exec_prefix.
15627test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15628
15629DEFS=-DHAVE_CONFIG_H
15630
15631ac_libobjs=
15632ac_ltlibobjs=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015633U=
Wink Savillefbaaef92010-05-27 16:25:37 -070015634for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15635 # 1. Remove the extension, and $U if already installed.
15636 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015637 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Wink Savillefbaaef92010-05-27 16:25:37 -070015638 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15639 # will be set to the directory where LIBOBJS objects are built.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015640 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15641 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Wink Savillefbaaef92010-05-27 16:25:37 -070015642done
15643LIBOBJS=$ac_libobjs
15644
15645LTLIBOBJS=$ac_ltlibobjs
15646
15647
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015648 if test -n "$EXEEXT"; then
15649 am__EXEEXT_TRUE=
15650 am__EXEEXT_FALSE='#'
15651else
15652 am__EXEEXT_TRUE='#'
15653 am__EXEEXT_FALSE=
Wink Savillefbaaef92010-05-27 16:25:37 -070015654fi
15655
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015656if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15657 as_fn_error $? "conditional \"AMDEP\" was never defined.
15658Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659fi
15660if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15661 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15662Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663fi
15664if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15665 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15666Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667fi
15668if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15669 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
15670Usually this means the macro was only invoked conditionally." "$LINENO" 5
15671fi
15672
15673: "${CONFIG_STATUS=./config.status}"
15674ac_write_fail=0
Wink Savillefbaaef92010-05-27 16:25:37 -070015675ac_clean_files_save=$ac_clean_files
15676ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015677{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15678$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15679as_write_fail=0
15680cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070015681#! $SHELL
15682# Generated by $as_me.
15683# Run this file to recreate the current configuration.
15684# Compiler output produced by configure, useful for debugging
15685# configure, is in config.log if it exists.
15686
15687debug=false
15688ac_cs_recheck=false
15689ac_cs_silent=false
Wink Savillefbaaef92010-05-27 16:25:37 -070015690
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015691SHELL=\${CONFIG_SHELL-$SHELL}
15692export SHELL
15693_ASEOF
15694cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15695## -------------------- ##
15696## M4sh Initialization. ##
15697## -------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -070015698
15699# Be more Bourne compatible
15700DUALCASE=1; export DUALCASE # for MKS sh
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015701if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015702 emulate sh
15703 NULLCMD=:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015704 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Wink Savillefbaaef92010-05-27 16:25:37 -070015705 # is contrary to our usage. Disable this feature.
15706 alias -g '${1+"$@"}'='"$@"'
15707 setopt NO_GLOB_SUBST
15708else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015709 case `(set -o) 2>/dev/null` in #(
15710 *posix*) :
15711 set -o posix ;; #(
15712 *) :
15713 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070015714esac
Wink Savillefbaaef92010-05-27 16:25:37 -070015715fi
15716
15717
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015718as_nl='
15719'
15720export as_nl
15721# Printing a long string crashes Solaris 7 /usr/bin/printf.
15722as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15723as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15724as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15725# Prefer a ksh shell builtin over an external printf program on Solaris,
15726# but without wasting forks for bash or zsh.
15727if test -z "$BASH_VERSION$ZSH_VERSION" \
15728 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15729 as_echo='print -r --'
15730 as_echo_n='print -rn --'
15731elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15732 as_echo='printf %s\n'
15733 as_echo_n='printf %s'
15734else
15735 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15736 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15737 as_echo_n='/usr/ucb/echo -n'
15738 else
15739 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15740 as_echo_n_body='eval
15741 arg=$1;
15742 case $arg in #(
15743 *"$as_nl"*)
15744 expr "X$arg" : "X\\(.*\\)$as_nl";
15745 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15746 esac;
15747 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15748 '
15749 export as_echo_n_body
15750 as_echo_n='sh -c $as_echo_n_body as_echo'
15751 fi
15752 export as_echo_body
15753 as_echo='sh -c $as_echo_body as_echo'
15754fi
Wink Savillefbaaef92010-05-27 16:25:37 -070015755
15756# The user is always right.
15757if test "${PATH_SEPARATOR+set}" != set; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015758 PATH_SEPARATOR=:
15759 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15760 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15761 PATH_SEPARATOR=';'
15762 }
Wink Savillefbaaef92010-05-27 16:25:37 -070015763fi
15764
15765
15766# IFS
15767# We need space, tab and new line, in precisely that order. Quoting is
15768# there to prevent editors from complaining about space-tab.
15769# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15770# splitting by setting IFS to empty value.)
Wink Savillefbaaef92010-05-27 16:25:37 -070015771IFS=" "" $as_nl"
15772
15773# Find who we are. Look in the path if we contain no directory separator.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015774as_myself=
15775case $0 in #((
Wink Savillefbaaef92010-05-27 16:25:37 -070015776 *[\\/]* ) as_myself=$0 ;;
15777 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15778for as_dir in $PATH
15779do
15780 IFS=$as_save_IFS
15781 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015782 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15783 done
Wink Savillefbaaef92010-05-27 16:25:37 -070015784IFS=$as_save_IFS
15785
15786 ;;
15787esac
15788# We did not find ourselves, most probably we were run as `sh COMMAND'
15789# in which case we are not to be found in the path.
15790if test "x$as_myself" = x; then
15791 as_myself=$0
15792fi
15793if test ! -f "$as_myself"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015794 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15795 exit 1
Wink Savillefbaaef92010-05-27 16:25:37 -070015796fi
15797
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015798# Unset variables that we do not need and which cause bugs (e.g. in
15799# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15800# suppresses any "Segmentation fault" message there. '((' could
15801# trigger a bug in pdksh 5.2.14.
15802for as_var in BASH_ENV ENV MAIL MAILPATH
15803do eval test x\${$as_var+set} = xset \
15804 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Wink Savillefbaaef92010-05-27 16:25:37 -070015805done
15806PS1='$ '
15807PS2='> '
15808PS4='+ '
15809
15810# NLS nuisances.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015811LC_ALL=C
15812export LC_ALL
15813LANGUAGE=C
15814export LANGUAGE
Wink Savillefbaaef92010-05-27 16:25:37 -070015815
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015816# CDPATH.
15817(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15818
15819
15820# as_fn_error STATUS ERROR [LINENO LOG_FD]
15821# ----------------------------------------
15822# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15823# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15824# script with STATUS, using 1 if that was 0.
15825as_fn_error ()
15826{
15827 as_status=$1; test $as_status -eq 0 && as_status=1
15828 if test "$4"; then
15829 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15830 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15831 fi
15832 $as_echo "$as_me: error: $2" >&2
15833 as_fn_exit $as_status
15834} # as_fn_error
15835
15836
15837# as_fn_set_status STATUS
15838# -----------------------
15839# Set $? to STATUS, without forking.
15840as_fn_set_status ()
15841{
15842 return $1
15843} # as_fn_set_status
15844
15845# as_fn_exit STATUS
15846# -----------------
15847# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15848as_fn_exit ()
15849{
15850 set +e
15851 as_fn_set_status $1
15852 exit $1
15853} # as_fn_exit
15854
15855# as_fn_unset VAR
15856# ---------------
15857# Portably unset VAR.
15858as_fn_unset ()
15859{
15860 { eval $1=; unset $1;}
15861}
15862as_unset=as_fn_unset
15863# as_fn_append VAR VALUE
15864# ----------------------
15865# Append the text in VALUE to the end of the definition contained in VAR. Take
15866# advantage of any shell optimizations that allow amortized linear growth over
15867# repeated appends, instead of the typical quadratic growth present in naive
15868# implementations.
15869if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15870 eval 'as_fn_append ()
15871 {
15872 eval $1+=\$2
15873 }'
15874else
15875 as_fn_append ()
15876 {
15877 eval $1=\$$1\$2
15878 }
15879fi # as_fn_append
15880
15881# as_fn_arith ARG...
15882# ------------------
15883# Perform arithmetic evaluation on the ARGs, and store the result in the
15884# global $as_val. Take advantage of shells that can avoid forks. The arguments
15885# must be portable across $(()) and expr.
15886if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15887 eval 'as_fn_arith ()
15888 {
15889 as_val=$(( $* ))
15890 }'
15891else
15892 as_fn_arith ()
15893 {
15894 as_val=`expr "$@" || test $? -eq 1`
15895 }
15896fi # as_fn_arith
15897
15898
Wink Savillefbaaef92010-05-27 16:25:37 -070015899if expr a : '\(a\)' >/dev/null 2>&1 &&
15900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15901 as_expr=expr
15902else
15903 as_expr=false
15904fi
15905
15906if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15907 as_basename=basename
15908else
15909 as_basename=false
15910fi
15911
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015912if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15913 as_dirname=dirname
15914else
15915 as_dirname=false
15916fi
Wink Savillefbaaef92010-05-27 16:25:37 -070015917
Wink Savillefbaaef92010-05-27 16:25:37 -070015918as_me=`$as_basename -- "$0" ||
15919$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15920 X"$0" : 'X\(//\)$' \| \
15921 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015922$as_echo X/"$0" |
Wink Savillefbaaef92010-05-27 16:25:37 -070015923 sed '/^.*\/\([^/][^/]*\)\/*$/{
15924 s//\1/
15925 q
15926 }
15927 /^X\/\(\/\/\)$/{
15928 s//\1/
15929 q
15930 }
15931 /^X\/\(\/\).*/{
15932 s//\1/
15933 q
15934 }
15935 s/.*/./; q'`
15936
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015937# Avoid depending upon Character Ranges.
15938as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15939as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15940as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15941as_cr_digits='0123456789'
15942as_cr_alnum=$as_cr_Letters$as_cr_digits
Wink Savillefbaaef92010-05-27 16:25:37 -070015943
15944ECHO_C= ECHO_N= ECHO_T=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015945case `echo -n x` in #(((((
Wink Savillefbaaef92010-05-27 16:25:37 -070015946-n*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015947 case `echo 'xy\c'` in
Wink Savillefbaaef92010-05-27 16:25:37 -070015948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015949 xy) ECHO_C='\c';;
15950 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15951 ECHO_T=' ';;
Wink Savillefbaaef92010-05-27 16:25:37 -070015952 esac;;
15953*)
15954 ECHO_N='-n';;
15955esac
15956
Wink Savillefbaaef92010-05-27 16:25:37 -070015957rm -f conf$$ conf$$.exe conf$$.file
15958if test -d conf$$.dir; then
15959 rm -f conf$$.dir/conf$$.file
15960else
15961 rm -f conf$$.dir
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015962 mkdir conf$$.dir 2>/dev/null
Wink Savillefbaaef92010-05-27 16:25:37 -070015963fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015964if (echo >conf$$.file) 2>/dev/null; then
15965 if ln -s conf$$.file conf$$ 2>/dev/null; then
15966 as_ln_s='ln -s'
15967 # ... but there are two gotchas:
15968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15970 # In both cases, we have to default to `cp -p'.
15971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15972 as_ln_s='cp -p'
15973 elif ln conf$$.file conf$$ 2>/dev/null; then
15974 as_ln_s=ln
15975 else
Wink Savillefbaaef92010-05-27 16:25:37 -070015976 as_ln_s='cp -p'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015977 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070015978else
15979 as_ln_s='cp -p'
15980fi
15981rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15982rmdir conf$$.dir 2>/dev/null
15983
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015984
15985# as_fn_mkdir_p
15986# -------------
15987# Create "$as_dir" as a directory, including parents if necessary.
15988as_fn_mkdir_p ()
15989{
15990
15991 case $as_dir in #(
15992 -*) as_dir=./$as_dir;;
15993 esac
15994 test -d "$as_dir" || eval $as_mkdir_p || {
15995 as_dirs=
15996 while :; do
15997 case $as_dir in #(
15998 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15999 *) as_qdir=$as_dir;;
16000 esac
16001 as_dirs="'$as_qdir' $as_dirs"
16002 as_dir=`$as_dirname -- "$as_dir" ||
16003$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16004 X"$as_dir" : 'X\(//\)[^/]' \| \
16005 X"$as_dir" : 'X\(//\)$' \| \
16006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16007$as_echo X"$as_dir" |
16008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16009 s//\1/
16010 q
16011 }
16012 /^X\(\/\/\)[^/].*/{
16013 s//\1/
16014 q
16015 }
16016 /^X\(\/\/\)$/{
16017 s//\1/
16018 q
16019 }
16020 /^X\(\/\).*/{
16021 s//\1/
16022 q
16023 }
16024 s/.*/./; q'`
16025 test -d "$as_dir" && break
16026 done
16027 test -z "$as_dirs" || eval "mkdir $as_dirs"
16028 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16029
16030
16031} # as_fn_mkdir_p
Wink Savillefbaaef92010-05-27 16:25:37 -070016032if mkdir -p . 2>/dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016033 as_mkdir_p='mkdir -p "$as_dir"'
Wink Savillefbaaef92010-05-27 16:25:37 -070016034else
16035 test -d ./-p && rmdir ./-p
16036 as_mkdir_p=false
16037fi
16038
16039if test -x / >/dev/null 2>&1; then
16040 as_test_x='test -x'
16041else
16042 if ls -dL / >/dev/null 2>&1; then
16043 as_ls_L_option=L
16044 else
16045 as_ls_L_option=
16046 fi
16047 as_test_x='
16048 eval sh -c '\''
16049 if test -d "$1"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016050 test -d "$1/.";
Wink Savillefbaaef92010-05-27 16:25:37 -070016051 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016052 case $1 in #(
16053 -*)set "./$1";;
Wink Savillefbaaef92010-05-27 16:25:37 -070016054 esac;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016055 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Wink Savillefbaaef92010-05-27 16:25:37 -070016056 ???[sx]*):;;*)false;;esac;fi
16057 '\'' sh
16058 '
16059fi
16060as_executable_p=$as_test_x
16061
16062# Sed expression to map a string onto a valid CPP name.
16063as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16064
16065# Sed expression to map a string onto a valid variable name.
16066as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16067
16068
16069exec 6>&1
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016070## ----------------------------------- ##
16071## Main body of $CONFIG_STATUS script. ##
16072## ----------------------------------- ##
16073_ASEOF
16074test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016075
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16077# Save the log message, to keep $0 and so on meaningful, and to
Wink Savillefbaaef92010-05-27 16:25:37 -070016078# report actual input values of CONFIG_FILES etc. instead of their
16079# values after options handling.
16080ac_log="
Wink Savilled0332952010-05-29 13:00:38 -070016081This file was extended by Google C++ Testing Framework $as_me 1.4.0, which was
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016082generated by GNU Autoconf 2.68. Invocation command line was
Wink Savillefbaaef92010-05-27 16:25:37 -070016083
16084 CONFIG_FILES = $CONFIG_FILES
16085 CONFIG_HEADERS = $CONFIG_HEADERS
16086 CONFIG_LINKS = $CONFIG_LINKS
16087 CONFIG_COMMANDS = $CONFIG_COMMANDS
16088 $ $0 $@
16089
16090on `(hostname || uname -n) 2>/dev/null | sed 1q`
16091"
16092
16093_ACEOF
16094
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016095case $ac_config_files in *"
16096"*) set x $ac_config_files; shift; ac_config_files=$*;;
16097esac
16098
16099case $ac_config_headers in *"
16100"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16101esac
16102
16103
16104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016105# Files that config.status was made for.
16106config_files="$ac_config_files"
16107config_headers="$ac_config_headers"
16108config_commands="$ac_config_commands"
16109
16110_ACEOF
16111
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016113ac_cs_usage="\
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016114\`$as_me' instantiates files and other configuration actions
16115from templates according to the current configuration. Unless the files
16116and actions are specified as TAGs, all are instantiated by default.
Wink Savillefbaaef92010-05-27 16:25:37 -070016117
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016118Usage: $0 [OPTION]... [TAG]...
Wink Savillefbaaef92010-05-27 16:25:37 -070016119
16120 -h, --help print this help, then exit
16121 -V, --version print version number and configuration settings, then exit
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016122 --config print configuration, then exit
16123 -q, --quiet, --silent
16124 do not print progress messages
Wink Savillefbaaef92010-05-27 16:25:37 -070016125 -d, --debug don't remove temporary files
16126 --recheck update $as_me by reconfiguring in the same conditions
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016127 --file=FILE[:TEMPLATE]
16128 instantiate the configuration file FILE
16129 --header=FILE[:TEMPLATE]
16130 instantiate the configuration header FILE
Wink Savillefbaaef92010-05-27 16:25:37 -070016131
16132Configuration files:
16133$config_files
16134
16135Configuration headers:
16136$config_headers
16137
16138Configuration commands:
16139$config_commands
16140
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016141Report bugs to <googletestframework@googlegroups.com>."
Wink Savillefbaaef92010-05-27 16:25:37 -070016142
16143_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16145ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Wink Savillefbaaef92010-05-27 16:25:37 -070016146ac_cs_version="\\
Wink Savilled0332952010-05-29 13:00:38 -070016147Google C++ Testing Framework config.status 1.4.0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016148configured by $0, generated by GNU Autoconf 2.68,
16149 with options \\"\$ac_cs_config\\"
Wink Savillefbaaef92010-05-27 16:25:37 -070016150
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016151Copyright (C) 2010 Free Software Foundation, Inc.
Wink Savillefbaaef92010-05-27 16:25:37 -070016152This config.status script is free software; the Free Software Foundation
16153gives unlimited permission to copy, distribute and modify it."
16154
16155ac_pwd='$ac_pwd'
16156srcdir='$srcdir'
16157INSTALL='$INSTALL'
16158MKDIR_P='$MKDIR_P'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016159AWK='$AWK'
16160test -n "\$AWK" || AWK=awk
Wink Savillefbaaef92010-05-27 16:25:37 -070016161_ACEOF
16162
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16164# The default lists apply if the user does not specify any file.
Wink Savillefbaaef92010-05-27 16:25:37 -070016165ac_need_defaults=:
16166while test $# != 0
16167do
16168 case $1 in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016169 --*=?*)
Wink Savillefbaaef92010-05-27 16:25:37 -070016170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16172 ac_shift=:
16173 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016174 --*=)
16175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16176 ac_optarg=
16177 ac_shift=:
16178 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016179 *)
16180 ac_option=$1
16181 ac_optarg=$2
16182 ac_shift=shift
16183 ;;
16184 esac
16185
16186 case $ac_option in
16187 # Handling of the options.
16188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16189 ac_cs_recheck=: ;;
16190 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016191 $as_echo "$ac_cs_version"; exit ;;
16192 --config | --confi | --conf | --con | --co | --c )
16193 $as_echo "$ac_cs_config"; exit ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016194 --debug | --debu | --deb | --de | --d | -d )
16195 debug=: ;;
16196 --file | --fil | --fi | --f )
16197 $ac_shift
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016198 case $ac_optarg in
16199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16200 '') as_fn_error $? "missing file argument" ;;
16201 esac
16202 as_fn_append CONFIG_FILES " '$ac_optarg'"
Wink Savillefbaaef92010-05-27 16:25:37 -070016203 ac_need_defaults=false;;
16204 --header | --heade | --head | --hea )
16205 $ac_shift
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016206 case $ac_optarg in
16207 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16208 esac
16209 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Wink Savillefbaaef92010-05-27 16:25:37 -070016210 ac_need_defaults=false;;
16211 --he | --h)
16212 # Conflict between --help and --header
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016213 as_fn_error $? "ambiguous option: \`$1'
16214Try \`$0 --help' for more information.";;
Wink Savillefbaaef92010-05-27 16:25:37 -070016215 --help | --hel | -h )
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016216 $as_echo "$ac_cs_usage"; exit ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16218 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16219 ac_cs_silent=: ;;
16220
16221 # This is an error.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016222 -*) as_fn_error $? "unrecognized option: \`$1'
16223Try \`$0 --help' for more information." ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016224
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016225 *) as_fn_append ac_config_targets " $1"
Wink Savillefbaaef92010-05-27 16:25:37 -070016226 ac_need_defaults=false ;;
16227
16228 esac
16229 shift
16230done
16231
16232ac_configure_extra_args=
16233
16234if $ac_cs_silent; then
16235 exec 6>/dev/null
16236 ac_configure_extra_args="$ac_configure_extra_args --silent"
16237fi
16238
16239_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016241if \$ac_cs_recheck; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016242 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16243 shift
16244 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16245 CONFIG_SHELL='$SHELL'
Wink Savillefbaaef92010-05-27 16:25:37 -070016246 export CONFIG_SHELL
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016247 exec "\$@"
Wink Savillefbaaef92010-05-27 16:25:37 -070016248fi
16249
16250_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016252exec 5>>config.log
16253{
16254 echo
16255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16256## Running $as_me. ##
16257_ASBOX
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016258 $as_echo "$ac_log"
Wink Savillefbaaef92010-05-27 16:25:37 -070016259} >&5
16260
16261_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016263#
16264# INIT-COMMANDS
16265#
16266AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16267
16268
16269# The HP-UX ksh and POSIX shell print the target directory to stdout
16270# if CDPATH is set.
16271(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16272
16273sed_quote_subst='$sed_quote_subst'
16274double_quote_subst='$double_quote_subst'
16275delay_variable_subst='$delay_variable_subst'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016276macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16277macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16278enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16279enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16280pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16281enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16282SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16283ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16284PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16285host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16286host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16287host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16288build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16289build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16290build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16291SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16292Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16293GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16294EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16295FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16296LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16297NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16298LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16299max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16300ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16301exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16302lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16303lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16304lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16305lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16306lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16307reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16308reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16309OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16310deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16311file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16312file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16313want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16314DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16315sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16316AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16317AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16318archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16319STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16320RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16321old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16322old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16323old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16324lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16325CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16326CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16327compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16328GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16329lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16330lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16331lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16332lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16333nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16334lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16335objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16336MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16337lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16338lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16339lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16340lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16341lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16342need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16343MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16344DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16345NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16346LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16347OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16348OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16349libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16350shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16351extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16352archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16353enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16354export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16355whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16356compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16357old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16358old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16359archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16360archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16361module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16362module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16363with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16364allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16365no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16366hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16367hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16368hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16369hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16370hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16371hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16372hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16373inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16374link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16375always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16376export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16377exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16378include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16379prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16380postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16381file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16382variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16383need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16384need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16385version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16386runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16387shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16388shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16389libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16390library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16391soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16392install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16393postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16394postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16395finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16396finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16397hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16398sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16399sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16400hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16401enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16402enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16403enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16404old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16405striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16406compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16407predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16408postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16409predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16410postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16411compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16412LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16413reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16414reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16415old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16416compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16417GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16418lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16419lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16420lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16421lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16422lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16423archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16424enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16425export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16426whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16427compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16428old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16429old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16430archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16431archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16432module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16433module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16434with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16435allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16436no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16437hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16438hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16439hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16440hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16441hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16442hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16443hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16444inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16445link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16446always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16447export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16448exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16449include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16450prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16451postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16452file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16453hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16454compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16455predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16456postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16457predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16458postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16459compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
Wink Savillefbaaef92010-05-27 16:25:37 -070016460
16461LTCC='$LTCC'
16462LTCFLAGS='$LTCFLAGS'
16463compiler='$compiler_DEFAULT'
16464
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016465# A function that is used when there is no print builtin or printf.
16466func_fallback_echo ()
16467{
16468 eval 'cat <<_LTECHO_EOF
16469\$1
16470_LTECHO_EOF'
16471}
16472
Wink Savillefbaaef92010-05-27 16:25:37 -070016473# Quote evaled strings.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016474for var in SHELL \
16475ECHO \
16476PATH_SEPARATOR \
16477SED \
Wink Savillefbaaef92010-05-27 16:25:37 -070016478GREP \
16479EGREP \
16480FGREP \
16481LD \
16482NM \
16483LN_S \
16484lt_SP2NL \
16485lt_NL2SP \
16486reload_flag \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016487OBJDUMP \
Wink Savillefbaaef92010-05-27 16:25:37 -070016488deplibs_check_method \
16489file_magic_cmd \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016490file_magic_glob \
16491want_nocaseglob \
16492DLLTOOL \
16493sharedlib_from_linklib_cmd \
Wink Savillefbaaef92010-05-27 16:25:37 -070016494AR \
16495AR_FLAGS \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016496archiver_list_spec \
Wink Savillefbaaef92010-05-27 16:25:37 -070016497STRIP \
16498RANLIB \
16499CC \
16500CFLAGS \
16501compiler \
16502lt_cv_sys_global_symbol_pipe \
16503lt_cv_sys_global_symbol_to_cdecl \
16504lt_cv_sys_global_symbol_to_c_name_address \
16505lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016506nm_file_list_spec \
Wink Savillefbaaef92010-05-27 16:25:37 -070016507lt_prog_compiler_no_builtin_flag \
Wink Savillefbaaef92010-05-27 16:25:37 -070016508lt_prog_compiler_pic \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016509lt_prog_compiler_wl \
Wink Savillefbaaef92010-05-27 16:25:37 -070016510lt_prog_compiler_static \
16511lt_cv_prog_compiler_c_o \
16512need_locks \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016513MANIFEST_TOOL \
Wink Savillefbaaef92010-05-27 16:25:37 -070016514DSYMUTIL \
16515NMEDIT \
16516LIPO \
16517OTOOL \
16518OTOOL64 \
16519shrext_cmds \
16520export_dynamic_flag_spec \
16521whole_archive_flag_spec \
16522compiler_needs_object \
16523with_gnu_ld \
16524allow_undefined_flag \
16525no_undefined_flag \
16526hardcode_libdir_flag_spec \
Wink Savillefbaaef92010-05-27 16:25:37 -070016527hardcode_libdir_separator \
Wink Savillefbaaef92010-05-27 16:25:37 -070016528exclude_expsyms \
16529include_expsyms \
16530file_list_spec \
16531variables_saved_for_relink \
16532libname_spec \
16533library_names_spec \
16534soname_spec \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016535install_override_mode \
Wink Savillefbaaef92010-05-27 16:25:37 -070016536finish_eval \
16537old_striplib \
16538striplib \
16539compiler_lib_search_dirs \
16540predep_objects \
16541postdep_objects \
16542predeps \
16543postdeps \
16544compiler_lib_search_path \
16545LD_CXX \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016546reload_flag_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070016547compiler_CXX \
16548lt_prog_compiler_no_builtin_flag_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070016549lt_prog_compiler_pic_CXX \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016550lt_prog_compiler_wl_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070016551lt_prog_compiler_static_CXX \
16552lt_cv_prog_compiler_c_o_CXX \
16553export_dynamic_flag_spec_CXX \
16554whole_archive_flag_spec_CXX \
16555compiler_needs_object_CXX \
16556with_gnu_ld_CXX \
16557allow_undefined_flag_CXX \
16558no_undefined_flag_CXX \
16559hardcode_libdir_flag_spec_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070016560hardcode_libdir_separator_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070016561exclude_expsyms_CXX \
16562include_expsyms_CXX \
16563file_list_spec_CXX \
16564compiler_lib_search_dirs_CXX \
16565predep_objects_CXX \
16566postdep_objects_CXX \
16567predeps_CXX \
16568postdeps_CXX \
16569compiler_lib_search_path_CXX; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Wink Savillefbaaef92010-05-27 16:25:37 -070016571 *[\\\\\\\`\\"\\\$]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Wink Savillefbaaef92010-05-27 16:25:37 -070016573 ;;
16574 *)
16575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16576 ;;
16577 esac
16578done
16579
16580# Double-quote double-evaled strings.
16581for var in reload_cmds \
16582old_postinstall_cmds \
16583old_postuninstall_cmds \
16584old_archive_cmds \
16585extract_expsyms_cmds \
16586old_archive_from_new_cmds \
16587old_archive_from_expsyms_cmds \
16588archive_cmds \
16589archive_expsym_cmds \
16590module_cmds \
16591module_expsym_cmds \
16592export_symbols_cmds \
16593prelink_cmds \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016594postlink_cmds \
Wink Savillefbaaef92010-05-27 16:25:37 -070016595postinstall_cmds \
16596postuninstall_cmds \
16597finish_cmds \
16598sys_lib_search_path_spec \
16599sys_lib_dlsearch_path_spec \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016600reload_cmds_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070016601old_archive_cmds_CXX \
16602old_archive_from_new_cmds_CXX \
16603old_archive_from_expsyms_cmds_CXX \
16604archive_cmds_CXX \
16605archive_expsym_cmds_CXX \
16606module_cmds_CXX \
16607module_expsym_cmds_CXX \
16608export_symbols_cmds_CXX \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016609prelink_cmds_CXX \
16610postlink_cmds_CXX; do
16611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Wink Savillefbaaef92010-05-27 16:25:37 -070016612 *[\\\\\\\`\\"\\\$]*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Wink Savillefbaaef92010-05-27 16:25:37 -070016614 ;;
16615 *)
16616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16617 ;;
16618 esac
16619done
16620
Wink Savillefbaaef92010-05-27 16:25:37 -070016621ac_aux_dir='$ac_aux_dir'
16622xsi_shell='$xsi_shell'
16623lt_shell_append='$lt_shell_append'
16624
16625# See if we are running on zsh, and set the options which allow our
16626# commands through without removal of \ escapes INIT.
16627if test -n "\${ZSH_VERSION+set}" ; then
16628 setopt NO_GLOB_SUBST
16629fi
16630
16631
16632 PACKAGE='$PACKAGE'
16633 VERSION='$VERSION'
16634 TIMESTAMP='$TIMESTAMP'
16635 RM='$RM'
16636 ofile='$ofile'
16637
16638
16639
16640
16641
16642
16643_ACEOF
16644
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016646
16647# Handling of arguments.
16648for ac_config_target in $ac_config_targets
16649do
16650 case $ac_config_target in
16651 "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
16652 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16653 "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
16654 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16655 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16656
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016657 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016658 esac
16659done
16660
16661
16662# If the user did not use the arguments to specify the items to instantiate,
16663# then the envvar interface is used. Set only those that are not.
16664# We use the long form for the default assignment because of an extremely
16665# bizarre bug on SunOS 4.1.3.
16666if $ac_need_defaults; then
16667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16668 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16669 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16670fi
16671
16672# Have a temporary directory for convenience. Make it in the build tree
16673# simply because there is no reason against having it here, and in addition,
16674# creating and moving files from /tmp can sometimes cause problems.
16675# Hook for its removal unless debugging.
16676# Note that there is a small window in which the directory will not be cleaned:
16677# after its creation but before its name has been assigned to `$tmp'.
16678$debug ||
16679{
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016680 tmp= ac_tmp=
Wink Savillefbaaef92010-05-27 16:25:37 -070016681 trap 'exit_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016682 : "${ac_tmp:=$tmp}"
16683 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Wink Savillefbaaef92010-05-27 16:25:37 -070016684' 0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016685 trap 'as_fn_exit 1' 1 2 13 15
Wink Savillefbaaef92010-05-27 16:25:37 -070016686}
16687# Create a (secure) tmp directory for tmp files.
16688
16689{
16690 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016691 test -d "$tmp"
Wink Savillefbaaef92010-05-27 16:25:37 -070016692} ||
16693{
16694 tmp=./conf$$-$RANDOM
16695 (umask 077 && mkdir "$tmp")
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016696} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16697ac_tmp=$tmp
Wink Savillefbaaef92010-05-27 16:25:37 -070016698
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016699# Set up the scripts for CONFIG_FILES section.
16700# No need to generate them if there are no CONFIG_FILES.
16701# This happens for instance with `./config.status config.h'.
Wink Savillefbaaef92010-05-27 16:25:37 -070016702if test -n "$CONFIG_FILES"; then
16703
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016704
16705ac_cr=`echo X | tr X '\015'`
16706# On cygwin, bash can eat \r inside `` if the user requested igncr.
16707# But we know of no other shell where ac_cr would be empty at this
16708# point, so we can use a bashism as a fallback.
16709if test "x$ac_cr" = x; then
16710 eval ac_cr=\$\'\\r\'
16711fi
16712ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16713if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16714 ac_cs_awk_cr='\\r'
16715else
16716 ac_cs_awk_cr=$ac_cr
16717fi
16718
16719echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Wink Savillefbaaef92010-05-27 16:25:37 -070016720_ACEOF
16721
16722
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016723{
16724 echo "cat >conf$$subs.awk <<_ACEOF" &&
16725 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16726 echo "_ACEOF"
16727} >conf$$subs.sh ||
16728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16729ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Wink Savillefbaaef92010-05-27 16:25:37 -070016730ac_delim='%!_!# '
16731for ac_last_try in false false false false false :; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016732 . ./conf$$subs.sh ||
16733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070016734
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016735 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16736 if test $ac_delim_n = $ac_delim_num; then
Wink Savillefbaaef92010-05-27 16:25:37 -070016737 break
16738 elif $ac_last_try; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070016740 else
16741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16742 fi
16743done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016744rm -f conf$$subs.sh
Wink Savillefbaaef92010-05-27 16:25:37 -070016745
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Wink Savillefbaaef92010-05-27 16:25:37 -070016748_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016749sed -n '
16750h
16751s/^/S["/; s/!.*/"]=/
16752p
16753g
16754s/^[^!]*!//
16755:repl
16756t repl
16757s/'"$ac_delim"'$//
16758t delim
16759:nl
16760h
16761s/\(.\{148\}\)..*/\1/
16762t more1
16763s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16764p
16765n
16766b repl
16767:more1
16768s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16769p
16770g
16771s/.\{148\}//
16772t nl
16773:delim
16774h
16775s/\(.\{148\}\)..*/\1/
16776t more2
16777s/["\\]/\\&/g; s/^/"/; s/$/"/
16778p
16779b
16780:more2
16781s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16782p
16783g
16784s/.\{148\}//
16785t delim
16786' <conf$$subs.awk | sed '
16787/^[^""]/{
16788 N
16789 s/\n//
16790}
16791' >>$CONFIG_STATUS || ac_write_fail=1
16792rm -f conf$$subs.awk
16793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794_ACAWK
16795cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16796 for (key in S) S_is_set[key] = 1
16797 FS = ""
16798
16799}
16800{
16801 line = $ 0
16802 nfields = split(line, field, "@")
16803 substed = 0
16804 len = length(field[1])
16805 for (i = 2; i < nfields; i++) {
16806 key = field[i]
16807 keylen = length(key)
16808 if (S_is_set[key]) {
16809 value = S[key]
16810 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16811 len += length(value) + length(field[++i])
16812 substed = 1
16813 } else
16814 len += 1 + keylen
16815 }
16816
16817 print line
16818}
16819
16820_ACAWK
16821_ACEOF
16822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16824 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16825else
16826 cat
16827fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16828 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070016829_ACEOF
16830
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016831# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16832# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Wink Savillefbaaef92010-05-27 16:25:37 -070016833# trailing colons and then remove the whole line if VPATH becomes empty
16834# (actually we leave an empty line to preserve line numbers).
16835if test "x$srcdir" = x.; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016836 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16837h
16838s///
16839s/^/:/
16840s/[ ]*$/:/
16841s/:\$(srcdir):/:/g
16842s/:\${srcdir}:/:/g
16843s/:@srcdir@:/:/g
16844s/^:*//
Wink Savillefbaaef92010-05-27 16:25:37 -070016845s/:*$//
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016846x
16847s/\(=[ ]*\).*/\1/
16848G
16849s/\n//
Wink Savillefbaaef92010-05-27 16:25:37 -070016850s/^[^=]*=[ ]*$//
16851}'
16852fi
16853
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070016855fi # test -n "$CONFIG_FILES"
16856
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016857# Set up the scripts for CONFIG_HEADERS section.
16858# No need to generate them if there are no CONFIG_HEADERS.
16859# This happens for instance with `./config.status Makefile'.
16860if test -n "$CONFIG_HEADERS"; then
16861cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16862BEGIN {
16863_ACEOF
Wink Savillefbaaef92010-05-27 16:25:37 -070016864
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016865# Transform confdefs.h into an awk script `defines.awk', embedded as
16866# here-document in config.status, that substitutes the proper values into
16867# config.h.in to produce config.h.
16868
16869# Create a delimiter string that does not exist in confdefs.h, to ease
16870# handling of long lines.
16871ac_delim='%!_!# '
16872for ac_last_try in false false :; do
16873 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16874 if test -z "$ac_tt"; then
16875 break
16876 elif $ac_last_try; then
16877 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16878 else
16879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16880 fi
16881done
16882
16883# For the awk script, D is an array of macro values keyed by name,
16884# likewise P contains macro parameters if any. Preserve backslash
16885# newline sequences.
16886
16887ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16888sed -n '
16889s/.\{148\}/&'"$ac_delim"'/g
16890t rset
16891:rset
16892s/^[ ]*#[ ]*define[ ][ ]*/ /
16893t def
16894d
16895:def
16896s/\\$//
16897t bsnl
16898s/["\\]/\\&/g
16899s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16900D["\1"]=" \3"/p
16901s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16902d
16903:bsnl
16904s/["\\]/\\&/g
16905s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16906D["\1"]=" \3\\\\\\n"\\/p
16907t cont
16908s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16909t cont
16910d
16911:cont
16912n
16913s/.\{148\}/&'"$ac_delim"'/g
16914t clear
16915:clear
16916s/\\$//
16917t bsnlc
16918s/["\\]/\\&/g; s/^/"/; s/$/"/p
16919d
16920:bsnlc
16921s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16922b cont
16923' <confdefs.h | sed '
16924s/'"$ac_delim"'/"\\\
16925"/g' >>$CONFIG_STATUS || ac_write_fail=1
16926
16927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16928 for (key in D) D_is_set[key] = 1
16929 FS = ""
16930}
16931/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16932 line = \$ 0
16933 split(line, arg, " ")
16934 if (arg[1] == "#") {
16935 defundef = arg[2]
16936 mac1 = arg[3]
16937 } else {
16938 defundef = substr(arg[1], 2)
16939 mac1 = arg[2]
16940 }
16941 split(mac1, mac2, "(") #)
16942 macro = mac2[1]
16943 prefix = substr(line, 1, index(line, defundef) - 1)
16944 if (D_is_set[macro]) {
16945 # Preserve the white space surrounding the "#".
16946 print prefix "define", macro P[macro] D[macro]
16947 next
16948 } else {
16949 # Replace #undef with comments. This is necessary, for example,
16950 # in the case of _POSIX_SOURCE, which is predefined and required
16951 # on some systems where configure will not decide to define it.
16952 if (defundef == "undef") {
16953 print "/*", prefix defundef, macro, "*/"
16954 next
16955 }
16956 }
16957}
16958{ print }
16959_ACAWK
16960_ACEOF
16961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16962 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16963fi # test -n "$CONFIG_HEADERS"
16964
16965
16966eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16967shift
16968for ac_tag
Wink Savillefbaaef92010-05-27 16:25:37 -070016969do
16970 case $ac_tag in
16971 :[FHLC]) ac_mode=$ac_tag; continue;;
16972 esac
16973 case $ac_mode$ac_tag in
16974 :[FHL]*:*);;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016975 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016976 :[FH]-) ac_tag=-:-;;
16977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16978 esac
16979 ac_save_IFS=$IFS
16980 IFS=:
16981 set x $ac_tag
16982 IFS=$ac_save_IFS
16983 shift
16984 ac_file=$1
16985 shift
16986
16987 case $ac_mode in
16988 :L) ac_source=$1;;
16989 :[FH])
16990 ac_file_inputs=
16991 for ac_f
16992 do
16993 case $ac_f in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016994 -) ac_f="$ac_tmp/stdin";;
Wink Savillefbaaef92010-05-27 16:25:37 -070016995 *) # Look for the file first in the build tree, then in the source tree
16996 # (if the path is not absolute). The absolute path cannot be DOS-style,
16997 # because $ac_f cannot contain `:'.
16998 test -f "$ac_f" ||
16999 case $ac_f in
17000 [\\/$]*) false;;
17001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17002 esac ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017003 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017004 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017005 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17006 as_fn_append ac_file_inputs " '$ac_f'"
Wink Savillefbaaef92010-05-27 16:25:37 -070017007 done
17008
17009 # Let's still pretend it is `configure' which instantiates (i.e., don't
17010 # use $as_me), people would be surprised to read:
17011 # /* config.h. Generated by config.status. */
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017012 configure_input='Generated from '`
17013 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17014 `' by configure.'
Wink Savillefbaaef92010-05-27 16:25:37 -070017015 if test x"$ac_file" != x-; then
17016 configure_input="$ac_file. $configure_input"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17018$as_echo "$as_me: creating $ac_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070017019 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017020 # Neutralize special characters interpreted by sed in replacement strings.
17021 case $configure_input in #(
17022 *\&* | *\|* | *\\* )
17023 ac_sed_conf_input=`$as_echo "$configure_input" |
17024 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17025 *) ac_sed_conf_input=$configure_input;;
17026 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070017027
17028 case $ac_tag in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017029 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017031 esac
17032 ;;
17033 esac
17034
17035 ac_dir=`$as_dirname -- "$ac_file" ||
17036$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17037 X"$ac_file" : 'X\(//\)[^/]' \| \
17038 X"$ac_file" : 'X\(//\)$' \| \
17039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017040$as_echo X"$ac_file" |
Wink Savillefbaaef92010-05-27 16:25:37 -070017041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17042 s//\1/
17043 q
17044 }
17045 /^X\(\/\/\)[^/].*/{
17046 s//\1/
17047 q
17048 }
17049 /^X\(\/\/\)$/{
17050 s//\1/
17051 q
17052 }
17053 /^X\(\/\).*/{
17054 s//\1/
17055 q
17056 }
17057 s/.*/./; q'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017058 as_dir="$ac_dir"; as_fn_mkdir_p
Wink Savillefbaaef92010-05-27 16:25:37 -070017059 ac_builddir=.
17060
17061case "$ac_dir" in
17062.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17063*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Wink Savillefbaaef92010-05-27 16:25:37 -070017065 # A ".." for each directory in $ac_dir_suffix.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Wink Savillefbaaef92010-05-27 16:25:37 -070017067 case $ac_top_builddir_sub in
17068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17070 esac ;;
17071esac
17072ac_abs_top_builddir=$ac_pwd
17073ac_abs_builddir=$ac_pwd$ac_dir_suffix
17074# for backward compatibility:
17075ac_top_builddir=$ac_top_build_prefix
17076
17077case $srcdir in
17078 .) # We are building in place.
17079 ac_srcdir=.
17080 ac_top_srcdir=$ac_top_builddir_sub
17081 ac_abs_top_srcdir=$ac_pwd ;;
17082 [\\/]* | ?:[\\/]* ) # Absolute name.
17083 ac_srcdir=$srcdir$ac_dir_suffix;
17084 ac_top_srcdir=$srcdir
17085 ac_abs_top_srcdir=$srcdir ;;
17086 *) # Relative name.
17087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17088 ac_top_srcdir=$ac_top_build_prefix$srcdir
17089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17090esac
17091ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17092
17093
17094 case $ac_mode in
17095 :F)
17096 #
17097 # CONFIG_FILE
17098 #
17099
17100 case $INSTALL in
17101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17102 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17103 esac
17104 ac_MKDIR_P=$MKDIR_P
17105 case $MKDIR_P in
17106 [\\/$]* | ?:[\\/]* ) ;;
17107 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17108 esac
17109_ACEOF
17110
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017112# If the template does not know about datarootdir, expand it.
17113# FIXME: This hack should be removed a few years after 2.60.
17114ac_datarootdir_hack=; ac_datarootdir_seen=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017115ac_sed_dataroot='
17116/datarootdir/ {
Wink Savillefbaaef92010-05-27 16:25:37 -070017117 p
17118 q
17119}
17120/@datadir@/p
17121/@docdir@/p
17122/@infodir@/p
17123/@localedir@/p
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017124/@mandir@/p'
17125case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Wink Savillefbaaef92010-05-27 16:25:37 -070017126*datarootdir*) ac_datarootdir_seen=yes;;
17127*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17129$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070017130_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017132 ac_datarootdir_hack='
17133 s&@datadir@&$datadir&g
17134 s&@docdir@&$docdir&g
17135 s&@infodir@&$infodir&g
17136 s&@localedir@&$localedir&g
17137 s&@mandir@&$mandir&g
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017138 s&\\\${datarootdir}&$datarootdir&g' ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017139esac
17140_ACEOF
17141
17142# Neutralize VPATH when `$srcdir' = `.'.
17143# Shell code in configure.ac might set extrasub.
17144# FIXME: do we really want to maintain this feature?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17146ac_sed_extra="$ac_vpsub
Wink Savillefbaaef92010-05-27 16:25:37 -070017147$extrasub
17148_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017150:t
17151/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017152s|@configure_input@|$ac_sed_conf_input|;t t
Wink Savillefbaaef92010-05-27 16:25:37 -070017153s&@top_builddir@&$ac_top_builddir_sub&;t t
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017154s&@top_build_prefix@&$ac_top_build_prefix&;t t
Wink Savillefbaaef92010-05-27 16:25:37 -070017155s&@srcdir@&$ac_srcdir&;t t
17156s&@abs_srcdir@&$ac_abs_srcdir&;t t
17157s&@top_srcdir@&$ac_top_srcdir&;t t
17158s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17159s&@builddir@&$ac_builddir&;t t
17160s&@abs_builddir@&$ac_abs_builddir&;t t
17161s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17162s&@INSTALL@&$ac_INSTALL&;t t
17163s&@MKDIR_P@&$ac_MKDIR_P&;t t
17164$ac_datarootdir_hack
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017165"
17166eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17167 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070017168
17169test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017170 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17172 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17174which seems to be undefined. Please make sure it is defined" >&5
17175$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17176which seems to be undefined. Please make sure it is defined" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070017177
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017178 rm -f "$ac_tmp/stdin"
Wink Savillefbaaef92010-05-27 16:25:37 -070017179 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017180 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17181 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17182 esac \
17183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070017184 ;;
17185 :H)
17186 #
17187 # CONFIG_HEADER
17188 #
Wink Savillefbaaef92010-05-27 16:25:37 -070017189 if test x"$ac_file" != x-; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017190 {
17191 $as_echo "/* $configure_input */" \
17192 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17193 } >"$ac_tmp/config.h" \
17194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17195 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17197$as_echo "$as_me: $ac_file is unchanged" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070017198 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017199 rm -f "$ac_file"
17200 mv "$ac_tmp/config.h" "$ac_file" \
17201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070017202 fi
17203 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017204 $as_echo "/* $configure_input */" \
17205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17206 || as_fn_error $? "could not create -" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070017207 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017208# Compute "$ac_file"'s index in $config_headers.
17209_am_arg="$ac_file"
Wink Savillefbaaef92010-05-27 16:25:37 -070017210_am_stamp_count=1
17211for _am_header in $config_headers :; do
17212 case $_am_header in
17213 $_am_arg | $_am_arg:* )
17214 break ;;
17215 * )
17216 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17217 esac
17218done
17219echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17220$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17221 X"$_am_arg" : 'X\(//\)[^/]' \| \
17222 X"$_am_arg" : 'X\(//\)$' \| \
17223 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017224$as_echo X"$_am_arg" |
Wink Savillefbaaef92010-05-27 16:25:37 -070017225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17226 s//\1/
17227 q
17228 }
17229 /^X\(\/\/\)[^/].*/{
17230 s//\1/
17231 q
17232 }
17233 /^X\(\/\/\)$/{
17234 s//\1/
17235 q
17236 }
17237 /^X\(\/\).*/{
17238 s//\1/
17239 q
17240 }
17241 s/.*/./; q'`/stamp-h$_am_stamp_count
17242 ;;
17243
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017244 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17245$as_echo "$as_me: executing $ac_file commands" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070017246 ;;
17247 esac
17248
17249
17250 case $ac_file$ac_mode in
17251 "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017252 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17253 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17254 # are listed without --file. Let's play safe and only enable the eval
17255 # if we detect the quoting.
17256 case $CONFIG_FILES in
17257 *\'*) eval set x "$CONFIG_FILES" ;;
17258 *) set x $CONFIG_FILES ;;
17259 esac
17260 shift
17261 for mf
17262 do
17263 # Strip MF so we end up with the name of the file.
17264 mf=`echo "$mf" | sed -e 's/:.*$//'`
17265 # Check whether this is an Automake generated Makefile or not.
17266 # We used to match only the files named `Makefile.in', but
17267 # some people rename them; so instead we look at the file content.
17268 # Grep'ing the first line is not enough: some people post-process
17269 # each Makefile.in and add a new line on top of each file to say so.
17270 # Grep'ing the whole file is not good either: AIX grep has a line
17271 # limit of 2048, but all sed's we know have understand at least 4000.
17272 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17273 dirpart=`$as_dirname -- "$mf" ||
Wink Savillefbaaef92010-05-27 16:25:37 -070017274$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17275 X"$mf" : 'X\(//\)[^/]' \| \
17276 X"$mf" : 'X\(//\)$' \| \
17277 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017278$as_echo X"$mf" |
Wink Savillefbaaef92010-05-27 16:25:37 -070017279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17280 s//\1/
17281 q
17282 }
17283 /^X\(\/\/\)[^/].*/{
17284 s//\1/
17285 q
17286 }
17287 /^X\(\/\/\)$/{
17288 s//\1/
17289 q
17290 }
17291 /^X\(\/\).*/{
17292 s//\1/
17293 q
17294 }
17295 s/.*/./; q'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017296 else
17297 continue
17298 fi
17299 # Extract the definition of DEPDIR, am__include, and am__quote
17300 # from the Makefile without running `make'.
17301 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17302 test -z "$DEPDIR" && continue
17303 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17304 test -z "am__include" && continue
17305 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17306 # When using ansi2knr, U may be empty or an underscore; expand it
17307 U=`sed -n 's/^U = //p' < "$mf"`
17308 # Find all dependency output files, they are included files with
17309 # $(DEPDIR) in their names. We invoke sed twice because it is the
17310 # simplest approach to changing $(DEPDIR) to its actual value in the
17311 # expansion.
17312 for file in `sed -n "
17313 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17314 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17315 # Make sure the directory exists.
17316 test -f "$dirpart/$file" && continue
17317 fdir=`$as_dirname -- "$file" ||
Wink Savillefbaaef92010-05-27 16:25:37 -070017318$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319 X"$file" : 'X\(//\)[^/]' \| \
17320 X"$file" : 'X\(//\)$' \| \
17321 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017322$as_echo X"$file" |
Wink Savillefbaaef92010-05-27 16:25:37 -070017323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17324 s//\1/
17325 q
17326 }
17327 /^X\(\/\/\)[^/].*/{
17328 s//\1/
17329 q
17330 }
17331 /^X\(\/\/\)$/{
17332 s//\1/
17333 q
17334 }
17335 /^X\(\/\).*/{
17336 s//\1/
17337 q
17338 }
17339 s/.*/./; q'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017340 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17341 # echo "creating $dirpart/$file"
17342 echo '# dummy' > "$dirpart/$file"
Wink Savillefbaaef92010-05-27 16:25:37 -070017343 done
Wink Savillefbaaef92010-05-27 16:25:37 -070017344 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017345}
Wink Savillefbaaef92010-05-27 16:25:37 -070017346 ;;
17347 "libtool":C)
17348
17349 # See if we are running on zsh, and set the options which allow our
17350 # commands through without removal of \ escapes.
17351 if test -n "${ZSH_VERSION+set}" ; then
17352 setopt NO_GLOB_SUBST
17353 fi
17354
17355 cfgfile="${ofile}T"
17356 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17357 $RM "$cfgfile"
17358
17359 cat <<_LT_EOF >> "$cfgfile"
17360#! $SHELL
17361
17362# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17363# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17364# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17365# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17366#
17367# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017368# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17369# Foundation, Inc.
Wink Savillefbaaef92010-05-27 16:25:37 -070017370# Written by Gordon Matzigkeit, 1996
17371#
17372# This file is part of GNU Libtool.
17373#
17374# GNU Libtool is free software; you can redistribute it and/or
17375# modify it under the terms of the GNU General Public License as
17376# published by the Free Software Foundation; either version 2 of
17377# the License, or (at your option) any later version.
17378#
17379# As a special exception to the GNU General Public License,
17380# if you distribute this file as part of a program or library that
17381# is built using GNU Libtool, you may include this file under the
17382# same distribution terms that you use for the rest of that program.
17383#
17384# GNU Libtool is distributed in the hope that it will be useful,
17385# but WITHOUT ANY WARRANTY; without even the implied warranty of
17386# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17387# GNU General Public License for more details.
17388#
17389# You should have received a copy of the GNU General Public License
17390# along with GNU Libtool; see the file COPYING. If not, a copy
17391# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17392# obtained by writing to the Free Software Foundation, Inc.,
17393# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17394
17395
17396# The names of the tagged configurations supported by this script.
17397available_tags="CXX "
17398
17399# ### BEGIN LIBTOOL CONFIG
17400
17401# Which release of libtool.m4 was used?
17402macro_version=$macro_version
17403macro_revision=$macro_revision
17404
17405# Whether or not to build shared libraries.
17406build_libtool_libs=$enable_shared
17407
17408# Whether or not to build static libraries.
17409build_old_libs=$enable_static
17410
17411# What type of objects to build.
17412pic_mode=$pic_mode
17413
17414# Whether or not to optimize for fast installation.
17415fast_install=$enable_fast_install
17416
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017417# Shell to use when invoking shell scripts.
17418SHELL=$lt_SHELL
17419
17420# An echo program that protects backslashes.
17421ECHO=$lt_ECHO
17422
17423# The PATH separator for the build system.
17424PATH_SEPARATOR=$lt_PATH_SEPARATOR
17425
Wink Savillefbaaef92010-05-27 16:25:37 -070017426# The host system.
17427host_alias=$host_alias
17428host=$host
17429host_os=$host_os
17430
17431# The build system.
17432build_alias=$build_alias
17433build=$build
17434build_os=$build_os
17435
17436# A sed program that does not truncate output.
17437SED=$lt_SED
17438
17439# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17440Xsed="\$SED -e 1s/^X//"
17441
17442# A grep program that handles long lines.
17443GREP=$lt_GREP
17444
17445# An ERE matcher.
17446EGREP=$lt_EGREP
17447
17448# A literal string matcher.
17449FGREP=$lt_FGREP
17450
17451# A BSD- or MS-compatible name lister.
17452NM=$lt_NM
17453
17454# Whether we need soft or hard links.
17455LN_S=$lt_LN_S
17456
17457# What is the maximum length of a command?
17458max_cmd_len=$max_cmd_len
17459
17460# Object file suffix (normally "o").
17461objext=$ac_objext
17462
17463# Executable file suffix (normally "").
17464exeext=$exeext
17465
17466# whether the shell understands "unset".
17467lt_unset=$lt_unset
17468
17469# turn spaces into newlines.
17470SP2NL=$lt_lt_SP2NL
17471
17472# turn newlines into spaces.
17473NL2SP=$lt_lt_NL2SP
17474
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017475# convert \$build file names to \$host format.
17476to_host_file_cmd=$lt_cv_to_host_file_cmd
17477
17478# convert \$build files to toolchain format.
17479to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17480
17481# An object symbol dumper.
17482OBJDUMP=$lt_OBJDUMP
Wink Savillefbaaef92010-05-27 16:25:37 -070017483
17484# Method to check whether dependent libraries are shared objects.
17485deplibs_check_method=$lt_deplibs_check_method
17486
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017487# Command to use when deplibs_check_method = "file_magic".
Wink Savillefbaaef92010-05-27 16:25:37 -070017488file_magic_cmd=$lt_file_magic_cmd
17489
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017490# How to find potential files when deplibs_check_method = "file_magic".
17491file_magic_glob=$lt_file_magic_glob
17492
17493# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17494want_nocaseglob=$lt_want_nocaseglob
17495
17496# DLL creation program.
17497DLLTOOL=$lt_DLLTOOL
17498
17499# Command to associate shared and link libraries.
17500sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17501
Wink Savillefbaaef92010-05-27 16:25:37 -070017502# The archiver.
17503AR=$lt_AR
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017504
17505# Flags to create an archive.
Wink Savillefbaaef92010-05-27 16:25:37 -070017506AR_FLAGS=$lt_AR_FLAGS
17507
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017508# How to feed a file listing to the archiver.
17509archiver_list_spec=$lt_archiver_list_spec
17510
Wink Savillefbaaef92010-05-27 16:25:37 -070017511# A symbol stripping program.
17512STRIP=$lt_STRIP
17513
17514# Commands used to install an old-style archive.
17515RANLIB=$lt_RANLIB
17516old_postinstall_cmds=$lt_old_postinstall_cmds
17517old_postuninstall_cmds=$lt_old_postuninstall_cmds
17518
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017519# Whether to use a lock for old archive extraction.
17520lock_old_archive_extraction=$lock_old_archive_extraction
17521
Wink Savillefbaaef92010-05-27 16:25:37 -070017522# A C compiler.
17523LTCC=$lt_CC
17524
17525# LTCC compiler flags.
17526LTCFLAGS=$lt_CFLAGS
17527
17528# Take the output of nm and produce a listing of raw symbols and C names.
17529global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17530
17531# Transform the output of nm in a proper C declaration.
17532global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17533
17534# Transform the output of nm in a C name address pair.
17535global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17536
17537# Transform the output of nm in a C name address pair when lib prefix is needed.
17538global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17539
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017540# Specify filename containing input files for \$NM.
17541nm_file_list_spec=$lt_nm_file_list_spec
17542
17543# The root where to search for dependent libraries,and in which our libraries should be installed.
17544lt_sysroot=$lt_sysroot
17545
Wink Savillefbaaef92010-05-27 16:25:37 -070017546# The name of the directory that contains temporary libtool files.
17547objdir=$objdir
17548
Wink Savillefbaaef92010-05-27 16:25:37 -070017549# Used to examine libraries when file_magic_cmd begins with "file".
17550MAGIC_CMD=$MAGIC_CMD
17551
17552# Must we lock files when doing compilation?
17553need_locks=$lt_need_locks
17554
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017555# Manifest tool.
17556MANIFEST_TOOL=$lt_MANIFEST_TOOL
17557
Wink Savillefbaaef92010-05-27 16:25:37 -070017558# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17559DSYMUTIL=$lt_DSYMUTIL
17560
17561# Tool to change global to local symbols on Mac OS X.
17562NMEDIT=$lt_NMEDIT
17563
17564# Tool to manipulate fat objects and archives on Mac OS X.
17565LIPO=$lt_LIPO
17566
17567# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17568OTOOL=$lt_OTOOL
17569
17570# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17571OTOOL64=$lt_OTOOL64
17572
17573# Old archive suffix (normally "a").
17574libext=$libext
17575
17576# Shared library suffix (normally ".so").
17577shrext_cmds=$lt_shrext_cmds
17578
17579# The commands to extract the exported symbol list from a shared archive.
17580extract_expsyms_cmds=$lt_extract_expsyms_cmds
17581
17582# Variables whose values should be saved in libtool wrapper scripts and
17583# restored at link time.
17584variables_saved_for_relink=$lt_variables_saved_for_relink
17585
17586# Do we need the "lib" prefix for modules?
17587need_lib_prefix=$need_lib_prefix
17588
17589# Do we need a version for libraries?
17590need_version=$need_version
17591
17592# Library versioning type.
17593version_type=$version_type
17594
17595# Shared library runtime path variable.
17596runpath_var=$runpath_var
17597
17598# Shared library path variable.
17599shlibpath_var=$shlibpath_var
17600
17601# Is shlibpath searched before the hard-coded library search path?
17602shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17603
17604# Format of library name prefix.
17605libname_spec=$lt_libname_spec
17606
17607# List of archive names. First name is the real one, the rest are links.
17608# The last name is the one that the linker finds with -lNAME
17609library_names_spec=$lt_library_names_spec
17610
17611# The coded name of the library, if different from the real name.
17612soname_spec=$lt_soname_spec
17613
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017614# Permission mode override for installation of shared libraries.
17615install_override_mode=$lt_install_override_mode
17616
Wink Savillefbaaef92010-05-27 16:25:37 -070017617# Command to use after installation of a shared archive.
17618postinstall_cmds=$lt_postinstall_cmds
17619
17620# Command to use after uninstallation of a shared archive.
17621postuninstall_cmds=$lt_postuninstall_cmds
17622
17623# Commands used to finish a libtool library installation in a directory.
17624finish_cmds=$lt_finish_cmds
17625
17626# As "finish_cmds", except a single script fragment to be evaled but
17627# not shown.
17628finish_eval=$lt_finish_eval
17629
17630# Whether we should hardcode library paths into libraries.
17631hardcode_into_libs=$hardcode_into_libs
17632
17633# Compile-time system search path for libraries.
17634sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17635
17636# Run-time system search path for libraries.
17637sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17638
17639# Whether dlopen is supported.
17640dlopen_support=$enable_dlopen
17641
17642# Whether dlopen of programs is supported.
17643dlopen_self=$enable_dlopen_self
17644
17645# Whether dlopen of statically linked programs is supported.
17646dlopen_self_static=$enable_dlopen_self_static
17647
17648# Commands to strip libraries.
17649old_striplib=$lt_old_striplib
17650striplib=$lt_striplib
17651
17652
17653# The linker used to build libraries.
17654LD=$lt_LD
17655
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017656# How to create reloadable object files.
17657reload_flag=$lt_reload_flag
17658reload_cmds=$lt_reload_cmds
17659
Wink Savillefbaaef92010-05-27 16:25:37 -070017660# Commands used to build an old-style archive.
17661old_archive_cmds=$lt_old_archive_cmds
17662
17663# A language specific compiler.
17664CC=$lt_compiler
17665
17666# Is the compiler the GNU compiler?
17667with_gcc=$GCC
17668
17669# Compiler flag to turn off builtin functions.
17670no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17671
Wink Savillefbaaef92010-05-27 16:25:37 -070017672# Additional compiler flags for building library objects.
17673pic_flag=$lt_lt_prog_compiler_pic
17674
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017675# How to pass a linker flag through the compiler.
17676wl=$lt_lt_prog_compiler_wl
17677
Wink Savillefbaaef92010-05-27 16:25:37 -070017678# Compiler flag to prevent dynamic linking.
17679link_static_flag=$lt_lt_prog_compiler_static
17680
17681# Does compiler simultaneously support -c and -o options?
17682compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17683
17684# Whether or not to add -lc for building shared libraries.
17685build_libtool_need_lc=$archive_cmds_need_lc
17686
17687# Whether or not to disallow shared libs when runtime libs are static.
17688allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17689
17690# Compiler flag to allow reflexive dlopens.
17691export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17692
17693# Compiler flag to generate shared objects directly from archives.
17694whole_archive_flag_spec=$lt_whole_archive_flag_spec
17695
17696# Whether the compiler copes with passing no objects directly.
17697compiler_needs_object=$lt_compiler_needs_object
17698
17699# Create an old-style archive from a shared archive.
17700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17701
17702# Create a temporary old-style archive to link instead of a shared archive.
17703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17704
17705# Commands used to build a shared archive.
17706archive_cmds=$lt_archive_cmds
17707archive_expsym_cmds=$lt_archive_expsym_cmds
17708
17709# Commands used to build a loadable module if different from building
17710# a shared archive.
17711module_cmds=$lt_module_cmds
17712module_expsym_cmds=$lt_module_expsym_cmds
17713
17714# Whether we are building with GNU ld or not.
17715with_gnu_ld=$lt_with_gnu_ld
17716
17717# Flag that allows shared libraries with undefined symbols to be built.
17718allow_undefined_flag=$lt_allow_undefined_flag
17719
17720# Flag that enforces no undefined symbols.
17721no_undefined_flag=$lt_no_undefined_flag
17722
17723# Flag to hardcode \$libdir into a binary during linking.
17724# This must work even if \$libdir does not exist
17725hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17726
Wink Savillefbaaef92010-05-27 16:25:37 -070017727# Whether we need a single "-rpath" flag with a separated argument.
17728hardcode_libdir_separator=$lt_hardcode_libdir_separator
17729
17730# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17731# DIR into the resulting binary.
17732hardcode_direct=$hardcode_direct
17733
17734# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17735# DIR into the resulting binary and the resulting library dependency is
17736# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17737# library is relocated.
17738hardcode_direct_absolute=$hardcode_direct_absolute
17739
17740# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17741# into the resulting binary.
17742hardcode_minus_L=$hardcode_minus_L
17743
17744# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17745# into the resulting binary.
17746hardcode_shlibpath_var=$hardcode_shlibpath_var
17747
17748# Set to "yes" if building a shared library automatically hardcodes DIR
17749# into the library and all subsequent libraries and executables linked
17750# against it.
17751hardcode_automatic=$hardcode_automatic
17752
17753# Set to yes if linker adds runtime paths of dependent libraries
17754# to runtime path list.
17755inherit_rpath=$inherit_rpath
17756
17757# Whether libtool must link a program against all its dependency libraries.
17758link_all_deplibs=$link_all_deplibs
17759
Wink Savillefbaaef92010-05-27 16:25:37 -070017760# Set to "yes" if exported symbols are required.
17761always_export_symbols=$always_export_symbols
17762
17763# The commands to list exported symbols.
17764export_symbols_cmds=$lt_export_symbols_cmds
17765
17766# Symbols that should not be listed in the preloaded symbols.
17767exclude_expsyms=$lt_exclude_expsyms
17768
17769# Symbols that must always be exported.
17770include_expsyms=$lt_include_expsyms
17771
17772# Commands necessary for linking programs (against libraries) with templates.
17773prelink_cmds=$lt_prelink_cmds
17774
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017775# Commands necessary for finishing linking programs.
17776postlink_cmds=$lt_postlink_cmds
17777
Wink Savillefbaaef92010-05-27 16:25:37 -070017778# Specify filename containing input files.
17779file_list_spec=$lt_file_list_spec
17780
17781# How to hardcode a shared library path into an executable.
17782hardcode_action=$hardcode_action
17783
17784# The directories searched by this compiler when creating a shared library.
17785compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17786
17787# Dependencies to place before and after the objects being linked to
17788# create a shared library.
17789predep_objects=$lt_predep_objects
17790postdep_objects=$lt_postdep_objects
17791predeps=$lt_predeps
17792postdeps=$lt_postdeps
17793
17794# The library search path used internally by the compiler when linking
17795# a shared library.
17796compiler_lib_search_path=$lt_compiler_lib_search_path
17797
17798# ### END LIBTOOL CONFIG
17799
17800_LT_EOF
17801
17802 case $host_os in
17803 aix3*)
17804 cat <<\_LT_EOF >> "$cfgfile"
17805# AIX sometimes has problems with the GCC collect2 program. For some
17806# reason, if we set the COLLECT_NAMES environment variable, the problems
17807# vanish in a puff of smoke.
17808if test "X${COLLECT_NAMES+set}" != Xset; then
17809 COLLECT_NAMES=
17810 export COLLECT_NAMES
17811fi
17812_LT_EOF
17813 ;;
17814 esac
17815
17816
17817ltmain="$ac_aux_dir/ltmain.sh"
17818
17819
17820 # We use sed instead of cat because bash on DJGPP gets confused if
17821 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17822 # text mode, it properly converts lines to CR/LF. This bash problem
17823 # is reportedly fixed, but why not run on old versions too?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017824 sed '$q' "$ltmain" >> "$cfgfile" \
17825 || (rm -f "$cfgfile"; exit 1)
Wink Savillefbaaef92010-05-27 16:25:37 -070017826
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017827 if test x"$xsi_shell" = xyes; then
17828 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17829func_dirname ()\
17830{\
17831\ case ${1} in\
17832\ */*) func_dirname_result="${1%/*}${2}" ;;\
17833\ * ) func_dirname_result="${3}" ;;\
17834\ esac\
17835} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17836 && mv -f "$cfgfile.tmp" "$cfgfile" \
17837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17838test 0 -eq $? || _lt_function_replace_fail=:
Wink Savillefbaaef92010-05-27 16:25:37 -070017839
17840
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017841 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17842func_basename ()\
17843{\
17844\ func_basename_result="${1##*/}"\
17845} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17846 && mv -f "$cfgfile.tmp" "$cfgfile" \
17847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17848test 0 -eq $? || _lt_function_replace_fail=:
Wink Savillefbaaef92010-05-27 16:25:37 -070017849
17850
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017851 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17852func_dirname_and_basename ()\
17853{\
17854\ case ${1} in\
17855\ */*) func_dirname_result="${1%/*}${2}" ;;\
17856\ * ) func_dirname_result="${3}" ;;\
17857\ esac\
17858\ func_basename_result="${1##*/}"\
17859} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17860 && mv -f "$cfgfile.tmp" "$cfgfile" \
17861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17862test 0 -eq $? || _lt_function_replace_fail=:
Wink Savillefbaaef92010-05-27 16:25:37 -070017863
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017864
17865 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17866func_stripname ()\
17867{\
17868\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17869\ # positional parameters, so assign one to ordinary parameter first.\
17870\ func_stripname_result=${3}\
17871\ func_stripname_result=${func_stripname_result#"${1}"}\
17872\ func_stripname_result=${func_stripname_result%"${2}"}\
17873} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17874 && mv -f "$cfgfile.tmp" "$cfgfile" \
17875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17876test 0 -eq $? || _lt_function_replace_fail=:
17877
17878
17879 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17880func_split_long_opt ()\
17881{\
17882\ func_split_long_opt_name=${1%%=*}\
17883\ func_split_long_opt_arg=${1#*=}\
17884} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17885 && mv -f "$cfgfile.tmp" "$cfgfile" \
17886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17887test 0 -eq $? || _lt_function_replace_fail=:
17888
17889
17890 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17891func_split_short_opt ()\
17892{\
17893\ func_split_short_opt_arg=${1#??}\
17894\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17895} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17896 && mv -f "$cfgfile.tmp" "$cfgfile" \
17897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17898test 0 -eq $? || _lt_function_replace_fail=:
17899
17900
17901 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17902func_lo2o ()\
17903{\
17904\ case ${1} in\
17905\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17906\ *) func_lo2o_result=${1} ;;\
17907\ esac\
17908} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17909 && mv -f "$cfgfile.tmp" "$cfgfile" \
17910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17911test 0 -eq $? || _lt_function_replace_fail=:
17912
17913
17914 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17915func_xform ()\
17916{\
17917 func_xform_result=${1%.*}.lo\
17918} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17919 && mv -f "$cfgfile.tmp" "$cfgfile" \
17920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921test 0 -eq $? || _lt_function_replace_fail=:
17922
17923
17924 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17925func_arith ()\
17926{\
17927 func_arith_result=$(( $* ))\
17928} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17929 && mv -f "$cfgfile.tmp" "$cfgfile" \
17930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17931test 0 -eq $? || _lt_function_replace_fail=:
17932
17933
17934 sed -e '/^func_len ()$/,/^} # func_len /c\
17935func_len ()\
17936{\
17937 func_len_result=${#1}\
17938} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17939 && mv -f "$cfgfile.tmp" "$cfgfile" \
17940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17941test 0 -eq $? || _lt_function_replace_fail=:
17942
17943fi
17944
17945if test x"$lt_shell_append" = xyes; then
17946 sed -e '/^func_append ()$/,/^} # func_append /c\
17947func_append ()\
17948{\
17949 eval "${1}+=\\${2}"\
17950} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17951 && mv -f "$cfgfile.tmp" "$cfgfile" \
17952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17953test 0 -eq $? || _lt_function_replace_fail=:
17954
17955
17956 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17957func_append_quoted ()\
17958{\
17959\ func_quote_for_eval "${2}"\
17960\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17961} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17962 && mv -f "$cfgfile.tmp" "$cfgfile" \
17963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17964test 0 -eq $? || _lt_function_replace_fail=:
17965
17966
17967 # Save a `func_append' function call where possible by direct use of '+='
17968 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17969 && mv -f "$cfgfile.tmp" "$cfgfile" \
17970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17971 test 0 -eq $? || _lt_function_replace_fail=:
17972else
17973 # Save a `func_append' function call even when '+=' is not available
17974 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17975 && mv -f "$cfgfile.tmp" "$cfgfile" \
17976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17977 test 0 -eq $? || _lt_function_replace_fail=:
17978fi
17979
17980if test x"$_lt_function_replace_fail" = x":"; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17982$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17983fi
17984
17985
17986 mv -f "$cfgfile" "$ofile" ||
Wink Savillefbaaef92010-05-27 16:25:37 -070017987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17988 chmod +x "$ofile"
17989
17990
17991 cat <<_LT_EOF >> "$ofile"
17992
17993# ### BEGIN LIBTOOL TAG CONFIG: CXX
17994
17995# The linker used to build libraries.
17996LD=$lt_LD_CXX
17997
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017998# How to create reloadable object files.
17999reload_flag=$lt_reload_flag_CXX
18000reload_cmds=$lt_reload_cmds_CXX
18001
Wink Savillefbaaef92010-05-27 16:25:37 -070018002# Commands used to build an old-style archive.
18003old_archive_cmds=$lt_old_archive_cmds_CXX
18004
18005# A language specific compiler.
18006CC=$lt_compiler_CXX
18007
18008# Is the compiler the GNU compiler?
18009with_gcc=$GCC_CXX
18010
18011# Compiler flag to turn off builtin functions.
18012no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18013
Wink Savillefbaaef92010-05-27 16:25:37 -070018014# Additional compiler flags for building library objects.
18015pic_flag=$lt_lt_prog_compiler_pic_CXX
18016
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018017# How to pass a linker flag through the compiler.
18018wl=$lt_lt_prog_compiler_wl_CXX
18019
Wink Savillefbaaef92010-05-27 16:25:37 -070018020# Compiler flag to prevent dynamic linking.
18021link_static_flag=$lt_lt_prog_compiler_static_CXX
18022
18023# Does compiler simultaneously support -c and -o options?
18024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18025
18026# Whether or not to add -lc for building shared libraries.
18027build_libtool_need_lc=$archive_cmds_need_lc_CXX
18028
18029# Whether or not to disallow shared libs when runtime libs are static.
18030allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18031
18032# Compiler flag to allow reflexive dlopens.
18033export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18034
18035# Compiler flag to generate shared objects directly from archives.
18036whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18037
18038# Whether the compiler copes with passing no objects directly.
18039compiler_needs_object=$lt_compiler_needs_object_CXX
18040
18041# Create an old-style archive from a shared archive.
18042old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18043
18044# Create a temporary old-style archive to link instead of a shared archive.
18045old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18046
18047# Commands used to build a shared archive.
18048archive_cmds=$lt_archive_cmds_CXX
18049archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18050
18051# Commands used to build a loadable module if different from building
18052# a shared archive.
18053module_cmds=$lt_module_cmds_CXX
18054module_expsym_cmds=$lt_module_expsym_cmds_CXX
18055
18056# Whether we are building with GNU ld or not.
18057with_gnu_ld=$lt_with_gnu_ld_CXX
18058
18059# Flag that allows shared libraries with undefined symbols to be built.
18060allow_undefined_flag=$lt_allow_undefined_flag_CXX
18061
18062# Flag that enforces no undefined symbols.
18063no_undefined_flag=$lt_no_undefined_flag_CXX
18064
18065# Flag to hardcode \$libdir into a binary during linking.
18066# This must work even if \$libdir does not exist
18067hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18068
Wink Savillefbaaef92010-05-27 16:25:37 -070018069# Whether we need a single "-rpath" flag with a separated argument.
18070hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18071
18072# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18073# DIR into the resulting binary.
18074hardcode_direct=$hardcode_direct_CXX
18075
18076# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18077# DIR into the resulting binary and the resulting library dependency is
18078# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18079# library is relocated.
18080hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18081
18082# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18083# into the resulting binary.
18084hardcode_minus_L=$hardcode_minus_L_CXX
18085
18086# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18087# into the resulting binary.
18088hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18089
18090# Set to "yes" if building a shared library automatically hardcodes DIR
18091# into the library and all subsequent libraries and executables linked
18092# against it.
18093hardcode_automatic=$hardcode_automatic_CXX
18094
18095# Set to yes if linker adds runtime paths of dependent libraries
18096# to runtime path list.
18097inherit_rpath=$inherit_rpath_CXX
18098
18099# Whether libtool must link a program against all its dependency libraries.
18100link_all_deplibs=$link_all_deplibs_CXX
18101
Wink Savillefbaaef92010-05-27 16:25:37 -070018102# Set to "yes" if exported symbols are required.
18103always_export_symbols=$always_export_symbols_CXX
18104
18105# The commands to list exported symbols.
18106export_symbols_cmds=$lt_export_symbols_cmds_CXX
18107
18108# Symbols that should not be listed in the preloaded symbols.
18109exclude_expsyms=$lt_exclude_expsyms_CXX
18110
18111# Symbols that must always be exported.
18112include_expsyms=$lt_include_expsyms_CXX
18113
18114# Commands necessary for linking programs (against libraries) with templates.
18115prelink_cmds=$lt_prelink_cmds_CXX
18116
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018117# Commands necessary for finishing linking programs.
18118postlink_cmds=$lt_postlink_cmds_CXX
18119
Wink Savillefbaaef92010-05-27 16:25:37 -070018120# Specify filename containing input files.
18121file_list_spec=$lt_file_list_spec_CXX
18122
18123# How to hardcode a shared library path into an executable.
18124hardcode_action=$hardcode_action_CXX
18125
18126# The directories searched by this compiler when creating a shared library.
18127compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18128
18129# Dependencies to place before and after the objects being linked to
18130# create a shared library.
18131predep_objects=$lt_predep_objects_CXX
18132postdep_objects=$lt_postdep_objects_CXX
18133predeps=$lt_predeps_CXX
18134postdeps=$lt_postdeps_CXX
18135
18136# The library search path used internally by the compiler when linking
18137# a shared library.
18138compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18139
18140# ### END LIBTOOL TAG CONFIG: CXX
18141_LT_EOF
18142
18143 ;;
18144
18145 esac
18146done # for ac_tag
18147
18148
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018149as_fn_exit 0
Wink Savillefbaaef92010-05-27 16:25:37 -070018150_ACEOF
Wink Savillefbaaef92010-05-27 16:25:37 -070018151ac_clean_files=$ac_clean_files_save
18152
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018153test $ac_write_fail = 0 ||
18154 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18155
Wink Savillefbaaef92010-05-27 16:25:37 -070018156
18157# configure is writing to config.log, and then calls config.status.
18158# config.status does its own redirection, appending to config.log.
18159# Unfortunately, on DOS this fails, as config.log is still kept open
18160# by configure, so config.status won't be able to write to it; its
18161# output is simply discarded. So we exec the FD to /dev/null,
18162# effectively closing config.log, so it can be properly (re)opened and
18163# appended to by config.status. When coming back to configure, we
18164# need to make the FD available again.
18165if test "$no_create" != yes; then
18166 ac_cs_success=:
18167 ac_config_status_args=
18168 test "$silent" = yes &&
18169 ac_config_status_args="$ac_config_status_args --quiet"
18170 exec 5>/dev/null
18171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18172 exec 5>>config.log
18173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18174 # would make configure fail if this is the last instruction.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018175 $ac_cs_success || as_fn_exit 1
18176fi
18177if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18179$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070018180fi
18181