blob: a506147d81fc6e56b6f5e4b7730d003ce764946e [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Alexandre Lisione41ecd42014-02-27 15:51:10 -05003# Generated by GNU Autoconf 2.69 for ccrtp 2.0.7.
Emeric Vigier2f625822012-08-06 11:09:52 -04004#
5#
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -04007#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Emeric Vigier2f625822012-08-06 11:09:52 -0400160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Emeric Vigier2f625822012-08-06 11:09:52 -0400195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
Emeric Vigier2f625822012-08-06 11:09:52 -0400266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
Emeric Vigier2f625822012-08-06 11:09:52 -0400375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
Emeric Vigier2f625822012-08-06 11:09:52 -0400500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500534 # In both cases, we have to default to `cp -pR'.
Emeric Vigier2f625822012-08-06 11:09:52 -0400535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500536 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -0400537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500540 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -0400541 fi
542else
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500543 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -0400544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
Emeric Vigier2f625822012-08-06 11:09:52 -0400557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
Alexandre Lisione41ecd42014-02-27 15:51:10 -0500588PACKAGE_NAME='ccrtp'
589PACKAGE_TARNAME='ccrtp'
590PACKAGE_VERSION='2.0.7'
591PACKAGE_STRING='ccrtp 2.0.7'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
Emeric Vigier2f625822012-08-06 11:09:52 -0400594
595ac_unique_file="src/ccrtp/rtp.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
Emeric Vigier2f625822012-08-06 11:09:52 -0400636DOXY_FALSE
637DOXY_TRUE
638DOXYGEN
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500639LT_VERSION
Emeric Vigier2f625822012-08-06 11:09:52 -0400640KDOC_DIR
641WARN_FLAGS
642GNULIBS
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500643COMMONCPP_LIBS
644COMMONCPP_CFLAGS
Emeric Vigier2f625822012-08-06 11:09:52 -0400645PKG_CONFIG_LIBDIR
646PKG_CONFIG_PATH
647PKG_CONFIG
648FTPDIR
649MAINT
650MAINTAINER_MODE_FALSE
651MAINTAINER_MODE_TRUE
652LT_CCXX_VERSION
653LT_MINOR
654LT_MAJOR
655LT_SUBVER
656LT_RELEASE
Emeric Vigier2f625822012-08-06 11:09:52 -0400657SRTP_GCRYPT_FALSE
658SRTP_GCRYPT_TRUE
659SRTP_OPENSSL_FALSE
660SRTP_OPENSSL_TRUE
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500661LIBGCRYPT_LIBS
662LIBGCRYPT_CFLAGS
663LIBGCRYPT_CONFIG
664AM_BACKSLASH
665AM_DEFAULT_VERBOSITY
666AM_DEFAULT_V
667AM_V
Emeric Vigier2f625822012-08-06 11:09:52 -0400668am__fastdepCXX_FALSE
669am__fastdepCXX_TRUE
670CXXDEPMODE
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500674am__nodep
Emeric Vigier2f625822012-08-06 11:09:52 -0400675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689install_sh
690MAKEINFO
691AUTOHEADER
692AUTOMAKE
693AUTOCONF
694ACLOCAL
695VERSION
696PACKAGE
697CYGPATH_W
698am__isrc
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702OTOOL64
703OTOOL
704LIPO
705NMEDIT
706DSYMUTIL
707MANIFEST_TOOL
708AWK
709RANLIB
710STRIP
711ac_ct_AR
712AR
Emeric Vigier2f625822012-08-06 11:09:52 -0400713LN_S
714NM
715ac_ct_DUMPBIN
716DUMPBIN
717LD
718FGREP
719EGREP
720GREP
721SED
722LIBTOOL
Alexandre Lisione41ecd42014-02-27 15:51:10 -0500723OBJDUMP
724DLLTOOL
725AS
Emeric Vigier2f625822012-08-06 11:09:52 -0400726CXXCPP
727ac_ct_CXX
728CXXFLAGS
729CXX
730CPP
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738target_os
739target_vendor
740target_cpu
741target
742host_os
743host_vendor
744host_cpu
745host
746build_os
747build_vendor
748build_cpu
749build
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_shared
792enable_static
793with_pic
794enable_fast_install
795with_gnu_ld
796with_sysroot
797enable_libtool_lock
798enable_dependency_tracking
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500799enable_silent_rules
Emeric Vigier2f625822012-08-06 11:09:52 -0400800enable_srtp
801with_libgcrypt_prefix
802enable_maintainer_mode
803enable_debug
804enable_profiling
805with_nana
806'
807 ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816CXX
817CXXFLAGS
818CCC
819CXXCPP
820PKG_CONFIG
821PKG_CONFIG_PATH
822PKG_CONFIG_LIBDIR
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500823COMMONCPP_CFLAGS
824COMMONCPP_LIBS'
Emeric Vigier2f625822012-08-06 11:09:52 -0400825
826
827# Initialize some variables set by options.
828ac_init_help=
829ac_init_version=false
830ac_unrecognized_opts=
831ac_unrecognized_sep=
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
854# (The list follows the same order as the GNU Coding Standards.)
855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
Alexandre Lisione41ecd42014-02-27 15:51:10 -0500865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Emeric Vigier2f625822012-08-06 11:09:52 -0400866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
874
875ac_prev=
876ac_dashdash=
877for ac_option
878do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
884 fi
885
886 case $ac_option in
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
890 esac
891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
922
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
955
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
991
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
996
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1026
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1100
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
1119 sbindir=$ac_optarg ;;
1120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
1130 sharedstatedir=$ac_optarg ;;
1131
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
1135 site=$ac_optarg ;;
1136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140 srcdir=$ac_optarg ;;
1141
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147 sysconfdir=$ac_optarg ;;
1148
1149 -target | --target | --targe | --targ | --tar | --ta | --t)
1150 ac_prev=target_alias ;;
1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152 target_alias=$ac_optarg ;;
1153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
1159
1160 -with-* | --with-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
1175
1176 -without-* | --without-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1209
1210 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information"
1212 ;;
1213
1214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220 esac
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1223
1224 *)
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 ;;
1231
1232 esac
1233done
1234
1235if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error $? "missing argument to $ac_option"
1238fi
1239
1240if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246fi
1247
1248# Check all directory arguments for consistency.
1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1253do
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267done
1268
1269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
1271# FIXME: To remove some day.
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
1276# FIXME: To remove some day.
1277if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
Emeric Vigier2f625822012-08-06 11:09:52 -04001280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1282 fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error $? "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error $? "pwd does not report name of working directory"
1297
1298
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\).*/{
1322 s//\1/
1323 q
1324 }
1325 s/.*/./; q'`
1326 srcdir=$ac_confdir
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 srcdir=..
1329 fi
1330else
1331 ac_srcdir_defaulted=no
1332fi
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340 pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1364 cat <<_ACEOF
Alexandre Lisione41ecd42014-02-27 15:51:10 -05001365\`configure' configures ccrtp 2.0.7 to adapt to many kinds of systems.
Emeric Vigier2f625822012-08-06 11:09:52 -04001366
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE. See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking ...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384
1385Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 [PREFIX]
1390
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
Alexandre Lisione41ecd42014-02-27 15:51:10 -05001413 --docdir=DIR documentation root [DATAROOTDIR/doc/ccrtp]
Emeric Vigier2f625822012-08-06 11:09:52 -04001414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1418_ACEOF
1419
1420 cat <<\_ACEOF
1421
1422Program names:
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426
1427System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 --target=TARGET configure for building compilers for TARGET [HOST]
1431_ACEOF
1432fi
1433
1434if test -n "$ac_init_help"; then
Alexandre Lisione41ecd42014-02-27 15:51:10 -05001435 case $ac_init_help in
1436 short | recursive ) echo "Configuration of ccrtp 2.0.7:";;
1437 esac
Emeric Vigier2f625822012-08-06 11:09:52 -04001438 cat <<\_ACEOF
1439
1440Optional Features:
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001449 --enable-dependency-tracking
1450 do not reject slow dependency extractors
1451 --disable-dependency-tracking
1452 speeds up one-time build
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
Emeric Vigier2f625822012-08-06 11:09:52 -04001455 --enable-srtp enable SRTP support (default enabled)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001456 --enable-maintainer-mode
1457 enable make rules and dependencies not useful (and
1458 sometimes confusing) to the casual installer
Emeric Vigier2f625822012-08-06 11:09:52 -04001459 --enable-debug compile for debugging
1460 --enable-profiling compile for profiling
1461
1462Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001465 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Emeric Vigier2f625822012-08-06 11:09:52 -04001466 both]
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-sysroot=DIR Search for dependent libraries within DIR
1469 (or the compiler's sysroot if not specified).
1470 --with-libgcrypt-prefix=PFX
1471 prefix where LIBGCRYPT is installed (optional)
1472 --with-nana use GNU nana for asserts and logging
1473
1474Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CPP C preprocessor
1483 CXX C++ compiler command
1484 CXXFLAGS C++ compiler flags
1485 CXXCPP C++ preprocessor
1486 PKG_CONFIG path to pkg-config utility
1487 PKG_CONFIG_PATH
1488 directories to add to pkg-config's search path
1489 PKG_CONFIG_LIBDIR
1490 path overriding pkg-config's built-in search path
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001491 COMMONCPP_CFLAGS
1492 C compiler flags for COMMONCPP, overriding pkg-config
1493 COMMONCPP_LIBS
1494 linker flags for COMMONCPP, overriding pkg-config
Emeric Vigier2f625822012-08-06 11:09:52 -04001495
1496Use these variables to override the choices made by `configure' or to help
1497it to find libraries and programs with nonstandard names/locations.
1498
1499Report bugs to the package provider.
1500_ACEOF
1501ac_status=$?
1502fi
1503
1504if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512case "$ac_dir" in
1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*)
1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522esac
1523ac_abs_top_builddir=$ac_pwd
1524ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525# for backward compatibility:
1526ac_top_builddir=$ac_top_build_prefix
1527
1528case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541esac
1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1557fi
1558
1559test -n "$ac_init_help" && exit $ac_status
1560if $ac_init_version; then
1561 cat <<\_ACEOF
Alexandre Lisione41ecd42014-02-27 15:51:10 -05001562ccrtp configure 2.0.7
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001563generated by GNU Autoconf 2.69
Emeric Vigier2f625822012-08-06 11:09:52 -04001564
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001565Copyright (C) 2012 Free Software Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -04001566This configure script is free software; the Free Software Foundation
1567gives unlimited permission to copy, distribute and modify it.
1568_ACEOF
1569 exit
1570fi
1571
1572## ------------------------ ##
1573## Autoconf initialization. ##
1574## ------------------------ ##
1575
1576# ac_fn_c_try_compile LINENO
1577# --------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_compile ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612} # ac_fn_c_try_compile
1613
1614# ac_fn_c_try_cpp LINENO
1615# ----------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_cpp ()
1618{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640else
1641 $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_cxx_try_compile LINENO
1652# ----------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_cxx_try_compile ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext
1658 if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_cxx_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687} # ac_fn_cxx_try_compile
1688
1689# ac_fn_cxx_try_cpp LINENO
1690# ------------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_cxx_try_cpp ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } > conftest.i && {
1711 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724} # ac_fn_cxx_try_cpp
1725
1726# ac_fn_c_try_link LINENO
1727# -----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_link ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001753 test -x conftest$ac_exeext
Emeric Vigier2f625822012-08-06 11:09:52 -04001754 }; then :
1755 ac_retval=0
1756else
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770} # ac_fn_c_try_link
1771
1772# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773# -------------------------------------------------------
1774# Tests whether HEADER exists and can be compiled using the include files in
1775# INCLUDES, setting the cache variable VAR accordingly.
1776ac_fn_c_check_header_compile ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786$4
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"; then :
1790 eval "$3=yes"
1791else
1792 eval "$3=no"
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795fi
1796eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801} # ac_fn_c_check_header_compile
1802
1803# ac_fn_c_try_run LINENO
1804# ----------------------
1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806# that executables *can* be run.
1807ac_fn_c_try_run ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_link"
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_link") 2>&5
1818 ac_status=$?
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821 { { case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_try") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; }; }; then :
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: program exited with status $ac_status" >&5
1834 $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=$ac_status
1838fi
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_run
1844
1845# ac_fn_c_check_func LINENO FUNC VAR
1846# ----------------------------------
1847# Tests whether FUNC exists, setting the cache variable VAR accordingly
1848ac_fn_c_check_func ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860#define $2 innocuous_$2
1861
1862/* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1866
1867#ifdef __STDC__
1868# include <limits.h>
1869#else
1870# include <assert.h>
1871#endif
1872
1873#undef $2
1874
1875/* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1878#ifdef __cplusplus
1879extern "C"
1880#endif
1881char $2 ();
1882/* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885#if defined __stub_$2 || defined __stub___$2
1886choke me
1887#endif
1888
1889int
1890main ()
1891{
1892return $2 ();
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_link "$LINENO"; then :
1898 eval "$3=yes"
1899else
1900 eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_func
1911
1912# ac_fn_cxx_try_link LINENO
1913# -------------------------
1914# Try to link conftest.$ac_ext, and return whether this succeeded.
1915ac_fn_cxx_try_link ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 rm -f conftest.$ac_objext conftest$ac_exeext
1919 if { { ac_try="$ac_link"
1920case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923esac
1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925$as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>conftest.err
1927 ac_status=$?
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1932 fi
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && {
1935 test -z "$ac_cxx_werror_flag" ||
1936 test ! -s conftest.err
1937 } && test -s conftest$ac_exeext && {
1938 test "$cross_compiling" = yes ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001939 test -x conftest$ac_exeext
Emeric Vigier2f625822012-08-06 11:09:52 -04001940 }; then :
1941 ac_retval=0
1942else
1943 $as_echo "$as_me: failed program was:" >&5
1944sed 's/^/| /' conftest.$ac_ext >&5
1945
1946 ac_retval=1
1947fi
1948 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1949 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1950 # interfere with the next link command; also delete a directory that is
1951 # left behind by Apple's compiler. We do this before executing the actions.
1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1955
1956} # ac_fn_cxx_try_link
1957
1958# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1959# -------------------------------------------------------
1960# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1961# the include files in INCLUDES and setting the cache variable VAR
1962# accordingly.
1963ac_fn_c_check_header_mongrel ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if eval \${$3+:} false; then :
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971fi
1972eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975else
1976 # Is the header compilable?
1977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1978$as_echo_n "checking $2 usability... " >&6; }
1979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981$4
1982#include <$2>
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_header_compiler=yes
1986else
1987 ac_header_compiler=no
1988fi
1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1991$as_echo "$ac_header_compiler" >&6; }
1992
1993# Is the header present?
1994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1995$as_echo_n "checking $2 presence... " >&6; }
1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998#include <$2>
1999_ACEOF
2000if ac_fn_c_try_cpp "$LINENO"; then :
2001 ac_header_preproc=yes
2002else
2003 ac_header_preproc=no
2004fi
2005rm -f conftest.err conftest.i conftest.$ac_ext
2006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2007$as_echo "$ac_header_preproc" >&6; }
2008
2009# So? What about this header?
2010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2011 yes:no: )
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2013$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016 ;;
2017 no:yes:* )
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2019$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2021$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2023$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2025$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 ;;
2029esac
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031$as_echo_n "checking for $2... " >&6; }
2032if eval \${$3+:} false; then :
2033 $as_echo_n "(cached) " >&6
2034else
2035 eval "$3=\$ac_header_compiler"
2036fi
2037eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039$as_echo "$ac_res" >&6; }
2040fi
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_header_mongrel
2044cat >config.log <<_ACEOF
2045This file contains any messages produced by compilers while
2046running configure, to aid debugging if configure makes a mistake.
2047
Alexandre Lisione41ecd42014-02-27 15:51:10 -05002048It was created by ccrtp $as_me 2.0.7, which was
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002049generated by GNU Autoconf 2.69. Invocation command line was
Emeric Vigier2f625822012-08-06 11:09:52 -04002050
2051 $ $0 $@
2052
2053_ACEOF
2054exec 5>>config.log
2055{
2056cat <<_ASUNAME
2057## --------- ##
2058## Platform. ##
2059## --------- ##
2060
2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2069
2070/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2071/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2074/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2075/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2076/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2077
2078_ASUNAME
2079
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 $as_echo "PATH: $as_dir"
2086 done
2087IFS=$as_save_IFS
2088
2089} >&5
2090
2091cat >&5 <<_ACEOF
2092
2093
2094## ----------- ##
2095## Core tests. ##
2096## ----------- ##
2097
2098_ACEOF
2099
2100
2101# Keep a trace of the command line.
2102# Strip out --no-create and --no-recursion so they do not pile up.
2103# Strip out --silent because we don't want to record it for future runs.
2104# Also quote any args containing shell meta-characters.
2105# Make two passes to allow for proper duplicate-argument suppression.
2106ac_configure_args=
2107ac_configure_args0=
2108ac_configure_args1=
2109ac_must_keep_next=false
2110for ac_pass in 1 2
2111do
2112 for ac_arg
2113 do
2114 case $ac_arg in
2115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117 | -silent | --silent | --silen | --sile | --sil)
2118 continue ;;
2119 *\'*)
2120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 esac
2122 case $ac_pass in
2123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124 2)
2125 as_fn_append ac_configure_args1 " '$ac_arg'"
2126 if test $ac_must_keep_next = true; then
2127 ac_must_keep_next=false # Got value, back to normal.
2128 else
2129 case $ac_arg in
2130 *=* | --config-cache | -C | -disable-* | --disable-* \
2131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133 | -with-* | --with-* | -without-* | --without-* | --x)
2134 case "$ac_configure_args0 " in
2135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136 esac
2137 ;;
2138 -* ) ac_must_keep_next=true ;;
2139 esac
2140 fi
2141 as_fn_append ac_configure_args " '$ac_arg'"
2142 ;;
2143 esac
2144 done
2145done
2146{ ac_configure_args0=; unset ac_configure_args0;}
2147{ ac_configure_args1=; unset ac_configure_args1;}
2148
2149# When interrupted or exit'd, cleanup temporary files, and complete
2150# config.log. We remove comments because anyway the quotes in there
2151# would cause problems or look ugly.
2152# WARNING: Use '\'' to represent an apostrophe within the trap.
2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154trap 'exit_status=$?
2155 # Save into config.log some information that might help in debugging.
2156 {
2157 echo
2158
2159 $as_echo "## ---------------- ##
2160## Cache variables. ##
2161## ---------------- ##"
2162 echo
2163 # The following way of writing the cache mishandles newlines in values,
2164(
2165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166 eval ac_val=\$$ac_var
2167 case $ac_val in #(
2168 *${as_nl}*)
2169 case $ac_var in #(
2170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172 esac
2173 case $ac_var in #(
2174 _ | IFS | as_nl) ;; #(
2175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176 *) { eval $ac_var=; unset $ac_var;} ;;
2177 esac ;;
2178 esac
2179 done
2180 (set) 2>&1 |
2181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182 *${as_nl}ac_space=\ *)
2183 sed -n \
2184 "s/'\''/'\''\\\\'\'''\''/g;
2185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186 ;; #(
2187 *)
2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189 ;;
2190 esac |
2191 sort
2192)
2193 echo
2194
2195 $as_echo "## ----------------- ##
2196## Output variables. ##
2197## ----------------- ##"
2198 echo
2199 for ac_var in $ac_subst_vars
2200 do
2201 eval ac_val=\$$ac_var
2202 case $ac_val in
2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 esac
2205 $as_echo "$ac_var='\''$ac_val'\''"
2206 done | sort
2207 echo
2208
2209 if test -n "$ac_subst_files"; then
2210 $as_echo "## ------------------- ##
2211## File substitutions. ##
2212## ------------------- ##"
2213 echo
2214 for ac_var in $ac_subst_files
2215 do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 esac
2220 $as_echo "$ac_var='\''$ac_val'\''"
2221 done | sort
2222 echo
2223 fi
2224
2225 if test -s confdefs.h; then
2226 $as_echo "## ----------- ##
2227## confdefs.h. ##
2228## ----------- ##"
2229 echo
2230 cat confdefs.h
2231 echo
2232 fi
2233 test "$ac_signal" != 0 &&
2234 $as_echo "$as_me: caught signal $ac_signal"
2235 $as_echo "$as_me: exit $exit_status"
2236 } >&5
2237 rm -f core *.core core.conftest.* &&
2238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239 exit $exit_status
2240' 0
2241for ac_signal in 1 2 13 15; do
2242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243done
2244ac_signal=0
2245
2246# confdefs.h avoids OS command line length limits that DEFS can exceed.
2247rm -f -r conftest* confdefs.h
2248
2249$as_echo "/* confdefs.h */" > confdefs.h
2250
2251# Predefined preprocessor variables.
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_NAME "$PACKAGE_NAME"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259_ACEOF
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_VERSION "$PACKAGE_VERSION"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_STRING "$PACKAGE_STRING"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271_ACEOF
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_URL "$PACKAGE_URL"
2275_ACEOF
2276
2277
2278# Let the site file select an alternate cache file if it wants to.
2279# Prefer an explicitly selected file to automatically selected ones.
2280ac_site_file1=NONE
2281ac_site_file2=NONE
2282if test -n "$CONFIG_SITE"; then
2283 # We do not want a PATH search for config.site.
2284 case $CONFIG_SITE in #((
2285 -*) ac_site_file1=./$CONFIG_SITE;;
2286 */*) ac_site_file1=$CONFIG_SITE;;
2287 *) ac_site_file1=./$CONFIG_SITE;;
2288 esac
2289elif test "x$prefix" != xNONE; then
2290 ac_site_file1=$prefix/share/config.site
2291 ac_site_file2=$prefix/etc/config.site
2292else
2293 ac_site_file1=$ac_default_prefix/share/config.site
2294 ac_site_file2=$ac_default_prefix/etc/config.site
2295fi
2296for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297do
2298 test "x$ac_site_file" = xNONE && continue
2299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302 sed 's/^/| /' "$ac_site_file" >&5
2303 . "$ac_site_file" \
2304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306as_fn_error $? "failed to load site script $ac_site_file
2307See \`config.log' for more details" "$LINENO" 5; }
2308 fi
2309done
2310
2311if test -r "$cache_file"; then
2312 # Some versions of bash will fail to source /dev/null (special files
2313 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316$as_echo "$as_me: loading cache $cache_file" >&6;}
2317 case $cache_file in
2318 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2319 *) . "./$cache_file";;
2320 esac
2321 fi
2322else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324$as_echo "$as_me: creating cache $cache_file" >&6;}
2325 >$cache_file
2326fi
2327
2328# Check that the precious variables saved in the cache have kept the same
2329# value.
2330ac_cache_corrupted=false
2331for ac_var in $ac_precious_vars; do
2332 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333 eval ac_new_set=\$ac_env_${ac_var}_set
2334 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335 eval ac_new_val=\$ac_env_${ac_var}_value
2336 case $ac_old_set,$ac_new_set in
2337 set,)
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2341 ,set)
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2345 ,);;
2346 *)
2347 if test "x$ac_old_val" != "x$ac_new_val"; then
2348 # differences in whitespace do not lead to failure.
2349 ac_old_val_w=`echo x $ac_old_val`
2350 ac_new_val_w=`echo x $ac_new_val`
2351 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354 ac_cache_corrupted=:
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358 eval $ac_var=\$ac_old_val
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2361$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2363$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2364 fi;;
2365 esac
2366 # Pass precious variables to config.status.
2367 if test "$ac_new_set" = set; then
2368 case $ac_new_val in
2369 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 *) ac_arg=$ac_var=$ac_new_val ;;
2371 esac
2372 case " $ac_configure_args " in
2373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2374 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375 esac
2376 fi
2377done
2378if $ac_cache_corrupted; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384fi
2385## -------------------- ##
2386## Main body of script. ##
2387## -------------------- ##
2388
2389ac_ext=c
2390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396
Emeric Vigier2f625822012-08-06 11:09:52 -04002397
Alexandre Lisione41ecd42014-02-27 15:51:10 -05002398LT_VERSION="2:4:0"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002399REQUIRES="5.0.0"
Alexandre Lisione41ecd42014-02-27 15:51:10 -05002400
Emeric Vigier2f625822012-08-06 11:09:52 -04002401ac_aux_dir=
2402for ac_dir in autoconf "$srcdir"/autoconf; do
2403 if test -f "$ac_dir/install-sh"; then
2404 ac_aux_dir=$ac_dir
2405 ac_install_sh="$ac_aux_dir/install-sh -c"
2406 break
2407 elif test -f "$ac_dir/install.sh"; then
2408 ac_aux_dir=$ac_dir
2409 ac_install_sh="$ac_aux_dir/install.sh -c"
2410 break
2411 elif test -f "$ac_dir/shtool"; then
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/shtool install -c"
2414 break
2415 fi
2416done
2417if test -z "$ac_aux_dir"; then
2418 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2419fi
2420
2421# These three variables are undocumented and unsupported,
2422# and are intended to be withdrawn in a future Autoconf release.
2423# They can cause serious problems if a builder's source tree is in a directory
2424# whose full name contains unusual characters.
2425ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2426ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2427ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2428
2429
2430# Make sure we can run config.sub.
2431$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2432 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2433
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2435$as_echo_n "checking build system type... " >&6; }
2436if ${ac_cv_build+:} false; then :
2437 $as_echo_n "(cached) " >&6
2438else
2439 ac_build_alias=$build_alias
2440test "x$ac_build_alias" = x &&
2441 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2442test "x$ac_build_alias" = x &&
2443 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2444ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2446
2447fi
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2449$as_echo "$ac_cv_build" >&6; }
2450case $ac_cv_build in
2451*-*-*) ;;
2452*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2453esac
2454build=$ac_cv_build
2455ac_save_IFS=$IFS; IFS='-'
2456set x $ac_cv_build
2457shift
2458build_cpu=$1
2459build_vendor=$2
2460shift; shift
2461# Remember, the first character of IFS is used to create $*,
2462# except with old shells:
2463build_os=$*
2464IFS=$ac_save_IFS
2465case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2466
2467
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2469$as_echo_n "checking host system type... " >&6; }
2470if ${ac_cv_host+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472else
2473 if test "x$host_alias" = x; then
2474 ac_cv_host=$ac_cv_build
2475else
2476 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2478fi
2479
2480fi
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2482$as_echo "$ac_cv_host" >&6; }
2483case $ac_cv_host in
2484*-*-*) ;;
2485*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2486esac
2487host=$ac_cv_host
2488ac_save_IFS=$IFS; IFS='-'
2489set x $ac_cv_host
2490shift
2491host_cpu=$1
2492host_vendor=$2
2493shift; shift
2494# Remember, the first character of IFS is used to create $*,
2495# except with old shells:
2496host_os=$*
2497IFS=$ac_save_IFS
2498case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2499
2500
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2502$as_echo_n "checking target system type... " >&6; }
2503if ${ac_cv_target+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505else
2506 if test "x$target_alias" = x; then
2507 ac_cv_target=$ac_cv_host
2508else
2509 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2511fi
2512
2513fi
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2515$as_echo "$ac_cv_target" >&6; }
2516case $ac_cv_target in
2517*-*-*) ;;
2518*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2519esac
2520target=$ac_cv_target
2521ac_save_IFS=$IFS; IFS='-'
2522set x $ac_cv_target
2523shift
2524target_cpu=$1
2525target_vendor=$2
2526shift; shift
2527# Remember, the first character of IFS is used to create $*,
2528# except with old shells:
2529target_os=$*
2530IFS=$ac_save_IFS
2531case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2532
2533
2534# The aliases save the names the user supplied, while $host etc.
2535# will get canonicalized.
2536test -n "$target_alias" &&
2537 test "$program_prefix$program_suffix$program_transform_name" = \
2538 NONENONEs,x,x, &&
2539 program_prefix=${target_alias}-
2540
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548set dummy ${ac_tool_prefix}gcc; ac_word=$2
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if ${ac_cv_prog_CC+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568done
2569 done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2577$as_echo "$CC" >&6; }
2578else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580$as_echo "no" >&6; }
2581fi
2582
2583
2584fi
2585if test -z "$ac_cv_prog_CC"; then
2586 ac_ct_CC=$CC
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588set dummy gcc; ac_word=$2
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if ${ac_cv_prog_ac_ct_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002604 ac_cv_prog_ac_ct_CC="gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608done
2609 done
2610IFS=$as_save_IFS
2611
2612fi
2613fi
2614ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615if test -n "$ac_ct_CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2617$as_echo "$ac_ct_CC" >&6; }
2618else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621fi
2622
2623 if test "x$ac_ct_CC" = x; then
2624 CC=""
2625 else
2626 case $cross_compiling:$ac_tool_warned in
2627yes:)
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630ac_tool_warned=yes ;;
2631esac
2632 CC=$ac_ct_CC
2633 fi
2634else
2635 CC="$ac_cv_prog_CC"
2636fi
2637
2638if test -z "$CC"; then
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2641set dummy ${ac_tool_prefix}cc; ac_word=$2
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if ${ac_cv_prog_CC+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002657 ac_cv_prog_CC="${ac_tool_prefix}cc"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661done
2662 done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2670$as_echo "$CC" >&6; }
2671else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676
2677 fi
2678fi
2679if test -z "$CC"; then
2680 # Extract the first word of "cc", so it can be a program name with args.
2681set dummy cc; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_CC+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690 ac_prog_rejected=no
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699 ac_prog_rejected=yes
2700 continue
2701 fi
2702 ac_cv_prog_CC="cc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706done
2707 done
2708IFS=$as_save_IFS
2709
2710if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2713 shift
2714 if test $# != 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2718 shift
2719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720 fi
2721fi
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727$as_echo "$CC" >&6; }
2728else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734fi
2735if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 for ac_prog in cl.exe
2738 do
2739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if ${ac_cv_prog_CC+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761 done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769$as_echo "$CC" >&6; }
2770else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775
2776 test -n "$CC" && break
2777 done
2778fi
2779if test -z "$CC"; then
2780 ac_ct_CC=$CC
2781 for ac_prog in cl.exe
2782do
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784set dummy $ac_prog; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if ${ac_cv_prog_ac_ct_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002800 ac_cv_prog_ac_ct_CC="$ac_prog"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805 done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811if test -n "$ac_ct_CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813$as_echo "$ac_ct_CC" >&6; }
2814else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820 test -n "$ac_ct_CC" && break
2821done
2822
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827yes:)
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830ac_tool_warned=yes ;;
2831esac
2832 CC=$ac_ct_CC
2833 fi
2834fi
2835
2836fi
2837
2838
2839test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841as_fn_error $? "no acceptable C compiler found in \$PATH
2842See \`config.log' for more details" "$LINENO" 5; }
2843
2844# Provide some information about the compiler.
2845$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2846set X $ac_compile
2847ac_compiler=$2
2848for ac_option in --version -v -V -qversion; do
2849 { { ac_try="$ac_compiler $ac_option >&5"
2850case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
2854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855$as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2857 ac_status=$?
2858 if test -s conftest.err; then
2859 sed '10a\
2860... rest of stderr output deleted ...
2861 10q' conftest.err >conftest.er1
2862 cat conftest.er1 >&5
2863 fi
2864 rm -f conftest.er1 conftest.err
2865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866 test $ac_status = 0; }
2867done
2868
2869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870/* end confdefs.h. */
2871
2872int
2873main ()
2874{
2875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880ac_clean_files_save=$ac_clean_files
2881ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2882# Try to create an executable without -o first, disregard a.out.
2883# It will help us diagnose broken compilers, and finding out an intuition
2884# of exeext.
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2886$as_echo_n "checking whether the C compiler works... " >&6; }
2887ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2888
2889# The possible output files:
2890ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2891
2892ac_rmfiles=
2893for ac_file in $ac_files
2894do
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898 esac
2899done
2900rm -f $ac_rmfiles
2901
2902if { { ac_try="$ac_link_default"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908$as_echo "$ac_try_echo"; } >&5
2909 (eval "$ac_link_default") 2>&5
2910 ac_status=$?
2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912 test $ac_status = 0; }; then :
2913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2914# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2915# in a Makefile. We should not override ac_cv_exeext if it was cached,
2916# so that the user can short-circuit this test for compilers unknown to
2917# Autoconf.
2918for ac_file in $ac_files ''
2919do
2920 test -f "$ac_file" || continue
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2923 ;;
2924 [ab].out )
2925 # We found the default executable, but exeext='' is most
2926 # certainly right.
2927 break;;
2928 *.* )
2929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2930 then :; else
2931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 fi
2933 # We set ac_cv_exeext here because the later test for it is not
2934 # safe: cross compilers may not add the suffix if given an `-o'
2935 # argument, so we may need to know it at that point already.
2936 # Even if this section looks crufty: it has the advantage of
2937 # actually working.
2938 break;;
2939 * )
2940 break;;
2941 esac
2942done
2943test "$ac_cv_exeext" = no && ac_cv_exeext=
2944
2945else
2946 ac_file=''
2947fi
2948if test -z "$ac_file"; then :
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950$as_echo "no" >&6; }
2951$as_echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956as_fn_error 77 "C compiler cannot create executables
2957See \`config.log' for more details" "$LINENO" 5; }
2958else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960$as_echo "yes" >&6; }
2961fi
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2963$as_echo_n "checking for C compiler default output file name... " >&6; }
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2965$as_echo "$ac_file" >&6; }
2966ac_exeext=$ac_cv_exeext
2967
2968rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2969ac_clean_files=$ac_clean_files_save
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2971$as_echo_n "checking for suffix of executables... " >&6; }
2972if { { ac_try="$ac_link"
2973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
2977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978$as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_link") 2>&5
2980 ac_status=$?
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }; then :
2983 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2984# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2985# work properly (i.e., refer to `conftest.exe'), while it won't with
2986# `rm'.
2987for ac_file in conftest.exe conftest conftest.*; do
2988 test -f "$ac_file" || continue
2989 case $ac_file in
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 break;;
2993 * ) break;;
2994 esac
2995done
2996else
2997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3000See \`config.log' for more details" "$LINENO" 5; }
3001fi
3002rm -f conftest conftest$ac_cv_exeext
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3004$as_echo "$ac_cv_exeext" >&6; }
3005
3006rm -f conftest.$ac_ext
3007EXEEXT=$ac_cv_exeext
3008ac_exeext=$EXEEXT
3009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h. */
3011#include <stdio.h>
3012int
3013main ()
3014{
3015FILE *f = fopen ("conftest.out", "w");
3016 return ferror (f) || fclose (f) != 0;
3017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022ac_clean_files="$ac_clean_files conftest.out"
3023# Check that the compiler produces executables we can run. If not, either
3024# the compiler is broken, or we cross compile.
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3026$as_echo_n "checking whether we are cross compiling... " >&6; }
3027if test "$cross_compiling" != yes; then
3028 { { ac_try="$ac_link"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034$as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }
3039 if { ac_try='./conftest$ac_cv_exeext'
3040 { { case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_try") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; }; then
3050 cross_compiling=no
3051 else
3052 if test "$cross_compiling" = maybe; then
3053 cross_compiling=yes
3054 else
3055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057as_fn_error $? "cannot run C compiled programs.
3058If you meant to cross compile, use \`--host'.
3059See \`config.log' for more details" "$LINENO" 5; }
3060 fi
3061 fi
3062fi
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3064$as_echo "$cross_compiling" >&6; }
3065
3066rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3067ac_clean_files=$ac_clean_files_save
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3069$as_echo_n "checking for suffix of object files... " >&6; }
3070if ${ac_cv_objext+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072else
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074/* end confdefs.h. */
3075
3076int
3077main ()
3078{
3079
3080 ;
3081 return 0;
3082}
3083_ACEOF
3084rm -f conftest.o conftest.obj
3085if { { ac_try="$ac_compile"
3086case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091$as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_compile") 2>&5
3093 ac_status=$?
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }; then :
3096 for ac_file in conftest.o conftest.obj conftest.*; do
3097 test -f "$ac_file" || continue;
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3101 break;;
3102 esac
3103done
3104else
3105 $as_echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110as_fn_error $? "cannot compute suffix of object files: cannot compile
3111See \`config.log' for more details" "$LINENO" 5; }
3112fi
3113rm -f conftest.$ac_cv_objext conftest.$ac_ext
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3116$as_echo "$ac_cv_objext" >&6; }
3117OBJEXT=$ac_cv_objext
3118ac_objext=$OBJEXT
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3120$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3121if ${ac_cv_c_compiler_gnu+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123else
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130#ifndef __GNUC__
3131 choke me
3132#endif
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138if ac_fn_c_try_compile "$LINENO"; then :
3139 ac_compiler_gnu=yes
3140else
3141 ac_compiler_gnu=no
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146fi
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3148$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3149if test $ac_compiler_gnu = yes; then
3150 GCC=yes
3151else
3152 GCC=
3153fi
3154ac_test_CFLAGS=${CFLAGS+set}
3155ac_save_CFLAGS=$CFLAGS
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3157$as_echo_n "checking whether $CC accepts -g... " >&6; }
3158if ${ac_cv_prog_cc_g+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160else
3161 ac_save_c_werror_flag=$ac_c_werror_flag
3162 ac_c_werror_flag=yes
3163 ac_cv_prog_cc_g=no
3164 CFLAGS="-g"
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176if ac_fn_c_try_compile "$LINENO"; then :
3177 ac_cv_prog_cc_g=yes
3178else
3179 CFLAGS=""
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191if ac_fn_c_try_compile "$LINENO"; then :
3192
3193else
3194 ac_c_werror_flag=$ac_save_c_werror_flag
3195 CFLAGS="-g"
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h. */
3198
3199int
3200main ()
3201{
3202
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207if ac_fn_c_try_compile "$LINENO"; then :
3208 ac_cv_prog_cc_g=yes
3209fi
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211fi
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3216fi
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3218$as_echo "$ac_cv_prog_cc_g" >&6; }
3219if test "$ac_test_CFLAGS" = set; then
3220 CFLAGS=$ac_save_CFLAGS
3221elif test $ac_cv_prog_cc_g = yes; then
3222 if test "$GCC" = yes; then
3223 CFLAGS="-g -O2"
3224 else
3225 CFLAGS="-g"
3226 fi
3227else
3228 if test "$GCC" = yes; then
3229 CFLAGS="-O2"
3230 else
3231 CFLAGS=
3232 fi
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3235$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3236if ${ac_cv_prog_cc_c89+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238else
3239 ac_cv_prog_cc_c89=no
3240ac_save_CC=$CC
3241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243#include <stdarg.h>
3244#include <stdio.h>
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003245struct stat;
Emeric Vigier2f625822012-08-06 11:09:52 -04003246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3247struct buf { int x; };
3248FILE * (*rcsopen) (struct buf *, struct stat *, int);
3249static char *e (p, i)
3250 char **p;
3251 int i;
3252{
3253 return p[i];
3254}
3255static char *f (char * (*g) (char **, int), char **p, ...)
3256{
3257 char *s;
3258 va_list v;
3259 va_start (v,p);
3260 s = g (p, va_arg (v,int));
3261 va_end (v);
3262 return s;
3263}
3264
3265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3266 function prototypes and stuff, but not '\xHH' hex character constants.
3267 These don't provoke an error unfortunately, instead are silently treated
3268 as 'x'. The following induces an error, until -std is added to get
3269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3270 array size at least. It's necessary to write '\x00'==0 to get something
3271 that's true only with -std. */
3272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273
3274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3275 inside strings and character constants. */
3276#define FOO(x) 'x'
3277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278
3279int test (int i, double x);
3280struct s1 {int (*f) (int a);};
3281struct s2 {int (*f) (double a);};
3282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283int argc;
3284char **argv;
3285int
3286main ()
3287{
3288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3289 ;
3290 return 0;
3291}
3292_ACEOF
3293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295do
3296 CC="$ac_save_CC $ac_arg"
3297 if ac_fn_c_try_compile "$LINENO"; then :
3298 ac_cv_prog_cc_c89=$ac_arg
3299fi
3300rm -f core conftest.err conftest.$ac_objext
3301 test "x$ac_cv_prog_cc_c89" != "xno" && break
3302done
3303rm -f conftest.$ac_ext
3304CC=$ac_save_CC
3305
3306fi
3307# AC_CACHE_VAL
3308case "x$ac_cv_prog_cc_c89" in
3309 x)
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3311$as_echo "none needed" >&6; } ;;
3312 xno)
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3314$as_echo "unsupported" >&6; } ;;
3315 *)
3316 CC="$CC $ac_cv_prog_cc_c89"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3318$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3319esac
3320if test "x$ac_cv_prog_cc_c89" != xno; then :
3321
3322fi
3323
3324ac_ext=c
3325ac_cpp='$CPP $CPPFLAGS'
3326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3336$as_echo_n "checking how to run the C preprocessor... " >&6; }
3337# On Suns, sometimes $CPP names a directory.
3338if test -n "$CPP" && test -d "$CPP"; then
3339 CPP=
3340fi
3341if test -z "$CPP"; then
3342 if ${ac_cv_prog_CPP+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344else
3345 # Double quotes because CPP needs to be expanded
3346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3347 do
3348 ac_preproc_ok=false
3349for ac_c_preproc_warn_flag in '' yes
3350do
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
3359#ifdef __STDC__
3360# include <limits.h>
3361#else
3362# include <assert.h>
3363#endif
3364 Syntax error
3365_ACEOF
3366if ac_fn_c_try_cpp "$LINENO"; then :
3367
3368else
3369 # Broken: fails on valid input.
3370continue
3371fi
3372rm -f conftest.err conftest.i conftest.$ac_ext
3373
3374 # OK, works on sane cases. Now check whether nonexistent headers
3375 # can be detected and how.
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h. */
3378#include <ac_nonexistent.h>
3379_ACEOF
3380if ac_fn_c_try_cpp "$LINENO"; then :
3381 # Broken: success on invalid input.
3382continue
3383else
3384 # Passes both tests.
3385ac_preproc_ok=:
3386break
3387fi
3388rm -f conftest.err conftest.i conftest.$ac_ext
3389
3390done
3391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392rm -f conftest.i conftest.err conftest.$ac_ext
3393if $ac_preproc_ok; then :
3394 break
3395fi
3396
3397 done
3398 ac_cv_prog_CPP=$CPP
3399
3400fi
3401 CPP=$ac_cv_prog_CPP
3402else
3403 ac_cv_prog_CPP=$CPP
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3406$as_echo "$CPP" >&6; }
3407ac_preproc_ok=false
3408for ac_c_preproc_warn_flag in '' yes
3409do
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
3412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
3414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h. */
3418#ifdef __STDC__
3419# include <limits.h>
3420#else
3421# include <assert.h>
3422#endif
3423 Syntax error
3424_ACEOF
3425if ac_fn_c_try_cpp "$LINENO"; then :
3426
3427else
3428 # Broken: fails on valid input.
3429continue
3430fi
3431rm -f conftest.err conftest.i conftest.$ac_ext
3432
3433 # OK, works on sane cases. Now check whether nonexistent headers
3434 # can be detected and how.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436/* end confdefs.h. */
3437#include <ac_nonexistent.h>
3438_ACEOF
3439if ac_fn_c_try_cpp "$LINENO"; then :
3440 # Broken: success on invalid input.
3441continue
3442else
3443 # Passes both tests.
3444ac_preproc_ok=:
3445break
3446fi
3447rm -f conftest.err conftest.i conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.i conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then :
3453
3454else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details" "$LINENO" 5; }
3459fi
3460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467ac_ext=cpp
3468ac_cpp='$CXXCPP $CPPFLAGS'
3469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3472if test -z "$CXX"; then
3473 if test -n "$CCC"; then
3474 CXX=$CCC
3475 else
3476 if test -n "$ac_tool_prefix"; then
3477 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3478 do
3479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3480set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482$as_echo_n "checking for $ac_word... " >&6; }
3483if ${ac_cv_prog_CXX+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485else
3486 if test -n "$CXX"; then
3487 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003496 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500done
3501 done
3502IFS=$as_save_IFS
3503
3504fi
3505fi
3506CXX=$ac_cv_prog_CXX
3507if test -n "$CXX"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3509$as_echo "$CXX" >&6; }
3510else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
3513fi
3514
3515
3516 test -n "$CXX" && break
3517 done
3518fi
3519if test -z "$CXX"; then
3520 ac_ct_CXX=$CXX
3521 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3522do
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524set dummy $ac_prog; ac_word=$2
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
3527if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529else
3530 if test -n "$ac_ct_CXX"; then
3531 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003540 ac_cv_prog_ac_ct_CXX="$ac_prog"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544done
3545 done
3546IFS=$as_save_IFS
3547
3548fi
3549fi
3550ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3551if test -n "$ac_ct_CXX"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3553$as_echo "$ac_ct_CXX" >&6; }
3554else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
3557fi
3558
3559
3560 test -n "$ac_ct_CXX" && break
3561done
3562
3563 if test "x$ac_ct_CXX" = x; then
3564 CXX="g++"
3565 else
3566 case $cross_compiling:$ac_tool_warned in
3567yes:)
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3570ac_tool_warned=yes ;;
3571esac
3572 CXX=$ac_ct_CXX
3573 fi
3574fi
3575
3576 fi
3577fi
3578# Provide some information about the compiler.
3579$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3580set X $ac_compile
3581ac_compiler=$2
3582for ac_option in --version -v -V -qversion; do
3583 { { ac_try="$ac_compiler $ac_option >&5"
3584case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587esac
3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589$as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3591 ac_status=$?
3592 if test -s conftest.err; then
3593 sed '10a\
3594... rest of stderr output deleted ...
3595 10q' conftest.err >conftest.er1
3596 cat conftest.er1 >&5
3597 fi
3598 rm -f conftest.er1 conftest.err
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }
3601done
3602
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3604$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3605if ${ac_cv_cxx_compiler_gnu+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607else
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609/* end confdefs.h. */
3610
3611int
3612main ()
3613{
3614#ifndef __GNUC__
3615 choke me
3616#endif
3617
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622if ac_fn_cxx_try_compile "$LINENO"; then :
3623 ac_compiler_gnu=yes
3624else
3625 ac_compiler_gnu=no
3626fi
3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3629
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3632$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3633if test $ac_compiler_gnu = yes; then
3634 GXX=yes
3635else
3636 GXX=
3637fi
3638ac_test_CXXFLAGS=${CXXFLAGS+set}
3639ac_save_CXXFLAGS=$CXXFLAGS
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3641$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3642if ${ac_cv_prog_cxx_g+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644else
3645 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3646 ac_cxx_werror_flag=yes
3647 ac_cv_prog_cxx_g=no
3648 CXXFLAGS="-g"
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h. */
3651
3652int
3653main ()
3654{
3655
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660if ac_fn_cxx_try_compile "$LINENO"; then :
3661 ac_cv_prog_cxx_g=yes
3662else
3663 CXXFLAGS=""
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h. */
3666
3667int
3668main ()
3669{
3670
3671 ;
3672 return 0;
3673}
3674_ACEOF
3675if ac_fn_cxx_try_compile "$LINENO"; then :
3676
3677else
3678 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3679 CXXFLAGS="-g"
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h. */
3682
3683int
3684main ()
3685{
3686
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691if ac_fn_cxx_try_compile "$LINENO"; then :
3692 ac_cv_prog_cxx_g=yes
3693fi
3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697fi
3698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3702$as_echo "$ac_cv_prog_cxx_g" >&6; }
3703if test "$ac_test_CXXFLAGS" = set; then
3704 CXXFLAGS=$ac_save_CXXFLAGS
3705elif test $ac_cv_prog_cxx_g = yes; then
3706 if test "$GXX" = yes; then
3707 CXXFLAGS="-g -O2"
3708 else
3709 CXXFLAGS="-g"
3710 fi
3711else
3712 if test "$GXX" = yes; then
3713 CXXFLAGS="-O2"
3714 else
3715 CXXFLAGS=
3716 fi
3717fi
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724ac_ext=cpp
3725ac_cpp='$CXXCPP $CPPFLAGS'
3726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3730$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3731if test -z "$CXXCPP"; then
3732 if ${ac_cv_prog_CXXCPP+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734else
3735 # Double quotes because CXXCPP needs to be expanded
3736 for CXXCPP in "$CXX -E" "/lib/cpp"
3737 do
3738 ac_preproc_ok=false
3739for ac_cxx_preproc_warn_flag in '' yes
3740do
3741 # Use a header file that comes with gcc, so configuring glibc
3742 # with a fresh cross-compiler works.
3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 # <limits.h> exists even on freestanding compilers.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */
3749#ifdef __STDC__
3750# include <limits.h>
3751#else
3752# include <assert.h>
3753#endif
3754 Syntax error
3755_ACEOF
3756if ac_fn_cxx_try_cpp "$LINENO"; then :
3757
3758else
3759 # Broken: fails on valid input.
3760continue
3761fi
3762rm -f conftest.err conftest.i conftest.$ac_ext
3763
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h. */
3768#include <ac_nonexistent.h>
3769_ACEOF
3770if ac_fn_cxx_try_cpp "$LINENO"; then :
3771 # Broken: success on invalid input.
3772continue
3773else
3774 # Passes both tests.
3775ac_preproc_ok=:
3776break
3777fi
3778rm -f conftest.err conftest.i conftest.$ac_ext
3779
3780done
3781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782rm -f conftest.i conftest.err conftest.$ac_ext
3783if $ac_preproc_ok; then :
3784 break
3785fi
3786
3787 done
3788 ac_cv_prog_CXXCPP=$CXXCPP
3789
3790fi
3791 CXXCPP=$ac_cv_prog_CXXCPP
3792else
3793 ac_cv_prog_CXXCPP=$CXXCPP
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3796$as_echo "$CXXCPP" >&6; }
3797ac_preproc_ok=false
3798for ac_cxx_preproc_warn_flag in '' yes
3799do
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808#ifdef __STDC__
3809# include <limits.h>
3810#else
3811# include <assert.h>
3812#endif
3813 Syntax error
3814_ACEOF
3815if ac_fn_cxx_try_cpp "$LINENO"; then :
3816
3817else
3818 # Broken: fails on valid input.
3819continue
3820fi
3821rm -f conftest.err conftest.i conftest.$ac_ext
3822
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827#include <ac_nonexistent.h>
3828_ACEOF
3829if ac_fn_cxx_try_cpp "$LINENO"; then :
3830 # Broken: success on invalid input.
3831continue
3832else
3833 # Passes both tests.
3834ac_preproc_ok=:
3835break
3836fi
3837rm -f conftest.err conftest.i conftest.$ac_ext
3838
3839done
3840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841rm -f conftest.i conftest.err conftest.$ac_ext
3842if $ac_preproc_ok; then :
3843
3844else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3848See \`config.log' for more details" "$LINENO" 5; }
3849fi
3850
3851ac_ext=c
3852ac_cpp='$CPP $CPPFLAGS'
3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
3857ac_ext=cpp
3858ac_cpp='$CXXCPP $CPPFLAGS'
3859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3862if test -z "$CXX"; then
3863 if test -n "$CCC"; then
3864 CXX=$CCC
3865 else
3866 if test -n "$ac_tool_prefix"; then
3867 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3868 do
3869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if ${ac_cv_prog_CXX+:} false; then :
3874 $as_echo_n "(cached) " >&6
3875else
3876 if test -n "$CXX"; then
3877 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003886 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890done
3891 done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896CXX=$ac_cv_prog_CXX
3897if test -n "$CXX"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3899$as_echo "$CXX" >&6; }
3900else
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903fi
3904
3905
3906 test -n "$CXX" && break
3907 done
3908fi
3909if test -z "$CXX"; then
3910 ac_ct_CXX=$CXX
3911 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3912do
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914set dummy $ac_prog; ac_word=$2
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
3917if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$ac_ct_CXX"; then
3921 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003930 ac_cv_prog_ac_ct_CXX="$ac_prog"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3941if test -n "$ac_ct_CXX"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3943$as_echo "$ac_ct_CXX" >&6; }
3944else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949
3950 test -n "$ac_ct_CXX" && break
3951done
3952
3953 if test "x$ac_ct_CXX" = x; then
3954 CXX="g++"
3955 else
3956 case $cross_compiling:$ac_tool_warned in
3957yes:)
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960ac_tool_warned=yes ;;
3961esac
3962 CXX=$ac_ct_CXX
3963 fi
3964fi
3965
3966 fi
3967fi
3968# Provide some information about the compiler.
3969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3970set X $ac_compile
3971ac_compiler=$2
3972for ac_option in --version -v -V -qversion; do
3973 { { ac_try="$ac_compiler $ac_option >&5"
3974case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977esac
3978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979$as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3981 ac_status=$?
3982 if test -s conftest.err; then
3983 sed '10a\
3984... rest of stderr output deleted ...
3985 10q' conftest.err >conftest.er1
3986 cat conftest.er1 >&5
3987 fi
3988 rm -f conftest.er1 conftest.err
3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }
3991done
3992
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3994$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3995if ${ac_cv_cxx_compiler_gnu+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997else
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h. */
4000
4001int
4002main ()
4003{
4004#ifndef __GNUC__
4005 choke me
4006#endif
4007
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012if ac_fn_cxx_try_compile "$LINENO"; then :
4013 ac_compiler_gnu=yes
4014else
4015 ac_compiler_gnu=no
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4019
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4022$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4023if test $ac_compiler_gnu = yes; then
4024 GXX=yes
4025else
4026 GXX=
4027fi
4028ac_test_CXXFLAGS=${CXXFLAGS+set}
4029ac_save_CXXFLAGS=$CXXFLAGS
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4031$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4032if ${ac_cv_prog_cxx_g+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034else
4035 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4036 ac_cxx_werror_flag=yes
4037 ac_cv_prog_cxx_g=no
4038 CXXFLAGS="-g"
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h. */
4041
4042int
4043main ()
4044{
4045
4046 ;
4047 return 0;
4048}
4049_ACEOF
4050if ac_fn_cxx_try_compile "$LINENO"; then :
4051 ac_cv_prog_cxx_g=yes
4052else
4053 CXXFLAGS=""
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h. */
4056
4057int
4058main ()
4059{
4060
4061 ;
4062 return 0;
4063}
4064_ACEOF
4065if ac_fn_cxx_try_compile "$LINENO"; then :
4066
4067else
4068 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4069 CXXFLAGS="-g"
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072
4073int
4074main ()
4075{
4076
4077 ;
4078 return 0;
4079}
4080_ACEOF
4081if ac_fn_cxx_try_compile "$LINENO"; then :
4082 ac_cv_prog_cxx_g=yes
4083fi
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085fi
4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4092$as_echo "$ac_cv_prog_cxx_g" >&6; }
4093if test "$ac_test_CXXFLAGS" = set; then
4094 CXXFLAGS=$ac_save_CXXFLAGS
4095elif test $ac_cv_prog_cxx_g = yes; then
4096 if test "$GXX" = yes; then
4097 CXXFLAGS="-g -O2"
4098 else
4099 CXXFLAGS="-g"
4100 fi
4101else
4102 if test "$GXX" = yes; then
4103 CXXFLAGS="-O2"
4104 else
4105 CXXFLAGS=
4106 fi
4107fi
4108ac_ext=c
4109ac_cpp='$CPP $CPPFLAGS'
4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
Alexandre Lisione41ecd42014-02-27 15:51:10 -05004114enable_win32_dll=yes
4115
4116case $host in
4117*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4120set dummy ${ac_tool_prefix}as; ac_word=$2
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122$as_echo_n "checking for $ac_word... " >&6; }
4123if ${ac_cv_prog_AS+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 if test -n "$AS"; then
4127 ac_cv_prog_AS="$AS" # Let the user override the test.
4128else
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_AS="${ac_tool_prefix}as"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140done
4141 done
4142IFS=$as_save_IFS
4143
4144fi
4145fi
4146AS=$ac_cv_prog_AS
4147if test -n "$AS"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4149$as_echo "$AS" >&6; }
4150else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152$as_echo "no" >&6; }
4153fi
4154
4155
4156fi
4157if test -z "$ac_cv_prog_AS"; then
4158 ac_ct_AS=$AS
4159 # Extract the first word of "as", so it can be a program name with args.
4160set dummy as; ac_word=$2
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162$as_echo_n "checking for $ac_word... " >&6; }
4163if ${ac_cv_prog_ac_ct_AS+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165else
4166 if test -n "$ac_ct_AS"; then
4167 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4168else
4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH
4171do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_ac_ct_AS="as"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180done
4181 done
4182IFS=$as_save_IFS
4183
4184fi
4185fi
4186ac_ct_AS=$ac_cv_prog_ac_ct_AS
4187if test -n "$ac_ct_AS"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4189$as_echo "$ac_ct_AS" >&6; }
4190else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192$as_echo "no" >&6; }
4193fi
4194
4195 if test "x$ac_ct_AS" = x; then
4196 AS="false"
4197 else
4198 case $cross_compiling:$ac_tool_warned in
4199yes:)
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4202ac_tool_warned=yes ;;
4203esac
4204 AS=$ac_ct_AS
4205 fi
4206else
4207 AS="$ac_cv_prog_AS"
4208fi
4209
4210 if test -n "$ac_tool_prefix"; then
4211 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4212set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214$as_echo_n "checking for $ac_word... " >&6; }
4215if ${ac_cv_prog_DLLTOOL+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217else
4218 if test -n "$DLLTOOL"; then
4219 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4220else
4221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232done
4233 done
4234IFS=$as_save_IFS
4235
4236fi
4237fi
4238DLLTOOL=$ac_cv_prog_DLLTOOL
4239if test -n "$DLLTOOL"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4241$as_echo "$DLLTOOL" >&6; }
4242else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244$as_echo "no" >&6; }
4245fi
4246
4247
4248fi
4249if test -z "$ac_cv_prog_DLLTOOL"; then
4250 ac_ct_DLLTOOL=$DLLTOOL
4251 # Extract the first word of "dlltool", so it can be a program name with args.
4252set dummy dlltool; ac_word=$2
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254$as_echo_n "checking for $ac_word... " >&6; }
4255if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257else
4258 if test -n "$ac_ct_DLLTOOL"; then
4259 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272done
4273 done
4274IFS=$as_save_IFS
4275
4276fi
4277fi
4278ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4279if test -n "$ac_ct_DLLTOOL"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4281$as_echo "$ac_ct_DLLTOOL" >&6; }
4282else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
4285fi
4286
4287 if test "x$ac_ct_DLLTOOL" = x; then
4288 DLLTOOL="false"
4289 else
4290 case $cross_compiling:$ac_tool_warned in
4291yes:)
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294ac_tool_warned=yes ;;
4295esac
4296 DLLTOOL=$ac_ct_DLLTOOL
4297 fi
4298else
4299 DLLTOOL="$ac_cv_prog_DLLTOOL"
4300fi
4301
4302 if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4304set dummy ${ac_tool_prefix}objdump; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if ${ac_cv_prog_OBJDUMP+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309else
4310 if test -n "$OBJDUMP"; then
4311 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330OBJDUMP=$ac_cv_prog_OBJDUMP
4331if test -n "$OBJDUMP"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4333$as_echo "$OBJDUMP" >&6; }
4334else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340fi
4341if test -z "$ac_cv_prog_OBJDUMP"; then
4342 ac_ct_OBJDUMP=$OBJDUMP
4343 # Extract the first word of "objdump", so it can be a program name with args.
4344set dummy objdump; ac_word=$2
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346$as_echo_n "checking for $ac_word... " >&6; }
4347if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349else
4350 if test -n "$ac_ct_OBJDUMP"; then
4351 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364done
4365 done
4366IFS=$as_save_IFS
4367
4368fi
4369fi
4370ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4371if test -n "$ac_ct_OBJDUMP"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4373$as_echo "$ac_ct_OBJDUMP" >&6; }
4374else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377fi
4378
4379 if test "x$ac_ct_OBJDUMP" = x; then
4380 OBJDUMP="false"
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383yes:)
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386ac_tool_warned=yes ;;
4387esac
4388 OBJDUMP=$ac_ct_OBJDUMP
4389 fi
4390else
4391 OBJDUMP="$ac_cv_prog_OBJDUMP"
4392fi
4393
4394 ;;
4395esac
4396
4397test -z "$AS" && AS=as
4398
4399
4400
4401
4402
4403test -z "$DLLTOOL" && DLLTOOL=dlltool
4404
4405
4406
4407
4408
4409test -z "$OBJDUMP" && OBJDUMP=objdump
4410
4411
4412
4413
4414
4415
4416
Emeric Vigier2f625822012-08-06 11:09:52 -04004417case `pwd` in
4418 *\ * | *\ *)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4420$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4421esac
4422
4423
4424
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004425macro_version='2.4.2'
4426macro_revision='1.3337'
Emeric Vigier2f625822012-08-06 11:09:52 -04004427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440ltmain="$ac_aux_dir/ltmain.sh"
4441
4442# Backslashify metacharacters that are still active within
4443# double-quoted strings.
4444sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4445
4446# Same as above, but do not quote variable references.
4447double_quote_subst='s/\(["`\\]\)/\\\1/g'
4448
4449# Sed substitution to delay expansion of an escaped shell variable in a
4450# double_quote_subst'ed string.
4451delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4452
4453# Sed substitution to delay expansion of an escaped single quote.
4454delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4455
4456# Sed substitution to avoid accidental globbing in evaled expressions
4457no_glob_subst='s/\*/\\\*/g'
4458
4459ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4460ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4461ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4464$as_echo_n "checking how to print strings... " >&6; }
4465# Test print first, because it will be a builtin if present.
4466if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4467 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4468 ECHO='print -r --'
4469elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4470 ECHO='printf %s\n'
4471else
4472 # Use this function as a fallback that always works.
4473 func_fallback_echo ()
4474 {
4475 eval 'cat <<_LTECHO_EOF
4476$1
4477_LTECHO_EOF'
4478 }
4479 ECHO='func_fallback_echo'
4480fi
4481
4482# func_echo_all arg...
4483# Invoke $ECHO with all args, space-separated.
4484func_echo_all ()
4485{
4486 $ECHO ""
4487}
4488
4489case "$ECHO" in
4490 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4491$as_echo "printf" >&6; } ;;
4492 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4493$as_echo "print -r" >&6; } ;;
4494 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4495$as_echo "cat" >&6; } ;;
4496esac
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4512$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4513if ${ac_cv_path_SED+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515else
4516 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4517 for ac_i in 1 2 3 4 5 6 7; do
4518 ac_script="$ac_script$as_nl$ac_script"
4519 done
4520 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4521 { ac_script=; unset ac_script;}
4522 if test -z "$SED"; then
4523 ac_path_SED_found=false
4524 # Loop through the user's path and test for each of PROGNAME-LIST
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_prog in sed gsed; do
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004533 as_fn_executable_p "$ac_path_SED" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004534# Check for GNU ac_path_SED and select it if it is found.
4535 # Check for GNU $ac_path_SED
4536case `"$ac_path_SED" --version 2>&1` in
4537*GNU*)
4538 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4539*)
4540 ac_count=0
4541 $as_echo_n 0123456789 >"conftest.in"
4542 while :
4543 do
4544 cat "conftest.in" "conftest.in" >"conftest.tmp"
4545 mv "conftest.tmp" "conftest.in"
4546 cp "conftest.in" "conftest.nl"
4547 $as_echo '' >> "conftest.nl"
4548 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4550 as_fn_arith $ac_count + 1 && ac_count=$as_val
4551 if test $ac_count -gt ${ac_path_SED_max-0}; then
4552 # Best one so far, save it but keep looking for a better one
4553 ac_cv_path_SED="$ac_path_SED"
4554 ac_path_SED_max=$ac_count
4555 fi
4556 # 10*(2^10) chars as input seems more than enough
4557 test $ac_count -gt 10 && break
4558 done
4559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560esac
4561
4562 $ac_path_SED_found && break 3
4563 done
4564 done
4565 done
4566IFS=$as_save_IFS
4567 if test -z "$ac_cv_path_SED"; then
4568 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4569 fi
4570else
4571 ac_cv_path_SED=$SED
4572fi
4573
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4576$as_echo "$ac_cv_path_SED" >&6; }
4577 SED="$ac_cv_path_SED"
4578 rm -f conftest.sed
4579
4580test -z "$SED" && SED=sed
4581Xsed="$SED -e 1s/^X//"
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4594$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4595if ${ac_cv_path_GREP+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597else
4598 if test -z "$GREP"; then
4599 ac_path_GREP_found=false
4600 # Loop through the user's path and test for each of PROGNAME-LIST
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_prog in grep ggrep; do
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004609 as_fn_executable_p "$ac_path_GREP" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004610# Check for GNU ac_path_GREP and select it if it is found.
4611 # Check for GNU $ac_path_GREP
4612case `"$ac_path_GREP" --version 2>&1` in
4613*GNU*)
4614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4615*)
4616 ac_count=0
4617 $as_echo_n 0123456789 >"conftest.in"
4618 while :
4619 do
4620 cat "conftest.in" "conftest.in" >"conftest.tmp"
4621 mv "conftest.tmp" "conftest.in"
4622 cp "conftest.in" "conftest.nl"
4623 $as_echo 'GREP' >> "conftest.nl"
4624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4626 as_fn_arith $ac_count + 1 && ac_count=$as_val
4627 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4628 # Best one so far, save it but keep looking for a better one
4629 ac_cv_path_GREP="$ac_path_GREP"
4630 ac_path_GREP_max=$ac_count
4631 fi
4632 # 10*(2^10) chars as input seems more than enough
4633 test $ac_count -gt 10 && break
4634 done
4635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636esac
4637
4638 $ac_path_GREP_found && break 3
4639 done
4640 done
4641 done
4642IFS=$as_save_IFS
4643 if test -z "$ac_cv_path_GREP"; then
4644 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645 fi
4646else
4647 ac_cv_path_GREP=$GREP
4648fi
4649
4650fi
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4652$as_echo "$ac_cv_path_GREP" >&6; }
4653 GREP="$ac_cv_path_GREP"
4654
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4657$as_echo_n "checking for egrep... " >&6; }
4658if ${ac_cv_path_EGREP+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660else
4661 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4662 then ac_cv_path_EGREP="$GREP -E"
4663 else
4664 if test -z "$EGREP"; then
4665 ac_path_EGREP_found=false
4666 # Loop through the user's path and test for each of PROGNAME-LIST
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_prog in egrep; do
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004675 as_fn_executable_p "$ac_path_EGREP" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004676# Check for GNU ac_path_EGREP and select it if it is found.
4677 # Check for GNU $ac_path_EGREP
4678case `"$ac_path_EGREP" --version 2>&1` in
4679*GNU*)
4680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4681*)
4682 ac_count=0
4683 $as_echo_n 0123456789 >"conftest.in"
4684 while :
4685 do
4686 cat "conftest.in" "conftest.in" >"conftest.tmp"
4687 mv "conftest.tmp" "conftest.in"
4688 cp "conftest.in" "conftest.nl"
4689 $as_echo 'EGREP' >> "conftest.nl"
4690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692 as_fn_arith $ac_count + 1 && ac_count=$as_val
4693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4694 # Best one so far, save it but keep looking for a better one
4695 ac_cv_path_EGREP="$ac_path_EGREP"
4696 ac_path_EGREP_max=$ac_count
4697 fi
4698 # 10*(2^10) chars as input seems more than enough
4699 test $ac_count -gt 10 && break
4700 done
4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702esac
4703
4704 $ac_path_EGREP_found && break 3
4705 done
4706 done
4707 done
4708IFS=$as_save_IFS
4709 if test -z "$ac_cv_path_EGREP"; then
4710 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4711 fi
4712else
4713 ac_cv_path_EGREP=$EGREP
4714fi
4715
4716 fi
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4719$as_echo "$ac_cv_path_EGREP" >&6; }
4720 EGREP="$ac_cv_path_EGREP"
4721
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4724$as_echo_n "checking for fgrep... " >&6; }
4725if ${ac_cv_path_FGREP+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727else
4728 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4729 then ac_cv_path_FGREP="$GREP -F"
4730 else
4731 if test -z "$FGREP"; then
4732 ac_path_FGREP_found=false
4733 # Loop through the user's path and test for each of PROGNAME-LIST
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4736do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_prog in fgrep; do
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004742 as_fn_executable_p "$ac_path_FGREP" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004743# Check for GNU ac_path_FGREP and select it if it is found.
4744 # Check for GNU $ac_path_FGREP
4745case `"$ac_path_FGREP" --version 2>&1` in
4746*GNU*)
4747 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4748*)
4749 ac_count=0
4750 $as_echo_n 0123456789 >"conftest.in"
4751 while :
4752 do
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 $as_echo 'FGREP' >> "conftest.nl"
4757 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759 as_fn_arith $ac_count + 1 && ac_count=$as_val
4760 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_FGREP="$ac_path_FGREP"
4763 ac_path_FGREP_max=$ac_count
4764 fi
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4767 done
4768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769esac
4770
4771 $ac_path_FGREP_found && break 3
4772 done
4773 done
4774 done
4775IFS=$as_save_IFS
4776 if test -z "$ac_cv_path_FGREP"; then
4777 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4778 fi
4779else
4780 ac_cv_path_FGREP=$FGREP
4781fi
4782
4783 fi
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4786$as_echo "$ac_cv_path_FGREP" >&6; }
4787 FGREP="$ac_cv_path_FGREP"
4788
4789
4790test -z "$GREP" && GREP=grep
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810# Check whether --with-gnu-ld was given.
4811if test "${with_gnu_ld+set}" = set; then :
4812 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4813else
4814 with_gnu_ld=no
4815fi
4816
4817ac_prog=ld
4818if test "$GCC" = yes; then
4819 # Check if gcc -print-prog-name=ld gives a path.
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4821$as_echo_n "checking for ld used by $CC... " >&6; }
4822 case $host in
4823 *-*-mingw*)
4824 # gcc leaves a trailing carriage return which upsets mingw
4825 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4826 *)
4827 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4828 esac
4829 case $ac_prog in
4830 # Accept absolute paths.
4831 [\\/]* | ?:[\\/]*)
4832 re_direlt='/[^/][^/]*/\.\./'
4833 # Canonicalize the pathname of ld
4834 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4835 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4836 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4837 done
4838 test -z "$LD" && LD="$ac_prog"
4839 ;;
4840 "")
4841 # If it fails, then pretend we aren't using GCC.
4842 ac_prog=ld
4843 ;;
4844 *)
4845 # If it is relative, then search for the first ld in PATH.
4846 with_gnu_ld=unknown
4847 ;;
4848 esac
4849elif test "$with_gnu_ld" = yes; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4851$as_echo_n "checking for GNU ld... " >&6; }
4852else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4854$as_echo_n "checking for non-GNU ld... " >&6; }
4855fi
4856if ${lt_cv_path_LD+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858else
4859 if test -z "$LD"; then
4860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH; do
4862 IFS="$lt_save_ifs"
4863 test -z "$ac_dir" && ac_dir=.
4864 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4865 lt_cv_path_LD="$ac_dir/$ac_prog"
4866 # Check to see if the program is GNU ld. I'd rather use --version,
4867 # but apparently some variants of GNU ld only accept -v.
4868 # Break only if it was the GNU/non-GNU ld that we prefer.
4869 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4870 *GNU* | *'with BFD'*)
4871 test "$with_gnu_ld" != no && break
4872 ;;
4873 *)
4874 test "$with_gnu_ld" != yes && break
4875 ;;
4876 esac
4877 fi
4878 done
4879 IFS="$lt_save_ifs"
4880else
4881 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4882fi
4883fi
4884
4885LD="$lt_cv_path_LD"
4886if test -n "$LD"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4888$as_echo "$LD" >&6; }
4889else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
4892fi
4893test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4895$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4896if ${lt_cv_prog_gnu_ld+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898else
4899 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4900case `$LD -v 2>&1 </dev/null` in
4901*GNU* | *'with BFD'*)
4902 lt_cv_prog_gnu_ld=yes
4903 ;;
4904*)
4905 lt_cv_prog_gnu_ld=no
4906 ;;
4907esac
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4910$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4911with_gnu_ld=$lt_cv_prog_gnu_ld
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4922$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4923if ${lt_cv_path_NM+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925else
4926 if test -n "$NM"; then
4927 # Let the user override the test.
4928 lt_cv_path_NM="$NM"
4929else
4930 lt_nm_to_check="${ac_tool_prefix}nm"
4931 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4932 lt_nm_to_check="$lt_nm_to_check nm"
4933 fi
4934 for lt_tmp_nm in $lt_nm_to_check; do
4935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4936 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4937 IFS="$lt_save_ifs"
4938 test -z "$ac_dir" && ac_dir=.
4939 tmp_nm="$ac_dir/$lt_tmp_nm"
4940 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4941 # Check to see if the nm accepts a BSD-compat flag.
4942 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4943 # nm: unknown option "B" ignored
4944 # Tru64's nm complains that /dev/null is an invalid object file
4945 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4946 */dev/null* | *'Invalid file or object type'*)
4947 lt_cv_path_NM="$tmp_nm -B"
4948 break
4949 ;;
4950 *)
4951 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4952 */dev/null*)
4953 lt_cv_path_NM="$tmp_nm -p"
4954 break
4955 ;;
4956 *)
4957 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4958 continue # so that we can try to find one that supports BSD flags
4959 ;;
4960 esac
4961 ;;
4962 esac
4963 fi
4964 done
4965 IFS="$lt_save_ifs"
4966 done
4967 : ${lt_cv_path_NM=no}
4968fi
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4971$as_echo "$lt_cv_path_NM" >&6; }
4972if test "$lt_cv_path_NM" != "no"; then
4973 NM="$lt_cv_path_NM"
4974else
4975 # Didn't find any BSD compatible name lister, look for dumpbin.
4976 if test -n "$DUMPBIN"; then :
4977 # Let the user override the test.
4978 else
4979 if test -n "$ac_tool_prefix"; then
4980 for ac_prog in dumpbin "link -dump"
4981 do
4982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985$as_echo_n "checking for $ac_word... " >&6; }
4986if ${ac_cv_prog_DUMPBIN+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988else
4989 if test -n "$DUMPBIN"; then
4990 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4991else
4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04004999 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004 done
5005IFS=$as_save_IFS
5006
5007fi
5008fi
5009DUMPBIN=$ac_cv_prog_DUMPBIN
5010if test -n "$DUMPBIN"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5012$as_echo "$DUMPBIN" >&6; }
5013else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015$as_echo "no" >&6; }
5016fi
5017
5018
5019 test -n "$DUMPBIN" && break
5020 done
5021fi
5022if test -z "$DUMPBIN"; then
5023 ac_ct_DUMPBIN=$DUMPBIN
5024 for ac_prog in dumpbin "link -dump"
5025do
5026 # Extract the first word of "$ac_prog", so it can be a program name with args.
5027set dummy $ac_prog; ac_word=$2
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029$as_echo_n "checking for $ac_word... " >&6; }
5030if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032else
5033 if test -n "$ac_ct_DUMPBIN"; then
5034 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5035else
5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005043 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047done
5048 done
5049IFS=$as_save_IFS
5050
5051fi
5052fi
5053ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5054if test -n "$ac_ct_DUMPBIN"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5056$as_echo "$ac_ct_DUMPBIN" >&6; }
5057else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059$as_echo "no" >&6; }
5060fi
5061
5062
5063 test -n "$ac_ct_DUMPBIN" && break
5064done
5065
5066 if test "x$ac_ct_DUMPBIN" = x; then
5067 DUMPBIN=":"
5068 else
5069 case $cross_compiling:$ac_tool_warned in
5070yes:)
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073ac_tool_warned=yes ;;
5074esac
5075 DUMPBIN=$ac_ct_DUMPBIN
5076 fi
5077fi
5078
5079 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5080 *COFF*)
5081 DUMPBIN="$DUMPBIN -symbols"
5082 ;;
5083 *)
5084 DUMPBIN=:
5085 ;;
5086 esac
5087 fi
5088
5089 if test "$DUMPBIN" != ":"; then
5090 NM="$DUMPBIN"
5091 fi
5092fi
5093test -z "$NM" && NM=nm
5094
5095
5096
5097
5098
5099
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5101$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5102if ${lt_cv_nm_interface+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104else
5105 lt_cv_nm_interface="BSD nm"
5106 echo "int some_variable = 0;" > conftest.$ac_ext
5107 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5108 (eval "$ac_compile" 2>conftest.err)
5109 cat conftest.err >&5
5110 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5111 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5112 cat conftest.err >&5
5113 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5114 cat conftest.out >&5
5115 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5116 lt_cv_nm_interface="MS dumpbin"
5117 fi
5118 rm -f conftest*
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5121$as_echo "$lt_cv_nm_interface" >&6; }
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5124$as_echo_n "checking whether ln -s works... " >&6; }
5125LN_S=$as_ln_s
5126if test "$LN_S" = "ln -s"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5128$as_echo "yes" >&6; }
5129else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5131$as_echo "no, using $LN_S" >&6; }
5132fi
5133
5134# find the maximum length of command line arguments
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5136$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5137if ${lt_cv_sys_max_cmd_len+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139else
5140 i=0
5141 teststring="ABCD"
5142
5143 case $build_os in
5144 msdosdjgpp*)
5145 # On DJGPP, this test can blow up pretty badly due to problems in libc
5146 # (any single argument exceeding 2000 bytes causes a buffer overrun
5147 # during glob expansion). Even if it were fixed, the result of this
5148 # check would be larger than it should be.
5149 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5150 ;;
5151
5152 gnu*)
5153 # Under GNU Hurd, this test is not required because there is
5154 # no limit to the length of command line arguments.
5155 # Libtool will interpret -1 as no limit whatsoever
5156 lt_cv_sys_max_cmd_len=-1;
5157 ;;
5158
5159 cygwin* | mingw* | cegcc*)
5160 # On Win9x/ME, this test blows up -- it succeeds, but takes
5161 # about 5 minutes as the teststring grows exponentially.
5162 # Worse, since 9x/ME are not pre-emptively multitasking,
5163 # you end up with a "frozen" computer, even though with patience
5164 # the test eventually succeeds (with a max line length of 256k).
5165 # Instead, let's just punt: use the minimum linelength reported by
5166 # all of the supported platforms: 8192 (on NT/2K/XP).
5167 lt_cv_sys_max_cmd_len=8192;
5168 ;;
5169
5170 mint*)
5171 # On MiNT this can take a long time and run out of memory.
5172 lt_cv_sys_max_cmd_len=8192;
5173 ;;
5174
5175 amigaos*)
5176 # On AmigaOS with pdksh, this test takes hours, literally.
5177 # So we just punt and use a minimum line length of 8192.
5178 lt_cv_sys_max_cmd_len=8192;
5179 ;;
5180
5181 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5182 # This has been around since 386BSD, at least. Likely further.
5183 if test -x /sbin/sysctl; then
5184 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5185 elif test -x /usr/sbin/sysctl; then
5186 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5187 else
5188 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5189 fi
5190 # And add a safety zone
5191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5193 ;;
5194
5195 interix*)
5196 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5197 lt_cv_sys_max_cmd_len=196608
5198 ;;
5199
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005200 os2*)
5201 # The test takes a long time on OS/2.
5202 lt_cv_sys_max_cmd_len=8192
5203 ;;
5204
Emeric Vigier2f625822012-08-06 11:09:52 -04005205 osf*)
5206 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5207 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5208 # nice to cause kernel panics so lets avoid the loop below.
5209 # First set a reasonable default.
5210 lt_cv_sys_max_cmd_len=16384
5211 #
5212 if test -x /sbin/sysconfig; then
5213 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5214 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5215 esac
5216 fi
5217 ;;
5218 sco3.2v5*)
5219 lt_cv_sys_max_cmd_len=102400
5220 ;;
5221 sysv5* | sco5v6* | sysv4.2uw2*)
5222 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5223 if test -n "$kargmax"; then
5224 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5225 else
5226 lt_cv_sys_max_cmd_len=32768
5227 fi
5228 ;;
5229 *)
5230 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5231 if test -n "$lt_cv_sys_max_cmd_len"; then
5232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5234 else
5235 # Make teststring a little bigger before we do anything with it.
5236 # a 1K string should be a reasonable start.
5237 for i in 1 2 3 4 5 6 7 8 ; do
5238 teststring=$teststring$teststring
5239 done
5240 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5241 # If test is not a shell built-in, we'll probably end up computing a
5242 # maximum length that is only half of the actual maximum length, but
5243 # we can't tell.
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005244 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
Emeric Vigier2f625822012-08-06 11:09:52 -04005245 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5246 test $i != 17 # 1/2 MB should be enough
5247 do
5248 i=`expr $i + 1`
5249 teststring=$teststring$teststring
5250 done
5251 # Only check the string length outside the loop.
5252 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5253 teststring=
5254 # Add a significant safety factor because C++ compilers can tack on
5255 # massive amounts of additional arguments before passing them to the
5256 # linker. It appears as though 1/2 is a usable value.
5257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5258 fi
5259 ;;
5260 esac
5261
5262fi
5263
5264if test -n $lt_cv_sys_max_cmd_len ; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5266$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5267else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5269$as_echo "none" >&6; }
5270fi
5271max_cmd_len=$lt_cv_sys_max_cmd_len
5272
5273
5274
5275
5276
5277
5278: ${CP="cp -f"}
5279: ${MV="mv -f"}
5280: ${RM="rm -f"}
5281
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5283$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5284# Try some XSI features
5285xsi_shell=no
5286( _lt_dummy="a/b/c"
5287 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5288 = c,a/b,b/c, \
5289 && eval 'test $(( 1 + 1 )) -eq 2 \
5290 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5291 && xsi_shell=yes
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5293$as_echo "$xsi_shell" >&6; }
5294
5295
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5297$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5298lt_shell_append=no
5299( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5300 >/dev/null 2>&1 \
5301 && lt_shell_append=yes
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5303$as_echo "$lt_shell_append" >&6; }
5304
5305
5306if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5307 lt_unset=unset
5308else
5309 lt_unset=false
5310fi
5311
5312
5313
5314
5315
5316# test EBCDIC or ASCII
5317case `echo X|tr X '\101'` in
5318 A) # ASCII based system
5319 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5320 lt_SP2NL='tr \040 \012'
5321 lt_NL2SP='tr \015\012 \040\040'
5322 ;;
5323 *) # EBCDIC based system
5324 lt_SP2NL='tr \100 \n'
5325 lt_NL2SP='tr \r\n \100\100'
5326 ;;
5327esac
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5338$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5339if ${lt_cv_to_host_file_cmd+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341else
5342 case $host in
5343 *-*-mingw* )
5344 case $build in
5345 *-*-mingw* ) # actually msys
5346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5347 ;;
5348 *-*-cygwin* )
5349 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5350 ;;
5351 * ) # otherwise, assume *nix
5352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5353 ;;
5354 esac
5355 ;;
5356 *-*-cygwin* )
5357 case $build in
5358 *-*-mingw* ) # actually msys
5359 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5360 ;;
5361 *-*-cygwin* )
5362 lt_cv_to_host_file_cmd=func_convert_file_noop
5363 ;;
5364 * ) # otherwise, assume *nix
5365 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5366 ;;
5367 esac
5368 ;;
5369 * ) # unhandled hosts (and "normal" native builds)
5370 lt_cv_to_host_file_cmd=func_convert_file_noop
5371 ;;
5372esac
5373
5374fi
5375
5376to_host_file_cmd=$lt_cv_to_host_file_cmd
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5378$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5385$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5386if ${lt_cv_to_tool_file_cmd+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388else
5389 #assume ordinary cross tools, or native build.
5390lt_cv_to_tool_file_cmd=func_convert_file_noop
5391case $host in
5392 *-*-mingw* )
5393 case $build in
5394 *-*-mingw* ) # actually msys
5395 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5396 ;;
5397 esac
5398 ;;
5399esac
5400
5401fi
5402
5403to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5405$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5406
5407
5408
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5412$as_echo_n "checking for $LD option to reload object files... " >&6; }
5413if ${lt_cv_ld_reload_flag+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415else
5416 lt_cv_ld_reload_flag='-r'
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5419$as_echo "$lt_cv_ld_reload_flag" >&6; }
5420reload_flag=$lt_cv_ld_reload_flag
5421case $reload_flag in
5422"" | " "*) ;;
5423*) reload_flag=" $reload_flag" ;;
5424esac
5425reload_cmds='$LD$reload_flag -o $output$reload_objs'
5426case $host_os in
5427 cygwin* | mingw* | pw32* | cegcc*)
5428 if test "$GCC" != yes; then
5429 reload_cmds=false
5430 fi
5431 ;;
5432 darwin*)
5433 if test "$GCC" = yes; then
5434 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5435 else
5436 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5437 fi
5438 ;;
5439esac
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5451set dummy ${ac_tool_prefix}objdump; ac_word=$2
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
5454if ${ac_cv_prog_OBJDUMP+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456else
5457 if test -n "$OBJDUMP"; then
5458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005467 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471done
5472 done
5473IFS=$as_save_IFS
5474
5475fi
5476fi
5477OBJDUMP=$ac_cv_prog_OBJDUMP
5478if test -n "$OBJDUMP"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5480$as_echo "$OBJDUMP" >&6; }
5481else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483$as_echo "no" >&6; }
5484fi
5485
5486
5487fi
5488if test -z "$ac_cv_prog_OBJDUMP"; then
5489 ac_ct_OBJDUMP=$OBJDUMP
5490 # Extract the first word of "objdump", so it can be a program name with args.
5491set dummy objdump; ac_word=$2
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
5494if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496else
5497 if test -n "$ac_ct_OBJDUMP"; then
5498 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005507 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511done
5512 done
5513IFS=$as_save_IFS
5514
5515fi
5516fi
5517ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5518if test -n "$ac_ct_OBJDUMP"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5520$as_echo "$ac_ct_OBJDUMP" >&6; }
5521else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
5524fi
5525
5526 if test "x$ac_ct_OBJDUMP" = x; then
5527 OBJDUMP="false"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530yes:)
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533ac_tool_warned=yes ;;
5534esac
5535 OBJDUMP=$ac_ct_OBJDUMP
5536 fi
5537else
5538 OBJDUMP="$ac_cv_prog_OBJDUMP"
5539fi
5540
5541test -z "$OBJDUMP" && OBJDUMP=objdump
5542
5543
5544
5545
5546
5547
Emeric Vigier2f625822012-08-06 11:09:52 -04005548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5549$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5550if ${lt_cv_deplibs_check_method+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552else
5553 lt_cv_file_magic_cmd='$MAGIC_CMD'
5554lt_cv_file_magic_test_file=
5555lt_cv_deplibs_check_method='unknown'
5556# Need to set the preceding variable on all platforms that support
5557# interlibrary dependencies.
5558# 'none' -- dependencies not supported.
5559# `unknown' -- same as none, but documents that we really don't know.
5560# 'pass_all' -- all dependencies passed with no checks.
5561# 'test_compile' -- check by making test program.
5562# 'file_magic [[regex]]' -- check by looking for files in library path
5563# which responds to the $file_magic_cmd with a given extended regex.
5564# If you have `file' or equivalent on your system and you're not sure
5565# whether `pass_all' will *always* work, you probably want this one.
5566
5567case $host_os in
5568aix[4-9]*)
5569 lt_cv_deplibs_check_method=pass_all
5570 ;;
5571
5572beos*)
5573 lt_cv_deplibs_check_method=pass_all
5574 ;;
5575
5576bsdi[45]*)
5577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5578 lt_cv_file_magic_cmd='/usr/bin/file -L'
5579 lt_cv_file_magic_test_file=/shlib/libc.so
5580 ;;
5581
5582cygwin*)
5583 # func_win32_libid is a shell function defined in ltmain.sh
5584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5585 lt_cv_file_magic_cmd='func_win32_libid'
5586 ;;
5587
5588mingw* | pw32*)
5589 # Base MSYS/MinGW do not provide the 'file' command needed by
5590 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5591 # unless we find 'file', for example because we are cross-compiling.
5592 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5593 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5595 lt_cv_file_magic_cmd='func_win32_libid'
5596 else
5597 # Keep this pattern in sync with the one in func_win32_libid.
5598 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5599 lt_cv_file_magic_cmd='$OBJDUMP -f'
5600 fi
5601 ;;
5602
5603cegcc*)
5604 # use the weaker test based on 'objdump'. See mingw*.
5605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5606 lt_cv_file_magic_cmd='$OBJDUMP -f'
5607 ;;
5608
5609darwin* | rhapsody*)
5610 lt_cv_deplibs_check_method=pass_all
5611 ;;
5612
5613freebsd* | dragonfly*)
5614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5615 case $host_cpu in
5616 i*86 )
5617 # Not sure whether the presence of OpenBSD here was a mistake.
5618 # Let's accept both of them until this is cleared up.
5619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5620 lt_cv_file_magic_cmd=/usr/bin/file
5621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5622 ;;
5623 esac
5624 else
5625 lt_cv_deplibs_check_method=pass_all
5626 fi
5627 ;;
5628
5629gnu*)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632
5633haiku*)
5634 lt_cv_deplibs_check_method=pass_all
5635 ;;
5636
5637hpux10.20* | hpux11*)
5638 lt_cv_file_magic_cmd=/usr/bin/file
5639 case $host_cpu in
5640 ia64*)
5641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5643 ;;
5644 hppa*64*)
5645 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]'
5646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5647 ;;
5648 *)
5649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5651 ;;
5652 esac
5653 ;;
5654
5655interix[3-9]*)
5656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5658 ;;
5659
5660irix5* | irix6* | nonstopux*)
5661 case $LD in
5662 *-32|*"-32 ") libmagic=32-bit;;
5663 *-n32|*"-n32 ") libmagic=N32;;
5664 *-64|*"-64 ") libmagic=64-bit;;
5665 *) libmagic=never-match;;
5666 esac
5667 lt_cv_deplibs_check_method=pass_all
5668 ;;
5669
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005670# This must be glibc/ELF.
Emeric Vigier2f625822012-08-06 11:09:52 -04005671linux* | k*bsd*-gnu | kopensolaris*-gnu)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005675netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -04005676 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5678 else
5679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5680 fi
5681 ;;
5682
5683newos6*)
5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5685 lt_cv_file_magic_cmd=/usr/bin/file
5686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5687 ;;
5688
5689*nto* | *qnx*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693openbsd*)
5694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5696 else
5697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5698 fi
5699 ;;
5700
5701osf3* | osf4* | osf5*)
5702 lt_cv_deplibs_check_method=pass_all
5703 ;;
5704
5705rdos*)
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
5708
5709solaris*)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716
5717sysv4 | sysv4.3*)
5718 case $host_vendor in
5719 motorola)
5720 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]'
5721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5722 ;;
5723 ncr)
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726 sequent)
5727 lt_cv_file_magic_cmd='/bin/file'
5728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5729 ;;
5730 sni)
5731 lt_cv_file_magic_cmd='/bin/file'
5732 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5733 lt_cv_file_magic_test_file=/lib/libc.so
5734 ;;
5735 siemens)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738 pc)
5739 lt_cv_deplibs_check_method=pass_all
5740 ;;
5741 esac
5742 ;;
5743
5744tpf*)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747esac
5748
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5751$as_echo "$lt_cv_deplibs_check_method" >&6; }
5752
5753file_magic_glob=
5754want_nocaseglob=no
5755if test "$build" = "$host"; then
5756 case $host_os in
5757 mingw* | pw32*)
5758 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5759 want_nocaseglob=yes
5760 else
5761 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5762 fi
5763 ;;
5764 esac
5765fi
5766
5767file_magic_cmd=$lt_cv_file_magic_cmd
5768deplibs_check_method=$lt_cv_deplibs_check_method
5769test -z "$deplibs_check_method" && deplibs_check_method=unknown
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5794set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
5797if ${ac_cv_prog_DLLTOOL+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$DLLTOOL"; then
5801 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005810 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815 done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820DLLTOOL=$ac_cv_prog_DLLTOOL
5821if test -n "$DLLTOOL"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5823$as_echo "$DLLTOOL" >&6; }
5824else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829
5830fi
5831if test -z "$ac_cv_prog_DLLTOOL"; then
5832 ac_ct_DLLTOOL=$DLLTOOL
5833 # Extract the first word of "dlltool", so it can be a program name with args.
5834set dummy dlltool; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
5837if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839else
5840 if test -n "$ac_ct_DLLTOOL"; then
5841 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005850 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855 done
5856IFS=$as_save_IFS
5857
5858fi
5859fi
5860ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5861if test -n "$ac_ct_DLLTOOL"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5863$as_echo "$ac_ct_DLLTOOL" >&6; }
5864else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
5867fi
5868
5869 if test "x$ac_ct_DLLTOOL" = x; then
5870 DLLTOOL="false"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873yes:)
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876ac_tool_warned=yes ;;
5877esac
5878 DLLTOOL=$ac_ct_DLLTOOL
5879 fi
5880else
5881 DLLTOOL="$ac_cv_prog_DLLTOOL"
5882fi
5883
5884test -z "$DLLTOOL" && DLLTOOL=dlltool
5885
5886
5887
5888
5889
5890
5891
Emeric Vigier2f625822012-08-06 11:09:52 -04005892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5893$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5894if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896else
5897 lt_cv_sharedlib_from_linklib_cmd='unknown'
5898
5899case $host_os in
5900cygwin* | mingw* | pw32* | cegcc*)
5901 # two different shell functions defined in ltmain.sh
5902 # decide which to use based on capabilities of $DLLTOOL
5903 case `$DLLTOOL --help 2>&1` in
5904 *--identify-strict*)
5905 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5906 ;;
5907 *)
5908 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5909 ;;
5910 esac
5911 ;;
5912*)
5913 # fallback: assume linklib IS sharedlib
5914 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5915 ;;
5916esac
5917
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5920$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5921sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5922test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5923
5924
5925
5926
5927
5928
5929
5930
5931if test -n "$ac_tool_prefix"; then
5932 for ac_prog in ar
5933 do
5934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
5938if ${ac_cv_prog_AR+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940else
5941 if test -n "$AR"; then
5942 ac_cv_prog_AR="$AR" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005951 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955done
5956 done
5957IFS=$as_save_IFS
5958
5959fi
5960fi
5961AR=$ac_cv_prog_AR
5962if test -n "$AR"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5964$as_echo "$AR" >&6; }
5965else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968fi
5969
5970
5971 test -n "$AR" && break
5972 done
5973fi
5974if test -z "$AR"; then
5975 ac_ct_AR=$AR
5976 for ac_prog in ar
5977do
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979set dummy $ac_prog; ac_word=$2
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981$as_echo_n "checking for $ac_word... " >&6; }
5982if ${ac_cv_prog_ac_ct_AR+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984else
5985 if test -n "$ac_ct_AR"; then
5986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005995 ac_cv_prog_ac_ct_AR="$ac_prog"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999done
6000 done
6001IFS=$as_save_IFS
6002
6003fi
6004fi
6005ac_ct_AR=$ac_cv_prog_ac_ct_AR
6006if test -n "$ac_ct_AR"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6008$as_echo "$ac_ct_AR" >&6; }
6009else
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011$as_echo "no" >&6; }
6012fi
6013
6014
6015 test -n "$ac_ct_AR" && break
6016done
6017
6018 if test "x$ac_ct_AR" = x; then
6019 AR="false"
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022yes:)
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025ac_tool_warned=yes ;;
6026esac
6027 AR=$ac_ct_AR
6028 fi
6029fi
6030
6031: ${AR=ar}
6032: ${AR_FLAGS=cru}
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6045$as_echo_n "checking for archiver @FILE support... " >&6; }
6046if ${lt_cv_ar_at_file+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048else
6049 lt_cv_ar_at_file=no
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h. */
6052
6053int
6054main ()
6055{
6056
6057 ;
6058 return 0;
6059}
6060_ACEOF
6061if ac_fn_c_try_compile "$LINENO"; then :
6062 echo conftest.$ac_objext > conftest.lst
6063 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6065 (eval $lt_ar_try) 2>&5
6066 ac_status=$?
6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6068 test $ac_status = 0; }
6069 if test "$ac_status" -eq 0; then
6070 # Ensure the archiver fails upon bogus file names.
6071 rm -f conftest.$ac_objext libconftest.a
6072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6073 (eval $lt_ar_try) 2>&5
6074 ac_status=$?
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; }
6077 if test "$ac_status" -ne 0; then
6078 lt_cv_ar_at_file=@
6079 fi
6080 fi
6081 rm -f conftest.* libconftest.a
6082
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6088$as_echo "$lt_cv_ar_at_file" >&6; }
6089
6090if test "x$lt_cv_ar_at_file" = xno; then
6091 archiver_list_spec=
6092else
6093 archiver_list_spec=$lt_cv_ar_at_file
6094fi
6095
6096
6097
6098
6099
6100
6101
6102if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6104set dummy ${ac_tool_prefix}strip; ac_word=$2
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
6107if ${ac_cv_prog_STRIP+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109else
6110 if test -n "$STRIP"; then
6111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125 done
6126IFS=$as_save_IFS
6127
6128fi
6129fi
6130STRIP=$ac_cv_prog_STRIP
6131if test -n "$STRIP"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6133$as_echo "$STRIP" >&6; }
6134else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137fi
6138
6139
6140fi
6141if test -z "$ac_cv_prog_STRIP"; then
6142 ac_ct_STRIP=$STRIP
6143 # Extract the first word of "strip", so it can be a program name with args.
6144set dummy strip; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149else
6150 if test -n "$ac_ct_STRIP"; then
6151 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006160 ac_cv_prog_ac_ct_STRIP="strip"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164done
6165 done
6166IFS=$as_save_IFS
6167
6168fi
6169fi
6170ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6171if test -n "$ac_ct_STRIP"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6173$as_echo "$ac_ct_STRIP" >&6; }
6174else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179 if test "x$ac_ct_STRIP" = x; then
6180 STRIP=":"
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183yes:)
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186ac_tool_warned=yes ;;
6187esac
6188 STRIP=$ac_ct_STRIP
6189 fi
6190else
6191 STRIP="$ac_cv_prog_STRIP"
6192fi
6193
6194test -z "$STRIP" && STRIP=:
6195
6196
6197
6198
6199
6200
6201if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6203set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205$as_echo_n "checking for $ac_word... " >&6; }
6206if ${ac_cv_prog_RANLIB+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208else
6209 if test -n "$RANLIB"; then
6210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6211else
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006219 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223done
6224 done
6225IFS=$as_save_IFS
6226
6227fi
6228fi
6229RANLIB=$ac_cv_prog_RANLIB
6230if test -n "$RANLIB"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6232$as_echo "$RANLIB" >&6; }
6233else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235$as_echo "no" >&6; }
6236fi
6237
6238
6239fi
6240if test -z "$ac_cv_prog_RANLIB"; then
6241 ac_ct_RANLIB=$RANLIB
6242 # Extract the first word of "ranlib", so it can be a program name with args.
6243set dummy ranlib; ac_word=$2
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245$as_echo_n "checking for $ac_word... " >&6; }
6246if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248else
6249 if test -n "$ac_ct_RANLIB"; then
6250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006259 ac_cv_prog_ac_ct_RANLIB="ranlib"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264 done
6265IFS=$as_save_IFS
6266
6267fi
6268fi
6269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6270if test -n "$ac_ct_RANLIB"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6272$as_echo "$ac_ct_RANLIB" >&6; }
6273else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; }
6276fi
6277
6278 if test "x$ac_ct_RANLIB" = x; then
6279 RANLIB=":"
6280 else
6281 case $cross_compiling:$ac_tool_warned in
6282yes:)
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285ac_tool_warned=yes ;;
6286esac
6287 RANLIB=$ac_ct_RANLIB
6288 fi
6289else
6290 RANLIB="$ac_cv_prog_RANLIB"
6291fi
6292
6293test -z "$RANLIB" && RANLIB=:
6294
6295
6296
6297
6298
6299
6300# Determine commands to create old-style static archives.
6301old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6302old_postinstall_cmds='chmod 644 $oldlib'
6303old_postuninstall_cmds=
6304
6305if test -n "$RANLIB"; then
6306 case $host_os in
6307 openbsd*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006308 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Emeric Vigier2f625822012-08-06 11:09:52 -04006309 ;;
6310 *)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006311 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Emeric Vigier2f625822012-08-06 11:09:52 -04006312 ;;
6313 esac
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006314 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Emeric Vigier2f625822012-08-06 11:09:52 -04006315fi
6316
6317case $host_os in
6318 darwin*)
6319 lock_old_archive_extraction=yes ;;
6320 *)
6321 lock_old_archive_extraction=no ;;
6322esac
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344for ac_prog in gawk mawk nawk awk
6345do
6346 # Extract the first word of "$ac_prog", so it can be a program name with args.
6347set dummy $ac_prog; ac_word=$2
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
6350if ${ac_cv_prog_AWK+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352else
6353 if test -n "$AWK"; then
6354 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006363 ac_cv_prog_AWK="$ac_prog"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367done
6368 done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373AWK=$ac_cv_prog_AWK
6374if test -n "$AWK"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6376$as_echo "$AWK" >&6; }
6377else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382
6383 test -n "$AWK" && break
6384done
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404# If no C compiler was specified, use CC.
6405LTCC=${LTCC-"$CC"}
6406
6407# If no C compiler flags were specified, use CFLAGS.
6408LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6409
6410# Allow CC to be a program name with arguments.
6411compiler=$CC
6412
6413
6414# Check for command to grab the raw symbol name followed by C symbol from nm.
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6416$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6417if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419else
6420
6421# These are sane defaults that work on at least a few old systems.
6422# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6423
6424# Character class describing NM global symbol codes.
6425symcode='[BCDEGRST]'
6426
6427# Regexp to match symbols that can be accessed directly from C.
6428sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6429
6430# Define system-specific variables.
6431case $host_os in
6432aix*)
6433 symcode='[BCDT]'
6434 ;;
6435cygwin* | mingw* | pw32* | cegcc*)
6436 symcode='[ABCDGISTW]'
6437 ;;
6438hpux*)
6439 if test "$host_cpu" = ia64; then
6440 symcode='[ABCDEGRST]'
6441 fi
6442 ;;
6443irix* | nonstopux*)
6444 symcode='[BCDEGRST]'
6445 ;;
6446osf*)
6447 symcode='[BCDEGQRST]'
6448 ;;
6449solaris*)
6450 symcode='[BDRT]'
6451 ;;
6452sco3.2v5*)
6453 symcode='[DT]'
6454 ;;
6455sysv4.2uw2*)
6456 symcode='[DT]'
6457 ;;
6458sysv5* | sco5v6* | unixware* | OpenUNIX*)
6459 symcode='[ABDT]'
6460 ;;
6461sysv4)
6462 symcode='[DFNSTU]'
6463 ;;
6464esac
6465
6466# If we're using GNU nm, then use its standard symbol codes.
6467case `$NM -V 2>&1` in
6468*GNU* | *'with BFD'*)
6469 symcode='[ABCDGIRSTW]' ;;
6470esac
6471
6472# Transform an extracted symbol line into a proper C declaration.
6473# Some systems (esp. on ia64) link data and code symbols differently,
6474# so use this general approach.
6475lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476
6477# Transform an extracted symbol line into symbol name and symbol address
6478lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6479lt_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'"
6480
6481# Handle CRLF in mingw tool chain
6482opt_cr=
6483case $build_os in
6484mingw*)
6485 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6486 ;;
6487esac
6488
6489# Try without a prefix underscore, then with it.
6490for ac_symprfx in "" "_"; do
6491
6492 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6493 symxfrm="\\1 $ac_symprfx\\2 \\2"
6494
6495 # Write the raw and C identifiers.
6496 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6497 # Fake it for dumpbin and say T for any non-static function
6498 # and D for any global variable.
6499 # Also find C++ and __fastcall symbols from MSVC++,
6500 # which start with @ or ?.
6501 lt_cv_sys_global_symbol_pipe="$AWK '"\
6502" {last_section=section; section=\$ 3};"\
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006503" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Emeric Vigier2f625822012-08-06 11:09:52 -04006504" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6505" \$ 0!~/External *\|/{next};"\
6506" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6507" {if(hide[section]) next};"\
6508" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6509" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6510" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6511" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6512" ' prfx=^$ac_symprfx"
6513 else
6514 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6515 fi
6516 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6517
6518 # Check to see that the pipe works correctly.
6519 pipe_works=no
6520
6521 rm -f conftest*
6522 cat > conftest.$ac_ext <<_LT_EOF
6523#ifdef __cplusplus
6524extern "C" {
6525#endif
6526char nm_test_var;
6527void nm_test_func(void);
6528void nm_test_func(void){}
6529#ifdef __cplusplus
6530}
6531#endif
6532int main(){nm_test_var='a';nm_test_func();return(0);}
6533_LT_EOF
6534
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 # Now try to grab the symbols.
6541 nlist=conftest.nm
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6543 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; } && test -s "$nlist"; then
6547 # Try sorting and uniquifying the output.
6548 if sort "$nlist" | uniq > "$nlist"T; then
6549 mv -f "$nlist"T "$nlist"
6550 else
6551 rm -f "$nlist"T
6552 fi
6553
6554 # Make sure that we snagged all the symbols we need.
6555 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6556 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6557 cat <<_LT_EOF > conftest.$ac_ext
6558/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6559#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6560/* DATA imports from DLLs on WIN32 con't be const, because runtime
6561 relocations are performed -- see ld's documentation on pseudo-relocs. */
6562# define LT_DLSYM_CONST
6563#elif defined(__osf__)
6564/* This system does not cope well with relocations in const data. */
6565# define LT_DLSYM_CONST
6566#else
6567# define LT_DLSYM_CONST const
6568#endif
6569
6570#ifdef __cplusplus
6571extern "C" {
6572#endif
6573
6574_LT_EOF
6575 # Now generate the symbol file.
6576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6577
6578 cat <<_LT_EOF >> conftest.$ac_ext
6579
6580/* The mapping between symbol names and symbols. */
6581LT_DLSYM_CONST struct {
6582 const char *name;
6583 void *address;
6584}
6585lt__PROGRAM__LTX_preloaded_symbols[] =
6586{
6587 { "@PROGRAM@", (void *) 0 },
6588_LT_EOF
6589 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6590 cat <<\_LT_EOF >> conftest.$ac_ext
6591 {0, (void *) 0}
6592};
6593
6594/* This works around a problem in FreeBSD linker */
6595#ifdef FREEBSD_WORKAROUND
6596static const void *lt_preloaded_setup() {
6597 return lt__PROGRAM__LTX_preloaded_symbols;
6598}
6599#endif
6600
6601#ifdef __cplusplus
6602}
6603#endif
6604_LT_EOF
6605 # Now try linking the two files.
6606 mv conftest.$ac_objext conftstm.$ac_objext
6607 lt_globsym_save_LIBS=$LIBS
6608 lt_globsym_save_CFLAGS=$CFLAGS
6609 LIBS="conftstm.$ac_objext"
6610 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6612 (eval $ac_link) 2>&5
6613 ac_status=$?
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6616 pipe_works=yes
6617 fi
6618 LIBS=$lt_globsym_save_LIBS
6619 CFLAGS=$lt_globsym_save_CFLAGS
6620 else
6621 echo "cannot find nm_test_func in $nlist" >&5
6622 fi
6623 else
6624 echo "cannot find nm_test_var in $nlist" >&5
6625 fi
6626 else
6627 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6628 fi
6629 else
6630 echo "$progname: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6632 fi
6633 rm -rf conftest* conftst*
6634
6635 # Do not use the global_symbol_pipe unless it works.
6636 if test "$pipe_works" = yes; then
6637 break
6638 else
6639 lt_cv_sys_global_symbol_pipe=
6640 fi
6641done
6642
6643fi
6644
6645if test -z "$lt_cv_sys_global_symbol_pipe"; then
6646 lt_cv_sys_global_symbol_to_cdecl=
6647fi
6648if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6650$as_echo "failed" >&6; }
6651else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6653$as_echo "ok" >&6; }
6654fi
6655
6656# Response file support.
6657if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6658 nm_file_list_spec='@'
6659elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6660 nm_file_list_spec='@'
6661fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6690$as_echo_n "checking for sysroot... " >&6; }
6691
6692# Check whether --with-sysroot was given.
6693if test "${with_sysroot+set}" = set; then :
6694 withval=$with_sysroot;
6695else
6696 with_sysroot=no
6697fi
6698
6699
6700lt_sysroot=
6701case ${with_sysroot} in #(
6702 yes)
6703 if test "$GCC" = yes; then
6704 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6705 fi
6706 ;; #(
6707 /*)
6708 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6709 ;; #(
6710 no|'')
6711 ;; #(
6712 *)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6714$as_echo "${with_sysroot}" >&6; }
6715 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6716 ;;
6717esac
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6720$as_echo "${lt_sysroot:-no}" >&6; }
6721
6722
6723
6724
6725
6726# Check whether --enable-libtool-lock was given.
6727if test "${enable_libtool_lock+set}" = set; then :
6728 enableval=$enable_libtool_lock;
6729fi
6730
6731test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6732
6733# Some flags need to be propagated to the compiler or linker for good
6734# libtool support.
6735case $host in
6736ia64-*-hpux*)
6737 # Find out which ABI we are using.
6738 echo 'int i;' > conftest.$ac_ext
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740 (eval $ac_compile) 2>&5
6741 ac_status=$?
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
6744 case `/usr/bin/file conftest.$ac_objext` in
6745 *ELF-32*)
6746 HPUX_IA64_MODE="32"
6747 ;;
6748 *ELF-64*)
6749 HPUX_IA64_MODE="64"
6750 ;;
6751 esac
6752 fi
6753 rm -rf conftest*
6754 ;;
6755*-*-irix6*)
6756 # Find out which ABI we are using.
6757 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6759 (eval $ac_compile) 2>&5
6760 ac_status=$?
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762 test $ac_status = 0; }; then
6763 if test "$lt_cv_prog_gnu_ld" = yes; then
6764 case `/usr/bin/file conftest.$ac_objext` in
6765 *32-bit*)
6766 LD="${LD-ld} -melf32bsmip"
6767 ;;
6768 *N32*)
6769 LD="${LD-ld} -melf32bmipn32"
6770 ;;
6771 *64-bit*)
6772 LD="${LD-ld} -melf64bmip"
6773 ;;
6774 esac
6775 else
6776 case `/usr/bin/file conftest.$ac_objext` in
6777 *32-bit*)
6778 LD="${LD-ld} -32"
6779 ;;
6780 *N32*)
6781 LD="${LD-ld} -n32"
6782 ;;
6783 *64-bit*)
6784 LD="${LD-ld} -64"
6785 ;;
6786 esac
6787 fi
6788 fi
6789 rm -rf conftest*
6790 ;;
6791
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006792x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Emeric Vigier2f625822012-08-06 11:09:52 -04006793s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6794 # Find out which ABI we are using.
6795 echo 'int i;' > conftest.$ac_ext
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797 (eval $ac_compile) 2>&5
6798 ac_status=$?
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; }; then
6801 case `/usr/bin/file conftest.o` in
6802 *32-bit*)
6803 case $host in
6804 x86_64-*kfreebsd*-gnu)
6805 LD="${LD-ld} -m elf_i386_fbsd"
6806 ;;
6807 x86_64-*linux*)
6808 LD="${LD-ld} -m elf_i386"
6809 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006810 powerpc64le-*linux*)
6811 LD="${LD-ld} -m elf32lppclinux"
6812 ;;
6813 powerpc64-*linux*)
Emeric Vigier2f625822012-08-06 11:09:52 -04006814 LD="${LD-ld} -m elf32ppclinux"
6815 ;;
6816 s390x-*linux*)
6817 LD="${LD-ld} -m elf_s390"
6818 ;;
6819 sparc64-*linux*)
6820 LD="${LD-ld} -m elf32_sparc"
6821 ;;
6822 esac
6823 ;;
6824 *64-bit*)
6825 case $host in
6826 x86_64-*kfreebsd*-gnu)
6827 LD="${LD-ld} -m elf_x86_64_fbsd"
6828 ;;
6829 x86_64-*linux*)
6830 LD="${LD-ld} -m elf_x86_64"
6831 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006832 powerpcle-*linux*)
6833 LD="${LD-ld} -m elf64lppc"
6834 ;;
6835 powerpc-*linux*)
Emeric Vigier2f625822012-08-06 11:09:52 -04006836 LD="${LD-ld} -m elf64ppc"
6837 ;;
6838 s390*-*linux*|s390*-*tpf*)
6839 LD="${LD-ld} -m elf64_s390"
6840 ;;
6841 sparc*-*linux*)
6842 LD="${LD-ld} -m elf64_sparc"
6843 ;;
6844 esac
6845 ;;
6846 esac
6847 fi
6848 rm -rf conftest*
6849 ;;
6850
6851*-*-sco3.2v5*)
6852 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6853 SAVE_CFLAGS="$CFLAGS"
6854 CFLAGS="$CFLAGS -belf"
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6856$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6857if ${lt_cv_cc_needs_belf+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859else
6860 ac_ext=c
6861ac_cpp='$CPP $CPPFLAGS'
6862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867/* end confdefs.h. */
6868
6869int
6870main ()
6871{
6872
6873 ;
6874 return 0;
6875}
6876_ACEOF
6877if ac_fn_c_try_link "$LINENO"; then :
6878 lt_cv_cc_needs_belf=yes
6879else
6880 lt_cv_cc_needs_belf=no
6881fi
6882rm -f core conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
6884 ac_ext=c
6885ac_cpp='$CPP $CPPFLAGS'
6886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889
6890fi
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6892$as_echo "$lt_cv_cc_needs_belf" >&6; }
6893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6895 CFLAGS="$SAVE_CFLAGS"
6896 fi
6897 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006898*-*solaris*)
Emeric Vigier2f625822012-08-06 11:09:52 -04006899 # Find out which ABI we are using.
6900 echo 'int i;' > conftest.$ac_ext
6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902 (eval $ac_compile) 2>&5
6903 ac_status=$?
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }; then
6906 case `/usr/bin/file conftest.o` in
6907 *64-bit*)
6908 case $lt_cv_prog_gnu_ld in
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006909 yes*)
6910 case $host in
6911 i?86-*-solaris*)
6912 LD="${LD-ld} -m elf_x86_64"
6913 ;;
6914 sparc*-*-solaris*)
6915 LD="${LD-ld} -m elf64_sparc"
6916 ;;
6917 esac
6918 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6919 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6920 LD="${LD-ld}_sol2"
6921 fi
6922 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04006923 *)
6924 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6925 LD="${LD-ld} -64"
6926 fi
6927 ;;
6928 esac
6929 ;;
6930 esac
6931 fi
6932 rm -rf conftest*
6933 ;;
6934esac
6935
6936need_locks="$enable_libtool_lock"
6937
6938if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}mt; ac_word=$2
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942$as_echo_n "checking for $ac_word... " >&6; }
6943if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945else
6946 if test -n "$MANIFEST_TOOL"; then
6947 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006956 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961 done
6962IFS=$as_save_IFS
6963
6964fi
6965fi
6966MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6967if test -n "$MANIFEST_TOOL"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6969$as_echo "$MANIFEST_TOOL" >&6; }
6970else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974
6975
6976fi
6977if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6978 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6979 # Extract the first word of "mt", so it can be a program name with args.
6980set dummy mt; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985else
6986 if test -n "$ac_ct_MANIFEST_TOOL"; then
6987 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006996 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001 done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7007if test -n "$ac_ct_MANIFEST_TOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7009$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7010else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7016 MANIFEST_TOOL=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022ac_tool_warned=yes ;;
7023esac
7024 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7025 fi
7026else
7027 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7028fi
7029
7030test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7032$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7033if ${lt_cv_path_mainfest_tool+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035else
7036 lt_cv_path_mainfest_tool=no
7037 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7038 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7039 cat conftest.err >&5
7040 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7041 lt_cv_path_mainfest_tool=yes
7042 fi
7043 rm -f conftest*
7044fi
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7046$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7047if test "x$lt_cv_path_mainfest_tool" != xyes; then
7048 MANIFEST_TOOL=:
7049fi
7050
7051
7052
7053
7054
7055
7056 case $host_os in
7057 rhapsody* | darwin*)
7058 if test -n "$ac_tool_prefix"; then
7059 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7060set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062$as_echo_n "checking for $ac_word... " >&6; }
7063if ${ac_cv_prog_DSYMUTIL+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065else
7066 if test -n "$DSYMUTIL"; then
7067 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007076 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081 done
7082IFS=$as_save_IFS
7083
7084fi
7085fi
7086DSYMUTIL=$ac_cv_prog_DSYMUTIL
7087if test -n "$DSYMUTIL"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7089$as_echo "$DSYMUTIL" >&6; }
7090else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092$as_echo "no" >&6; }
7093fi
7094
7095
7096fi
7097if test -z "$ac_cv_prog_DSYMUTIL"; then
7098 ac_ct_DSYMUTIL=$DSYMUTIL
7099 # Extract the first word of "dsymutil", so it can be a program name with args.
7100set dummy dsymutil; ac_word=$2
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102$as_echo_n "checking for $ac_word... " >&6; }
7103if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105else
7106 if test -n "$ac_ct_DSYMUTIL"; then
7107 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007116 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120done
7121 done
7122IFS=$as_save_IFS
7123
7124fi
7125fi
7126ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7127if test -n "$ac_ct_DSYMUTIL"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7129$as_echo "$ac_ct_DSYMUTIL" >&6; }
7130else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
7133fi
7134
7135 if test "x$ac_ct_DSYMUTIL" = x; then
7136 DSYMUTIL=":"
7137 else
7138 case $cross_compiling:$ac_tool_warned in
7139yes:)
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142ac_tool_warned=yes ;;
7143esac
7144 DSYMUTIL=$ac_ct_DSYMUTIL
7145 fi
7146else
7147 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7148fi
7149
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7152set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154$as_echo_n "checking for $ac_word... " >&6; }
7155if ${ac_cv_prog_NMEDIT+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157else
7158 if test -n "$NMEDIT"; then
7159 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007168 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172done
7173 done
7174IFS=$as_save_IFS
7175
7176fi
7177fi
7178NMEDIT=$ac_cv_prog_NMEDIT
7179if test -n "$NMEDIT"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7181$as_echo "$NMEDIT" >&6; }
7182else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184$as_echo "no" >&6; }
7185fi
7186
7187
7188fi
7189if test -z "$ac_cv_prog_NMEDIT"; then
7190 ac_ct_NMEDIT=$NMEDIT
7191 # Extract the first word of "nmedit", so it can be a program name with args.
7192set dummy nmedit; ac_word=$2
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194$as_echo_n "checking for $ac_word... " >&6; }
7195if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197else
7198 if test -n "$ac_ct_NMEDIT"; then
7199 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007208 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213 done
7214IFS=$as_save_IFS
7215
7216fi
7217fi
7218ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7219if test -n "$ac_ct_NMEDIT"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7221$as_echo "$ac_ct_NMEDIT" >&6; }
7222else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
7225fi
7226
7227 if test "x$ac_ct_NMEDIT" = x; then
7228 NMEDIT=":"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231yes:)
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234ac_tool_warned=yes ;;
7235esac
7236 NMEDIT=$ac_ct_NMEDIT
7237 fi
7238else
7239 NMEDIT="$ac_cv_prog_NMEDIT"
7240fi
7241
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7244set dummy ${ac_tool_prefix}lipo; ac_word=$2
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246$as_echo_n "checking for $ac_word... " >&6; }
7247if ${ac_cv_prog_LIPO+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249else
7250 if test -n "$LIPO"; then
7251 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7252else
7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007260 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264done
7265 done
7266IFS=$as_save_IFS
7267
7268fi
7269fi
7270LIPO=$ac_cv_prog_LIPO
7271if test -n "$LIPO"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7273$as_echo "$LIPO" >&6; }
7274else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276$as_echo "no" >&6; }
7277fi
7278
7279
7280fi
7281if test -z "$ac_cv_prog_LIPO"; then
7282 ac_ct_LIPO=$LIPO
7283 # Extract the first word of "lipo", so it can be a program name with args.
7284set dummy lipo; ac_word=$2
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286$as_echo_n "checking for $ac_word... " >&6; }
7287if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289else
7290 if test -n "$ac_ct_LIPO"; then
7291 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7292else
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007300 ac_cv_prog_ac_ct_LIPO="lipo"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305 done
7306IFS=$as_save_IFS
7307
7308fi
7309fi
7310ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7311if test -n "$ac_ct_LIPO"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7313$as_echo "$ac_ct_LIPO" >&6; }
7314else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316$as_echo "no" >&6; }
7317fi
7318
7319 if test "x$ac_ct_LIPO" = x; then
7320 LIPO=":"
7321 else
7322 case $cross_compiling:$ac_tool_warned in
7323yes:)
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326ac_tool_warned=yes ;;
7327esac
7328 LIPO=$ac_ct_LIPO
7329 fi
7330else
7331 LIPO="$ac_cv_prog_LIPO"
7332fi
7333
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7336set dummy ${ac_tool_prefix}otool; ac_word=$2
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338$as_echo_n "checking for $ac_word... " >&6; }
7339if ${ac_cv_prog_OTOOL+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341else
7342 if test -n "$OTOOL"; then
7343 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7344else
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007352 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357 done
7358IFS=$as_save_IFS
7359
7360fi
7361fi
7362OTOOL=$ac_cv_prog_OTOOL
7363if test -n "$OTOOL"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7365$as_echo "$OTOOL" >&6; }
7366else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368$as_echo "no" >&6; }
7369fi
7370
7371
7372fi
7373if test -z "$ac_cv_prog_OTOOL"; then
7374 ac_ct_OTOOL=$OTOOL
7375 # Extract the first word of "otool", so it can be a program name with args.
7376set dummy otool; ac_word=$2
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378$as_echo_n "checking for $ac_word... " >&6; }
7379if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381else
7382 if test -n "$ac_ct_OTOOL"; then
7383 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7384else
7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007392 ac_cv_prog_ac_ct_OTOOL="otool"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396done
7397 done
7398IFS=$as_save_IFS
7399
7400fi
7401fi
7402ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7403if test -n "$ac_ct_OTOOL"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7405$as_echo "$ac_ct_OTOOL" >&6; }
7406else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408$as_echo "no" >&6; }
7409fi
7410
7411 if test "x$ac_ct_OTOOL" = x; then
7412 OTOOL=":"
7413 else
7414 case $cross_compiling:$ac_tool_warned in
7415yes:)
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418ac_tool_warned=yes ;;
7419esac
7420 OTOOL=$ac_ct_OTOOL
7421 fi
7422else
7423 OTOOL="$ac_cv_prog_OTOOL"
7424fi
7425
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7428set dummy ${ac_tool_prefix}otool64; ac_word=$2
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430$as_echo_n "checking for $ac_word... " >&6; }
7431if ${ac_cv_prog_OTOOL64+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433else
7434 if test -n "$OTOOL64"; then
7435 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7436else
7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007444 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448done
7449 done
7450IFS=$as_save_IFS
7451
7452fi
7453fi
7454OTOOL64=$ac_cv_prog_OTOOL64
7455if test -n "$OTOOL64"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7457$as_echo "$OTOOL64" >&6; }
7458else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460$as_echo "no" >&6; }
7461fi
7462
7463
7464fi
7465if test -z "$ac_cv_prog_OTOOL64"; then
7466 ac_ct_OTOOL64=$OTOOL64
7467 # Extract the first word of "otool64", so it can be a program name with args.
7468set dummy otool64; ac_word=$2
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470$as_echo_n "checking for $ac_word... " >&6; }
7471if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473else
7474 if test -n "$ac_ct_OTOOL64"; then
7475 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7476else
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007484 ac_cv_prog_ac_ct_OTOOL64="otool64"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488done
7489 done
7490IFS=$as_save_IFS
7491
7492fi
7493fi
7494ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7495if test -n "$ac_ct_OTOOL64"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7497$as_echo "$ac_ct_OTOOL64" >&6; }
7498else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500$as_echo "no" >&6; }
7501fi
7502
7503 if test "x$ac_ct_OTOOL64" = x; then
7504 OTOOL64=":"
7505 else
7506 case $cross_compiling:$ac_tool_warned in
7507yes:)
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510ac_tool_warned=yes ;;
7511esac
7512 OTOOL64=$ac_ct_OTOOL64
7513 fi
7514else
7515 OTOOL64="$ac_cv_prog_OTOOL64"
7516fi
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7545$as_echo_n "checking for -single_module linker flag... " >&6; }
7546if ${lt_cv_apple_cc_single_mod+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548else
7549 lt_cv_apple_cc_single_mod=no
7550 if test -z "${LT_MULTI_MODULE}"; then
7551 # By default we will add the -single_module flag. You can override
7552 # by either setting the environment variable LT_MULTI_MODULE
7553 # non-empty at configure time, or by adding -multi_module to the
7554 # link flags.
7555 rm -rf libconftest.dylib*
7556 echo "int foo(void){return 1;}" > conftest.c
7557 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7558-dynamiclib -Wl,-single_module conftest.c" >&5
7559 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7561 _lt_result=$?
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007562 # If there is a non-empty error log, and "single_module"
7563 # appears in it, assume the flag caused a linker warning
7564 if test -s conftest.err && $GREP single_module conftest.err; then
7565 cat conftest.err >&5
7566 # Otherwise, if the output was created with a 0 exit code from
7567 # the compiler, it worked.
7568 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007569 lt_cv_apple_cc_single_mod=yes
7570 else
7571 cat conftest.err >&5
7572 fi
7573 rm -rf libconftest.dylib*
7574 rm -f conftest.*
7575 fi
7576fi
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7578$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007579
Emeric Vigier2f625822012-08-06 11:09:52 -04007580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7581$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7582if ${lt_cv_ld_exported_symbols_list+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584else
7585 lt_cv_ld_exported_symbols_list=no
7586 save_LDFLAGS=$LDFLAGS
7587 echo "_main" > conftest.sym
7588 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h. */
7591
7592int
7593main ()
7594{
7595
7596 ;
7597 return 0;
7598}
7599_ACEOF
7600if ac_fn_c_try_link "$LINENO"; then :
7601 lt_cv_ld_exported_symbols_list=yes
7602else
7603 lt_cv_ld_exported_symbols_list=no
7604fi
7605rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 LDFLAGS="$save_LDFLAGS"
7608
7609fi
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7611$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007612
Emeric Vigier2f625822012-08-06 11:09:52 -04007613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7614$as_echo_n "checking for -force_load linker flag... " >&6; }
7615if ${lt_cv_ld_force_load+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617else
7618 lt_cv_ld_force_load=no
7619 cat > conftest.c << _LT_EOF
7620int forced_loaded() { return 2;}
7621_LT_EOF
7622 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7623 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7624 echo "$AR cru libconftest.a conftest.o" >&5
7625 $AR cru libconftest.a conftest.o 2>&5
7626 echo "$RANLIB libconftest.a" >&5
7627 $RANLIB libconftest.a 2>&5
7628 cat > conftest.c << _LT_EOF
7629int main() { return 0;}
7630_LT_EOF
7631 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7632 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7633 _lt_result=$?
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007634 if test -s conftest.err && $GREP force_load conftest.err; then
7635 cat conftest.err >&5
7636 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007637 lt_cv_ld_force_load=yes
7638 else
7639 cat conftest.err >&5
7640 fi
7641 rm -f conftest.err libconftest.a conftest conftest.c
7642 rm -rf conftest.dSYM
7643
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7646$as_echo "$lt_cv_ld_force_load" >&6; }
7647 case $host_os in
7648 rhapsody* | darwin1.[012])
7649 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7650 darwin1.*)
7651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7652 darwin*) # darwin 5.x on
7653 # if running on 10.5 or later, the deployment target defaults
7654 # to the OS version, if on x86, and 10.4, the deployment
7655 # target defaults to 10.4. Don't you love it?
7656 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7657 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7659 10.[012]*)
7660 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7661 10.*)
7662 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7663 esac
7664 ;;
7665 esac
7666 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7667 _lt_dar_single_mod='$single_module'
7668 fi
7669 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7670 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7671 else
7672 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7673 fi
7674 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7675 _lt_dsymutil='~$DSYMUTIL $lib || :'
7676 else
7677 _lt_dsymutil=
7678 fi
7679 ;;
7680 esac
7681
7682
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7684$as_echo_n "checking for ANSI C header files... " >&6; }
7685if ${ac_cv_header_stdc+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687else
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h. */
7690#include <stdlib.h>
7691#include <stdarg.h>
7692#include <string.h>
7693#include <float.h>
7694
7695int
7696main ()
7697{
7698
7699 ;
7700 return 0;
7701}
7702_ACEOF
7703if ac_fn_c_try_compile "$LINENO"; then :
7704 ac_cv_header_stdc=yes
7705else
7706 ac_cv_header_stdc=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709
7710if test $ac_cv_header_stdc = yes; then
7711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h. */
7714#include <string.h>
7715
7716_ACEOF
7717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7718 $EGREP "memchr" >/dev/null 2>&1; then :
7719
7720else
7721 ac_cv_header_stdc=no
7722fi
7723rm -f conftest*
7724
7725fi
7726
7727if test $ac_cv_header_stdc = yes; then
7728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h. */
7731#include <stdlib.h>
7732
7733_ACEOF
7734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7735 $EGREP "free" >/dev/null 2>&1; then :
7736
7737else
7738 ac_cv_header_stdc=no
7739fi
7740rm -f conftest*
7741
7742fi
7743
7744if test $ac_cv_header_stdc = yes; then
7745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7746 if test "$cross_compiling" = yes; then :
7747 :
7748else
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h. */
7751#include <ctype.h>
7752#include <stdlib.h>
7753#if ((' ' & 0x0FF) == 0x020)
7754# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7755# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7756#else
7757# define ISLOWER(c) \
7758 (('a' <= (c) && (c) <= 'i') \
7759 || ('j' <= (c) && (c) <= 'r') \
7760 || ('s' <= (c) && (c) <= 'z'))
7761# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7762#endif
7763
7764#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7765int
7766main ()
7767{
7768 int i;
7769 for (i = 0; i < 256; i++)
7770 if (XOR (islower (i), ISLOWER (i))
7771 || toupper (i) != TOUPPER (i))
7772 return 2;
7773 return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_run "$LINENO"; then :
7777
7778else
7779 ac_cv_header_stdc=no
7780fi
7781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7782 conftest.$ac_objext conftest.beam conftest.$ac_ext
7783fi
7784
7785fi
7786fi
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7788$as_echo "$ac_cv_header_stdc" >&6; }
7789if test $ac_cv_header_stdc = yes; then
7790
7791$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7792
7793fi
7794
7795# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7796for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7797 inttypes.h stdint.h unistd.h
7798do :
7799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7800ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7801"
7802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7803 cat >>confdefs.h <<_ACEOF
7804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805_ACEOF
7806
7807fi
7808
7809done
7810
7811
7812for ac_header in dlfcn.h
7813do :
7814 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7815"
7816if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7817 cat >>confdefs.h <<_ACEOF
7818#define HAVE_DLFCN_H 1
7819_ACEOF
7820
7821fi
7822
7823done
7824
7825
7826
7827
7828func_stripname_cnf ()
7829{
7830 case ${2} in
7831 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7832 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7833 esac
7834} # func_stripname_cnf
7835
7836
7837
7838
7839
7840# Set options
7841
7842
7843
7844 enable_dlopen=no
7845
7846
Emeric Vigier2f625822012-08-06 11:09:52 -04007847
7848 # Check whether --enable-shared was given.
7849if test "${enable_shared+set}" = set; then :
7850 enableval=$enable_shared; p=${PACKAGE-default}
7851 case $enableval in
7852 yes) enable_shared=yes ;;
7853 no) enable_shared=no ;;
7854 *)
7855 enable_shared=no
7856 # Look at the argument we got. We use all the common list separators.
7857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7858 for pkg in $enableval; do
7859 IFS="$lt_save_ifs"
7860 if test "X$pkg" = "X$p"; then
7861 enable_shared=yes
7862 fi
7863 done
7864 IFS="$lt_save_ifs"
7865 ;;
7866 esac
7867else
7868 enable_shared=yes
7869fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 # Check whether --enable-static was given.
7880if test "${enable_static+set}" = set; then :
7881 enableval=$enable_static; p=${PACKAGE-default}
7882 case $enableval in
7883 yes) enable_static=yes ;;
7884 no) enable_static=no ;;
7885 *)
7886 enable_static=no
7887 # Look at the argument we got. We use all the common list separators.
7888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7889 for pkg in $enableval; do
7890 IFS="$lt_save_ifs"
7891 if test "X$pkg" = "X$p"; then
7892 enable_static=yes
7893 fi
7894 done
7895 IFS="$lt_save_ifs"
7896 ;;
7897 esac
7898else
7899 enable_static=yes
7900fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911# Check whether --with-pic was given.
7912if test "${with_pic+set}" = set; then :
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007913 withval=$with_pic; lt_p=${PACKAGE-default}
7914 case $withval in
7915 yes|no) pic_mode=$withval ;;
7916 *)
7917 pic_mode=default
7918 # Look at the argument we got. We use all the common list separators.
7919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920 for lt_pkg in $withval; do
7921 IFS="$lt_save_ifs"
7922 if test "X$lt_pkg" = "X$lt_p"; then
7923 pic_mode=yes
7924 fi
7925 done
7926 IFS="$lt_save_ifs"
7927 ;;
7928 esac
Emeric Vigier2f625822012-08-06 11:09:52 -04007929else
7930 pic_mode=default
7931fi
7932
7933
7934test -z "$pic_mode" && pic_mode=default
7935
7936
7937
7938
7939
7940
7941
7942 # Check whether --enable-fast-install was given.
7943if test "${enable_fast_install+set}" = set; then :
7944 enableval=$enable_fast_install; p=${PACKAGE-default}
7945 case $enableval in
7946 yes) enable_fast_install=yes ;;
7947 no) enable_fast_install=no ;;
7948 *)
7949 enable_fast_install=no
7950 # Look at the argument we got. We use all the common list separators.
7951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7952 for pkg in $enableval; do
7953 IFS="$lt_save_ifs"
7954 if test "X$pkg" = "X$p"; then
7955 enable_fast_install=yes
7956 fi
7957 done
7958 IFS="$lt_save_ifs"
7959 ;;
7960 esac
7961else
7962 enable_fast_install=yes
7963fi
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975# This can be used to rebuild libtool when needed
7976LIBTOOL_DEPS="$ltmain"
7977
7978# Always use our own libtool.
7979LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008006
8007
8008
8009
Emeric Vigier2f625822012-08-06 11:09:52 -04008010test -z "$LN_S" && LN_S="ln -s"
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025if test -n "${ZSH_VERSION+set}" ; then
8026 setopt NO_GLOB_SUBST
8027fi
8028
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8030$as_echo_n "checking for objdir... " >&6; }
8031if ${lt_cv_objdir+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033else
8034 rm -f .libs 2>/dev/null
8035mkdir .libs 2>/dev/null
8036if test -d .libs; then
8037 lt_cv_objdir=.libs
8038else
8039 # MS-DOS does not allow filenames that begin with a dot.
8040 lt_cv_objdir=_libs
8041fi
8042rmdir .libs 2>/dev/null
8043fi
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8045$as_echo "$lt_cv_objdir" >&6; }
8046objdir=$lt_cv_objdir
8047
8048
8049
8050
8051
8052cat >>confdefs.h <<_ACEOF
8053#define LT_OBJDIR "$lt_cv_objdir/"
8054_ACEOF
8055
8056
8057
8058
8059case $host_os in
8060aix3*)
8061 # AIX sometimes has problems with the GCC collect2 program. For some
8062 # reason, if we set the COLLECT_NAMES environment variable, the problems
8063 # vanish in a puff of smoke.
8064 if test "X${COLLECT_NAMES+set}" != Xset; then
8065 COLLECT_NAMES=
8066 export COLLECT_NAMES
8067 fi
8068 ;;
8069esac
8070
8071# Global variables:
8072ofile=libtool
8073can_build_shared=yes
8074
8075# All known linkers require a `.a' archive for static linking (except MSVC,
8076# which needs '.lib').
8077libext=a
8078
8079with_gnu_ld="$lt_cv_prog_gnu_ld"
8080
8081old_CC="$CC"
8082old_CFLAGS="$CFLAGS"
8083
8084# Set sane defaults for various variables
8085test -z "$CC" && CC=cc
8086test -z "$LTCC" && LTCC=$CC
8087test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8088test -z "$LD" && LD=ld
8089test -z "$ac_objext" && ac_objext=o
8090
8091for cc_temp in $compiler""; do
8092 case $cc_temp in
8093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095 \-*) ;;
8096 *) break;;
8097 esac
8098done
8099cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8100
8101
8102# Only perform the check for file, if the check method requires it
8103test -z "$MAGIC_CMD" && MAGIC_CMD=file
8104case $deplibs_check_method in
8105file_magic*)
8106 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8108$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8109if ${lt_cv_path_MAGIC_CMD+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111else
8112 case $MAGIC_CMD in
8113[\\/*] | ?:[\\/]*)
8114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8115 ;;
8116*)
8117 lt_save_MAGIC_CMD="$MAGIC_CMD"
8118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8120 for ac_dir in $ac_dummy; do
8121 IFS="$lt_save_ifs"
8122 test -z "$ac_dir" && ac_dir=.
8123 if test -f $ac_dir/${ac_tool_prefix}file; then
8124 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8125 if test -n "$file_magic_test_file"; then
8126 case $deplibs_check_method in
8127 "file_magic "*)
8128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8131 $EGREP "$file_magic_regex" > /dev/null; then
8132 :
8133 else
8134 cat <<_LT_EOF 1>&2
8135
8136*** Warning: the command libtool uses to detect shared libraries,
8137*** $file_magic_cmd, produces output that libtool cannot recognize.
8138*** The result is that libtool may fail to recognize shared libraries
8139*** as such. This will affect the creation of libtool libraries that
8140*** depend on shared libraries, but programs linked with such libtool
8141*** libraries will work regardless of this problem. Nevertheless, you
8142*** may want to report the problem to your system manager and/or to
8143*** bug-libtool@gnu.org
8144
8145_LT_EOF
8146 fi ;;
8147 esac
8148 fi
8149 break
8150 fi
8151 done
8152 IFS="$lt_save_ifs"
8153 MAGIC_CMD="$lt_save_MAGIC_CMD"
8154 ;;
8155esac
8156fi
8157
8158MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159if test -n "$MAGIC_CMD"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8161$as_echo "$MAGIC_CMD" >&6; }
8162else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
8165fi
8166
8167
8168
8169
8170
8171if test -z "$lt_cv_path_MAGIC_CMD"; then
8172 if test -n "$ac_tool_prefix"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8174$as_echo_n "checking for file... " >&6; }
8175if ${lt_cv_path_MAGIC_CMD+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177else
8178 case $MAGIC_CMD in
8179[\\/*] | ?:[\\/]*)
8180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8181 ;;
8182*)
8183 lt_save_MAGIC_CMD="$MAGIC_CMD"
8184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8186 for ac_dir in $ac_dummy; do
8187 IFS="$lt_save_ifs"
8188 test -z "$ac_dir" && ac_dir=.
8189 if test -f $ac_dir/file; then
8190 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8191 if test -n "$file_magic_test_file"; then
8192 case $deplibs_check_method in
8193 "file_magic "*)
8194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8197 $EGREP "$file_magic_regex" > /dev/null; then
8198 :
8199 else
8200 cat <<_LT_EOF 1>&2
8201
8202*** Warning: the command libtool uses to detect shared libraries,
8203*** $file_magic_cmd, produces output that libtool cannot recognize.
8204*** The result is that libtool may fail to recognize shared libraries
8205*** as such. This will affect the creation of libtool libraries that
8206*** depend on shared libraries, but programs linked with such libtool
8207*** libraries will work regardless of this problem. Nevertheless, you
8208*** may want to report the problem to your system manager and/or to
8209*** bug-libtool@gnu.org
8210
8211_LT_EOF
8212 fi ;;
8213 esac
8214 fi
8215 break
8216 fi
8217 done
8218 IFS="$lt_save_ifs"
8219 MAGIC_CMD="$lt_save_MAGIC_CMD"
8220 ;;
8221esac
8222fi
8223
8224MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8225if test -n "$MAGIC_CMD"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8227$as_echo "$MAGIC_CMD" >&6; }
8228else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230$as_echo "no" >&6; }
8231fi
8232
8233
8234 else
8235 MAGIC_CMD=:
8236 fi
8237fi
8238
8239 fi
8240 ;;
8241esac
8242
8243# Use C for the default configuration in the libtool script
8244
8245lt_save_CC="$CC"
8246ac_ext=c
8247ac_cpp='$CPP $CPPFLAGS'
8248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252
8253# Source file extension for C test sources.
8254ac_ext=c
8255
8256# Object file extension for compiled C test sources.
8257objext=o
8258objext=$objext
8259
8260# Code to be used in simple compile tests
8261lt_simple_compile_test_code="int some_variable = 0;"
8262
8263# Code to be used in simple link tests
8264lt_simple_link_test_code='int main(){return(0);}'
8265
8266
8267
8268
8269
8270
8271
8272# If no C compiler was specified, use CC.
8273LTCC=${LTCC-"$CC"}
8274
8275# If no C compiler flags were specified, use CFLAGS.
8276LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8277
8278# Allow CC to be a program name with arguments.
8279compiler=$CC
8280
8281# Save the default compiler, since it gets overwritten when the other
8282# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8283compiler_DEFAULT=$CC
8284
8285# save warnings/boilerplate of simple test code
8286ac_outfile=conftest.$ac_objext
8287echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8288eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8289_lt_compiler_boilerplate=`cat conftest.err`
8290$RM conftest*
8291
8292ac_outfile=conftest.$ac_objext
8293echo "$lt_simple_link_test_code" >conftest.$ac_ext
8294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8295_lt_linker_boilerplate=`cat conftest.err`
8296$RM -r conftest*
8297
8298
8299## CAVEAT EMPTOR:
8300## There is no encapsulation within the following macros, do not change
8301## the running order or otherwise move them around unless you know exactly
8302## what you are doing...
8303if test -n "$compiler"; then
8304
8305lt_prog_compiler_no_builtin_flag=
8306
8307if test "$GCC" = yes; then
8308 case $cc_basename in
8309 nvcc*)
8310 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8311 *)
8312 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8313 esac
8314
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8316$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8317if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319else
8320 lt_cv_prog_compiler_rtti_exceptions=no
8321 ac_outfile=conftest.$ac_objext
8322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323 lt_compiler_flag="-fno-rtti -fno-exceptions"
8324 # Insert the option either (1) after the last *FLAGS variable, or
8325 # (2) before a word containing "conftest.", or (3) at the end.
8326 # Note that $ac_compile itself does not contain backslashes and begins
8327 # with a dollar sign (not a hyphen), so the echo should work correctly.
8328 # The option is referenced via a variable to avoid confusing sed.
8329 lt_compile=`echo "$ac_compile" | $SED \
8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332 -e 's:$: $lt_compiler_flag:'`
8333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8334 (eval "$lt_compile" 2>conftest.err)
8335 ac_status=$?
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 if (exit $ac_status) && test -s "$ac_outfile"; then
8339 # The compiler can only warn and ignore the option if not recognized
8340 # So say no if there are warnings other than the usual output.
8341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8344 lt_cv_prog_compiler_rtti_exceptions=yes
8345 fi
8346 fi
8347 $RM conftest*
8348
8349fi
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8351$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8352
8353if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8354 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8355else
8356 :
8357fi
8358
8359fi
8360
8361
8362
8363
8364
8365
8366 lt_prog_compiler_wl=
8367lt_prog_compiler_pic=
8368lt_prog_compiler_static=
8369
8370
8371 if test "$GCC" = yes; then
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_static='-static'
8374
8375 case $host_os in
8376 aix*)
8377 # All AIX code is PIC.
8378 if test "$host_cpu" = ia64; then
8379 # AIX 5 now supports IA64 processor
8380 lt_prog_compiler_static='-Bstatic'
8381 fi
8382 ;;
8383
8384 amigaos*)
8385 case $host_cpu in
8386 powerpc)
8387 # see comment about AmigaOS4 .so support
8388 lt_prog_compiler_pic='-fPIC'
8389 ;;
8390 m68k)
8391 # FIXME: we need at least 68020 code to build shared libraries, but
8392 # adding the `-m68020' flag to GCC prevents building anything better,
8393 # like `-m68040'.
8394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8395 ;;
8396 esac
8397 ;;
8398
8399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8400 # PIC is the default for these OSes.
8401 ;;
8402
8403 mingw* | cygwin* | pw32* | os2* | cegcc*)
8404 # This hack is so that the source file can tell whether it is being
8405 # built for inclusion in a dll (and should export symbols for example).
8406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8407 # (--disable-auto-import) libraries
8408 lt_prog_compiler_pic='-DDLL_EXPORT'
8409 ;;
8410
8411 darwin* | rhapsody*)
8412 # PIC is the default on this platform
8413 # Common symbols not allowed in MH_DYLIB files
8414 lt_prog_compiler_pic='-fno-common'
8415 ;;
8416
8417 haiku*)
8418 # PIC is the default for Haiku.
8419 # The "-static" flag exists, but is broken.
8420 lt_prog_compiler_static=
8421 ;;
8422
8423 hpux*)
8424 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8425 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8426 # sets the default TLS model and affects inlining.
8427 case $host_cpu in
8428 hppa*64*)
8429 # +Z the default
8430 ;;
8431 *)
8432 lt_prog_compiler_pic='-fPIC'
8433 ;;
8434 esac
8435 ;;
8436
8437 interix[3-9]*)
8438 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8439 # Instead, we relocate shared libraries at runtime.
8440 ;;
8441
8442 msdosdjgpp*)
8443 # Just because we use GCC doesn't mean we suddenly get shared libraries
8444 # on systems that don't support them.
8445 lt_prog_compiler_can_build_shared=no
8446 enable_shared=no
8447 ;;
8448
8449 *nto* | *qnx*)
8450 # QNX uses GNU C++, but need to define -shared option too, otherwise
8451 # it will coredump.
8452 lt_prog_compiler_pic='-fPIC -shared'
8453 ;;
8454
8455 sysv4*MP*)
8456 if test -d /usr/nec; then
8457 lt_prog_compiler_pic=-Kconform_pic
8458 fi
8459 ;;
8460
8461 *)
8462 lt_prog_compiler_pic='-fPIC'
8463 ;;
8464 esac
8465
8466 case $cc_basename in
8467 nvcc*) # Cuda Compiler Driver 2.2
8468 lt_prog_compiler_wl='-Xlinker '
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008469 if test -n "$lt_prog_compiler_pic"; then
8470 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8471 fi
Emeric Vigier2f625822012-08-06 11:09:52 -04008472 ;;
8473 esac
8474 else
8475 # PORTME Check for flag to pass linker flags through the system compiler.
8476 case $host_os in
8477 aix*)
8478 lt_prog_compiler_wl='-Wl,'
8479 if test "$host_cpu" = ia64; then
8480 # AIX 5 now supports IA64 processor
8481 lt_prog_compiler_static='-Bstatic'
8482 else
8483 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8484 fi
8485 ;;
8486
8487 mingw* | cygwin* | pw32* | os2* | cegcc*)
8488 # This hack is so that the source file can tell whether it is being
8489 # built for inclusion in a dll (and should export symbols for example).
8490 lt_prog_compiler_pic='-DDLL_EXPORT'
8491 ;;
8492
8493 hpux9* | hpux10* | hpux11*)
8494 lt_prog_compiler_wl='-Wl,'
8495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8496 # not for PA HP-UX.
8497 case $host_cpu in
8498 hppa*64*|ia64*)
8499 # +Z the default
8500 ;;
8501 *)
8502 lt_prog_compiler_pic='+Z'
8503 ;;
8504 esac
8505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8506 lt_prog_compiler_static='${wl}-a ${wl}archive'
8507 ;;
8508
8509 irix5* | irix6* | nonstopux*)
8510 lt_prog_compiler_wl='-Wl,'
8511 # PIC (with -KPIC) is the default.
8512 lt_prog_compiler_static='-non_shared'
8513 ;;
8514
8515 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8516 case $cc_basename in
8517 # old Intel for x86_64 which still supported -KPIC.
8518 ecc*)
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-static'
8522 ;;
8523 # icc used to be incompatible with GCC.
8524 # ICC 10 doesn't accept -KPIC any more.
8525 icc* | ifort*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-fPIC'
8528 lt_prog_compiler_static='-static'
8529 ;;
8530 # Lahey Fortran 8.1.
8531 lf95*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='--shared'
8534 lt_prog_compiler_static='--static'
8535 ;;
8536 nagfor*)
8537 # NAG Fortran compiler
8538 lt_prog_compiler_wl='-Wl,-Wl,,'
8539 lt_prog_compiler_pic='-PIC'
8540 lt_prog_compiler_static='-Bstatic'
8541 ;;
8542 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8543 # Portland Group compilers (*not* the Pentium gcc compiler,
8544 # which looks to be a dead project)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='-fpic'
8547 lt_prog_compiler_static='-Bstatic'
8548 ;;
8549 ccc*)
8550 lt_prog_compiler_wl='-Wl,'
8551 # All Alpha code is PIC.
8552 lt_prog_compiler_static='-non_shared'
8553 ;;
8554 xl* | bgxl* | bgf* | mpixl*)
8555 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8556 lt_prog_compiler_wl='-Wl,'
8557 lt_prog_compiler_pic='-qpic'
8558 lt_prog_compiler_static='-qstaticlink'
8559 ;;
8560 *)
8561 case `$CC -V 2>&1 | sed 5q` in
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008562 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Emeric Vigier2f625822012-08-06 11:09:52 -04008563 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 lt_prog_compiler_wl=''
8567 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008568 *Sun\ F* | *Sun*Fortran*)
8569 lt_prog_compiler_pic='-KPIC'
8570 lt_prog_compiler_static='-Bstatic'
8571 lt_prog_compiler_wl='-Qoption ld '
8572 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04008573 *Sun\ C*)
8574 # Sun C 5.9
8575 lt_prog_compiler_pic='-KPIC'
8576 lt_prog_compiler_static='-Bstatic'
8577 lt_prog_compiler_wl='-Wl,'
8578 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008579 *Intel*\ [CF]*Compiler*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-fPIC'
8582 lt_prog_compiler_static='-static'
8583 ;;
8584 *Portland\ Group*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-fpic'
8587 lt_prog_compiler_static='-Bstatic'
8588 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04008589 esac
8590 ;;
8591 esac
8592 ;;
8593
8594 newsos6)
8595 lt_prog_compiler_pic='-KPIC'
8596 lt_prog_compiler_static='-Bstatic'
8597 ;;
8598
8599 *nto* | *qnx*)
8600 # QNX uses GNU C++, but need to define -shared option too, otherwise
8601 # it will coredump.
8602 lt_prog_compiler_pic='-fPIC -shared'
8603 ;;
8604
8605 osf3* | osf4* | osf5*)
8606 lt_prog_compiler_wl='-Wl,'
8607 # All OSF/1 code is PIC.
8608 lt_prog_compiler_static='-non_shared'
8609 ;;
8610
8611 rdos*)
8612 lt_prog_compiler_static='-non_shared'
8613 ;;
8614
8615 solaris*)
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
8618 case $cc_basename in
8619 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8620 lt_prog_compiler_wl='-Qoption ld ';;
8621 *)
8622 lt_prog_compiler_wl='-Wl,';;
8623 esac
8624 ;;
8625
8626 sunos4*)
8627 lt_prog_compiler_wl='-Qoption ld '
8628 lt_prog_compiler_pic='-PIC'
8629 lt_prog_compiler_static='-Bstatic'
8630 ;;
8631
8632 sysv4 | sysv4.2uw2* | sysv4.3*)
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='-KPIC'
8635 lt_prog_compiler_static='-Bstatic'
8636 ;;
8637
8638 sysv4*MP*)
8639 if test -d /usr/nec ;then
8640 lt_prog_compiler_pic='-Kconform_pic'
8641 lt_prog_compiler_static='-Bstatic'
8642 fi
8643 ;;
8644
8645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 unicos*)
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_can_build_shared=no
8654 ;;
8655
8656 uts4*)
8657 lt_prog_compiler_pic='-pic'
8658 lt_prog_compiler_static='-Bstatic'
8659 ;;
8660
8661 *)
8662 lt_prog_compiler_can_build_shared=no
8663 ;;
8664 esac
8665 fi
8666
8667case $host_os in
8668 # For platforms which do not support PIC, -DPIC is meaningless:
8669 *djgpp*)
8670 lt_prog_compiler_pic=
8671 ;;
8672 *)
8673 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8674 ;;
8675esac
8676
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8679if ${lt_cv_prog_compiler_pic+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681else
8682 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8683fi
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8685$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8686lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8687
8688#
8689# Check to make sure the PIC flag actually works.
8690#
8691if test -n "$lt_prog_compiler_pic"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8693$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8694if ${lt_cv_prog_compiler_pic_works+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696else
8697 lt_cv_prog_compiler_pic_works=no
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8701 # Insert the option either (1) after the last *FLAGS variable, or
8702 # (2) before a word containing "conftest.", or (3) at the end.
8703 # Note that $ac_compile itself does not contain backslashes and begins
8704 # with a dollar sign (not a hyphen), so the echo should work correctly.
8705 # The option is referenced via a variable to avoid confusing sed.
8706 lt_compile=`echo "$ac_compile" | $SED \
8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709 -e 's:$: $lt_compiler_flag:'`
8710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8711 (eval "$lt_compile" 2>conftest.err)
8712 ac_status=$?
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 if (exit $ac_status) && test -s "$ac_outfile"; then
8716 # The compiler can only warn and ignore the option if not recognized
8717 # So say no if there are warnings other than the usual output.
8718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8721 lt_cv_prog_compiler_pic_works=yes
8722 fi
8723 fi
8724 $RM conftest*
8725
8726fi
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8728$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8729
8730if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8731 case $lt_prog_compiler_pic in
8732 "" | " "*) ;;
8733 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8734 esac
8735else
8736 lt_prog_compiler_pic=
8737 lt_prog_compiler_can_build_shared=no
8738fi
8739
8740fi
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752#
8753# Check to make sure the static flag actually works.
8754#
8755wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8757$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8758if ${lt_cv_prog_compiler_static_works+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760else
8761 lt_cv_prog_compiler_static_works=no
8762 save_LDFLAGS="$LDFLAGS"
8763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8766 # The linker can only warn and ignore the option if not recognized
8767 # So say no if there are warnings
8768 if test -s conftest.err; then
8769 # Append any errors to the config.log.
8770 cat conftest.err 1>&5
8771 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8773 if diff conftest.exp conftest.er2 >/dev/null; then
8774 lt_cv_prog_compiler_static_works=yes
8775 fi
8776 else
8777 lt_cv_prog_compiler_static_works=yes
8778 fi
8779 fi
8780 $RM -r conftest*
8781 LDFLAGS="$save_LDFLAGS"
8782
8783fi
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8785$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8786
8787if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8788 :
8789else
8790 lt_prog_compiler_static=
8791fi
8792
8793
8794
8795
8796
8797
8798
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8800$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8801if ${lt_cv_prog_compiler_c_o+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803else
8804 lt_cv_prog_compiler_c_o=no
8805 $RM -r conftest 2>/dev/null
8806 mkdir conftest
8807 cd conftest
8808 mkdir out
8809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810
8811 lt_compiler_flag="-o out/conftest2.$ac_objext"
8812 # Insert the option either (1) after the last *FLAGS variable, or
8813 # (2) before a word containing "conftest.", or (3) at the end.
8814 # Note that $ac_compile itself does not contain backslashes and begins
8815 # with a dollar sign (not a hyphen), so the echo should work correctly.
8816 lt_compile=`echo "$ac_compile" | $SED \
8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819 -e 's:$: $lt_compiler_flag:'`
8820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8821 (eval "$lt_compile" 2>out/conftest.err)
8822 ac_status=$?
8823 cat out/conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8826 then
8827 # The compiler can only warn and ignore the option if not recognized
8828 # So say no if there are warnings
8829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8832 lt_cv_prog_compiler_c_o=yes
8833 fi
8834 fi
8835 chmod u+w . 2>&5
8836 $RM conftest*
8837 # SGI C++ compiler will create directory out/ii_files/ for
8838 # template instantiation
8839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8840 $RM out/* && rmdir out
8841 cd ..
8842 $RM -r conftest
8843 $RM conftest*
8844
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8847$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8848
8849
8850
8851
8852
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8855$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8856if ${lt_cv_prog_compiler_c_o+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858else
8859 lt_cv_prog_compiler_c_o=no
8860 $RM -r conftest 2>/dev/null
8861 mkdir conftest
8862 cd conftest
8863 mkdir out
8864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8865
8866 lt_compiler_flag="-o out/conftest2.$ac_objext"
8867 # Insert the option either (1) after the last *FLAGS variable, or
8868 # (2) before a word containing "conftest.", or (3) at the end.
8869 # Note that $ac_compile itself does not contain backslashes and begins
8870 # with a dollar sign (not a hyphen), so the echo should work correctly.
8871 lt_compile=`echo "$ac_compile" | $SED \
8872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8874 -e 's:$: $lt_compiler_flag:'`
8875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8876 (eval "$lt_compile" 2>out/conftest.err)
8877 ac_status=$?
8878 cat out/conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8881 then
8882 # The compiler can only warn and ignore the option if not recognized
8883 # So say no if there are warnings
8884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8887 lt_cv_prog_compiler_c_o=yes
8888 fi
8889 fi
8890 chmod u+w . 2>&5
8891 $RM conftest*
8892 # SGI C++ compiler will create directory out/ii_files/ for
8893 # template instantiation
8894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8895 $RM out/* && rmdir out
8896 cd ..
8897 $RM -r conftest
8898 $RM conftest*
8899
8900fi
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8902$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8903
8904
8905
8906
8907hard_links="nottested"
8908if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8909 # do not overwrite the value of need_locks provided by the user
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8911$as_echo_n "checking if we can lock with hard links... " >&6; }
8912 hard_links=yes
8913 $RM conftest*
8914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8915 touch conftest.a
8916 ln conftest.a conftest.b 2>&5 || hard_links=no
8917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8919$as_echo "$hard_links" >&6; }
8920 if test "$hard_links" = no; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8922$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8923 need_locks=warn
8924 fi
8925else
8926 need_locks=no
8927fi
8928
8929
8930
8931
8932
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8935$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8936
8937 runpath_var=
8938 allow_undefined_flag=
8939 always_export_symbols=no
8940 archive_cmds=
8941 archive_expsym_cmds=
8942 compiler_needs_object=no
8943 enable_shared_with_static_runtimes=no
8944 export_dynamic_flag_spec=
8945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8946 hardcode_automatic=no
8947 hardcode_direct=no
8948 hardcode_direct_absolute=no
8949 hardcode_libdir_flag_spec=
Emeric Vigier2f625822012-08-06 11:09:52 -04008950 hardcode_libdir_separator=
8951 hardcode_minus_L=no
8952 hardcode_shlibpath_var=unsupported
8953 inherit_rpath=no
8954 link_all_deplibs=unknown
8955 module_cmds=
8956 module_expsym_cmds=
8957 old_archive_from_new_cmds=
8958 old_archive_from_expsyms_cmds=
8959 thread_safe_flag_spec=
8960 whole_archive_flag_spec=
8961 # include_expsyms should be a list of space-separated symbols to be *always*
8962 # included in the symbol list
8963 include_expsyms=
8964 # exclude_expsyms can be an extended regexp of symbols to exclude
8965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8967 # as well as any symbol that contains `d'.
8968 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8970 # platforms (ab)use it in PIC code, but their linkers get confused if
8971 # the symbol is explicitly referenced. Since portable code cannot
8972 # rely on this symbol name, it's probably fine to never include it in
8973 # preloaded symbol tables.
8974 # Exclude shared library initialization/finalization symbols.
8975 extract_expsyms_cmds=
8976
8977 case $host_os in
8978 cygwin* | mingw* | pw32* | cegcc*)
8979 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8980 # When not using gcc, we currently assume that we are using
8981 # Microsoft Visual C++.
8982 if test "$GCC" != yes; then
8983 with_gnu_ld=no
8984 fi
8985 ;;
8986 interix*)
8987 # we just hope/assume this is gcc and not c89 (= MSVC++)
8988 with_gnu_ld=yes
8989 ;;
8990 openbsd*)
8991 with_gnu_ld=no
8992 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04008993 esac
8994
8995 ld_shlibs=yes
8996
8997 # On some targets, GNU ld is compatible enough with the native linker
8998 # that we're better off using the native interface for both.
8999 lt_use_gnu_ld_interface=no
9000 if test "$with_gnu_ld" = yes; then
9001 case $host_os in
9002 aix*)
9003 # The AIX port of GNU ld has always aspired to compatibility
9004 # with the native linker. However, as the warning in the GNU ld
9005 # block says, versions before 2.19.5* couldn't really create working
9006 # shared libraries, regardless of the interface used.
9007 case `$LD -v 2>&1` in
9008 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9009 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9010 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9011 *)
9012 lt_use_gnu_ld_interface=yes
9013 ;;
9014 esac
9015 ;;
9016 *)
9017 lt_use_gnu_ld_interface=yes
9018 ;;
9019 esac
9020 fi
9021
9022 if test "$lt_use_gnu_ld_interface" = yes; then
9023 # If archive_cmds runs LD, not CC, wlarc should be empty
9024 wlarc='${wl}'
9025
9026 # Set some defaults for GNU ld with shared library support. These
9027 # are reset later if shared libraries are not supported. Putting them
9028 # here allows them to be overridden if necessary.
9029 runpath_var=LD_RUN_PATH
9030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9031 export_dynamic_flag_spec='${wl}--export-dynamic'
9032 # ancient GNU ld didn't support --whole-archive et. al.
9033 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9034 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9035 else
9036 whole_archive_flag_spec=
9037 fi
9038 supports_anon_versioning=no
9039 case `$LD -v 2>&1` in
9040 *GNU\ gold*) supports_anon_versioning=yes ;;
9041 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9042 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9043 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9044 *\ 2.11.*) ;; # other 2.11 versions
9045 *) supports_anon_versioning=yes ;;
9046 esac
9047
9048 # See if GNU ld supports shared libraries.
9049 case $host_os in
9050 aix[3-9]*)
9051 # On AIX/PPC, the GNU linker is very broken
9052 if test "$host_cpu" != ia64; then
9053 ld_shlibs=no
9054 cat <<_LT_EOF 1>&2
9055
9056*** Warning: the GNU linker, at least up to release 2.19, is reported
9057*** to be unable to reliably create shared libraries on AIX.
9058*** Therefore, libtool is disabling shared libraries support. If you
9059*** really care for shared libraries, you may want to install binutils
9060*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9061*** You will then need to restart the configuration process.
9062
9063_LT_EOF
9064 fi
9065 ;;
9066
9067 amigaos*)
9068 case $host_cpu in
9069 powerpc)
9070 # see comment about AmigaOS4 .so support
9071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9072 archive_expsym_cmds=''
9073 ;;
9074 m68k)
9075 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)'
9076 hardcode_libdir_flag_spec='-L$libdir'
9077 hardcode_minus_L=yes
9078 ;;
9079 esac
9080 ;;
9081
9082 beos*)
9083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9084 allow_undefined_flag=unsupported
9085 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9086 # support --undefined. This deserves some investigation. FIXME
9087 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088 else
9089 ld_shlibs=no
9090 fi
9091 ;;
9092
9093 cygwin* | mingw* | pw32* | cegcc*)
9094 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9095 # as there is no search path for DLLs.
9096 hardcode_libdir_flag_spec='-L$libdir'
9097 export_dynamic_flag_spec='${wl}--export-all-symbols'
9098 allow_undefined_flag=unsupported
9099 always_export_symbols=no
9100 enable_shared_with_static_runtimes=yes
9101 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'
9102 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9103
9104 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9106 # If the export-symbols file already is a .def file (1st line
9107 # is EXPORTS), use it as is; otherwise, prepend...
9108 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9109 cp $export_symbols $output_objdir/$soname.def;
9110 else
9111 echo EXPORTS > $output_objdir/$soname.def;
9112 cat $export_symbols >> $output_objdir/$soname.def;
9113 fi~
9114 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9115 else
9116 ld_shlibs=no
9117 fi
9118 ;;
9119
9120 haiku*)
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 link_all_deplibs=yes
9123 ;;
9124
9125 interix[3-9]*)
9126 hardcode_direct=no
9127 hardcode_shlibpath_var=no
9128 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9129 export_dynamic_flag_spec='${wl}-E'
9130 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9131 # Instead, shared libraries are loaded at an image base (0x10000000 by
9132 # default) and relocated if they conflict, which is a slow very memory
9133 # consuming and fragmenting process. To avoid this, we pick a random,
9134 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9135 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9137 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'
9138 ;;
9139
9140 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9141 tmp_diet=no
9142 if test "$host_os" = linux-dietlibc; then
9143 case $cc_basename in
9144 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9145 esac
9146 fi
9147 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9148 && test "$tmp_diet" = no
9149 then
9150 tmp_addflag=' $pic_flag'
9151 tmp_sharedflag='-shared'
9152 case $cc_basename,$host_cpu in
9153 pgcc*) # Portland Group C compiler
9154 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'
9155 tmp_addflag=' $pic_flag'
9156 ;;
9157 pgf77* | pgf90* | pgf95* | pgfortran*)
9158 # Portland Group f77 and f90 compilers
9159 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'
9160 tmp_addflag=' $pic_flag -Mnomain' ;;
9161 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9162 tmp_addflag=' -i_dynamic' ;;
9163 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9164 tmp_addflag=' -i_dynamic -nofor_main' ;;
9165 ifc* | ifort*) # Intel Fortran compiler
9166 tmp_addflag=' -nofor_main' ;;
9167 lf95*) # Lahey Fortran 8.1
9168 whole_archive_flag_spec=
9169 tmp_sharedflag='--shared' ;;
9170 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9171 tmp_sharedflag='-qmkshrobj'
9172 tmp_addflag= ;;
9173 nvcc*) # Cuda Compiler Driver 2.2
9174 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'
9175 compiler_needs_object=yes
9176 ;;
9177 esac
9178 case `$CC -V 2>&1 | sed 5q` in
9179 *Sun\ C*) # Sun C 5.9
9180 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'
9181 compiler_needs_object=yes
9182 tmp_sharedflag='-G' ;;
9183 *Sun\ F*) # Sun Fortran 8.3
9184 tmp_sharedflag='-G' ;;
9185 esac
9186 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187
9188 if test "x$supports_anon_versioning" = xyes; then
9189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191 echo "local: *; };" >> $output_objdir/$libname.ver~
9192 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9193 fi
9194
9195 case $cc_basename in
9196 xlf* | bgf* | bgxlf* | mpixlf*)
9197 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9198 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Emeric Vigier2f625822012-08-06 11:09:52 -04009200 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9201 if test "x$supports_anon_versioning" = xyes; then
9202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9204 echo "local: *; };" >> $output_objdir/$libname.ver~
9205 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9206 fi
9207 ;;
9208 esac
9209 else
9210 ld_shlibs=no
9211 fi
9212 ;;
9213
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009214 netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -04009215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9216 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9217 wlarc=
9218 else
9219 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9221 fi
9222 ;;
9223
9224 solaris*)
9225 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9226 ld_shlibs=no
9227 cat <<_LT_EOF 1>&2
9228
9229*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9230*** create shared libraries on Solaris systems. Therefore, libtool
9231*** is disabling shared libraries support. We urge you to upgrade GNU
9232*** binutils to release 2.9.1 or newer. Another option is to modify
9233*** your PATH or compiler configuration so that the native linker is
9234*** used, and then restart.
9235
9236_LT_EOF
9237 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9240 else
9241 ld_shlibs=no
9242 fi
9243 ;;
9244
9245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9246 case `$LD -v 2>&1` in
9247 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9248 ld_shlibs=no
9249 cat <<_LT_EOF 1>&2
9250
9251*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9252*** reliably create shared libraries on SCO systems. Therefore, libtool
9253*** is disabling shared libraries support. We urge you to upgrade GNU
9254*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9255*** your PATH or compiler configuration so that the native linker is
9256*** used, and then restart.
9257
9258_LT_EOF
9259 ;;
9260 *)
9261 # For security reasons, it is highly recommended that you always
9262 # use absolute paths for naming shared libraries, and exclude the
9263 # DT_RUNPATH tag from executables and libraries. But doing so
9264 # requires that you compile everything twice, which is a pain.
9265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269 else
9270 ld_shlibs=no
9271 fi
9272 ;;
9273 esac
9274 ;;
9275
9276 sunos4*)
9277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278 wlarc=
9279 hardcode_direct=yes
9280 hardcode_shlibpath_var=no
9281 ;;
9282
9283 *)
9284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9285 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9287 else
9288 ld_shlibs=no
9289 fi
9290 ;;
9291 esac
9292
9293 if test "$ld_shlibs" = no; then
9294 runpath_var=
9295 hardcode_libdir_flag_spec=
9296 export_dynamic_flag_spec=
9297 whole_archive_flag_spec=
9298 fi
9299 else
9300 # PORTME fill in a description of your system's linker (not GNU ld)
9301 case $host_os in
9302 aix3*)
9303 allow_undefined_flag=unsupported
9304 always_export_symbols=yes
9305 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'
9306 # Note: this linker hardcodes the directories in LIBPATH if there
9307 # are no directories specified by -L.
9308 hardcode_minus_L=yes
9309 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9310 # Neither direct hardcoding nor static linking is supported with a
9311 # broken collect2.
9312 hardcode_direct=unsupported
9313 fi
9314 ;;
9315
9316 aix[4-9]*)
9317 if test "$host_cpu" = ia64; then
9318 # On IA64, the linker does run time linking by default, so we don't
9319 # have to do anything special.
9320 aix_use_runtimelinking=no
9321 exp_sym_flag='-Bexport'
9322 no_entry_flag=""
9323 else
9324 # If we're using GNU nm, then we don't want the "-C" option.
9325 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9326 # Also, AIX nm treats weak defined symbols like other global
9327 # defined symbols, whereas GNU nm marks them as "W".
9328 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9329 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'
9330 else
9331 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'
9332 fi
9333 aix_use_runtimelinking=no
9334
9335 # Test if we are trying to use run time linking or normal
9336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9337 # need to do runtime linking.
9338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9339 for ld_flag in $LDFLAGS; do
9340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9341 aix_use_runtimelinking=yes
9342 break
9343 fi
9344 done
9345 ;;
9346 esac
9347
9348 exp_sym_flag='-bexport'
9349 no_entry_flag='-bnoentry'
9350 fi
9351
9352 # When large executables or shared objects are built, AIX ld can
9353 # have problems creating the table of contents. If linking a library
9354 # or program results in "error TOC overflow" add -mminimal-toc to
9355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9357
9358 archive_cmds=''
9359 hardcode_direct=yes
9360 hardcode_direct_absolute=yes
9361 hardcode_libdir_separator=':'
9362 link_all_deplibs=yes
9363 file_list_spec='${wl}-f,'
9364
9365 if test "$GCC" = yes; then
9366 case $host_os in aix4.[012]|aix4.[012].*)
9367 # We only want to do this on AIX 4.2 and lower, the check
9368 # below for broken collect2 doesn't work under 4.3+
9369 collect2name=`${CC} -print-prog-name=collect2`
9370 if test -f "$collect2name" &&
9371 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9372 then
9373 # We have reworked collect2
9374 :
9375 else
9376 # We have old collect2
9377 hardcode_direct=unsupported
9378 # It fails to find uninstalled libraries when the uninstalled
9379 # path is not listed in the libpath. Setting hardcode_minus_L
9380 # to unsupported forces relinking
9381 hardcode_minus_L=yes
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 hardcode_libdir_separator=
9384 fi
9385 ;;
9386 esac
9387 shared_flag='-shared'
9388 if test "$aix_use_runtimelinking" = yes; then
9389 shared_flag="$shared_flag "'${wl}-G'
9390 fi
Emeric Vigier2f625822012-08-06 11:09:52 -04009391 else
9392 # not using gcc
9393 if test "$host_cpu" = ia64; then
9394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9395 # chokes on -Wl,-G. The following line is correct:
9396 shared_flag='-G'
9397 else
9398 if test "$aix_use_runtimelinking" = yes; then
9399 shared_flag='${wl}-G'
9400 else
9401 shared_flag='${wl}-bM:SRE'
9402 fi
9403 fi
9404 fi
9405
9406 export_dynamic_flag_spec='${wl}-bexpall'
9407 # It seems that -bexpall does not export symbols beginning with
9408 # underscore (_), so it is better to generate a list of symbols to export.
9409 always_export_symbols=yes
9410 if test "$aix_use_runtimelinking" = yes; then
9411 # Warning - without using the other runtime loading flags (-brtl),
9412 # -berok will link without error, but may produce a broken library.
9413 allow_undefined_flag='-berok'
9414 # Determine the default libpath from the value encoded in an
9415 # empty executable.
9416 if test "${lt_cv_aix_libpath+set}" = set; then
9417 aix_libpath=$lt_cv_aix_libpath
9418else
9419 if ${lt_cv_aix_libpath_+:} false; then :
9420 $as_echo_n "(cached) " >&6
9421else
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423/* end confdefs.h. */
9424
9425int
9426main ()
9427{
9428
9429 ;
9430 return 0;
9431}
9432_ACEOF
9433if ac_fn_c_try_link "$LINENO"; then :
9434
9435 lt_aix_libpath_sed='
9436 /Import File Strings/,/^$/ {
9437 /^0/ {
9438 s/^0 *\([^ ]*\) *$/\1/
9439 p
9440 }
9441 }'
9442 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9443 # Check for a 64-bit object if we didn't find anything.
9444 if test -z "$lt_cv_aix_libpath_"; then
9445 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446 fi
9447fi
9448rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 if test -z "$lt_cv_aix_libpath_"; then
9451 lt_cv_aix_libpath_="/usr/lib:/lib"
9452 fi
9453
9454fi
9455
9456 aix_libpath=$lt_cv_aix_libpath_
9457fi
9458
9459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9460 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"
9461 else
9462 if test "$host_cpu" = ia64; then
9463 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9464 allow_undefined_flag="-z nodefs"
9465 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"
9466 else
9467 # Determine the default libpath from the value encoded in an
9468 # empty executable.
9469 if test "${lt_cv_aix_libpath+set}" = set; then
9470 aix_libpath=$lt_cv_aix_libpath
9471else
9472 if ${lt_cv_aix_libpath_+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h. */
9477
9478int
9479main ()
9480{
9481
9482 ;
9483 return 0;
9484}
9485_ACEOF
9486if ac_fn_c_try_link "$LINENO"; then :
9487
9488 lt_aix_libpath_sed='
9489 /Import File Strings/,/^$/ {
9490 /^0/ {
9491 s/^0 *\([^ ]*\) *$/\1/
9492 p
9493 }
9494 }'
9495 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496 # Check for a 64-bit object if we didn't find anything.
9497 if test -z "$lt_cv_aix_libpath_"; then
9498 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499 fi
9500fi
9501rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 if test -z "$lt_cv_aix_libpath_"; then
9504 lt_cv_aix_libpath_="/usr/lib:/lib"
9505 fi
9506
9507fi
9508
9509 aix_libpath=$lt_cv_aix_libpath_
9510fi
9511
9512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9513 # Warning - without using the other run time loading flags,
9514 # -berok will link without error, but may produce a broken library.
9515 no_undefined_flag=' ${wl}-bernotok'
9516 allow_undefined_flag=' ${wl}-berok'
9517 if test "$with_gnu_ld" = yes; then
9518 # We only use this code for GNU lds that support --whole-archive.
9519 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9520 else
9521 # Exported symbols can be pulled into shared objects from archives
9522 whole_archive_flag_spec='$convenience'
9523 fi
9524 archive_cmds_need_lc=yes
9525 # This is similar to how AIX traditionally builds its shared libraries.
9526 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'
9527 fi
9528 fi
9529 ;;
9530
9531 amigaos*)
9532 case $host_cpu in
9533 powerpc)
9534 # see comment about AmigaOS4 .so support
9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536 archive_expsym_cmds=''
9537 ;;
9538 m68k)
9539 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)'
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 hardcode_minus_L=yes
9542 ;;
9543 esac
9544 ;;
9545
9546 bsdi[45]*)
9547 export_dynamic_flag_spec=-rdynamic
9548 ;;
9549
9550 cygwin* | mingw* | pw32* | cegcc*)
9551 # When not using gcc, we currently assume that we are using
9552 # Microsoft Visual C++.
9553 # hardcode_libdir_flag_spec is actually meaningless, as there is
9554 # no search path for DLLs.
9555 case $cc_basename in
9556 cl*)
9557 # Native MSVC
9558 hardcode_libdir_flag_spec=' '
9559 allow_undefined_flag=unsupported
9560 always_export_symbols=yes
9561 file_list_spec='@'
9562 # Tell ltmain to make .lib files, not .a files.
9563 libext=lib
9564 # Tell ltmain to make .dll files, not .so files.
9565 shrext_cmds=".dll"
9566 # FIXME: Setting linknames here is a bad hack.
9567 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9568 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9569 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9570 else
9571 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9572 fi~
9573 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9574 linknames='
9575 # The linker will not automatically build a static lib if we build a DLL.
9576 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9577 enable_shared_with_static_runtimes=yes
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009578 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Emeric Vigier2f625822012-08-06 11:09:52 -04009579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9580 # Don't use ranlib
9581 old_postinstall_cmds='chmod 644 $oldlib'
9582 postlink_cmds='lt_outputfile="@OUTPUT@"~
9583 lt_tool_outputfile="@TOOL_OUTPUT@"~
9584 case $lt_outputfile in
9585 *.exe|*.EXE) ;;
9586 *)
9587 lt_outputfile="$lt_outputfile.exe"
9588 lt_tool_outputfile="$lt_tool_outputfile.exe"
9589 ;;
9590 esac~
9591 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9592 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9593 $RM "$lt_outputfile.manifest";
9594 fi'
9595 ;;
9596 *)
9597 # Assume MSVC wrapper
9598 hardcode_libdir_flag_spec=' '
9599 allow_undefined_flag=unsupported
9600 # Tell ltmain to make .lib files, not .a files.
9601 libext=lib
9602 # Tell ltmain to make .dll files, not .so files.
9603 shrext_cmds=".dll"
9604 # FIXME: Setting linknames here is a bad hack.
9605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9606 # The linker will automatically build a .lib file if we build a DLL.
9607 old_archive_from_new_cmds='true'
9608 # FIXME: Should let the user specify the lib program.
9609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9610 enable_shared_with_static_runtimes=yes
9611 ;;
9612 esac
9613 ;;
9614
9615 darwin* | rhapsody*)
9616
9617
9618 archive_cmds_need_lc=no
9619 hardcode_direct=no
9620 hardcode_automatic=yes
9621 hardcode_shlibpath_var=unsupported
9622 if test "$lt_cv_ld_force_load" = "yes"; then
9623 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\"`'
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009624
Emeric Vigier2f625822012-08-06 11:09:52 -04009625 else
9626 whole_archive_flag_spec=''
9627 fi
9628 link_all_deplibs=yes
9629 allow_undefined_flag="$_lt_dar_allow_undefined"
9630 case $cc_basename in
9631 ifort*) _lt_dar_can_shared=yes ;;
9632 *) _lt_dar_can_shared=$GCC ;;
9633 esac
9634 if test "$_lt_dar_can_shared" = "yes"; then
9635 output_verbose_link_cmd=func_echo_all
9636 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9637 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9638 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}"
9639 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}"
9640
9641 else
9642 ld_shlibs=no
9643 fi
9644
9645 ;;
9646
9647 dgux*)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_shlibpath_var=no
9651 ;;
9652
Emeric Vigier2f625822012-08-06 11:09:52 -04009653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654 # support. Future versions do this automatically, but an explicit c++rt0.o
9655 # does not break anything, and helps significantly (at the cost of a little
9656 # extra space).
9657 freebsd2.2*)
9658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659 hardcode_libdir_flag_spec='-R$libdir'
9660 hardcode_direct=yes
9661 hardcode_shlibpath_var=no
9662 ;;
9663
9664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009665 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -04009666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673 freebsd* | dragonfly*)
9674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675 hardcode_libdir_flag_spec='-R$libdir'
9676 hardcode_direct=yes
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 hpux9*)
9681 if test "$GCC" = yes; then
9682 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'
9683 else
9684 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'
9685 fi
9686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9687 hardcode_libdir_separator=:
9688 hardcode_direct=yes
9689
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 export_dynamic_flag_spec='${wl}-E'
9694 ;;
9695
9696 hpux10*)
9697 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9698 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 fi
9702 if test "$with_gnu_ld" = no; then
9703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Emeric Vigier2f625822012-08-06 11:09:52 -04009704 hardcode_libdir_separator=:
9705 hardcode_direct=yes
9706 hardcode_direct_absolute=yes
9707 export_dynamic_flag_spec='${wl}-E'
9708 # hardcode_minus_L: Not really in the search PATH,
9709 # but as the default location of the library.
9710 hardcode_minus_L=yes
9711 fi
9712 ;;
9713
9714 hpux11*)
9715 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9716 case $host_cpu in
9717 hppa*64*)
9718 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 ;;
9720 ia64*)
9721 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9722 ;;
9723 *)
9724 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725 ;;
9726 esac
9727 else
9728 case $host_cpu in
9729 hppa*64*)
9730 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 ;;
9732 ia64*)
9733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734 ;;
9735 *)
9736
9737 # Older versions of the 11.00 compiler do not understand -b yet
9738 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9740$as_echo_n "checking if $CC understands -b... " >&6; }
9741if ${lt_cv_prog_compiler__b+:} false; then :
9742 $as_echo_n "(cached) " >&6
9743else
9744 lt_cv_prog_compiler__b=no
9745 save_LDFLAGS="$LDFLAGS"
9746 LDFLAGS="$LDFLAGS -b"
9747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9749 # The linker can only warn and ignore the option if not recognized
9750 # So say no if there are warnings
9751 if test -s conftest.err; then
9752 # Append any errors to the config.log.
9753 cat conftest.err 1>&5
9754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9756 if diff conftest.exp conftest.er2 >/dev/null; then
9757 lt_cv_prog_compiler__b=yes
9758 fi
9759 else
9760 lt_cv_prog_compiler__b=yes
9761 fi
9762 fi
9763 $RM -r conftest*
9764 LDFLAGS="$save_LDFLAGS"
9765
9766fi
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9768$as_echo "$lt_cv_prog_compiler__b" >&6; }
9769
9770if test x"$lt_cv_prog_compiler__b" = xyes; then
9771 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772else
9773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774fi
9775
9776 ;;
9777 esac
9778 fi
9779 if test "$with_gnu_ld" = no; then
9780 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9781 hardcode_libdir_separator=:
9782
9783 case $host_cpu in
9784 hppa*64*|ia64*)
9785 hardcode_direct=no
9786 hardcode_shlibpath_var=no
9787 ;;
9788 *)
9789 hardcode_direct=yes
9790 hardcode_direct_absolute=yes
9791 export_dynamic_flag_spec='${wl}-E'
9792
9793 # hardcode_minus_L: Not really in the search PATH,
9794 # but as the default location of the library.
9795 hardcode_minus_L=yes
9796 ;;
9797 esac
9798 fi
9799 ;;
9800
9801 irix5* | irix6* | nonstopux*)
9802 if test "$GCC" = yes; then
9803 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'
9804 # Try to use the -exported_symbol ld option, if it does not
9805 # work, assume that -exports_file does not work either and
9806 # implicitly export all symbols.
9807 # This should be the same for all languages, so no per-tag cache variable.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9809$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9810if ${lt_cv_irix_exported_symbol+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813 save_LDFLAGS="$LDFLAGS"
9814 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h. */
9817int foo (void) { return 0; }
9818_ACEOF
9819if ac_fn_c_try_link "$LINENO"; then :
9820 lt_cv_irix_exported_symbol=yes
9821else
9822 lt_cv_irix_exported_symbol=no
9823fi
9824rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 LDFLAGS="$save_LDFLAGS"
9827fi
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9829$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9830 if test "$lt_cv_irix_exported_symbol" = yes; then
9831 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'
9832 fi
9833 else
9834 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'
9835 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'
9836 fi
9837 archive_cmds_need_lc='no'
9838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9839 hardcode_libdir_separator=:
9840 inherit_rpath=yes
9841 link_all_deplibs=yes
9842 ;;
9843
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009844 netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -04009845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9847 else
9848 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9849 fi
9850 hardcode_libdir_flag_spec='-R$libdir'
9851 hardcode_direct=yes
9852 hardcode_shlibpath_var=no
9853 ;;
9854
9855 newsos6)
9856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_direct=yes
9858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859 hardcode_libdir_separator=:
9860 hardcode_shlibpath_var=no
9861 ;;
9862
9863 *nto* | *qnx*)
9864 ;;
9865
9866 openbsd*)
9867 if test -f /usr/libexec/ld.so; then
9868 hardcode_direct=yes
9869 hardcode_shlibpath_var=no
9870 hardcode_direct_absolute=yes
9871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9875 export_dynamic_flag_spec='${wl}-E'
9876 else
9877 case $host_os in
9878 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 ;;
9882 *)
9883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9885 ;;
9886 esac
9887 fi
9888 else
9889 ld_shlibs=no
9890 fi
9891 ;;
9892
9893 os2*)
9894 hardcode_libdir_flag_spec='-L$libdir'
9895 hardcode_minus_L=yes
9896 allow_undefined_flag=unsupported
9897 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'
9898 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9899 ;;
9900
9901 osf3*)
9902 if test "$GCC" = yes; then
9903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9904 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'
9905 else
9906 allow_undefined_flag=' -expect_unresolved \*'
9907 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'
9908 fi
9909 archive_cmds_need_lc='no'
9910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911 hardcode_libdir_separator=:
9912 ;;
9913
9914 osf4* | osf5*) # as osf3* with the addition of -msym flag
9915 if test "$GCC" = yes; then
9916 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9917 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'
9918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919 else
9920 allow_undefined_flag=' -expect_unresolved \*'
9921 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'
9922 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~
9923 $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'
9924
9925 # Both c and cxx compiler support -rpath directly
9926 hardcode_libdir_flag_spec='-rpath $libdir'
9927 fi
9928 archive_cmds_need_lc='no'
9929 hardcode_libdir_separator=:
9930 ;;
9931
9932 solaris*)
9933 no_undefined_flag=' -z defs'
9934 if test "$GCC" = yes; then
9935 wlarc='${wl}'
9936 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9938 $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'
9939 else
9940 case `$CC -V 2>&1` in
9941 *"Compilers 5.0"*)
9942 wlarc=''
9943 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9945 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9946 ;;
9947 *)
9948 wlarc='${wl}'
9949 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9951 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9952 ;;
9953 esac
9954 fi
9955 hardcode_libdir_flag_spec='-R$libdir'
9956 hardcode_shlibpath_var=no
9957 case $host_os in
9958 solaris2.[0-5] | solaris2.[0-5].*) ;;
9959 *)
9960 # The compiler driver will combine and reorder linker options,
9961 # but understands `-z linker_flag'. GCC discards it without `$wl',
9962 # but is careful enough not to reorder.
9963 # Supported since Solaris 2.6 (maybe 2.5.1?)
9964 if test "$GCC" = yes; then
9965 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9966 else
9967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9968 fi
9969 ;;
9970 esac
9971 link_all_deplibs=yes
9972 ;;
9973
9974 sunos4*)
9975 if test "x$host_vendor" = xsequent; then
9976 # Use $CC to link under sequent, because it throws in some extra .o
9977 # files that make .init and .fini sections work.
9978 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9979 else
9980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9981 fi
9982 hardcode_libdir_flag_spec='-L$libdir'
9983 hardcode_direct=yes
9984 hardcode_minus_L=yes
9985 hardcode_shlibpath_var=no
9986 ;;
9987
9988 sysv4)
9989 case $host_vendor in
9990 sni)
9991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_direct=yes # is this really true???
9993 ;;
9994 siemens)
9995 ## LD is ld it makes a PLAMLIB
9996 ## CC just makes a GrossModule.
9997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9998 reload_cmds='$CC -r -o $output$reload_objs'
9999 hardcode_direct=no
10000 ;;
10001 motorola)
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10004 ;;
10005 esac
10006 runpath_var='LD_RUN_PATH'
10007 hardcode_shlibpath_var=no
10008 ;;
10009
10010 sysv4.3*)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_shlibpath_var=no
10013 export_dynamic_flag_spec='-Bexport'
10014 ;;
10015
10016 sysv4*MP*)
10017 if test -d /usr/nec; then
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_shlibpath_var=no
10020 runpath_var=LD_RUN_PATH
10021 hardcode_runpath_var=yes
10022 ld_shlibs=yes
10023 fi
10024 ;;
10025
10026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10027 no_undefined_flag='${wl}-z,text'
10028 archive_cmds_need_lc=no
10029 hardcode_shlibpath_var=no
10030 runpath_var='LD_RUN_PATH'
10031
10032 if test "$GCC" = yes; then
10033 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 else
10036 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 fi
10039 ;;
10040
10041 sysv5* | sco3.2v5* | sco5v6*)
10042 # Note: We can NOT use -z defs as we might desire, because we do not
10043 # link with -lc, and that would cause any symbols used from libc to
10044 # always be unresolved, which means just about no library would
10045 # ever link correctly. If we're not using GNU ld we use -z text
10046 # though, which does catch some bad symbols but isn't as heavy-handed
10047 # as -z defs.
10048 no_undefined_flag='${wl}-z,text'
10049 allow_undefined_flag='${wl}-z,nodefs'
10050 archive_cmds_need_lc=no
10051 hardcode_shlibpath_var=no
10052 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10053 hardcode_libdir_separator=':'
10054 link_all_deplibs=yes
10055 export_dynamic_flag_spec='${wl}-Bexport'
10056 runpath_var='LD_RUN_PATH'
10057
10058 if test "$GCC" = yes; then
10059 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 else
10062 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 fi
10065 ;;
10066
10067 uts4*)
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 hardcode_shlibpath_var=no
10071 ;;
10072
10073 *)
10074 ld_shlibs=no
10075 ;;
10076 esac
10077
10078 if test x$host_vendor = xsni; then
10079 case $host in
10080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10081 export_dynamic_flag_spec='${wl}-Blargedynsym'
10082 ;;
10083 esac
10084 fi
10085 fi
10086
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10088$as_echo "$ld_shlibs" >&6; }
10089test "$ld_shlibs" = no && can_build_shared=no
10090
10091with_gnu_ld=$with_gnu_ld
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107#
10108# Do we need to explicitly link libc?
10109#
10110case "x$archive_cmds_need_lc" in
10111x|xyes)
10112 # Assume -lc should be added
10113 archive_cmds_need_lc=yes
10114
10115 if test "$enable_shared" = yes && test "$GCC" = yes; then
10116 case $archive_cmds in
10117 *'~'*)
10118 # FIXME: we may have to deal with multi-command sequences.
10119 ;;
10120 '$CC '*)
10121 # Test whether the compiler implicitly links with -lc since on some
10122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10123 # to ld, don't add -lc before -lgcc.
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10126if ${lt_cv_archive_cmds_need_lc+:} false; then :
10127 $as_echo_n "(cached) " >&6
10128else
10129 $RM conftest*
10130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10131
10132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10133 (eval $ac_compile) 2>&5
10134 ac_status=$?
10135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136 test $ac_status = 0; } 2>conftest.err; then
10137 soname=conftest
10138 lib=conftest
10139 libobjs=conftest.$ac_objext
10140 deplibs=
10141 wl=$lt_prog_compiler_wl
10142 pic_flag=$lt_prog_compiler_pic
10143 compiler_flags=-v
10144 linker_flags=-v
10145 verstring=
10146 output_objdir=.
10147 libname=conftest
10148 lt_save_allow_undefined_flag=$allow_undefined_flag
10149 allow_undefined_flag=
10150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10152 ac_status=$?
10153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10154 test $ac_status = 0; }
10155 then
10156 lt_cv_archive_cmds_need_lc=no
10157 else
10158 lt_cv_archive_cmds_need_lc=yes
10159 fi
10160 allow_undefined_flag=$lt_save_allow_undefined_flag
10161 else
10162 cat conftest.err 1>&5
10163 fi
10164 $RM conftest*
10165
10166fi
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10168$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10170 ;;
10171 esac
10172 fi
10173 ;;
10174esac
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
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
Emeric Vigier2f625822012-08-06 11:09:52 -040010327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10328$as_echo_n "checking dynamic linker characteristics... " >&6; }
10329
10330if test "$GCC" = yes; then
10331 case $host_os in
10332 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10333 *) lt_awk_arg="/^libraries:/" ;;
10334 esac
10335 case $host_os in
10336 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10337 *) lt_sed_strip_eq="s,=/,/,g" ;;
10338 esac
10339 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10340 case $lt_search_path_spec in
10341 *\;*)
10342 # if the path contains ";" then we assume it to be the separator
10343 # otherwise default to the standard path separator (i.e. ":") - it is
10344 # assumed that no part of a normal pathname contains ";" but that should
10345 # okay in the real world where ";" in dirpaths is itself problematic.
10346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10347 ;;
10348 *)
10349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10350 ;;
10351 esac
10352 # Ok, now we have the path, separated by spaces, we can step through it
10353 # and add multilib dir if necessary.
10354 lt_tmp_lt_search_path_spec=
10355 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10356 for lt_sys_path in $lt_search_path_spec; do
10357 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10359 else
10360 test -d "$lt_sys_path" && \
10361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10362 fi
10363 done
10364 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10365BEGIN {RS=" "; FS="/|\n";} {
10366 lt_foo="";
10367 lt_count=0;
10368 for (lt_i = NF; lt_i > 0; lt_i--) {
10369 if ($lt_i != "" && $lt_i != ".") {
10370 if ($lt_i == "..") {
10371 lt_count++;
10372 } else {
10373 if (lt_count == 0) {
10374 lt_foo="/" $lt_i lt_foo;
10375 } else {
10376 lt_count--;
10377 }
10378 }
10379 }
10380 }
10381 if (lt_foo != "") { lt_freq[lt_foo]++; }
10382 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10383}'`
10384 # AWK program above erroneously prepends '/' to C:/dos/paths
10385 # for these hosts.
10386 case $host_os in
10387 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10388 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10389 esac
10390 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10391else
10392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10393fi
10394library_names_spec=
10395libname_spec='lib$name'
10396soname_spec=
10397shrext_cmds=".so"
10398postinstall_cmds=
10399postuninstall_cmds=
10400finish_cmds=
10401finish_eval=
10402shlibpath_var=
10403shlibpath_overrides_runpath=unknown
10404version_type=none
10405dynamic_linker="$host_os ld.so"
10406sys_lib_dlsearch_path_spec="/lib /usr/lib"
10407need_lib_prefix=unknown
10408hardcode_into_libs=no
10409
10410# when you set need_version to no, make sure it does not cause -set_version
10411# flags to be left without arguments
10412need_version=unknown
10413
10414case $host_os in
10415aix3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010416 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10418 shlibpath_var=LIBPATH
10419
10420 # AIX 3 has no versioning support, so we append a major version to the name.
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 ;;
10423
10424aix[4-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010425 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010426 need_lib_prefix=no
10427 need_version=no
10428 hardcode_into_libs=yes
10429 if test "$host_cpu" = ia64; then
10430 # AIX 5 supports IA64
10431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 else
10434 # With GCC up to 2.95.x, collect2 would create an import file
10435 # for dependence libraries. The import file would start with
10436 # the line `#! .'. This would cause the generated library to
10437 # depend on `.', always an invalid library. This was fixed in
10438 # development snapshots of GCC prior to 3.0.
10439 case $host_os in
10440 aix4 | aix4.[01] | aix4.[01].*)
10441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10442 echo ' yes '
10443 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10444 :
10445 else
10446 can_build_shared=no
10447 fi
10448 ;;
10449 esac
10450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10451 # soname into executable. Probably we can add versioning support to
10452 # collect2, so additional links can be useful in future.
10453 if test "$aix_use_runtimelinking" = yes; then
10454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10455 # instead of lib<name>.a to let people know that these are not
10456 # typical AIX shared libraries.
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 else
10459 # We preserve .a as extension for shared libraries through AIX4.2
10460 # and later when we are not doing run time linking.
10461 library_names_spec='${libname}${release}.a $libname.a'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 fi
10464 shlibpath_var=LIBPATH
10465 fi
10466 ;;
10467
10468amigaos*)
10469 case $host_cpu in
10470 powerpc)
10471 # Since July 2007 AmigaOS4 officially supports .so libraries.
10472 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 ;;
10475 m68k)
10476 library_names_spec='$libname.ixlibrary $libname.a'
10477 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10478 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'
10479 ;;
10480 esac
10481 ;;
10482
10483beos*)
10484 library_names_spec='${libname}${shared_ext}'
10485 dynamic_linker="$host_os ld.so"
10486 shlibpath_var=LIBRARY_PATH
10487 ;;
10488
10489bsdi[45]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010490 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010491 need_version=no
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10498 # the default ld.so.conf also contains /usr/contrib/lib and
10499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10500 # libtool to hard-code these into programs
10501 ;;
10502
10503cygwin* | mingw* | pw32* | cegcc*)
10504 version_type=windows
10505 shrext_cmds=".dll"
10506 need_version=no
10507 need_lib_prefix=no
10508
10509 case $GCC,$cc_basename in
10510 yes,*)
10511 # gcc
10512 library_names_spec='$libname.dll.a'
10513 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10514 postinstall_cmds='base_file=`basename \${file}`~
10515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10516 dldir=$destdir/`dirname \$dlpath`~
10517 test -d \$dldir || mkdir -p \$dldir~
10518 $install_prog $dir/$dlname \$dldir/$dlname~
10519 chmod a+x \$dldir/$dlname~
10520 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10521 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10522 fi'
10523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10524 dlpath=$dir/\$dldll~
10525 $RM \$dlpath'
10526 shlibpath_overrides_runpath=yes
10527
10528 case $host_os in
10529 cygwin*)
10530 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10531 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532
10533 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10534 ;;
10535 mingw* | cegcc*)
10536 # MinGW DLLs use traditional 'lib' prefix
10537 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10538 ;;
10539 pw32*)
10540 # pw32 DLLs use 'pw' prefix rather than 'lib'
10541 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10542 ;;
10543 esac
10544 dynamic_linker='Win32 ld.exe'
10545 ;;
10546
10547 *,cl*)
10548 # Native MSVC
10549 libname_spec='$name'
10550 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10551 library_names_spec='${libname}.dll.lib'
10552
10553 case $build_os in
10554 mingw*)
10555 sys_lib_search_path_spec=
10556 lt_save_ifs=$IFS
10557 IFS=';'
10558 for lt_path in $LIB
10559 do
10560 IFS=$lt_save_ifs
10561 # Let DOS variable expansion print the short 8.3 style file name.
10562 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10563 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10564 done
10565 IFS=$lt_save_ifs
10566 # Convert to MSYS style.
10567 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10568 ;;
10569 cygwin*)
10570 # Convert to unix form, then to dos form, then back to unix form
10571 # but this time dos style (no spaces!) so that the unix form looks
10572 # like /cygdrive/c/PROGRA~1:/cygdr...
10573 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10574 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10575 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10576 ;;
10577 *)
10578 sys_lib_search_path_spec="$LIB"
10579 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10580 # It is most probably a Windows format PATH.
10581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10582 else
10583 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10584 fi
10585 # FIXME: find the short name or the path components, as spaces are
10586 # common. (e.g. "Program Files" -> "PROGRA~1")
10587 ;;
10588 esac
10589
10590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10591 postinstall_cmds='base_file=`basename \${file}`~
10592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10593 dldir=$destdir/`dirname \$dlpath`~
10594 test -d \$dldir || mkdir -p \$dldir~
10595 $install_prog $dir/$dlname \$dldir/$dlname'
10596 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10597 dlpath=$dir/\$dldll~
10598 $RM \$dlpath'
10599 shlibpath_overrides_runpath=yes
10600 dynamic_linker='Win32 link.exe'
10601 ;;
10602
10603 *)
10604 # Assume MSVC wrapper
10605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10606 dynamic_linker='Win32 ld.exe'
10607 ;;
10608 esac
10609 # FIXME: first we should search . and the directory the executable is in
10610 shlibpath_var=PATH
10611 ;;
10612
10613darwin* | rhapsody*)
10614 dynamic_linker="$host_os dyld"
10615 version_type=darwin
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10619 soname_spec='${libname}${release}${major}$shared_ext'
10620 shlibpath_overrides_runpath=yes
10621 shlibpath_var=DYLD_LIBRARY_PATH
10622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10623
10624 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10626 ;;
10627
10628dgux*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010629 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010630 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 shlibpath_var=LD_LIBRARY_PATH
10635 ;;
10636
Emeric Vigier2f625822012-08-06 11:09:52 -040010637freebsd* | dragonfly*)
10638 # DragonFly does not have aout. When/if they implement a new
10639 # versioning mechanism, adjust this.
10640 if test -x /usr/bin/objformat; then
10641 objformat=`/usr/bin/objformat`
10642 else
10643 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010644 freebsd[23].*) objformat=aout ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040010645 *) objformat=elf ;;
10646 esac
10647 fi
10648 version_type=freebsd-$objformat
10649 case $version_type in
10650 freebsd-elf*)
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10652 need_version=no
10653 need_lib_prefix=no
10654 ;;
10655 freebsd-*)
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10657 need_version=yes
10658 ;;
10659 esac
10660 shlibpath_var=LD_LIBRARY_PATH
10661 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010662 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -040010663 shlibpath_overrides_runpath=yes
10664 ;;
10665 freebsd3.[01]* | freebsdelf3.[01]*)
10666 shlibpath_overrides_runpath=yes
10667 hardcode_into_libs=yes
10668 ;;
10669 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10670 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10671 shlibpath_overrides_runpath=no
10672 hardcode_into_libs=yes
10673 ;;
10674 *) # from 4.6 on, and DragonFly
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 ;;
10678 esac
10679 ;;
10680
10681gnu*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010682 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 shlibpath_overrides_runpath=no
10689 hardcode_into_libs=yes
10690 ;;
10691
10692haiku*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010693 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010694 need_lib_prefix=no
10695 need_version=no
10696 dynamic_linker="$host_os runtime_loader"
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LIBRARY_PATH
10700 shlibpath_overrides_runpath=yes
10701 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10702 hardcode_into_libs=yes
10703 ;;
10704
10705hpux9* | hpux10* | hpux11*)
10706 # Give a soname corresponding to the major version so that dld.sl refuses to
10707 # link against other versions.
10708 version_type=sunos
10709 need_lib_prefix=no
10710 need_version=no
10711 case $host_cpu in
10712 ia64*)
10713 shrext_cmds='.so'
10714 hardcode_into_libs=yes
10715 dynamic_linker="$host_os dld.so"
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 if test "X$HPUX_IA64_MODE" = X32; then
10721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10722 else
10723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10724 fi
10725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10726 ;;
10727 hppa*64*)
10728 shrext_cmds='.sl'
10729 hardcode_into_libs=yes
10730 dynamic_linker="$host_os dld.sl"
10731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10737 ;;
10738 *)
10739 shrext_cmds='.sl'
10740 dynamic_linker="$host_os dld.sl"
10741 shlibpath_var=SHLIB_PATH
10742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 ;;
10746 esac
10747 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10748 postinstall_cmds='chmod 555 $lib'
10749 # or fails outright, so override atomically:
10750 install_override_mode=555
10751 ;;
10752
10753interix[3-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010754 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 shlibpath_overrides_runpath=no
10762 hardcode_into_libs=yes
10763 ;;
10764
10765irix5* | irix6* | nonstopux*)
10766 case $host_os in
10767 nonstopux*) version_type=nonstopux ;;
10768 *)
10769 if test "$lt_cv_prog_gnu_ld" = yes; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010770 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010771 else
10772 version_type=irix
10773 fi ;;
10774 esac
10775 need_lib_prefix=no
10776 need_version=no
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10779 case $host_os in
10780 irix5* | nonstopux*)
10781 libsuff= shlibsuff=
10782 ;;
10783 *)
10784 case $LD in # libtool.m4 will add one of these switches to LD
10785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10786 libsuff= shlibsuff= libmagic=32-bit;;
10787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10788 libsuff=32 shlibsuff=N32 libmagic=N32;;
10789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10791 *) libsuff= shlibsuff= libmagic=never-match;;
10792 esac
10793 ;;
10794 esac
10795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10796 shlibpath_overrides_runpath=no
10797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10799 hardcode_into_libs=yes
10800 ;;
10801
10802# No shared lib support for Linux oldld, aout, or coff.
10803linux*oldld* | linux*aout* | linux*coff*)
10804 dynamic_linker=no
10805 ;;
10806
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010807# This must be glibc/ELF.
Emeric Vigier2f625822012-08-06 11:09:52 -040010808linux* | k*bsd*-gnu | kopensolaris*-gnu)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010809 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 shlibpath_overrides_runpath=no
10817
10818 # Some binutils ld are patched to set DT_RUNPATH
10819 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821else
10822 lt_cv_shlibpath_overrides_runpath=no
10823 save_LDFLAGS=$LDFLAGS
10824 save_libdir=$libdir
10825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h. */
10829
10830int
10831main ()
10832{
10833
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_link "$LINENO"; then :
10839 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10840 lt_cv_shlibpath_overrides_runpath=yes
10841fi
10842fi
10843rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LDFLAGS=$save_LDFLAGS
10846 libdir=$save_libdir
10847
10848fi
10849
10850 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10851
10852 # This implies no fast_install, which is unacceptable.
10853 # Some rework will be needed to allow for fast_install
10854 # before this can be enabled.
10855 hardcode_into_libs=yes
10856
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010857 # Add ABI-specific directories to the system library path.
10858 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10859
Emeric Vigier2f625822012-08-06 11:09:52 -040010860 # Append ld.so.conf contents to the search path
10861 if test -f /etc/ld.so.conf; then
10862 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' ' '`
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010863 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10864
Emeric Vigier2f625822012-08-06 11:09:52 -040010865 fi
10866
10867 # We used to test for /lib/ld.so.1 and disable shared libraries on
10868 # powerpc, because MkLinux only supported shared libraries with the
10869 # GNU dynamic linker. Since this was broken with cross compilers,
10870 # most powerpc-linux boxes support dynamic linking these days and
10871 # people can always --disable-shared, the test was removed, and we
10872 # assume the GNU/Linux dynamic linker is in use.
10873 dynamic_linker='GNU/Linux ld.so'
10874 ;;
10875
Emeric Vigier2f625822012-08-06 11:09:52 -040010876netbsd*)
10877 version_type=sunos
10878 need_lib_prefix=no
10879 need_version=no
10880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10883 dynamic_linker='NetBSD (a.out) ld.so'
10884 else
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 dynamic_linker='NetBSD ld.elf_so'
10888 fi
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10892 ;;
10893
10894newsos6)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010895 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 ;;
10900
10901*nto* | *qnx*)
10902 version_type=qnx
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=no
10909 hardcode_into_libs=yes
10910 dynamic_linker='ldqnx.so'
10911 ;;
10912
10913openbsd*)
10914 version_type=sunos
10915 sys_lib_dlsearch_path_spec="/usr/lib"
10916 need_lib_prefix=no
10917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10918 case $host_os in
10919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10920 *) need_version=no ;;
10921 esac
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10926 case $host_os in
10927 openbsd2.[89] | openbsd2.[89].*)
10928 shlibpath_overrides_runpath=no
10929 ;;
10930 *)
10931 shlibpath_overrides_runpath=yes
10932 ;;
10933 esac
10934 else
10935 shlibpath_overrides_runpath=yes
10936 fi
10937 ;;
10938
10939os2*)
10940 libname_spec='$name'
10941 shrext_cmds=".dll"
10942 need_lib_prefix=no
10943 library_names_spec='$libname${shared_ext} $libname.a'
10944 dynamic_linker='OS/2 ld.exe'
10945 shlibpath_var=LIBPATH
10946 ;;
10947
10948osf3* | osf4* | osf5*)
10949 version_type=osf
10950 need_lib_prefix=no
10951 need_version=no
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10957 ;;
10958
10959rdos*)
10960 dynamic_linker=no
10961 ;;
10962
10963solaris*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010964 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=yes
10971 hardcode_into_libs=yes
10972 # ldd complains unless libraries are executable
10973 postinstall_cmds='chmod +x $lib'
10974 ;;
10975
10976sunos4*)
10977 version_type=sunos
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes
10982 if test "$with_gnu_ld" = yes; then
10983 need_lib_prefix=no
10984 fi
10985 need_version=yes
10986 ;;
10987
10988sysv4 | sysv4.3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010989 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 case $host_vendor in
10994 sni)
10995 shlibpath_overrides_runpath=no
10996 need_lib_prefix=no
10997 runpath_var=LD_RUN_PATH
10998 ;;
10999 siemens)
11000 need_lib_prefix=no
11001 ;;
11002 motorola)
11003 need_lib_prefix=no
11004 need_version=no
11005 shlibpath_overrides_runpath=no
11006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11007 ;;
11008 esac
11009 ;;
11010
11011sysv4*MP*)
11012 if test -d /usr/nec ;then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050011013 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040011014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11015 soname_spec='$libname${shared_ext}.$major'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 fi
11018 ;;
11019
11020sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11021 version_type=freebsd-elf
11022 need_lib_prefix=no
11023 need_version=no
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11029 if test "$with_gnu_ld" = yes; then
11030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11031 else
11032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11033 case $host_os in
11034 sco3.2v5*)
11035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11036 ;;
11037 esac
11038 fi
11039 sys_lib_dlsearch_path_spec='/usr/lib'
11040 ;;
11041
11042tpf*)
11043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050011044 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040011045 need_lib_prefix=no
11046 need_version=no
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=no
11050 hardcode_into_libs=yes
11051 ;;
11052
11053uts4*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050011054 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040011055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 ;;
11059
11060*)
11061 dynamic_linker=no
11062 ;;
11063esac
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11065$as_echo "$dynamic_linker" >&6; }
11066test "$dynamic_linker" = no && can_build_shared=no
11067
11068variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11069if test "$GCC" = yes; then
11070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11071fi
11072
11073if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11074 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11075fi
11076if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11077 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11078fi
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11172$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11173hardcode_action=
11174if test -n "$hardcode_libdir_flag_spec" ||
11175 test -n "$runpath_var" ||
11176 test "X$hardcode_automatic" = "Xyes" ; then
11177
11178 # We can hardcode non-existent directories.
11179 if test "$hardcode_direct" != no &&
11180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11181 # have to relink, otherwise we might link with an installed library
11182 # when we should be linking with a yet-to-be-installed one
11183 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11184 test "$hardcode_minus_L" != no; then
11185 # Linking always hardcodes the temporary library directory.
11186 hardcode_action=relink
11187 else
11188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11189 hardcode_action=immediate
11190 fi
11191else
11192 # We cannot hardcode anything, or else we can only hardcode existing
11193 # directories.
11194 hardcode_action=unsupported
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11197$as_echo "$hardcode_action" >&6; }
11198
11199if test "$hardcode_action" = relink ||
11200 test "$inherit_rpath" = yes; then
11201 # Fast installation is not supported
11202 enable_fast_install=no
11203elif test "$shlibpath_overrides_runpath" = yes ||
11204 test "$enable_shared" = no; then
11205 # Fast installation is not necessary
11206 enable_fast_install=needless
11207fi
11208
11209
11210
11211
11212
11213
11214 if test "x$enable_dlopen" != xyes; then
11215 enable_dlopen=unknown
11216 enable_dlopen_self=unknown
11217 enable_dlopen_self_static=unknown
11218else
11219 lt_cv_dlopen=no
11220 lt_cv_dlopen_libs=
11221
11222 case $host_os in
11223 beos*)
11224 lt_cv_dlopen="load_add_on"
11225 lt_cv_dlopen_libs=
11226 lt_cv_dlopen_self=yes
11227 ;;
11228
11229 mingw* | pw32* | cegcc*)
11230 lt_cv_dlopen="LoadLibrary"
11231 lt_cv_dlopen_libs=
11232 ;;
11233
11234 cygwin*)
11235 lt_cv_dlopen="dlopen"
11236 lt_cv_dlopen_libs=
11237 ;;
11238
11239 darwin*)
11240 # if libdl is installed we need to link against it
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11242$as_echo_n "checking for dlopen in -ldl... " >&6; }
11243if ${ac_cv_lib_dl_dlopen+:} false; then :
11244 $as_echo_n "(cached) " >&6
11245else
11246 ac_check_lib_save_LIBS=$LIBS
11247LIBS="-ldl $LIBS"
11248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249/* end confdefs.h. */
11250
11251/* Override any GCC internal prototype to avoid an error.
11252 Use char because int might match the return type of a GCC
11253 builtin and then its argument prototype would still apply. */
11254#ifdef __cplusplus
11255extern "C"
11256#endif
11257char dlopen ();
11258int
11259main ()
11260{
11261return dlopen ();
11262 ;
11263 return 0;
11264}
11265_ACEOF
11266if ac_fn_c_try_link "$LINENO"; then :
11267 ac_cv_lib_dl_dlopen=yes
11268else
11269 ac_cv_lib_dl_dlopen=no
11270fi
11271rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11273LIBS=$ac_check_lib_save_LIBS
11274fi
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11276$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11277if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11279else
11280
11281 lt_cv_dlopen="dyld"
11282 lt_cv_dlopen_libs=
11283 lt_cv_dlopen_self=yes
11284
11285fi
11286
11287 ;;
11288
11289 *)
11290 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11291if test "x$ac_cv_func_shl_load" = xyes; then :
11292 lt_cv_dlopen="shl_load"
11293else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11295$as_echo_n "checking for shl_load in -ldld... " >&6; }
11296if ${ac_cv_lib_dld_shl_load+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298else
11299 ac_check_lib_save_LIBS=$LIBS
11300LIBS="-ldld $LIBS"
11301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302/* end confdefs.h. */
11303
11304/* Override any GCC internal prototype to avoid an error.
11305 Use char because int might match the return type of a GCC
11306 builtin and then its argument prototype would still apply. */
11307#ifdef __cplusplus
11308extern "C"
11309#endif
11310char shl_load ();
11311int
11312main ()
11313{
11314return shl_load ();
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319if ac_fn_c_try_link "$LINENO"; then :
11320 ac_cv_lib_dld_shl_load=yes
11321else
11322 ac_cv_lib_dld_shl_load=no
11323fi
11324rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326LIBS=$ac_check_lib_save_LIBS
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11329$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11330if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11331 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11332else
11333 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11334if test "x$ac_cv_func_dlopen" = xyes; then :
11335 lt_cv_dlopen="dlopen"
11336else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11338$as_echo_n "checking for dlopen in -ldl... " >&6; }
11339if ${ac_cv_lib_dl_dlopen+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341else
11342 ac_check_lib_save_LIBS=$LIBS
11343LIBS="-ldl $LIBS"
11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345/* end confdefs.h. */
11346
11347/* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350#ifdef __cplusplus
11351extern "C"
11352#endif
11353char dlopen ();
11354int
11355main ()
11356{
11357return dlopen ();
11358 ;
11359 return 0;
11360}
11361_ACEOF
11362if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dl_dlopen=yes
11364else
11365 ac_cv_lib_dl_dlopen=no
11366fi
11367rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369LIBS=$ac_check_lib_save_LIBS
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11372$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11373if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11375else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11377$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11378if ${ac_cv_lib_svld_dlopen+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380else
11381 ac_check_lib_save_LIBS=$LIBS
11382LIBS="-lsvld $LIBS"
11383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h. */
11385
11386/* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389#ifdef __cplusplus
11390extern "C"
11391#endif
11392char dlopen ();
11393int
11394main ()
11395{
11396return dlopen ();
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401if ac_fn_c_try_link "$LINENO"; then :
11402 ac_cv_lib_svld_dlopen=yes
11403else
11404 ac_cv_lib_svld_dlopen=no
11405fi
11406rm -f core conftest.err conftest.$ac_objext \
11407 conftest$ac_exeext conftest.$ac_ext
11408LIBS=$ac_check_lib_save_LIBS
11409fi
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11411$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11412if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11414else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11416$as_echo_n "checking for dld_link in -ldld... " >&6; }
11417if ${ac_cv_lib_dld_dld_link+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419else
11420 ac_check_lib_save_LIBS=$LIBS
11421LIBS="-ldld $LIBS"
11422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423/* end confdefs.h. */
11424
11425/* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428#ifdef __cplusplus
11429extern "C"
11430#endif
11431char dld_link ();
11432int
11433main ()
11434{
11435return dld_link ();
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dld_dld_link=yes
11442else
11443 ac_cv_lib_dld_dld_link=no
11444fi
11445rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447LIBS=$ac_check_lib_save_LIBS
11448fi
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11450$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11451if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11453fi
11454
11455
11456fi
11457
11458
11459fi
11460
11461
11462fi
11463
11464
11465fi
11466
11467
11468fi
11469
11470 ;;
11471 esac
11472
11473 if test "x$lt_cv_dlopen" != xno; then
11474 enable_dlopen=yes
11475 else
11476 enable_dlopen=no
11477 fi
11478
11479 case $lt_cv_dlopen in
11480 dlopen)
11481 save_CPPFLAGS="$CPPFLAGS"
11482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11483
11484 save_LDFLAGS="$LDFLAGS"
11485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11486
11487 save_LIBS="$LIBS"
11488 LIBS="$lt_cv_dlopen_libs $LIBS"
11489
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11491$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11492if ${lt_cv_dlopen_self+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494else
11495 if test "$cross_compiling" = yes; then :
11496 lt_cv_dlopen_self=cross
11497else
11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499 lt_status=$lt_dlunknown
11500 cat > conftest.$ac_ext <<_LT_EOF
11501#line $LINENO "configure"
11502#include "confdefs.h"
11503
11504#if HAVE_DLFCN_H
11505#include <dlfcn.h>
11506#endif
11507
11508#include <stdio.h>
11509
11510#ifdef RTLD_GLOBAL
11511# define LT_DLGLOBAL RTLD_GLOBAL
11512#else
11513# ifdef DL_GLOBAL
11514# define LT_DLGLOBAL DL_GLOBAL
11515# else
11516# define LT_DLGLOBAL 0
11517# endif
11518#endif
11519
11520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521 find out it does not work in some platform. */
11522#ifndef LT_DLLAZY_OR_NOW
11523# ifdef RTLD_LAZY
11524# define LT_DLLAZY_OR_NOW RTLD_LAZY
11525# else
11526# ifdef DL_LAZY
11527# define LT_DLLAZY_OR_NOW DL_LAZY
11528# else
11529# ifdef RTLD_NOW
11530# define LT_DLLAZY_OR_NOW RTLD_NOW
11531# else
11532# ifdef DL_NOW
11533# define LT_DLLAZY_OR_NOW DL_NOW
11534# else
11535# define LT_DLLAZY_OR_NOW 0
11536# endif
11537# endif
11538# endif
11539# endif
11540#endif
11541
11542/* When -fvisbility=hidden is used, assume the code has been annotated
11543 correspondingly for the symbols needed. */
11544#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11545int fnord () __attribute__((visibility("default")));
11546#endif
11547
11548int fnord () { return 42; }
11549int main ()
11550{
11551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552 int status = $lt_dlunknown;
11553
11554 if (self)
11555 {
11556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11557 else
11558 {
11559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11560 else puts (dlerror ());
11561 }
11562 /* dlclose (self); */
11563 }
11564 else
11565 puts (dlerror ());
11566
11567 return status;
11568}
11569_LT_EOF
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11571 (eval $ac_link) 2>&5
11572 ac_status=$?
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11575 (./conftest; exit; ) >&5 2>/dev/null
11576 lt_status=$?
11577 case x$lt_status in
11578 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11579 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11580 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11581 esac
11582 else :
11583 # compilation failed
11584 lt_cv_dlopen_self=no
11585 fi
11586fi
11587rm -fr conftest*
11588
11589
11590fi
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11592$as_echo "$lt_cv_dlopen_self" >&6; }
11593
11594 if test "x$lt_cv_dlopen_self" = xyes; then
11595 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11597$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11598if ${lt_cv_dlopen_self_static+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600else
11601 if test "$cross_compiling" = yes; then :
11602 lt_cv_dlopen_self_static=cross
11603else
11604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11605 lt_status=$lt_dlunknown
11606 cat > conftest.$ac_ext <<_LT_EOF
11607#line $LINENO "configure"
11608#include "confdefs.h"
11609
11610#if HAVE_DLFCN_H
11611#include <dlfcn.h>
11612#endif
11613
11614#include <stdio.h>
11615
11616#ifdef RTLD_GLOBAL
11617# define LT_DLGLOBAL RTLD_GLOBAL
11618#else
11619# ifdef DL_GLOBAL
11620# define LT_DLGLOBAL DL_GLOBAL
11621# else
11622# define LT_DLGLOBAL 0
11623# endif
11624#endif
11625
11626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11627 find out it does not work in some platform. */
11628#ifndef LT_DLLAZY_OR_NOW
11629# ifdef RTLD_LAZY
11630# define LT_DLLAZY_OR_NOW RTLD_LAZY
11631# else
11632# ifdef DL_LAZY
11633# define LT_DLLAZY_OR_NOW DL_LAZY
11634# else
11635# ifdef RTLD_NOW
11636# define LT_DLLAZY_OR_NOW RTLD_NOW
11637# else
11638# ifdef DL_NOW
11639# define LT_DLLAZY_OR_NOW DL_NOW
11640# else
11641# define LT_DLLAZY_OR_NOW 0
11642# endif
11643# endif
11644# endif
11645# endif
11646#endif
11647
11648/* When -fvisbility=hidden is used, assume the code has been annotated
11649 correspondingly for the symbols needed. */
11650#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11651int fnord () __attribute__((visibility("default")));
11652#endif
11653
11654int fnord () { return 42; }
11655int main ()
11656{
11657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11658 int status = $lt_dlunknown;
11659
11660 if (self)
11661 {
11662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11663 else
11664 {
11665 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11666 else puts (dlerror ());
11667 }
11668 /* dlclose (self); */
11669 }
11670 else
11671 puts (dlerror ());
11672
11673 return status;
11674}
11675_LT_EOF
11676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11677 (eval $ac_link) 2>&5
11678 ac_status=$?
11679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11681 (./conftest; exit; ) >&5 2>/dev/null
11682 lt_status=$?
11683 case x$lt_status in
11684 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11685 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11686 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11687 esac
11688 else :
11689 # compilation failed
11690 lt_cv_dlopen_self_static=no
11691 fi
11692fi
11693rm -fr conftest*
11694
11695
11696fi
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11698$as_echo "$lt_cv_dlopen_self_static" >&6; }
11699 fi
11700
11701 CPPFLAGS="$save_CPPFLAGS"
11702 LDFLAGS="$save_LDFLAGS"
11703 LIBS="$save_LIBS"
11704 ;;
11705 esac
11706
11707 case $lt_cv_dlopen_self in
11708 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11709 *) enable_dlopen_self=unknown ;;
11710 esac
11711
11712 case $lt_cv_dlopen_self_static in
11713 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11714 *) enable_dlopen_self_static=unknown ;;
11715 esac
11716fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734striplib=
11735old_striplib=
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11737$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11738if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742$as_echo "yes" >&6; }
11743else
11744# FIXME - insert some real tests, host_os isn't really good enough
11745 case $host_os in
11746 darwin*)
11747 if test -n "$STRIP" ; then
11748 striplib="$STRIP -x"
11749 old_striplib="$STRIP -S"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751$as_echo "yes" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754$as_echo "no" >&6; }
11755 fi
11756 ;;
11757 *)
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760 ;;
11761 esac
11762fi
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775 # Report which library types will actually be built
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11777$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11779$as_echo "$can_build_shared" >&6; }
11780
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11782$as_echo_n "checking whether to build shared libraries... " >&6; }
11783 test "$can_build_shared" = "no" && enable_shared=no
11784
11785 # On AIX, shared libraries and static libraries use the same namespace, and
11786 # are all built from PIC.
11787 case $host_os in
11788 aix3*)
11789 test "$enable_shared" = yes && enable_static=no
11790 if test -n "$RANLIB"; then
11791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11792 postinstall_cmds='$RANLIB $lib'
11793 fi
11794 ;;
11795
11796 aix[4-9]*)
11797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11798 test "$enable_shared" = yes && enable_static=no
11799 fi
11800 ;;
11801 esac
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11803$as_echo "$enable_shared" >&6; }
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11806$as_echo_n "checking whether to build static libraries... " >&6; }
11807 # Make sure either enable_shared or enable_static is yes.
11808 test "$enable_shared" = yes || enable_static=yes
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11810$as_echo "$enable_static" >&6; }
11811
11812
11813
11814
11815fi
11816ac_ext=c
11817ac_cpp='$CPP $CPPFLAGS'
11818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822CC="$lt_save_CC"
11823
11824 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11825 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11826 (test "X$CXX" != "Xg++"))) ; then
11827 ac_ext=cpp
11828ac_cpp='$CXXCPP $CPPFLAGS'
11829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11833$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11834if test -z "$CXXCPP"; then
11835 if ${ac_cv_prog_CXXCPP+:} false; then :
11836 $as_echo_n "(cached) " >&6
11837else
11838 # Double quotes because CXXCPP needs to be expanded
11839 for CXXCPP in "$CXX -E" "/lib/cpp"
11840 do
11841 ac_preproc_ok=false
11842for ac_cxx_preproc_warn_flag in '' yes
11843do
11844 # Use a header file that comes with gcc, so configuring glibc
11845 # with a fresh cross-compiler works.
11846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 # <limits.h> exists even on freestanding compilers.
11848 # On the NeXT, cc -E runs the code through the compiler's parser,
11849 # not just through cpp. "Syntax error" is here to catch this case.
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851/* end confdefs.h. */
11852#ifdef __STDC__
11853# include <limits.h>
11854#else
11855# include <assert.h>
11856#endif
11857 Syntax error
11858_ACEOF
11859if ac_fn_cxx_try_cpp "$LINENO"; then :
11860
11861else
11862 # Broken: fails on valid input.
11863continue
11864fi
11865rm -f conftest.err conftest.i conftest.$ac_ext
11866
11867 # OK, works on sane cases. Now check whether nonexistent headers
11868 # can be detected and how.
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870/* end confdefs.h. */
11871#include <ac_nonexistent.h>
11872_ACEOF
11873if ac_fn_cxx_try_cpp "$LINENO"; then :
11874 # Broken: success on invalid input.
11875continue
11876else
11877 # Passes both tests.
11878ac_preproc_ok=:
11879break
11880fi
11881rm -f conftest.err conftest.i conftest.$ac_ext
11882
11883done
11884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11885rm -f conftest.i conftest.err conftest.$ac_ext
11886if $ac_preproc_ok; then :
11887 break
11888fi
11889
11890 done
11891 ac_cv_prog_CXXCPP=$CXXCPP
11892
11893fi
11894 CXXCPP=$ac_cv_prog_CXXCPP
11895else
11896 ac_cv_prog_CXXCPP=$CXXCPP
11897fi
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11899$as_echo "$CXXCPP" >&6; }
11900ac_preproc_ok=false
11901for ac_cxx_preproc_warn_flag in '' yes
11902do
11903 # Use a header file that comes with gcc, so configuring glibc
11904 # with a fresh cross-compiler works.
11905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11906 # <limits.h> exists even on freestanding compilers.
11907 # On the NeXT, cc -E runs the code through the compiler's parser,
11908 # not just through cpp. "Syntax error" is here to catch this case.
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910/* end confdefs.h. */
11911#ifdef __STDC__
11912# include <limits.h>
11913#else
11914# include <assert.h>
11915#endif
11916 Syntax error
11917_ACEOF
11918if ac_fn_cxx_try_cpp "$LINENO"; then :
11919
11920else
11921 # Broken: fails on valid input.
11922continue
11923fi
11924rm -f conftest.err conftest.i conftest.$ac_ext
11925
11926 # OK, works on sane cases. Now check whether nonexistent headers
11927 # can be detected and how.
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929/* end confdefs.h. */
11930#include <ac_nonexistent.h>
11931_ACEOF
11932if ac_fn_cxx_try_cpp "$LINENO"; then :
11933 # Broken: success on invalid input.
11934continue
11935else
11936 # Passes both tests.
11937ac_preproc_ok=:
11938break
11939fi
11940rm -f conftest.err conftest.i conftest.$ac_ext
11941
11942done
11943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11944rm -f conftest.i conftest.err conftest.$ac_ext
11945if $ac_preproc_ok; then :
11946
11947else
11948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11950as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11951See \`config.log' for more details" "$LINENO" 5; }
11952fi
11953
11954ac_ext=c
11955ac_cpp='$CPP $CPPFLAGS'
11956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958ac_compiler_gnu=$ac_cv_c_compiler_gnu
11959
11960else
11961 _lt_caught_CXX_error=yes
11962fi
11963
11964ac_ext=cpp
11965ac_cpp='$CXXCPP $CPPFLAGS'
11966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11969
11970archive_cmds_need_lc_CXX=no
11971allow_undefined_flag_CXX=
11972always_export_symbols_CXX=no
11973archive_expsym_cmds_CXX=
11974compiler_needs_object_CXX=no
11975export_dynamic_flag_spec_CXX=
11976hardcode_direct_CXX=no
11977hardcode_direct_absolute_CXX=no
11978hardcode_libdir_flag_spec_CXX=
Emeric Vigier2f625822012-08-06 11:09:52 -040011979hardcode_libdir_separator_CXX=
11980hardcode_minus_L_CXX=no
11981hardcode_shlibpath_var_CXX=unsupported
11982hardcode_automatic_CXX=no
11983inherit_rpath_CXX=no
11984module_cmds_CXX=
11985module_expsym_cmds_CXX=
11986link_all_deplibs_CXX=unknown
11987old_archive_cmds_CXX=$old_archive_cmds
11988reload_flag_CXX=$reload_flag
11989reload_cmds_CXX=$reload_cmds
11990no_undefined_flag_CXX=
11991whole_archive_flag_spec_CXX=
11992enable_shared_with_static_runtimes_CXX=no
11993
11994# Source file extension for C++ test sources.
11995ac_ext=cpp
11996
11997# Object file extension for compiled C++ test sources.
11998objext=o
11999objext_CXX=$objext
12000
12001# No sense in running all these tests if we already determined that
12002# the CXX compiler isn't working. Some variables (like enable_shared)
12003# are currently assumed to apply to all compilers on this platform,
12004# and will be corrupted by setting them based on a non-working compiler.
12005if test "$_lt_caught_CXX_error" != yes; then
12006 # Code to be used in simple compile tests
12007 lt_simple_compile_test_code="int some_variable = 0;"
12008
12009 # Code to be used in simple link tests
12010 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12011
12012 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12013
12014
12015
12016
12017
12018
12019# If no C compiler was specified, use CC.
12020LTCC=${LTCC-"$CC"}
12021
12022# If no C compiler flags were specified, use CFLAGS.
12023LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12024
12025# Allow CC to be a program name with arguments.
12026compiler=$CC
12027
12028
12029 # save warnings/boilerplate of simple test code
12030 ac_outfile=conftest.$ac_objext
12031echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12033_lt_compiler_boilerplate=`cat conftest.err`
12034$RM conftest*
12035
12036 ac_outfile=conftest.$ac_objext
12037echo "$lt_simple_link_test_code" >conftest.$ac_ext
12038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12039_lt_linker_boilerplate=`cat conftest.err`
12040$RM -r conftest*
12041
12042
12043 # Allow CC to be a program name with arguments.
12044 lt_save_CC=$CC
12045 lt_save_CFLAGS=$CFLAGS
12046 lt_save_LD=$LD
12047 lt_save_GCC=$GCC
12048 GCC=$GXX
12049 lt_save_with_gnu_ld=$with_gnu_ld
12050 lt_save_path_LD=$lt_cv_path_LD
12051 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12052 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12053 else
12054 $as_unset lt_cv_prog_gnu_ld
12055 fi
12056 if test -n "${lt_cv_path_LDCXX+set}"; then
12057 lt_cv_path_LD=$lt_cv_path_LDCXX
12058 else
12059 $as_unset lt_cv_path_LD
12060 fi
12061 test -z "${LDCXX+set}" || LD=$LDCXX
12062 CC=${CXX-"c++"}
12063 CFLAGS=$CXXFLAGS
12064 compiler=$CC
12065 compiler_CXX=$CC
12066 for cc_temp in $compiler""; do
12067 case $cc_temp in
12068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12070 \-*) ;;
12071 *) break;;
12072 esac
12073done
12074cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12075
12076
12077 if test -n "$compiler"; then
12078 # We don't want -fno-exception when compiling C++ code, so set the
12079 # no_builtin_flag separately
12080 if test "$GXX" = yes; then
12081 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12082 else
12083 lt_prog_compiler_no_builtin_flag_CXX=
12084 fi
12085
12086 if test "$GXX" = yes; then
12087 # Set up default GNU C++ configuration
12088
12089
12090
12091# Check whether --with-gnu-ld was given.
12092if test "${with_gnu_ld+set}" = set; then :
12093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12094else
12095 with_gnu_ld=no
12096fi
12097
12098ac_prog=ld
12099if test "$GCC" = yes; then
12100 # Check if gcc -print-prog-name=ld gives a path.
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12102$as_echo_n "checking for ld used by $CC... " >&6; }
12103 case $host in
12104 *-*-mingw*)
12105 # gcc leaves a trailing carriage return which upsets mingw
12106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12107 *)
12108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12109 esac
12110 case $ac_prog in
12111 # Accept absolute paths.
12112 [\\/]* | ?:[\\/]*)
12113 re_direlt='/[^/][^/]*/\.\./'
12114 # Canonicalize the pathname of ld
12115 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12116 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12117 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12118 done
12119 test -z "$LD" && LD="$ac_prog"
12120 ;;
12121 "")
12122 # If it fails, then pretend we aren't using GCC.
12123 ac_prog=ld
12124 ;;
12125 *)
12126 # If it is relative, then search for the first ld in PATH.
12127 with_gnu_ld=unknown
12128 ;;
12129 esac
12130elif test "$with_gnu_ld" = yes; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12132$as_echo_n "checking for GNU ld... " >&6; }
12133else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12135$as_echo_n "checking for non-GNU ld... " >&6; }
12136fi
12137if ${lt_cv_path_LD+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139else
12140 if test -z "$LD"; then
12141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12142 for ac_dir in $PATH; do
12143 IFS="$lt_save_ifs"
12144 test -z "$ac_dir" && ac_dir=.
12145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146 lt_cv_path_LD="$ac_dir/$ac_prog"
12147 # Check to see if the program is GNU ld. I'd rather use --version,
12148 # but apparently some variants of GNU ld only accept -v.
12149 # Break only if it was the GNU/non-GNU ld that we prefer.
12150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151 *GNU* | *'with BFD'*)
12152 test "$with_gnu_ld" != no && break
12153 ;;
12154 *)
12155 test "$with_gnu_ld" != yes && break
12156 ;;
12157 esac
12158 fi
12159 done
12160 IFS="$lt_save_ifs"
12161else
12162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12163fi
12164fi
12165
12166LD="$lt_cv_path_LD"
12167if test -n "$LD"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12169$as_echo "$LD" >&6; }
12170else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
12173fi
12174test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12176$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12177if ${lt_cv_prog_gnu_ld+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179else
12180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12181case `$LD -v 2>&1 </dev/null` in
12182*GNU* | *'with BFD'*)
12183 lt_cv_prog_gnu_ld=yes
12184 ;;
12185*)
12186 lt_cv_prog_gnu_ld=no
12187 ;;
12188esac
12189fi
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12191$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12192with_gnu_ld=$lt_cv_prog_gnu_ld
12193
12194
12195
12196
12197
12198
12199
12200 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12201 # archiving commands below assume that GNU ld is being used.
12202 if test "$with_gnu_ld" = yes; then
12203 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204 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'
12205
12206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12208
12209 # If archive_cmds runs LD, not CC, wlarc should be empty
12210 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12211 # investigate it a little bit more. (MM)
12212 wlarc='${wl}'
12213
12214 # ancient GNU ld didn't support --whole-archive et. al.
12215 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12216 $GREP 'no-whole-archive' > /dev/null; then
12217 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12218 else
12219 whole_archive_flag_spec_CXX=
12220 fi
12221 else
12222 with_gnu_ld=no
12223 wlarc=
12224
12225 # A generic and very simple default shared library creation
12226 # command for GNU C++ for the case where it uses the native
12227 # linker, instead of GNU ld. If possible, this setting should
12228 # overridden to take advantage of the native linker features on
12229 # the platform it is being used on.
12230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12231 fi
12232
12233 # Commands to make compiler produce verbose output that lists
12234 # what "hidden" libraries, object files and flags are used when
12235 # linking a shared library.
12236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12237
12238 else
12239 GXX=no
12240 with_gnu_ld=no
12241 wlarc=
12242 fi
12243
12244 # PORTME: fill in a description of your system's C++ link characteristics
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12247 ld_shlibs_CXX=yes
12248 case $host_os in
12249 aix3*)
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12252 ;;
12253 aix[4-9]*)
12254 if test "$host_cpu" = ia64; then
12255 # On IA64, the linker does run time linking by default, so we don't
12256 # have to do anything special.
12257 aix_use_runtimelinking=no
12258 exp_sym_flag='-Bexport'
12259 no_entry_flag=""
12260 else
12261 aix_use_runtimelinking=no
12262
12263 # Test if we are trying to use run time linking or normal
12264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12265 # need to do runtime linking.
12266 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12267 for ld_flag in $LDFLAGS; do
12268 case $ld_flag in
12269 *-brtl*)
12270 aix_use_runtimelinking=yes
12271 break
12272 ;;
12273 esac
12274 done
12275 ;;
12276 esac
12277
12278 exp_sym_flag='-bexport'
12279 no_entry_flag='-bnoentry'
12280 fi
12281
12282 # When large executables or shared objects are built, AIX ld can
12283 # have problems creating the table of contents. If linking a library
12284 # or program results in "error TOC overflow" add -mminimal-toc to
12285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12287
12288 archive_cmds_CXX=''
12289 hardcode_direct_CXX=yes
12290 hardcode_direct_absolute_CXX=yes
12291 hardcode_libdir_separator_CXX=':'
12292 link_all_deplibs_CXX=yes
12293 file_list_spec_CXX='${wl}-f,'
12294
12295 if test "$GXX" = yes; then
12296 case $host_os in aix4.[012]|aix4.[012].*)
12297 # We only want to do this on AIX 4.2 and lower, the check
12298 # below for broken collect2 doesn't work under 4.3+
12299 collect2name=`${CC} -print-prog-name=collect2`
12300 if test -f "$collect2name" &&
12301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12302 then
12303 # We have reworked collect2
12304 :
12305 else
12306 # We have old collect2
12307 hardcode_direct_CXX=unsupported
12308 # It fails to find uninstalled libraries when the uninstalled
12309 # path is not listed in the libpath. Setting hardcode_minus_L
12310 # to unsupported forces relinking
12311 hardcode_minus_L_CXX=yes
12312 hardcode_libdir_flag_spec_CXX='-L$libdir'
12313 hardcode_libdir_separator_CXX=
12314 fi
12315 esac
12316 shared_flag='-shared'
12317 if test "$aix_use_runtimelinking" = yes; then
12318 shared_flag="$shared_flag "'${wl}-G'
12319 fi
12320 else
12321 # not using gcc
12322 if test "$host_cpu" = ia64; then
12323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12324 # chokes on -Wl,-G. The following line is correct:
12325 shared_flag='-G'
12326 else
12327 if test "$aix_use_runtimelinking" = yes; then
12328 shared_flag='${wl}-G'
12329 else
12330 shared_flag='${wl}-bM:SRE'
12331 fi
12332 fi
12333 fi
12334
12335 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12336 # It seems that -bexpall does not export symbols beginning with
12337 # underscore (_), so it is better to generate a list of symbols to
12338 # export.
12339 always_export_symbols_CXX=yes
12340 if test "$aix_use_runtimelinking" = yes; then
12341 # Warning - without using the other runtime loading flags (-brtl),
12342 # -berok will link without error, but may produce a broken library.
12343 allow_undefined_flag_CXX='-berok'
12344 # Determine the default libpath from the value encoded in an empty
12345 # executable.
12346 if test "${lt_cv_aix_libpath+set}" = set; then
12347 aix_libpath=$lt_cv_aix_libpath
12348else
12349 if ${lt_cv_aix_libpath__CXX+:} false; then :
12350 $as_echo_n "(cached) " >&6
12351else
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h. */
12354
12355int
12356main ()
12357{
12358
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363if ac_fn_cxx_try_link "$LINENO"; then :
12364
12365 lt_aix_libpath_sed='
12366 /Import File Strings/,/^$/ {
12367 /^0/ {
12368 s/^0 *\([^ ]*\) *$/\1/
12369 p
12370 }
12371 }'
12372 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373 # Check for a 64-bit object if we didn't find anything.
12374 if test -z "$lt_cv_aix_libpath__CXX"; then
12375 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12376 fi
12377fi
12378rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 if test -z "$lt_cv_aix_libpath__CXX"; then
12381 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12382 fi
12383
12384fi
12385
12386 aix_libpath=$lt_cv_aix_libpath__CXX
12387fi
12388
12389 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12390
12391 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"
12392 else
12393 if test "$host_cpu" = ia64; then
12394 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12395 allow_undefined_flag_CXX="-z nodefs"
12396 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"
12397 else
12398 # Determine the default libpath from the value encoded in an
12399 # empty executable.
12400 if test "${lt_cv_aix_libpath+set}" = set; then
12401 aix_libpath=$lt_cv_aix_libpath
12402else
12403 if ${lt_cv_aix_libpath__CXX+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405else
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h. */
12408
12409int
12410main ()
12411{
12412
12413 ;
12414 return 0;
12415}
12416_ACEOF
12417if ac_fn_cxx_try_link "$LINENO"; then :
12418
12419 lt_aix_libpath_sed='
12420 /Import File Strings/,/^$/ {
12421 /^0/ {
12422 s/^0 *\([^ ]*\) *$/\1/
12423 p
12424 }
12425 }'
12426 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12427 # Check for a 64-bit object if we didn't find anything.
12428 if test -z "$lt_cv_aix_libpath__CXX"; then
12429 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12430 fi
12431fi
12432rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 if test -z "$lt_cv_aix_libpath__CXX"; then
12435 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12436 fi
12437
12438fi
12439
12440 aix_libpath=$lt_cv_aix_libpath__CXX
12441fi
12442
12443 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12444 # Warning - without using the other run time loading flags,
12445 # -berok will link without error, but may produce a broken library.
12446 no_undefined_flag_CXX=' ${wl}-bernotok'
12447 allow_undefined_flag_CXX=' ${wl}-berok'
12448 if test "$with_gnu_ld" = yes; then
12449 # We only use this code for GNU lds that support --whole-archive.
12450 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12451 else
12452 # Exported symbols can be pulled into shared objects from archives
12453 whole_archive_flag_spec_CXX='$convenience'
12454 fi
12455 archive_cmds_need_lc_CXX=yes
12456 # This is similar to how AIX traditionally builds its shared
12457 # libraries.
12458 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'
12459 fi
12460 fi
12461 ;;
12462
12463 beos*)
12464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12465 allow_undefined_flag_CXX=unsupported
12466 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12467 # support --undefined. This deserves some investigation. FIXME
12468 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12469 else
12470 ld_shlibs_CXX=no
12471 fi
12472 ;;
12473
12474 chorus*)
12475 case $cc_basename in
12476 *)
12477 # FIXME: insert proper C++ library support
12478 ld_shlibs_CXX=no
12479 ;;
12480 esac
12481 ;;
12482
12483 cygwin* | mingw* | pw32* | cegcc*)
12484 case $GXX,$cc_basename in
12485 ,cl* | no,cl*)
12486 # Native MSVC
12487 # hardcode_libdir_flag_spec is actually meaningless, as there is
12488 # no search path for DLLs.
12489 hardcode_libdir_flag_spec_CXX=' '
12490 allow_undefined_flag_CXX=unsupported
12491 always_export_symbols_CXX=yes
12492 file_list_spec_CXX='@'
12493 # Tell ltmain to make .lib files, not .a files.
12494 libext=lib
12495 # Tell ltmain to make .dll files, not .so files.
12496 shrext_cmds=".dll"
12497 # FIXME: Setting linknames here is a bad hack.
12498 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12499 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12500 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12501 else
12502 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12503 fi~
12504 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12505 linknames='
12506 # The linker will not automatically build a static lib if we build a DLL.
12507 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12508 enable_shared_with_static_runtimes_CXX=yes
12509 # Don't use ranlib
12510 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12511 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12512 lt_tool_outputfile="@TOOL_OUTPUT@"~
12513 case $lt_outputfile in
12514 *.exe|*.EXE) ;;
12515 *)
12516 lt_outputfile="$lt_outputfile.exe"
12517 lt_tool_outputfile="$lt_tool_outputfile.exe"
12518 ;;
12519 esac~
12520 func_to_tool_file "$lt_outputfile"~
12521 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12522 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12523 $RM "$lt_outputfile.manifest";
12524 fi'
12525 ;;
12526 *)
12527 # g++
12528 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12529 # as there is no search path for DLLs.
12530 hardcode_libdir_flag_spec_CXX='-L$libdir'
12531 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12532 allow_undefined_flag_CXX=unsupported
12533 always_export_symbols_CXX=no
12534 enable_shared_with_static_runtimes_CXX=yes
12535
12536 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12537 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'
12538 # If the export-symbols file already is a .def file (1st line
12539 # is EXPORTS), use it as is; otherwise, prepend...
12540 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12541 cp $export_symbols $output_objdir/$soname.def;
12542 else
12543 echo EXPORTS > $output_objdir/$soname.def;
12544 cat $export_symbols >> $output_objdir/$soname.def;
12545 fi~
12546 $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'
12547 else
12548 ld_shlibs_CXX=no
12549 fi
12550 ;;
12551 esac
12552 ;;
12553 darwin* | rhapsody*)
12554
12555
12556 archive_cmds_need_lc_CXX=no
12557 hardcode_direct_CXX=no
12558 hardcode_automatic_CXX=yes
12559 hardcode_shlibpath_var_CXX=unsupported
12560 if test "$lt_cv_ld_force_load" = "yes"; then
12561 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\"`'
Alexandre Lisionddd731e2014-01-31 11:50:08 -050012562
Emeric Vigier2f625822012-08-06 11:09:52 -040012563 else
12564 whole_archive_flag_spec_CXX=''
12565 fi
12566 link_all_deplibs_CXX=yes
12567 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12568 case $cc_basename in
12569 ifort*) _lt_dar_can_shared=yes ;;
12570 *) _lt_dar_can_shared=$GCC ;;
12571 esac
12572 if test "$_lt_dar_can_shared" = "yes"; then
12573 output_verbose_link_cmd=func_echo_all
12574 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}"
12575 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12576 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}"
12577 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}"
12578 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12579 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}"
12580 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}"
12581 fi
12582
12583 else
12584 ld_shlibs_CXX=no
12585 fi
12586
12587 ;;
12588
12589 dgux*)
12590 case $cc_basename in
12591 ec++*)
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12594 ;;
12595 ghcx*)
12596 # Green Hills C++ Compiler
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12599 ;;
12600 *)
12601 # FIXME: insert proper C++ library support
12602 ld_shlibs_CXX=no
12603 ;;
12604 esac
12605 ;;
12606
Alexandre Lisionddd731e2014-01-31 11:50:08 -050012607 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -040012608 # C++ shared libraries reported to be fairly broken before
12609 # switch to ELF
12610 ld_shlibs_CXX=no
12611 ;;
12612
12613 freebsd-elf*)
12614 archive_cmds_need_lc_CXX=no
12615 ;;
12616
12617 freebsd* | dragonfly*)
12618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12619 # conventions
12620 ld_shlibs_CXX=yes
12621 ;;
12622
12623 gnu*)
12624 ;;
12625
12626 haiku*)
12627 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628 link_all_deplibs_CXX=yes
12629 ;;
12630
12631 hpux9*)
12632 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12633 hardcode_libdir_separator_CXX=:
12634 export_dynamic_flag_spec_CXX='${wl}-E'
12635 hardcode_direct_CXX=yes
12636 hardcode_minus_L_CXX=yes # Not in the search PATH,
12637 # but as the default
12638 # location of the library.
12639
12640 case $cc_basename in
12641 CC*)
12642 # FIXME: insert proper C++ library support
12643 ld_shlibs_CXX=no
12644 ;;
12645 aCC*)
12646 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'
12647 # Commands to make compiler produce verbose output that lists
12648 # what "hidden" libraries, object files and flags are used when
12649 # linking a shared library.
12650 #
12651 # There doesn't appear to be a way to prevent this compiler from
12652 # explicitly linking system object files so we need to strip them
12653 # from the output so that they don't get included in the library
12654 # dependencies.
12655 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"'
12656 ;;
12657 *)
12658 if test "$GXX" = yes; then
12659 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'
12660 else
12661 # FIXME: insert proper C++ library support
12662 ld_shlibs_CXX=no
12663 fi
12664 ;;
12665 esac
12666 ;;
12667
12668 hpux10*|hpux11*)
12669 if test $with_gnu_ld = no; then
12670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12671 hardcode_libdir_separator_CXX=:
12672
12673 case $host_cpu in
12674 hppa*64*|ia64*)
12675 ;;
12676 *)
12677 export_dynamic_flag_spec_CXX='${wl}-E'
12678 ;;
12679 esac
12680 fi
12681 case $host_cpu in
12682 hppa*64*|ia64*)
12683 hardcode_direct_CXX=no
12684 hardcode_shlibpath_var_CXX=no
12685 ;;
12686 *)
12687 hardcode_direct_CXX=yes
12688 hardcode_direct_absolute_CXX=yes
12689 hardcode_minus_L_CXX=yes # Not in the search PATH,
12690 # but as the default
12691 # location of the library.
12692 ;;
12693 esac
12694
12695 case $cc_basename in
12696 CC*)
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12699 ;;
12700 aCC*)
12701 case $host_cpu in
12702 hppa*64*)
12703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12704 ;;
12705 ia64*)
12706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12707 ;;
12708 *)
12709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12710 ;;
12711 esac
12712 # Commands to make compiler produce verbose output that lists
12713 # what "hidden" libraries, object files and flags are used when
12714 # linking a shared library.
12715 #
12716 # There doesn't appear to be a way to prevent this compiler from
12717 # explicitly linking system object files so we need to strip them
12718 # from the output so that they don't get included in the library
12719 # dependencies.
12720 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"'
12721 ;;
12722 *)
12723 if test "$GXX" = yes; then
12724 if test $with_gnu_ld = no; then
12725 case $host_cpu in
12726 hppa*64*)
12727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12728 ;;
12729 ia64*)
12730 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12731 ;;
12732 *)
12733 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'
12734 ;;
12735 esac
12736 fi
12737 else
12738 # FIXME: insert proper C++ library support
12739 ld_shlibs_CXX=no
12740 fi
12741 ;;
12742 esac
12743 ;;
12744
12745 interix[3-9]*)
12746 hardcode_direct_CXX=no
12747 hardcode_shlibpath_var_CXX=no
12748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12749 export_dynamic_flag_spec_CXX='${wl}-E'
12750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12751 # Instead, shared libraries are loaded at an image base (0x10000000 by
12752 # default) and relocated if they conflict, which is a slow very memory
12753 # consuming and fragmenting process. To avoid this, we pick a random,
12754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12756 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'
12757 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'
12758 ;;
12759 irix5* | irix6*)
12760 case $cc_basename in
12761 CC*)
12762 # SGI C++
12763 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'
12764
12765 # Archives containing C++ object files must be created using
12766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12767 # necessary to make sure instantiated templates are included
12768 # in the archive.
12769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12770 ;;
12771 *)
12772 if test "$GXX" = yes; then
12773 if test "$with_gnu_ld" = no; then
12774 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'
12775 else
12776 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'
12777 fi
12778 fi
12779 link_all_deplibs_CXX=yes
12780 ;;
12781 esac
12782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12783 hardcode_libdir_separator_CXX=:
12784 inherit_rpath_CXX=yes
12785 ;;
12786
12787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12788 case $cc_basename in
12789 KCC*)
12790 # Kuck and Associates, Inc. (KAI) C++ Compiler
12791
12792 # KCC will only create a shared library if the output file
12793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12794 # to its proper name (with version) after linking.
12795 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'
12796 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'
12797 # Commands to make compiler produce verbose output that lists
12798 # what "hidden" libraries, object files and flags are used when
12799 # linking a shared library.
12800 #
12801 # There doesn't appear to be a way to prevent this compiler from
12802 # explicitly linking system object files so we need to strip them
12803 # from the output so that they don't get included in the library
12804 # dependencies.
12805 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"'
12806
12807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12809
12810 # Archives containing C++ object files must be created using
12811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12813 ;;
12814 icpc* | ecpc* )
12815 # Intel C++
12816 with_gnu_ld=yes
12817 # version 8.0 and above of icpc choke on multiply defined symbols
12818 # if we add $predep_objects and $postdep_objects, however 7.1 and
12819 # earlier do not add the objects themselves.
12820 case `$CC -V 2>&1` in
12821 *"Version 7."*)
12822 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 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'
12824 ;;
12825 *) # Version 8.0 or newer
12826 tmp_idyn=
12827 case $host_cpu in
12828 ia64*) tmp_idyn=' -i_dynamic';;
12829 esac
12830 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831 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'
12832 ;;
12833 esac
12834 archive_cmds_need_lc_CXX=no
12835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12837 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12838 ;;
12839 pgCC* | pgcpp*)
12840 # Portland Group C++ compiler
12841 case `$CC -V` in
12842 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12843 prelink_cmds_CXX='tpldir=Template.dir~
12844 rm -rf $tpldir~
12845 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12846 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12847 old_archive_cmds_CXX='tpldir=Template.dir~
12848 rm -rf $tpldir~
12849 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12850 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12851 $RANLIB $oldlib'
12852 archive_cmds_CXX='tpldir=Template.dir~
12853 rm -rf $tpldir~
12854 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12855 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12856 archive_expsym_cmds_CXX='tpldir=Template.dir~
12857 rm -rf $tpldir~
12858 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12859 $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'
12860 ;;
12861 *) # Version 6 and above use weak symbols
12862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12863 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'
12864 ;;
12865 esac
12866
12867 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12869 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'
12870 ;;
12871 cxx*)
12872 # Compaq C++
12873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12874 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'
12875
12876 runpath_var=LD_RUN_PATH
12877 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12878 hardcode_libdir_separator_CXX=:
12879
12880 # Commands to make compiler produce verbose output that lists
12881 # what "hidden" libraries, object files and flags are used when
12882 # linking a shared library.
12883 #
12884 # There doesn't appear to be a way to prevent this compiler from
12885 # explicitly linking system object files so we need to strip them
12886 # from the output so that they don't get included in the library
12887 # dependencies.
12888 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'
12889 ;;
12890 xl* | mpixl* | bgxl*)
12891 # IBM XL 8.0 on PPC, with GNU ld
12892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12894 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895 if test "x$supports_anon_versioning" = xyes; then
12896 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12897 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12898 echo "local: *; };" >> $output_objdir/$libname.ver~
12899 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12900 fi
12901 ;;
12902 *)
12903 case `$CC -V 2>&1 | sed 5q` in
12904 *Sun\ C*)
12905 # Sun C++ 5.9
12906 no_undefined_flag_CXX=' -zdefs'
12907 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908 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'
12909 hardcode_libdir_flag_spec_CXX='-R$libdir'
12910 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'
12911 compiler_needs_object_CXX=yes
12912
12913 # Not sure whether something based on
12914 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12915 # would be better.
12916 output_verbose_link_cmd='func_echo_all'
12917
12918 # Archives containing C++ object files must be created using
12919 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12920 # necessary to make sure instantiated templates are included
12921 # in the archive.
12922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12923 ;;
12924 esac
12925 ;;
12926 esac
12927 ;;
12928
12929 lynxos*)
12930 # FIXME: insert proper C++ library support
12931 ld_shlibs_CXX=no
12932 ;;
12933
12934 m88k*)
12935 # FIXME: insert proper C++ library support
12936 ld_shlibs_CXX=no
12937 ;;
12938
12939 mvs*)
12940 case $cc_basename in
12941 cxx*)
12942 # FIXME: insert proper C++ library support
12943 ld_shlibs_CXX=no
12944 ;;
12945 *)
12946 # FIXME: insert proper C++ library support
12947 ld_shlibs_CXX=no
12948 ;;
12949 esac
12950 ;;
12951
12952 netbsd*)
12953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12954 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12955 wlarc=
12956 hardcode_libdir_flag_spec_CXX='-R$libdir'
12957 hardcode_direct_CXX=yes
12958 hardcode_shlibpath_var_CXX=no
12959 fi
12960 # Workaround some broken pre-1.5 toolchains
12961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12962 ;;
12963
12964 *nto* | *qnx*)
12965 ld_shlibs_CXX=yes
12966 ;;
12967
12968 openbsd2*)
12969 # C++ shared libraries are fairly broken
12970 ld_shlibs_CXX=no
12971 ;;
12972
12973 openbsd*)
12974 if test -f /usr/libexec/ld.so; then
12975 hardcode_direct_CXX=yes
12976 hardcode_shlibpath_var_CXX=no
12977 hardcode_direct_absolute_CXX=yes
12978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12981 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12982 export_dynamic_flag_spec_CXX='${wl}-E'
12983 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12984 fi
12985 output_verbose_link_cmd=func_echo_all
12986 else
12987 ld_shlibs_CXX=no
12988 fi
12989 ;;
12990
12991 osf3* | osf4* | osf5*)
12992 case $cc_basename in
12993 KCC*)
12994 # Kuck and Associates, Inc. (KAI) C++ Compiler
12995
12996 # KCC will only create a shared library if the output file
12997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12998 # to its proper name (with version) after linking.
12999 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'
13000
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13002 hardcode_libdir_separator_CXX=:
13003
13004 # Archives containing C++ object files must be created using
13005 # the KAI C++ compiler.
13006 case $host in
13007 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13008 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13009 esac
13010 ;;
13011 RCC*)
13012 # Rational C++ 2.4.1
13013 # FIXME: insert proper C++ library support
13014 ld_shlibs_CXX=no
13015 ;;
13016 cxx*)
13017 case $host in
13018 osf3*)
13019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13020 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'
13021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13022 ;;
13023 *)
13024 allow_undefined_flag_CXX=' -expect_unresolved \*'
13025 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'
13026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13027 echo "-hidden">> $lib.exp~
13028 $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~
13029 $RM $lib.exp'
13030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13031 ;;
13032 esac
13033
13034 hardcode_libdir_separator_CXX=:
13035
13036 # Commands to make compiler produce verbose output that lists
13037 # what "hidden" libraries, object files and flags are used when
13038 # linking a shared library.
13039 #
13040 # There doesn't appear to be a way to prevent this compiler from
13041 # explicitly linking system object files so we need to strip them
13042 # from the output so that they don't get included in the library
13043 # dependencies.
13044 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"'
13045 ;;
13046 *)
13047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13049 case $host in
13050 osf3*)
13051 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'
13052 ;;
13053 *)
13054 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'
13055 ;;
13056 esac
13057
13058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13059 hardcode_libdir_separator_CXX=:
13060
13061 # Commands to make compiler produce verbose output that lists
13062 # what "hidden" libraries, object files and flags are used when
13063 # linking a shared library.
13064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13065
13066 else
13067 # FIXME: insert proper C++ library support
13068 ld_shlibs_CXX=no
13069 fi
13070 ;;
13071 esac
13072 ;;
13073
13074 psos*)
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13077 ;;
13078
13079 sunos4*)
13080 case $cc_basename in
13081 CC*)
13082 # Sun C++ 4.x
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 lcc*)
13087 # Lucid
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13090 ;;
13091 *)
13092 # FIXME: insert proper C++ library support
13093 ld_shlibs_CXX=no
13094 ;;
13095 esac
13096 ;;
13097
13098 solaris*)
13099 case $cc_basename in
13100 CC* | sunCC*)
13101 # Sun C++ 4.2, 5.x and Centerline C++
13102 archive_cmds_need_lc_CXX=yes
13103 no_undefined_flag_CXX=' -zdefs'
13104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13105 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13106 $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'
13107
13108 hardcode_libdir_flag_spec_CXX='-R$libdir'
13109 hardcode_shlibpath_var_CXX=no
13110 case $host_os in
13111 solaris2.[0-5] | solaris2.[0-5].*) ;;
13112 *)
13113 # The compiler driver will combine and reorder linker options,
13114 # but understands `-z linker_flag'.
13115 # Supported since Solaris 2.6 (maybe 2.5.1?)
13116 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13117 ;;
13118 esac
13119 link_all_deplibs_CXX=yes
13120
13121 output_verbose_link_cmd='func_echo_all'
13122
13123 # Archives containing C++ object files must be created using
13124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13125 # necessary to make sure instantiated templates are included
13126 # in the archive.
13127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13128 ;;
13129 gcx*)
13130 # Green Hills C++ Compiler
13131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13132
13133 # The C++ compiler must be used to create the archive.
13134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13135 ;;
13136 *)
13137 # GNU C++ compiler with Solaris linker
13138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13140 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13141 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13143 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13144
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13149 else
13150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13151 # platform.
13152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13155
13156 # Commands to make compiler produce verbose output that lists
13157 # what "hidden" libraries, object files and flags are used when
13158 # linking a shared library.
13159 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13160 fi
13161
13162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13163 case $host_os in
13164 solaris2.[0-5] | solaris2.[0-5].*) ;;
13165 *)
13166 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13167 ;;
13168 esac
13169 fi
13170 ;;
13171 esac
13172 ;;
13173
13174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13175 no_undefined_flag_CXX='${wl}-z,text'
13176 archive_cmds_need_lc_CXX=no
13177 hardcode_shlibpath_var_CXX=no
13178 runpath_var='LD_RUN_PATH'
13179
13180 case $cc_basename in
13181 CC*)
13182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13184 ;;
13185 *)
13186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13188 ;;
13189 esac
13190 ;;
13191
13192 sysv5* | sco3.2v5* | sco5v6*)
13193 # Note: We can NOT use -z defs as we might desire, because we do not
13194 # link with -lc, and that would cause any symbols used from libc to
13195 # always be unresolved, which means just about no library would
13196 # ever link correctly. If we're not using GNU ld we use -z text
13197 # though, which does catch some bad symbols but isn't as heavy-handed
13198 # as -z defs.
13199 no_undefined_flag_CXX='${wl}-z,text'
13200 allow_undefined_flag_CXX='${wl}-z,nodefs'
13201 archive_cmds_need_lc_CXX=no
13202 hardcode_shlibpath_var_CXX=no
13203 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13204 hardcode_libdir_separator_CXX=':'
13205 link_all_deplibs_CXX=yes
13206 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13207 runpath_var='LD_RUN_PATH'
13208
13209 case $cc_basename in
13210 CC*)
13211 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13213 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13214 '"$old_archive_cmds_CXX"
13215 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13216 '"$reload_cmds_CXX"
13217 ;;
13218 *)
13219 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13220 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13221 ;;
13222 esac
13223 ;;
13224
13225 tandem*)
13226 case $cc_basename in
13227 NCC*)
13228 # NonStop-UX NCC 3.20
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 ;;
13232 *)
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 ;;
13236 esac
13237 ;;
13238
13239 vxworks*)
13240 # FIXME: insert proper C++ library support
13241 ld_shlibs_CXX=no
13242 ;;
13243
13244 *)
13245 # FIXME: insert proper C++ library support
13246 ld_shlibs_CXX=no
13247 ;;
13248 esac
13249
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13251$as_echo "$ld_shlibs_CXX" >&6; }
13252 test "$ld_shlibs_CXX" = no && can_build_shared=no
13253
13254 GCC_CXX="$GXX"
13255 LD_CXX="$LD"
13256
13257 ## CAVEAT EMPTOR:
13258 ## There is no encapsulation within the following macros, do not change
13259 ## the running order or otherwise move them around unless you know exactly
13260 ## what you are doing...
13261 # Dependencies to place before and after the object being linked:
13262predep_objects_CXX=
13263postdep_objects_CXX=
13264predeps_CXX=
13265postdeps_CXX=
13266compiler_lib_search_path_CXX=
13267
13268cat > conftest.$ac_ext <<_LT_EOF
13269class Foo
13270{
13271public:
13272 Foo (void) { a = 0; }
13273private:
13274 int a;
13275};
13276_LT_EOF
13277
13278
13279_lt_libdeps_save_CFLAGS=$CFLAGS
13280case "$CC $CFLAGS " in #(
13281*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13282*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050013283*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040013284esac
13285
13286if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13287 (eval $ac_compile) 2>&5
13288 ac_status=$?
13289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290 test $ac_status = 0; }; then
13291 # Parse the compiler output and extract the necessary
13292 # objects, libraries and library flags.
13293
13294 # Sentinel used to keep track of whether or not we are before
13295 # the conftest object file.
13296 pre_test_object_deps_done=no
13297
13298 for p in `eval "$output_verbose_link_cmd"`; do
13299 case ${prev}${p} in
13300
13301 -L* | -R* | -l*)
13302 # Some compilers place space between "-{L,R}" and the path.
13303 # Remove the space.
13304 if test $p = "-L" ||
13305 test $p = "-R"; then
13306 prev=$p
13307 continue
13308 fi
13309
13310 # Expand the sysroot to ease extracting the directories later.
13311 if test -z "$prev"; then
13312 case $p in
13313 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13314 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13315 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13316 esac
13317 fi
13318 case $p in
13319 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13320 esac
13321 if test "$pre_test_object_deps_done" = no; then
13322 case ${prev} in
13323 -L | -R)
13324 # Internal compiler library paths should come after those
13325 # provided the user. The postdeps already come after the
13326 # user supplied libs so there is no need to process them.
13327 if test -z "$compiler_lib_search_path_CXX"; then
13328 compiler_lib_search_path_CXX="${prev}${p}"
13329 else
13330 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13331 fi
13332 ;;
13333 # The "-l" case would never come before the object being
13334 # linked, so don't bother handling this case.
13335 esac
13336 else
13337 if test -z "$postdeps_CXX"; then
13338 postdeps_CXX="${prev}${p}"
13339 else
13340 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13341 fi
13342 fi
13343 prev=
13344 ;;
13345
13346 *.lto.$objext) ;; # Ignore GCC LTO objects
13347 *.$objext)
13348 # This assumes that the test object file only shows up
13349 # once in the compiler output.
13350 if test "$p" = "conftest.$objext"; then
13351 pre_test_object_deps_done=yes
13352 continue
13353 fi
13354
13355 if test "$pre_test_object_deps_done" = no; then
13356 if test -z "$predep_objects_CXX"; then
13357 predep_objects_CXX="$p"
13358 else
13359 predep_objects_CXX="$predep_objects_CXX $p"
13360 fi
13361 else
13362 if test -z "$postdep_objects_CXX"; then
13363 postdep_objects_CXX="$p"
13364 else
13365 postdep_objects_CXX="$postdep_objects_CXX $p"
13366 fi
13367 fi
13368 ;;
13369
13370 *) ;; # Ignore the rest.
13371
13372 esac
13373 done
13374
13375 # Clean up.
13376 rm -f a.out a.exe
13377else
13378 echo "libtool.m4: error: problem compiling CXX test program"
13379fi
13380
13381$RM -f confest.$objext
13382CFLAGS=$_lt_libdeps_save_CFLAGS
13383
13384# PORTME: override above test on systems where it is broken
13385case $host_os in
13386interix[3-9]*)
13387 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13388 # hack all around it, let's just trust "g++" to DTRT.
13389 predep_objects_CXX=
13390 postdep_objects_CXX=
13391 postdeps_CXX=
13392 ;;
13393
13394linux*)
13395 case `$CC -V 2>&1 | sed 5q` in
13396 *Sun\ C*)
13397 # Sun C++ 5.9
13398
13399 # The more standards-conforming stlport4 library is
13400 # incompatible with the Cstd library. Avoid specifying
13401 # it if it's in CXXFLAGS. Ignore libCrun as
13402 # -library=stlport4 depends on it.
13403 case " $CXX $CXXFLAGS " in
13404 *" -library=stlport4 "*)
13405 solaris_use_stlport4=yes
13406 ;;
13407 esac
13408
13409 if test "$solaris_use_stlport4" != yes; then
13410 postdeps_CXX='-library=Cstd -library=Crun'
13411 fi
13412 ;;
13413 esac
13414 ;;
13415
13416solaris*)
13417 case $cc_basename in
13418 CC* | sunCC*)
13419 # The more standards-conforming stlport4 library is
13420 # incompatible with the Cstd library. Avoid specifying
13421 # it if it's in CXXFLAGS. Ignore libCrun as
13422 # -library=stlport4 depends on it.
13423 case " $CXX $CXXFLAGS " in
13424 *" -library=stlport4 "*)
13425 solaris_use_stlport4=yes
13426 ;;
13427 esac
13428
13429 # Adding this requires a known-good setup of shared libraries for
13430 # Sun compiler versions before 5.6, else PIC objects from an old
13431 # archive will be linked into the output, leading to subtle bugs.
13432 if test "$solaris_use_stlport4" != yes; then
13433 postdeps_CXX='-library=Cstd -library=Crun'
13434 fi
13435 ;;
13436 esac
13437 ;;
13438esac
13439
13440
13441case " $postdeps_CXX " in
13442*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13443esac
13444 compiler_lib_search_dirs_CXX=
13445if test -n "${compiler_lib_search_path_CXX}"; then
13446 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13447fi
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479 lt_prog_compiler_wl_CXX=
13480lt_prog_compiler_pic_CXX=
13481lt_prog_compiler_static_CXX=
13482
13483
13484 # C++ specific cases for pic, static, wl, etc.
13485 if test "$GXX" = yes; then
13486 lt_prog_compiler_wl_CXX='-Wl,'
13487 lt_prog_compiler_static_CXX='-static'
13488
13489 case $host_os in
13490 aix*)
13491 # All AIX code is PIC.
13492 if test "$host_cpu" = ia64; then
13493 # AIX 5 now supports IA64 processor
13494 lt_prog_compiler_static_CXX='-Bstatic'
13495 fi
13496 ;;
13497
13498 amigaos*)
13499 case $host_cpu in
13500 powerpc)
13501 # see comment about AmigaOS4 .so support
13502 lt_prog_compiler_pic_CXX='-fPIC'
13503 ;;
13504 m68k)
13505 # FIXME: we need at least 68020 code to build shared libraries, but
13506 # adding the `-m68020' flag to GCC prevents building anything better,
13507 # like `-m68040'.
13508 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13509 ;;
13510 esac
13511 ;;
13512
13513 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13514 # PIC is the default for these OSes.
13515 ;;
13516 mingw* | cygwin* | os2* | pw32* | cegcc*)
13517 # This hack is so that the source file can tell whether it is being
13518 # built for inclusion in a dll (and should export symbols for example).
13519 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13520 # (--disable-auto-import) libraries
13521 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13522 ;;
13523 darwin* | rhapsody*)
13524 # PIC is the default on this platform
13525 # Common symbols not allowed in MH_DYLIB files
13526 lt_prog_compiler_pic_CXX='-fno-common'
13527 ;;
13528 *djgpp*)
13529 # DJGPP does not support shared libraries at all
13530 lt_prog_compiler_pic_CXX=
13531 ;;
13532 haiku*)
13533 # PIC is the default for Haiku.
13534 # The "-static" flag exists, but is broken.
13535 lt_prog_compiler_static_CXX=
13536 ;;
13537 interix[3-9]*)
13538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13539 # Instead, we relocate shared libraries at runtime.
13540 ;;
13541 sysv4*MP*)
13542 if test -d /usr/nec; then
13543 lt_prog_compiler_pic_CXX=-Kconform_pic
13544 fi
13545 ;;
13546 hpux*)
13547 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13548 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13549 # sets the default TLS model and affects inlining.
13550 case $host_cpu in
13551 hppa*64*)
13552 ;;
13553 *)
13554 lt_prog_compiler_pic_CXX='-fPIC'
13555 ;;
13556 esac
13557 ;;
13558 *qnx* | *nto*)
13559 # QNX uses GNU C++, but need to define -shared option too, otherwise
13560 # it will coredump.
13561 lt_prog_compiler_pic_CXX='-fPIC -shared'
13562 ;;
13563 *)
13564 lt_prog_compiler_pic_CXX='-fPIC'
13565 ;;
13566 esac
13567 else
13568 case $host_os in
13569 aix[4-9]*)
13570 # All AIX code is PIC.
13571 if test "$host_cpu" = ia64; then
13572 # AIX 5 now supports IA64 processor
13573 lt_prog_compiler_static_CXX='-Bstatic'
13574 else
13575 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13576 fi
13577 ;;
13578 chorus*)
13579 case $cc_basename in
13580 cxch68*)
13581 # Green Hills C++ Compiler
13582 # _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"
13583 ;;
13584 esac
13585 ;;
13586 mingw* | cygwin* | os2* | pw32* | cegcc*)
13587 # This hack is so that the source file can tell whether it is being
13588 # built for inclusion in a dll (and should export symbols for example).
13589 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13590 ;;
13591 dgux*)
13592 case $cc_basename in
13593 ec++*)
13594 lt_prog_compiler_pic_CXX='-KPIC'
13595 ;;
13596 ghcx*)
13597 # Green Hills C++ Compiler
13598 lt_prog_compiler_pic_CXX='-pic'
13599 ;;
13600 *)
13601 ;;
13602 esac
13603 ;;
13604 freebsd* | dragonfly*)
13605 # FreeBSD uses GNU C++
13606 ;;
13607 hpux9* | hpux10* | hpux11*)
13608 case $cc_basename in
13609 CC*)
13610 lt_prog_compiler_wl_CXX='-Wl,'
13611 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13612 if test "$host_cpu" != ia64; then
13613 lt_prog_compiler_pic_CXX='+Z'
13614 fi
13615 ;;
13616 aCC*)
13617 lt_prog_compiler_wl_CXX='-Wl,'
13618 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13619 case $host_cpu in
13620 hppa*64*|ia64*)
13621 # +Z the default
13622 ;;
13623 *)
13624 lt_prog_compiler_pic_CXX='+Z'
13625 ;;
13626 esac
13627 ;;
13628 *)
13629 ;;
13630 esac
13631 ;;
13632 interix*)
13633 # This is c89, which is MS Visual C++ (no shared libs)
13634 # Anyone wants to do a port?
13635 ;;
13636 irix5* | irix6* | nonstopux*)
13637 case $cc_basename in
13638 CC*)
13639 lt_prog_compiler_wl_CXX='-Wl,'
13640 lt_prog_compiler_static_CXX='-non_shared'
13641 # CC pic flag -KPIC is the default.
13642 ;;
13643 *)
13644 ;;
13645 esac
13646 ;;
13647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13648 case $cc_basename in
13649 KCC*)
13650 # KAI C++ Compiler
13651 lt_prog_compiler_wl_CXX='--backend -Wl,'
13652 lt_prog_compiler_pic_CXX='-fPIC'
13653 ;;
13654 ecpc* )
13655 # old Intel C++ for x86_64 which still supported -KPIC.
13656 lt_prog_compiler_wl_CXX='-Wl,'
13657 lt_prog_compiler_pic_CXX='-KPIC'
13658 lt_prog_compiler_static_CXX='-static'
13659 ;;
13660 icpc* )
13661 # Intel C++, used to be incompatible with GCC.
13662 # ICC 10 doesn't accept -KPIC any more.
13663 lt_prog_compiler_wl_CXX='-Wl,'
13664 lt_prog_compiler_pic_CXX='-fPIC'
13665 lt_prog_compiler_static_CXX='-static'
13666 ;;
13667 pgCC* | pgcpp*)
13668 # Portland Group C++ compiler
13669 lt_prog_compiler_wl_CXX='-Wl,'
13670 lt_prog_compiler_pic_CXX='-fpic'
13671 lt_prog_compiler_static_CXX='-Bstatic'
13672 ;;
13673 cxx*)
13674 # Compaq C++
13675 # Make sure the PIC flag is empty. It appears that all Alpha
13676 # Linux and Compaq Tru64 Unix objects are PIC.
13677 lt_prog_compiler_pic_CXX=
13678 lt_prog_compiler_static_CXX='-non_shared'
13679 ;;
13680 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13681 # IBM XL 8.0, 9.0 on PPC and BlueGene
13682 lt_prog_compiler_wl_CXX='-Wl,'
13683 lt_prog_compiler_pic_CXX='-qpic'
13684 lt_prog_compiler_static_CXX='-qstaticlink'
13685 ;;
13686 *)
13687 case `$CC -V 2>&1 | sed 5q` in
13688 *Sun\ C*)
13689 # Sun C++ 5.9
13690 lt_prog_compiler_pic_CXX='-KPIC'
13691 lt_prog_compiler_static_CXX='-Bstatic'
13692 lt_prog_compiler_wl_CXX='-Qoption ld '
13693 ;;
13694 esac
13695 ;;
13696 esac
13697 ;;
13698 lynxos*)
13699 ;;
13700 m88k*)
13701 ;;
13702 mvs*)
13703 case $cc_basename in
13704 cxx*)
13705 lt_prog_compiler_pic_CXX='-W c,exportall'
13706 ;;
13707 *)
13708 ;;
13709 esac
13710 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050013711 netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -040013712 ;;
13713 *qnx* | *nto*)
13714 # QNX uses GNU C++, but need to define -shared option too, otherwise
13715 # it will coredump.
13716 lt_prog_compiler_pic_CXX='-fPIC -shared'
13717 ;;
13718 osf3* | osf4* | osf5*)
13719 case $cc_basename in
13720 KCC*)
13721 lt_prog_compiler_wl_CXX='--backend -Wl,'
13722 ;;
13723 RCC*)
13724 # Rational C++ 2.4.1
13725 lt_prog_compiler_pic_CXX='-pic'
13726 ;;
13727 cxx*)
13728 # Digital/Compaq C++
13729 lt_prog_compiler_wl_CXX='-Wl,'
13730 # Make sure the PIC flag is empty. It appears that all Alpha
13731 # Linux and Compaq Tru64 Unix objects are PIC.
13732 lt_prog_compiler_pic_CXX=
13733 lt_prog_compiler_static_CXX='-non_shared'
13734 ;;
13735 *)
13736 ;;
13737 esac
13738 ;;
13739 psos*)
13740 ;;
13741 solaris*)
13742 case $cc_basename in
13743 CC* | sunCC*)
13744 # Sun C++ 4.2, 5.x and Centerline C++
13745 lt_prog_compiler_pic_CXX='-KPIC'
13746 lt_prog_compiler_static_CXX='-Bstatic'
13747 lt_prog_compiler_wl_CXX='-Qoption ld '
13748 ;;
13749 gcx*)
13750 # Green Hills C++ Compiler
13751 lt_prog_compiler_pic_CXX='-PIC'
13752 ;;
13753 *)
13754 ;;
13755 esac
13756 ;;
13757 sunos4*)
13758 case $cc_basename in
13759 CC*)
13760 # Sun C++ 4.x
13761 lt_prog_compiler_pic_CXX='-pic'
13762 lt_prog_compiler_static_CXX='-Bstatic'
13763 ;;
13764 lcc*)
13765 # Lucid
13766 lt_prog_compiler_pic_CXX='-pic'
13767 ;;
13768 *)
13769 ;;
13770 esac
13771 ;;
13772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13773 case $cc_basename in
13774 CC*)
13775 lt_prog_compiler_wl_CXX='-Wl,'
13776 lt_prog_compiler_pic_CXX='-KPIC'
13777 lt_prog_compiler_static_CXX='-Bstatic'
13778 ;;
13779 esac
13780 ;;
13781 tandem*)
13782 case $cc_basename in
13783 NCC*)
13784 # NonStop-UX NCC 3.20
13785 lt_prog_compiler_pic_CXX='-KPIC'
13786 ;;
13787 *)
13788 ;;
13789 esac
13790 ;;
13791 vxworks*)
13792 ;;
13793 *)
13794 lt_prog_compiler_can_build_shared_CXX=no
13795 ;;
13796 esac
13797 fi
13798
13799case $host_os in
13800 # For platforms which do not support PIC, -DPIC is meaningless:
13801 *djgpp*)
13802 lt_prog_compiler_pic_CXX=
13803 ;;
13804 *)
13805 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13806 ;;
13807esac
13808
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13810$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13811if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13812 $as_echo_n "(cached) " >&6
13813else
13814 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13815fi
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13817$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13818lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13819
13820#
13821# Check to make sure the PIC flag actually works.
13822#
13823if test -n "$lt_prog_compiler_pic_CXX"; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13825$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13826if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13827 $as_echo_n "(cached) " >&6
13828else
13829 lt_cv_prog_compiler_pic_works_CXX=no
13830 ac_outfile=conftest.$ac_objext
13831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13832 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13833 # Insert the option either (1) after the last *FLAGS variable, or
13834 # (2) before a word containing "conftest.", or (3) at the end.
13835 # Note that $ac_compile itself does not contain backslashes and begins
13836 # with a dollar sign (not a hyphen), so the echo should work correctly.
13837 # The option is referenced via a variable to avoid confusing sed.
13838 lt_compile=`echo "$ac_compile" | $SED \
13839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13841 -e 's:$: $lt_compiler_flag:'`
13842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13843 (eval "$lt_compile" 2>conftest.err)
13844 ac_status=$?
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 if (exit $ac_status) && test -s "$ac_outfile"; then
13848 # The compiler can only warn and ignore the option if not recognized
13849 # So say no if there are warnings other than the usual output.
13850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13853 lt_cv_prog_compiler_pic_works_CXX=yes
13854 fi
13855 fi
13856 $RM conftest*
13857
13858fi
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13860$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13861
13862if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13863 case $lt_prog_compiler_pic_CXX in
13864 "" | " "*) ;;
13865 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13866 esac
13867else
13868 lt_prog_compiler_pic_CXX=
13869 lt_prog_compiler_can_build_shared_CXX=no
13870fi
13871
13872fi
13873
13874
13875
13876
13877
13878#
13879# Check to make sure the static flag actually works.
13880#
13881wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13883$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13884if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886else
13887 lt_cv_prog_compiler_static_works_CXX=no
13888 save_LDFLAGS="$LDFLAGS"
13889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13892 # The linker can only warn and ignore the option if not recognized
13893 # So say no if there are warnings
13894 if test -s conftest.err; then
13895 # Append any errors to the config.log.
13896 cat conftest.err 1>&5
13897 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13899 if diff conftest.exp conftest.er2 >/dev/null; then
13900 lt_cv_prog_compiler_static_works_CXX=yes
13901 fi
13902 else
13903 lt_cv_prog_compiler_static_works_CXX=yes
13904 fi
13905 fi
13906 $RM -r conftest*
13907 LDFLAGS="$save_LDFLAGS"
13908
13909fi
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13911$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13912
13913if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13914 :
13915else
13916 lt_prog_compiler_static_CXX=
13917fi
13918
13919
13920
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13923$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13924if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13925 $as_echo_n "(cached) " >&6
13926else
13927 lt_cv_prog_compiler_c_o_CXX=no
13928 $RM -r conftest 2>/dev/null
13929 mkdir conftest
13930 cd conftest
13931 mkdir out
13932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13933
13934 lt_compiler_flag="-o out/conftest2.$ac_objext"
13935 # Insert the option either (1) after the last *FLAGS variable, or
13936 # (2) before a word containing "conftest.", or (3) at the end.
13937 # Note that $ac_compile itself does not contain backslashes and begins
13938 # with a dollar sign (not a hyphen), so the echo should work correctly.
13939 lt_compile=`echo "$ac_compile" | $SED \
13940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13942 -e 's:$: $lt_compiler_flag:'`
13943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13944 (eval "$lt_compile" 2>out/conftest.err)
13945 ac_status=$?
13946 cat out/conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13949 then
13950 # The compiler can only warn and ignore the option if not recognized
13951 # So say no if there are warnings
13952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13955 lt_cv_prog_compiler_c_o_CXX=yes
13956 fi
13957 fi
13958 chmod u+w . 2>&5
13959 $RM conftest*
13960 # SGI C++ compiler will create directory out/ii_files/ for
13961 # template instantiation
13962 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13963 $RM out/* && rmdir out
13964 cd ..
13965 $RM -r conftest
13966 $RM conftest*
13967
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13970$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13971
13972
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13975$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13976if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978else
13979 lt_cv_prog_compiler_c_o_CXX=no
13980 $RM -r conftest 2>/dev/null
13981 mkdir conftest
13982 cd conftest
13983 mkdir out
13984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13985
13986 lt_compiler_flag="-o out/conftest2.$ac_objext"
13987 # Insert the option either (1) after the last *FLAGS variable, or
13988 # (2) before a word containing "conftest.", or (3) at the end.
13989 # Note that $ac_compile itself does not contain backslashes and begins
13990 # with a dollar sign (not a hyphen), so the echo should work correctly.
13991 lt_compile=`echo "$ac_compile" | $SED \
13992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13994 -e 's:$: $lt_compiler_flag:'`
13995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13996 (eval "$lt_compile" 2>out/conftest.err)
13997 ac_status=$?
13998 cat out/conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14001 then
14002 # The compiler can only warn and ignore the option if not recognized
14003 # So say no if there are warnings
14004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14007 lt_cv_prog_compiler_c_o_CXX=yes
14008 fi
14009 fi
14010 chmod u+w . 2>&5
14011 $RM conftest*
14012 # SGI C++ compiler will create directory out/ii_files/ for
14013 # template instantiation
14014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14015 $RM out/* && rmdir out
14016 cd ..
14017 $RM -r conftest
14018 $RM conftest*
14019
14020fi
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14022$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14023
14024
14025
14026
14027hard_links="nottested"
14028if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14029 # do not overwrite the value of need_locks provided by the user
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14031$as_echo_n "checking if we can lock with hard links... " >&6; }
14032 hard_links=yes
14033 $RM conftest*
14034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14035 touch conftest.a
14036 ln conftest.a conftest.b 2>&5 || hard_links=no
14037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14039$as_echo "$hard_links" >&6; }
14040 if test "$hard_links" = no; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14042$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14043 need_locks=warn
14044 fi
14045else
14046 need_locks=no
14047fi
14048
14049
14050
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14052$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14053
14054 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14055 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14056 case $host_os in
14057 aix[4-9]*)
14058 # If we're using GNU nm, then we don't want the "-C" option.
14059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14060 # Also, AIX nm treats weak defined symbols like other global defined
14061 # symbols, whereas GNU nm marks them as "W".
14062 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14063 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'
14064 else
14065 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'
14066 fi
14067 ;;
14068 pw32*)
14069 export_symbols_cmds_CXX="$ltdll_cmds"
14070 ;;
14071 cygwin* | mingw* | cegcc*)
14072 case $cc_basename in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014073 cl*)
14074 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14075 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040014076 *)
14077 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'
14078 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14079 ;;
14080 esac
14081 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040014082 *)
14083 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14084 ;;
14085 esac
14086
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14088$as_echo "$ld_shlibs_CXX" >&6; }
14089test "$ld_shlibs_CXX" = no && can_build_shared=no
14090
14091with_gnu_ld_CXX=$with_gnu_ld
14092
14093
14094
14095
14096
14097
14098#
14099# Do we need to explicitly link libc?
14100#
14101case "x$archive_cmds_need_lc_CXX" in
14102x|xyes)
14103 # Assume -lc should be added
14104 archive_cmds_need_lc_CXX=yes
14105
14106 if test "$enable_shared" = yes && test "$GCC" = yes; then
14107 case $archive_cmds_CXX in
14108 *'~'*)
14109 # FIXME: we may have to deal with multi-command sequences.
14110 ;;
14111 '$CC '*)
14112 # Test whether the compiler implicitly links with -lc since on some
14113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14114 # to ld, don't add -lc before -lgcc.
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14116$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14117if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119else
14120 $RM conftest*
14121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14122
14123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14124 (eval $ac_compile) 2>&5
14125 ac_status=$?
14126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14127 test $ac_status = 0; } 2>conftest.err; then
14128 soname=conftest
14129 lib=conftest
14130 libobjs=conftest.$ac_objext
14131 deplibs=
14132 wl=$lt_prog_compiler_wl_CXX
14133 pic_flag=$lt_prog_compiler_pic_CXX
14134 compiler_flags=-v
14135 linker_flags=-v
14136 verstring=
14137 output_objdir=.
14138 libname=conftest
14139 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14140 allow_undefined_flag_CXX=
14141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14142 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14143 ac_status=$?
14144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145 test $ac_status = 0; }
14146 then
14147 lt_cv_archive_cmds_need_lc_CXX=no
14148 else
14149 lt_cv_archive_cmds_need_lc_CXX=yes
14150 fi
14151 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14152 else
14153 cat conftest.err 1>&5
14154 fi
14155 $RM conftest*
14156
14157fi
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14159$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14160 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14161 ;;
14162 esac
14163 fi
14164 ;;
14165esac
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
Emeric Vigier2f625822012-08-06 11:09:52 -040014228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14229$as_echo_n "checking dynamic linker characteristics... " >&6; }
14230
14231library_names_spec=
14232libname_spec='lib$name'
14233soname_spec=
14234shrext_cmds=".so"
14235postinstall_cmds=
14236postuninstall_cmds=
14237finish_cmds=
14238finish_eval=
14239shlibpath_var=
14240shlibpath_overrides_runpath=unknown
14241version_type=none
14242dynamic_linker="$host_os ld.so"
14243sys_lib_dlsearch_path_spec="/lib /usr/lib"
14244need_lib_prefix=unknown
14245hardcode_into_libs=no
14246
14247# when you set need_version to no, make sure it does not cause -set_version
14248# flags to be left without arguments
14249need_version=unknown
14250
14251case $host_os in
14252aix3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014253 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14255 shlibpath_var=LIBPATH
14256
14257 # AIX 3 has no versioning support, so we append a major version to the name.
14258 soname_spec='${libname}${release}${shared_ext}$major'
14259 ;;
14260
14261aix[4-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014262 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014263 need_lib_prefix=no
14264 need_version=no
14265 hardcode_into_libs=yes
14266 if test "$host_cpu" = ia64; then
14267 # AIX 5 supports IA64
14268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14269 shlibpath_var=LD_LIBRARY_PATH
14270 else
14271 # With GCC up to 2.95.x, collect2 would create an import file
14272 # for dependence libraries. The import file would start with
14273 # the line `#! .'. This would cause the generated library to
14274 # depend on `.', always an invalid library. This was fixed in
14275 # development snapshots of GCC prior to 3.0.
14276 case $host_os in
14277 aix4 | aix4.[01] | aix4.[01].*)
14278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14279 echo ' yes '
14280 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14281 :
14282 else
14283 can_build_shared=no
14284 fi
14285 ;;
14286 esac
14287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14288 # soname into executable. Probably we can add versioning support to
14289 # collect2, so additional links can be useful in future.
14290 if test "$aix_use_runtimelinking" = yes; then
14291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14292 # instead of lib<name>.a to let people know that these are not
14293 # typical AIX shared libraries.
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14295 else
14296 # We preserve .a as extension for shared libraries through AIX4.2
14297 # and later when we are not doing run time linking.
14298 library_names_spec='${libname}${release}.a $libname.a'
14299 soname_spec='${libname}${release}${shared_ext}$major'
14300 fi
14301 shlibpath_var=LIBPATH
14302 fi
14303 ;;
14304
14305amigaos*)
14306 case $host_cpu in
14307 powerpc)
14308 # Since July 2007 AmigaOS4 officially supports .so libraries.
14309 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311 ;;
14312 m68k)
14313 library_names_spec='$libname.ixlibrary $libname.a'
14314 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14315 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'
14316 ;;
14317 esac
14318 ;;
14319
14320beos*)
14321 library_names_spec='${libname}${shared_ext}'
14322 dynamic_linker="$host_os ld.so"
14323 shlibpath_var=LIBRARY_PATH
14324 ;;
14325
14326bsdi[45]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014327 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014328 need_version=no
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14332 shlibpath_var=LD_LIBRARY_PATH
14333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14335 # the default ld.so.conf also contains /usr/contrib/lib and
14336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14337 # libtool to hard-code these into programs
14338 ;;
14339
14340cygwin* | mingw* | pw32* | cegcc*)
14341 version_type=windows
14342 shrext_cmds=".dll"
14343 need_version=no
14344 need_lib_prefix=no
14345
14346 case $GCC,$cc_basename in
14347 yes,*)
14348 # gcc
14349 library_names_spec='$libname.dll.a'
14350 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14351 postinstall_cmds='base_file=`basename \${file}`~
14352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14353 dldir=$destdir/`dirname \$dlpath`~
14354 test -d \$dldir || mkdir -p \$dldir~
14355 $install_prog $dir/$dlname \$dldir/$dlname~
14356 chmod a+x \$dldir/$dlname~
14357 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14358 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14359 fi'
14360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14361 dlpath=$dir/\$dldll~
14362 $RM \$dlpath'
14363 shlibpath_overrides_runpath=yes
14364
14365 case $host_os in
14366 cygwin*)
14367 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14368 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14369
14370 ;;
14371 mingw* | cegcc*)
14372 # MinGW DLLs use traditional 'lib' prefix
14373 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14374 ;;
14375 pw32*)
14376 # pw32 DLLs use 'pw' prefix rather than 'lib'
14377 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14378 ;;
14379 esac
14380 dynamic_linker='Win32 ld.exe'
14381 ;;
14382
14383 *,cl*)
14384 # Native MSVC
14385 libname_spec='$name'
14386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14387 library_names_spec='${libname}.dll.lib'
14388
14389 case $build_os in
14390 mingw*)
14391 sys_lib_search_path_spec=
14392 lt_save_ifs=$IFS
14393 IFS=';'
14394 for lt_path in $LIB
14395 do
14396 IFS=$lt_save_ifs
14397 # Let DOS variable expansion print the short 8.3 style file name.
14398 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14399 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14400 done
14401 IFS=$lt_save_ifs
14402 # Convert to MSYS style.
14403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14404 ;;
14405 cygwin*)
14406 # Convert to unix form, then to dos form, then back to unix form
14407 # but this time dos style (no spaces!) so that the unix form looks
14408 # like /cygdrive/c/PROGRA~1:/cygdr...
14409 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14410 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14411 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14412 ;;
14413 *)
14414 sys_lib_search_path_spec="$LIB"
14415 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14416 # It is most probably a Windows format PATH.
14417 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14418 else
14419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14420 fi
14421 # FIXME: find the short name or the path components, as spaces are
14422 # common. (e.g. "Program Files" -> "PROGRA~1")
14423 ;;
14424 esac
14425
14426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14427 postinstall_cmds='base_file=`basename \${file}`~
14428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14429 dldir=$destdir/`dirname \$dlpath`~
14430 test -d \$dldir || mkdir -p \$dldir~
14431 $install_prog $dir/$dlname \$dldir/$dlname'
14432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14433 dlpath=$dir/\$dldll~
14434 $RM \$dlpath'
14435 shlibpath_overrides_runpath=yes
14436 dynamic_linker='Win32 link.exe'
14437 ;;
14438
14439 *)
14440 # Assume MSVC wrapper
14441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14442 dynamic_linker='Win32 ld.exe'
14443 ;;
14444 esac
14445 # FIXME: first we should search . and the directory the executable is in
14446 shlibpath_var=PATH
14447 ;;
14448
14449darwin* | rhapsody*)
14450 dynamic_linker="$host_os dyld"
14451 version_type=darwin
14452 need_lib_prefix=no
14453 need_version=no
14454 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14455 soname_spec='${libname}${release}${major}$shared_ext'
14456 shlibpath_overrides_runpath=yes
14457 shlibpath_var=DYLD_LIBRARY_PATH
14458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14459
14460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14461 ;;
14462
14463dgux*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014464 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014465 need_lib_prefix=no
14466 need_version=no
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 ;;
14471
Emeric Vigier2f625822012-08-06 11:09:52 -040014472freebsd* | dragonfly*)
14473 # DragonFly does not have aout. When/if they implement a new
14474 # versioning mechanism, adjust this.
14475 if test -x /usr/bin/objformat; then
14476 objformat=`/usr/bin/objformat`
14477 else
14478 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014479 freebsd[23].*) objformat=aout ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040014480 *) objformat=elf ;;
14481 esac
14482 fi
14483 version_type=freebsd-$objformat
14484 case $version_type in
14485 freebsd-elf*)
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14487 need_version=no
14488 need_lib_prefix=no
14489 ;;
14490 freebsd-*)
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14492 need_version=yes
14493 ;;
14494 esac
14495 shlibpath_var=LD_LIBRARY_PATH
14496 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014497 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -040014498 shlibpath_overrides_runpath=yes
14499 ;;
14500 freebsd3.[01]* | freebsdelf3.[01]*)
14501 shlibpath_overrides_runpath=yes
14502 hardcode_into_libs=yes
14503 ;;
14504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14506 shlibpath_overrides_runpath=no
14507 hardcode_into_libs=yes
14508 ;;
14509 *) # from 4.6 on, and DragonFly
14510 shlibpath_overrides_runpath=yes
14511 hardcode_into_libs=yes
14512 ;;
14513 esac
14514 ;;
14515
14516gnu*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014517 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014518 need_lib_prefix=no
14519 need_version=no
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 shlibpath_overrides_runpath=no
14524 hardcode_into_libs=yes
14525 ;;
14526
14527haiku*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014528 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014529 need_lib_prefix=no
14530 need_version=no
14531 dynamic_linker="$host_os runtime_loader"
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 shlibpath_var=LIBRARY_PATH
14535 shlibpath_overrides_runpath=yes
14536 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14537 hardcode_into_libs=yes
14538 ;;
14539
14540hpux9* | hpux10* | hpux11*)
14541 # Give a soname corresponding to the major version so that dld.sl refuses to
14542 # link against other versions.
14543 version_type=sunos
14544 need_lib_prefix=no
14545 need_version=no
14546 case $host_cpu in
14547 ia64*)
14548 shrext_cmds='.so'
14549 hardcode_into_libs=yes
14550 dynamic_linker="$host_os dld.so"
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14554 soname_spec='${libname}${release}${shared_ext}$major'
14555 if test "X$HPUX_IA64_MODE" = X32; then
14556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14557 else
14558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14559 fi
14560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14561 ;;
14562 hppa*64*)
14563 shrext_cmds='.sl'
14564 hardcode_into_libs=yes
14565 dynamic_linker="$host_os dld.sl"
14566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14572 ;;
14573 *)
14574 shrext_cmds='.sl'
14575 dynamic_linker="$host_os dld.sl"
14576 shlibpath_var=SHLIB_PATH
14577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 ;;
14581 esac
14582 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14583 postinstall_cmds='chmod 555 $lib'
14584 # or fails outright, so override atomically:
14585 install_override_mode=555
14586 ;;
14587
14588interix[3-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014589 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014590 need_lib_prefix=no
14591 need_version=no
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 shlibpath_overrides_runpath=no
14597 hardcode_into_libs=yes
14598 ;;
14599
14600irix5* | irix6* | nonstopux*)
14601 case $host_os in
14602 nonstopux*) version_type=nonstopux ;;
14603 *)
14604 if test "$lt_cv_prog_gnu_ld" = yes; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014605 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014606 else
14607 version_type=irix
14608 fi ;;
14609 esac
14610 need_lib_prefix=no
14611 need_version=no
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14614 case $host_os in
14615 irix5* | nonstopux*)
14616 libsuff= shlibsuff=
14617 ;;
14618 *)
14619 case $LD in # libtool.m4 will add one of these switches to LD
14620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14621 libsuff= shlibsuff= libmagic=32-bit;;
14622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14623 libsuff=32 shlibsuff=N32 libmagic=N32;;
14624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14626 *) libsuff= shlibsuff= libmagic=never-match;;
14627 esac
14628 ;;
14629 esac
14630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14631 shlibpath_overrides_runpath=no
14632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14634 hardcode_into_libs=yes
14635 ;;
14636
14637# No shared lib support for Linux oldld, aout, or coff.
14638linux*oldld* | linux*aout* | linux*coff*)
14639 dynamic_linker=no
14640 ;;
14641
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014642# This must be glibc/ELF.
Emeric Vigier2f625822012-08-06 11:09:52 -040014643linux* | k*bsd*-gnu | kopensolaris*-gnu)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014644 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014645 need_lib_prefix=no
14646 need_version=no
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 shlibpath_overrides_runpath=no
14652
14653 # Some binutils ld are patched to set DT_RUNPATH
14654 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656else
14657 lt_cv_shlibpath_overrides_runpath=no
14658 save_LDFLAGS=$LDFLAGS
14659 save_libdir=$libdir
14660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663/* end confdefs.h. */
14664
14665int
14666main ()
14667{
14668
14669 ;
14670 return 0;
14671}
14672_ACEOF
14673if ac_fn_cxx_try_link "$LINENO"; then :
14674 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14675 lt_cv_shlibpath_overrides_runpath=yes
14676fi
14677fi
14678rm -f core conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680 LDFLAGS=$save_LDFLAGS
14681 libdir=$save_libdir
14682
14683fi
14684
14685 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14686
14687 # This implies no fast_install, which is unacceptable.
14688 # Some rework will be needed to allow for fast_install
14689 # before this can be enabled.
14690 hardcode_into_libs=yes
14691
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014692 # Add ABI-specific directories to the system library path.
14693 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14694
Emeric Vigier2f625822012-08-06 11:09:52 -040014695 # Append ld.so.conf contents to the search path
14696 if test -f /etc/ld.so.conf; then
14697 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' ' '`
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014698 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14699
Emeric Vigier2f625822012-08-06 11:09:52 -040014700 fi
14701
14702 # We used to test for /lib/ld.so.1 and disable shared libraries on
14703 # powerpc, because MkLinux only supported shared libraries with the
14704 # GNU dynamic linker. Since this was broken with cross compilers,
14705 # most powerpc-linux boxes support dynamic linking these days and
14706 # people can always --disable-shared, the test was removed, and we
14707 # assume the GNU/Linux dynamic linker is in use.
14708 dynamic_linker='GNU/Linux ld.so'
14709 ;;
14710
Emeric Vigier2f625822012-08-06 11:09:52 -040014711netbsd*)
14712 version_type=sunos
14713 need_lib_prefix=no
14714 need_version=no
14715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14718 dynamic_linker='NetBSD (a.out) ld.so'
14719 else
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 dynamic_linker='NetBSD ld.elf_so'
14723 fi
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=yes
14726 hardcode_into_libs=yes
14727 ;;
14728
14729newsos6)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014730 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=yes
14734 ;;
14735
14736*nto* | *qnx*)
14737 version_type=qnx
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 shlibpath_overrides_runpath=no
14744 hardcode_into_libs=yes
14745 dynamic_linker='ldqnx.so'
14746 ;;
14747
14748openbsd*)
14749 version_type=sunos
14750 sys_lib_dlsearch_path_spec="/usr/lib"
14751 need_lib_prefix=no
14752 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14753 case $host_os in
14754 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14755 *) need_version=no ;;
14756 esac
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14761 case $host_os in
14762 openbsd2.[89] | openbsd2.[89].*)
14763 shlibpath_overrides_runpath=no
14764 ;;
14765 *)
14766 shlibpath_overrides_runpath=yes
14767 ;;
14768 esac
14769 else
14770 shlibpath_overrides_runpath=yes
14771 fi
14772 ;;
14773
14774os2*)
14775 libname_spec='$name'
14776 shrext_cmds=".dll"
14777 need_lib_prefix=no
14778 library_names_spec='$libname${shared_ext} $libname.a'
14779 dynamic_linker='OS/2 ld.exe'
14780 shlibpath_var=LIBPATH
14781 ;;
14782
14783osf3* | osf4* | osf5*)
14784 version_type=osf
14785 need_lib_prefix=no
14786 need_version=no
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14791 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14792 ;;
14793
14794rdos*)
14795 dynamic_linker=no
14796 ;;
14797
14798solaris*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014799 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014800 need_lib_prefix=no
14801 need_version=no
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 shlibpath_overrides_runpath=yes
14806 hardcode_into_libs=yes
14807 # ldd complains unless libraries are executable
14808 postinstall_cmds='chmod +x $lib'
14809 ;;
14810
14811sunos4*)
14812 version_type=sunos
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=yes
14817 if test "$with_gnu_ld" = yes; then
14818 need_lib_prefix=no
14819 fi
14820 need_version=yes
14821 ;;
14822
14823sysv4 | sysv4.3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014824 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 case $host_vendor in
14829 sni)
14830 shlibpath_overrides_runpath=no
14831 need_lib_prefix=no
14832 runpath_var=LD_RUN_PATH
14833 ;;
14834 siemens)
14835 need_lib_prefix=no
14836 ;;
14837 motorola)
14838 need_lib_prefix=no
14839 need_version=no
14840 shlibpath_overrides_runpath=no
14841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14842 ;;
14843 esac
14844 ;;
14845
14846sysv4*MP*)
14847 if test -d /usr/nec ;then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014848 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014849 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14850 soname_spec='$libname${shared_ext}.$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 fi
14853 ;;
14854
14855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14856 version_type=freebsd-elf
14857 need_lib_prefix=no
14858 need_version=no
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14860 soname_spec='${libname}${release}${shared_ext}$major'
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14863 hardcode_into_libs=yes
14864 if test "$with_gnu_ld" = yes; then
14865 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14866 else
14867 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14868 case $host_os in
14869 sco3.2v5*)
14870 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14871 ;;
14872 esac
14873 fi
14874 sys_lib_dlsearch_path_spec='/usr/lib'
14875 ;;
14876
14877tpf*)
14878 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014879 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014880 need_lib_prefix=no
14881 need_version=no
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 shlibpath_overrides_runpath=no
14885 hardcode_into_libs=yes
14886 ;;
14887
14888uts4*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014889 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 ;;
14894
14895*)
14896 dynamic_linker=no
14897 ;;
14898esac
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14900$as_echo "$dynamic_linker" >&6; }
14901test "$dynamic_linker" = no && can_build_shared=no
14902
14903variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14904if test "$GCC" = yes; then
14905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14906fi
14907
14908if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14909 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14910fi
14911if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14912 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14913fi
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14953$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14954hardcode_action_CXX=
14955if test -n "$hardcode_libdir_flag_spec_CXX" ||
14956 test -n "$runpath_var_CXX" ||
14957 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14958
14959 # We can hardcode non-existent directories.
14960 if test "$hardcode_direct_CXX" != no &&
14961 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14962 # have to relink, otherwise we might link with an installed library
14963 # when we should be linking with a yet-to-be-installed one
14964 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14965 test "$hardcode_minus_L_CXX" != no; then
14966 # Linking always hardcodes the temporary library directory.
14967 hardcode_action_CXX=relink
14968 else
14969 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14970 hardcode_action_CXX=immediate
14971 fi
14972else
14973 # We cannot hardcode anything, or else we can only hardcode existing
14974 # directories.
14975 hardcode_action_CXX=unsupported
14976fi
14977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14978$as_echo "$hardcode_action_CXX" >&6; }
14979
14980if test "$hardcode_action_CXX" = relink ||
14981 test "$inherit_rpath_CXX" = yes; then
14982 # Fast installation is not supported
14983 enable_fast_install=no
14984elif test "$shlibpath_overrides_runpath" = yes ||
14985 test "$enable_shared" = no; then
14986 # Fast installation is not necessary
14987 enable_fast_install=needless
14988fi
14989
14990
14991
14992
14993
14994
14995
14996 fi # test -n "$compiler"
14997
14998 CC=$lt_save_CC
14999 CFLAGS=$lt_save_CFLAGS
15000 LDCXX=$LD
15001 LD=$lt_save_LD
15002 GCC=$lt_save_GCC
15003 with_gnu_ld=$lt_save_with_gnu_ld
15004 lt_cv_path_LDCXX=$lt_cv_path_LD
15005 lt_cv_path_LD=$lt_save_path_LD
15006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15008fi # test "$_lt_caught_CXX_error" != yes
15009
15010ac_ext=c
15011ac_cpp='$CPP $CPPFLAGS'
15012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15014ac_compiler_gnu=$ac_cv_c_compiler_gnu
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015028
15029
Emeric Vigier2f625822012-08-06 11:09:52 -040015030 ac_config_commands="$ac_config_commands libtool"
15031
15032
15033
15034
15035# Only expand once:
15036
15037
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015038am__api_version='1.13'
Emeric Vigier2f625822012-08-06 11:09:52 -040015039
15040# Find a good install program. We prefer a C program (faster),
15041# so one script is as good as another. But avoid the broken or
15042# incompatible versions:
15043# SysV /etc/install, /usr/sbin/install
15044# SunOS /usr/etc/install
15045# IRIX /sbin/install
15046# AIX /bin/install
15047# AmigaOS /C/install, which installs bootblocks on floppy discs
15048# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15049# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15050# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15051# OS/2's system install, which has a completely different semantic
15052# ./install, which can be erroneously created by make from ./install.sh.
15053# Reject install programs that cannot install multiple files.
15054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15055$as_echo_n "checking for a BSD-compatible install... " >&6; }
15056if test -z "$INSTALL"; then
15057if ${ac_cv_path_install+:} false; then :
15058 $as_echo_n "(cached) " >&6
15059else
15060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061for as_dir in $PATH
15062do
15063 IFS=$as_save_IFS
15064 test -z "$as_dir" && as_dir=.
15065 # Account for people who put trailing slashes in PATH elements.
15066case $as_dir/ in #((
15067 ./ | .// | /[cC]/* | \
15068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15069 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15070 /usr/ucb/* ) ;;
15071 *)
15072 # OSF1 and SCO ODT 3.0 have their own names for install.
15073 # Don't use installbsd from OSF since it installs stuff as root
15074 # by default.
15075 for ac_prog in ginstall scoinst install; do
15076 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015077 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040015078 if test $ac_prog = install &&
15079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15080 # AIX install. It has an incompatible calling convention.
15081 :
15082 elif test $ac_prog = install &&
15083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15084 # program-specific install script used by HP pwplus--don't use.
15085 :
15086 else
15087 rm -rf conftest.one conftest.two conftest.dir
15088 echo one > conftest.one
15089 echo two > conftest.two
15090 mkdir conftest.dir
15091 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15092 test -s conftest.one && test -s conftest.two &&
15093 test -s conftest.dir/conftest.one &&
15094 test -s conftest.dir/conftest.two
15095 then
15096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15097 break 3
15098 fi
15099 fi
15100 fi
15101 done
15102 done
15103 ;;
15104esac
15105
15106 done
15107IFS=$as_save_IFS
15108
15109rm -rf conftest.one conftest.two conftest.dir
15110
15111fi
15112 if test "${ac_cv_path_install+set}" = set; then
15113 INSTALL=$ac_cv_path_install
15114 else
15115 # As a last resort, use the slow shell script. Don't cache a
15116 # value for INSTALL within a source directory, because that will
15117 # break other packages using the cache if that directory is
15118 # removed, or if the value is a relative name.
15119 INSTALL=$ac_install_sh
15120 fi
15121fi
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15123$as_echo "$INSTALL" >&6; }
15124
15125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15126# It thinks the first close brace ends the variable substitution.
15127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15128
15129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15130
15131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15132
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15134$as_echo_n "checking whether build environment is sane... " >&6; }
Emeric Vigier2f625822012-08-06 11:09:52 -040015135# Reject unsafe characters in $srcdir or the absolute working directory
15136# name. Accept space and tab only in the latter.
15137am_lf='
15138'
15139case `pwd` in
15140 *[\\\"\#\$\&\'\`$am_lf]*)
15141 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
15142esac
15143case $srcdir in
15144 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015145 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Emeric Vigier2f625822012-08-06 11:09:52 -040015146esac
15147
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015148# Do 'set' in a subshell so we don't clobber the current shell's
Emeric Vigier2f625822012-08-06 11:09:52 -040015149# arguments. Must try -L first in case configure is actually a
15150# symlink; some systems play weird games with the mod time of symlinks
15151# (eg FreeBSD returns the mod time of the symlink's containing
15152# directory).
15153if (
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015154 am_has_slept=no
15155 for am_try in 1 2; do
15156 echo "timestamp, slept: $am_has_slept" > conftest.file
15157 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15158 if test "$*" = "X"; then
15159 # -L didn't work.
15160 set X `ls -t "$srcdir/configure" conftest.file`
15161 fi
15162 if test "$*" != "X $srcdir/configure conftest.file" \
15163 && test "$*" != "X conftest.file $srcdir/configure"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040015164
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015165 # If neither matched, then we have a broken ls. This can happen
15166 # if, for instance, CONFIG_SHELL is bash and it inherits a
15167 # broken ls alias from the environment. This has actually
15168 # happened. Such a system could not be considered "sane".
15169 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
15170 alias in your environment" "$LINENO" 5
15171 fi
15172 if test "$2" = conftest.file || test $am_try -eq 2; then
15173 break
15174 fi
15175 # Just in case.
15176 sleep 1
15177 am_has_slept=yes
15178 done
Emeric Vigier2f625822012-08-06 11:09:52 -040015179 test "$2" = conftest.file
15180 )
15181then
15182 # Ok.
15183 :
15184else
15185 as_fn_error $? "newly created file is older than distributed files!
15186Check your system clock" "$LINENO" 5
15187fi
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15189$as_echo "yes" >&6; }
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015190# If we didn't sleep, we still need to ensure time stamps of config.status and
15191# generated files are strictly newer.
15192am_sleep_pid=
15193if grep 'slept: no' conftest.file >/dev/null 2>&1; then
15194 ( sleep 1 ) &
15195 am_sleep_pid=$!
15196fi
15197
15198rm -f conftest.file
15199
Emeric Vigier2f625822012-08-06 11:09:52 -040015200test "$program_prefix" != NONE &&
15201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15202# Use a double $ so make ignores it.
15203test "$program_suffix" != NONE &&
15204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15205# Double any \ or $.
15206# By default was `s,x,x', remove it if useless.
15207ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15208program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15209
15210# expand $ac_aux_dir to an absolute path
15211am_aux_dir=`cd $ac_aux_dir && pwd`
15212
15213if test x"${MISSING+set}" != xset; then
15214 case $am_aux_dir in
15215 *\ * | *\ *)
15216 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15217 *)
15218 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15219 esac
15220fi
15221# Use eval to expand $SHELL
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015222if eval "$MISSING --is-lightweight"; then
15223 am_missing_run="$MISSING "
Emeric Vigier2f625822012-08-06 11:09:52 -040015224else
15225 am_missing_run=
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
15227$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Emeric Vigier2f625822012-08-06 11:09:52 -040015228fi
15229
15230if test x"${install_sh}" != xset; then
15231 case $am_aux_dir in
15232 *\ * | *\ *)
15233 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15234 *)
15235 install_sh="\${SHELL} $am_aux_dir/install-sh"
15236 esac
15237fi
15238
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015239# Installed binaries are usually stripped using 'strip' when the user
15240# run "make install-strip". However 'strip' might not be the right
Emeric Vigier2f625822012-08-06 11:09:52 -040015241# tool to use in cross-compilation environments, therefore Automake
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015242# will honor the 'STRIP' environment variable to overrule this program.
Emeric Vigier2f625822012-08-06 11:09:52 -040015243if test "$cross_compiling" != no; then
15244 if test -n "$ac_tool_prefix"; then
15245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15246set dummy ${ac_tool_prefix}strip; ac_word=$2
15247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15248$as_echo_n "checking for $ac_word... " >&6; }
15249if ${ac_cv_prog_STRIP+:} false; then :
15250 $as_echo_n "(cached) " >&6
15251else
15252 if test -n "$STRIP"; then
15253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15254else
15255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256for as_dir in $PATH
15257do
15258 IFS=$as_save_IFS
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040015262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15264 break 2
15265 fi
15266done
15267 done
15268IFS=$as_save_IFS
15269
15270fi
15271fi
15272STRIP=$ac_cv_prog_STRIP
15273if test -n "$STRIP"; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15275$as_echo "$STRIP" >&6; }
15276else
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278$as_echo "no" >&6; }
15279fi
15280
15281
15282fi
15283if test -z "$ac_cv_prog_STRIP"; then
15284 ac_ct_STRIP=$STRIP
15285 # Extract the first word of "strip", so it can be a program name with args.
15286set dummy strip; ac_word=$2
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15288$as_echo_n "checking for $ac_word... " >&6; }
15289if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291else
15292 if test -n "$ac_ct_STRIP"; then
15293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15294else
15295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15296for as_dir in $PATH
15297do
15298 IFS=$as_save_IFS
15299 test -z "$as_dir" && as_dir=.
15300 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040015302 ac_cv_prog_ac_ct_STRIP="strip"
15303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15304 break 2
15305 fi
15306done
15307 done
15308IFS=$as_save_IFS
15309
15310fi
15311fi
15312ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15313if test -n "$ac_ct_STRIP"; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15315$as_echo "$ac_ct_STRIP" >&6; }
15316else
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318$as_echo "no" >&6; }
15319fi
15320
15321 if test "x$ac_ct_STRIP" = x; then
15322 STRIP=":"
15323 else
15324 case $cross_compiling:$ac_tool_warned in
15325yes:)
15326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15328ac_tool_warned=yes ;;
15329esac
15330 STRIP=$ac_ct_STRIP
15331 fi
15332else
15333 STRIP="$ac_cv_prog_STRIP"
15334fi
15335
15336fi
15337INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15338
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15340$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15341if test -z "$MKDIR_P"; then
15342 if ${ac_cv_path_mkdir+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344else
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15347do
15348 IFS=$as_save_IFS
15349 test -z "$as_dir" && as_dir=.
15350 for ac_prog in mkdir gmkdir; do
15351 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015352 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -040015353 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15354 'mkdir (GNU coreutils) '* | \
15355 'mkdir (coreutils) '* | \
15356 'mkdir (fileutils) '4.1*)
15357 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15358 break 3;;
15359 esac
15360 done
15361 done
15362 done
15363IFS=$as_save_IFS
15364
15365fi
15366
15367 test -d ./--version && rmdir ./--version
15368 if test "${ac_cv_path_mkdir+set}" = set; then
15369 MKDIR_P="$ac_cv_path_mkdir -p"
15370 else
15371 # As a last resort, use the slow shell script. Don't cache a
15372 # value for MKDIR_P within a source directory, because that will
15373 # break other packages using the cache if that directory is
15374 # removed, or if the value is a relative name.
15375 MKDIR_P="$ac_install_sh -d"
15376 fi
15377fi
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
15379$as_echo "$MKDIR_P" >&6; }
15380
Emeric Vigier2f625822012-08-06 11:09:52 -040015381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15382$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15383set x ${MAKE-make}
15384ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15385if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387else
15388 cat >conftest.make <<\_ACEOF
15389SHELL = /bin/sh
15390all:
15391 @echo '@@@%%%=$(MAKE)=@@@%%%'
15392_ACEOF
15393# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15394case `${MAKE-make} -f conftest.make 2>/dev/null` in
15395 *@@@%%%=?*=@@@%%%*)
15396 eval ac_cv_prog_make_${ac_make}_set=yes;;
15397 *)
15398 eval ac_cv_prog_make_${ac_make}_set=no;;
15399esac
15400rm -f conftest.make
15401fi
15402if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15404$as_echo "yes" >&6; }
15405 SET_MAKE=
15406else
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408$as_echo "no" >&6; }
15409 SET_MAKE="MAKE=${MAKE-make}"
15410fi
15411
15412rm -rf .tst 2>/dev/null
15413mkdir .tst 2>/dev/null
15414if test -d .tst; then
15415 am__leading_dot=.
15416else
15417 am__leading_dot=_
15418fi
15419rmdir .tst 2>/dev/null
15420
15421DEPDIR="${am__leading_dot}deps"
15422
15423ac_config_commands="$ac_config_commands depfiles"
15424
15425
15426am_make=${MAKE-make}
15427cat > confinc << 'END'
15428am__doit:
15429 @echo this is the am__doit target
15430.PHONY: am__doit
15431END
15432# If we don't find an include directive, just comment out the code.
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15434$as_echo_n "checking for style of include used by $am_make... " >&6; }
15435am__include="#"
15436am__quote=
15437_am_result=none
15438# First try GNU make style include.
15439echo "include confinc" > confmf
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015440# Ignore all kinds of additional output from 'make'.
Emeric Vigier2f625822012-08-06 11:09:52 -040015441case `$am_make -s -f confmf 2> /dev/null` in #(
15442*the\ am__doit\ target*)
15443 am__include=include
15444 am__quote=
15445 _am_result=GNU
15446 ;;
15447esac
15448# Now try BSD make style include.
15449if test "$am__include" = "#"; then
15450 echo '.include "confinc"' > confmf
15451 case `$am_make -s -f confmf 2> /dev/null` in #(
15452 *the\ am__doit\ target*)
15453 am__include=.include
15454 am__quote="\""
15455 _am_result=BSD
15456 ;;
15457 esac
15458fi
15459
15460
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15462$as_echo "$_am_result" >&6; }
15463rm -f confinc confmf
15464
15465# Check whether --enable-dependency-tracking was given.
15466if test "${enable_dependency_tracking+set}" = set; then :
15467 enableval=$enable_dependency_tracking;
15468fi
15469
15470if test "x$enable_dependency_tracking" != xno; then
15471 am_depcomp="$ac_aux_dir/depcomp"
15472 AMDEPBACKSLASH='\'
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015473 am__nodep='_no'
Emeric Vigier2f625822012-08-06 11:09:52 -040015474fi
15475 if test "x$enable_dependency_tracking" != xno; then
15476 AMDEP_TRUE=
15477 AMDEP_FALSE='#'
15478else
15479 AMDEP_TRUE='#'
15480 AMDEP_FALSE=
15481fi
15482
15483
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015484# Check whether --enable-silent-rules was given.
15485if test "${enable_silent_rules+set}" = set; then :
15486 enableval=$enable_silent_rules;
15487fi
15488
15489case $enable_silent_rules in # (((
15490 yes) AM_DEFAULT_VERBOSITY=0;;
15491 no) AM_DEFAULT_VERBOSITY=1;;
15492 *) AM_DEFAULT_VERBOSITY=1;;
15493esac
15494am_make=${MAKE-make}
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
15496$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
15497if ${am_cv_make_support_nested_variables+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499else
15500 if $as_echo 'TRUE=$(BAR$(V))
15501BAR0=false
15502BAR1=true
15503V=1
15504am__doit:
15505 @$(TRUE)
15506.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
15507 am_cv_make_support_nested_variables=yes
15508else
15509 am_cv_make_support_nested_variables=no
15510fi
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
15513$as_echo "$am_cv_make_support_nested_variables" >&6; }
15514if test $am_cv_make_support_nested_variables = yes; then
15515 AM_V='$(V)'
15516 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15517else
15518 AM_V=$AM_DEFAULT_VERBOSITY
15519 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15520fi
15521AM_BACKSLASH='\'
15522
Emeric Vigier2f625822012-08-06 11:09:52 -040015523if test "`cd $srcdir && pwd`" != "`pwd`"; then
15524 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15525 # is not polluted with repeated "-I."
15526 am__isrc=' -I$(srcdir)'
15527 # test to see if srcdir already configured
15528 if test -f $srcdir/config.status; then
15529 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15530 fi
15531fi
15532
15533# test whether we have cygpath
15534if test -z "$CYGPATH_W"; then
15535 if (cygpath --version) >/dev/null 2>/dev/null; then
15536 CYGPATH_W='cygpath -w'
15537 else
15538 CYGPATH_W=echo
15539 fi
15540fi
15541
15542
15543# Define the identity of the package.
Alexandre Lisione41ecd42014-02-27 15:51:10 -050015544 PACKAGE='ccrtp'
15545 VERSION='2.0.7'
Emeric Vigier2f625822012-08-06 11:09:52 -040015546
15547
15548cat >>confdefs.h <<_ACEOF
15549#define PACKAGE "$PACKAGE"
15550_ACEOF
15551
15552
15553cat >>confdefs.h <<_ACEOF
15554#define VERSION "$VERSION"
15555_ACEOF
15556
15557# Some tools Automake needs.
15558
15559ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15560
15561
15562AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15563
15564
15565AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15566
15567
15568AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15569
15570
15571MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15572
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015573# For better backward compatibility. To be removed once Automake 1.9.x
15574# dies out for good. For more background, see:
15575# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
15576# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
15577mkdir_p='$(MKDIR_P)'
15578
Emeric Vigier2f625822012-08-06 11:09:52 -040015579# We need awk for the "check" target. The system "awk" is bad on
15580# some platforms.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015581# Always define AMTAR for backward compatibility. Yes, it's still used
15582# in the wild :-( We should find a proper way to deprecate it ...
15583AMTAR='$${TAR-tar}'
Emeric Vigier2f625822012-08-06 11:09:52 -040015584
Emeric Vigier2f625822012-08-06 11:09:52 -040015585
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015586# We'll loop over all known methods to create a tar archive until one works.
15587_am_tools='gnutar pax cpio none'
15588
15589am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
15590
Emeric Vigier2f625822012-08-06 11:09:52 -040015591
15592
15593
15594
15595depcc="$CC" am_compiler_list=
15596
15597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15598$as_echo_n "checking dependency style of $depcc... " >&6; }
15599if ${am_cv_CC_dependencies_compiler_type+:} false; then :
15600 $as_echo_n "(cached) " >&6
15601else
15602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15603 # We make a subdir and do the tests there. Otherwise we can end up
15604 # making bogus files that we don't know about and never remove. For
15605 # instance it was reported that on HP-UX the gcc test will end up
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015606 # making a dummy file named 'D' -- because '-MD' means "put the output
15607 # in D".
15608 rm -rf conftest.dir
Emeric Vigier2f625822012-08-06 11:09:52 -040015609 mkdir conftest.dir
15610 # Copy depcomp to subdir because otherwise we won't find it if we're
15611 # using a relative directory.
15612 cp "$am_depcomp" conftest.dir
15613 cd conftest.dir
15614 # We will build objects and dependencies in a subdirectory because
15615 # it helps to detect inapplicable dependency modes. For instance
15616 # both Tru64's cc and ICC support -MD to output dependencies as a
15617 # side effect of compilation, but ICC will put the dependencies in
15618 # the current directory while Tru64 will put them in the object
15619 # directory.
15620 mkdir sub
15621
15622 am_cv_CC_dependencies_compiler_type=none
15623 if test "$am_compiler_list" = ""; then
15624 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15625 fi
15626 am__universal=false
15627 case " $depcc " in #(
15628 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15629 esac
15630
15631 for depmode in $am_compiler_list; do
15632 # Setup a source with many dependencies, because some compilers
15633 # like to wrap large dependency lists on column 80 (with \), and
15634 # we should not choose a depcomp mode which is confused by this.
15635 #
15636 # We need to recreate these files for each test, as the compiler may
15637 # overwrite some of them when testing with obscure command lines.
15638 # This happens at least with the AIX C compiler.
15639 : > sub/conftest.c
15640 for i in 1 2 3 4 5 6; do
15641 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015642 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15643 # Solaris 10 /bin/sh.
15644 echo '/* dummy */' > sub/conftst$i.h
Emeric Vigier2f625822012-08-06 11:09:52 -040015645 done
15646 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15647
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015648 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Emeric Vigier2f625822012-08-06 11:09:52 -040015649 # mode. It turns out that the SunPro C++ compiler does not properly
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015650 # handle '-M -o', and we need to detect this. Also, some Intel
15651 # versions had trouble with output in subdirs.
Emeric Vigier2f625822012-08-06 11:09:52 -040015652 am__obj=sub/conftest.${OBJEXT-o}
15653 am__minus_obj="-o $am__obj"
15654 case $depmode in
15655 gcc)
15656 # This depmode causes a compiler race in universal mode.
15657 test "$am__universal" = false || continue
15658 ;;
15659 nosideeffect)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015660 # After this tag, mechanisms are not by side-effect, so they'll
15661 # only be used when explicitly requested.
Emeric Vigier2f625822012-08-06 11:09:52 -040015662 if test "x$enable_dependency_tracking" = xyes; then
15663 continue
15664 else
15665 break
15666 fi
15667 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015668 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15669 # This compiler won't grok '-c -o', but also, the minuso test has
Emeric Vigier2f625822012-08-06 11:09:52 -040015670 # not run yet. These depmodes are late enough in the game, and
15671 # so weak that their functioning should not be impacted.
15672 am__obj=conftest.${OBJEXT-o}
15673 am__minus_obj=
15674 ;;
15675 none) break ;;
15676 esac
15677 if depmode=$depmode \
15678 source=sub/conftest.c object=$am__obj \
15679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15680 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15681 >/dev/null 2>conftest.err &&
15682 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15684 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15686 # icc doesn't choke on unknown options, it will just issue warnings
15687 # or remarks (even with -Werror). So we grep stderr for any message
15688 # that says an option was ignored or not supported.
15689 # When given -MP, icc 7.0 and 7.1 complain thusly:
15690 # icc: Command line warning: ignoring option '-M'; no argument required
15691 # The diagnosis changed in icc 8.0:
15692 # icc: Command line remark: option '-MP' not supported
15693 if (grep 'ignoring option' conftest.err ||
15694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15695 am_cv_CC_dependencies_compiler_type=$depmode
15696 break
15697 fi
15698 fi
15699 done
15700
15701 cd ..
15702 rm -rf conftest.dir
15703else
15704 am_cv_CC_dependencies_compiler_type=none
15705fi
15706
15707fi
15708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15709$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15710CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15711
15712 if
15713 test "x$enable_dependency_tracking" != xno \
15714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15715 am__fastdepCC_TRUE=
15716 am__fastdepCC_FALSE='#'
15717else
15718 am__fastdepCC_TRUE='#'
15719 am__fastdepCC_FALSE=
15720fi
15721
15722
15723depcc="$CXX" am_compiler_list=
15724
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15726$as_echo_n "checking dependency style of $depcc... " >&6; }
15727if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
15728 $as_echo_n "(cached) " >&6
15729else
15730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15731 # We make a subdir and do the tests there. Otherwise we can end up
15732 # making bogus files that we don't know about and never remove. For
15733 # instance it was reported that on HP-UX the gcc test will end up
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015734 # making a dummy file named 'D' -- because '-MD' means "put the output
15735 # in D".
15736 rm -rf conftest.dir
Emeric Vigier2f625822012-08-06 11:09:52 -040015737 mkdir conftest.dir
15738 # Copy depcomp to subdir because otherwise we won't find it if we're
15739 # using a relative directory.
15740 cp "$am_depcomp" conftest.dir
15741 cd conftest.dir
15742 # We will build objects and dependencies in a subdirectory because
15743 # it helps to detect inapplicable dependency modes. For instance
15744 # both Tru64's cc and ICC support -MD to output dependencies as a
15745 # side effect of compilation, but ICC will put the dependencies in
15746 # the current directory while Tru64 will put them in the object
15747 # directory.
15748 mkdir sub
15749
15750 am_cv_CXX_dependencies_compiler_type=none
15751 if test "$am_compiler_list" = ""; then
15752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15753 fi
15754 am__universal=false
15755 case " $depcc " in #(
15756 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15757 esac
15758
15759 for depmode in $am_compiler_list; do
15760 # Setup a source with many dependencies, because some compilers
15761 # like to wrap large dependency lists on column 80 (with \), and
15762 # we should not choose a depcomp mode which is confused by this.
15763 #
15764 # We need to recreate these files for each test, as the compiler may
15765 # overwrite some of them when testing with obscure command lines.
15766 # This happens at least with the AIX C compiler.
15767 : > sub/conftest.c
15768 for i in 1 2 3 4 5 6; do
15769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015770 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15771 # Solaris 10 /bin/sh.
15772 echo '/* dummy */' > sub/conftst$i.h
Emeric Vigier2f625822012-08-06 11:09:52 -040015773 done
15774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15775
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015776 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Emeric Vigier2f625822012-08-06 11:09:52 -040015777 # mode. It turns out that the SunPro C++ compiler does not properly
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015778 # handle '-M -o', and we need to detect this. Also, some Intel
15779 # versions had trouble with output in subdirs.
Emeric Vigier2f625822012-08-06 11:09:52 -040015780 am__obj=sub/conftest.${OBJEXT-o}
15781 am__minus_obj="-o $am__obj"
15782 case $depmode in
15783 gcc)
15784 # This depmode causes a compiler race in universal mode.
15785 test "$am__universal" = false || continue
15786 ;;
15787 nosideeffect)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015788 # After this tag, mechanisms are not by side-effect, so they'll
15789 # only be used when explicitly requested.
Emeric Vigier2f625822012-08-06 11:09:52 -040015790 if test "x$enable_dependency_tracking" = xyes; then
15791 continue
15792 else
15793 break
15794 fi
15795 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015796 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15797 # This compiler won't grok '-c -o', but also, the minuso test has
Emeric Vigier2f625822012-08-06 11:09:52 -040015798 # not run yet. These depmodes are late enough in the game, and
15799 # so weak that their functioning should not be impacted.
15800 am__obj=conftest.${OBJEXT-o}
15801 am__minus_obj=
15802 ;;
15803 none) break ;;
15804 esac
15805 if depmode=$depmode \
15806 source=sub/conftest.c object=$am__obj \
15807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15808 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15809 >/dev/null 2>conftest.err &&
15810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15812 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15814 # icc doesn't choke on unknown options, it will just issue warnings
15815 # or remarks (even with -Werror). So we grep stderr for any message
15816 # that says an option was ignored or not supported.
15817 # When given -MP, icc 7.0 and 7.1 complain thusly:
15818 # icc: Command line warning: ignoring option '-M'; no argument required
15819 # The diagnosis changed in icc 8.0:
15820 # icc: Command line remark: option '-MP' not supported
15821 if (grep 'ignoring option' conftest.err ||
15822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15823 am_cv_CXX_dependencies_compiler_type=$depmode
15824 break
15825 fi
15826 fi
15827 done
15828
15829 cd ..
15830 rm -rf conftest.dir
15831else
15832 am_cv_CXX_dependencies_compiler_type=none
15833fi
15834
15835fi
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15837$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15838CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15839
15840 if
15841 test "x$enable_dependency_tracking" != xno \
15842 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15843 am__fastdepCXX_TRUE=
15844 am__fastdepCXX_FALSE='#'
15845else
15846 am__fastdepCXX_TRUE='#'
15847 am__fastdepCXX_FALSE=
15848fi
15849
15850
15851
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015852ac_config_headers="$ac_config_headers ccrtp-config.h"
Emeric Vigier2f625822012-08-06 11:09:52 -040015853
15854
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15856$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15857if ${ac_cv_c_restrict+:} false; then :
15858 $as_echo_n "(cached) " >&6
15859else
15860 ac_cv_c_restrict=no
15861 # The order here caters to the fact that C++ does not require restrict.
15862 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864/* end confdefs.h. */
15865typedef int * int_ptr;
15866 int foo (int_ptr $ac_kw ip) {
15867 return ip[0];
15868 }
15869int
15870main ()
15871{
15872int s[1];
15873 int * $ac_kw t = s;
15874 t[0] = 0;
15875 return foo(t)
15876 ;
15877 return 0;
15878}
15879_ACEOF
15880if ac_fn_c_try_compile "$LINENO"; then :
15881 ac_cv_c_restrict=$ac_kw
15882fi
15883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 test "$ac_cv_c_restrict" != no && break
15885 done
15886
15887fi
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15889$as_echo "$ac_cv_c_restrict" >&6; }
15890
15891 case $ac_cv_c_restrict in
15892 restrict) ;;
15893 no) $as_echo "#define restrict /**/" >>confdefs.h
15894 ;;
15895 *) cat >>confdefs.h <<_ACEOF
15896#define restrict $ac_cv_c_restrict
15897_ACEOF
15898 ;;
15899 esac
15900
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15902$as_echo_n "checking for working volatile... " >&6; }
15903if ${ac_cv_c_volatile+:} false; then :
15904 $as_echo_n "(cached) " >&6
15905else
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907/* end confdefs.h. */
15908
15909int
15910main ()
15911{
15912
15913volatile int x;
15914int * volatile y = (int *) 0;
15915return !x && !y;
15916 ;
15917 return 0;
15918}
15919_ACEOF
15920if ac_fn_c_try_compile "$LINENO"; then :
15921 ac_cv_c_volatile=yes
15922else
15923 ac_cv_c_volatile=no
15924fi
15925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926fi
15927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15928$as_echo "$ac_cv_c_volatile" >&6; }
15929if test $ac_cv_c_volatile = no; then
15930
15931$as_echo "#define volatile /**/" >>confdefs.h
15932
15933fi
15934
15935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15936$as_echo_n "checking for inline... " >&6; }
15937if ${ac_cv_c_inline+:} false; then :
15938 $as_echo_n "(cached) " >&6
15939else
15940 ac_cv_c_inline=no
15941for ac_kw in inline __inline__ __inline; do
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943/* end confdefs.h. */
15944#ifndef __cplusplus
15945typedef int foo_t;
15946static $ac_kw foo_t static_foo () {return 0; }
15947$ac_kw foo_t foo () {return 0; }
15948#endif
15949
15950_ACEOF
15951if ac_fn_c_try_compile "$LINENO"; then :
15952 ac_cv_c_inline=$ac_kw
15953fi
15954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 test "$ac_cv_c_inline" != no && break
15956done
15957
15958fi
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15960$as_echo "$ac_cv_c_inline" >&6; }
15961
15962case $ac_cv_c_inline in
15963 inline | yes) ;;
15964 *)
15965 case $ac_cv_c_inline in
15966 no) ac_val=;;
15967 *) ac_val=$ac_cv_c_inline;;
15968 esac
15969 cat >>confdefs.h <<_ACEOF
15970#ifndef __cplusplus
15971#define inline $ac_val
15972#endif
15973_ACEOF
15974 ;;
15975esac
15976
15977
Emeric Vigier2f625822012-08-06 11:09:52 -040015978# SRTP support
15979# Check whether --enable-srtp was given.
15980if test "${enable_srtp+set}" = set; then :
15981 enableval=$enable_srtp;
15982fi
15983
15984if test -z "$enable_srtp"; then
15985 enable_srtp="yes"
15986
15987$as_echo "#define SRTP_SUPPORT /**/" >>confdefs.h
15988
15989fi
15990
Emeric Vigier2f625822012-08-06 11:09:52 -040015991# availability of gcrypt or openSSL crypto library if SRTP support is enabled
15992if test "${enable_srtp}" = "yes"
15993then
15994 openssl="false"
15995 gcrypt="false"
15996
15997# Check whether --with-libgcrypt-prefix was given.
15998if test "${with_libgcrypt_prefix+set}" = set; then :
15999 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
16000else
16001 libgcrypt_config_prefix=""
16002fi
16003
16004 if test x$libgcrypt_config_prefix != x ; then
16005 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16006 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16007 fi
16008 fi
16009
16010 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
16011set dummy libgcrypt-config; ac_word=$2
16012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16013$as_echo_n "checking for $ac_word... " >&6; }
16014if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016else
16017 case $LIBGCRYPT_CONFIG in
16018 [\\/]* | ?:[\\/]*)
16019 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16020 ;;
16021 *)
16022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16023for as_dir in $PATH
16024do
16025 IFS=$as_save_IFS
16026 test -z "$as_dir" && as_dir=.
16027 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016029 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16031 break 2
16032 fi
16033done
16034 done
16035IFS=$as_save_IFS
16036
16037 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
16038 ;;
16039esac
16040fi
16041LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16042if test -n "$LIBGCRYPT_CONFIG"; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16044$as_echo "$LIBGCRYPT_CONFIG" >&6; }
16045else
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047$as_echo "no" >&6; }
16048fi
16049
16050
16051 tmp=1:1.2.3
16052 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16053 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
16054 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16055 else
16056 req_libgcrypt_api=0
16057 min_libgcrypt_version="$tmp"
16058 fi
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16061$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16062 ok=no
16063 if test "$LIBGCRYPT_CONFIG" != "no" ; then
16064 req_major=`echo $min_libgcrypt_version | \
16065 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16066 req_minor=`echo $min_libgcrypt_version | \
16067 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16068 req_micro=`echo $min_libgcrypt_version | \
16069 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16070 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16071 major=`echo $libgcrypt_config_version | \
16072 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16073 minor=`echo $libgcrypt_config_version | \
16074 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16075 micro=`echo $libgcrypt_config_version | \
16076 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16077 if test "$major" -gt "$req_major"; then
16078 ok=yes
16079 else
16080 if test "$major" -eq "$req_major"; then
16081 if test "$minor" -gt "$req_minor"; then
16082 ok=yes
16083 else
16084 if test "$minor" -eq "$req_minor"; then
16085 if test "$micro" -ge "$req_micro"; then
16086 ok=yes
16087 fi
16088 fi
16089 fi
16090 fi
16091 fi
16092 fi
16093 if test $ok = yes; then
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16095$as_echo "yes ($libgcrypt_config_version)" >&6; }
16096 else
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16098$as_echo "no" >&6; }
16099 fi
16100 if test $ok = yes; then
16101 # If we have a recent libgcrypt, we should also check that the
16102 # API is compatible
16103 if test "$req_libgcrypt_api" -gt 0 ; then
16104 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16105 if test "$tmp" -gt 0 ; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
16107$as_echo_n "checking LIBGCRYPT API version... " >&6; }
16108 if test "$req_libgcrypt_api" -eq "$tmp" ; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16110$as_echo "okay" >&6; }
16111 else
16112 ok=no
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16114$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16115 fi
16116 fi
16117 fi
16118 fi
16119 if test $ok = yes; then
16120 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16121 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16122 for ac_header in gcrypt.h
16123do :
16124 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
16125if test "x$ac_cv_header_gcrypt_h" = xyes; then :
16126 cat >>confdefs.h <<_ACEOF
16127#define HAVE_GCRYPT_H 1
16128_ACEOF
16129
16130else
16131 as_fn_error $? "libgcrypt headers not found." "$LINENO" 5
16132fi
16133
16134done
16135
16136 LIBS="$LIBGCRYPT_LIBS $LIBS"
16137 gcrypt="true"
16138
16139 else
16140 LIBGCRYPT_CFLAGS=""
16141 LIBGCRYPT_LIBS=""
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherInit_ex in -lcrypto" >&5
16143$as_echo_n "checking for EVP_CipherInit_ex in -lcrypto... " >&6; }
16144if ${ac_cv_lib_crypto_EVP_CipherInit_ex+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146else
16147 ac_check_lib_save_LIBS=$LIBS
16148LIBS="-lcrypto $LIBS"
16149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150/* end confdefs.h. */
16151
16152/* Override any GCC internal prototype to avoid an error.
16153 Use char because int might match the return type of a GCC
16154 builtin and then its argument prototype would still apply. */
16155#ifdef __cplusplus
16156extern "C"
16157#endif
16158char EVP_CipherInit_ex ();
16159int
16160main ()
16161{
16162return EVP_CipherInit_ex ();
16163 ;
16164 return 0;
16165}
16166_ACEOF
16167if ac_fn_c_try_link "$LINENO"; then :
16168 ac_cv_lib_crypto_EVP_CipherInit_ex=yes
16169else
16170 ac_cv_lib_crypto_EVP_CipherInit_ex=no
16171fi
16172rm -f core conftest.err conftest.$ac_objext \
16173 conftest$ac_exeext conftest.$ac_ext
16174LIBS=$ac_check_lib_save_LIBS
16175fi
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherInit_ex" >&5
16177$as_echo "$ac_cv_lib_crypto_EVP_CipherInit_ex" >&6; }
16178if test "x$ac_cv_lib_crypto_EVP_CipherInit_ex" = xyes; then :
16179 for ac_header in openssl/bn.h openssl/aes.h openssl/sha.h
16180do :
16181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16183if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16184 cat >>confdefs.h <<_ACEOF
16185#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16186_ACEOF
16187
16188else
16189 as_fn_error $? "OpenSSL headers not found." "$LINENO" 5
16190fi
16191
16192done
16193
16194 LIBS="-lcrypto $LIBS"
16195 openssl="true"
16196
16197else
16198 as_fn_error $? "Cannot find libgcrypt or OpenSSL crypto library." "$LINENO" 5
16199
16200fi
16201
16202
16203
16204 fi
16205
16206
16207
16208 if test "$openssl" = "true"; then
16209 SRTP_OPENSSL_TRUE=
16210 SRTP_OPENSSL_FALSE='#'
16211else
16212 SRTP_OPENSSL_TRUE='#'
16213 SRTP_OPENSSL_FALSE=
16214fi
16215
16216 if test "$gcrypt" = "true"; then
16217 SRTP_GCRYPT_TRUE=
16218 SRTP_GCRYPT_FALSE='#'
16219else
16220 SRTP_GCRYPT_TRUE='#'
16221 SRTP_GCRYPT_FALSE=
16222fi
16223
16224
16225fi
16226
16227
16228
16229
16230
16231
16232 LT_MAJOR="`echo $LT_VERSION | sed s/:.*$//`"
16233 LT_MINOR="`echo $LT_VERSION | sed s/.*://`"
16234 LT_SUBVER="$LT_MAJOR.$LT_MINOR"
16235
16236
16237
16238
16239
16240if test -n "$ac_tool_prefix"; then
16241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16244$as_echo_n "checking for $ac_word... " >&6; }
16245if ${ac_cv_prog_RANLIB+:} false; then :
16246 $as_echo_n "(cached) " >&6
16247else
16248 if test -n "$RANLIB"; then
16249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16250else
16251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16252for as_dir in $PATH
16253do
16254 IFS=$as_save_IFS
16255 test -z "$as_dir" && as_dir=.
16256 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16260 break 2
16261 fi
16262done
16263 done
16264IFS=$as_save_IFS
16265
16266fi
16267fi
16268RANLIB=$ac_cv_prog_RANLIB
16269if test -n "$RANLIB"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16271$as_echo "$RANLIB" >&6; }
16272else
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16274$as_echo "no" >&6; }
16275fi
16276
16277
16278fi
16279if test -z "$ac_cv_prog_RANLIB"; then
16280 ac_ct_RANLIB=$RANLIB
16281 # Extract the first word of "ranlib", so it can be a program name with args.
16282set dummy ranlib; ac_word=$2
16283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16284$as_echo_n "checking for $ac_word... " >&6; }
16285if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16286 $as_echo_n "(cached) " >&6
16287else
16288 if test -n "$ac_ct_RANLIB"; then
16289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16290else
16291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16292for as_dir in $PATH
16293do
16294 IFS=$as_save_IFS
16295 test -z "$as_dir" && as_dir=.
16296 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016298 ac_cv_prog_ac_ct_RANLIB="ranlib"
16299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16300 break 2
16301 fi
16302done
16303 done
16304IFS=$as_save_IFS
16305
16306fi
16307fi
16308ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16309if test -n "$ac_ct_RANLIB"; then
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16311$as_echo "$ac_ct_RANLIB" >&6; }
16312else
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16314$as_echo "no" >&6; }
16315fi
16316
16317 if test "x$ac_ct_RANLIB" = x; then
16318 RANLIB=":"
16319 else
16320 case $cross_compiling:$ac_tool_warned in
16321yes:)
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16324ac_tool_warned=yes ;;
16325esac
16326 RANLIB=$ac_ct_RANLIB
16327 fi
16328else
16329 RANLIB="$ac_cv_prog_RANLIB"
16330fi
16331
16332
16333
16334
16335 if test ! -z "$LT_VERSION" ; then
16336 LT_CCXX_VERSION="-version-info $LT_VERSION"
16337
16338 fi
16339
16340
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genorated automake files" >&5
16342$as_echo_n "checking for genorated automake files... " >&6; }
16343 if test -z "" ; then
16344 ost_AUTOMAKE_TEST=Makefile.in
16345 else
16346 ost_AUTOMAKE_TEST=
16347 fi
16348 if test ! -f $ost_AUTOMAKE_TEST ; then
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
16350$as_echo "missing" >&6; }
16351 automake -a
16352 else
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16354$as_echo "found" >&6; }
16355 fi
16356
16357
16358
16359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16360$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16361 # Check whether --enable-maintainer-mode was given.
16362if test "${enable_maintainer_mode+set}" = set; then :
16363 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16364else
16365 USE_MAINTAINER_MODE=no
16366fi
16367
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16369$as_echo "$USE_MAINTAINER_MODE" >&6; }
16370 if test $USE_MAINTAINER_MODE = yes; then
16371 MAINTAINER_MODE_TRUE=
16372 MAINTAINER_MODE_FALSE='#'
16373else
16374 MAINTAINER_MODE_TRUE='#'
16375 MAINTAINER_MODE_FALSE=
16376fi
16377
16378 MAINT=$MAINTAINER_MODE_TRUE
16379
16380
16381 if test -z "$MAINT" ; then
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maintainer ftp distribution directory" >&5
16383$as_echo_n "checking for maintainer ftp distribution directory... " >&6; }
16384 if test -d ~ftp/pub ; then
16385 FTPDIR=~ftp/pub
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16387$as_echo "found" >&6; }
16388 else
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
16390$as_echo "missing" >&6; }
16391 fi
16392 fi
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16403 if test -n "$ac_tool_prefix"; then
16404 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16405set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16407$as_echo_n "checking for $ac_word... " >&6; }
16408if ${ac_cv_path_PKG_CONFIG+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410else
16411 case $PKG_CONFIG in
16412 [\\/]* | ?:[\\/]*)
16413 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16414 ;;
16415 *)
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417for as_dir in $PATH
16418do
16419 IFS=$as_save_IFS
16420 test -z "$as_dir" && as_dir=.
16421 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016423 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16425 break 2
16426 fi
16427done
16428 done
16429IFS=$as_save_IFS
16430
16431 ;;
16432esac
16433fi
16434PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16435if test -n "$PKG_CONFIG"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16437$as_echo "$PKG_CONFIG" >&6; }
16438else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440$as_echo "no" >&6; }
16441fi
16442
16443
16444fi
16445if test -z "$ac_cv_path_PKG_CONFIG"; then
16446 ac_pt_PKG_CONFIG=$PKG_CONFIG
16447 # Extract the first word of "pkg-config", so it can be a program name with args.
16448set dummy pkg-config; ac_word=$2
16449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16450$as_echo_n "checking for $ac_word... " >&6; }
16451if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16452 $as_echo_n "(cached) " >&6
16453else
16454 case $ac_pt_PKG_CONFIG in
16455 [\\/]* | ?:[\\/]*)
16456 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16457 ;;
16458 *)
16459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16460for as_dir in $PATH
16461do
16462 IFS=$as_save_IFS
16463 test -z "$as_dir" && as_dir=.
16464 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016466 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16468 break 2
16469 fi
16470done
16471 done
16472IFS=$as_save_IFS
16473
16474 ;;
16475esac
16476fi
16477ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16478if test -n "$ac_pt_PKG_CONFIG"; then
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16480$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16481else
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483$as_echo "no" >&6; }
16484fi
16485
16486 if test "x$ac_pt_PKG_CONFIG" = x; then
16487 PKG_CONFIG=""
16488 else
16489 case $cross_compiling:$ac_tool_warned in
16490yes:)
16491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16493ac_tool_warned=yes ;;
16494esac
16495 PKG_CONFIG=$ac_pt_PKG_CONFIG
16496 fi
16497else
16498 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16499fi
16500
16501fi
16502if test -n "$PKG_CONFIG"; then
16503 _pkg_min_version=0.9.0
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16505$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16506 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16508$as_echo "yes" >&6; }
16509 else
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511$as_echo "no" >&6; }
16512 PKG_CONFIG=""
16513 fi
16514fi
16515
16516pkg_failed=no
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMMONCPP" >&5
16518$as_echo_n "checking for COMMONCPP... " >&6; }
Emeric Vigier2f625822012-08-06 11:09:52 -040016519
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016520if test -n "$COMMONCPP_CFLAGS"; then
16521 pkg_cv_COMMONCPP_CFLAGS="$COMMONCPP_CFLAGS"
Emeric Vigier2f625822012-08-06 11:09:52 -040016522 elif test -n "$PKG_CONFIG"; then
16523 if test -n "$PKG_CONFIG" && \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"commoncpp >= \$REQUIRES\""; } >&5
16525 ($PKG_CONFIG --exists --print-errors "commoncpp >= $REQUIRES") 2>&5
Emeric Vigier2f625822012-08-06 11:09:52 -040016526 ac_status=$?
16527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16528 test $ac_status = 0; }; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016529 pkg_cv_COMMONCPP_CFLAGS=`$PKG_CONFIG --cflags "commoncpp >= $REQUIRES" 2>/dev/null`
Emeric Vigier2f625822012-08-06 11:09:52 -040016530 test "x$?" != "x0" && pkg_failed=yes
16531else
16532 pkg_failed=yes
16533fi
16534 else
16535 pkg_failed=untried
16536fi
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016537if test -n "$COMMONCPP_LIBS"; then
16538 pkg_cv_COMMONCPP_LIBS="$COMMONCPP_LIBS"
Emeric Vigier2f625822012-08-06 11:09:52 -040016539 elif test -n "$PKG_CONFIG"; then
16540 if test -n "$PKG_CONFIG" && \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"commoncpp >= \$REQUIRES\""; } >&5
16542 ($PKG_CONFIG --exists --print-errors "commoncpp >= $REQUIRES") 2>&5
Emeric Vigier2f625822012-08-06 11:09:52 -040016543 ac_status=$?
16544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16545 test $ac_status = 0; }; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016546 pkg_cv_COMMONCPP_LIBS=`$PKG_CONFIG --libs "commoncpp >= $REQUIRES" 2>/dev/null`
Emeric Vigier2f625822012-08-06 11:09:52 -040016547 test "x$?" != "x0" && pkg_failed=yes
16548else
16549 pkg_failed=yes
16550fi
16551 else
16552 pkg_failed=untried
16553fi
16554
16555
16556
16557if test $pkg_failed = yes; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16559$as_echo "no" >&6; }
16560
16561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16562 _pkg_short_errors_supported=yes
16563else
16564 _pkg_short_errors_supported=no
16565fi
16566 if test $_pkg_short_errors_supported = yes; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016567 COMMONCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "commoncpp >= $REQUIRES" 2>&1`
Emeric Vigier2f625822012-08-06 11:09:52 -040016568 else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016569 COMMONCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "commoncpp >= $REQUIRES" 2>&1`
Emeric Vigier2f625822012-08-06 11:09:52 -040016570 fi
16571 # Put the nasty error message in config.log where it belongs
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016572 echo "$COMMONCPP_PKG_ERRORS" >&5
Emeric Vigier2f625822012-08-06 11:09:52 -040016573
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016574 as_fn_error $? "Package requirements (commoncpp >= $REQUIRES) were not met:
Emeric Vigier2f625822012-08-06 11:09:52 -040016575
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016576$COMMONCPP_PKG_ERRORS
Emeric Vigier2f625822012-08-06 11:09:52 -040016577
16578Consider adjusting the PKG_CONFIG_PATH environment variable if you
16579installed software in a non-standard prefix.
16580
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016581Alternatively, you may set the environment variables COMMONCPP_CFLAGS
16582and COMMONCPP_LIBS to avoid the need to call pkg-config.
Emeric Vigier2f625822012-08-06 11:09:52 -040016583See the pkg-config man page for more details." "$LINENO" 5
16584elif test $pkg_failed = untried; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586$as_echo "no" >&6; }
16587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16589as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16590is in your PATH or set the PKG_CONFIG environment variable to the full
16591path to pkg-config.
16592
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016593Alternatively, you may set the environment variables COMMONCPP_CFLAGS
16594and COMMONCPP_LIBS to avoid the need to call pkg-config.
Emeric Vigier2f625822012-08-06 11:09:52 -040016595See the pkg-config man page for more details.
16596
16597To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16598See \`config.log' for more details" "$LINENO" 5; }
16599else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016600 COMMONCPP_CFLAGS=$pkg_cv_COMMONCPP_CFLAGS
16601 COMMONCPP_LIBS=$pkg_cv_COMMONCPP_LIBS
Emeric Vigier2f625822012-08-06 11:09:52 -040016602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16603$as_echo "yes" >&6; }
16604
16605fi
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016606CXXFLAGS="$CXXFLAGS $COMMONCPP_CFLAGS"
16607GNULIBS="$COMMONCPP_LIBS $LIBS"
Emeric Vigier2f625822012-08-06 11:09:52 -040016608
16609# OST_CC_ENDIAN - now in Common C++
16610# Are we using the GNU compiler?
16611if test $GCC = yes ; then
16612 WARN_FLAGS="-fno-strict-aliasing -Wall -ansi -pedantic"
16613else
16614 WARN_FLAGS=""
16615fi
16616
16617
16618
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5
16620$as_echo_n "checking for debugging... " >&6; }
16621 # Check whether --enable-debug was given.
16622if test "${enable_debug+set}" = set; then :
16623 enableval=$enable_debug;
16624fi
16625
16626 if test -z "$enable_debug" ; then
16627 enable_debug="no"
16628 elif test $enable_debug = "yes" ; then
16629 CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
16630# CXXFLAGS=`echo $CFLAGS | sed 's/-O.//'`
16631 fi
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16633$as_echo "$enable_debug" >&6; }
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
16635$as_echo_n "checking for profiling... " >&6; }
16636 # Check whether --enable-profiling was given.
16637if test "${enable_profiling+set}" = set; then :
16638 enableval=$enable_profiling;
16639fi
16640
16641 if test -z "$enable_profiling" ; then
16642 enable_profiling="no"
16643 elif test "$enable_profiling" = "yes" ; then
16644 CXXFLAGS="${CXXFLAGS} -p"
16645 fi
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
16647$as_echo "$enable_profiling" >&6; }
16648
16649
16650
16651# Check whether --with-nana was given.
16652if test "${with_nana+set}" = set; then :
16653 withval=$with_nana;
16654 ac_fn_c_check_header_mongrel "$LINENO" "nana.h" "ac_cv_header_nana_h" "$ac_includes_default"
16655if test "x$ac_cv_header_nana_h" = xyes; then :
16656
16657 for ac_header in DL.h
16658do :
16659 ac_fn_c_check_header_mongrel "$LINENO" "DL.h" "ac_cv_header_DL_h" "$ac_includes_default"
16660if test "x$ac_cv_header_DL_h" = xyes; then :
16661 cat >>confdefs.h <<_ACEOF
16662#define HAVE_DL_H 1
16663_ACEOF
16664
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnana" >&5
16666$as_echo_n "checking for main in -lnana... " >&6; }
16667if ${ac_cv_lib_nana_main+:} false; then :
16668 $as_echo_n "(cached) " >&6
16669else
16670 ac_check_lib_save_LIBS=$LIBS
16671LIBS="-lnana $LIBS"
16672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673/* end confdefs.h. */
16674
16675
16676int
16677main ()
16678{
16679return main ();
16680 ;
16681 return 0;
16682}
16683_ACEOF
16684if ac_fn_c_try_link "$LINENO"; then :
16685 ac_cv_lib_nana_main=yes
16686else
16687 ac_cv_lib_nana_main=no
16688fi
16689rm -f core conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691LIBS=$ac_check_lib_save_LIBS
16692fi
16693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nana_main" >&5
16694$as_echo "$ac_cv_lib_nana_main" >&6; }
16695if test "x$ac_cv_lib_nana_main" = xyes; then :
16696 cat >>confdefs.h <<_ACEOF
16697#define HAVE_LIBNANA 1
16698_ACEOF
16699
16700 LIBS="-lnana $LIBS"
16701
16702fi
16703
16704
16705fi
16706
16707done
16708
16709
16710fi
16711
16712
16713
16714fi
16715
16716
16717KDOC_DIR="\$(top_srcdir)/doc"
16718
16719
16720
16721# Extract the first word of "doxygen", so it can be a program name with args.
16722set dummy doxygen; ac_word=$2
16723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16724$as_echo_n "checking for $ac_word... " >&6; }
16725if ${ac_cv_path_DOXYGEN+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727else
16728 case $DOXYGEN in
16729 [\\/]* | ?:[\\/]*)
16730 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16731 ;;
16732 *)
16733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16734for as_dir in $PATH
16735do
16736 IFS=$as_save_IFS
16737 test -z "$as_dir" && as_dir=.
16738 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016740 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16742 break 2
16743 fi
16744done
16745 done
16746IFS=$as_save_IFS
16747
16748 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
16749 ;;
16750esac
16751fi
16752DOXYGEN=$ac_cv_path_DOXYGEN
16753if test -n "$DOXYGEN"; then
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16755$as_echo "$DOXYGEN" >&6; }
16756else
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16758$as_echo "no" >&6; }
16759fi
16760
16761
16762
16763 if test "$DOXYGEN" != "no"; then
16764 DOXY_TRUE=
16765 DOXY_FALSE='#'
16766else
16767 DOXY_TRUE='#'
16768 DOXY_FALSE=
16769fi
16770
16771
Alexandre Lisione41ecd42014-02-27 15:51:10 -050016772ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile src/ccrtp/Makefile doc/Makefile demo/Makefile phone/Makefile w32/Makefile ccrtp.spec libccrtp.spec ccrtp.list libccrtp.pc src/ccrtp/crypto/Makefile directive"
Emeric Vigier2f625822012-08-06 11:09:52 -040016773
16774cat >confcache <<\_ACEOF
16775# This file is a shell script that caches the results of configure
16776# tests run on this system so they can be shared between configure
16777# scripts and configure runs, see configure's option --config-cache.
16778# It is not useful on other systems. If it contains results you don't
16779# want to keep, you may remove or edit it.
16780#
16781# config.status only pays attention to the cache file if you give it
16782# the --recheck option to rerun configure.
16783#
16784# `ac_cv_env_foo' variables (set or unset) will be overridden when
16785# loading this file, other *unset* `ac_cv_foo' will be assigned the
16786# following values.
16787
16788_ACEOF
16789
16790# The following way of writing the cache mishandles newlines in values,
16791# but we know of no workaround that is simple, portable, and efficient.
16792# So, we kill variables containing newlines.
16793# Ultrix sh set writes to stderr and can't be redirected directly,
16794# and sets the high bit in the cache file unless we assign to the vars.
16795(
16796 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16797 eval ac_val=\$$ac_var
16798 case $ac_val in #(
16799 *${as_nl}*)
16800 case $ac_var in #(
16801 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16802$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16803 esac
16804 case $ac_var in #(
16805 _ | IFS | as_nl) ;; #(
16806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16807 *) { eval $ac_var=; unset $ac_var;} ;;
16808 esac ;;
16809 esac
16810 done
16811
16812 (set) 2>&1 |
16813 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16814 *${as_nl}ac_space=\ *)
16815 # `set' does not quote correctly, so add quotes: double-quote
16816 # substitution turns \\\\ into \\, and sed turns \\ into \.
16817 sed -n \
16818 "s/'/'\\\\''/g;
16819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16820 ;; #(
16821 *)
16822 # `set' quotes correctly as required by POSIX, so do not add quotes.
16823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16824 ;;
16825 esac |
16826 sort
16827) |
16828 sed '
16829 /^ac_cv_env_/b end
16830 t clear
16831 :clear
16832 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16833 t end
16834 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16835 :end' >>confcache
16836if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16837 if test -w "$cache_file"; then
16838 if test "x$cache_file" != "x/dev/null"; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16840$as_echo "$as_me: updating cache $cache_file" >&6;}
16841 if test ! -f "$cache_file" || test -h "$cache_file"; then
16842 cat confcache >"$cache_file"
16843 else
16844 case $cache_file in #(
16845 */* | ?:*)
16846 mv -f confcache "$cache_file"$$ &&
16847 mv -f "$cache_file"$$ "$cache_file" ;; #(
16848 *)
16849 mv -f confcache "$cache_file" ;;
16850 esac
16851 fi
16852 fi
16853 else
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16855$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16856 fi
16857fi
16858rm -f confcache
16859
16860test "x$prefix" = xNONE && prefix=$ac_default_prefix
16861# Let make expand exec_prefix.
16862test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16863
16864DEFS=-DHAVE_CONFIG_H
16865
16866ac_libobjs=
16867ac_ltlibobjs=
Emeric Vigier2f625822012-08-06 11:09:52 -040016868for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16869 # 1. Remove the extension, and $U if already installed.
16870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16873 # will be set to the directory where LIBOBJS objects are built.
16874 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16875 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16876done
16877LIBOBJS=$ac_libobjs
16878
16879LTLIBOBJS=$ac_ltlibobjs
16880
16881
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16883$as_echo_n "checking that generated files are newer than configure... " >&6; }
16884 if test -n "$am_sleep_pid"; then
16885 # Hide warnings about reused PIDs.
16886 wait $am_sleep_pid 2>/dev/null
16887 fi
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16889$as_echo "done" >&6; }
Emeric Vigier2f625822012-08-06 11:09:52 -040016890if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16891 as_fn_error $? "conditional \"AMDEP\" was never defined.
16892Usually this means the macro was only invoked conditionally." "$LINENO" 5
16893fi
16894if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16895 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16896Usually this means the macro was only invoked conditionally." "$LINENO" 5
16897fi
16898if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16899 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16900Usually this means the macro was only invoked conditionally." "$LINENO" 5
16901fi
16902 if test -n "$EXEEXT"; then
16903 am__EXEEXT_TRUE=
16904 am__EXEEXT_FALSE='#'
16905else
16906 am__EXEEXT_TRUE='#'
16907 am__EXEEXT_FALSE=
16908fi
16909
16910if test -z "${SRTP_OPENSSL_TRUE}" && test -z "${SRTP_OPENSSL_FALSE}"; then
16911 as_fn_error $? "conditional \"SRTP_OPENSSL\" was never defined.
16912Usually this means the macro was only invoked conditionally." "$LINENO" 5
16913fi
16914if test -z "${SRTP_GCRYPT_TRUE}" && test -z "${SRTP_GCRYPT_FALSE}"; then
16915 as_fn_error $? "conditional \"SRTP_GCRYPT\" was never defined.
16916Usually this means the macro was only invoked conditionally." "$LINENO" 5
16917fi
Emeric Vigier2f625822012-08-06 11:09:52 -040016918if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16919 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16920Usually this means the macro was only invoked conditionally." "$LINENO" 5
16921fi
16922if test -z "${DOXY_TRUE}" && test -z "${DOXY_FALSE}"; then
16923 as_fn_error $? "conditional \"DOXY\" was never defined.
16924Usually this means the macro was only invoked conditionally." "$LINENO" 5
16925fi
16926
16927: "${CONFIG_STATUS=./config.status}"
16928ac_write_fail=0
16929ac_clean_files_save=$ac_clean_files
16930ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16931{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16932$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16933as_write_fail=0
16934cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16935#! $SHELL
16936# Generated by $as_me.
16937# Run this file to recreate the current configuration.
16938# Compiler output produced by configure, useful for debugging
16939# configure, is in config.log if it exists.
16940
16941debug=false
16942ac_cs_recheck=false
16943ac_cs_silent=false
16944
16945SHELL=\${CONFIG_SHELL-$SHELL}
16946export SHELL
16947_ASEOF
16948cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16949## -------------------- ##
16950## M4sh Initialization. ##
16951## -------------------- ##
16952
16953# Be more Bourne compatible
16954DUALCASE=1; export DUALCASE # for MKS sh
16955if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16956 emulate sh
16957 NULLCMD=:
16958 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16959 # is contrary to our usage. Disable this feature.
16960 alias -g '${1+"$@"}'='"$@"'
16961 setopt NO_GLOB_SUBST
16962else
16963 case `(set -o) 2>/dev/null` in #(
16964 *posix*) :
16965 set -o posix ;; #(
16966 *) :
16967 ;;
16968esac
16969fi
16970
16971
16972as_nl='
16973'
16974export as_nl
16975# Printing a long string crashes Solaris 7 /usr/bin/printf.
16976as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16977as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16978as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16979# Prefer a ksh shell builtin over an external printf program on Solaris,
16980# but without wasting forks for bash or zsh.
16981if test -z "$BASH_VERSION$ZSH_VERSION" \
16982 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16983 as_echo='print -r --'
16984 as_echo_n='print -rn --'
16985elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16986 as_echo='printf %s\n'
16987 as_echo_n='printf %s'
16988else
16989 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16990 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16991 as_echo_n='/usr/ucb/echo -n'
16992 else
16993 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16994 as_echo_n_body='eval
16995 arg=$1;
16996 case $arg in #(
16997 *"$as_nl"*)
16998 expr "X$arg" : "X\\(.*\\)$as_nl";
16999 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17000 esac;
17001 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17002 '
17003 export as_echo_n_body
17004 as_echo_n='sh -c $as_echo_n_body as_echo'
17005 fi
17006 export as_echo_body
17007 as_echo='sh -c $as_echo_body as_echo'
17008fi
17009
17010# The user is always right.
17011if test "${PATH_SEPARATOR+set}" != set; then
17012 PATH_SEPARATOR=:
17013 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17014 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17015 PATH_SEPARATOR=';'
17016 }
17017fi
17018
17019
17020# IFS
17021# We need space, tab and new line, in precisely that order. Quoting is
17022# there to prevent editors from complaining about space-tab.
17023# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17024# splitting by setting IFS to empty value.)
17025IFS=" "" $as_nl"
17026
17027# Find who we are. Look in the path if we contain no directory separator.
17028as_myself=
17029case $0 in #((
17030 *[\\/]* ) as_myself=$0 ;;
17031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17032for as_dir in $PATH
17033do
17034 IFS=$as_save_IFS
17035 test -z "$as_dir" && as_dir=.
17036 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17037 done
17038IFS=$as_save_IFS
17039
17040 ;;
17041esac
17042# We did not find ourselves, most probably we were run as `sh COMMAND'
17043# in which case we are not to be found in the path.
17044if test "x$as_myself" = x; then
17045 as_myself=$0
17046fi
17047if test ! -f "$as_myself"; then
17048 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17049 exit 1
17050fi
17051
17052# Unset variables that we do not need and which cause bugs (e.g. in
17053# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17054# suppresses any "Segmentation fault" message there. '((' could
17055# trigger a bug in pdksh 5.2.14.
17056for as_var in BASH_ENV ENV MAIL MAILPATH
17057do eval test x\${$as_var+set} = xset \
17058 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17059done
17060PS1='$ '
17061PS2='> '
17062PS4='+ '
17063
17064# NLS nuisances.
17065LC_ALL=C
17066export LC_ALL
17067LANGUAGE=C
17068export LANGUAGE
17069
17070# CDPATH.
17071(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17072
17073
17074# as_fn_error STATUS ERROR [LINENO LOG_FD]
17075# ----------------------------------------
17076# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17077# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17078# script with STATUS, using 1 if that was 0.
17079as_fn_error ()
17080{
17081 as_status=$1; test $as_status -eq 0 && as_status=1
17082 if test "$4"; then
17083 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17084 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17085 fi
17086 $as_echo "$as_me: error: $2" >&2
17087 as_fn_exit $as_status
17088} # as_fn_error
17089
17090
17091# as_fn_set_status STATUS
17092# -----------------------
17093# Set $? to STATUS, without forking.
17094as_fn_set_status ()
17095{
17096 return $1
17097} # as_fn_set_status
17098
17099# as_fn_exit STATUS
17100# -----------------
17101# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17102as_fn_exit ()
17103{
17104 set +e
17105 as_fn_set_status $1
17106 exit $1
17107} # as_fn_exit
17108
17109# as_fn_unset VAR
17110# ---------------
17111# Portably unset VAR.
17112as_fn_unset ()
17113{
17114 { eval $1=; unset $1;}
17115}
17116as_unset=as_fn_unset
17117# as_fn_append VAR VALUE
17118# ----------------------
17119# Append the text in VALUE to the end of the definition contained in VAR. Take
17120# advantage of any shell optimizations that allow amortized linear growth over
17121# repeated appends, instead of the typical quadratic growth present in naive
17122# implementations.
17123if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17124 eval 'as_fn_append ()
17125 {
17126 eval $1+=\$2
17127 }'
17128else
17129 as_fn_append ()
17130 {
17131 eval $1=\$$1\$2
17132 }
17133fi # as_fn_append
17134
17135# as_fn_arith ARG...
17136# ------------------
17137# Perform arithmetic evaluation on the ARGs, and store the result in the
17138# global $as_val. Take advantage of shells that can avoid forks. The arguments
17139# must be portable across $(()) and expr.
17140if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17141 eval 'as_fn_arith ()
17142 {
17143 as_val=$(( $* ))
17144 }'
17145else
17146 as_fn_arith ()
17147 {
17148 as_val=`expr "$@" || test $? -eq 1`
17149 }
17150fi # as_fn_arith
17151
17152
17153if expr a : '\(a\)' >/dev/null 2>&1 &&
17154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17155 as_expr=expr
17156else
17157 as_expr=false
17158fi
17159
17160if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17161 as_basename=basename
17162else
17163 as_basename=false
17164fi
17165
17166if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17167 as_dirname=dirname
17168else
17169 as_dirname=false
17170fi
17171
17172as_me=`$as_basename -- "$0" ||
17173$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17174 X"$0" : 'X\(//\)$' \| \
17175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17176$as_echo X/"$0" |
17177 sed '/^.*\/\([^/][^/]*\)\/*$/{
17178 s//\1/
17179 q
17180 }
17181 /^X\/\(\/\/\)$/{
17182 s//\1/
17183 q
17184 }
17185 /^X\/\(\/\).*/{
17186 s//\1/
17187 q
17188 }
17189 s/.*/./; q'`
17190
17191# Avoid depending upon Character Ranges.
17192as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17193as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17194as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17195as_cr_digits='0123456789'
17196as_cr_alnum=$as_cr_Letters$as_cr_digits
17197
17198ECHO_C= ECHO_N= ECHO_T=
17199case `echo -n x` in #(((((
17200-n*)
17201 case `echo 'xy\c'` in
17202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17203 xy) ECHO_C='\c';;
17204 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17205 ECHO_T=' ';;
17206 esac;;
17207*)
17208 ECHO_N='-n';;
17209esac
17210
17211rm -f conf$$ conf$$.exe conf$$.file
17212if test -d conf$$.dir; then
17213 rm -f conf$$.dir/conf$$.file
17214else
17215 rm -f conf$$.dir
17216 mkdir conf$$.dir 2>/dev/null
17217fi
17218if (echo >conf$$.file) 2>/dev/null; then
17219 if ln -s conf$$.file conf$$ 2>/dev/null; then
17220 as_ln_s='ln -s'
17221 # ... but there are two gotchas:
17222 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17223 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017224 # In both cases, we have to default to `cp -pR'.
Emeric Vigier2f625822012-08-06 11:09:52 -040017225 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017226 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -040017227 elif ln conf$$.file conf$$ 2>/dev/null; then
17228 as_ln_s=ln
17229 else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017230 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -040017231 fi
17232else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017233 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -040017234fi
17235rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17236rmdir conf$$.dir 2>/dev/null
17237
17238
17239# as_fn_mkdir_p
17240# -------------
17241# Create "$as_dir" as a directory, including parents if necessary.
17242as_fn_mkdir_p ()
17243{
17244
17245 case $as_dir in #(
17246 -*) as_dir=./$as_dir;;
17247 esac
17248 test -d "$as_dir" || eval $as_mkdir_p || {
17249 as_dirs=
17250 while :; do
17251 case $as_dir in #(
17252 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17253 *) as_qdir=$as_dir;;
17254 esac
17255 as_dirs="'$as_qdir' $as_dirs"
17256 as_dir=`$as_dirname -- "$as_dir" ||
17257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17258 X"$as_dir" : 'X\(//\)[^/]' \| \
17259 X"$as_dir" : 'X\(//\)$' \| \
17260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17261$as_echo X"$as_dir" |
17262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17263 s//\1/
17264 q
17265 }
17266 /^X\(\/\/\)[^/].*/{
17267 s//\1/
17268 q
17269 }
17270 /^X\(\/\/\)$/{
17271 s//\1/
17272 q
17273 }
17274 /^X\(\/\).*/{
17275 s//\1/
17276 q
17277 }
17278 s/.*/./; q'`
17279 test -d "$as_dir" && break
17280 done
17281 test -z "$as_dirs" || eval "mkdir $as_dirs"
17282 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17283
17284
17285} # as_fn_mkdir_p
17286if mkdir -p . 2>/dev/null; then
17287 as_mkdir_p='mkdir -p "$as_dir"'
17288else
17289 test -d ./-p && rmdir ./-p
17290 as_mkdir_p=false
17291fi
17292
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017293
17294# as_fn_executable_p FILE
17295# -----------------------
17296# Test if FILE is an executable regular file.
17297as_fn_executable_p ()
17298{
17299 test -f "$1" && test -x "$1"
17300} # as_fn_executable_p
17301as_test_x='test -x'
17302as_executable_p=as_fn_executable_p
Emeric Vigier2f625822012-08-06 11:09:52 -040017303
17304# Sed expression to map a string onto a valid CPP name.
17305as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17306
17307# Sed expression to map a string onto a valid variable name.
17308as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17309
17310
17311exec 6>&1
17312## ----------------------------------- ##
17313## Main body of $CONFIG_STATUS script. ##
17314## ----------------------------------- ##
17315_ASEOF
17316test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17317
17318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17319# Save the log message, to keep $0 and so on meaningful, and to
17320# report actual input values of CONFIG_FILES etc. instead of their
17321# values after options handling.
17322ac_log="
Alexandre Lisione41ecd42014-02-27 15:51:10 -050017323This file was extended by ccrtp $as_me 2.0.7, which was
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017324generated by GNU Autoconf 2.69. Invocation command line was
Emeric Vigier2f625822012-08-06 11:09:52 -040017325
17326 CONFIG_FILES = $CONFIG_FILES
17327 CONFIG_HEADERS = $CONFIG_HEADERS
17328 CONFIG_LINKS = $CONFIG_LINKS
17329 CONFIG_COMMANDS = $CONFIG_COMMANDS
17330 $ $0 $@
17331
17332on `(hostname || uname -n) 2>/dev/null | sed 1q`
17333"
17334
17335_ACEOF
17336
17337case $ac_config_files in *"
17338"*) set x $ac_config_files; shift; ac_config_files=$*;;
17339esac
17340
17341case $ac_config_headers in *"
17342"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17343esac
17344
17345
17346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17347# Files that config.status was made for.
17348config_files="$ac_config_files"
17349config_headers="$ac_config_headers"
17350config_commands="$ac_config_commands"
17351
17352_ACEOF
17353
17354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17355ac_cs_usage="\
17356\`$as_me' instantiates files and other configuration actions
17357from templates according to the current configuration. Unless the files
17358and actions are specified as TAGs, all are instantiated by default.
17359
17360Usage: $0 [OPTION]... [TAG]...
17361
17362 -h, --help print this help, then exit
17363 -V, --version print version number and configuration settings, then exit
17364 --config print configuration, then exit
17365 -q, --quiet, --silent
17366 do not print progress messages
17367 -d, --debug don't remove temporary files
17368 --recheck update $as_me by reconfiguring in the same conditions
17369 --file=FILE[:TEMPLATE]
17370 instantiate the configuration file FILE
17371 --header=FILE[:TEMPLATE]
17372 instantiate the configuration header FILE
17373
17374Configuration files:
17375$config_files
17376
17377Configuration headers:
17378$config_headers
17379
17380Configuration commands:
17381$config_commands
17382
17383Report bugs to the package provider."
17384
17385_ACEOF
17386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17387ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17388ac_cs_version="\\
Alexandre Lisione41ecd42014-02-27 15:51:10 -050017389ccrtp config.status 2.0.7
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017390configured by $0, generated by GNU Autoconf 2.69,
Emeric Vigier2f625822012-08-06 11:09:52 -040017391 with options \\"\$ac_cs_config\\"
17392
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017393Copyright (C) 2012 Free Software Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -040017394This config.status script is free software; the Free Software Foundation
17395gives unlimited permission to copy, distribute and modify it."
17396
17397ac_pwd='$ac_pwd'
17398srcdir='$srcdir'
17399INSTALL='$INSTALL'
17400MKDIR_P='$MKDIR_P'
17401AWK='$AWK'
17402test -n "\$AWK" || AWK=awk
17403_ACEOF
17404
17405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17406# The default lists apply if the user does not specify any file.
17407ac_need_defaults=:
17408while test $# != 0
17409do
17410 case $1 in
17411 --*=?*)
17412 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17413 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17414 ac_shift=:
17415 ;;
17416 --*=)
17417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17418 ac_optarg=
17419 ac_shift=:
17420 ;;
17421 *)
17422 ac_option=$1
17423 ac_optarg=$2
17424 ac_shift=shift
17425 ;;
17426 esac
17427
17428 case $ac_option in
17429 # Handling of the options.
17430 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17431 ac_cs_recheck=: ;;
17432 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17433 $as_echo "$ac_cs_version"; exit ;;
17434 --config | --confi | --conf | --con | --co | --c )
17435 $as_echo "$ac_cs_config"; exit ;;
17436 --debug | --debu | --deb | --de | --d | -d )
17437 debug=: ;;
17438 --file | --fil | --fi | --f )
17439 $ac_shift
17440 case $ac_optarg in
17441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17442 '') as_fn_error $? "missing file argument" ;;
17443 esac
17444 as_fn_append CONFIG_FILES " '$ac_optarg'"
17445 ac_need_defaults=false;;
17446 --header | --heade | --head | --hea )
17447 $ac_shift
17448 case $ac_optarg in
17449 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17450 esac
17451 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17452 ac_need_defaults=false;;
17453 --he | --h)
17454 # Conflict between --help and --header
17455 as_fn_error $? "ambiguous option: \`$1'
17456Try \`$0 --help' for more information.";;
17457 --help | --hel | -h )
17458 $as_echo "$ac_cs_usage"; exit ;;
17459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17460 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17461 ac_cs_silent=: ;;
17462
17463 # This is an error.
17464 -*) as_fn_error $? "unrecognized option: \`$1'
17465Try \`$0 --help' for more information." ;;
17466
17467 *) as_fn_append ac_config_targets " $1"
17468 ac_need_defaults=false ;;
17469
17470 esac
17471 shift
17472done
17473
17474ac_configure_extra_args=
17475
17476if $ac_cs_silent; then
17477 exec 6>/dev/null
17478 ac_configure_extra_args="$ac_configure_extra_args --silent"
17479fi
17480
17481_ACEOF
17482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17483if \$ac_cs_recheck; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017484 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Emeric Vigier2f625822012-08-06 11:09:52 -040017485 shift
17486 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17487 CONFIG_SHELL='$SHELL'
17488 export CONFIG_SHELL
17489 exec "\$@"
17490fi
17491
17492_ACEOF
17493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17494exec 5>>config.log
17495{
17496 echo
17497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17498## Running $as_me. ##
17499_ASBOX
17500 $as_echo "$ac_log"
17501} >&5
17502
17503_ACEOF
17504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17505#
17506# INIT-COMMANDS
17507#
17508
17509
17510# The HP-UX ksh and POSIX shell print the target directory to stdout
17511# if CDPATH is set.
17512(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17513
17514sed_quote_subst='$sed_quote_subst'
17515double_quote_subst='$double_quote_subst'
17516delay_variable_subst='$delay_variable_subst'
Alexandre Lisione41ecd42014-02-27 15:51:10 -050017517AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17518DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17519OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017520macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17521macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17522enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17523enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17524pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17525enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17526SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17527ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017528PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017529host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17530host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17531host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17532build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17533build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17534build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17535SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17536Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17537GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17538EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17539FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17540LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17541NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17542LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17543max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17544ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17545exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17546lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17547lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17548lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17549lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17550lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17551reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17552reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017553deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17554file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17555file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17556want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017557sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17558AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17559AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17560archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17561STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17562RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17563old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17564old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17565old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17566lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17567CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17568CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17569compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17570GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17571lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17572lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17573lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17574lt_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"`'
17575nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17576lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17577objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17578MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17579lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17580lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17581lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17582lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17583lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17584need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17585MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17586DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17587NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17588LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17589OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17590OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17591libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17592shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17593extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17594archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17595enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17596export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17597whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17598compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17599old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17600old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17601archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17602archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17603module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17604module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17605with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17606allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17607no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17608hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017609hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17610hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17611hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17612hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17613hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17614hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17615inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17616link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17617always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17618export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17619exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17620include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17621prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17622postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17623file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17624variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17625need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17626need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17627version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17628runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17629shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17630shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17631libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17632library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17633soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17634install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17635postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17636postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17637finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17638finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17639hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17640sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17641sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17642hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17643enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17644enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17645enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17646old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17647striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17648compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17649predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17650postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17651predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17652postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17653compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17654LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17655reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17656reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17657old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17658compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17659GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17660lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17661lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17662lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17663lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17664lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17665archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17666enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17667export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17668whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17669compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17670old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17671old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17672archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17673archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17674module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17675module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17676with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17677allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17678no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17679hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017680hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17681hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17682hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17683hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17684hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17685hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17686inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17687link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17688always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17689export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17690exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17691include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17692prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17693postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17694file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17695hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17696compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17697predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17698postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17699predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17700postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17701compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17702
17703LTCC='$LTCC'
17704LTCFLAGS='$LTCFLAGS'
17705compiler='$compiler_DEFAULT'
17706
17707# A function that is used when there is no print builtin or printf.
17708func_fallback_echo ()
17709{
17710 eval 'cat <<_LTECHO_EOF
17711\$1
17712_LTECHO_EOF'
17713}
17714
17715# Quote evaled strings.
Alexandre Lisione41ecd42014-02-27 15:51:10 -050017716for var in AS \
17717DLLTOOL \
17718OBJDUMP \
17719SHELL \
Emeric Vigier2f625822012-08-06 11:09:52 -040017720ECHO \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017721PATH_SEPARATOR \
Emeric Vigier2f625822012-08-06 11:09:52 -040017722SED \
17723GREP \
17724EGREP \
17725FGREP \
17726LD \
17727NM \
17728LN_S \
17729lt_SP2NL \
17730lt_NL2SP \
17731reload_flag \
Emeric Vigier2f625822012-08-06 11:09:52 -040017732deplibs_check_method \
17733file_magic_cmd \
17734file_magic_glob \
17735want_nocaseglob \
Emeric Vigier2f625822012-08-06 11:09:52 -040017736sharedlib_from_linklib_cmd \
17737AR \
17738AR_FLAGS \
17739archiver_list_spec \
17740STRIP \
17741RANLIB \
17742CC \
17743CFLAGS \
17744compiler \
17745lt_cv_sys_global_symbol_pipe \
17746lt_cv_sys_global_symbol_to_cdecl \
17747lt_cv_sys_global_symbol_to_c_name_address \
17748lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17749nm_file_list_spec \
17750lt_prog_compiler_no_builtin_flag \
17751lt_prog_compiler_pic \
17752lt_prog_compiler_wl \
17753lt_prog_compiler_static \
17754lt_cv_prog_compiler_c_o \
17755need_locks \
17756MANIFEST_TOOL \
17757DSYMUTIL \
17758NMEDIT \
17759LIPO \
17760OTOOL \
17761OTOOL64 \
17762shrext_cmds \
17763export_dynamic_flag_spec \
17764whole_archive_flag_spec \
17765compiler_needs_object \
17766with_gnu_ld \
17767allow_undefined_flag \
17768no_undefined_flag \
17769hardcode_libdir_flag_spec \
Emeric Vigier2f625822012-08-06 11:09:52 -040017770hardcode_libdir_separator \
17771exclude_expsyms \
17772include_expsyms \
17773file_list_spec \
17774variables_saved_for_relink \
17775libname_spec \
17776library_names_spec \
17777soname_spec \
17778install_override_mode \
17779finish_eval \
17780old_striplib \
17781striplib \
17782compiler_lib_search_dirs \
17783predep_objects \
17784postdep_objects \
17785predeps \
17786postdeps \
17787compiler_lib_search_path \
17788LD_CXX \
17789reload_flag_CXX \
17790compiler_CXX \
17791lt_prog_compiler_no_builtin_flag_CXX \
17792lt_prog_compiler_pic_CXX \
17793lt_prog_compiler_wl_CXX \
17794lt_prog_compiler_static_CXX \
17795lt_cv_prog_compiler_c_o_CXX \
17796export_dynamic_flag_spec_CXX \
17797whole_archive_flag_spec_CXX \
17798compiler_needs_object_CXX \
17799with_gnu_ld_CXX \
17800allow_undefined_flag_CXX \
17801no_undefined_flag_CXX \
17802hardcode_libdir_flag_spec_CXX \
Emeric Vigier2f625822012-08-06 11:09:52 -040017803hardcode_libdir_separator_CXX \
17804exclude_expsyms_CXX \
17805include_expsyms_CXX \
17806file_list_spec_CXX \
17807compiler_lib_search_dirs_CXX \
17808predep_objects_CXX \
17809postdep_objects_CXX \
17810predeps_CXX \
17811postdeps_CXX \
17812compiler_lib_search_path_CXX; do
17813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17814 *[\\\\\\\`\\"\\\$]*)
17815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17816 ;;
17817 *)
17818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17819 ;;
17820 esac
17821done
17822
17823# Double-quote double-evaled strings.
17824for var in reload_cmds \
17825old_postinstall_cmds \
17826old_postuninstall_cmds \
17827old_archive_cmds \
17828extract_expsyms_cmds \
17829old_archive_from_new_cmds \
17830old_archive_from_expsyms_cmds \
17831archive_cmds \
17832archive_expsym_cmds \
17833module_cmds \
17834module_expsym_cmds \
17835export_symbols_cmds \
17836prelink_cmds \
17837postlink_cmds \
17838postinstall_cmds \
17839postuninstall_cmds \
17840finish_cmds \
17841sys_lib_search_path_spec \
17842sys_lib_dlsearch_path_spec \
17843reload_cmds_CXX \
17844old_archive_cmds_CXX \
17845old_archive_from_new_cmds_CXX \
17846old_archive_from_expsyms_cmds_CXX \
17847archive_cmds_CXX \
17848archive_expsym_cmds_CXX \
17849module_cmds_CXX \
17850module_expsym_cmds_CXX \
17851export_symbols_cmds_CXX \
17852prelink_cmds_CXX \
17853postlink_cmds_CXX; do
17854 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17855 *[\\\\\\\`\\"\\\$]*)
17856 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17857 ;;
17858 *)
17859 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17860 ;;
17861 esac
17862done
17863
17864ac_aux_dir='$ac_aux_dir'
17865xsi_shell='$xsi_shell'
17866lt_shell_append='$lt_shell_append'
17867
17868# See if we are running on zsh, and set the options which allow our
17869# commands through without removal of \ escapes INIT.
17870if test -n "\${ZSH_VERSION+set}" ; then
17871 setopt NO_GLOB_SUBST
17872fi
17873
17874
17875 PACKAGE='$PACKAGE'
17876 VERSION='$VERSION'
17877 TIMESTAMP='$TIMESTAMP'
17878 RM='$RM'
17879 ofile='$ofile'
17880
17881
17882
17883
17884
17885AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17886
17887_ACEOF
17888
17889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17890
17891# Handling of arguments.
17892for ac_config_target in $ac_config_targets
17893do
17894 case $ac_config_target in
17895 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17896 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017897 "ccrtp-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ccrtp-config.h" ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040017898 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17899 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17900 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17901 "src/ccrtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccrtp/Makefile" ;;
17902 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17903 "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
17904 "phone/Makefile") CONFIG_FILES="$CONFIG_FILES phone/Makefile" ;;
17905 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
17906 "ccrtp.spec") CONFIG_FILES="$CONFIG_FILES ccrtp.spec" ;;
17907 "libccrtp.spec") CONFIG_FILES="$CONFIG_FILES libccrtp.spec" ;;
17908 "ccrtp.list") CONFIG_FILES="$CONFIG_FILES ccrtp.list" ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017909 "libccrtp.pc") CONFIG_FILES="$CONFIG_FILES libccrtp.pc" ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040017910 "src/ccrtp/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccrtp/crypto/Makefile" ;;
Alexandre Lisione41ecd42014-02-27 15:51:10 -050017911 "directive") CONFIG_FILES="$CONFIG_FILES directive" ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040017912
17913 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17914 esac
17915done
17916
17917
17918# If the user did not use the arguments to specify the items to instantiate,
17919# then the envvar interface is used. Set only those that are not.
17920# We use the long form for the default assignment because of an extremely
17921# bizarre bug on SunOS 4.1.3.
17922if $ac_need_defaults; then
17923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17926fi
17927
17928# Have a temporary directory for convenience. Make it in the build tree
17929# simply because there is no reason against having it here, and in addition,
17930# creating and moving files from /tmp can sometimes cause problems.
17931# Hook for its removal unless debugging.
17932# Note that there is a small window in which the directory will not be cleaned:
17933# after its creation but before its name has been assigned to `$tmp'.
17934$debug ||
17935{
17936 tmp= ac_tmp=
17937 trap 'exit_status=$?
17938 : "${ac_tmp:=$tmp}"
17939 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17940' 0
17941 trap 'as_fn_exit 1' 1 2 13 15
17942}
17943# Create a (secure) tmp directory for tmp files.
17944
17945{
17946 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17947 test -d "$tmp"
17948} ||
17949{
17950 tmp=./conf$$-$RANDOM
17951 (umask 077 && mkdir "$tmp")
17952} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17953ac_tmp=$tmp
17954
17955# Set up the scripts for CONFIG_FILES section.
17956# No need to generate them if there are no CONFIG_FILES.
17957# This happens for instance with `./config.status config.h'.
17958if test -n "$CONFIG_FILES"; then
17959
17960
17961ac_cr=`echo X | tr X '\015'`
17962# On cygwin, bash can eat \r inside `` if the user requested igncr.
17963# But we know of no other shell where ac_cr would be empty at this
17964# point, so we can use a bashism as a fallback.
17965if test "x$ac_cr" = x; then
17966 eval ac_cr=\$\'\\r\'
17967fi
17968ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17969if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17970 ac_cs_awk_cr='\\r'
17971else
17972 ac_cs_awk_cr=$ac_cr
17973fi
17974
17975echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17976_ACEOF
17977
17978
17979{
17980 echo "cat >conf$$subs.awk <<_ACEOF" &&
17981 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17982 echo "_ACEOF"
17983} >conf$$subs.sh ||
17984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17985ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17986ac_delim='%!_!# '
17987for ac_last_try in false false false false false :; do
17988 . ./conf$$subs.sh ||
17989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17990
17991 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17992 if test $ac_delim_n = $ac_delim_num; then
17993 break
17994 elif $ac_last_try; then
17995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17996 else
17997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17998 fi
17999done
18000rm -f conf$$subs.sh
18001
18002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18003cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18004_ACEOF
18005sed -n '
18006h
18007s/^/S["/; s/!.*/"]=/
18008p
18009g
18010s/^[^!]*!//
18011:repl
18012t repl
18013s/'"$ac_delim"'$//
18014t delim
18015:nl
18016h
18017s/\(.\{148\}\)..*/\1/
18018t more1
18019s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18020p
18021n
18022b repl
18023:more1
18024s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18025p
18026g
18027s/.\{148\}//
18028t nl
18029:delim
18030h
18031s/\(.\{148\}\)..*/\1/
18032t more2
18033s/["\\]/\\&/g; s/^/"/; s/$/"/
18034p
18035b
18036:more2
18037s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18038p
18039g
18040s/.\{148\}//
18041t delim
18042' <conf$$subs.awk | sed '
18043/^[^""]/{
18044 N
18045 s/\n//
18046}
18047' >>$CONFIG_STATUS || ac_write_fail=1
18048rm -f conf$$subs.awk
18049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18050_ACAWK
18051cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18052 for (key in S) S_is_set[key] = 1
18053 FS = ""
18054
18055}
18056{
18057 line = $ 0
18058 nfields = split(line, field, "@")
18059 substed = 0
18060 len = length(field[1])
18061 for (i = 2; i < nfields; i++) {
18062 key = field[i]
18063 keylen = length(key)
18064 if (S_is_set[key]) {
18065 value = S[key]
18066 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18067 len += length(value) + length(field[++i])
18068 substed = 1
18069 } else
18070 len += 1 + keylen
18071 }
18072
18073 print line
18074}
18075
18076_ACAWK
18077_ACEOF
18078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18079if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18080 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18081else
18082 cat
18083fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18084 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18085_ACEOF
18086
18087# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18088# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18089# trailing colons and then remove the whole line if VPATH becomes empty
18090# (actually we leave an empty line to preserve line numbers).
18091if test "x$srcdir" = x.; then
18092 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18093h
18094s///
18095s/^/:/
18096s/[ ]*$/:/
18097s/:\$(srcdir):/:/g
18098s/:\${srcdir}:/:/g
18099s/:@srcdir@:/:/g
18100s/^:*//
18101s/:*$//
18102x
18103s/\(=[ ]*\).*/\1/
18104G
18105s/\n//
18106s/^[^=]*=[ ]*$//
18107}'
18108fi
18109
18110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18111fi # test -n "$CONFIG_FILES"
18112
18113# Set up the scripts for CONFIG_HEADERS section.
18114# No need to generate them if there are no CONFIG_HEADERS.
18115# This happens for instance with `./config.status Makefile'.
18116if test -n "$CONFIG_HEADERS"; then
18117cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18118BEGIN {
18119_ACEOF
18120
18121# Transform confdefs.h into an awk script `defines.awk', embedded as
18122# here-document in config.status, that substitutes the proper values into
18123# config.h.in to produce config.h.
18124
18125# Create a delimiter string that does not exist in confdefs.h, to ease
18126# handling of long lines.
18127ac_delim='%!_!# '
18128for ac_last_try in false false :; do
18129 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18130 if test -z "$ac_tt"; then
18131 break
18132 elif $ac_last_try; then
18133 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18134 else
18135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18136 fi
18137done
18138
18139# For the awk script, D is an array of macro values keyed by name,
18140# likewise P contains macro parameters if any. Preserve backslash
18141# newline sequences.
18142
18143ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18144sed -n '
18145s/.\{148\}/&'"$ac_delim"'/g
18146t rset
18147:rset
18148s/^[ ]*#[ ]*define[ ][ ]*/ /
18149t def
18150d
18151:def
18152s/\\$//
18153t bsnl
18154s/["\\]/\\&/g
18155s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18156D["\1"]=" \3"/p
18157s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18158d
18159:bsnl
18160s/["\\]/\\&/g
18161s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18162D["\1"]=" \3\\\\\\n"\\/p
18163t cont
18164s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18165t cont
18166d
18167:cont
18168n
18169s/.\{148\}/&'"$ac_delim"'/g
18170t clear
18171:clear
18172s/\\$//
18173t bsnlc
18174s/["\\]/\\&/g; s/^/"/; s/$/"/p
18175d
18176:bsnlc
18177s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18178b cont
18179' <confdefs.h | sed '
18180s/'"$ac_delim"'/"\\\
18181"/g' >>$CONFIG_STATUS || ac_write_fail=1
18182
18183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18184 for (key in D) D_is_set[key] = 1
18185 FS = ""
18186}
18187/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18188 line = \$ 0
18189 split(line, arg, " ")
18190 if (arg[1] == "#") {
18191 defundef = arg[2]
18192 mac1 = arg[3]
18193 } else {
18194 defundef = substr(arg[1], 2)
18195 mac1 = arg[2]
18196 }
18197 split(mac1, mac2, "(") #)
18198 macro = mac2[1]
18199 prefix = substr(line, 1, index(line, defundef) - 1)
18200 if (D_is_set[macro]) {
18201 # Preserve the white space surrounding the "#".
18202 print prefix "define", macro P[macro] D[macro]
18203 next
18204 } else {
18205 # Replace #undef with comments. This is necessary, for example,
18206 # in the case of _POSIX_SOURCE, which is predefined and required
18207 # on some systems where configure will not decide to define it.
18208 if (defundef == "undef") {
18209 print "/*", prefix defundef, macro, "*/"
18210 next
18211 }
18212 }
18213}
18214{ print }
18215_ACAWK
18216_ACEOF
18217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18219fi # test -n "$CONFIG_HEADERS"
18220
18221
18222eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18223shift
18224for ac_tag
18225do
18226 case $ac_tag in
18227 :[FHLC]) ac_mode=$ac_tag; continue;;
18228 esac
18229 case $ac_mode$ac_tag in
18230 :[FHL]*:*);;
18231 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18232 :[FH]-) ac_tag=-:-;;
18233 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18234 esac
18235 ac_save_IFS=$IFS
18236 IFS=:
18237 set x $ac_tag
18238 IFS=$ac_save_IFS
18239 shift
18240 ac_file=$1
18241 shift
18242
18243 case $ac_mode in
18244 :L) ac_source=$1;;
18245 :[FH])
18246 ac_file_inputs=
18247 for ac_f
18248 do
18249 case $ac_f in
18250 -) ac_f="$ac_tmp/stdin";;
18251 *) # Look for the file first in the build tree, then in the source tree
18252 # (if the path is not absolute). The absolute path cannot be DOS-style,
18253 # because $ac_f cannot contain `:'.
18254 test -f "$ac_f" ||
18255 case $ac_f in
18256 [\\/$]*) false;;
18257 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18258 esac ||
18259 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18260 esac
18261 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18262 as_fn_append ac_file_inputs " '$ac_f'"
18263 done
18264
18265 # Let's still pretend it is `configure' which instantiates (i.e., don't
18266 # use $as_me), people would be surprised to read:
18267 # /* config.h. Generated by config.status. */
18268 configure_input='Generated from '`
18269 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18270 `' by configure.'
18271 if test x"$ac_file" != x-; then
18272 configure_input="$ac_file. $configure_input"
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18274$as_echo "$as_me: creating $ac_file" >&6;}
18275 fi
18276 # Neutralize special characters interpreted by sed in replacement strings.
18277 case $configure_input in #(
18278 *\&* | *\|* | *\\* )
18279 ac_sed_conf_input=`$as_echo "$configure_input" |
18280 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18281 *) ac_sed_conf_input=$configure_input;;
18282 esac
18283
18284 case $ac_tag in
18285 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18287 esac
18288 ;;
18289 esac
18290
18291 ac_dir=`$as_dirname -- "$ac_file" ||
18292$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18293 X"$ac_file" : 'X\(//\)[^/]' \| \
18294 X"$ac_file" : 'X\(//\)$' \| \
18295 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18296$as_echo X"$ac_file" |
18297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18298 s//\1/
18299 q
18300 }
18301 /^X\(\/\/\)[^/].*/{
18302 s//\1/
18303 q
18304 }
18305 /^X\(\/\/\)$/{
18306 s//\1/
18307 q
18308 }
18309 /^X\(\/\).*/{
18310 s//\1/
18311 q
18312 }
18313 s/.*/./; q'`
18314 as_dir="$ac_dir"; as_fn_mkdir_p
18315 ac_builddir=.
18316
18317case "$ac_dir" in
18318.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18319*)
18320 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18321 # A ".." for each directory in $ac_dir_suffix.
18322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18323 case $ac_top_builddir_sub in
18324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18326 esac ;;
18327esac
18328ac_abs_top_builddir=$ac_pwd
18329ac_abs_builddir=$ac_pwd$ac_dir_suffix
18330# for backward compatibility:
18331ac_top_builddir=$ac_top_build_prefix
18332
18333case $srcdir in
18334 .) # We are building in place.
18335 ac_srcdir=.
18336 ac_top_srcdir=$ac_top_builddir_sub
18337 ac_abs_top_srcdir=$ac_pwd ;;
18338 [\\/]* | ?:[\\/]* ) # Absolute name.
18339 ac_srcdir=$srcdir$ac_dir_suffix;
18340 ac_top_srcdir=$srcdir
18341 ac_abs_top_srcdir=$srcdir ;;
18342 *) # Relative name.
18343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18344 ac_top_srcdir=$ac_top_build_prefix$srcdir
18345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18346esac
18347ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18348
18349
18350 case $ac_mode in
18351 :F)
18352 #
18353 # CONFIG_FILE
18354 #
18355
18356 case $INSTALL in
18357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18359 esac
18360 ac_MKDIR_P=$MKDIR_P
18361 case $MKDIR_P in
18362 [\\/$]* | ?:[\\/]* ) ;;
18363 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18364 esac
18365_ACEOF
18366
18367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18368# If the template does not know about datarootdir, expand it.
18369# FIXME: This hack should be removed a few years after 2.60.
18370ac_datarootdir_hack=; ac_datarootdir_seen=
18371ac_sed_dataroot='
18372/datarootdir/ {
18373 p
18374 q
18375}
18376/@datadir@/p
18377/@docdir@/p
18378/@infodir@/p
18379/@localedir@/p
18380/@mandir@/p'
18381case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18382*datarootdir*) ac_datarootdir_seen=yes;;
18383*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18385$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18386_ACEOF
18387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18388 ac_datarootdir_hack='
18389 s&@datadir@&$datadir&g
18390 s&@docdir@&$docdir&g
18391 s&@infodir@&$infodir&g
18392 s&@localedir@&$localedir&g
18393 s&@mandir@&$mandir&g
18394 s&\\\${datarootdir}&$datarootdir&g' ;;
18395esac
18396_ACEOF
18397
18398# Neutralize VPATH when `$srcdir' = `.'.
18399# Shell code in configure.ac might set extrasub.
18400# FIXME: do we really want to maintain this feature?
18401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18402ac_sed_extra="$ac_vpsub
18403$extrasub
18404_ACEOF
18405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18406:t
18407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18408s|@configure_input@|$ac_sed_conf_input|;t t
18409s&@top_builddir@&$ac_top_builddir_sub&;t t
18410s&@top_build_prefix@&$ac_top_build_prefix&;t t
18411s&@srcdir@&$ac_srcdir&;t t
18412s&@abs_srcdir@&$ac_abs_srcdir&;t t
18413s&@top_srcdir@&$ac_top_srcdir&;t t
18414s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18415s&@builddir@&$ac_builddir&;t t
18416s&@abs_builddir@&$ac_abs_builddir&;t t
18417s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18418s&@INSTALL@&$ac_INSTALL&;t t
18419s&@MKDIR_P@&$ac_MKDIR_P&;t t
18420$ac_datarootdir_hack
18421"
18422eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18423 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18424
18425test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18426 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18427 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18428 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18430which seems to be undefined. Please make sure it is defined" >&5
18431$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18432which seems to be undefined. Please make sure it is defined" >&2;}
18433
18434 rm -f "$ac_tmp/stdin"
18435 case $ac_file in
18436 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18437 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18438 esac \
18439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18440 ;;
18441 :H)
18442 #
18443 # CONFIG_HEADER
18444 #
18445 if test x"$ac_file" != x-; then
18446 {
18447 $as_echo "/* $configure_input */" \
18448 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18449 } >"$ac_tmp/config.h" \
18450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18451 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18453$as_echo "$as_me: $ac_file is unchanged" >&6;}
18454 else
18455 rm -f "$ac_file"
18456 mv "$ac_tmp/config.h" "$ac_file" \
18457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18458 fi
18459 else
18460 $as_echo "/* $configure_input */" \
18461 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18462 || as_fn_error $? "could not create -" "$LINENO" 5
18463 fi
18464# Compute "$ac_file"'s index in $config_headers.
18465_am_arg="$ac_file"
18466_am_stamp_count=1
18467for _am_header in $config_headers :; do
18468 case $_am_header in
18469 $_am_arg | $_am_arg:* )
18470 break ;;
18471 * )
18472 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18473 esac
18474done
18475echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18476$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18477 X"$_am_arg" : 'X\(//\)[^/]' \| \
18478 X"$_am_arg" : 'X\(//\)$' \| \
18479 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18480$as_echo X"$_am_arg" |
18481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18482 s//\1/
18483 q
18484 }
18485 /^X\(\/\/\)[^/].*/{
18486 s//\1/
18487 q
18488 }
18489 /^X\(\/\/\)$/{
18490 s//\1/
18491 q
18492 }
18493 /^X\(\/\).*/{
18494 s//\1/
18495 q
18496 }
18497 s/.*/./; q'`/stamp-h$_am_stamp_count
18498 ;;
18499
18500 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18501$as_echo "$as_me: executing $ac_file commands" >&6;}
18502 ;;
18503 esac
18504
18505
18506 case $ac_file$ac_mode in
18507 "libtool":C)
18508
18509 # See if we are running on zsh, and set the options which allow our
18510 # commands through without removal of \ escapes.
18511 if test -n "${ZSH_VERSION+set}" ; then
18512 setopt NO_GLOB_SUBST
18513 fi
18514
18515 cfgfile="${ofile}T"
18516 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18517 $RM "$cfgfile"
18518
18519 cat <<_LT_EOF >> "$cfgfile"
18520#! $SHELL
18521
18522# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18523# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18524# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18525# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18526#
18527# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Alexandre Lisionddd731e2014-01-31 11:50:08 -050018528# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18529# Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -040018530# Written by Gordon Matzigkeit, 1996
18531#
18532# This file is part of GNU Libtool.
18533#
18534# GNU Libtool is free software; you can redistribute it and/or
18535# modify it under the terms of the GNU General Public License as
18536# published by the Free Software Foundation; either version 2 of
18537# the License, or (at your option) any later version.
18538#
18539# As a special exception to the GNU General Public License,
18540# if you distribute this file as part of a program or library that
18541# is built using GNU Libtool, you may include this file under the
18542# same distribution terms that you use for the rest of that program.
18543#
18544# GNU Libtool is distributed in the hope that it will be useful,
18545# but WITHOUT ANY WARRANTY; without even the implied warranty of
18546# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18547# GNU General Public License for more details.
18548#
18549# You should have received a copy of the GNU General Public License
18550# along with GNU Libtool; see the file COPYING. If not, a copy
18551# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18552# obtained by writing to the Free Software Foundation, Inc.,
18553# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18554
18555
18556# The names of the tagged configurations supported by this script.
18557available_tags="CXX "
18558
18559# ### BEGIN LIBTOOL CONFIG
18560
Alexandre Lisione41ecd42014-02-27 15:51:10 -050018561# Assembler program.
18562AS=$lt_AS
18563
18564# DLL creation program.
18565DLLTOOL=$lt_DLLTOOL
18566
18567# Object dumper program.
18568OBJDUMP=$lt_OBJDUMP
18569
Emeric Vigier2f625822012-08-06 11:09:52 -040018570# Which release of libtool.m4 was used?
18571macro_version=$macro_version
18572macro_revision=$macro_revision
18573
18574# Whether or not to build shared libraries.
18575build_libtool_libs=$enable_shared
18576
18577# Whether or not to build static libraries.
18578build_old_libs=$enable_static
18579
18580# What type of objects to build.
18581pic_mode=$pic_mode
18582
18583# Whether or not to optimize for fast installation.
18584fast_install=$enable_fast_install
18585
18586# Shell to use when invoking shell scripts.
18587SHELL=$lt_SHELL
18588
18589# An echo program that protects backslashes.
18590ECHO=$lt_ECHO
18591
Alexandre Lisionddd731e2014-01-31 11:50:08 -050018592# The PATH separator for the build system.
18593PATH_SEPARATOR=$lt_PATH_SEPARATOR
18594
Emeric Vigier2f625822012-08-06 11:09:52 -040018595# The host system.
18596host_alias=$host_alias
18597host=$host
18598host_os=$host_os
18599
18600# The build system.
18601build_alias=$build_alias
18602build=$build
18603build_os=$build_os
18604
18605# A sed program that does not truncate output.
18606SED=$lt_SED
18607
18608# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18609Xsed="\$SED -e 1s/^X//"
18610
18611# A grep program that handles long lines.
18612GREP=$lt_GREP
18613
18614# An ERE matcher.
18615EGREP=$lt_EGREP
18616
18617# A literal string matcher.
18618FGREP=$lt_FGREP
18619
18620# A BSD- or MS-compatible name lister.
18621NM=$lt_NM
18622
18623# Whether we need soft or hard links.
18624LN_S=$lt_LN_S
18625
18626# What is the maximum length of a command?
18627max_cmd_len=$max_cmd_len
18628
18629# Object file suffix (normally "o").
18630objext=$ac_objext
18631
18632# Executable file suffix (normally "").
18633exeext=$exeext
18634
18635# whether the shell understands "unset".
18636lt_unset=$lt_unset
18637
18638# turn spaces into newlines.
18639SP2NL=$lt_lt_SP2NL
18640
18641# turn newlines into spaces.
18642NL2SP=$lt_lt_NL2SP
18643
18644# convert \$build file names to \$host format.
18645to_host_file_cmd=$lt_cv_to_host_file_cmd
18646
18647# convert \$build files to toolchain format.
18648to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18649
Emeric Vigier2f625822012-08-06 11:09:52 -040018650# Method to check whether dependent libraries are shared objects.
18651deplibs_check_method=$lt_deplibs_check_method
18652
18653# Command to use when deplibs_check_method = "file_magic".
18654file_magic_cmd=$lt_file_magic_cmd
18655
18656# How to find potential files when deplibs_check_method = "file_magic".
18657file_magic_glob=$lt_file_magic_glob
18658
18659# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18660want_nocaseglob=$lt_want_nocaseglob
18661
Emeric Vigier2f625822012-08-06 11:09:52 -040018662# Command to associate shared and link libraries.
18663sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18664
18665# The archiver.
18666AR=$lt_AR
18667
18668# Flags to create an archive.
18669AR_FLAGS=$lt_AR_FLAGS
18670
18671# How to feed a file listing to the archiver.
18672archiver_list_spec=$lt_archiver_list_spec
18673
18674# A symbol stripping program.
18675STRIP=$lt_STRIP
18676
18677# Commands used to install an old-style archive.
18678RANLIB=$lt_RANLIB
18679old_postinstall_cmds=$lt_old_postinstall_cmds
18680old_postuninstall_cmds=$lt_old_postuninstall_cmds
18681
18682# Whether to use a lock for old archive extraction.
18683lock_old_archive_extraction=$lock_old_archive_extraction
18684
18685# A C compiler.
18686LTCC=$lt_CC
18687
18688# LTCC compiler flags.
18689LTCFLAGS=$lt_CFLAGS
18690
18691# Take the output of nm and produce a listing of raw symbols and C names.
18692global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18693
18694# Transform the output of nm in a proper C declaration.
18695global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18696
18697# Transform the output of nm in a C name address pair.
18698global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18699
18700# Transform the output of nm in a C name address pair when lib prefix is needed.
18701global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18702
18703# Specify filename containing input files for \$NM.
18704nm_file_list_spec=$lt_nm_file_list_spec
18705
18706# The root where to search for dependent libraries,and in which our libraries should be installed.
18707lt_sysroot=$lt_sysroot
18708
18709# The name of the directory that contains temporary libtool files.
18710objdir=$objdir
18711
18712# Used to examine libraries when file_magic_cmd begins with "file".
18713MAGIC_CMD=$MAGIC_CMD
18714
18715# Must we lock files when doing compilation?
18716need_locks=$lt_need_locks
18717
18718# Manifest tool.
18719MANIFEST_TOOL=$lt_MANIFEST_TOOL
18720
18721# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18722DSYMUTIL=$lt_DSYMUTIL
18723
18724# Tool to change global to local symbols on Mac OS X.
18725NMEDIT=$lt_NMEDIT
18726
18727# Tool to manipulate fat objects and archives on Mac OS X.
18728LIPO=$lt_LIPO
18729
18730# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18731OTOOL=$lt_OTOOL
18732
18733# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18734OTOOL64=$lt_OTOOL64
18735
18736# Old archive suffix (normally "a").
18737libext=$libext
18738
18739# Shared library suffix (normally ".so").
18740shrext_cmds=$lt_shrext_cmds
18741
18742# The commands to extract the exported symbol list from a shared archive.
18743extract_expsyms_cmds=$lt_extract_expsyms_cmds
18744
18745# Variables whose values should be saved in libtool wrapper scripts and
18746# restored at link time.
18747variables_saved_for_relink=$lt_variables_saved_for_relink
18748
18749# Do we need the "lib" prefix for modules?
18750need_lib_prefix=$need_lib_prefix
18751
18752# Do we need a version for libraries?
18753need_version=$need_version
18754
18755# Library versioning type.
18756version_type=$version_type
18757
18758# Shared library runtime path variable.
18759runpath_var=$runpath_var
18760
18761# Shared library path variable.
18762shlibpath_var=$shlibpath_var
18763
18764# Is shlibpath searched before the hard-coded library search path?
18765shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18766
18767# Format of library name prefix.
18768libname_spec=$lt_libname_spec
18769
18770# List of archive names. First name is the real one, the rest are links.
18771# The last name is the one that the linker finds with -lNAME
18772library_names_spec=$lt_library_names_spec
18773
18774# The coded name of the library, if different from the real name.
18775soname_spec=$lt_soname_spec
18776
18777# Permission mode override for installation of shared libraries.
18778install_override_mode=$lt_install_override_mode
18779
18780# Command to use after installation of a shared archive.
18781postinstall_cmds=$lt_postinstall_cmds
18782
18783# Command to use after uninstallation of a shared archive.
18784postuninstall_cmds=$lt_postuninstall_cmds
18785
18786# Commands used to finish a libtool library installation in a directory.
18787finish_cmds=$lt_finish_cmds
18788
18789# As "finish_cmds", except a single script fragment to be evaled but
18790# not shown.
18791finish_eval=$lt_finish_eval
18792
18793# Whether we should hardcode library paths into libraries.
18794hardcode_into_libs=$hardcode_into_libs
18795
18796# Compile-time system search path for libraries.
18797sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18798
18799# Run-time system search path for libraries.
18800sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18801
18802# Whether dlopen is supported.
18803dlopen_support=$enable_dlopen
18804
18805# Whether dlopen of programs is supported.
18806dlopen_self=$enable_dlopen_self
18807
18808# Whether dlopen of statically linked programs is supported.
18809dlopen_self_static=$enable_dlopen_self_static
18810
18811# Commands to strip libraries.
18812old_striplib=$lt_old_striplib
18813striplib=$lt_striplib
18814
18815
18816# The linker used to build libraries.
18817LD=$lt_LD
18818
18819# How to create reloadable object files.
18820reload_flag=$lt_reload_flag
18821reload_cmds=$lt_reload_cmds
18822
18823# Commands used to build an old-style archive.
18824old_archive_cmds=$lt_old_archive_cmds
18825
18826# A language specific compiler.
18827CC=$lt_compiler
18828
18829# Is the compiler the GNU compiler?
18830with_gcc=$GCC
18831
18832# Compiler flag to turn off builtin functions.
18833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18834
18835# Additional compiler flags for building library objects.
18836pic_flag=$lt_lt_prog_compiler_pic
18837
18838# How to pass a linker flag through the compiler.
18839wl=$lt_lt_prog_compiler_wl
18840
18841# Compiler flag to prevent dynamic linking.
18842link_static_flag=$lt_lt_prog_compiler_static
18843
18844# Does compiler simultaneously support -c and -o options?
18845compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18846
18847# Whether or not to add -lc for building shared libraries.
18848build_libtool_need_lc=$archive_cmds_need_lc
18849
18850# Whether or not to disallow shared libs when runtime libs are static.
18851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18852
18853# Compiler flag to allow reflexive dlopens.
18854export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18855
18856# Compiler flag to generate shared objects directly from archives.
18857whole_archive_flag_spec=$lt_whole_archive_flag_spec
18858
18859# Whether the compiler copes with passing no objects directly.
18860compiler_needs_object=$lt_compiler_needs_object
18861
18862# Create an old-style archive from a shared archive.
18863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18864
18865# Create a temporary old-style archive to link instead of a shared archive.
18866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18867
18868# Commands used to build a shared archive.
18869archive_cmds=$lt_archive_cmds
18870archive_expsym_cmds=$lt_archive_expsym_cmds
18871
18872# Commands used to build a loadable module if different from building
18873# a shared archive.
18874module_cmds=$lt_module_cmds
18875module_expsym_cmds=$lt_module_expsym_cmds
18876
18877# Whether we are building with GNU ld or not.
18878with_gnu_ld=$lt_with_gnu_ld
18879
18880# Flag that allows shared libraries with undefined symbols to be built.
18881allow_undefined_flag=$lt_allow_undefined_flag
18882
18883# Flag that enforces no undefined symbols.
18884no_undefined_flag=$lt_no_undefined_flag
18885
18886# Flag to hardcode \$libdir into a binary during linking.
18887# This must work even if \$libdir does not exist
18888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18889
Emeric Vigier2f625822012-08-06 11:09:52 -040018890# Whether we need a single "-rpath" flag with a separated argument.
18891hardcode_libdir_separator=$lt_hardcode_libdir_separator
18892
18893# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18894# DIR into the resulting binary.
18895hardcode_direct=$hardcode_direct
18896
18897# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18898# DIR into the resulting binary and the resulting library dependency is
18899# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18900# library is relocated.
18901hardcode_direct_absolute=$hardcode_direct_absolute
18902
18903# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18904# into the resulting binary.
18905hardcode_minus_L=$hardcode_minus_L
18906
18907# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18908# into the resulting binary.
18909hardcode_shlibpath_var=$hardcode_shlibpath_var
18910
18911# Set to "yes" if building a shared library automatically hardcodes DIR
18912# into the library and all subsequent libraries and executables linked
18913# against it.
18914hardcode_automatic=$hardcode_automatic
18915
18916# Set to yes if linker adds runtime paths of dependent libraries
18917# to runtime path list.
18918inherit_rpath=$inherit_rpath
18919
18920# Whether libtool must link a program against all its dependency libraries.
18921link_all_deplibs=$link_all_deplibs
18922
18923# Set to "yes" if exported symbols are required.
18924always_export_symbols=$always_export_symbols
18925
18926# The commands to list exported symbols.
18927export_symbols_cmds=$lt_export_symbols_cmds
18928
18929# Symbols that should not be listed in the preloaded symbols.
18930exclude_expsyms=$lt_exclude_expsyms
18931
18932# Symbols that must always be exported.
18933include_expsyms=$lt_include_expsyms
18934
18935# Commands necessary for linking programs (against libraries) with templates.
18936prelink_cmds=$lt_prelink_cmds
18937
18938# Commands necessary for finishing linking programs.
18939postlink_cmds=$lt_postlink_cmds
18940
18941# Specify filename containing input files.
18942file_list_spec=$lt_file_list_spec
18943
18944# How to hardcode a shared library path into an executable.
18945hardcode_action=$hardcode_action
18946
18947# The directories searched by this compiler when creating a shared library.
18948compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18949
18950# Dependencies to place before and after the objects being linked to
18951# create a shared library.
18952predep_objects=$lt_predep_objects
18953postdep_objects=$lt_postdep_objects
18954predeps=$lt_predeps
18955postdeps=$lt_postdeps
18956
18957# The library search path used internally by the compiler when linking
18958# a shared library.
18959compiler_lib_search_path=$lt_compiler_lib_search_path
18960
18961# ### END LIBTOOL CONFIG
18962
18963_LT_EOF
18964
18965 case $host_os in
18966 aix3*)
18967 cat <<\_LT_EOF >> "$cfgfile"
18968# AIX sometimes has problems with the GCC collect2 program. For some
18969# reason, if we set the COLLECT_NAMES environment variable, the problems
18970# vanish in a puff of smoke.
18971if test "X${COLLECT_NAMES+set}" != Xset; then
18972 COLLECT_NAMES=
18973 export COLLECT_NAMES
18974fi
18975_LT_EOF
18976 ;;
18977 esac
18978
18979
18980ltmain="$ac_aux_dir/ltmain.sh"
18981
18982
18983 # We use sed instead of cat because bash on DJGPP gets confused if
18984 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18985 # text mode, it properly converts lines to CR/LF. This bash problem
18986 # is reportedly fixed, but why not run on old versions too?
18987 sed '$q' "$ltmain" >> "$cfgfile" \
18988 || (rm -f "$cfgfile"; exit 1)
18989
18990 if test x"$xsi_shell" = xyes; then
18991 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18992func_dirname ()\
18993{\
18994\ case ${1} in\
18995\ */*) func_dirname_result="${1%/*}${2}" ;;\
18996\ * ) func_dirname_result="${3}" ;;\
18997\ esac\
18998} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18999 && mv -f "$cfgfile.tmp" "$cfgfile" \
19000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19001test 0 -eq $? || _lt_function_replace_fail=:
19002
19003
19004 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19005func_basename ()\
19006{\
19007\ func_basename_result="${1##*/}"\
19008} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19009 && mv -f "$cfgfile.tmp" "$cfgfile" \
19010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19011test 0 -eq $? || _lt_function_replace_fail=:
19012
19013
19014 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19015func_dirname_and_basename ()\
19016{\
19017\ case ${1} in\
19018\ */*) func_dirname_result="${1%/*}${2}" ;;\
19019\ * ) func_dirname_result="${3}" ;;\
19020\ esac\
19021\ func_basename_result="${1##*/}"\
19022} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19023 && mv -f "$cfgfile.tmp" "$cfgfile" \
19024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19025test 0 -eq $? || _lt_function_replace_fail=:
19026
19027
19028 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19029func_stripname ()\
19030{\
19031\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19032\ # positional parameters, so assign one to ordinary parameter first.\
19033\ func_stripname_result=${3}\
19034\ func_stripname_result=${func_stripname_result#"${1}"}\
19035\ func_stripname_result=${func_stripname_result%"${2}"}\
19036} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19037 && mv -f "$cfgfile.tmp" "$cfgfile" \
19038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19039test 0 -eq $? || _lt_function_replace_fail=:
19040
19041
19042 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19043func_split_long_opt ()\
19044{\
19045\ func_split_long_opt_name=${1%%=*}\
19046\ func_split_long_opt_arg=${1#*=}\
19047} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19048 && mv -f "$cfgfile.tmp" "$cfgfile" \
19049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19050test 0 -eq $? || _lt_function_replace_fail=:
19051
19052
19053 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19054func_split_short_opt ()\
19055{\
19056\ func_split_short_opt_arg=${1#??}\
19057\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19058} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19059 && mv -f "$cfgfile.tmp" "$cfgfile" \
19060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19061test 0 -eq $? || _lt_function_replace_fail=:
19062
19063
19064 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19065func_lo2o ()\
19066{\
19067\ case ${1} in\
19068\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19069\ *) func_lo2o_result=${1} ;;\
19070\ esac\
19071} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19072 && mv -f "$cfgfile.tmp" "$cfgfile" \
19073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19074test 0 -eq $? || _lt_function_replace_fail=:
19075
19076
19077 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19078func_xform ()\
19079{\
19080 func_xform_result=${1%.*}.lo\
19081} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19082 && mv -f "$cfgfile.tmp" "$cfgfile" \
19083 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19084test 0 -eq $? || _lt_function_replace_fail=:
19085
19086
19087 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19088func_arith ()\
19089{\
19090 func_arith_result=$(( $* ))\
19091} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19092 && mv -f "$cfgfile.tmp" "$cfgfile" \
19093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19094test 0 -eq $? || _lt_function_replace_fail=:
19095
19096
19097 sed -e '/^func_len ()$/,/^} # func_len /c\
19098func_len ()\
19099{\
19100 func_len_result=${#1}\
19101} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19102 && mv -f "$cfgfile.tmp" "$cfgfile" \
19103 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19104test 0 -eq $? || _lt_function_replace_fail=:
19105
19106fi
19107
19108if test x"$lt_shell_append" = xyes; then
19109 sed -e '/^func_append ()$/,/^} # func_append /c\
19110func_append ()\
19111{\
19112 eval "${1}+=\\${2}"\
19113} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19114 && mv -f "$cfgfile.tmp" "$cfgfile" \
19115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19116test 0 -eq $? || _lt_function_replace_fail=:
19117
19118
19119 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19120func_append_quoted ()\
19121{\
19122\ func_quote_for_eval "${2}"\
19123\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19124} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19125 && mv -f "$cfgfile.tmp" "$cfgfile" \
19126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19127test 0 -eq $? || _lt_function_replace_fail=:
19128
19129
19130 # Save a `func_append' function call where possible by direct use of '+='
19131 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19132 && mv -f "$cfgfile.tmp" "$cfgfile" \
19133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19134 test 0 -eq $? || _lt_function_replace_fail=:
19135else
19136 # Save a `func_append' function call even when '+=' is not available
19137 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19138 && mv -f "$cfgfile.tmp" "$cfgfile" \
19139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19140 test 0 -eq $? || _lt_function_replace_fail=:
19141fi
19142
19143if test x"$_lt_function_replace_fail" = x":"; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19145$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19146fi
19147
19148
19149 mv -f "$cfgfile" "$ofile" ||
19150 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19151 chmod +x "$ofile"
19152
19153
19154 cat <<_LT_EOF >> "$ofile"
19155
19156# ### BEGIN LIBTOOL TAG CONFIG: CXX
19157
19158# The linker used to build libraries.
19159LD=$lt_LD_CXX
19160
19161# How to create reloadable object files.
19162reload_flag=$lt_reload_flag_CXX
19163reload_cmds=$lt_reload_cmds_CXX
19164
19165# Commands used to build an old-style archive.
19166old_archive_cmds=$lt_old_archive_cmds_CXX
19167
19168# A language specific compiler.
19169CC=$lt_compiler_CXX
19170
19171# Is the compiler the GNU compiler?
19172with_gcc=$GCC_CXX
19173
19174# Compiler flag to turn off builtin functions.
19175no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19176
19177# Additional compiler flags for building library objects.
19178pic_flag=$lt_lt_prog_compiler_pic_CXX
19179
19180# How to pass a linker flag through the compiler.
19181wl=$lt_lt_prog_compiler_wl_CXX
19182
19183# Compiler flag to prevent dynamic linking.
19184link_static_flag=$lt_lt_prog_compiler_static_CXX
19185
19186# Does compiler simultaneously support -c and -o options?
19187compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19188
19189# Whether or not to add -lc for building shared libraries.
19190build_libtool_need_lc=$archive_cmds_need_lc_CXX
19191
19192# Whether or not to disallow shared libs when runtime libs are static.
19193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19194
19195# Compiler flag to allow reflexive dlopens.
19196export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19197
19198# Compiler flag to generate shared objects directly from archives.
19199whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19200
19201# Whether the compiler copes with passing no objects directly.
19202compiler_needs_object=$lt_compiler_needs_object_CXX
19203
19204# Create an old-style archive from a shared archive.
19205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19206
19207# Create a temporary old-style archive to link instead of a shared archive.
19208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19209
19210# Commands used to build a shared archive.
19211archive_cmds=$lt_archive_cmds_CXX
19212archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19213
19214# Commands used to build a loadable module if different from building
19215# a shared archive.
19216module_cmds=$lt_module_cmds_CXX
19217module_expsym_cmds=$lt_module_expsym_cmds_CXX
19218
19219# Whether we are building with GNU ld or not.
19220with_gnu_ld=$lt_with_gnu_ld_CXX
19221
19222# Flag that allows shared libraries with undefined symbols to be built.
19223allow_undefined_flag=$lt_allow_undefined_flag_CXX
19224
19225# Flag that enforces no undefined symbols.
19226no_undefined_flag=$lt_no_undefined_flag_CXX
19227
19228# Flag to hardcode \$libdir into a binary during linking.
19229# This must work even if \$libdir does not exist
19230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19231
Emeric Vigier2f625822012-08-06 11:09:52 -040019232# Whether we need a single "-rpath" flag with a separated argument.
19233hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19234
19235# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19236# DIR into the resulting binary.
19237hardcode_direct=$hardcode_direct_CXX
19238
19239# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19240# DIR into the resulting binary and the resulting library dependency is
19241# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19242# library is relocated.
19243hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19244
19245# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19246# into the resulting binary.
19247hardcode_minus_L=$hardcode_minus_L_CXX
19248
19249# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19250# into the resulting binary.
19251hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19252
19253# Set to "yes" if building a shared library automatically hardcodes DIR
19254# into the library and all subsequent libraries and executables linked
19255# against it.
19256hardcode_automatic=$hardcode_automatic_CXX
19257
19258# Set to yes if linker adds runtime paths of dependent libraries
19259# to runtime path list.
19260inherit_rpath=$inherit_rpath_CXX
19261
19262# Whether libtool must link a program against all its dependency libraries.
19263link_all_deplibs=$link_all_deplibs_CXX
19264
19265# Set to "yes" if exported symbols are required.
19266always_export_symbols=$always_export_symbols_CXX
19267
19268# The commands to list exported symbols.
19269export_symbols_cmds=$lt_export_symbols_cmds_CXX
19270
19271# Symbols that should not be listed in the preloaded symbols.
19272exclude_expsyms=$lt_exclude_expsyms_CXX
19273
19274# Symbols that must always be exported.
19275include_expsyms=$lt_include_expsyms_CXX
19276
19277# Commands necessary for linking programs (against libraries) with templates.
19278prelink_cmds=$lt_prelink_cmds_CXX
19279
19280# Commands necessary for finishing linking programs.
19281postlink_cmds=$lt_postlink_cmds_CXX
19282
19283# Specify filename containing input files.
19284file_list_spec=$lt_file_list_spec_CXX
19285
19286# How to hardcode a shared library path into an executable.
19287hardcode_action=$hardcode_action_CXX
19288
19289# The directories searched by this compiler when creating a shared library.
19290compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19291
19292# Dependencies to place before and after the objects being linked to
19293# create a shared library.
19294predep_objects=$lt_predep_objects_CXX
19295postdep_objects=$lt_postdep_objects_CXX
19296predeps=$lt_predeps_CXX
19297postdeps=$lt_postdeps_CXX
19298
19299# The library search path used internally by the compiler when linking
19300# a shared library.
19301compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19302
19303# ### END LIBTOOL TAG CONFIG: CXX
19304_LT_EOF
19305
19306 ;;
19307 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019308 # Older Autoconf quotes --file arguments for eval, but not when files
Emeric Vigier2f625822012-08-06 11:09:52 -040019309 # are listed without --file. Let's play safe and only enable the eval
19310 # if we detect the quoting.
19311 case $CONFIG_FILES in
19312 *\'*) eval set x "$CONFIG_FILES" ;;
19313 *) set x $CONFIG_FILES ;;
19314 esac
19315 shift
19316 for mf
19317 do
19318 # Strip MF so we end up with the name of the file.
19319 mf=`echo "$mf" | sed -e 's/:.*$//'`
19320 # Check whether this is an Automake generated Makefile or not.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019321 # We used to match only the files named 'Makefile.in', but
Emeric Vigier2f625822012-08-06 11:09:52 -040019322 # some people rename them; so instead we look at the file content.
19323 # Grep'ing the first line is not enough: some people post-process
19324 # each Makefile.in and add a new line on top of each file to say so.
19325 # Grep'ing the whole file is not good either: AIX grep has a line
19326 # limit of 2048, but all sed's we know have understand at least 4000.
19327 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19328 dirpart=`$as_dirname -- "$mf" ||
19329$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19330 X"$mf" : 'X\(//\)[^/]' \| \
19331 X"$mf" : 'X\(//\)$' \| \
19332 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19333$as_echo X"$mf" |
19334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19335 s//\1/
19336 q
19337 }
19338 /^X\(\/\/\)[^/].*/{
19339 s//\1/
19340 q
19341 }
19342 /^X\(\/\/\)$/{
19343 s//\1/
19344 q
19345 }
19346 /^X\(\/\).*/{
19347 s//\1/
19348 q
19349 }
19350 s/.*/./; q'`
19351 else
19352 continue
19353 fi
19354 # Extract the definition of DEPDIR, am__include, and am__quote
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019355 # from the Makefile without running 'make'.
Emeric Vigier2f625822012-08-06 11:09:52 -040019356 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19357 test -z "$DEPDIR" && continue
19358 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019359 test -z "$am__include" && continue
Emeric Vigier2f625822012-08-06 11:09:52 -040019360 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Emeric Vigier2f625822012-08-06 11:09:52 -040019361 # Find all dependency output files, they are included files with
19362 # $(DEPDIR) in their names. We invoke sed twice because it is the
19363 # simplest approach to changing $(DEPDIR) to its actual value in the
19364 # expansion.
19365 for file in `sed -n "
19366 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019367 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Emeric Vigier2f625822012-08-06 11:09:52 -040019368 # Make sure the directory exists.
19369 test -f "$dirpart/$file" && continue
19370 fdir=`$as_dirname -- "$file" ||
19371$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19372 X"$file" : 'X\(//\)[^/]' \| \
19373 X"$file" : 'X\(//\)$' \| \
19374 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19375$as_echo X"$file" |
19376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19377 s//\1/
19378 q
19379 }
19380 /^X\(\/\/\)[^/].*/{
19381 s//\1/
19382 q
19383 }
19384 /^X\(\/\/\)$/{
19385 s//\1/
19386 q
19387 }
19388 /^X\(\/\).*/{
19389 s//\1/
19390 q
19391 }
19392 s/.*/./; q'`
19393 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19394 # echo "creating $dirpart/$file"
19395 echo '# dummy' > "$dirpart/$file"
19396 done
19397 done
19398}
19399 ;;
19400
19401 esac
19402done # for ac_tag
19403
19404
19405as_fn_exit 0
19406_ACEOF
19407ac_clean_files=$ac_clean_files_save
19408
19409test $ac_write_fail = 0 ||
19410 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19411
19412
19413# configure is writing to config.log, and then calls config.status.
19414# config.status does its own redirection, appending to config.log.
19415# Unfortunately, on DOS this fails, as config.log is still kept open
19416# by configure, so config.status won't be able to write to it; its
19417# output is simply discarded. So we exec the FD to /dev/null,
19418# effectively closing config.log, so it can be properly (re)opened and
19419# appended to by config.status. When coming back to configure, we
19420# need to make the FD available again.
19421if test "$no_create" != yes; then
19422 ac_cs_success=:
19423 ac_config_status_args=
19424 test "$silent" = yes &&
19425 ac_config_status_args="$ac_config_status_args --quiet"
19426 exec 5>/dev/null
19427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19428 exec 5>>config.log
19429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19430 # would make configure fail if this is the last instruction.
19431 $ac_cs_success || as_fn_exit 1
19432fi
19433if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19435$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19436fi
19437