blob: d7c1e71bebcf358a47d83f2cc24b30330bcb27b9 [file] [log] [blame]
Jeff Thompson39128c62013-06-19 14:08:51 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeff Thompson93a24162013-09-27 13:28:13 -07003# Generated by GNU Autoconf 2.69 for ndn-cpp 0.2.
4#
5# Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -07006#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Jeff Thompson4f031642013-08-05 11:03:16 -0700200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
Jeff Thompson39128c62013-06-19 14:08:51 -0700210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
Jeff Thompson93a24162013-09-27 13:28:13 -0700277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: ndn-lib@lists.cs.ucla.edu about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
Jeff Thompson39128c62013-06-19 14:08:51 -0700282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
Jeff Thompson4f031642013-08-05 11:03:16 -0700567SHELL=${CONFIG_SHELL-/bin/sh}
568
Jeff Thompson39128c62013-06-19 14:08:51 -0700569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ndn-cpp'
592PACKAGE_TARNAME='ndn-cpp'
Jeff Thompson93a24162013-09-27 13:28:13 -0700593PACKAGE_VERSION='0.2'
594PACKAGE_STRING='ndn-cpp 0.2'
595PACKAGE_BUGREPORT='ndn-lib@lists.cs.ucla.edu'
Jeff Thompson39128c62013-06-19 14:08:51 -0700596PACKAGE_URL='https://github.com/named-data/ndn-cpp'
597
Jeff Thompson93a24162013-09-27 13:28:13 -0700598ac_unique_file="config.h.in"
Jeff Thompson4f031642013-08-05 11:03:16 -0700599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
Jeff Thompson39128c62013-06-19 14:08:51 -0700635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
Jeff Thompsonca45e552013-06-26 17:40:06 -0700639DOXYGEN_PAPER_SIZE
640DX_COND_latex_FALSE
641DX_COND_latex_TRUE
642DX_COND_pdf_FALSE
643DX_COND_pdf_TRUE
644DX_PDFLATEX
645DX_FLAG_pdf
646DX_COND_ps_FALSE
647DX_COND_ps_TRUE
648DX_EGREP
649DX_DVIPS
650DX_MAKEINDEX
651DX_LATEX
652DX_FLAG_ps
653DX_COND_html_FALSE
654DX_COND_html_TRUE
655DX_FLAG_html
656DX_COND_chi_FALSE
657DX_COND_chi_TRUE
658DX_FLAG_chi
659DX_COND_chm_FALSE
660DX_COND_chm_TRUE
661DX_HHC
662DX_FLAG_chm
663DX_COND_xml_FALSE
664DX_COND_xml_TRUE
665DX_FLAG_xml
666DX_COND_rtf_FALSE
667DX_COND_rtf_TRUE
668DX_FLAG_rtf
669DX_COND_man_FALSE
670DX_COND_man_TRUE
671DX_FLAG_man
672DX_COND_dot_FALSE
673DX_COND_dot_TRUE
674DX_DOT
675DX_FLAG_dot
676DX_COND_doc_FALSE
677DX_COND_doc_TRUE
678DX_PERL
679DX_DOXYGEN
680DX_FLAG_doc
681DX_ENV
682DX_DOCDIR
683DX_CONFIG
684DX_PROJECT
Jeff Thompson1b8f4c92013-06-19 16:18:46 -0700685HAVE_CXX11
Jeff Thompson965a3242013-10-02 09:59:35 -0700686SQLITE3_VERSION
687SQLITE3_LDFLAGS
688SQLITE3_CFLAGS
689am__fastdepOBJCXX_FALSE
690am__fastdepOBJCXX_TRUE
691OBJCXXDEPMODE
692ac_ct_OBJCXX
693OBJCXXFLAGS
694OBJCXX
Jeff Thompson4f031642013-08-05 11:03:16 -0700695CXXCPP
Jeff Thompson39128c62013-06-19 14:08:51 -0700696am__fastdepCXX_FALSE
697am__fastdepCXX_TRUE
698CXXDEPMODE
Jeff Thompson4f031642013-08-05 11:03:16 -0700699ac_ct_CXX
700CXXFLAGS
701CXX
702CPP
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708MANIFEST_TOOL
709RANLIB
710DLLTOOL
711OBJDUMP
712LN_S
713NM
714ac_ct_DUMPBIN
715DUMPBIN
716LD
717FGREP
718EGREP
719GREP
720SED
721host_os
722host_vendor
723host_cpu
724host
725build_os
726build_vendor
727build_cpu
728build
729LIBTOOL
730am__fastdepCC_FALSE
731am__fastdepCC_TRUE
732CCDEPMODE
Jeff Thompson39128c62013-06-19 14:08:51 -0700733am__nodep
734AMDEPBACKSLASH
735AMDEP_FALSE
736AMDEP_TRUE
737am__quote
738am__include
739DEPDIR
740OBJEXT
741EXEEXT
Jeff Thompson4f031642013-08-05 11:03:16 -0700742ac_ct_CC
Jeff Thompson39128c62013-06-19 14:08:51 -0700743CPPFLAGS
744LDFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700745CFLAGS
746CC
747ac_ct_AR
748AR
Jeff Thompson47053ad2013-08-05 10:36:53 -0700749MAINT
750MAINTAINER_MODE_FALSE
751MAINTAINER_MODE_TRUE
Jeff Thompson39128c62013-06-19 14:08:51 -0700752AM_BACKSLASH
753AM_DEFAULT_VERBOSITY
754AM_DEFAULT_V
755AM_V
756am__untar
757am__tar
758AMTAR
759am__leading_dot
760SET_MAKE
761AWK
762mkdir_p
763MKDIR_P
764INSTALL_STRIP_PROGRAM
765STRIP
766install_sh
767MAKEINFO
768AUTOHEADER
769AUTOMAKE
770AUTOCONF
771ACLOCAL
772VERSION
773PACKAGE
774CYGPATH_W
775am__isrc
776INSTALL_DATA
777INSTALL_SCRIPT
778INSTALL_PROGRAM
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
Jeff Thompson47053ad2013-08-05 10:36:53 -0700821enable_maintainer_mode
Jeff Thompson39128c62013-06-19 14:08:51 -0700822enable_dependency_tracking
Jeff Thompson4f031642013-08-05 11:03:16 -0700823enable_shared
824enable_static
825with_pic
826enable_fast_install
827with_gnu_ld
828with_sysroot
829enable_libtool_lock
Jeff Thompson965a3242013-10-02 09:59:35 -0700830with_sqlite3
Jeff Thompsonca45e552013-06-26 17:40:06 -0700831enable_doxygen_doc
832enable_doxygen_dot
833enable_doxygen_man
834enable_doxygen_rtf
835enable_doxygen_xml
836enable_doxygen_chm
837enable_doxygen_chi
838enable_doxygen_html
839enable_doxygen_ps
840enable_doxygen_pdf
Jeff Thompson39128c62013-06-19 14:08:51 -0700841'
842 ac_precious_vars='build_alias
843host_alias
844target_alias
Jeff Thompson4f031642013-08-05 11:03:16 -0700845CC
846CFLAGS
Jeff Thompson39128c62013-06-19 14:08:51 -0700847LDFLAGS
848LIBS
849CPPFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700850CPP
851CXX
852CXXFLAGS
Jeff Thompson36174062013-06-21 16:03:44 -0700853CCC
Jeff Thompson4f031642013-08-05 11:03:16 -0700854CXXCPP
Jeff Thompson965a3242013-10-02 09:59:35 -0700855OBJCXX
856OBJCXXFLAGS
Jeff Thompsonca45e552013-06-26 17:40:06 -0700857DOXYGEN_PAPER_SIZE'
Jeff Thompson39128c62013-06-19 14:08:51 -0700858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972"enable_$ac_useropt"
973"*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266done
1267
1268if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
Jeff Thompson93a24162013-09-27 13:28:13 -07001398\`configure' configures ndn-cpp 0.2 to adapt to many kinds of systems.
Jeff Thompson39128c62013-06-19 14:08:51 -07001399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451_ACEOF
1452
1453 cat <<\_ACEOF
1454
1455Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Jeff Thompson4f031642013-08-05 11:03:16 -07001459
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Jeff Thompson39128c62013-06-19 14:08:51 -07001463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
Jeff Thompson93a24162013-09-27 13:28:13 -07001468 short | recursive ) echo "Configuration of ndn-cpp 0.2:";;
Jeff Thompson39128c62013-06-19 14:08:51 -07001469 esac
1470 cat <<\_ACEOF
1471
1472Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
Jeff Thompson47053ad2013-08-05 10:36:53 -07001478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
Jeff Thompson39128c62013-06-19 14:08:51 -07001481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
Jeff Thompson4f031642013-08-05 11:03:16 -07001485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
Jeff Thompsonca45e552013-06-26 17:40:06 -07001490 --disable-doxygen-doc don't generate any doxygen documentation
1491 --enable-doxygen-dot generate graphics for doxygen documentation
1492 --enable-doxygen-man generate doxygen manual pages
1493 --enable-doxygen-rtf generate doxygen RTF documentation
1494 --enable-doxygen-xml generate doxygen XML documentation
1495 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1496 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1497 file
1498 --disable-doxygen-html don't generate doxygen plain HTML documentation
1499 --enable-doxygen-ps generate doxygen PostScript documentation
1500 --enable-doxygen-pdf generate doxygen PDF documentation
Jeff Thompson39128c62013-06-19 14:08:51 -07001501
Jeff Thompson4f031642013-08-05 11:03:16 -07001502Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-sysroot=DIR Search for dependent libraries within DIR
1509 (or the compiler's sysroot if not specified).
Jeff Thompson965a3242013-10-02 09:59:35 -07001510 --with-sqlite3=[ARG] use SQLite 3 library [default=yes], optionally
1511 specify the prefix for sqlite3 library
Jeff Thompson4f031642013-08-05 11:03:16 -07001512
Jeff Thompson39128c62013-06-19 14:08:51 -07001513Some influential environment variables:
Jeff Thompson4f031642013-08-05 11:03:16 -07001514 CC C compiler command
1515 CFLAGS C compiler flags
Jeff Thompson39128c62013-06-19 14:08:51 -07001516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
Jeff Thompson4f031642013-08-05 11:03:16 -07001521 CPP C preprocessor
1522 CXX C++ compiler command
1523 CXXFLAGS C++ compiler flags
1524 CXXCPP C++ preprocessor
Jeff Thompson965a3242013-10-02 09:59:35 -07001525 OBJCXX Objective C++ compiler command
1526 OBJCXXFLAGS Objective C++ compiler flags
Jeff Thompsonca45e552013-06-26 17:40:06 -07001527 DOXYGEN_PAPER_SIZE
1528 a4wide (default), a4, letter, legal or executive
Jeff Thompson39128c62013-06-19 14:08:51 -07001529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
Jeff Thompson93a24162013-09-27 13:28:13 -07001533Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -07001534ndn-cpp home page: <https://github.com/named-data/ndn-cpp>.
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596 cat <<\_ACEOF
Jeff Thompson93a24162013-09-27 13:28:13 -07001597ndn-cpp configure 0.2
Jeff Thompson39128c62013-06-19 14:08:51 -07001598generated by GNU Autoconf 2.69
1599
1600Copyright (C) 2012 Free Software Foundation, Inc.
1601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
1603_ACEOF
1604 exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
1610
Jeff Thompson4f031642013-08-05 11:03:16 -07001611# ac_fn_c_try_compile LINENO
1612# --------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_compile ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_compile
1648
1649# ac_fn_c_try_link LINENO
1650# -----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_link ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679else
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693} # ac_fn_c_try_link
1694
1695# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696# -------------------------------------------------------
1697# Tests whether HEADER exists and can be compiled using the include files in
1698# INCLUDES, setting the cache variable VAR accordingly.
1699ac_fn_c_check_header_compile ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
1704if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714else
1715 eval "$3=no"
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718fi
1719eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721$as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724} # ac_fn_c_check_header_compile
1725
1726# ac_fn_c_try_cpp LINENO
1727# ----------------------
1728# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_cpp ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_cpp
1762
1763# ac_fn_c_try_run LINENO
1764# ----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766# that executables *can* be run.
1767ac_fn_c_try_run ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=$ac_status
1798fi
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_run
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820#define $2 innocuous_$2
1821
1822/* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827#ifdef __STDC__
1828# include <limits.h>
1829#else
1830# include <assert.h>
1831#endif
1832
1833#undef $2
1834
1835/* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838#ifdef __cplusplus
1839extern "C"
1840#endif
1841char $2 ();
1842/* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845#if defined __stub_$2 || defined __stub___$2
1846choke me
1847#endif
1848
1849int
1850main ()
1851{
1852return $2 ();
1853 ;
1854 return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_func
1871
Jeff Thompson39128c62013-06-19 14:08:51 -07001872# ac_fn_cxx_try_compile LINENO
1873# ----------------------------
1874# Try to compile conftest.$ac_ext, and return whether this succeeded.
1875ac_fn_cxx_try_compile ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext
1879 if { { ac_try="$ac_compile"
1880case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_compile") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_cxx_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest.$ac_objext; then :
1898 ac_retval=0
1899else
1900 $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904fi
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908} # ac_fn_cxx_try_compile
Jeff Thompson36174062013-06-21 16:03:44 -07001909
Jeff Thompson4f031642013-08-05 11:03:16 -07001910# ac_fn_cxx_try_cpp LINENO
1911# ------------------------
1912# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_cxx_try_cpp ()
Jeff Thompson36174062013-06-21 16:03:44 -07001914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Jeff Thompson4f031642013-08-05 11:03:16 -07001916 if { { ac_try="$ac_cpp conftest.$ac_ext"
Jeff Thompson36174062013-06-21 16:03:44 -07001917case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
Jeff Thompson4f031642013-08-05 11:03:16 -07001923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } > conftest.i && {
1932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 }; then :
1935 ac_retval=0
1936else
1937 $as_echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_retval=1
1941fi
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1944
1945} # ac_fn_cxx_try_cpp
1946
1947# ac_fn_cxx_try_link LINENO
1948# -------------------------
1949# Try to link conftest.$ac_ext, and return whether this succeeded.
1950ac_fn_cxx_try_link ()
1951{
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext conftest$ac_exeext
1954 if { { ac_try="$ac_link"
1955case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>conftest.err
Jeff Thompson36174062013-06-21 16:03:44 -07001962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
Jeff Thompson4f031642013-08-05 11:03:16 -07001970 test -z "$ac_cxx_werror_flag" ||
Jeff Thompson36174062013-06-21 16:03:44 -07001971 test ! -s conftest.err
Jeff Thompson4f031642013-08-05 11:03:16 -07001972 } && test -s conftest$ac_exeext && {
1973 test "$cross_compiling" = yes ||
1974 test -x conftest$ac_exeext
1975 }; then :
Jeff Thompson36174062013-06-21 16:03:44 -07001976 ac_retval=0
1977else
1978 $as_echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_retval=1
1982fi
Jeff Thompson4f031642013-08-05 11:03:16 -07001983 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1984 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1985 # interfere with the next link command; also delete a directory that is
1986 # left behind by Apple's compiler. We do this before executing the actions.
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Jeff Thompson36174062013-06-21 16:03:44 -07001988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1990
Jeff Thompson4f031642013-08-05 11:03:16 -07001991} # ac_fn_cxx_try_link
Jeff Thompson965a3242013-10-02 09:59:35 -07001992
1993# ac_fn_objcxx_try_compile LINENO
1994# -------------------------------
1995# Try to compile conftest.$ac_ext, and return whether this succeeded.
1996ac_fn_objcxx_try_compile ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext
2000 if { { ac_try="$ac_compile"
2001case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004esac
2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006$as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_compile") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2013 fi
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_objcxx_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest.$ac_objext; then :
2019 ac_retval=0
2020else
2021 $as_echo "$as_me: failed program was:" >&5
2022sed 's/^/| /' conftest.$ac_ext >&5
2023
2024 ac_retval=1
2025fi
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2028
2029} # ac_fn_objcxx_try_compile
Jeff Thompson32a23332013-10-07 18:39:00 -07002030
2031# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2032# ---------------------------------------------
2033# Tests whether TYPE exists after having included INCLUDES, setting cache
2034# variable VAR accordingly.
2035ac_fn_cxx_check_type ()
2036{
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042else
2043 eval "$3=no"
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
2050if (sizeof ($2))
2051 return 0;
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_cxx_try_compile "$LINENO"; then :
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063if (sizeof (($2)))
2064 return 0;
2065 ;
2066 return 0;
2067}
2068_ACEOF
2069if ac_fn_cxx_try_compile "$LINENO"; then :
2070
2071else
2072 eval "$3=yes"
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080$as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082
2083} # ac_fn_cxx_check_type
2084
2085# ac_fn_c_find_intX_t LINENO BITS VAR
2086# -----------------------------------
2087# Finds a signed integer type with width BITS, setting cache variable VAR
2088# accordingly.
2089ac_fn_c_find_intX_t ()
2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2093$as_echo_n "checking for int$2_t... " >&6; }
2094if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096else
2097 eval "$3=no"
2098 # Order is important - never check a type that is potentially smaller
2099 # than half of the expected target width.
2100 for ac_type in int$2_t 'int' 'long int' \
2101 'long long int' 'short int' 'signed char'; do
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$ac_includes_default
2105 enum { N = $2 / 2 - 1 };
2106int
2107main ()
2108{
2109static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2110test_array [0] = 0;
2111return test_array [0];
2112
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117if ac_fn_cxx_try_compile "$LINENO"; then :
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120$ac_includes_default
2121 enum { N = $2 / 2 - 1 };
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2126 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2127test_array [0] = 0;
2128return test_array [0];
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134if ac_fn_cxx_try_compile "$LINENO"; then :
2135
2136else
2137 case $ac_type in #(
2138 int$2_t) :
2139 eval "$3=yes" ;; #(
2140 *) :
2141 eval "$3=\$ac_type" ;;
2142esac
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 if eval test \"x\$"$3"\" = x"no"; then :
2148
2149else
2150 break
2151fi
2152 done
2153fi
2154eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156$as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159} # ac_fn_c_find_intX_t
2160
2161# ac_fn_c_find_uintX_t LINENO BITS VAR
2162# ------------------------------------
2163# Finds an unsigned integer type with width BITS, setting cache variable VAR
2164# accordingly.
2165ac_fn_c_find_uintX_t ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2169$as_echo_n "checking for uint$2_t... " >&6; }
2170if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172else
2173 eval "$3=no"
2174 # Order is important - never check a type that is potentially smaller
2175 # than half of the expected target width.
2176 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2177 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h. */
2180$ac_includes_default
2181int
2182main ()
2183{
2184static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2185test_array [0] = 0;
2186return test_array [0];
2187
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_cxx_try_compile "$LINENO"; then :
2193 case $ac_type in #(
2194 uint$2_t) :
2195 eval "$3=yes" ;; #(
2196 *) :
2197 eval "$3=\$ac_type" ;;
2198esac
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 if eval test \"x\$"$3"\" = x"no"; then :
2202
2203else
2204 break
2205fi
2206 done
2207fi
2208eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212
2213} # ac_fn_c_find_uintX_t
2214
2215# ac_fn_cxx_check_func LINENO FUNC VAR
2216# ------------------------------------
2217# Tests whether FUNC exists, setting the cache variable VAR accordingly
2218ac_fn_cxx_check_func ()
2219{
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222$as_echo_n "checking for $2... " >&6; }
2223if eval \${$3+:} false; then :
2224 $as_echo_n "(cached) " >&6
2225else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2230#define $2 innocuous_$2
2231
2232/* System header to define __stub macros and hopefully few prototypes,
2233 which can conflict with char $2 (); below.
2234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2235 <limits.h> exists even on freestanding compilers. */
2236
2237#ifdef __STDC__
2238# include <limits.h>
2239#else
2240# include <assert.h>
2241#endif
2242
2243#undef $2
2244
2245/* Override any GCC internal prototype to avoid an error.
2246 Use char because int might match the return type of a GCC
2247 builtin and then its argument prototype would still apply. */
2248#ifdef __cplusplus
2249extern "C"
2250#endif
2251char $2 ();
2252/* The GNU C library defines this for functions which it implements
2253 to always fail with ENOSYS. Some functions are actually named
2254 something starting with __ and the normal name is an alias. */
2255#if defined __stub_$2 || defined __stub___$2
2256choke me
2257#endif
2258
2259int
2260main ()
2261{
2262return $2 ();
2263 ;
2264 return 0;
2265}
2266_ACEOF
2267if ac_fn_cxx_try_link "$LINENO"; then :
2268 eval "$3=yes"
2269else
2270 eval "$3=no"
2271fi
2272rm -f core conftest.err conftest.$ac_objext \
2273 conftest$ac_exeext conftest.$ac_ext
2274fi
2275eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277$as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279
2280} # ac_fn_cxx_check_func
Jeff Thompson39128c62013-06-19 14:08:51 -07002281cat >config.log <<_ACEOF
2282This file contains any messages produced by compilers while
2283running configure, to aid debugging if configure makes a mistake.
2284
Jeff Thompson93a24162013-09-27 13:28:13 -07002285It was created by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -07002286generated by GNU Autoconf 2.69. Invocation command line was
2287
2288 $ $0 $@
2289
2290_ACEOF
2291exec 5>>config.log
2292{
2293cat <<_ASUNAME
2294## --------- ##
2295## Platform. ##
2296## --------- ##
2297
2298hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2299uname -m = `(uname -m) 2>/dev/null || echo unknown`
2300uname -r = `(uname -r) 2>/dev/null || echo unknown`
2301uname -s = `(uname -s) 2>/dev/null || echo unknown`
2302uname -v = `(uname -v) 2>/dev/null || echo unknown`
2303
2304/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2305/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2306
2307/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2308/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2309/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2310/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2311/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2312/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2313/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2314
2315_ASUNAME
2316
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 $as_echo "PATH: $as_dir"
2323 done
2324IFS=$as_save_IFS
2325
2326} >&5
2327
2328cat >&5 <<_ACEOF
2329
2330
2331## ----------- ##
2332## Core tests. ##
2333## ----------- ##
2334
2335_ACEOF
2336
2337
2338# Keep a trace of the command line.
2339# Strip out --no-create and --no-recursion so they do not pile up.
2340# Strip out --silent because we don't want to record it for future runs.
2341# Also quote any args containing shell meta-characters.
2342# Make two passes to allow for proper duplicate-argument suppression.
2343ac_configure_args=
2344ac_configure_args0=
2345ac_configure_args1=
2346ac_must_keep_next=false
2347for ac_pass in 1 2
2348do
2349 for ac_arg
2350 do
2351 case $ac_arg in
2352 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2354 | -silent | --silent | --silen | --sile | --sil)
2355 continue ;;
2356 *\'*)
2357 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 esac
2359 case $ac_pass in
2360 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2361 2)
2362 as_fn_append ac_configure_args1 " '$ac_arg'"
2363 if test $ac_must_keep_next = true; then
2364 ac_must_keep_next=false # Got value, back to normal.
2365 else
2366 case $ac_arg in
2367 *=* | --config-cache | -C | -disable-* | --disable-* \
2368 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2369 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2370 | -with-* | --with-* | -without-* | --without-* | --x)
2371 case "$ac_configure_args0 " in
2372 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2373 esac
2374 ;;
2375 -* ) ac_must_keep_next=true ;;
2376 esac
2377 fi
2378 as_fn_append ac_configure_args " '$ac_arg'"
2379 ;;
2380 esac
2381 done
2382done
2383{ ac_configure_args0=; unset ac_configure_args0;}
2384{ ac_configure_args1=; unset ac_configure_args1;}
2385
2386# When interrupted or exit'd, cleanup temporary files, and complete
2387# config.log. We remove comments because anyway the quotes in there
2388# would cause problems or look ugly.
2389# WARNING: Use '\'' to represent an apostrophe within the trap.
2390# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2391trap 'exit_status=$?
2392 # Save into config.log some information that might help in debugging.
2393 {
2394 echo
2395
2396 $as_echo "## ---------------- ##
2397## Cache variables. ##
2398## ---------------- ##"
2399 echo
2400 # The following way of writing the cache mishandles newlines in values,
2401(
2402 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2403 eval ac_val=\$$ac_var
2404 case $ac_val in #(
2405 *${as_nl}*)
2406 case $ac_var in #(
2407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2408$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2409 esac
2410 case $ac_var in #(
2411 _ | IFS | as_nl) ;; #(
2412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2413 *) { eval $ac_var=; unset $ac_var;} ;;
2414 esac ;;
2415 esac
2416 done
2417 (set) 2>&1 |
2418 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2419 *${as_nl}ac_space=\ *)
2420 sed -n \
2421 "s/'\''/'\''\\\\'\'''\''/g;
2422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2423 ;; #(
2424 *)
2425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2426 ;;
2427 esac |
2428 sort
2429)
2430 echo
2431
2432 $as_echo "## ----------------- ##
2433## Output variables. ##
2434## ----------------- ##"
2435 echo
2436 for ac_var in $ac_subst_vars
2437 do
2438 eval ac_val=\$$ac_var
2439 case $ac_val in
2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441 esac
2442 $as_echo "$ac_var='\''$ac_val'\''"
2443 done | sort
2444 echo
2445
2446 if test -n "$ac_subst_files"; then
2447 $as_echo "## ------------------- ##
2448## File substitutions. ##
2449## ------------------- ##"
2450 echo
2451 for ac_var in $ac_subst_files
2452 do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2460 fi
2461
2462 if test -s confdefs.h; then
2463 $as_echo "## ----------- ##
2464## confdefs.h. ##
2465## ----------- ##"
2466 echo
2467 cat confdefs.h
2468 echo
2469 fi
2470 test "$ac_signal" != 0 &&
2471 $as_echo "$as_me: caught signal $ac_signal"
2472 $as_echo "$as_me: exit $exit_status"
2473 } >&5
2474 rm -f core *.core core.conftest.* &&
2475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2476 exit $exit_status
2477' 0
2478for ac_signal in 1 2 13 15; do
2479 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2480done
2481ac_signal=0
2482
2483# confdefs.h avoids OS command line length limits that DEFS can exceed.
2484rm -f -r conftest* confdefs.h
2485
2486$as_echo "/* confdefs.h */" > confdefs.h
2487
2488# Predefined preprocessor variables.
2489
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_NAME "$PACKAGE_NAME"
2492_ACEOF
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2496_ACEOF
2497
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_VERSION "$PACKAGE_VERSION"
2500_ACEOF
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_STRING "$PACKAGE_STRING"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_URL "$PACKAGE_URL"
2512_ACEOF
2513
2514
2515# Let the site file select an alternate cache file if it wants to.
2516# Prefer an explicitly selected file to automatically selected ones.
2517ac_site_file1=NONE
2518ac_site_file2=NONE
2519if test -n "$CONFIG_SITE"; then
2520 # We do not want a PATH search for config.site.
2521 case $CONFIG_SITE in #((
2522 -*) ac_site_file1=./$CONFIG_SITE;;
2523 */*) ac_site_file1=$CONFIG_SITE;;
2524 *) ac_site_file1=./$CONFIG_SITE;;
2525 esac
2526elif test "x$prefix" != xNONE; then
2527 ac_site_file1=$prefix/share/config.site
2528 ac_site_file2=$prefix/etc/config.site
2529else
2530 ac_site_file1=$ac_default_prefix/share/config.site
2531 ac_site_file2=$ac_default_prefix/etc/config.site
2532fi
2533for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2534do
2535 test "x$ac_site_file" = xNONE && continue
2536 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2538$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2539 sed 's/^/| /' "$ac_site_file" >&5
2540 . "$ac_site_file" \
2541 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543as_fn_error $? "failed to load site script $ac_site_file
2544See \`config.log' for more details" "$LINENO" 5; }
2545 fi
2546done
2547
2548if test -r "$cache_file"; then
2549 # Some versions of bash will fail to source /dev/null (special files
2550 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2551 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2553$as_echo "$as_me: loading cache $cache_file" >&6;}
2554 case $cache_file in
2555 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2556 *) . "./$cache_file";;
2557 esac
2558 fi
2559else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2561$as_echo "$as_me: creating cache $cache_file" >&6;}
2562 >$cache_file
2563fi
2564
2565# Check that the precious variables saved in the cache have kept the same
2566# value.
2567ac_cache_corrupted=false
2568for ac_var in $ac_precious_vars; do
2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2570 eval ac_new_set=\$ac_env_${ac_var}_set
2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2572 eval ac_new_val=\$ac_env_${ac_var}_value
2573 case $ac_old_set,$ac_new_set in
2574 set,)
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2576$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2577 ac_cache_corrupted=: ;;
2578 ,set)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2580$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2581 ac_cache_corrupted=: ;;
2582 ,);;
2583 *)
2584 if test "x$ac_old_val" != "x$ac_new_val"; then
2585 # differences in whitespace do not lead to failure.
2586 ac_old_val_w=`echo x $ac_old_val`
2587 ac_new_val_w=`echo x $ac_new_val`
2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2590$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2591 ac_cache_corrupted=:
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2594$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595 eval $ac_var=\$ac_old_val
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2598$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2600$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2601 fi;;
2602 esac
2603 # Pass precious variables to config.status.
2604 if test "$ac_new_set" = set; then
2605 case $ac_new_val in
2606 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607 *) ac_arg=$ac_var=$ac_new_val ;;
2608 esac
2609 case " $ac_configure_args " in
2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2612 esac
2613 fi
2614done
2615if $ac_cache_corrupted; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2619$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2620 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2621fi
2622## -------------------- ##
2623## Main body of script. ##
2624## -------------------- ##
2625
2626ac_ext=c
2627ac_cpp='$CPP $CPPFLAGS'
2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632
Jeff Thompsona04f23c2013-09-16 17:48:38 -07002633am__api_version='1.14'
Jeff Thompson39128c62013-06-19 14:08:51 -07002634
2635ac_aux_dir=
2636for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2637 if test -f "$ac_dir/install-sh"; then
2638 ac_aux_dir=$ac_dir
2639 ac_install_sh="$ac_aux_dir/install-sh -c"
2640 break
2641 elif test -f "$ac_dir/install.sh"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/install.sh -c"
2644 break
2645 elif test -f "$ac_dir/shtool"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/shtool install -c"
2648 break
2649 fi
2650done
2651if test -z "$ac_aux_dir"; then
2652 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2653fi
2654
2655# These three variables are undocumented and unsupported,
2656# and are intended to be withdrawn in a future Autoconf release.
2657# They can cause serious problems if a builder's source tree is in a directory
2658# whose full name contains unusual characters.
2659ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2660ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2661ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2662
2663
2664# Find a good install program. We prefer a C program (faster),
2665# so one script is as good as another. But avoid the broken or
2666# incompatible versions:
2667# SysV /etc/install, /usr/sbin/install
2668# SunOS /usr/etc/install
2669# IRIX /sbin/install
2670# AIX /bin/install
2671# AmigaOS /C/install, which installs bootblocks on floppy discs
2672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2675# OS/2's system install, which has a completely different semantic
2676# ./install, which can be erroneously created by make from ./install.sh.
2677# Reject install programs that cannot install multiple files.
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2679$as_echo_n "checking for a BSD-compatible install... " >&6; }
2680if test -z "$INSTALL"; then
2681if ${ac_cv_path_install+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 # Account for people who put trailing slashes in PATH elements.
2690case $as_dir/ in #((
2691 ./ | .// | /[cC]/* | \
2692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2694 /usr/ucb/* ) ;;
2695 *)
2696 # OSF1 and SCO ODT 3.0 have their own names for install.
2697 # Don't use installbsd from OSF since it installs stuff as root
2698 # by default.
2699 for ac_prog in ginstall scoinst install; do
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2702 if test $ac_prog = install &&
2703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704 # AIX install. It has an incompatible calling convention.
2705 :
2706 elif test $ac_prog = install &&
2707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # program-specific install script used by HP pwplus--don't use.
2709 :
2710 else
2711 rm -rf conftest.one conftest.two conftest.dir
2712 echo one > conftest.one
2713 echo two > conftest.two
2714 mkdir conftest.dir
2715 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2716 test -s conftest.one && test -s conftest.two &&
2717 test -s conftest.dir/conftest.one &&
2718 test -s conftest.dir/conftest.two
2719 then
2720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2721 break 3
2722 fi
2723 fi
2724 fi
2725 done
2726 done
2727 ;;
2728esac
2729
2730 done
2731IFS=$as_save_IFS
2732
2733rm -rf conftest.one conftest.two conftest.dir
2734
2735fi
2736 if test "${ac_cv_path_install+set}" = set; then
2737 INSTALL=$ac_cv_path_install
2738 else
2739 # As a last resort, use the slow shell script. Don't cache a
2740 # value for INSTALL within a source directory, because that will
2741 # break other packages using the cache if that directory is
2742 # removed, or if the value is a relative name.
2743 INSTALL=$ac_install_sh
2744 fi
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2747$as_echo "$INSTALL" >&6; }
2748
2749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2750# It thinks the first close brace ends the variable substitution.
2751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2752
2753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2754
2755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2756
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2758$as_echo_n "checking whether build environment is sane... " >&6; }
2759# Reject unsafe characters in $srcdir or the absolute working directory
2760# name. Accept space and tab only in the latter.
2761am_lf='
2762'
2763case `pwd` in
2764 *[\\\"\#\$\&\'\`$am_lf]*)
2765 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2766esac
2767case $srcdir in
2768 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2769 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2770esac
2771
2772# Do 'set' in a subshell so we don't clobber the current shell's
2773# arguments. Must try -L first in case configure is actually a
2774# symlink; some systems play weird games with the mod time of symlinks
2775# (eg FreeBSD returns the mod time of the symlink's containing
2776# directory).
2777if (
2778 am_has_slept=no
2779 for am_try in 1 2; do
2780 echo "timestamp, slept: $am_has_slept" > conftest.file
2781 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2782 if test "$*" = "X"; then
2783 # -L didn't work.
2784 set X `ls -t "$srcdir/configure" conftest.file`
2785 fi
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
2788
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
2793 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2794 alias in your environment" "$LINENO" 5
2795 fi
2796 if test "$2" = conftest.file || test $am_try -eq 2; then
2797 break
2798 fi
2799 # Just in case.
2800 sleep 1
2801 am_has_slept=yes
2802 done
2803 test "$2" = conftest.file
2804 )
2805then
2806 # Ok.
2807 :
2808else
2809 as_fn_error $? "newly created file is older than distributed files!
2810Check your system clock" "$LINENO" 5
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2813$as_echo "yes" >&6; }
2814# If we didn't sleep, we still need to ensure time stamps of config.status and
2815# generated files are strictly newer.
2816am_sleep_pid=
2817if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2818 ( sleep 1 ) &
2819 am_sleep_pid=$!
2820fi
2821
2822rm -f conftest.file
2823
2824test "$program_prefix" != NONE &&
2825 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2826# Use a double $ so make ignores it.
2827test "$program_suffix" != NONE &&
2828 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2829# Double any \ or $.
2830# By default was `s,x,x', remove it if useless.
2831ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2832program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2833
2834# expand $ac_aux_dir to an absolute path
2835am_aux_dir=`cd $ac_aux_dir && pwd`
2836
2837if test x"${MISSING+set}" != xset; then
2838 case $am_aux_dir in
2839 *\ * | *\ *)
2840 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2841 *)
2842 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2843 esac
2844fi
2845# Use eval to expand $SHELL
2846if eval "$MISSING --is-lightweight"; then
2847 am_missing_run="$MISSING "
2848else
2849 am_missing_run=
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2851$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2852fi
2853
2854if test x"${install_sh}" != xset; then
2855 case $am_aux_dir in
2856 *\ * | *\ *)
2857 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2858 *)
2859 install_sh="\${SHELL} $am_aux_dir/install-sh"
2860 esac
2861fi
2862
2863# Installed binaries are usually stripped using 'strip' when the user
2864# run "make install-strip". However 'strip' might not be the right
2865# tool to use in cross-compilation environments, therefore Automake
2866# will honor the 'STRIP' environment variable to overrule this program.
2867if test "$cross_compiling" != no; then
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}strip; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_STRIP+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875else
2876 if test -n "$STRIP"; then
2877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890done
2891 done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896STRIP=$ac_cv_prog_STRIP
2897if test -n "$STRIP"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2899$as_echo "$STRIP" >&6; }
2900else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915else
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_STRIP="strip"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930done
2931 done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937if test -n "$ac_ct_STRIP"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2939$as_echo "$ac_ct_STRIP" >&6; }
2940else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945 if test "x$ac_ct_STRIP" = x; then
2946 STRIP=":"
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949yes:)
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952ac_tool_warned=yes ;;
2953esac
2954 STRIP=$ac_ct_STRIP
2955 fi
2956else
2957 STRIP="$ac_cv_prog_STRIP"
2958fi
2959
2960fi
2961INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2962
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2964$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2965if test -z "$MKDIR_P"; then
2966 if ${ac_cv_path_mkdir+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_prog in mkdir gmkdir; do
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2977 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2978 'mkdir (GNU coreutils) '* | \
2979 'mkdir (coreutils) '* | \
2980 'mkdir (fileutils) '4.1*)
2981 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2982 break 3;;
2983 esac
2984 done
2985 done
2986 done
2987IFS=$as_save_IFS
2988
2989fi
2990
2991 test -d ./--version && rmdir ./--version
2992 if test "${ac_cv_path_mkdir+set}" = set; then
2993 MKDIR_P="$ac_cv_path_mkdir -p"
2994 else
2995 # As a last resort, use the slow shell script. Don't cache a
2996 # value for MKDIR_P within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the value is a relative name.
2999 MKDIR_P="$ac_install_sh -d"
3000 fi
3001fi
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3003$as_echo "$MKDIR_P" >&6; }
3004
3005for ac_prog in gawk mawk nawk awk
3006do
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008set dummy $ac_prog; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_AWK+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013else
3014 if test -n "$AWK"; then
3015 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_AWK="$ac_prog"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029 done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034AWK=$ac_cv_prog_AWK
3035if test -n "$AWK"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037$as_echo "$AWK" >&6; }
3038else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044 test -n "$AWK" && break
3045done
3046
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049set x ${MAKE-make}
3050ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053else
3054 cat >conftest.make <<\_ACEOF
3055SHELL = /bin/sh
3056all:
3057 @echo '@@@%%%=$(MAKE)=@@@%%%'
3058_ACEOF
3059# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3060case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061 *@@@%%%=?*=@@@%%%*)
3062 eval ac_cv_prog_make_${ac_make}_set=yes;;
3063 *)
3064 eval ac_cv_prog_make_${ac_make}_set=no;;
3065esac
3066rm -f conftest.make
3067fi
3068if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070$as_echo "yes" >&6; }
3071 SET_MAKE=
3072else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075 SET_MAKE="MAKE=${MAKE-make}"
3076fi
3077
3078rm -rf .tst 2>/dev/null
3079mkdir .tst 2>/dev/null
3080if test -d .tst; then
3081 am__leading_dot=.
3082else
3083 am__leading_dot=_
3084fi
3085rmdir .tst 2>/dev/null
3086
3087# Check whether --enable-silent-rules was given.
3088if test "${enable_silent_rules+set}" = set; then :
3089 enableval=$enable_silent_rules;
3090fi
3091
3092case $enable_silent_rules in # (((
3093 yes) AM_DEFAULT_VERBOSITY=0;;
3094 no) AM_DEFAULT_VERBOSITY=1;;
3095 *) AM_DEFAULT_VERBOSITY=1;;
3096esac
3097am_make=${MAKE-make}
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3099$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3100if ${am_cv_make_support_nested_variables+:} false; then :
3101 $as_echo_n "(cached) " >&6
3102else
3103 if $as_echo 'TRUE=$(BAR$(V))
3104BAR0=false
3105BAR1=true
3106V=1
3107am__doit:
3108 @$(TRUE)
3109.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3110 am_cv_make_support_nested_variables=yes
3111else
3112 am_cv_make_support_nested_variables=no
3113fi
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3116$as_echo "$am_cv_make_support_nested_variables" >&6; }
3117if test $am_cv_make_support_nested_variables = yes; then
3118 AM_V='$(V)'
3119 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3120else
3121 AM_V=$AM_DEFAULT_VERBOSITY
3122 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3123fi
3124AM_BACKSLASH='\'
3125
3126if test "`cd $srcdir && pwd`" != "`pwd`"; then
3127 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3128 # is not polluted with repeated "-I."
3129 am__isrc=' -I$(srcdir)'
3130 # test to see if srcdir already configured
3131 if test -f $srcdir/config.status; then
3132 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3133 fi
3134fi
3135
3136# test whether we have cygpath
3137if test -z "$CYGPATH_W"; then
3138 if (cygpath --version) >/dev/null 2>/dev/null; then
3139 CYGPATH_W='cygpath -w'
3140 else
3141 CYGPATH_W=echo
3142 fi
3143fi
3144
3145
3146# Define the identity of the package.
3147 PACKAGE='ndn-cpp'
Jeff Thompson93a24162013-09-27 13:28:13 -07003148 VERSION='0.2'
Jeff Thompson39128c62013-06-19 14:08:51 -07003149
3150
3151# Some tools Automake needs.
3152
3153ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3154
3155
3156AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3157
3158
3159AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3160
3161
3162AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3163
3164
3165MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3166
3167# For better backward compatibility. To be removed once Automake 1.9.x
3168# dies out for good. For more background, see:
3169# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3170# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3171mkdir_p='$(MKDIR_P)'
3172
3173# We need awk for the "check" target. The system "awk" is bad on
3174# some platforms.
3175# Always define AMTAR for backward compatibility. Yes, it's still used
3176# in the wild :-( We should find a proper way to deprecate it ...
3177AMTAR='$${TAR-tar}'
3178
3179
3180# We'll loop over all known methods to create a tar archive until one works.
3181_am_tools='gnutar pax cpio none'
3182
3183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3184
3185
3186
3187
3188
3189
Jeff Thompsona04f23c2013-09-16 17:48:38 -07003190# POSIX will say in a future version that running "rm -f" with no argument
3191# is OK; and we want to be able to make that assumption in our Makefile
3192# recipes. So use an aggressive probe to check that the usage we want is
3193# actually supported "in the wild" to an acceptable degree.
3194# See automake bug#10828.
3195# To make any issue more visible, cause the running configure to be aborted
3196# by default if the 'rm' program in use doesn't match our expectations; the
3197# user can still override this though.
3198if rm -f && rm -fr && rm -rf; then : OK; else
3199 cat >&2 <<'END'
3200Oops!
3201
3202Your 'rm' program seems unable to run without file operands specified
3203on the command line, even when the '-f' option is present. This is contrary
3204to the behaviour of most rm programs out there, and not conforming with
3205the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3206
3207Please tell bug-automake@gnu.org about your system, including the value
3208of your $PATH and any error possibly output before this message. This
3209can help us improve future automake versions.
3210
3211END
3212 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3213 echo 'Configuration will proceed anyway, since you have set the' >&2
3214 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3215 echo >&2
3216 else
3217 cat >&2 <<'END'
3218Aborting the configuration process, to ensure you take notice of the issue.
3219
3220You can download and install GNU coreutils to get an 'rm' implementation
3221that behaves properly: <http://www.gnu.org/software/coreutils/>.
3222
3223If you want to complete the configuration process using your problematic
3224'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3225to "yes", and re-run configure.
3226
3227END
3228 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3229 fi
3230fi
Jeff Thompson39128c62013-06-19 14:08:51 -07003231
Jeff Thompson93a24162013-09-27 13:28:13 -07003232
Jeff Thompson39128c62013-06-19 14:08:51 -07003233ac_config_headers="$ac_config_headers config.h"
3234
Jeff Thompson47053ad2013-08-05 10:36:53 -07003235
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3237$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3238 # Check whether --enable-maintainer-mode was given.
3239if test "${enable_maintainer_mode+set}" = set; then :
3240 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3241else
3242 USE_MAINTAINER_MODE=no
3243fi
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3246$as_echo "$USE_MAINTAINER_MODE" >&6; }
3247 if test $USE_MAINTAINER_MODE = yes; then
3248 MAINTAINER_MODE_TRUE=
3249 MAINTAINER_MODE_FALSE='#'
3250else
3251 MAINTAINER_MODE_TRUE='#'
3252 MAINTAINER_MODE_FALSE=
3253fi
3254
3255 MAINT=$MAINTAINER_MODE_TRUE
3256
3257
Jeff Thompson39128c62013-06-19 14:08:51 -07003258DEPDIR="${am__leading_dot}deps"
3259
3260ac_config_commands="$ac_config_commands depfiles"
3261
3262
3263am_make=${MAKE-make}
3264cat > confinc << 'END'
3265am__doit:
3266 @echo this is the am__doit target
3267.PHONY: am__doit
3268END
3269# If we don't find an include directive, just comment out the code.
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3271$as_echo_n "checking for style of include used by $am_make... " >&6; }
3272am__include="#"
3273am__quote=
3274_am_result=none
3275# First try GNU make style include.
3276echo "include confinc" > confmf
3277# Ignore all kinds of additional output from 'make'.
3278case `$am_make -s -f confmf 2> /dev/null` in #(
3279*the\ am__doit\ target*)
3280 am__include=include
3281 am__quote=
3282 _am_result=GNU
3283 ;;
3284esac
3285# Now try BSD make style include.
3286if test "$am__include" = "#"; then
3287 echo '.include "confinc"' > confmf
3288 case `$am_make -s -f confmf 2> /dev/null` in #(
3289 *the\ am__doit\ target*)
3290 am__include=.include
3291 am__quote="\""
3292 _am_result=BSD
3293 ;;
3294 esac
3295fi
3296
3297
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3299$as_echo "$_am_result" >&6; }
3300rm -f confinc confmf
3301
3302# Check whether --enable-dependency-tracking was given.
3303if test "${enable_dependency_tracking+set}" = set; then :
3304 enableval=$enable_dependency_tracking;
3305fi
3306
3307if test "x$enable_dependency_tracking" != xno; then
3308 am_depcomp="$ac_aux_dir/depcomp"
3309 AMDEPBACKSLASH='\'
3310 am__nodep='_no'
3311fi
3312 if test "x$enable_dependency_tracking" != xno; then
3313 AMDEP_TRUE=
3314 AMDEP_FALSE='#'
3315else
3316 AMDEP_TRUE='#'
3317 AMDEP_FALSE=
3318fi
3319
3320
Jeff Thompson36174062013-06-21 16:03:44 -07003321ac_ext=c
3322ac_cpp='$CPP $CPPFLAGS'
3323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
3331if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348done
3349 done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354CC=$ac_cv_prog_CC
3355if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357$as_echo "$CC" >&6; }
3358else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361fi
3362
3363
3364fi
3365if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368set dummy gcc; ac_word=$2
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370$as_echo_n "checking for $ac_word... " >&6; }
3371if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373else
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388done
3389 done
3390IFS=$as_save_IFS
3391
3392fi
3393fi
3394ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397$as_echo "$ac_ct_CC" >&6; }
3398else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400$as_echo "no" >&6; }
3401fi
3402
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407yes:)
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410ac_tool_warned=yes ;;
3411esac
3412 CC=$ac_ct_CC
3413 fi
3414else
3415 CC="$ac_cv_prog_CC"
3416fi
3417
3418if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421set dummy ${ac_tool_prefix}cc; ac_word=$2
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423$as_echo_n "checking for $ac_word... " >&6; }
3424if ${ac_cv_prog_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429else
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441done
3442 done
3443IFS=$as_save_IFS
3444
3445fi
3446fi
3447CC=$ac_cv_prog_CC
3448if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450$as_echo "$CC" >&6; }
3451else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453$as_echo "no" >&6; }
3454fi
3455
3456
3457 fi
3458fi
3459if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461set dummy cc; ac_word=$2
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463$as_echo_n "checking for $ac_word... " >&6; }
3464if ${ac_cv_prog_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466else
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469else
3470 ac_prog_rejected=no
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3480 continue
3481 fi
3482 ac_cv_prog_CC="cc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486done
3487 done
3488IFS=$as_save_IFS
3489
3490if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3493 shift
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3498 shift
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3500 fi
3501fi
3502fi
3503fi
3504CC=$ac_cv_prog_CC
3505if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507$as_echo "$CC" >&6; }
3508else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510$as_echo "no" >&6; }
3511fi
3512
3513
3514fi
3515if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3518 do
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522$as_echo_n "checking for $ac_word... " >&6; }
3523if ${ac_cv_prog_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528else
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540done
3541 done
3542IFS=$as_save_IFS
3543
3544fi
3545fi
3546CC=$ac_cv_prog_CC
3547if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549$as_echo "$CC" >&6; }
3550else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552$as_echo "no" >&6; }
3553fi
3554
3555
3556 test -n "$CC" && break
3557 done
3558fi
3559if test -z "$CC"; then
3560 ac_ct_CC=$CC
3561 for ac_prog in cl.exe
3562do
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564set dummy $ac_prog; ac_word=$2
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566$as_echo_n "checking for $ac_word... " >&6; }
3567if ${ac_cv_prog_ac_ct_CC+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569else
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572else
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3583 fi
3584done
3585 done
3586IFS=$as_save_IFS
3587
3588fi
3589fi
3590ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593$as_echo "$ac_ct_CC" >&6; }
3594else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596$as_echo "no" >&6; }
3597fi
3598
3599
3600 test -n "$ac_ct_CC" && break
3601done
3602
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607yes:)
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610ac_tool_warned=yes ;;
3611esac
3612 CC=$ac_ct_CC
3613 fi
3614fi
3615
3616fi
3617
3618
3619test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621as_fn_error $? "no acceptable C compiler found in \$PATH
3622See \`config.log' for more details" "$LINENO" 5; }
3623
3624# Provide some information about the compiler.
3625$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626set X $ac_compile
3627ac_compiler=$2
3628for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3630case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633esac
3634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635$as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637 ac_status=$?
3638 if test -s conftest.err; then
3639 sed '10a\
3640... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3643 fi
3644 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647done
3648
Jeff Thompson4f031642013-08-05 11:03:16 -07003649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h. */
3651
3652int
3653main ()
3654{
3655
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660ac_clean_files_save=$ac_clean_files
3661ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3662# Try to create an executable without -o first, disregard a.out.
3663# It will help us diagnose broken compilers, and finding out an intuition
3664# of exeext.
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3666$as_echo_n "checking whether the C compiler works... " >&6; }
3667ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3668
3669# The possible output files:
3670ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3671
3672ac_rmfiles=
3673for ac_file in $ac_files
3674do
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678 esac
3679done
3680rm -f $ac_rmfiles
3681
3682if { { ac_try="$ac_link_default"
3683case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688$as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link_default") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695# in a Makefile. We should not override ac_cv_exeext if it was cached,
3696# so that the user can short-circuit this test for compilers unknown to
3697# Autoconf.
3698for ac_file in $ac_files ''
3699do
3700 test -f "$ac_file" || continue
3701 case $ac_file in
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3703 ;;
3704 [ab].out )
3705 # We found the default executable, but exeext='' is most
3706 # certainly right.
3707 break;;
3708 *.* )
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710 then :; else
3711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 fi
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3717 # actually working.
3718 break;;
3719 * )
3720 break;;
3721 esac
3722done
3723test "$ac_cv_exeext" = no && ac_cv_exeext=
3724
3725else
3726 ac_file=''
3727fi
3728if test -z "$ac_file"; then :
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730$as_echo "no" >&6; }
3731$as_echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736as_fn_error 77 "C compiler cannot create executables
3737See \`config.log' for more details" "$LINENO" 5; }
3738else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740$as_echo "yes" >&6; }
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3743$as_echo_n "checking for C compiler default output file name... " >&6; }
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3745$as_echo "$ac_file" >&6; }
3746ac_exeext=$ac_cv_exeext
3747
3748rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3749ac_clean_files=$ac_clean_files_save
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3751$as_echo_n "checking for suffix of executables... " >&6; }
3752if { { ac_try="$ac_link"
3753case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758$as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_link") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; then :
3763 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3764# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3765# work properly (i.e., refer to `conftest.exe'), while it won't with
3766# `rm'.
3767for ac_file in conftest.exe conftest conftest.*; do
3768 test -f "$ac_file" || continue
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772 break;;
3773 * ) break;;
3774 esac
3775done
3776else
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3780See \`config.log' for more details" "$LINENO" 5; }
3781fi
3782rm -f conftest conftest$ac_cv_exeext
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3784$as_echo "$ac_cv_exeext" >&6; }
3785
3786rm -f conftest.$ac_ext
3787EXEEXT=$ac_cv_exeext
3788ac_exeext=$EXEEXT
3789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h. */
3791#include <stdio.h>
3792int
3793main ()
3794{
3795FILE *f = fopen ("conftest.out", "w");
3796 return ferror (f) || fclose (f) != 0;
3797
3798 ;
3799 return 0;
3800}
3801_ACEOF
3802ac_clean_files="$ac_clean_files conftest.out"
3803# Check that the compiler produces executables we can run. If not, either
3804# the compiler is broken, or we cross compile.
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3806$as_echo_n "checking whether we are cross compiling... " >&6; }
3807if test "$cross_compiling" != yes; then
3808 { { ac_try="$ac_link"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814$as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_link") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3819 if { ac_try='./conftest$ac_cv_exeext'
3820 { { case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823esac
3824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825$as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_try") 2>&5
3827 ac_status=$?
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; }; then
3830 cross_compiling=no
3831 else
3832 if test "$cross_compiling" = maybe; then
3833 cross_compiling=yes
3834 else
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837as_fn_error $? "cannot run C compiled programs.
3838If you meant to cross compile, use \`--host'.
3839See \`config.log' for more details" "$LINENO" 5; }
3840 fi
3841 fi
3842fi
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3844$as_echo "$cross_compiling" >&6; }
3845
3846rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3847ac_clean_files=$ac_clean_files_save
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3849$as_echo_n "checking for suffix of object files... " >&6; }
3850if ${ac_cv_objext+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852else
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h. */
3855
3856int
3857main ()
3858{
3859
3860 ;
3861 return 0;
3862}
3863_ACEOF
3864rm -f conftest.o conftest.obj
3865if { { ac_try="$ac_compile"
3866case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869esac
3870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871$as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_compile") 2>&5
3873 ac_status=$?
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
3876 for ac_file in conftest.o conftest.obj conftest.*; do
3877 test -f "$ac_file" || continue;
3878 case $ac_file in
3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3881 break;;
3882 esac
3883done
3884else
3885 $as_echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890as_fn_error $? "cannot compute suffix of object files: cannot compile
3891See \`config.log' for more details" "$LINENO" 5; }
3892fi
3893rm -f conftest.$ac_cv_objext conftest.$ac_ext
3894fi
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3896$as_echo "$ac_cv_objext" >&6; }
3897OBJEXT=$ac_cv_objext
3898ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3900$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3901if ${ac_cv_c_compiler_gnu+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h. */
3906
3907int
3908main ()
3909{
3910#ifndef __GNUC__
3911 choke me
3912#endif
3913
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_compiler_gnu=yes
3920else
3921 ac_compiler_gnu=no
3922fi
3923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924ac_cv_c_compiler_gnu=$ac_compiler_gnu
3925
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3928$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3929if test $ac_compiler_gnu = yes; then
3930 GCC=yes
3931else
3932 GCC=
3933fi
3934ac_test_CFLAGS=${CFLAGS+set}
3935ac_save_CFLAGS=$CFLAGS
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3937$as_echo_n "checking whether $CC accepts -g... " >&6; }
3938if ${ac_cv_prog_cc_g+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940else
3941 ac_save_c_werror_flag=$ac_c_werror_flag
3942 ac_c_werror_flag=yes
3943 ac_cv_prog_cc_g=no
3944 CFLAGS="-g"
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946/* end confdefs.h. */
3947
3948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_cv_prog_cc_g=yes
3958else
3959 CFLAGS=""
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961/* end confdefs.h. */
3962
3963int
3964main ()
3965{
3966
3967 ;
3968 return 0;
3969}
3970_ACEOF
3971if ac_fn_c_try_compile "$LINENO"; then :
3972
3973else
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3975 CFLAGS="-g"
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h. */
3978
3979int
3980main ()
3981{
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_g=yes
3989fi
3990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991fi
3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993fi
3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_c_werror_flag=$ac_save_c_werror_flag
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3998$as_echo "$ac_cv_prog_cc_g" >&6; }
3999if test "$ac_test_CFLAGS" = set; then
4000 CFLAGS=$ac_save_CFLAGS
4001elif test $ac_cv_prog_cc_g = yes; then
4002 if test "$GCC" = yes; then
4003 CFLAGS="-g -O2"
4004 else
4005 CFLAGS="-g"
4006 fi
4007else
4008 if test "$GCC" = yes; then
4009 CFLAGS="-O2"
4010 else
4011 CFLAGS=
4012 fi
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4015$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4016if ${ac_cv_prog_cc_c89+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018else
4019 ac_cv_prog_cc_c89=no
4020ac_save_CC=$CC
4021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h. */
4023#include <stdarg.h>
4024#include <stdio.h>
4025struct stat;
4026/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4027struct buf { int x; };
4028FILE * (*rcsopen) (struct buf *, struct stat *, int);
4029static char *e (p, i)
4030 char **p;
4031 int i;
4032{
4033 return p[i];
4034}
4035static char *f (char * (*g) (char **, int), char **p, ...)
4036{
4037 char *s;
4038 va_list v;
4039 va_start (v,p);
4040 s = g (p, va_arg (v,int));
4041 va_end (v);
4042 return s;
4043}
4044
4045/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4046 function prototypes and stuff, but not '\xHH' hex character constants.
4047 These don't provoke an error unfortunately, instead are silently treated
4048 as 'x'. The following induces an error, until -std is added to get
4049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4050 array size at least. It's necessary to write '\x00'==0 to get something
4051 that's true only with -std. */
4052int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4053
4054/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4055 inside strings and character constants. */
4056#define FOO(x) 'x'
4057int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4058
4059int test (int i, double x);
4060struct s1 {int (*f) (int a);};
4061struct s2 {int (*f) (double a);};
4062int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4063int argc;
4064char **argv;
4065int
4066main ()
4067{
4068return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4069 ;
4070 return 0;
4071}
4072_ACEOF
4073for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4074 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4075do
4076 CC="$ac_save_CC $ac_arg"
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_prog_cc_c89=$ac_arg
4079fi
4080rm -f core conftest.err conftest.$ac_objext
4081 test "x$ac_cv_prog_cc_c89" != "xno" && break
4082done
4083rm -f conftest.$ac_ext
4084CC=$ac_save_CC
4085
4086fi
4087# AC_CACHE_VAL
4088case "x$ac_cv_prog_cc_c89" in
4089 x)
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091$as_echo "none needed" >&6; } ;;
4092 xno)
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4094$as_echo "unsupported" >&6; } ;;
4095 *)
4096 CC="$CC $ac_cv_prog_cc_c89"
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4098$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099esac
4100if test "x$ac_cv_prog_cc_c89" != xno; then :
4101
4102fi
4103
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004109
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004110ac_ext=c
4111ac_cpp='$CPP $CPPFLAGS'
4112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4116$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4117if ${am_cv_prog_cc_c_o+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119else
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h. */
4122
4123int
4124main ()
4125{
4126
4127 ;
4128 return 0;
4129}
4130_ACEOF
4131 # Make sure it works both with $CC and with simple cc.
4132 # Following AC_PROG_CC_C_O, we do the test twice because some
4133 # compilers refuse to overwrite an existing .o file with -o,
4134 # though they will create one.
4135 am_cv_prog_cc_c_o=yes
4136 for am_i in 1 2; do
4137 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4138 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } \
4142 && test -f conftest2.$ac_objext; then
4143 : OK
4144 else
4145 am_cv_prog_cc_c_o=no
4146 break
4147 fi
4148 done
4149 rm -f core conftest*
4150 unset am_i
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4153$as_echo "$am_cv_prog_cc_c_o" >&6; }
4154if test "$am_cv_prog_cc_c_o" != yes; then
4155 # Losing compiler, so override with the script.
4156 # FIXME: It is wrong to rewrite CC.
4157 # But if we don't then we get into trouble of one sort or another.
4158 # A longer-term fix would be to have automake use am__CC in this case,
4159 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4160 CC="$am_aux_dir/compile $CC"
4161fi
4162ac_ext=c
4163ac_cpp='$CPP $CPPFLAGS'
4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167
4168
Jeff Thompson36174062013-06-21 16:03:44 -07004169depcc="$CC" am_compiler_list=
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4172$as_echo_n "checking dependency style of $depcc... " >&6; }
4173if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175else
4176 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4177 # We make a subdir and do the tests there. Otherwise we can end up
4178 # making bogus files that we don't know about and never remove. For
4179 # instance it was reported that on HP-UX the gcc test will end up
4180 # making a dummy file named 'D' -- because '-MD' means "put the output
4181 # in D".
4182 rm -rf conftest.dir
4183 mkdir conftest.dir
4184 # Copy depcomp to subdir because otherwise we won't find it if we're
4185 # using a relative directory.
4186 cp "$am_depcomp" conftest.dir
4187 cd conftest.dir
4188 # We will build objects and dependencies in a subdirectory because
4189 # it helps to detect inapplicable dependency modes. For instance
4190 # both Tru64's cc and ICC support -MD to output dependencies as a
4191 # side effect of compilation, but ICC will put the dependencies in
4192 # the current directory while Tru64 will put them in the object
4193 # directory.
4194 mkdir sub
4195
4196 am_cv_CC_dependencies_compiler_type=none
4197 if test "$am_compiler_list" = ""; then
4198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4199 fi
4200 am__universal=false
4201 case " $depcc " in #(
4202 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4203 esac
4204
4205 for depmode in $am_compiler_list; do
4206 # Setup a source with many dependencies, because some compilers
4207 # like to wrap large dependency lists on column 80 (with \), and
4208 # we should not choose a depcomp mode which is confused by this.
4209 #
4210 # We need to recreate these files for each test, as the compiler may
4211 # overwrite some of them when testing with obscure command lines.
4212 # This happens at least with the AIX C compiler.
4213 : > sub/conftest.c
4214 for i in 1 2 3 4 5 6; do
4215 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4216 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4217 # Solaris 10 /bin/sh.
4218 echo '/* dummy */' > sub/conftst$i.h
4219 done
4220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4221
4222 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4223 # mode. It turns out that the SunPro C++ compiler does not properly
4224 # handle '-M -o', and we need to detect this. Also, some Intel
4225 # versions had trouble with output in subdirs.
4226 am__obj=sub/conftest.${OBJEXT-o}
4227 am__minus_obj="-o $am__obj"
4228 case $depmode in
4229 gcc)
4230 # This depmode causes a compiler race in universal mode.
4231 test "$am__universal" = false || continue
4232 ;;
4233 nosideeffect)
4234 # After this tag, mechanisms are not by side-effect, so they'll
4235 # only be used when explicitly requested.
4236 if test "x$enable_dependency_tracking" = xyes; then
4237 continue
4238 else
4239 break
4240 fi
4241 ;;
4242 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4243 # This compiler won't grok '-c -o', but also, the minuso test has
4244 # not run yet. These depmodes are late enough in the game, and
4245 # so weak that their functioning should not be impacted.
4246 am__obj=conftest.${OBJEXT-o}
4247 am__minus_obj=
4248 ;;
4249 none) break ;;
4250 esac
4251 if depmode=$depmode \
4252 source=sub/conftest.c object=$am__obj \
4253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4254 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4255 >/dev/null 2>conftest.err &&
4256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4260 # icc doesn't choke on unknown options, it will just issue warnings
4261 # or remarks (even with -Werror). So we grep stderr for any message
4262 # that says an option was ignored or not supported.
4263 # When given -MP, icc 7.0 and 7.1 complain thusly:
4264 # icc: Command line warning: ignoring option '-M'; no argument required
4265 # The diagnosis changed in icc 8.0:
4266 # icc: Command line remark: option '-MP' not supported
4267 if (grep 'ignoring option' conftest.err ||
4268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4269 am_cv_CC_dependencies_compiler_type=$depmode
4270 break
4271 fi
4272 fi
4273 done
4274
4275 cd ..
4276 rm -rf conftest.dir
4277else
4278 am_cv_CC_dependencies_compiler_type=none
4279fi
4280
4281fi
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4283$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4284CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4285
4286 if
4287 test "x$enable_dependency_tracking" != xno \
4288 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4289 am__fastdepCC_TRUE=
4290 am__fastdepCC_FALSE='#'
4291else
4292 am__fastdepCC_TRUE='#'
4293 am__fastdepCC_FALSE=
4294fi
4295
4296
Jeff Thompson36174062013-06-21 16:03:44 -07004297
4298if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004299 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004300 do
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304$as_echo_n "checking for $ac_word... " >&6; }
4305if ${ac_cv_prog_AR+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307else
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR="$AR" # Let the user override the test.
4310else
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322done
4323 done
4324IFS=$as_save_IFS
4325
4326fi
4327fi
4328AR=$ac_cv_prog_AR
4329if test -n "$AR"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4331$as_echo "$AR" >&6; }
4332else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334$as_echo "no" >&6; }
4335fi
4336
4337
4338 test -n "$AR" && break
4339 done
4340fi
4341if test -z "$AR"; then
4342 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004343 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004344do
4345 # Extract the first word of "$ac_prog", so it can be a program name with args.
4346set dummy $ac_prog; ac_word=$2
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348$as_echo_n "checking for $ac_word... " >&6; }
4349if ${ac_cv_prog_ac_ct_AR+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351else
4352 if test -n "$ac_ct_AR"; then
4353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_ac_ct_AR="$ac_prog"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366done
4367 done
4368IFS=$as_save_IFS
4369
4370fi
4371fi
4372ac_ct_AR=$ac_cv_prog_ac_ct_AR
4373if test -n "$ac_ct_AR"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4375$as_echo "$ac_ct_AR" >&6; }
4376else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378$as_echo "no" >&6; }
4379fi
4380
4381
4382 test -n "$ac_ct_AR" && break
4383done
4384
4385 if test "x$ac_ct_AR" = x; then
4386 AR="false"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389yes:)
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392ac_tool_warned=yes ;;
4393esac
4394 AR=$ac_ct_AR
4395 fi
4396fi
4397
4398: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07004399
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4401$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4402if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07004403 $as_echo_n "(cached) " >&6
4404else
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004405 ac_ext=c
4406ac_cpp='$CPP $CPPFLAGS'
4407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410
4411 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07004412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004414int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004415_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004416if ac_fn_c_try_compile "$LINENO"; then :
4417 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4419 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004420 ac_status=$?
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4423 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004424 am_cv_ar_interface=ar
4425 else
4426 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4428 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004429 ac_status=$?
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004432 if test "$ac_status" -eq 0; then
4433 am_cv_ar_interface=lib
4434 else
4435 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004436 fi
4437 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004438 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004439
4440fi
4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004442 ac_ext=c
4443ac_cpp='$CPP $CPPFLAGS'
4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004447
4448fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4450$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004451
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004452case $am_cv_ar_interface in
4453ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004454 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004455lib)
4456 # Microsoft lib, so override with the ar-lib wrapper script.
4457 # FIXME: It is wrong to rewrite AR.
4458 # But if we don't then we get into trouble of one sort or another.
4459 # A longer-term fix would be to have automake use am__AR in this case,
4460 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4461 # similar.
4462 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004463 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004464unknown)
4465 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004466 ;;
4467esac
4468
Jeff Thompson4f031642013-08-05 11:03:16 -07004469case `pwd` in
4470 *\ * | *\ *)
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4472$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4473esac
4474
4475
4476
4477macro_version='2.4.2'
4478macro_revision='1.3337'
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492ltmain="$ac_aux_dir/ltmain.sh"
4493
4494# Make sure we can run config.sub.
4495$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4496 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4499$as_echo_n "checking build system type... " >&6; }
4500if ${ac_cv_build+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502else
4503 ac_build_alias=$build_alias
4504test "x$ac_build_alias" = x &&
4505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4506test "x$ac_build_alias" = x &&
4507 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4508ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4510
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4513$as_echo "$ac_cv_build" >&6; }
4514case $ac_cv_build in
4515*-*-*) ;;
4516*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4517esac
4518build=$ac_cv_build
4519ac_save_IFS=$IFS; IFS='-'
4520set x $ac_cv_build
4521shift
4522build_cpu=$1
4523build_vendor=$2
4524shift; shift
4525# Remember, the first character of IFS is used to create $*,
4526# except with old shells:
4527build_os=$*
4528IFS=$ac_save_IFS
4529case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4530
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4533$as_echo_n "checking host system type... " >&6; }
4534if ${ac_cv_host+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536else
4537 if test "x$host_alias" = x; then
4538 ac_cv_host=$ac_cv_build
4539else
4540 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4542fi
4543
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4546$as_echo "$ac_cv_host" >&6; }
4547case $ac_cv_host in
4548*-*-*) ;;
4549*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4550esac
4551host=$ac_cv_host
4552ac_save_IFS=$IFS; IFS='-'
4553set x $ac_cv_host
4554shift
4555host_cpu=$1
4556host_vendor=$2
4557shift; shift
4558# Remember, the first character of IFS is used to create $*,
4559# except with old shells:
4560host_os=$*
4561IFS=$ac_save_IFS
4562case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4563
4564
4565# Backslashify metacharacters that are still active within
4566# double-quoted strings.
4567sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4568
4569# Same as above, but do not quote variable references.
4570double_quote_subst='s/\(["`\\]\)/\\\1/g'
4571
4572# Sed substitution to delay expansion of an escaped shell variable in a
4573# double_quote_subst'ed string.
4574delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4575
4576# Sed substitution to delay expansion of an escaped single quote.
4577delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4578
4579# Sed substitution to avoid accidental globbing in evaled expressions
4580no_glob_subst='s/\*/\\\*/g'
4581
4582ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4583ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4584ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4587$as_echo_n "checking how to print strings... " >&6; }
4588# Test print first, because it will be a builtin if present.
4589if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4590 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4591 ECHO='print -r --'
4592elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4593 ECHO='printf %s\n'
4594else
4595 # Use this function as a fallback that always works.
4596 func_fallback_echo ()
4597 {
4598 eval 'cat <<_LTECHO_EOF
4599$1
4600_LTECHO_EOF'
4601 }
4602 ECHO='func_fallback_echo'
4603fi
4604
4605# func_echo_all arg...
4606# Invoke $ECHO with all args, space-separated.
4607func_echo_all ()
4608{
4609 $ECHO ""
4610}
4611
4612case "$ECHO" in
4613 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4614$as_echo "printf" >&6; } ;;
4615 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4616$as_echo "print -r" >&6; } ;;
4617 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4618$as_echo "cat" >&6; } ;;
4619esac
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4635$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4636if ${ac_cv_path_SED+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638else
4639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4640 for ac_i in 1 2 3 4 5 6 7; do
4641 ac_script="$ac_script$as_nl$ac_script"
4642 done
4643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4644 { ac_script=; unset ac_script;}
4645 if test -z "$SED"; then
4646 ac_path_SED_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in sed gsed; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4656 as_fn_executable_p "$ac_path_SED" || continue
4657# Check for GNU ac_path_SED and select it if it is found.
4658 # Check for GNU $ac_path_SED
4659case `"$ac_path_SED" --version 2>&1` in
4660*GNU*)
4661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4662*)
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4666 do
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo '' >> "conftest.nl"
4671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_SED_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_SED="$ac_path_SED"
4677 ac_path_SED_max=$ac_count
4678 fi
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683esac
4684
4685 $ac_path_SED_found && break 3
4686 done
4687 done
4688 done
4689IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_SED"; then
4691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4692 fi
4693else
4694 ac_cv_path_SED=$SED
4695fi
4696
4697fi
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4699$as_echo "$ac_cv_path_SED" >&6; }
4700 SED="$ac_cv_path_SED"
4701 rm -f conftest.sed
4702
4703test -z "$SED" && SED=sed
4704Xsed="$SED -e 1s/^X//"
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4717$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4718if ${ac_cv_path_GREP+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720else
4721 if test -z "$GREP"; then
4722 ac_path_GREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in grep ggrep; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4732 as_fn_executable_p "$ac_path_GREP" || continue
4733# Check for GNU ac_path_GREP and select it if it is found.
4734 # Check for GNU $ac_path_GREP
4735case `"$ac_path_GREP" --version 2>&1` in
4736*GNU*)
4737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4738*)
4739 ac_count=0
4740 $as_echo_n 0123456789 >"conftest.in"
4741 while :
4742 do
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'GREP' >> "conftest.nl"
4747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 as_fn_arith $ac_count + 1 && ac_count=$as_val
4750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_GREP="$ac_path_GREP"
4753 ac_path_GREP_max=$ac_count
4754 fi
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4757 done
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759esac
4760
4761 $ac_path_GREP_found && break 3
4762 done
4763 done
4764 done
4765IFS=$as_save_IFS
4766 if test -z "$ac_cv_path_GREP"; then
4767 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 fi
4769else
4770 ac_cv_path_GREP=$GREP
4771fi
4772
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4775$as_echo "$ac_cv_path_GREP" >&6; }
4776 GREP="$ac_cv_path_GREP"
4777
4778
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4780$as_echo_n "checking for egrep... " >&6; }
4781if ${ac_cv_path_EGREP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783else
4784 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4785 then ac_cv_path_EGREP="$GREP -E"
4786 else
4787 if test -z "$EGREP"; then
4788 ac_path_EGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in egrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 as_fn_executable_p "$ac_path_EGREP" || continue
4799# Check for GNU ac_path_EGREP and select it if it is found.
4800 # Check for GNU $ac_path_EGREP
4801case `"$ac_path_EGREP" --version 2>&1` in
4802*GNU*)
4803 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4804*)
4805 ac_count=0
4806 $as_echo_n 0123456789 >"conftest.in"
4807 while :
4808 do
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'EGREP' >> "conftest.nl"
4813 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_EGREP="$ac_path_EGREP"
4819 ac_path_EGREP_max=$ac_count
4820 fi
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4823 done
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825esac
4826
4827 $ac_path_EGREP_found && break 3
4828 done
4829 done
4830 done
4831IFS=$as_save_IFS
4832 if test -z "$ac_cv_path_EGREP"; then
4833 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834 fi
4835else
4836 ac_cv_path_EGREP=$EGREP
4837fi
4838
4839 fi
4840fi
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4842$as_echo "$ac_cv_path_EGREP" >&6; }
4843 EGREP="$ac_cv_path_EGREP"
4844
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4847$as_echo_n "checking for fgrep... " >&6; }
4848if ${ac_cv_path_FGREP+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4852 then ac_cv_path_FGREP="$GREP -F"
4853 else
4854 if test -z "$FGREP"; then
4855 ac_path_FGREP_found=false
4856 # Loop through the user's path and test for each of PROGNAME-LIST
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_prog in fgrep; do
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4865 as_fn_executable_p "$ac_path_FGREP" || continue
4866# Check for GNU ac_path_FGREP and select it if it is found.
4867 # Check for GNU $ac_path_FGREP
4868case `"$ac_path_FGREP" --version 2>&1` in
4869*GNU*)
4870 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4871*)
4872 ac_count=0
4873 $as_echo_n 0123456789 >"conftest.in"
4874 while :
4875 do
4876 cat "conftest.in" "conftest.in" >"conftest.tmp"
4877 mv "conftest.tmp" "conftest.in"
4878 cp "conftest.in" "conftest.nl"
4879 $as_echo 'FGREP' >> "conftest.nl"
4880 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4882 as_fn_arith $ac_count + 1 && ac_count=$as_val
4883 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4884 # Best one so far, save it but keep looking for a better one
4885 ac_cv_path_FGREP="$ac_path_FGREP"
4886 ac_path_FGREP_max=$ac_count
4887 fi
4888 # 10*(2^10) chars as input seems more than enough
4889 test $ac_count -gt 10 && break
4890 done
4891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892esac
4893
4894 $ac_path_FGREP_found && break 3
4895 done
4896 done
4897 done
4898IFS=$as_save_IFS
4899 if test -z "$ac_cv_path_FGREP"; then
4900 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901 fi
4902else
4903 ac_cv_path_FGREP=$FGREP
4904fi
4905
4906 fi
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4909$as_echo "$ac_cv_path_FGREP" >&6; }
4910 FGREP="$ac_cv_path_FGREP"
4911
4912
4913test -z "$GREP" && GREP=grep
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933# Check whether --with-gnu-ld was given.
4934if test "${with_gnu_ld+set}" = set; then :
4935 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4936else
4937 with_gnu_ld=no
4938fi
4939
4940ac_prog=ld
4941if test "$GCC" = yes; then
4942 # Check if gcc -print-prog-name=ld gives a path.
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4944$as_echo_n "checking for ld used by $CC... " >&6; }
4945 case $host in
4946 *-*-mingw*)
4947 # gcc leaves a trailing carriage return which upsets mingw
4948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4949 *)
4950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4951 esac
4952 case $ac_prog in
4953 # Accept absolute paths.
4954 [\\/]* | ?:[\\/]*)
4955 re_direlt='/[^/][^/]*/\.\./'
4956 # Canonicalize the pathname of ld
4957 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4958 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4959 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4960 done
4961 test -z "$LD" && LD="$ac_prog"
4962 ;;
4963 "")
4964 # If it fails, then pretend we aren't using GCC.
4965 ac_prog=ld
4966 ;;
4967 *)
4968 # If it is relative, then search for the first ld in PATH.
4969 with_gnu_ld=unknown
4970 ;;
4971 esac
4972elif test "$with_gnu_ld" = yes; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4974$as_echo_n "checking for GNU ld... " >&6; }
4975else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4977$as_echo_n "checking for non-GNU ld... " >&6; }
4978fi
4979if ${lt_cv_path_LD+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981else
4982 if test -z "$LD"; then
4983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4984 for ac_dir in $PATH; do
4985 IFS="$lt_save_ifs"
4986 test -z "$ac_dir" && ac_dir=.
4987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4988 lt_cv_path_LD="$ac_dir/$ac_prog"
4989 # Check to see if the program is GNU ld. I'd rather use --version,
4990 # but apparently some variants of GNU ld only accept -v.
4991 # Break only if it was the GNU/non-GNU ld that we prefer.
4992 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4993 *GNU* | *'with BFD'*)
4994 test "$with_gnu_ld" != no && break
4995 ;;
4996 *)
4997 test "$with_gnu_ld" != yes && break
4998 ;;
4999 esac
5000 fi
5001 done
5002 IFS="$lt_save_ifs"
5003else
5004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5005fi
5006fi
5007
5008LD="$lt_cv_path_LD"
5009if test -n "$LD"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5011$as_echo "$LD" >&6; }
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5018$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5019if ${lt_cv_prog_gnu_ld+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021else
5022 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5023case `$LD -v 2>&1 </dev/null` in
5024*GNU* | *'with BFD'*)
5025 lt_cv_prog_gnu_ld=yes
5026 ;;
5027*)
5028 lt_cv_prog_gnu_ld=no
5029 ;;
5030esac
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5033$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5034with_gnu_ld=$lt_cv_prog_gnu_ld
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5045$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5046if ${lt_cv_path_NM+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048else
5049 if test -n "$NM"; then
5050 # Let the user override the test.
5051 lt_cv_path_NM="$NM"
5052else
5053 lt_nm_to_check="${ac_tool_prefix}nm"
5054 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5055 lt_nm_to_check="$lt_nm_to_check nm"
5056 fi
5057 for lt_tmp_nm in $lt_nm_to_check; do
5058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5059 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5060 IFS="$lt_save_ifs"
5061 test -z "$ac_dir" && ac_dir=.
5062 tmp_nm="$ac_dir/$lt_tmp_nm"
5063 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5064 # Check to see if the nm accepts a BSD-compat flag.
5065 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5066 # nm: unknown option "B" ignored
5067 # Tru64's nm complains that /dev/null is an invalid object file
5068 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5069 */dev/null* | *'Invalid file or object type'*)
5070 lt_cv_path_NM="$tmp_nm -B"
5071 break
5072 ;;
5073 *)
5074 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5075 */dev/null*)
5076 lt_cv_path_NM="$tmp_nm -p"
5077 break
5078 ;;
5079 *)
5080 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5081 continue # so that we can try to find one that supports BSD flags
5082 ;;
5083 esac
5084 ;;
5085 esac
5086 fi
5087 done
5088 IFS="$lt_save_ifs"
5089 done
5090 : ${lt_cv_path_NM=no}
5091fi
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5094$as_echo "$lt_cv_path_NM" >&6; }
5095if test "$lt_cv_path_NM" != "no"; then
5096 NM="$lt_cv_path_NM"
5097else
5098 # Didn't find any BSD compatible name lister, look for dumpbin.
5099 if test -n "$DUMPBIN"; then :
5100 # Let the user override the test.
5101 else
5102 if test -n "$ac_tool_prefix"; then
5103 for ac_prog in dumpbin "link -dump"
5104 do
5105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if ${ac_cv_prog_DUMPBIN+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 if test -n "$DUMPBIN"; then
5113 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127 done
5128IFS=$as_save_IFS
5129
5130fi
5131fi
5132DUMPBIN=$ac_cv_prog_DUMPBIN
5133if test -n "$DUMPBIN"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5135$as_echo "$DUMPBIN" >&6; }
5136else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141
5142 test -n "$DUMPBIN" && break
5143 done
5144fi
5145if test -z "$DUMPBIN"; then
5146 ac_ct_DUMPBIN=$DUMPBIN
5147 for ac_prog in dumpbin "link -dump"
5148do
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150set dummy $ac_prog; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 if test -n "$ac_ct_DUMPBIN"; then
5157 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170done
5171 done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5177if test -n "$ac_ct_DUMPBIN"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5179$as_echo "$ac_ct_DUMPBIN" >&6; }
5180else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186 test -n "$ac_ct_DUMPBIN" && break
5187done
5188
5189 if test "x$ac_ct_DUMPBIN" = x; then
5190 DUMPBIN=":"
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193yes:)
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196ac_tool_warned=yes ;;
5197esac
5198 DUMPBIN=$ac_ct_DUMPBIN
5199 fi
5200fi
5201
5202 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5203 *COFF*)
5204 DUMPBIN="$DUMPBIN -symbols"
5205 ;;
5206 *)
5207 DUMPBIN=:
5208 ;;
5209 esac
5210 fi
5211
5212 if test "$DUMPBIN" != ":"; then
5213 NM="$DUMPBIN"
5214 fi
5215fi
5216test -z "$NM" && NM=nm
5217
5218
5219
5220
5221
5222
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5224$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5225if ${lt_cv_nm_interface+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227else
5228 lt_cv_nm_interface="BSD nm"
5229 echo "int some_variable = 0;" > conftest.$ac_ext
5230 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5231 (eval "$ac_compile" 2>conftest.err)
5232 cat conftest.err >&5
5233 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5234 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5235 cat conftest.err >&5
5236 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5237 cat conftest.out >&5
5238 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5239 lt_cv_nm_interface="MS dumpbin"
5240 fi
5241 rm -f conftest*
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5244$as_echo "$lt_cv_nm_interface" >&6; }
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5247$as_echo_n "checking whether ln -s works... " >&6; }
5248LN_S=$as_ln_s
5249if test "$LN_S" = "ln -s"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251$as_echo "yes" >&6; }
5252else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5254$as_echo "no, using $LN_S" >&6; }
5255fi
5256
5257# find the maximum length of command line arguments
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5259$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5260if ${lt_cv_sys_max_cmd_len+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262else
5263 i=0
5264 teststring="ABCD"
5265
5266 case $build_os in
5267 msdosdjgpp*)
5268 # On DJGPP, this test can blow up pretty badly due to problems in libc
5269 # (any single argument exceeding 2000 bytes causes a buffer overrun
5270 # during glob expansion). Even if it were fixed, the result of this
5271 # check would be larger than it should be.
5272 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5273 ;;
5274
5275 gnu*)
5276 # Under GNU Hurd, this test is not required because there is
5277 # no limit to the length of command line arguments.
5278 # Libtool will interpret -1 as no limit whatsoever
5279 lt_cv_sys_max_cmd_len=-1;
5280 ;;
5281
5282 cygwin* | mingw* | cegcc*)
5283 # On Win9x/ME, this test blows up -- it succeeds, but takes
5284 # about 5 minutes as the teststring grows exponentially.
5285 # Worse, since 9x/ME are not pre-emptively multitasking,
5286 # you end up with a "frozen" computer, even though with patience
5287 # the test eventually succeeds (with a max line length of 256k).
5288 # Instead, let's just punt: use the minimum linelength reported by
5289 # all of the supported platforms: 8192 (on NT/2K/XP).
5290 lt_cv_sys_max_cmd_len=8192;
5291 ;;
5292
5293 mint*)
5294 # On MiNT this can take a long time and run out of memory.
5295 lt_cv_sys_max_cmd_len=8192;
5296 ;;
5297
5298 amigaos*)
5299 # On AmigaOS with pdksh, this test takes hours, literally.
5300 # So we just punt and use a minimum line length of 8192.
5301 lt_cv_sys_max_cmd_len=8192;
5302 ;;
5303
5304 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5305 # This has been around since 386BSD, at least. Likely further.
5306 if test -x /sbin/sysctl; then
5307 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5308 elif test -x /usr/sbin/sysctl; then
5309 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5310 else
5311 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5312 fi
5313 # And add a safety zone
5314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5316 ;;
5317
5318 interix*)
5319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5320 lt_cv_sys_max_cmd_len=196608
5321 ;;
5322
5323 os2*)
5324 # The test takes a long time on OS/2.
5325 lt_cv_sys_max_cmd_len=8192
5326 ;;
5327
5328 osf*)
5329 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5330 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5331 # nice to cause kernel panics so lets avoid the loop below.
5332 # First set a reasonable default.
5333 lt_cv_sys_max_cmd_len=16384
5334 #
5335 if test -x /sbin/sysconfig; then
5336 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5337 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5338 esac
5339 fi
5340 ;;
5341 sco3.2v5*)
5342 lt_cv_sys_max_cmd_len=102400
5343 ;;
5344 sysv5* | sco5v6* | sysv4.2uw2*)
5345 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5346 if test -n "$kargmax"; then
5347 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5348 else
5349 lt_cv_sys_max_cmd_len=32768
5350 fi
5351 ;;
5352 *)
5353 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5354 if test -n "$lt_cv_sys_max_cmd_len"; then
5355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5357 else
5358 # Make teststring a little bigger before we do anything with it.
5359 # a 1K string should be a reasonable start.
5360 for i in 1 2 3 4 5 6 7 8 ; do
5361 teststring=$teststring$teststring
5362 done
5363 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5364 # If test is not a shell built-in, we'll probably end up computing a
5365 # maximum length that is only half of the actual maximum length, but
5366 # we can't tell.
5367 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5368 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5369 test $i != 17 # 1/2 MB should be enough
5370 do
5371 i=`expr $i + 1`
5372 teststring=$teststring$teststring
5373 done
5374 # Only check the string length outside the loop.
5375 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5376 teststring=
5377 # Add a significant safety factor because C++ compilers can tack on
5378 # massive amounts of additional arguments before passing them to the
5379 # linker. It appears as though 1/2 is a usable value.
5380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5381 fi
5382 ;;
5383 esac
5384
5385fi
5386
5387if test -n $lt_cv_sys_max_cmd_len ; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5389$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5390else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5392$as_echo "none" >&6; }
5393fi
5394max_cmd_len=$lt_cv_sys_max_cmd_len
5395
5396
5397
5398
5399
5400
5401: ${CP="cp -f"}
5402: ${MV="mv -f"}
5403: ${RM="rm -f"}
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5406$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5407# Try some XSI features
5408xsi_shell=no
5409( _lt_dummy="a/b/c"
5410 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5411 = c,a/b,b/c, \
5412 && eval 'test $(( 1 + 1 )) -eq 2 \
5413 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5414 && xsi_shell=yes
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5416$as_echo "$xsi_shell" >&6; }
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5420$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5421lt_shell_append=no
5422( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5423 >/dev/null 2>&1 \
5424 && lt_shell_append=yes
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5426$as_echo "$lt_shell_append" >&6; }
5427
5428
5429if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5430 lt_unset=unset
5431else
5432 lt_unset=false
5433fi
5434
5435
5436
5437
5438
5439# test EBCDIC or ASCII
5440case `echo X|tr X '\101'` in
5441 A) # ASCII based system
5442 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5443 lt_SP2NL='tr \040 \012'
5444 lt_NL2SP='tr \015\012 \040\040'
5445 ;;
5446 *) # EBCDIC based system
5447 lt_SP2NL='tr \100 \n'
5448 lt_NL2SP='tr \r\n \100\100'
5449 ;;
5450esac
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5461$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5462if ${lt_cv_to_host_file_cmd+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464else
5465 case $host in
5466 *-*-mingw* )
5467 case $build in
5468 *-*-mingw* ) # actually msys
5469 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5470 ;;
5471 *-*-cygwin* )
5472 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5473 ;;
5474 * ) # otherwise, assume *nix
5475 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5476 ;;
5477 esac
5478 ;;
5479 *-*-cygwin* )
5480 case $build in
5481 *-*-mingw* ) # actually msys
5482 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5483 ;;
5484 *-*-cygwin* )
5485 lt_cv_to_host_file_cmd=func_convert_file_noop
5486 ;;
5487 * ) # otherwise, assume *nix
5488 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5489 ;;
5490 esac
5491 ;;
5492 * ) # unhandled hosts (and "normal" native builds)
5493 lt_cv_to_host_file_cmd=func_convert_file_noop
5494 ;;
5495esac
5496
5497fi
5498
5499to_host_file_cmd=$lt_cv_to_host_file_cmd
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5501$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5508$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5509if ${lt_cv_to_tool_file_cmd+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 #assume ordinary cross tools, or native build.
5513lt_cv_to_tool_file_cmd=func_convert_file_noop
5514case $host in
5515 *-*-mingw* )
5516 case $build in
5517 *-*-mingw* ) # actually msys
5518 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5519 ;;
5520 esac
5521 ;;
5522esac
5523
5524fi
5525
5526to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5528$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5529
5530
5531
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5535$as_echo_n "checking for $LD option to reload object files... " >&6; }
5536if ${lt_cv_ld_reload_flag+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538else
5539 lt_cv_ld_reload_flag='-r'
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5542$as_echo "$lt_cv_ld_reload_flag" >&6; }
5543reload_flag=$lt_cv_ld_reload_flag
5544case $reload_flag in
5545"" | " "*) ;;
5546*) reload_flag=" $reload_flag" ;;
5547esac
5548reload_cmds='$LD$reload_flag -o $output$reload_objs'
5549case $host_os in
5550 cygwin* | mingw* | pw32* | cegcc*)
5551 if test "$GCC" != yes; then
5552 reload_cmds=false
5553 fi
5554 ;;
5555 darwin*)
5556 if test "$GCC" = yes; then
5557 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5558 else
5559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560 fi
5561 ;;
5562esac
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5574set dummy ${ac_tool_prefix}objdump; ac_word=$2
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576$as_echo_n "checking for $ac_word... " >&6; }
5577if ${ac_cv_prog_OBJDUMP+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579else
5580 if test -n "$OBJDUMP"; then
5581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5582else
5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594done
5595 done
5596IFS=$as_save_IFS
5597
5598fi
5599fi
5600OBJDUMP=$ac_cv_prog_OBJDUMP
5601if test -n "$OBJDUMP"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5603$as_echo "$OBJDUMP" >&6; }
5604else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606$as_echo "no" >&6; }
5607fi
5608
5609
5610fi
5611if test -z "$ac_cv_prog_OBJDUMP"; then
5612 ac_ct_OBJDUMP=$OBJDUMP
5613 # Extract the first word of "objdump", so it can be a program name with args.
5614set dummy objdump; ac_word=$2
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619else
5620 if test -n "$ac_ct_OBJDUMP"; then
5621 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638fi
5639fi
5640ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5641if test -n "$ac_ct_OBJDUMP"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5643$as_echo "$ac_ct_OBJDUMP" >&6; }
5644else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647fi
5648
5649 if test "x$ac_ct_OBJDUMP" = x; then
5650 OBJDUMP="false"
5651 else
5652 case $cross_compiling:$ac_tool_warned in
5653yes:)
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656ac_tool_warned=yes ;;
5657esac
5658 OBJDUMP=$ac_ct_OBJDUMP
5659 fi
5660else
5661 OBJDUMP="$ac_cv_prog_OBJDUMP"
5662fi
5663
5664test -z "$OBJDUMP" && OBJDUMP=objdump
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5675$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5676if ${lt_cv_deplibs_check_method+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678else
5679 lt_cv_file_magic_cmd='$MAGIC_CMD'
5680lt_cv_file_magic_test_file=
5681lt_cv_deplibs_check_method='unknown'
5682# Need to set the preceding variable on all platforms that support
5683# interlibrary dependencies.
5684# 'none' -- dependencies not supported.
5685# `unknown' -- same as none, but documents that we really don't know.
5686# 'pass_all' -- all dependencies passed with no checks.
5687# 'test_compile' -- check by making test program.
5688# 'file_magic [[regex]]' -- check by looking for files in library path
5689# which responds to the $file_magic_cmd with a given extended regex.
5690# If you have `file' or equivalent on your system and you're not sure
5691# whether `pass_all' will *always* work, you probably want this one.
5692
5693case $host_os in
5694aix[4-9]*)
5695 lt_cv_deplibs_check_method=pass_all
5696 ;;
5697
5698beos*)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701
5702bsdi[45]*)
5703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5704 lt_cv_file_magic_cmd='/usr/bin/file -L'
5705 lt_cv_file_magic_test_file=/shlib/libc.so
5706 ;;
5707
5708cygwin*)
5709 # func_win32_libid is a shell function defined in ltmain.sh
5710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711 lt_cv_file_magic_cmd='func_win32_libid'
5712 ;;
5713
5714mingw* | pw32*)
5715 # Base MSYS/MinGW do not provide the 'file' command needed by
5716 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5717 # unless we find 'file', for example because we are cross-compiling.
5718 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5719 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5721 lt_cv_file_magic_cmd='func_win32_libid'
5722 else
5723 # Keep this pattern in sync with the one in func_win32_libid.
5724 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5725 lt_cv_file_magic_cmd='$OBJDUMP -f'
5726 fi
5727 ;;
5728
5729cegcc*)
5730 # use the weaker test based on 'objdump'. See mingw*.
5731 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5732 lt_cv_file_magic_cmd='$OBJDUMP -f'
5733 ;;
5734
5735darwin* | rhapsody*)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738
5739freebsd* | dragonfly*)
5740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5741 case $host_cpu in
5742 i*86 )
5743 # Not sure whether the presence of OpenBSD here was a mistake.
5744 # Let's accept both of them until this is cleared up.
5745 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5746 lt_cv_file_magic_cmd=/usr/bin/file
5747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5748 ;;
5749 esac
5750 else
5751 lt_cv_deplibs_check_method=pass_all
5752 fi
5753 ;;
5754
5755gnu*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759haiku*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762
5763hpux10.20* | hpux11*)
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 case $host_cpu in
5766 ia64*)
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5768 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5769 ;;
5770 hppa*64*)
5771 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]'
5772 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5773 ;;
5774 *)
5775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5777 ;;
5778 esac
5779 ;;
5780
5781interix[3-9]*)
5782 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5784 ;;
5785
5786irix5* | irix6* | nonstopux*)
5787 case $LD in
5788 *-32|*"-32 ") libmagic=32-bit;;
5789 *-n32|*"-n32 ") libmagic=N32;;
5790 *-64|*"-64 ") libmagic=64-bit;;
5791 *) libmagic=never-match;;
5792 esac
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796# This must be glibc/ELF.
5797linux* | k*bsd*-gnu | kopensolaris*-gnu)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801netbsd*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5804 else
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5806 fi
5807 ;;
5808
5809newos6*)
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5811 lt_cv_file_magic_cmd=/usr/bin/file
5812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5813 ;;
5814
5815*nto* | *qnx*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819openbsd*)
5820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5822 else
5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5824 fi
5825 ;;
5826
5827osf3* | osf4* | osf5*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830
5831rdos*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835solaris*)
5836 lt_cv_deplibs_check_method=pass_all
5837 ;;
5838
5839sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5840 lt_cv_deplibs_check_method=pass_all
5841 ;;
5842
5843sysv4 | sysv4.3*)
5844 case $host_vendor in
5845 motorola)
5846 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]'
5847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5848 ;;
5849 ncr)
5850 lt_cv_deplibs_check_method=pass_all
5851 ;;
5852 sequent)
5853 lt_cv_file_magic_cmd='/bin/file'
5854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5855 ;;
5856 sni)
5857 lt_cv_file_magic_cmd='/bin/file'
5858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5859 lt_cv_file_magic_test_file=/lib/libc.so
5860 ;;
5861 siemens)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864 pc)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867 esac
5868 ;;
5869
5870tpf*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873esac
5874
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5877$as_echo "$lt_cv_deplibs_check_method" >&6; }
5878
5879file_magic_glob=
5880want_nocaseglob=no
5881if test "$build" = "$host"; then
5882 case $host_os in
5883 mingw* | pw32*)
5884 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5885 want_nocaseglob=yes
5886 else
5887 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5888 fi
5889 ;;
5890 esac
5891fi
5892
5893file_magic_cmd=$lt_cv_file_magic_cmd
5894deplibs_check_method=$lt_cv_deplibs_check_method
5895test -z "$deplibs_check_method" && deplibs_check_method=unknown
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if ${ac_cv_prog_DLLTOOL+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$DLLTOOL"; then
5927 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946DLLTOOL=$ac_cv_prog_DLLTOOL
5947if test -n "$DLLTOOL"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5949$as_echo "$DLLTOOL" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956fi
5957if test -z "$ac_cv_prog_DLLTOOL"; then
5958 ac_ct_DLLTOOL=$DLLTOOL
5959 # Extract the first word of "dlltool", so it can be a program name with args.
5960set dummy dlltool; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$ac_ct_DLLTOOL"; then
5967 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5987if test -n "$ac_ct_DLLTOOL"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5989$as_echo "$ac_ct_DLLTOOL" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995 if test "x$ac_ct_DLLTOOL" = x; then
5996 DLLTOOL="false"
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999yes:)
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002ac_tool_warned=yes ;;
6003esac
6004 DLLTOOL=$ac_ct_DLLTOOL
6005 fi
6006else
6007 DLLTOOL="$ac_cv_prog_DLLTOOL"
6008fi
6009
6010test -z "$DLLTOOL" && DLLTOOL=dlltool
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6022$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6023if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025else
6026 lt_cv_sharedlib_from_linklib_cmd='unknown'
6027
6028case $host_os in
6029cygwin* | mingw* | pw32* | cegcc*)
6030 # two different shell functions defined in ltmain.sh
6031 # decide which to use based on capabilities of $DLLTOOL
6032 case `$DLLTOOL --help 2>&1` in
6033 *--identify-strict*)
6034 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6035 ;;
6036 *)
6037 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6038 ;;
6039 esac
6040 ;;
6041*)
6042 # fallback: assume linklib IS sharedlib
6043 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6044 ;;
6045esac
6046
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6049$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6050sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6051test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6052
6053
6054
6055
6056
6057
6058
6059if test -n "$ac_tool_prefix"; then
6060 for ac_prog in ar
6061 do
6062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
6066if ${ac_cv_prog_AR+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068else
6069 if test -n "$AR"; then
6070 ac_cv_prog_AR="$AR" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083done
6084 done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089AR=$ac_cv_prog_AR
6090if test -n "$AR"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6092$as_echo "$AR" >&6; }
6093else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098
6099 test -n "$AR" && break
6100 done
6101fi
6102if test -z "$AR"; then
6103 ac_ct_AR=$AR
6104 for ac_prog in ar
6105do
6106 # Extract the first word of "$ac_prog", so it can be a program name with args.
6107set dummy $ac_prog; ac_word=$2
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109$as_echo_n "checking for $ac_word... " >&6; }
6110if ${ac_cv_prog_ac_ct_AR+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112else
6113 if test -n "$ac_ct_AR"; then
6114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_ac_ct_AR="$ac_prog"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127done
6128 done
6129IFS=$as_save_IFS
6130
6131fi
6132fi
6133ac_ct_AR=$ac_cv_prog_ac_ct_AR
6134if test -n "$ac_ct_AR"; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6136$as_echo "$ac_ct_AR" >&6; }
6137else
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139$as_echo "no" >&6; }
6140fi
6141
6142
6143 test -n "$ac_ct_AR" && break
6144done
6145
6146 if test "x$ac_ct_AR" = x; then
6147 AR="false"
6148 else
6149 case $cross_compiling:$ac_tool_warned in
6150yes:)
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153ac_tool_warned=yes ;;
6154esac
6155 AR=$ac_ct_AR
6156 fi
6157fi
6158
6159: ${AR=ar}
6160: ${AR_FLAGS=cru}
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6173$as_echo_n "checking for archiver @FILE support... " >&6; }
6174if ${lt_cv_ar_at_file+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176else
6177 lt_cv_ar_at_file=no
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h. */
6180
6181int
6182main ()
6183{
6184
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
6190 echo conftest.$ac_objext > conftest.lst
6191 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6193 (eval $lt_ar_try) 2>&5
6194 ac_status=$?
6195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196 test $ac_status = 0; }
6197 if test "$ac_status" -eq 0; then
6198 # Ensure the archiver fails upon bogus file names.
6199 rm -f conftest.$ac_objext libconftest.a
6200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6201 (eval $lt_ar_try) 2>&5
6202 ac_status=$?
6203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204 test $ac_status = 0; }
6205 if test "$ac_status" -ne 0; then
6206 lt_cv_ar_at_file=@
6207 fi
6208 fi
6209 rm -f conftest.* libconftest.a
6210
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6216$as_echo "$lt_cv_ar_at_file" >&6; }
6217
6218if test "x$lt_cv_ar_at_file" = xno; then
6219 archiver_list_spec=
6220else
6221 archiver_list_spec=$lt_cv_ar_at_file
6222fi
6223
6224
6225
6226
6227
6228
6229
6230if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6232set dummy ${ac_tool_prefix}strip; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_STRIP+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237else
6238 if test -n "$STRIP"; then
6239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252done
6253 done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258STRIP=$ac_cv_prog_STRIP
6259if test -n "$STRIP"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6261$as_echo "$STRIP" >&6; }
6262else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267
6268fi
6269if test -z "$ac_cv_prog_STRIP"; then
6270 ac_ct_STRIP=$STRIP
6271 # Extract the first word of "strip", so it can be a program name with args.
6272set dummy strip; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277else
6278 if test -n "$ac_ct_STRIP"; then
6279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_ac_ct_STRIP="strip"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293 done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6299if test -n "$ac_ct_STRIP"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6301$as_echo "$ac_ct_STRIP" >&6; }
6302else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307 if test "x$ac_ct_STRIP" = x; then
6308 STRIP=":"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311yes:)
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314ac_tool_warned=yes ;;
6315esac
6316 STRIP=$ac_ct_STRIP
6317 fi
6318else
6319 STRIP="$ac_cv_prog_STRIP"
6320fi
6321
6322test -z "$STRIP" && STRIP=:
6323
6324
6325
6326
6327
6328
6329if test -n "$ac_tool_prefix"; then
6330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333$as_echo_n "checking for $ac_word... " >&6; }
6334if ${ac_cv_prog_RANLIB+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336else
6337 if test -n "$RANLIB"; then
6338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6339else
6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351done
6352 done
6353IFS=$as_save_IFS
6354
6355fi
6356fi
6357RANLIB=$ac_cv_prog_RANLIB
6358if test -n "$RANLIB"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6360$as_echo "$RANLIB" >&6; }
6361else
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363$as_echo "no" >&6; }
6364fi
6365
6366
6367fi
6368if test -z "$ac_cv_prog_RANLIB"; then
6369 ac_ct_RANLIB=$RANLIB
6370 # Extract the first word of "ranlib", so it can be a program name with args.
6371set dummy ranlib; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
6374if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376else
6377 if test -n "$ac_ct_RANLIB"; then
6378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_ac_ct_RANLIB="ranlib"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392 done
6393IFS=$as_save_IFS
6394
6395fi
6396fi
6397ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6398if test -n "$ac_ct_RANLIB"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6400$as_echo "$ac_ct_RANLIB" >&6; }
6401else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406 if test "x$ac_ct_RANLIB" = x; then
6407 RANLIB=":"
6408 else
6409 case $cross_compiling:$ac_tool_warned in
6410yes:)
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413ac_tool_warned=yes ;;
6414esac
6415 RANLIB=$ac_ct_RANLIB
6416 fi
6417else
6418 RANLIB="$ac_cv_prog_RANLIB"
6419fi
6420
6421test -z "$RANLIB" && RANLIB=:
6422
6423
6424
6425
6426
6427
6428# Determine commands to create old-style static archives.
6429old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6430old_postinstall_cmds='chmod 644 $oldlib'
6431old_postuninstall_cmds=
6432
6433if test -n "$RANLIB"; then
6434 case $host_os in
6435 openbsd*)
6436 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6437 ;;
6438 *)
6439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6440 ;;
6441 esac
6442 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6443fi
6444
6445case $host_os in
6446 darwin*)
6447 lock_old_archive_extraction=yes ;;
6448 *)
6449 lock_old_archive_extraction=no ;;
6450esac
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490# If no C compiler was specified, use CC.
6491LTCC=${LTCC-"$CC"}
6492
6493# If no C compiler flags were specified, use CFLAGS.
6494LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6495
6496# Allow CC to be a program name with arguments.
6497compiler=$CC
6498
6499
6500# Check for command to grab the raw symbol name followed by C symbol from nm.
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6502$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6503if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505else
6506
6507# These are sane defaults that work on at least a few old systems.
6508# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6509
6510# Character class describing NM global symbol codes.
6511symcode='[BCDEGRST]'
6512
6513# Regexp to match symbols that can be accessed directly from C.
6514sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6515
6516# Define system-specific variables.
6517case $host_os in
6518aix*)
6519 symcode='[BCDT]'
6520 ;;
6521cygwin* | mingw* | pw32* | cegcc*)
6522 symcode='[ABCDGISTW]'
6523 ;;
6524hpux*)
6525 if test "$host_cpu" = ia64; then
6526 symcode='[ABCDEGRST]'
6527 fi
6528 ;;
6529irix* | nonstopux*)
6530 symcode='[BCDEGRST]'
6531 ;;
6532osf*)
6533 symcode='[BCDEGQRST]'
6534 ;;
6535solaris*)
6536 symcode='[BDRT]'
6537 ;;
6538sco3.2v5*)
6539 symcode='[DT]'
6540 ;;
6541sysv4.2uw2*)
6542 symcode='[DT]'
6543 ;;
6544sysv5* | sco5v6* | unixware* | OpenUNIX*)
6545 symcode='[ABDT]'
6546 ;;
6547sysv4)
6548 symcode='[DFNSTU]'
6549 ;;
6550esac
6551
6552# If we're using GNU nm, then use its standard symbol codes.
6553case `$NM -V 2>&1` in
6554*GNU* | *'with BFD'*)
6555 symcode='[ABCDGIRSTW]' ;;
6556esac
6557
6558# Transform an extracted symbol line into a proper C declaration.
6559# Some systems (esp. on ia64) link data and code symbols differently,
6560# so use this general approach.
6561lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6562
6563# Transform an extracted symbol line into symbol name and symbol address
6564lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6565lt_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'"
6566
6567# Handle CRLF in mingw tool chain
6568opt_cr=
6569case $build_os in
6570mingw*)
6571 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6572 ;;
6573esac
6574
6575# Try without a prefix underscore, then with it.
6576for ac_symprfx in "" "_"; do
6577
6578 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6579 symxfrm="\\1 $ac_symprfx\\2 \\2"
6580
6581 # Write the raw and C identifiers.
6582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6583 # Fake it for dumpbin and say T for any non-static function
6584 # and D for any global variable.
6585 # Also find C++ and __fastcall symbols from MSVC++,
6586 # which start with @ or ?.
6587 lt_cv_sys_global_symbol_pipe="$AWK '"\
6588" {last_section=section; section=\$ 3};"\
6589" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6590" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6591" \$ 0!~/External *\|/{next};"\
6592" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6593" {if(hide[section]) next};"\
6594" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6595" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6596" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6597" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6598" ' prfx=^$ac_symprfx"
6599 else
6600 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6601 fi
6602 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6603
6604 # Check to see that the pipe works correctly.
6605 pipe_works=no
6606
6607 rm -f conftest*
6608 cat > conftest.$ac_ext <<_LT_EOF
6609#ifdef __cplusplus
6610extern "C" {
6611#endif
6612char nm_test_var;
6613void nm_test_func(void);
6614void nm_test_func(void){}
6615#ifdef __cplusplus
6616}
6617#endif
6618int main(){nm_test_var='a';nm_test_func();return(0);}
6619_LT_EOF
6620
6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6622 (eval $ac_compile) 2>&5
6623 ac_status=$?
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
6626 # Now try to grab the symbols.
6627 nlist=conftest.nm
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6629 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6630 ac_status=$?
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; } && test -s "$nlist"; then
6633 # Try sorting and uniquifying the output.
6634 if sort "$nlist" | uniq > "$nlist"T; then
6635 mv -f "$nlist"T "$nlist"
6636 else
6637 rm -f "$nlist"T
6638 fi
6639
6640 # Make sure that we snagged all the symbols we need.
6641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6643 cat <<_LT_EOF > conftest.$ac_ext
6644/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6645#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6646/* DATA imports from DLLs on WIN32 con't be const, because runtime
6647 relocations are performed -- see ld's documentation on pseudo-relocs. */
6648# define LT_DLSYM_CONST
6649#elif defined(__osf__)
6650/* This system does not cope well with relocations in const data. */
6651# define LT_DLSYM_CONST
6652#else
6653# define LT_DLSYM_CONST const
6654#endif
6655
6656#ifdef __cplusplus
6657extern "C" {
6658#endif
6659
6660_LT_EOF
6661 # Now generate the symbol file.
6662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6663
6664 cat <<_LT_EOF >> conftest.$ac_ext
6665
6666/* The mapping between symbol names and symbols. */
6667LT_DLSYM_CONST struct {
6668 const char *name;
6669 void *address;
6670}
6671lt__PROGRAM__LTX_preloaded_symbols[] =
6672{
6673 { "@PROGRAM@", (void *) 0 },
6674_LT_EOF
6675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6676 cat <<\_LT_EOF >> conftest.$ac_ext
6677 {0, (void *) 0}
6678};
6679
6680/* This works around a problem in FreeBSD linker */
6681#ifdef FREEBSD_WORKAROUND
6682static const void *lt_preloaded_setup() {
6683 return lt__PROGRAM__LTX_preloaded_symbols;
6684}
6685#endif
6686
6687#ifdef __cplusplus
6688}
6689#endif
6690_LT_EOF
6691 # Now try linking the two files.
6692 mv conftest.$ac_objext conftstm.$ac_objext
6693 lt_globsym_save_LIBS=$LIBS
6694 lt_globsym_save_CFLAGS=$CFLAGS
6695 LIBS="conftstm.$ac_objext"
6696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6698 (eval $ac_link) 2>&5
6699 ac_status=$?
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6702 pipe_works=yes
6703 fi
6704 LIBS=$lt_globsym_save_LIBS
6705 CFLAGS=$lt_globsym_save_CFLAGS
6706 else
6707 echo "cannot find nm_test_func in $nlist" >&5
6708 fi
6709 else
6710 echo "cannot find nm_test_var in $nlist" >&5
6711 fi
6712 else
6713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6714 fi
6715 else
6716 echo "$progname: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6718 fi
6719 rm -rf conftest* conftst*
6720
6721 # Do not use the global_symbol_pipe unless it works.
6722 if test "$pipe_works" = yes; then
6723 break
6724 else
6725 lt_cv_sys_global_symbol_pipe=
6726 fi
6727done
6728
6729fi
6730
6731if test -z "$lt_cv_sys_global_symbol_pipe"; then
6732 lt_cv_sys_global_symbol_to_cdecl=
6733fi
6734if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6736$as_echo "failed" >&6; }
6737else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6739$as_echo "ok" >&6; }
6740fi
6741
6742# Response file support.
6743if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6744 nm_file_list_spec='@'
6745elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6746 nm_file_list_spec='@'
6747fi
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6776$as_echo_n "checking for sysroot... " >&6; }
6777
6778# Check whether --with-sysroot was given.
6779if test "${with_sysroot+set}" = set; then :
6780 withval=$with_sysroot;
6781else
6782 with_sysroot=no
6783fi
6784
6785
6786lt_sysroot=
6787case ${with_sysroot} in #(
6788 yes)
6789 if test "$GCC" = yes; then
6790 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6791 fi
6792 ;; #(
6793 /*)
6794 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6795 ;; #(
6796 no|'')
6797 ;; #(
6798 *)
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6800$as_echo "${with_sysroot}" >&6; }
6801 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6802 ;;
6803esac
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6806$as_echo "${lt_sysroot:-no}" >&6; }
6807
6808
6809
6810
6811
6812# Check whether --enable-libtool-lock was given.
6813if test "${enable_libtool_lock+set}" = set; then :
6814 enableval=$enable_libtool_lock;
6815fi
6816
6817test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6818
6819# Some flags need to be propagated to the compiler or linker for good
6820# libtool support.
6821case $host in
6822ia64-*-hpux*)
6823 # Find out which ABI we are using.
6824 echo 'int i;' > conftest.$ac_ext
6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826 (eval $ac_compile) 2>&5
6827 ac_status=$?
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
6830 case `/usr/bin/file conftest.$ac_objext` in
6831 *ELF-32*)
6832 HPUX_IA64_MODE="32"
6833 ;;
6834 *ELF-64*)
6835 HPUX_IA64_MODE="64"
6836 ;;
6837 esac
6838 fi
6839 rm -rf conftest*
6840 ;;
6841*-*-irix6*)
6842 # Find out which ABI we are using.
6843 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
6849 if test "$lt_cv_prog_gnu_ld" = yes; then
6850 case `/usr/bin/file conftest.$ac_objext` in
6851 *32-bit*)
6852 LD="${LD-ld} -melf32bsmip"
6853 ;;
6854 *N32*)
6855 LD="${LD-ld} -melf32bmipn32"
6856 ;;
6857 *64-bit*)
6858 LD="${LD-ld} -melf64bmip"
6859 ;;
6860 esac
6861 else
6862 case `/usr/bin/file conftest.$ac_objext` in
6863 *32-bit*)
6864 LD="${LD-ld} -32"
6865 ;;
6866 *N32*)
6867 LD="${LD-ld} -n32"
6868 ;;
6869 *64-bit*)
6870 LD="${LD-ld} -64"
6871 ;;
6872 esac
6873 fi
6874 fi
6875 rm -rf conftest*
6876 ;;
6877
6878x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6879s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6880 # Find out which ABI we are using.
6881 echo 'int i;' > conftest.$ac_ext
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883 (eval $ac_compile) 2>&5
6884 ac_status=$?
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; }; then
6887 case `/usr/bin/file conftest.o` in
6888 *32-bit*)
6889 case $host in
6890 x86_64-*kfreebsd*-gnu)
6891 LD="${LD-ld} -m elf_i386_fbsd"
6892 ;;
6893 x86_64-*linux*)
6894 LD="${LD-ld} -m elf_i386"
6895 ;;
6896 ppc64-*linux*|powerpc64-*linux*)
6897 LD="${LD-ld} -m elf32ppclinux"
6898 ;;
6899 s390x-*linux*)
6900 LD="${LD-ld} -m elf_s390"
6901 ;;
6902 sparc64-*linux*)
6903 LD="${LD-ld} -m elf32_sparc"
6904 ;;
6905 esac
6906 ;;
6907 *64-bit*)
6908 case $host in
6909 x86_64-*kfreebsd*-gnu)
6910 LD="${LD-ld} -m elf_x86_64_fbsd"
6911 ;;
6912 x86_64-*linux*)
6913 LD="${LD-ld} -m elf_x86_64"
6914 ;;
6915 ppc*-*linux*|powerpc*-*linux*)
6916 LD="${LD-ld} -m elf64ppc"
6917 ;;
6918 s390*-*linux*|s390*-*tpf*)
6919 LD="${LD-ld} -m elf64_s390"
6920 ;;
6921 sparc*-*linux*)
6922 LD="${LD-ld} -m elf64_sparc"
6923 ;;
6924 esac
6925 ;;
6926 esac
6927 fi
6928 rm -rf conftest*
6929 ;;
6930
6931*-*-sco3.2v5*)
6932 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6933 SAVE_CFLAGS="$CFLAGS"
6934 CFLAGS="$CFLAGS -belf"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6936$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6937if ${lt_cv_cc_needs_belf+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939else
6940 ac_ext=c
6941ac_cpp='$CPP $CPPFLAGS'
6942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944ac_compiler_gnu=$ac_cv_c_compiler_gnu
6945
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947/* end confdefs.h. */
6948
6949int
6950main ()
6951{
6952
6953 ;
6954 return 0;
6955}
6956_ACEOF
6957if ac_fn_c_try_link "$LINENO"; then :
6958 lt_cv_cc_needs_belf=yes
6959else
6960 lt_cv_cc_needs_belf=no
6961fi
6962rm -f core conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964 ac_ext=c
6965ac_cpp='$CPP $CPPFLAGS'
6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6972$as_echo "$lt_cv_cc_needs_belf" >&6; }
6973 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6974 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6975 CFLAGS="$SAVE_CFLAGS"
6976 fi
6977 ;;
6978*-*solaris*)
6979 # Find out which ABI we are using.
6980 echo 'int i;' > conftest.$ac_ext
6981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6982 (eval $ac_compile) 2>&5
6983 ac_status=$?
6984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985 test $ac_status = 0; }; then
6986 case `/usr/bin/file conftest.o` in
6987 *64-bit*)
6988 case $lt_cv_prog_gnu_ld in
6989 yes*)
6990 case $host in
6991 i?86-*-solaris*)
6992 LD="${LD-ld} -m elf_x86_64"
6993 ;;
6994 sparc*-*-solaris*)
6995 LD="${LD-ld} -m elf64_sparc"
6996 ;;
6997 esac
6998 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6999 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7000 LD="${LD-ld}_sol2"
7001 fi
7002 ;;
7003 *)
7004 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7005 LD="${LD-ld} -64"
7006 fi
7007 ;;
7008 esac
7009 ;;
7010 esac
7011 fi
7012 rm -rf conftest*
7013 ;;
7014esac
7015
7016need_locks="$enable_libtool_lock"
7017
7018if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7020set dummy ${ac_tool_prefix}mt; ac_word=$2
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
7023if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025else
7026 if test -n "$MANIFEST_TOOL"; then
7027 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040done
7041 done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7047if test -n "$MANIFEST_TOOL"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7049$as_echo "$MANIFEST_TOOL" >&6; }
7050else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055
7056fi
7057if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7058 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7059 # Extract the first word of "mt", so it can be a program name with args.
7060set dummy mt; 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_ac_ct_MANIFEST_TOOL+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065else
7066 if test -n "$ac_ct_MANIFEST_TOOL"; then
7067 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
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
7086ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7087if test -n "$ac_ct_MANIFEST_TOOL"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7089$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7090else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092$as_echo "no" >&6; }
7093fi
7094
7095 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7096 MANIFEST_TOOL=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099yes:)
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102ac_tool_warned=yes ;;
7103esac
7104 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7105 fi
7106else
7107 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7108fi
7109
7110test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7112$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7113if ${lt_cv_path_mainfest_tool+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115else
7116 lt_cv_path_mainfest_tool=no
7117 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7118 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7119 cat conftest.err >&5
7120 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7121 lt_cv_path_mainfest_tool=yes
7122 fi
7123 rm -f conftest*
7124fi
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7126$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7127if test "x$lt_cv_path_mainfest_tool" != xyes; then
7128 MANIFEST_TOOL=:
7129fi
7130
7131
7132
7133
7134
7135
7136 case $host_os in
7137 rhapsody* | darwin*)
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7140set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142$as_echo_n "checking for $ac_word... " >&6; }
7143if ${ac_cv_prog_DSYMUTIL+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145else
7146 if test -n "$DSYMUTIL"; then
7147 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160done
7161 done
7162IFS=$as_save_IFS
7163
7164fi
7165fi
7166DSYMUTIL=$ac_cv_prog_DSYMUTIL
7167if test -n "$DSYMUTIL"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7169$as_echo "$DSYMUTIL" >&6; }
7170else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172$as_echo "no" >&6; }
7173fi
7174
7175
7176fi
7177if test -z "$ac_cv_prog_DSYMUTIL"; then
7178 ac_ct_DSYMUTIL=$DSYMUTIL
7179 # Extract the first word of "dsymutil", so it can be a program name with args.
7180set dummy dsymutil; ac_word=$2
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182$as_echo_n "checking for $ac_word... " >&6; }
7183if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185else
7186 if test -n "$ac_ct_DSYMUTIL"; then
7187 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201 done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7207if test -n "$ac_ct_DSYMUTIL"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7209$as_echo "$ac_ct_DSYMUTIL" >&6; }
7210else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212$as_echo "no" >&6; }
7213fi
7214
7215 if test "x$ac_ct_DSYMUTIL" = x; then
7216 DSYMUTIL=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219yes:)
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222ac_tool_warned=yes ;;
7223esac
7224 DSYMUTIL=$ac_ct_DSYMUTIL
7225 fi
7226else
7227 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7228fi
7229
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7232set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234$as_echo_n "checking for $ac_word... " >&6; }
7235if ${ac_cv_prog_NMEDIT+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237else
7238 if test -n "$NMEDIT"; then
7239 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253 done
7254IFS=$as_save_IFS
7255
7256fi
7257fi
7258NMEDIT=$ac_cv_prog_NMEDIT
7259if test -n "$NMEDIT"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7261$as_echo "$NMEDIT" >&6; }
7262else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264$as_echo "no" >&6; }
7265fi
7266
7267
7268fi
7269if test -z "$ac_cv_prog_NMEDIT"; then
7270 ac_ct_NMEDIT=$NMEDIT
7271 # Extract the first word of "nmedit", so it can be a program name with args.
7272set dummy nmedit; ac_word=$2
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274$as_echo_n "checking for $ac_word... " >&6; }
7275if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277else
7278 if test -n "$ac_ct_NMEDIT"; then
7279 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293 done
7294IFS=$as_save_IFS
7295
7296fi
7297fi
7298ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7299if test -n "$ac_ct_NMEDIT"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7301$as_echo "$ac_ct_NMEDIT" >&6; }
7302else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
7305fi
7306
7307 if test "x$ac_ct_NMEDIT" = x; then
7308 NMEDIT=":"
7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311yes:)
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314ac_tool_warned=yes ;;
7315esac
7316 NMEDIT=$ac_ct_NMEDIT
7317 fi
7318else
7319 NMEDIT="$ac_cv_prog_NMEDIT"
7320fi
7321
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7324set dummy ${ac_tool_prefix}lipo; ac_word=$2
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326$as_echo_n "checking for $ac_word... " >&6; }
7327if ${ac_cv_prog_LIPO+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329else
7330 if test -n "$LIPO"; then
7331 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7332else
7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345 done
7346IFS=$as_save_IFS
7347
7348fi
7349fi
7350LIPO=$ac_cv_prog_LIPO
7351if test -n "$LIPO"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7353$as_echo "$LIPO" >&6; }
7354else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356$as_echo "no" >&6; }
7357fi
7358
7359
7360fi
7361if test -z "$ac_cv_prog_LIPO"; then
7362 ac_ct_LIPO=$LIPO
7363 # Extract the first word of "lipo", so it can be a program name with args.
7364set dummy lipo; ac_word=$2
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369else
7370 if test -n "$ac_ct_LIPO"; then
7371 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_LIPO="lipo"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384done
7385 done
7386IFS=$as_save_IFS
7387
7388fi
7389fi
7390ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7391if test -n "$ac_ct_LIPO"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7393$as_echo "$ac_ct_LIPO" >&6; }
7394else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398
7399 if test "x$ac_ct_LIPO" = x; then
7400 LIPO=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403yes:)
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406ac_tool_warned=yes ;;
7407esac
7408 LIPO=$ac_ct_LIPO
7409 fi
7410else
7411 LIPO="$ac_cv_prog_LIPO"
7412fi
7413
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7416set dummy ${ac_tool_prefix}otool; ac_word=$2
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418$as_echo_n "checking for $ac_word... " >&6; }
7419if ${ac_cv_prog_OTOOL+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421else
7422 if test -n "$OTOOL"; then
7423 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436done
7437 done
7438IFS=$as_save_IFS
7439
7440fi
7441fi
7442OTOOL=$ac_cv_prog_OTOOL
7443if test -n "$OTOOL"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7445$as_echo "$OTOOL" >&6; }
7446else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448$as_echo "no" >&6; }
7449fi
7450
7451
7452fi
7453if test -z "$ac_cv_prog_OTOOL"; then
7454 ac_ct_OTOOL=$OTOOL
7455 # Extract the first word of "otool", so it can be a program name with args.
7456set dummy otool; ac_word=$2
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458$as_echo_n "checking for $ac_word... " >&6; }
7459if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461else
7462 if test -n "$ac_ct_OTOOL"; then
7463 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_OTOOL="otool"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476done
7477 done
7478IFS=$as_save_IFS
7479
7480fi
7481fi
7482ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7483if test -n "$ac_ct_OTOOL"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7485$as_echo "$ac_ct_OTOOL" >&6; }
7486else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488$as_echo "no" >&6; }
7489fi
7490
7491 if test "x$ac_ct_OTOOL" = x; then
7492 OTOOL=":"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498ac_tool_warned=yes ;;
7499esac
7500 OTOOL=$ac_ct_OTOOL
7501 fi
7502else
7503 OTOOL="$ac_cv_prog_OTOOL"
7504fi
7505
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7508set dummy ${ac_tool_prefix}otool64; ac_word=$2
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510$as_echo_n "checking for $ac_word... " >&6; }
7511if ${ac_cv_prog_OTOOL64+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513else
7514 if test -n "$OTOOL64"; then
7515 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7516else
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528done
7529 done
7530IFS=$as_save_IFS
7531
7532fi
7533fi
7534OTOOL64=$ac_cv_prog_OTOOL64
7535if test -n "$OTOOL64"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7537$as_echo "$OTOOL64" >&6; }
7538else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
7541fi
7542
7543
7544fi
7545if test -z "$ac_cv_prog_OTOOL64"; then
7546 ac_ct_OTOOL64=$OTOOL64
7547 # Extract the first word of "otool64", so it can be a program name with args.
7548set dummy otool64; ac_word=$2
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550$as_echo_n "checking for $ac_word... " >&6; }
7551if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553else
7554 if test -n "$ac_ct_OTOOL64"; then
7555 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7556else
7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_ac_ct_OTOOL64="otool64"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
7569 done
7570IFS=$as_save_IFS
7571
7572fi
7573fi
7574ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7575if test -n "$ac_ct_OTOOL64"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7577$as_echo "$ac_ct_OTOOL64" >&6; }
7578else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
7581fi
7582
7583 if test "x$ac_ct_OTOOL64" = x; then
7584 OTOOL64=":"
7585 else
7586 case $cross_compiling:$ac_tool_warned in
7587yes:)
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590ac_tool_warned=yes ;;
7591esac
7592 OTOOL64=$ac_ct_OTOOL64
7593 fi
7594else
7595 OTOOL64="$ac_cv_prog_OTOOL64"
7596fi
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7625$as_echo_n "checking for -single_module linker flag... " >&6; }
7626if ${lt_cv_apple_cc_single_mod+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628else
7629 lt_cv_apple_cc_single_mod=no
7630 if test -z "${LT_MULTI_MODULE}"; then
7631 # By default we will add the -single_module flag. You can override
7632 # by either setting the environment variable LT_MULTI_MODULE
7633 # non-empty at configure time, or by adding -multi_module to the
7634 # link flags.
7635 rm -rf libconftest.dylib*
7636 echo "int foo(void){return 1;}" > conftest.c
7637 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7638-dynamiclib -Wl,-single_module conftest.c" >&5
7639 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7640 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7641 _lt_result=$?
7642 # If there is a non-empty error log, and "single_module"
7643 # appears in it, assume the flag caused a linker warning
7644 if test -s conftest.err && $GREP single_module conftest.err; then
7645 cat conftest.err >&5
7646 # Otherwise, if the output was created with a 0 exit code from
7647 # the compiler, it worked.
7648 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7649 lt_cv_apple_cc_single_mod=yes
7650 else
7651 cat conftest.err >&5
7652 fi
7653 rm -rf libconftest.dylib*
7654 rm -f conftest.*
7655 fi
7656fi
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7658$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7659
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7661$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7662if ${lt_cv_ld_exported_symbols_list+:} false; then :
7663 $as_echo_n "(cached) " >&6
7664else
7665 lt_cv_ld_exported_symbols_list=no
7666 save_LDFLAGS=$LDFLAGS
7667 echo "_main" > conftest.sym
7668 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h. */
7671
7672int
7673main ()
7674{
7675
7676 ;
7677 return 0;
7678}
7679_ACEOF
7680if ac_fn_c_try_link "$LINENO"; then :
7681 lt_cv_ld_exported_symbols_list=yes
7682else
7683 lt_cv_ld_exported_symbols_list=no
7684fi
7685rm -f core conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 LDFLAGS="$save_LDFLAGS"
7688
7689fi
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7691$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7694$as_echo_n "checking for -force_load linker flag... " >&6; }
7695if ${lt_cv_ld_force_load+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697else
7698 lt_cv_ld_force_load=no
7699 cat > conftest.c << _LT_EOF
7700int forced_loaded() { return 2;}
7701_LT_EOF
7702 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7703 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7704 echo "$AR cru libconftest.a conftest.o" >&5
7705 $AR cru libconftest.a conftest.o 2>&5
7706 echo "$RANLIB libconftest.a" >&5
7707 $RANLIB libconftest.a 2>&5
7708 cat > conftest.c << _LT_EOF
7709int main() { return 0;}
7710_LT_EOF
7711 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7712 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7713 _lt_result=$?
7714 if test -s conftest.err && $GREP force_load conftest.err; then
7715 cat conftest.err >&5
7716 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7717 lt_cv_ld_force_load=yes
7718 else
7719 cat conftest.err >&5
7720 fi
7721 rm -f conftest.err libconftest.a conftest conftest.c
7722 rm -rf conftest.dSYM
7723
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7726$as_echo "$lt_cv_ld_force_load" >&6; }
7727 case $host_os in
7728 rhapsody* | darwin1.[012])
7729 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7730 darwin1.*)
7731 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7732 darwin*) # darwin 5.x on
7733 # if running on 10.5 or later, the deployment target defaults
7734 # to the OS version, if on x86, and 10.4, the deployment
7735 # target defaults to 10.4. Don't you love it?
7736 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7737 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7738 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7739 10.[012]*)
7740 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7741 10.*)
7742 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7743 esac
7744 ;;
7745 esac
7746 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7747 _lt_dar_single_mod='$single_module'
7748 fi
7749 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7750 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7751 else
7752 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7753 fi
7754 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7755 _lt_dsymutil='~$DSYMUTIL $lib || :'
7756 else
7757 _lt_dsymutil=
7758 fi
7759 ;;
7760 esac
7761
7762ac_ext=c
7763ac_cpp='$CPP $CPPFLAGS'
7764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7766ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7768$as_echo_n "checking how to run the C preprocessor... " >&6; }
7769# On Suns, sometimes $CPP names a directory.
7770if test -n "$CPP" && test -d "$CPP"; then
7771 CPP=
7772fi
7773if test -z "$CPP"; then
7774 if ${ac_cv_prog_CPP+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776else
7777 # Double quotes because CPP needs to be expanded
7778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7779 do
7780 ac_preproc_ok=false
7781for ac_c_preproc_warn_flag in '' yes
7782do
7783 # Use a header file that comes with gcc, so configuring glibc
7784 # with a fresh cross-compiler works.
7785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 # <limits.h> exists even on freestanding compilers.
7787 # On the NeXT, cc -E runs the code through the compiler's parser,
7788 # not just through cpp. "Syntax error" is here to catch this case.
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h. */
7791#ifdef __STDC__
7792# include <limits.h>
7793#else
7794# include <assert.h>
7795#endif
7796 Syntax error
7797_ACEOF
7798if ac_fn_c_try_cpp "$LINENO"; then :
7799
7800else
7801 # Broken: fails on valid input.
7802continue
7803fi
7804rm -f conftest.err conftest.i conftest.$ac_ext
7805
7806 # OK, works on sane cases. Now check whether nonexistent headers
7807 # can be detected and how.
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h. */
7810#include <ac_nonexistent.h>
7811_ACEOF
7812if ac_fn_c_try_cpp "$LINENO"; then :
7813 # Broken: success on invalid input.
7814continue
7815else
7816 # Passes both tests.
7817ac_preproc_ok=:
7818break
7819fi
7820rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822done
7823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7824rm -f conftest.i conftest.err conftest.$ac_ext
7825if $ac_preproc_ok; then :
7826 break
7827fi
7828
7829 done
7830 ac_cv_prog_CPP=$CPP
7831
7832fi
7833 CPP=$ac_cv_prog_CPP
7834else
7835 ac_cv_prog_CPP=$CPP
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7838$as_echo "$CPP" >&6; }
7839ac_preproc_ok=false
7840for ac_c_preproc_warn_flag in '' yes
7841do
7842 # Use a header file that comes with gcc, so configuring glibc
7843 # with a fresh cross-compiler works.
7844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 # <limits.h> exists even on freestanding compilers.
7846 # On the NeXT, cc -E runs the code through the compiler's parser,
7847 # not just through cpp. "Syntax error" is here to catch this case.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h. */
7850#ifdef __STDC__
7851# include <limits.h>
7852#else
7853# include <assert.h>
7854#endif
7855 Syntax error
7856_ACEOF
7857if ac_fn_c_try_cpp "$LINENO"; then :
7858
7859else
7860 # Broken: fails on valid input.
7861continue
7862fi
7863rm -f conftest.err conftest.i conftest.$ac_ext
7864
7865 # OK, works on sane cases. Now check whether nonexistent headers
7866 # can be detected and how.
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h. */
7869#include <ac_nonexistent.h>
7870_ACEOF
7871if ac_fn_c_try_cpp "$LINENO"; then :
7872 # Broken: success on invalid input.
7873continue
7874else
7875 # Passes both tests.
7876ac_preproc_ok=:
7877break
7878fi
7879rm -f conftest.err conftest.i conftest.$ac_ext
7880
7881done
7882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7883rm -f conftest.i conftest.err conftest.$ac_ext
7884if $ac_preproc_ok; then :
7885
7886else
7887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7889as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7890See \`config.log' for more details" "$LINENO" 5; }
7891fi
7892
7893ac_ext=c
7894ac_cpp='$CPP $CPPFLAGS'
7895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898
7899
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7901$as_echo_n "checking for ANSI C header files... " >&6; }
7902if ${ac_cv_header_stdc+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904else
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h. */
7907#include <stdlib.h>
7908#include <stdarg.h>
7909#include <string.h>
7910#include <float.h>
7911
7912int
7913main ()
7914{
7915
7916 ;
7917 return 0;
7918}
7919_ACEOF
7920if ac_fn_c_try_compile "$LINENO"; then :
7921 ac_cv_header_stdc=yes
7922else
7923 ac_cv_header_stdc=no
7924fi
7925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926
7927if test $ac_cv_header_stdc = yes; then
7928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h. */
7931#include <string.h>
7932
7933_ACEOF
7934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7935 $EGREP "memchr" >/dev/null 2>&1; then :
7936
7937else
7938 ac_cv_header_stdc=no
7939fi
7940rm -f conftest*
7941
7942fi
7943
7944if test $ac_cv_header_stdc = yes; then
7945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h. */
7948#include <stdlib.h>
7949
7950_ACEOF
7951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7952 $EGREP "free" >/dev/null 2>&1; then :
7953
7954else
7955 ac_cv_header_stdc=no
7956fi
7957rm -f conftest*
7958
7959fi
7960
7961if test $ac_cv_header_stdc = yes; then
7962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7963 if test "$cross_compiling" = yes; then :
7964 :
7965else
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h. */
7968#include <ctype.h>
7969#include <stdlib.h>
7970#if ((' ' & 0x0FF) == 0x020)
7971# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7972# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7973#else
7974# define ISLOWER(c) \
7975 (('a' <= (c) && (c) <= 'i') \
7976 || ('j' <= (c) && (c) <= 'r') \
7977 || ('s' <= (c) && (c) <= 'z'))
7978# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7979#endif
7980
7981#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7982int
7983main ()
7984{
7985 int i;
7986 for (i = 0; i < 256; i++)
7987 if (XOR (islower (i), ISLOWER (i))
7988 || toupper (i) != TOUPPER (i))
7989 return 2;
7990 return 0;
7991}
7992_ACEOF
7993if ac_fn_c_try_run "$LINENO"; then :
7994
7995else
7996 ac_cv_header_stdc=no
7997fi
7998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7999 conftest.$ac_objext conftest.beam conftest.$ac_ext
8000fi
8001
8002fi
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8005$as_echo "$ac_cv_header_stdc" >&6; }
8006if test $ac_cv_header_stdc = yes; then
8007
8008$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8009
8010fi
8011
8012# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8013for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8014 inttypes.h stdint.h unistd.h
8015do :
8016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8017ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8018"
8019if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8020 cat >>confdefs.h <<_ACEOF
8021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8022_ACEOF
8023
8024fi
8025
8026done
8027
8028
8029for ac_header in dlfcn.h
8030do :
8031 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8032"
8033if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8034 cat >>confdefs.h <<_ACEOF
8035#define HAVE_DLFCN_H 1
8036_ACEOF
8037
8038fi
8039
8040done
8041
8042
8043
8044
8045
8046# Set options
8047
8048
8049
8050 enable_dlopen=no
8051
8052
8053 enable_win32_dll=no
8054
8055
8056 # Check whether --enable-shared was given.
8057if test "${enable_shared+set}" = set; then :
8058 enableval=$enable_shared; p=${PACKAGE-default}
8059 case $enableval in
8060 yes) enable_shared=yes ;;
8061 no) enable_shared=no ;;
8062 *)
8063 enable_shared=no
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066 for pkg in $enableval; do
8067 IFS="$lt_save_ifs"
8068 if test "X$pkg" = "X$p"; then
8069 enable_shared=yes
8070 fi
8071 done
8072 IFS="$lt_save_ifs"
8073 ;;
8074 esac
8075else
8076 enable_shared=yes
8077fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087 # Check whether --enable-static was given.
8088if test "${enable_static+set}" = set; then :
8089 enableval=$enable_static; p=${PACKAGE-default}
8090 case $enableval in
8091 yes) enable_static=yes ;;
8092 no) enable_static=no ;;
8093 *)
8094 enable_static=no
8095 # Look at the argument we got. We use all the common list separators.
8096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8097 for pkg in $enableval; do
8098 IFS="$lt_save_ifs"
8099 if test "X$pkg" = "X$p"; then
8100 enable_static=yes
8101 fi
8102 done
8103 IFS="$lt_save_ifs"
8104 ;;
8105 esac
8106else
8107 enable_static=yes
8108fi
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119# Check whether --with-pic was given.
8120if test "${with_pic+set}" = set; then :
8121 withval=$with_pic; lt_p=${PACKAGE-default}
8122 case $withval in
8123 yes|no) pic_mode=$withval ;;
8124 *)
8125 pic_mode=default
8126 # Look at the argument we got. We use all the common list separators.
8127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8128 for lt_pkg in $withval; do
8129 IFS="$lt_save_ifs"
8130 if test "X$lt_pkg" = "X$lt_p"; then
8131 pic_mode=yes
8132 fi
8133 done
8134 IFS="$lt_save_ifs"
8135 ;;
8136 esac
8137else
8138 pic_mode=default
8139fi
8140
8141
8142test -z "$pic_mode" && pic_mode=default
8143
8144
8145
8146
8147
8148
8149
8150 # Check whether --enable-fast-install was given.
8151if test "${enable_fast_install+set}" = set; then :
8152 enableval=$enable_fast_install; p=${PACKAGE-default}
8153 case $enableval in
8154 yes) enable_fast_install=yes ;;
8155 no) enable_fast_install=no ;;
8156 *)
8157 enable_fast_install=no
8158 # Look at the argument we got. We use all the common list separators.
8159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8160 for pkg in $enableval; do
8161 IFS="$lt_save_ifs"
8162 if test "X$pkg" = "X$p"; then
8163 enable_fast_install=yes
8164 fi
8165 done
8166 IFS="$lt_save_ifs"
8167 ;;
8168 esac
8169else
8170 enable_fast_install=yes
8171fi
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183# This can be used to rebuild libtool when needed
8184LIBTOOL_DEPS="$ltmain"
8185
8186# Always use our own libtool.
8187LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218test -z "$LN_S" && LN_S="ln -s"
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233if test -n "${ZSH_VERSION+set}" ; then
8234 setopt NO_GLOB_SUBST
8235fi
8236
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8238$as_echo_n "checking for objdir... " >&6; }
8239if ${lt_cv_objdir+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241else
8242 rm -f .libs 2>/dev/null
8243mkdir .libs 2>/dev/null
8244if test -d .libs; then
8245 lt_cv_objdir=.libs
8246else
8247 # MS-DOS does not allow filenames that begin with a dot.
8248 lt_cv_objdir=_libs
8249fi
8250rmdir .libs 2>/dev/null
8251fi
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8253$as_echo "$lt_cv_objdir" >&6; }
8254objdir=$lt_cv_objdir
8255
8256
8257
8258
8259
8260cat >>confdefs.h <<_ACEOF
8261#define LT_OBJDIR "$lt_cv_objdir/"
8262_ACEOF
8263
8264
8265
8266
8267case $host_os in
8268aix3*)
8269 # AIX sometimes has problems with the GCC collect2 program. For some
8270 # reason, if we set the COLLECT_NAMES environment variable, the problems
8271 # vanish in a puff of smoke.
8272 if test "X${COLLECT_NAMES+set}" != Xset; then
8273 COLLECT_NAMES=
8274 export COLLECT_NAMES
8275 fi
8276 ;;
8277esac
8278
8279# Global variables:
8280ofile=libtool
8281can_build_shared=yes
8282
8283# All known linkers require a `.a' archive for static linking (except MSVC,
8284# which needs '.lib').
8285libext=a
8286
8287with_gnu_ld="$lt_cv_prog_gnu_ld"
8288
8289old_CC="$CC"
8290old_CFLAGS="$CFLAGS"
8291
8292# Set sane defaults for various variables
8293test -z "$CC" && CC=cc
8294test -z "$LTCC" && LTCC=$CC
8295test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8296test -z "$LD" && LD=ld
8297test -z "$ac_objext" && ac_objext=o
8298
8299for cc_temp in $compiler""; do
8300 case $cc_temp in
8301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8303 \-*) ;;
8304 *) break;;
8305 esac
8306done
8307cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8308
8309
8310# Only perform the check for file, if the check method requires it
8311test -z "$MAGIC_CMD" && MAGIC_CMD=file
8312case $deplibs_check_method in
8313file_magic*)
8314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8316$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8317if ${lt_cv_path_MAGIC_CMD+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319else
8320 case $MAGIC_CMD in
8321[\\/*] | ?:[\\/]*)
8322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8323 ;;
8324*)
8325 lt_save_MAGIC_CMD="$MAGIC_CMD"
8326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8328 for ac_dir in $ac_dummy; do
8329 IFS="$lt_save_ifs"
8330 test -z "$ac_dir" && ac_dir=.
8331 if test -f $ac_dir/${ac_tool_prefix}file; then
8332 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8333 if test -n "$file_magic_test_file"; then
8334 case $deplibs_check_method in
8335 "file_magic "*)
8336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8339 $EGREP "$file_magic_regex" > /dev/null; then
8340 :
8341 else
8342 cat <<_LT_EOF 1>&2
8343
8344*** Warning: the command libtool uses to detect shared libraries,
8345*** $file_magic_cmd, produces output that libtool cannot recognize.
8346*** The result is that libtool may fail to recognize shared libraries
8347*** as such. This will affect the creation of libtool libraries that
8348*** depend on shared libraries, but programs linked with such libtool
8349*** libraries will work regardless of this problem. Nevertheless, you
8350*** may want to report the problem to your system manager and/or to
8351*** bug-libtool@gnu.org
8352
8353_LT_EOF
8354 fi ;;
8355 esac
8356 fi
8357 break
8358 fi
8359 done
8360 IFS="$lt_save_ifs"
8361 MAGIC_CMD="$lt_save_MAGIC_CMD"
8362 ;;
8363esac
8364fi
8365
8366MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8367if test -n "$MAGIC_CMD"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8369$as_echo "$MAGIC_CMD" >&6; }
8370else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372$as_echo "no" >&6; }
8373fi
8374
8375
8376
8377
8378
8379if test -z "$lt_cv_path_MAGIC_CMD"; then
8380 if test -n "$ac_tool_prefix"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8382$as_echo_n "checking for file... " >&6; }
8383if ${lt_cv_path_MAGIC_CMD+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385else
8386 case $MAGIC_CMD in
8387[\\/*] | ?:[\\/]*)
8388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8389 ;;
8390*)
8391 lt_save_MAGIC_CMD="$MAGIC_CMD"
8392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8394 for ac_dir in $ac_dummy; do
8395 IFS="$lt_save_ifs"
8396 test -z "$ac_dir" && ac_dir=.
8397 if test -f $ac_dir/file; then
8398 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8399 if test -n "$file_magic_test_file"; then
8400 case $deplibs_check_method in
8401 "file_magic "*)
8402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8405 $EGREP "$file_magic_regex" > /dev/null; then
8406 :
8407 else
8408 cat <<_LT_EOF 1>&2
8409
8410*** Warning: the command libtool uses to detect shared libraries,
8411*** $file_magic_cmd, produces output that libtool cannot recognize.
8412*** The result is that libtool may fail to recognize shared libraries
8413*** as such. This will affect the creation of libtool libraries that
8414*** depend on shared libraries, but programs linked with such libtool
8415*** libraries will work regardless of this problem. Nevertheless, you
8416*** may want to report the problem to your system manager and/or to
8417*** bug-libtool@gnu.org
8418
8419_LT_EOF
8420 fi ;;
8421 esac
8422 fi
8423 break
8424 fi
8425 done
8426 IFS="$lt_save_ifs"
8427 MAGIC_CMD="$lt_save_MAGIC_CMD"
8428 ;;
8429esac
8430fi
8431
8432MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8433if test -n "$MAGIC_CMD"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8435$as_echo "$MAGIC_CMD" >&6; }
8436else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
8439fi
8440
8441
8442 else
8443 MAGIC_CMD=:
8444 fi
8445fi
8446
8447 fi
8448 ;;
8449esac
8450
8451# Use C for the default configuration in the libtool script
8452
8453lt_save_CC="$CC"
8454ac_ext=c
8455ac_cpp='$CPP $CPPFLAGS'
8456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8458ac_compiler_gnu=$ac_cv_c_compiler_gnu
8459
8460
8461# Source file extension for C test sources.
8462ac_ext=c
8463
8464# Object file extension for compiled C test sources.
8465objext=o
8466objext=$objext
8467
8468# Code to be used in simple compile tests
8469lt_simple_compile_test_code="int some_variable = 0;"
8470
8471# Code to be used in simple link tests
8472lt_simple_link_test_code='int main(){return(0);}'
8473
8474
8475
8476
8477
8478
8479
8480# If no C compiler was specified, use CC.
8481LTCC=${LTCC-"$CC"}
8482
8483# If no C compiler flags were specified, use CFLAGS.
8484LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8485
8486# Allow CC to be a program name with arguments.
8487compiler=$CC
8488
8489# Save the default compiler, since it gets overwritten when the other
8490# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8491compiler_DEFAULT=$CC
8492
8493# save warnings/boilerplate of simple test code
8494ac_outfile=conftest.$ac_objext
8495echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8496eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8497_lt_compiler_boilerplate=`cat conftest.err`
8498$RM conftest*
8499
8500ac_outfile=conftest.$ac_objext
8501echo "$lt_simple_link_test_code" >conftest.$ac_ext
8502eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8503_lt_linker_boilerplate=`cat conftest.err`
8504$RM -r conftest*
8505
8506
8507if test -n "$compiler"; then
8508
8509lt_prog_compiler_no_builtin_flag=
8510
8511if test "$GCC" = yes; then
8512 case $cc_basename in
8513 nvcc*)
8514 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8515 *)
8516 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8517 esac
8518
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8520$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8521if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523else
8524 lt_cv_prog_compiler_rtti_exceptions=no
8525 ac_outfile=conftest.$ac_objext
8526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8527 lt_compiler_flag="-fno-rtti -fno-exceptions"
8528 # Insert the option either (1) after the last *FLAGS variable, or
8529 # (2) before a word containing "conftest.", or (3) at the end.
8530 # Note that $ac_compile itself does not contain backslashes and begins
8531 # with a dollar sign (not a hyphen), so the echo should work correctly.
8532 # The option is referenced via a variable to avoid confusing sed.
8533 lt_compile=`echo "$ac_compile" | $SED \
8534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8536 -e 's:$: $lt_compiler_flag:'`
8537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8538 (eval "$lt_compile" 2>conftest.err)
8539 ac_status=$?
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 if (exit $ac_status) && test -s "$ac_outfile"; then
8543 # The compiler can only warn and ignore the option if not recognized
8544 # So say no if there are warnings other than the usual output.
8545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8548 lt_cv_prog_compiler_rtti_exceptions=yes
8549 fi
8550 fi
8551 $RM conftest*
8552
8553fi
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8555$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8556
8557if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8558 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8559else
8560 :
8561fi
8562
8563fi
8564
8565
8566
8567
8568
8569
8570 lt_prog_compiler_wl=
8571lt_prog_compiler_pic=
8572lt_prog_compiler_static=
8573
8574
8575 if test "$GCC" = yes; then
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_static='-static'
8578
8579 case $host_os in
8580 aix*)
8581 # All AIX code is PIC.
8582 if test "$host_cpu" = ia64; then
8583 # AIX 5 now supports IA64 processor
8584 lt_prog_compiler_static='-Bstatic'
8585 fi
8586 ;;
8587
8588 amigaos*)
8589 case $host_cpu in
8590 powerpc)
8591 # see comment about AmigaOS4 .so support
8592 lt_prog_compiler_pic='-fPIC'
8593 ;;
8594 m68k)
8595 # FIXME: we need at least 68020 code to build shared libraries, but
8596 # adding the `-m68020' flag to GCC prevents building anything better,
8597 # like `-m68040'.
8598 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8599 ;;
8600 esac
8601 ;;
8602
8603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8604 # PIC is the default for these OSes.
8605 ;;
8606
8607 mingw* | cygwin* | pw32* | os2* | cegcc*)
8608 # This hack is so that the source file can tell whether it is being
8609 # built for inclusion in a dll (and should export symbols for example).
8610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8611 # (--disable-auto-import) libraries
8612 lt_prog_compiler_pic='-DDLL_EXPORT'
8613 ;;
8614
8615 darwin* | rhapsody*)
8616 # PIC is the default on this platform
8617 # Common symbols not allowed in MH_DYLIB files
8618 lt_prog_compiler_pic='-fno-common'
8619 ;;
8620
8621 haiku*)
8622 # PIC is the default for Haiku.
8623 # The "-static" flag exists, but is broken.
8624 lt_prog_compiler_static=
8625 ;;
8626
8627 hpux*)
8628 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8629 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8630 # sets the default TLS model and affects inlining.
8631 case $host_cpu in
8632 hppa*64*)
8633 # +Z the default
8634 ;;
8635 *)
8636 lt_prog_compiler_pic='-fPIC'
8637 ;;
8638 esac
8639 ;;
8640
8641 interix[3-9]*)
8642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8643 # Instead, we relocate shared libraries at runtime.
8644 ;;
8645
8646 msdosdjgpp*)
8647 # Just because we use GCC doesn't mean we suddenly get shared libraries
8648 # on systems that don't support them.
8649 lt_prog_compiler_can_build_shared=no
8650 enable_shared=no
8651 ;;
8652
8653 *nto* | *qnx*)
8654 # QNX uses GNU C++, but need to define -shared option too, otherwise
8655 # it will coredump.
8656 lt_prog_compiler_pic='-fPIC -shared'
8657 ;;
8658
8659 sysv4*MP*)
8660 if test -d /usr/nec; then
8661 lt_prog_compiler_pic=-Kconform_pic
8662 fi
8663 ;;
8664
8665 *)
8666 lt_prog_compiler_pic='-fPIC'
8667 ;;
8668 esac
8669
8670 case $cc_basename in
8671 nvcc*) # Cuda Compiler Driver 2.2
8672 lt_prog_compiler_wl='-Xlinker '
8673 if test -n "$lt_prog_compiler_pic"; then
8674 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8675 fi
8676 ;;
8677 esac
8678 else
8679 # PORTME Check for flag to pass linker flags through the system compiler.
8680 case $host_os in
8681 aix*)
8682 lt_prog_compiler_wl='-Wl,'
8683 if test "$host_cpu" = ia64; then
8684 # AIX 5 now supports IA64 processor
8685 lt_prog_compiler_static='-Bstatic'
8686 else
8687 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8688 fi
8689 ;;
8690
8691 mingw* | cygwin* | pw32* | os2* | cegcc*)
8692 # This hack is so that the source file can tell whether it is being
8693 # built for inclusion in a dll (and should export symbols for example).
8694 lt_prog_compiler_pic='-DDLL_EXPORT'
8695 ;;
8696
8697 hpux9* | hpux10* | hpux11*)
8698 lt_prog_compiler_wl='-Wl,'
8699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8700 # not for PA HP-UX.
8701 case $host_cpu in
8702 hppa*64*|ia64*)
8703 # +Z the default
8704 ;;
8705 *)
8706 lt_prog_compiler_pic='+Z'
8707 ;;
8708 esac
8709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8710 lt_prog_compiler_static='${wl}-a ${wl}archive'
8711 ;;
8712
8713 irix5* | irix6* | nonstopux*)
8714 lt_prog_compiler_wl='-Wl,'
8715 # PIC (with -KPIC) is the default.
8716 lt_prog_compiler_static='-non_shared'
8717 ;;
8718
8719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8720 case $cc_basename in
8721 # old Intel for x86_64 which still supported -KPIC.
8722 ecc*)
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-static'
8726 ;;
8727 # icc used to be incompatible with GCC.
8728 # ICC 10 doesn't accept -KPIC any more.
8729 icc* | ifort*)
8730 lt_prog_compiler_wl='-Wl,'
8731 lt_prog_compiler_pic='-fPIC'
8732 lt_prog_compiler_static='-static'
8733 ;;
8734 # Lahey Fortran 8.1.
8735 lf95*)
8736 lt_prog_compiler_wl='-Wl,'
8737 lt_prog_compiler_pic='--shared'
8738 lt_prog_compiler_static='--static'
8739 ;;
8740 nagfor*)
8741 # NAG Fortran compiler
8742 lt_prog_compiler_wl='-Wl,-Wl,,'
8743 lt_prog_compiler_pic='-PIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 ;;
8746 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8747 # Portland Group compilers (*not* the Pentium gcc compiler,
8748 # which looks to be a dead project)
8749 lt_prog_compiler_wl='-Wl,'
8750 lt_prog_compiler_pic='-fpic'
8751 lt_prog_compiler_static='-Bstatic'
8752 ;;
8753 ccc*)
8754 lt_prog_compiler_wl='-Wl,'
8755 # All Alpha code is PIC.
8756 lt_prog_compiler_static='-non_shared'
8757 ;;
8758 xl* | bgxl* | bgf* | mpixl*)
8759 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_pic='-qpic'
8762 lt_prog_compiler_static='-qstaticlink'
8763 ;;
8764 *)
8765 case `$CC -V 2>&1 | sed 5q` in
8766 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8767 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8770 lt_prog_compiler_wl=''
8771 ;;
8772 *Sun\ F* | *Sun*Fortran*)
8773 lt_prog_compiler_pic='-KPIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 lt_prog_compiler_wl='-Qoption ld '
8776 ;;
8777 *Sun\ C*)
8778 # Sun C 5.9
8779 lt_prog_compiler_pic='-KPIC'
8780 lt_prog_compiler_static='-Bstatic'
8781 lt_prog_compiler_wl='-Wl,'
8782 ;;
8783 *Intel*\ [CF]*Compiler*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-fPIC'
8786 lt_prog_compiler_static='-static'
8787 ;;
8788 *Portland\ Group*)
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_pic='-fpic'
8791 lt_prog_compiler_static='-Bstatic'
8792 ;;
8793 esac
8794 ;;
8795 esac
8796 ;;
8797
8798 newsos6)
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802
8803 *nto* | *qnx*)
8804 # QNX uses GNU C++, but need to define -shared option too, otherwise
8805 # it will coredump.
8806 lt_prog_compiler_pic='-fPIC -shared'
8807 ;;
8808
8809 osf3* | osf4* | osf5*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # All OSF/1 code is PIC.
8812 lt_prog_compiler_static='-non_shared'
8813 ;;
8814
8815 rdos*)
8816 lt_prog_compiler_static='-non_shared'
8817 ;;
8818
8819 solaris*)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 case $cc_basename in
8823 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8824 lt_prog_compiler_wl='-Qoption ld ';;
8825 *)
8826 lt_prog_compiler_wl='-Wl,';;
8827 esac
8828 ;;
8829
8830 sunos4*)
8831 lt_prog_compiler_wl='-Qoption ld '
8832 lt_prog_compiler_pic='-PIC'
8833 lt_prog_compiler_static='-Bstatic'
8834 ;;
8835
8836 sysv4 | sysv4.2uw2* | sysv4.3*)
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='-KPIC'
8839 lt_prog_compiler_static='-Bstatic'
8840 ;;
8841
8842 sysv4*MP*)
8843 if test -d /usr/nec ;then
8844 lt_prog_compiler_pic='-Kconform_pic'
8845 lt_prog_compiler_static='-Bstatic'
8846 fi
8847 ;;
8848
8849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8853 ;;
8854
8855 unicos*)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_can_build_shared=no
8858 ;;
8859
8860 uts4*)
8861 lt_prog_compiler_pic='-pic'
8862 lt_prog_compiler_static='-Bstatic'
8863 ;;
8864
8865 *)
8866 lt_prog_compiler_can_build_shared=no
8867 ;;
8868 esac
8869 fi
8870
8871case $host_os in
8872 # For platforms which do not support PIC, -DPIC is meaningless:
8873 *djgpp*)
8874 lt_prog_compiler_pic=
8875 ;;
8876 *)
8877 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8878 ;;
8879esac
8880
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8882$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8883if ${lt_cv_prog_compiler_pic+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885else
8886 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8887fi
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8889$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8890lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8891
8892#
8893# Check to make sure the PIC flag actually works.
8894#
8895if test -n "$lt_prog_compiler_pic"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8897$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8898if ${lt_cv_prog_compiler_pic_works+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900else
8901 lt_cv_prog_compiler_pic_works=no
8902 ac_outfile=conftest.$ac_objext
8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 # The option is referenced via a variable to avoid confusing sed.
8910 lt_compile=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>conftest.err)
8916 ac_status=$?
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s "$ac_outfile"; then
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings other than the usual output.
8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_pic_works=yes
8926 fi
8927 fi
8928 $RM conftest*
8929
8930fi
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8932$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8933
8934if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8935 case $lt_prog_compiler_pic in
8936 "" | " "*) ;;
8937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8938 esac
8939else
8940 lt_prog_compiler_pic=
8941 lt_prog_compiler_can_build_shared=no
8942fi
8943
8944fi
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956#
8957# Check to make sure the static flag actually works.
8958#
8959wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8961$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8962if ${lt_cv_prog_compiler_static_works+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964else
8965 lt_cv_prog_compiler_static_works=no
8966 save_LDFLAGS="$LDFLAGS"
8967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8970 # The linker can only warn and ignore the option if not recognized
8971 # So say no if there are warnings
8972 if test -s conftest.err; then
8973 # Append any errors to the config.log.
8974 cat conftest.err 1>&5
8975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8977 if diff conftest.exp conftest.er2 >/dev/null; then
8978 lt_cv_prog_compiler_static_works=yes
8979 fi
8980 else
8981 lt_cv_prog_compiler_static_works=yes
8982 fi
8983 fi
8984 $RM -r conftest*
8985 LDFLAGS="$save_LDFLAGS"
8986
8987fi
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8989$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8990
8991if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8992 :
8993else
8994 lt_prog_compiler_static=
8995fi
8996
8997
8998
8999
9000
9001
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9004$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9005if ${lt_cv_prog_compiler_c_o+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007else
9008 lt_cv_prog_compiler_c_o=no
9009 $RM -r conftest 2>/dev/null
9010 mkdir conftest
9011 cd conftest
9012 mkdir out
9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9014
9015 lt_compiler_flag="-o out/conftest2.$ac_objext"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 lt_compile=`echo "$ac_compile" | $SED \
9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9023 -e 's:$: $lt_compiler_flag:'`
9024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9025 (eval "$lt_compile" 2>out/conftest.err)
9026 ac_status=$?
9027 cat out/conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9030 then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings
9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_c_o=yes
9037 fi
9038 fi
9039 chmod u+w . 2>&5
9040 $RM conftest*
9041 # SGI C++ compiler will create directory out/ii_files/ for
9042 # template instantiation
9043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9044 $RM out/* && rmdir out
9045 cd ..
9046 $RM -r conftest
9047 $RM conftest*
9048
9049fi
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9051$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9052
9053
9054
9055
9056
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9059$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9060if ${lt_cv_prog_compiler_c_o+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062else
9063 lt_cv_prog_compiler_c_o=no
9064 $RM -r conftest 2>/dev/null
9065 mkdir conftest
9066 cd conftest
9067 mkdir out
9068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069
9070 lt_compiler_flag="-o out/conftest2.$ac_objext"
9071 # Insert the option either (1) after the last *FLAGS variable, or
9072 # (2) before a word containing "conftest.", or (3) at the end.
9073 # Note that $ac_compile itself does not contain backslashes and begins
9074 # with a dollar sign (not a hyphen), so the echo should work correctly.
9075 lt_compile=`echo "$ac_compile" | $SED \
9076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078 -e 's:$: $lt_compiler_flag:'`
9079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9080 (eval "$lt_compile" 2>out/conftest.err)
9081 ac_status=$?
9082 cat out/conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9085 then
9086 # The compiler can only warn and ignore the option if not recognized
9087 # So say no if there are warnings
9088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9091 lt_cv_prog_compiler_c_o=yes
9092 fi
9093 fi
9094 chmod u+w . 2>&5
9095 $RM conftest*
9096 # SGI C++ compiler will create directory out/ii_files/ for
9097 # template instantiation
9098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9099 $RM out/* && rmdir out
9100 cd ..
9101 $RM -r conftest
9102 $RM conftest*
9103
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9106$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9107
9108
9109
9110
9111hard_links="nottested"
9112if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9113 # do not overwrite the value of need_locks provided by the user
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9115$as_echo_n "checking if we can lock with hard links... " >&6; }
9116 hard_links=yes
9117 $RM conftest*
9118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9119 touch conftest.a
9120 ln conftest.a conftest.b 2>&5 || hard_links=no
9121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9123$as_echo "$hard_links" >&6; }
9124 if test "$hard_links" = no; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9126$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9127 need_locks=warn
9128 fi
9129else
9130 need_locks=no
9131fi
9132
9133
9134
9135
9136
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9139$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9140
9141 runpath_var=
9142 allow_undefined_flag=
9143 always_export_symbols=no
9144 archive_cmds=
9145 archive_expsym_cmds=
9146 compiler_needs_object=no
9147 enable_shared_with_static_runtimes=no
9148 export_dynamic_flag_spec=
9149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9150 hardcode_automatic=no
9151 hardcode_direct=no
9152 hardcode_direct_absolute=no
9153 hardcode_libdir_flag_spec=
9154 hardcode_libdir_separator=
9155 hardcode_minus_L=no
9156 hardcode_shlibpath_var=unsupported
9157 inherit_rpath=no
9158 link_all_deplibs=unknown
9159 module_cmds=
9160 module_expsym_cmds=
9161 old_archive_from_new_cmds=
9162 old_archive_from_expsyms_cmds=
9163 thread_safe_flag_spec=
9164 whole_archive_flag_spec=
9165 # include_expsyms should be a list of space-separated symbols to be *always*
9166 # included in the symbol list
9167 include_expsyms=
9168 # exclude_expsyms can be an extended regexp of symbols to exclude
9169 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9170 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9171 # as well as any symbol that contains `d'.
9172 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9173 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9174 # platforms (ab)use it in PIC code, but their linkers get confused if
9175 # the symbol is explicitly referenced. Since portable code cannot
9176 # rely on this symbol name, it's probably fine to never include it in
9177 # preloaded symbol tables.
9178 # Exclude shared library initialization/finalization symbols.
9179 extract_expsyms_cmds=
9180
9181 case $host_os in
9182 cygwin* | mingw* | pw32* | cegcc*)
9183 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9184 # When not using gcc, we currently assume that we are using
9185 # Microsoft Visual C++.
9186 if test "$GCC" != yes; then
9187 with_gnu_ld=no
9188 fi
9189 ;;
9190 interix*)
9191 # we just hope/assume this is gcc and not c89 (= MSVC++)
9192 with_gnu_ld=yes
9193 ;;
9194 openbsd*)
9195 with_gnu_ld=no
9196 ;;
9197 esac
9198
9199 ld_shlibs=yes
9200
9201 # On some targets, GNU ld is compatible enough with the native linker
9202 # that we're better off using the native interface for both.
9203 lt_use_gnu_ld_interface=no
9204 if test "$with_gnu_ld" = yes; then
9205 case $host_os in
9206 aix*)
9207 # The AIX port of GNU ld has always aspired to compatibility
9208 # with the native linker. However, as the warning in the GNU ld
9209 # block says, versions before 2.19.5* couldn't really create working
9210 # shared libraries, regardless of the interface used.
9211 case `$LD -v 2>&1` in
9212 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9213 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9214 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9215 *)
9216 lt_use_gnu_ld_interface=yes
9217 ;;
9218 esac
9219 ;;
9220 *)
9221 lt_use_gnu_ld_interface=yes
9222 ;;
9223 esac
9224 fi
9225
9226 if test "$lt_use_gnu_ld_interface" = yes; then
9227 # If archive_cmds runs LD, not CC, wlarc should be empty
9228 wlarc='${wl}'
9229
9230 # Set some defaults for GNU ld with shared library support. These
9231 # are reset later if shared libraries are not supported. Putting them
9232 # here allows them to be overridden if necessary.
9233 runpath_var=LD_RUN_PATH
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 export_dynamic_flag_spec='${wl}--export-dynamic'
9236 # ancient GNU ld didn't support --whole-archive et. al.
9237 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9238 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9239 else
9240 whole_archive_flag_spec=
9241 fi
9242 supports_anon_versioning=no
9243 case `$LD -v 2>&1` in
9244 *GNU\ gold*) supports_anon_versioning=yes ;;
9245 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9246 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9247 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9248 *\ 2.11.*) ;; # other 2.11 versions
9249 *) supports_anon_versioning=yes ;;
9250 esac
9251
9252 # See if GNU ld supports shared libraries.
9253 case $host_os in
9254 aix[3-9]*)
9255 # On AIX/PPC, the GNU linker is very broken
9256 if test "$host_cpu" != ia64; then
9257 ld_shlibs=no
9258 cat <<_LT_EOF 1>&2
9259
9260*** Warning: the GNU linker, at least up to release 2.19, is reported
9261*** to be unable to reliably create shared libraries on AIX.
9262*** Therefore, libtool is disabling shared libraries support. If you
9263*** really care for shared libraries, you may want to install binutils
9264*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9265*** You will then need to restart the configuration process.
9266
9267_LT_EOF
9268 fi
9269 ;;
9270
9271 amigaos*)
9272 case $host_cpu in
9273 powerpc)
9274 # see comment about AmigaOS4 .so support
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds=''
9277 ;;
9278 m68k)
9279 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)'
9280 hardcode_libdir_flag_spec='-L$libdir'
9281 hardcode_minus_L=yes
9282 ;;
9283 esac
9284 ;;
9285
9286 beos*)
9287 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9288 allow_undefined_flag=unsupported
9289 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9290 # support --undefined. This deserves some investigation. FIXME
9291 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 else
9293 ld_shlibs=no
9294 fi
9295 ;;
9296
9297 cygwin* | mingw* | pw32* | cegcc*)
9298 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9299 # as there is no search path for DLLs.
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 export_dynamic_flag_spec='${wl}--export-all-symbols'
9302 allow_undefined_flag=unsupported
9303 always_export_symbols=no
9304 enable_shared_with_static_runtimes=yes
9305 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'
9306 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9307
9308 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9310 # If the export-symbols file already is a .def file (1st line
9311 # is EXPORTS), use it as is; otherwise, prepend...
9312 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9313 cp $export_symbols $output_objdir/$soname.def;
9314 else
9315 echo EXPORTS > $output_objdir/$soname.def;
9316 cat $export_symbols >> $output_objdir/$soname.def;
9317 fi~
9318 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9319 else
9320 ld_shlibs=no
9321 fi
9322 ;;
9323
9324 haiku*)
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 link_all_deplibs=yes
9327 ;;
9328
9329 interix[3-9]*)
9330 hardcode_direct=no
9331 hardcode_shlibpath_var=no
9332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9333 export_dynamic_flag_spec='${wl}-E'
9334 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9335 # Instead, shared libraries are loaded at an image base (0x10000000 by
9336 # default) and relocated if they conflict, which is a slow very memory
9337 # consuming and fragmenting process. To avoid this, we pick a random,
9338 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9339 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9341 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'
9342 ;;
9343
9344 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9345 tmp_diet=no
9346 if test "$host_os" = linux-dietlibc; then
9347 case $cc_basename in
9348 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9349 esac
9350 fi
9351 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9352 && test "$tmp_diet" = no
9353 then
9354 tmp_addflag=' $pic_flag'
9355 tmp_sharedflag='-shared'
9356 case $cc_basename,$host_cpu in
9357 pgcc*) # Portland Group C compiler
9358 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'
9359 tmp_addflag=' $pic_flag'
9360 ;;
9361 pgf77* | pgf90* | pgf95* | pgfortran*)
9362 # Portland Group f77 and f90 compilers
9363 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'
9364 tmp_addflag=' $pic_flag -Mnomain' ;;
9365 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9366 tmp_addflag=' -i_dynamic' ;;
9367 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9368 tmp_addflag=' -i_dynamic -nofor_main' ;;
9369 ifc* | ifort*) # Intel Fortran compiler
9370 tmp_addflag=' -nofor_main' ;;
9371 lf95*) # Lahey Fortran 8.1
9372 whole_archive_flag_spec=
9373 tmp_sharedflag='--shared' ;;
9374 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9375 tmp_sharedflag='-qmkshrobj'
9376 tmp_addflag= ;;
9377 nvcc*) # Cuda Compiler Driver 2.2
9378 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'
9379 compiler_needs_object=yes
9380 ;;
9381 esac
9382 case `$CC -V 2>&1 | sed 5q` in
9383 *Sun\ C*) # Sun C 5.9
9384 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'
9385 compiler_needs_object=yes
9386 tmp_sharedflag='-G' ;;
9387 *Sun\ F*) # Sun Fortran 8.3
9388 tmp_sharedflag='-G' ;;
9389 esac
9390 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391
9392 if test "x$supports_anon_versioning" = xyes; then
9393 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9394 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9395 echo "local: *; };" >> $output_objdir/$libname.ver~
9396 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9397 fi
9398
9399 case $cc_basename in
9400 xlf* | bgf* | bgxlf* | mpixlf*)
9401 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9402 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9405 if test "x$supports_anon_versioning" = xyes; then
9406 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9407 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9408 echo "local: *; };" >> $output_objdir/$libname.ver~
9409 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9410 fi
9411 ;;
9412 esac
9413 else
9414 ld_shlibs=no
9415 fi
9416 ;;
9417
9418 netbsd*)
9419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9420 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9421 wlarc=
9422 else
9423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9425 fi
9426 ;;
9427
9428 solaris*)
9429 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9430 ld_shlibs=no
9431 cat <<_LT_EOF 1>&2
9432
9433*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9434*** create shared libraries on Solaris systems. Therefore, libtool
9435*** is disabling shared libraries support. We urge you to upgrade GNU
9436*** binutils to release 2.9.1 or newer. Another option is to modify
9437*** your PATH or compiler configuration so that the native linker is
9438*** used, and then restart.
9439
9440_LT_EOF
9441 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9444 else
9445 ld_shlibs=no
9446 fi
9447 ;;
9448
9449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9450 case `$LD -v 2>&1` in
9451 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9452 ld_shlibs=no
9453 cat <<_LT_EOF 1>&2
9454
9455*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9456*** reliably create shared libraries on SCO systems. Therefore, libtool
9457*** is disabling shared libraries support. We urge you to upgrade GNU
9458*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9459*** your PATH or compiler configuration so that the native linker is
9460*** used, and then restart.
9461
9462_LT_EOF
9463 ;;
9464 *)
9465 # For security reasons, it is highly recommended that you always
9466 # use absolute paths for naming shared libraries, and exclude the
9467 # DT_RUNPATH tag from executables and libraries. But doing so
9468 # requires that you compile everything twice, which is a pain.
9469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9473 else
9474 ld_shlibs=no
9475 fi
9476 ;;
9477 esac
9478 ;;
9479
9480 sunos4*)
9481 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9482 wlarc=
9483 hardcode_direct=yes
9484 hardcode_shlibpath_var=no
9485 ;;
9486
9487 *)
9488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9491 else
9492 ld_shlibs=no
9493 fi
9494 ;;
9495 esac
9496
9497 if test "$ld_shlibs" = no; then
9498 runpath_var=
9499 hardcode_libdir_flag_spec=
9500 export_dynamic_flag_spec=
9501 whole_archive_flag_spec=
9502 fi
9503 else
9504 # PORTME fill in a description of your system's linker (not GNU ld)
9505 case $host_os in
9506 aix3*)
9507 allow_undefined_flag=unsupported
9508 always_export_symbols=yes
9509 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'
9510 # Note: this linker hardcodes the directories in LIBPATH if there
9511 # are no directories specified by -L.
9512 hardcode_minus_L=yes
9513 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9514 # Neither direct hardcoding nor static linking is supported with a
9515 # broken collect2.
9516 hardcode_direct=unsupported
9517 fi
9518 ;;
9519
9520 aix[4-9]*)
9521 if test "$host_cpu" = ia64; then
9522 # On IA64, the linker does run time linking by default, so we don't
9523 # have to do anything special.
9524 aix_use_runtimelinking=no
9525 exp_sym_flag='-Bexport'
9526 no_entry_flag=""
9527 else
9528 # If we're using GNU nm, then we don't want the "-C" option.
9529 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9530 # Also, AIX nm treats weak defined symbols like other global
9531 # defined symbols, whereas GNU nm marks them as "W".
9532 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9533 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'
9534 else
9535 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'
9536 fi
9537 aix_use_runtimelinking=no
9538
9539 # Test if we are trying to use run time linking or normal
9540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9541 # need to do runtime linking.
9542 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9543 for ld_flag in $LDFLAGS; do
9544 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9545 aix_use_runtimelinking=yes
9546 break
9547 fi
9548 done
9549 ;;
9550 esac
9551
9552 exp_sym_flag='-bexport'
9553 no_entry_flag='-bnoentry'
9554 fi
9555
9556 # When large executables or shared objects are built, AIX ld can
9557 # have problems creating the table of contents. If linking a library
9558 # or program results in "error TOC overflow" add -mminimal-toc to
9559 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9560 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9561
9562 archive_cmds=''
9563 hardcode_direct=yes
9564 hardcode_direct_absolute=yes
9565 hardcode_libdir_separator=':'
9566 link_all_deplibs=yes
9567 file_list_spec='${wl}-f,'
9568
9569 if test "$GCC" = yes; then
9570 case $host_os in aix4.[012]|aix4.[012].*)
9571 # We only want to do this on AIX 4.2 and lower, the check
9572 # below for broken collect2 doesn't work under 4.3+
9573 collect2name=`${CC} -print-prog-name=collect2`
9574 if test -f "$collect2name" &&
9575 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9576 then
9577 # We have reworked collect2
9578 :
9579 else
9580 # We have old collect2
9581 hardcode_direct=unsupported
9582 # It fails to find uninstalled libraries when the uninstalled
9583 # path is not listed in the libpath. Setting hardcode_minus_L
9584 # to unsupported forces relinking
9585 hardcode_minus_L=yes
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_libdir_separator=
9588 fi
9589 ;;
9590 esac
9591 shared_flag='-shared'
9592 if test "$aix_use_runtimelinking" = yes; then
9593 shared_flag="$shared_flag "'${wl}-G'
9594 fi
9595 else
9596 # not using gcc
9597 if test "$host_cpu" = ia64; then
9598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9599 # chokes on -Wl,-G. The following line is correct:
9600 shared_flag='-G'
9601 else
9602 if test "$aix_use_runtimelinking" = yes; then
9603 shared_flag='${wl}-G'
9604 else
9605 shared_flag='${wl}-bM:SRE'
9606 fi
9607 fi
9608 fi
9609
9610 export_dynamic_flag_spec='${wl}-bexpall'
9611 # It seems that -bexpall does not export symbols beginning with
9612 # underscore (_), so it is better to generate a list of symbols to export.
9613 always_export_symbols=yes
9614 if test "$aix_use_runtimelinking" = yes; then
9615 # Warning - without using the other runtime loading flags (-brtl),
9616 # -berok will link without error, but may produce a broken library.
9617 allow_undefined_flag='-berok'
9618 # Determine the default libpath from the value encoded in an
9619 # empty executable.
9620 if test "${lt_cv_aix_libpath+set}" = set; then
9621 aix_libpath=$lt_cv_aix_libpath
9622else
9623 if ${lt_cv_aix_libpath_+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625else
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h. */
9628
9629int
9630main ()
9631{
9632
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_link "$LINENO"; then :
9638
9639 lt_aix_libpath_sed='
9640 /Import File Strings/,/^$/ {
9641 /^0/ {
9642 s/^0 *\([^ ]*\) *$/\1/
9643 p
9644 }
9645 }'
9646 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9647 # Check for a 64-bit object if we didn't find anything.
9648 if test -z "$lt_cv_aix_libpath_"; then
9649 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650 fi
9651fi
9652rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 if test -z "$lt_cv_aix_libpath_"; then
9655 lt_cv_aix_libpath_="/usr/lib:/lib"
9656 fi
9657
9658fi
9659
9660 aix_libpath=$lt_cv_aix_libpath_
9661fi
9662
9663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9664 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"
9665 else
9666 if test "$host_cpu" = ia64; then
9667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9668 allow_undefined_flag="-z nodefs"
9669 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"
9670 else
9671 # Determine the default libpath from the value encoded in an
9672 # empty executable.
9673 if test "${lt_cv_aix_libpath+set}" = set; then
9674 aix_libpath=$lt_cv_aix_libpath
9675else
9676 if ${lt_cv_aix_libpath_+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678else
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680/* end confdefs.h. */
9681
9682int
9683main ()
9684{
9685
9686 ;
9687 return 0;
9688}
9689_ACEOF
9690if ac_fn_c_try_link "$LINENO"; then :
9691
9692 lt_aix_libpath_sed='
9693 /Import File Strings/,/^$/ {
9694 /^0/ {
9695 s/^0 *\([^ ]*\) *$/\1/
9696 p
9697 }
9698 }'
9699 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700 # Check for a 64-bit object if we didn't find anything.
9701 if test -z "$lt_cv_aix_libpath_"; then
9702 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9703 fi
9704fi
9705rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707 if test -z "$lt_cv_aix_libpath_"; then
9708 lt_cv_aix_libpath_="/usr/lib:/lib"
9709 fi
9710
9711fi
9712
9713 aix_libpath=$lt_cv_aix_libpath_
9714fi
9715
9716 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9717 # Warning - without using the other run time loading flags,
9718 # -berok will link without error, but may produce a broken library.
9719 no_undefined_flag=' ${wl}-bernotok'
9720 allow_undefined_flag=' ${wl}-berok'
9721 if test "$with_gnu_ld" = yes; then
9722 # We only use this code for GNU lds that support --whole-archive.
9723 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9724 else
9725 # Exported symbols can be pulled into shared objects from archives
9726 whole_archive_flag_spec='$convenience'
9727 fi
9728 archive_cmds_need_lc=yes
9729 # This is similar to how AIX traditionally builds its shared libraries.
9730 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'
9731 fi
9732 fi
9733 ;;
9734
9735 amigaos*)
9736 case $host_cpu in
9737 powerpc)
9738 # see comment about AmigaOS4 .so support
9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740 archive_expsym_cmds=''
9741 ;;
9742 m68k)
9743 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)'
9744 hardcode_libdir_flag_spec='-L$libdir'
9745 hardcode_minus_L=yes
9746 ;;
9747 esac
9748 ;;
9749
9750 bsdi[45]*)
9751 export_dynamic_flag_spec=-rdynamic
9752 ;;
9753
9754 cygwin* | mingw* | pw32* | cegcc*)
9755 # When not using gcc, we currently assume that we are using
9756 # Microsoft Visual C++.
9757 # hardcode_libdir_flag_spec is actually meaningless, as there is
9758 # no search path for DLLs.
9759 case $cc_basename in
9760 cl*)
9761 # Native MSVC
9762 hardcode_libdir_flag_spec=' '
9763 allow_undefined_flag=unsupported
9764 always_export_symbols=yes
9765 file_list_spec='@'
9766 # Tell ltmain to make .lib files, not .a files.
9767 libext=lib
9768 # Tell ltmain to make .dll files, not .so files.
9769 shrext_cmds=".dll"
9770 # FIXME: Setting linknames here is a bad hack.
9771 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9772 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9773 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9774 else
9775 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9776 fi~
9777 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9778 linknames='
9779 # The linker will not automatically build a static lib if we build a DLL.
9780 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9781 enable_shared_with_static_runtimes=yes
9782 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9783 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9784 # Don't use ranlib
9785 old_postinstall_cmds='chmod 644 $oldlib'
9786 postlink_cmds='lt_outputfile="@OUTPUT@"~
9787 lt_tool_outputfile="@TOOL_OUTPUT@"~
9788 case $lt_outputfile in
9789 *.exe|*.EXE) ;;
9790 *)
9791 lt_outputfile="$lt_outputfile.exe"
9792 lt_tool_outputfile="$lt_tool_outputfile.exe"
9793 ;;
9794 esac~
9795 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9796 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9797 $RM "$lt_outputfile.manifest";
9798 fi'
9799 ;;
9800 *)
9801 # Assume MSVC wrapper
9802 hardcode_libdir_flag_spec=' '
9803 allow_undefined_flag=unsupported
9804 # Tell ltmain to make .lib files, not .a files.
9805 libext=lib
9806 # Tell ltmain to make .dll files, not .so files.
9807 shrext_cmds=".dll"
9808 # FIXME: Setting linknames here is a bad hack.
9809 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9810 # The linker will automatically build a .lib file if we build a DLL.
9811 old_archive_from_new_cmds='true'
9812 # FIXME: Should let the user specify the lib program.
9813 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9814 enable_shared_with_static_runtimes=yes
9815 ;;
9816 esac
9817 ;;
9818
9819 darwin* | rhapsody*)
9820
9821
9822 archive_cmds_need_lc=no
9823 hardcode_direct=no
9824 hardcode_automatic=yes
9825 hardcode_shlibpath_var=unsupported
9826 if test "$lt_cv_ld_force_load" = "yes"; then
9827 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\"`'
9828
9829 else
9830 whole_archive_flag_spec=''
9831 fi
9832 link_all_deplibs=yes
9833 allow_undefined_flag="$_lt_dar_allow_undefined"
9834 case $cc_basename in
9835 ifort*) _lt_dar_can_shared=yes ;;
9836 *) _lt_dar_can_shared=$GCC ;;
9837 esac
9838 if test "$_lt_dar_can_shared" = "yes"; then
9839 output_verbose_link_cmd=func_echo_all
9840 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9841 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9842 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}"
9843 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}"
9844
9845 else
9846 ld_shlibs=no
9847 fi
9848
9849 ;;
9850
9851 dgux*)
9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_shlibpath_var=no
9855 ;;
9856
9857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9858 # support. Future versions do this automatically, but an explicit c++rt0.o
9859 # does not break anything, and helps significantly (at the cost of a little
9860 # extra space).
9861 freebsd2.2*)
9862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9863 hardcode_libdir_flag_spec='-R$libdir'
9864 hardcode_direct=yes
9865 hardcode_shlibpath_var=no
9866 ;;
9867
9868 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9869 freebsd2.*)
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_direct=yes
9872 hardcode_minus_L=yes
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9877 freebsd* | dragonfly*)
9878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9879 hardcode_libdir_flag_spec='-R$libdir'
9880 hardcode_direct=yes
9881 hardcode_shlibpath_var=no
9882 ;;
9883
9884 hpux9*)
9885 if test "$GCC" = yes; then
9886 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'
9887 else
9888 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'
9889 fi
9890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9891 hardcode_libdir_separator=:
9892 hardcode_direct=yes
9893
9894 # hardcode_minus_L: Not really in the search PATH,
9895 # but as the default location of the library.
9896 hardcode_minus_L=yes
9897 export_dynamic_flag_spec='${wl}-E'
9898 ;;
9899
9900 hpux10*)
9901 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9902 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 else
9904 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9905 fi
9906 if test "$with_gnu_ld" = no; then
9907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908 hardcode_libdir_separator=:
9909 hardcode_direct=yes
9910 hardcode_direct_absolute=yes
9911 export_dynamic_flag_spec='${wl}-E'
9912 # hardcode_minus_L: Not really in the search PATH,
9913 # but as the default location of the library.
9914 hardcode_minus_L=yes
9915 fi
9916 ;;
9917
9918 hpux11*)
9919 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9920 case $host_cpu in
9921 hppa*64*)
9922 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 ;;
9924 ia64*)
9925 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9926 ;;
9927 *)
9928 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9929 ;;
9930 esac
9931 else
9932 case $host_cpu in
9933 hppa*64*)
9934 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 ;;
9936 ia64*)
9937 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 *)
9940
9941 # Older versions of the 11.00 compiler do not understand -b yet
9942 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9944$as_echo_n "checking if $CC understands -b... " >&6; }
9945if ${lt_cv_prog_compiler__b+:} false; then :
9946 $as_echo_n "(cached) " >&6
9947else
9948 lt_cv_prog_compiler__b=no
9949 save_LDFLAGS="$LDFLAGS"
9950 LDFLAGS="$LDFLAGS -b"
9951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9953 # The linker can only warn and ignore the option if not recognized
9954 # So say no if there are warnings
9955 if test -s conftest.err; then
9956 # Append any errors to the config.log.
9957 cat conftest.err 1>&5
9958 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9960 if diff conftest.exp conftest.er2 >/dev/null; then
9961 lt_cv_prog_compiler__b=yes
9962 fi
9963 else
9964 lt_cv_prog_compiler__b=yes
9965 fi
9966 fi
9967 $RM -r conftest*
9968 LDFLAGS="$save_LDFLAGS"
9969
9970fi
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9972$as_echo "$lt_cv_prog_compiler__b" >&6; }
9973
9974if test x"$lt_cv_prog_compiler__b" = xyes; then
9975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9976else
9977 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9978fi
9979
9980 ;;
9981 esac
9982 fi
9983 if test "$with_gnu_ld" = no; then
9984 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9985 hardcode_libdir_separator=:
9986
9987 case $host_cpu in
9988 hppa*64*|ia64*)
9989 hardcode_direct=no
9990 hardcode_shlibpath_var=no
9991 ;;
9992 *)
9993 hardcode_direct=yes
9994 hardcode_direct_absolute=yes
9995 export_dynamic_flag_spec='${wl}-E'
9996
9997 # hardcode_minus_L: Not really in the search PATH,
9998 # but as the default location of the library.
9999 hardcode_minus_L=yes
10000 ;;
10001 esac
10002 fi
10003 ;;
10004
10005 irix5* | irix6* | nonstopux*)
10006 if test "$GCC" = yes; then
10007 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'
10008 # Try to use the -exported_symbol ld option, if it does not
10009 # work, assume that -exports_file does not work either and
10010 # implicitly export all symbols.
10011 # This should be the same for all languages, so no per-tag cache variable.
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10013$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10014if ${lt_cv_irix_exported_symbol+:} false; then :
10015 $as_echo_n "(cached) " >&6
10016else
10017 save_LDFLAGS="$LDFLAGS"
10018 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020/* end confdefs.h. */
10021int foo (void) { return 0; }
10022_ACEOF
10023if ac_fn_c_try_link "$LINENO"; then :
10024 lt_cv_irix_exported_symbol=yes
10025else
10026 lt_cv_irix_exported_symbol=no
10027fi
10028rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LDFLAGS="$save_LDFLAGS"
10031fi
10032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10033$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10034 if test "$lt_cv_irix_exported_symbol" = yes; then
10035 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'
10036 fi
10037 else
10038 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'
10039 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'
10040 fi
10041 archive_cmds_need_lc='no'
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044 inherit_rpath=yes
10045 link_all_deplibs=yes
10046 ;;
10047
10048 netbsd*)
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10051 else
10052 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10053 fi
10054 hardcode_libdir_flag_spec='-R$libdir'
10055 hardcode_direct=yes
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 newsos6)
10060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_direct=yes
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 hardcode_libdir_separator=:
10064 hardcode_shlibpath_var=no
10065 ;;
10066
10067 *nto* | *qnx*)
10068 ;;
10069
10070 openbsd*)
10071 if test -f /usr/libexec/ld.so; then
10072 hardcode_direct=yes
10073 hardcode_shlibpath_var=no
10074 hardcode_direct_absolute=yes
10075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10079 export_dynamic_flag_spec='${wl}-E'
10080 else
10081 case $host_os in
10082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_libdir_flag_spec='-R$libdir'
10085 ;;
10086 *)
10087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10089 ;;
10090 esac
10091 fi
10092 else
10093 ld_shlibs=no
10094 fi
10095 ;;
10096
10097 os2*)
10098 hardcode_libdir_flag_spec='-L$libdir'
10099 hardcode_minus_L=yes
10100 allow_undefined_flag=unsupported
10101 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'
10102 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10103 ;;
10104
10105 osf3*)
10106 if test "$GCC" = yes; then
10107 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10108 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'
10109 else
10110 allow_undefined_flag=' -expect_unresolved \*'
10111 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'
10112 fi
10113 archive_cmds_need_lc='no'
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 hardcode_libdir_separator=:
10116 ;;
10117
10118 osf4* | osf5*) # as osf3* with the addition of -msym flag
10119 if test "$GCC" = yes; then
10120 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10121 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'
10122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123 else
10124 allow_undefined_flag=' -expect_unresolved \*'
10125 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'
10126 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~
10127 $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'
10128
10129 # Both c and cxx compiler support -rpath directly
10130 hardcode_libdir_flag_spec='-rpath $libdir'
10131 fi
10132 archive_cmds_need_lc='no'
10133 hardcode_libdir_separator=:
10134 ;;
10135
10136 solaris*)
10137 no_undefined_flag=' -z defs'
10138 if test "$GCC" = yes; then
10139 wlarc='${wl}'
10140 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10142 $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'
10143 else
10144 case `$CC -V 2>&1` in
10145 *"Compilers 5.0"*)
10146 wlarc=''
10147 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10150 ;;
10151 *)
10152 wlarc='${wl}'
10153 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10155 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10156 ;;
10157 esac
10158 fi
10159 hardcode_libdir_flag_spec='-R$libdir'
10160 hardcode_shlibpath_var=no
10161 case $host_os in
10162 solaris2.[0-5] | solaris2.[0-5].*) ;;
10163 *)
10164 # The compiler driver will combine and reorder linker options,
10165 # but understands `-z linker_flag'. GCC discards it without `$wl',
10166 # but is careful enough not to reorder.
10167 # Supported since Solaris 2.6 (maybe 2.5.1?)
10168 if test "$GCC" = yes; then
10169 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10170 else
10171 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10172 fi
10173 ;;
10174 esac
10175 link_all_deplibs=yes
10176 ;;
10177
10178 sunos4*)
10179 if test "x$host_vendor" = xsequent; then
10180 # Use $CC to link under sequent, because it throws in some extra .o
10181 # files that make .init and .fini sections work.
10182 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10183 else
10184 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10185 fi
10186 hardcode_libdir_flag_spec='-L$libdir'
10187 hardcode_direct=yes
10188 hardcode_minus_L=yes
10189 hardcode_shlibpath_var=no
10190 ;;
10191
10192 sysv4)
10193 case $host_vendor in
10194 sni)
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_direct=yes # is this really true???
10197 ;;
10198 siemens)
10199 ## LD is ld it makes a PLAMLIB
10200 ## CC just makes a GrossModule.
10201 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10202 reload_cmds='$CC -r -o $output$reload_objs'
10203 hardcode_direct=no
10204 ;;
10205 motorola)
10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10208 ;;
10209 esac
10210 runpath_var='LD_RUN_PATH'
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 sysv4.3*)
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_shlibpath_var=no
10217 export_dynamic_flag_spec='-Bexport'
10218 ;;
10219
10220 sysv4*MP*)
10221 if test -d /usr/nec; then
10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_shlibpath_var=no
10224 runpath_var=LD_RUN_PATH
10225 hardcode_runpath_var=yes
10226 ld_shlibs=yes
10227 fi
10228 ;;
10229
10230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10231 no_undefined_flag='${wl}-z,text'
10232 archive_cmds_need_lc=no
10233 hardcode_shlibpath_var=no
10234 runpath_var='LD_RUN_PATH'
10235
10236 if test "$GCC" = yes; then
10237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 else
10240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 fi
10243 ;;
10244
10245 sysv5* | sco3.2v5* | sco5v6*)
10246 # Note: We can NOT use -z defs as we might desire, because we do not
10247 # link with -lc, and that would cause any symbols used from libc to
10248 # always be unresolved, which means just about no library would
10249 # ever link correctly. If we're not using GNU ld we use -z text
10250 # though, which does catch some bad symbols but isn't as heavy-handed
10251 # as -z defs.
10252 no_undefined_flag='${wl}-z,text'
10253 allow_undefined_flag='${wl}-z,nodefs'
10254 archive_cmds_need_lc=no
10255 hardcode_shlibpath_var=no
10256 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10257 hardcode_libdir_separator=':'
10258 link_all_deplibs=yes
10259 export_dynamic_flag_spec='${wl}-Bexport'
10260 runpath_var='LD_RUN_PATH'
10261
10262 if test "$GCC" = yes; then
10263 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 else
10266 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 fi
10269 ;;
10270
10271 uts4*)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_libdir_flag_spec='-L$libdir'
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 *)
10278 ld_shlibs=no
10279 ;;
10280 esac
10281
10282 if test x$host_vendor = xsni; then
10283 case $host in
10284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10285 export_dynamic_flag_spec='${wl}-Blargedynsym'
10286 ;;
10287 esac
10288 fi
10289 fi
10290
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10292$as_echo "$ld_shlibs" >&6; }
10293test "$ld_shlibs" = no && can_build_shared=no
10294
10295with_gnu_ld=$with_gnu_ld
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311#
10312# Do we need to explicitly link libc?
10313#
10314case "x$archive_cmds_need_lc" in
10315x|xyes)
10316 # Assume -lc should be added
10317 archive_cmds_need_lc=yes
10318
10319 if test "$enable_shared" = yes && test "$GCC" = yes; then
10320 case $archive_cmds in
10321 *'~'*)
10322 # FIXME: we may have to deal with multi-command sequences.
10323 ;;
10324 '$CC '*)
10325 # Test whether the compiler implicitly links with -lc since on some
10326 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10327 # to ld, don't add -lc before -lgcc.
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10329$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10330if ${lt_cv_archive_cmds_need_lc+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332else
10333 $RM conftest*
10334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10335
10336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10337 (eval $ac_compile) 2>&5
10338 ac_status=$?
10339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340 test $ac_status = 0; } 2>conftest.err; then
10341 soname=conftest
10342 lib=conftest
10343 libobjs=conftest.$ac_objext
10344 deplibs=
10345 wl=$lt_prog_compiler_wl
10346 pic_flag=$lt_prog_compiler_pic
10347 compiler_flags=-v
10348 linker_flags=-v
10349 verstring=
10350 output_objdir=.
10351 libname=conftest
10352 lt_save_allow_undefined_flag=$allow_undefined_flag
10353 allow_undefined_flag=
10354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10355 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10356 ac_status=$?
10357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10358 test $ac_status = 0; }
10359 then
10360 lt_cv_archive_cmds_need_lc=no
10361 else
10362 lt_cv_archive_cmds_need_lc=yes
10363 fi
10364 allow_undefined_flag=$lt_save_allow_undefined_flag
10365 else
10366 cat conftest.err 1>&5
10367 fi
10368 $RM conftest*
10369
10370fi
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10372$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10373 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10374 ;;
10375 esac
10376 fi
10377 ;;
10378esac
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10532$as_echo_n "checking dynamic linker characteristics... " >&6; }
10533
10534if test "$GCC" = yes; then
10535 case $host_os in
10536 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10537 *) lt_awk_arg="/^libraries:/" ;;
10538 esac
10539 case $host_os in
10540 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10541 *) lt_sed_strip_eq="s,=/,/,g" ;;
10542 esac
10543 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10544 case $lt_search_path_spec in
10545 *\;*)
10546 # if the path contains ";" then we assume it to be the separator
10547 # otherwise default to the standard path separator (i.e. ":") - it is
10548 # assumed that no part of a normal pathname contains ";" but that should
10549 # okay in the real world where ";" in dirpaths is itself problematic.
10550 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10551 ;;
10552 *)
10553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10554 ;;
10555 esac
10556 # Ok, now we have the path, separated by spaces, we can step through it
10557 # and add multilib dir if necessary.
10558 lt_tmp_lt_search_path_spec=
10559 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10560 for lt_sys_path in $lt_search_path_spec; do
10561 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10563 else
10564 test -d "$lt_sys_path" && \
10565 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10566 fi
10567 done
10568 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10569BEGIN {RS=" "; FS="/|\n";} {
10570 lt_foo="";
10571 lt_count=0;
10572 for (lt_i = NF; lt_i > 0; lt_i--) {
10573 if ($lt_i != "" && $lt_i != ".") {
10574 if ($lt_i == "..") {
10575 lt_count++;
10576 } else {
10577 if (lt_count == 0) {
10578 lt_foo="/" $lt_i lt_foo;
10579 } else {
10580 lt_count--;
10581 }
10582 }
10583 }
10584 }
10585 if (lt_foo != "") { lt_freq[lt_foo]++; }
10586 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10587}'`
10588 # AWK program above erroneously prepends '/' to C:/dos/paths
10589 # for these hosts.
10590 case $host_os in
10591 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10592 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10593 esac
10594 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10595else
10596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10597fi
10598library_names_spec=
10599libname_spec='lib$name'
10600soname_spec=
10601shrext_cmds=".so"
10602postinstall_cmds=
10603postuninstall_cmds=
10604finish_cmds=
10605finish_eval=
10606shlibpath_var=
10607shlibpath_overrides_runpath=unknown
10608version_type=none
10609dynamic_linker="$host_os ld.so"
10610sys_lib_dlsearch_path_spec="/lib /usr/lib"
10611need_lib_prefix=unknown
10612hardcode_into_libs=no
10613
10614# when you set need_version to no, make sure it does not cause -set_version
10615# flags to be left without arguments
10616need_version=unknown
10617
10618case $host_os in
10619aix3*)
10620 version_type=linux # correct to gnu/linux during the next big refactor
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10622 shlibpath_var=LIBPATH
10623
10624 # AIX 3 has no versioning support, so we append a major version to the name.
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 ;;
10627
10628aix[4-9]*)
10629 version_type=linux # correct to gnu/linux during the next big refactor
10630 need_lib_prefix=no
10631 need_version=no
10632 hardcode_into_libs=yes
10633 if test "$host_cpu" = ia64; then
10634 # AIX 5 supports IA64
10635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 else
10638 # With GCC up to 2.95.x, collect2 would create an import file
10639 # for dependence libraries. The import file would start with
10640 # the line `#! .'. This would cause the generated library to
10641 # depend on `.', always an invalid library. This was fixed in
10642 # development snapshots of GCC prior to 3.0.
10643 case $host_os in
10644 aix4 | aix4.[01] | aix4.[01].*)
10645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10646 echo ' yes '
10647 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10648 :
10649 else
10650 can_build_shared=no
10651 fi
10652 ;;
10653 esac
10654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10655 # soname into executable. Probably we can add versioning support to
10656 # collect2, so additional links can be useful in future.
10657 if test "$aix_use_runtimelinking" = yes; then
10658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10659 # instead of lib<name>.a to let people know that these are not
10660 # typical AIX shared libraries.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 else
10663 # We preserve .a as extension for shared libraries through AIX4.2
10664 # and later when we are not doing run time linking.
10665 library_names_spec='${libname}${release}.a $libname.a'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 fi
10668 shlibpath_var=LIBPATH
10669 fi
10670 ;;
10671
10672amigaos*)
10673 case $host_cpu in
10674 powerpc)
10675 # Since July 2007 AmigaOS4 officially supports .so libraries.
10676 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 ;;
10679 m68k)
10680 library_names_spec='$libname.ixlibrary $libname.a'
10681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10682 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'
10683 ;;
10684 esac
10685 ;;
10686
10687beos*)
10688 library_names_spec='${libname}${shared_ext}'
10689 dynamic_linker="$host_os ld.so"
10690 shlibpath_var=LIBRARY_PATH
10691 ;;
10692
10693bsdi[45]*)
10694 version_type=linux # correct to gnu/linux during the next big refactor
10695 need_version=no
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10701 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10702 # the default ld.so.conf also contains /usr/contrib/lib and
10703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10704 # libtool to hard-code these into programs
10705 ;;
10706
10707cygwin* | mingw* | pw32* | cegcc*)
10708 version_type=windows
10709 shrext_cmds=".dll"
10710 need_version=no
10711 need_lib_prefix=no
10712
10713 case $GCC,$cc_basename in
10714 yes,*)
10715 # gcc
10716 library_names_spec='$libname.dll.a'
10717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10718 postinstall_cmds='base_file=`basename \${file}`~
10719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10720 dldir=$destdir/`dirname \$dlpath`~
10721 test -d \$dldir || mkdir -p \$dldir~
10722 $install_prog $dir/$dlname \$dldir/$dlname~
10723 chmod a+x \$dldir/$dlname~
10724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10726 fi'
10727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728 dlpath=$dir/\$dldll~
10729 $RM \$dlpath'
10730 shlibpath_overrides_runpath=yes
10731
10732 case $host_os in
10733 cygwin*)
10734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736
10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10738 ;;
10739 mingw* | cegcc*)
10740 # MinGW DLLs use traditional 'lib' prefix
10741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742 ;;
10743 pw32*)
10744 # pw32 DLLs use 'pw' prefix rather than 'lib'
10745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10746 ;;
10747 esac
10748 dynamic_linker='Win32 ld.exe'
10749 ;;
10750
10751 *,cl*)
10752 # Native MSVC
10753 libname_spec='$name'
10754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10755 library_names_spec='${libname}.dll.lib'
10756
10757 case $build_os in
10758 mingw*)
10759 sys_lib_search_path_spec=
10760 lt_save_ifs=$IFS
10761 IFS=';'
10762 for lt_path in $LIB
10763 do
10764 IFS=$lt_save_ifs
10765 # Let DOS variable expansion print the short 8.3 style file name.
10766 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10767 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10768 done
10769 IFS=$lt_save_ifs
10770 # Convert to MSYS style.
10771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10772 ;;
10773 cygwin*)
10774 # Convert to unix form, then to dos form, then back to unix form
10775 # but this time dos style (no spaces!) so that the unix form looks
10776 # like /cygdrive/c/PROGRA~1:/cygdr...
10777 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10778 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10779 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10780 ;;
10781 *)
10782 sys_lib_search_path_spec="$LIB"
10783 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10784 # It is most probably a Windows format PATH.
10785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10786 else
10787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10788 fi
10789 # FIXME: find the short name or the path components, as spaces are
10790 # common. (e.g. "Program Files" -> "PROGRA~1")
10791 ;;
10792 esac
10793
10794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10795 postinstall_cmds='base_file=`basename \${file}`~
10796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10797 dldir=$destdir/`dirname \$dlpath`~
10798 test -d \$dldir || mkdir -p \$dldir~
10799 $install_prog $dir/$dlname \$dldir/$dlname'
10800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10801 dlpath=$dir/\$dldll~
10802 $RM \$dlpath'
10803 shlibpath_overrides_runpath=yes
10804 dynamic_linker='Win32 link.exe'
10805 ;;
10806
10807 *)
10808 # Assume MSVC wrapper
10809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10810 dynamic_linker='Win32 ld.exe'
10811 ;;
10812 esac
10813 # FIXME: first we should search . and the directory the executable is in
10814 shlibpath_var=PATH
10815 ;;
10816
10817darwin* | rhapsody*)
10818 dynamic_linker="$host_os dyld"
10819 version_type=darwin
10820 need_lib_prefix=no
10821 need_version=no
10822 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10823 soname_spec='${libname}${release}${major}$shared_ext'
10824 shlibpath_overrides_runpath=yes
10825 shlibpath_var=DYLD_LIBRARY_PATH
10826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10827
10828 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10830 ;;
10831
10832dgux*)
10833 version_type=linux # correct to gnu/linux during the next big refactor
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 ;;
10840
10841freebsd* | dragonfly*)
10842 # DragonFly does not have aout. When/if they implement a new
10843 # versioning mechanism, adjust this.
10844 if test -x /usr/bin/objformat; then
10845 objformat=`/usr/bin/objformat`
10846 else
10847 case $host_os in
10848 freebsd[23].*) objformat=aout ;;
10849 *) objformat=elf ;;
10850 esac
10851 fi
10852 version_type=freebsd-$objformat
10853 case $version_type in
10854 freebsd-elf*)
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10856 need_version=no
10857 need_lib_prefix=no
10858 ;;
10859 freebsd-*)
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10861 need_version=yes
10862 ;;
10863 esac
10864 shlibpath_var=LD_LIBRARY_PATH
10865 case $host_os in
10866 freebsd2.*)
10867 shlibpath_overrides_runpath=yes
10868 ;;
10869 freebsd3.[01]* | freebsdelf3.[01]*)
10870 shlibpath_overrides_runpath=yes
10871 hardcode_into_libs=yes
10872 ;;
10873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10875 shlibpath_overrides_runpath=no
10876 hardcode_into_libs=yes
10877 ;;
10878 *) # from 4.6 on, and DragonFly
10879 shlibpath_overrides_runpath=yes
10880 hardcode_into_libs=yes
10881 ;;
10882 esac
10883 ;;
10884
10885gnu*)
10886 version_type=linux # correct to gnu/linux during the next big refactor
10887 need_lib_prefix=no
10888 need_version=no
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 shlibpath_var=LD_LIBRARY_PATH
10892 shlibpath_overrides_runpath=no
10893 hardcode_into_libs=yes
10894 ;;
10895
10896haiku*)
10897 version_type=linux # correct to gnu/linux during the next big refactor
10898 need_lib_prefix=no
10899 need_version=no
10900 dynamic_linker="$host_os runtime_loader"
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LIBRARY_PATH
10904 shlibpath_overrides_runpath=yes
10905 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10906 hardcode_into_libs=yes
10907 ;;
10908
10909hpux9* | hpux10* | hpux11*)
10910 # Give a soname corresponding to the major version so that dld.sl refuses to
10911 # link against other versions.
10912 version_type=sunos
10913 need_lib_prefix=no
10914 need_version=no
10915 case $host_cpu in
10916 ia64*)
10917 shrext_cmds='.so'
10918 hardcode_into_libs=yes
10919 dynamic_linker="$host_os dld.so"
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 if test "X$HPUX_IA64_MODE" = X32; then
10925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10926 else
10927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10928 fi
10929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10930 ;;
10931 hppa*64*)
10932 shrext_cmds='.sl'
10933 hardcode_into_libs=yes
10934 dynamic_linker="$host_os dld.sl"
10935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10941 ;;
10942 *)
10943 shrext_cmds='.sl'
10944 dynamic_linker="$host_os dld.sl"
10945 shlibpath_var=SHLIB_PATH
10946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 ;;
10950 esac
10951 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10952 postinstall_cmds='chmod 555 $lib'
10953 # or fails outright, so override atomically:
10954 install_override_mode=555
10955 ;;
10956
10957interix[3-9]*)
10958 version_type=linux # correct to gnu/linux during the next big refactor
10959 need_lib_prefix=no
10960 need_version=no
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=no
10966 hardcode_into_libs=yes
10967 ;;
10968
10969irix5* | irix6* | nonstopux*)
10970 case $host_os in
10971 nonstopux*) version_type=nonstopux ;;
10972 *)
10973 if test "$lt_cv_prog_gnu_ld" = yes; then
10974 version_type=linux # correct to gnu/linux during the next big refactor
10975 else
10976 version_type=irix
10977 fi ;;
10978 esac
10979 need_lib_prefix=no
10980 need_version=no
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10983 case $host_os in
10984 irix5* | nonstopux*)
10985 libsuff= shlibsuff=
10986 ;;
10987 *)
10988 case $LD in # libtool.m4 will add one of these switches to LD
10989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10990 libsuff= shlibsuff= libmagic=32-bit;;
10991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10992 libsuff=32 shlibsuff=N32 libmagic=N32;;
10993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10995 *) libsuff= shlibsuff= libmagic=never-match;;
10996 esac
10997 ;;
10998 esac
10999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11000 shlibpath_overrides_runpath=no
11001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11003 hardcode_into_libs=yes
11004 ;;
11005
11006# No shared lib support for Linux oldld, aout, or coff.
11007linux*oldld* | linux*aout* | linux*coff*)
11008 dynamic_linker=no
11009 ;;
11010
11011# This must be glibc/ELF.
11012linux* | k*bsd*-gnu | kopensolaris*-gnu)
11013 version_type=linux # correct to gnu/linux during the next big refactor
11014 need_lib_prefix=no
11015 need_version=no
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=no
11021
11022 # Some binutils ld are patched to set DT_RUNPATH
11023 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025else
11026 lt_cv_shlibpath_overrides_runpath=no
11027 save_LDFLAGS=$LDFLAGS
11028 save_libdir=$libdir
11029 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11030 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032/* end confdefs.h. */
11033
11034int
11035main ()
11036{
11037
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042if ac_fn_c_try_link "$LINENO"; then :
11043 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11044 lt_cv_shlibpath_overrides_runpath=yes
11045fi
11046fi
11047rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LDFLAGS=$save_LDFLAGS
11050 libdir=$save_libdir
11051
11052fi
11053
11054 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11055
11056 # This implies no fast_install, which is unacceptable.
11057 # Some rework will be needed to allow for fast_install
11058 # before this can be enabled.
11059 hardcode_into_libs=yes
11060
11061 # Append ld.so.conf contents to the search path
11062 if test -f /etc/ld.so.conf; then
11063 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' ' '`
11064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11065 fi
11066
11067 # We used to test for /lib/ld.so.1 and disable shared libraries on
11068 # powerpc, because MkLinux only supported shared libraries with the
11069 # GNU dynamic linker. Since this was broken with cross compilers,
11070 # most powerpc-linux boxes support dynamic linking these days and
11071 # people can always --disable-shared, the test was removed, and we
11072 # assume the GNU/Linux dynamic linker is in use.
11073 dynamic_linker='GNU/Linux ld.so'
11074 ;;
11075
11076netbsd*)
11077 version_type=sunos
11078 need_lib_prefix=no
11079 need_version=no
11080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11083 dynamic_linker='NetBSD (a.out) ld.so'
11084 else
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 dynamic_linker='NetBSD ld.elf_so'
11088 fi
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=yes
11091 hardcode_into_libs=yes
11092 ;;
11093
11094newsos6)
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 ;;
11100
11101*nto* | *qnx*)
11102 version_type=qnx
11103 need_lib_prefix=no
11104 need_version=no
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=no
11109 hardcode_into_libs=yes
11110 dynamic_linker='ldqnx.so'
11111 ;;
11112
11113openbsd*)
11114 version_type=sunos
11115 sys_lib_dlsearch_path_spec="/usr/lib"
11116 need_lib_prefix=no
11117 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11118 case $host_os in
11119 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11120 *) need_version=no ;;
11121 esac
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11126 case $host_os in
11127 openbsd2.[89] | openbsd2.[89].*)
11128 shlibpath_overrides_runpath=no
11129 ;;
11130 *)
11131 shlibpath_overrides_runpath=yes
11132 ;;
11133 esac
11134 else
11135 shlibpath_overrides_runpath=yes
11136 fi
11137 ;;
11138
11139os2*)
11140 libname_spec='$name'
11141 shrext_cmds=".dll"
11142 need_lib_prefix=no
11143 library_names_spec='$libname${shared_ext} $libname.a'
11144 dynamic_linker='OS/2 ld.exe'
11145 shlibpath_var=LIBPATH
11146 ;;
11147
11148osf3* | osf4* | osf5*)
11149 version_type=osf
11150 need_lib_prefix=no
11151 need_version=no
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11156 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11157 ;;
11158
11159rdos*)
11160 dynamic_linker=no
11161 ;;
11162
11163solaris*)
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 soname_spec='${libname}${release}${shared_ext}$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=yes
11171 hardcode_into_libs=yes
11172 # ldd complains unless libraries are executable
11173 postinstall_cmds='chmod +x $lib'
11174 ;;
11175
11176sunos4*)
11177 version_type=sunos
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath=yes
11182 if test "$with_gnu_ld" = yes; then
11183 need_lib_prefix=no
11184 fi
11185 need_version=yes
11186 ;;
11187
11188sysv4 | sysv4.3*)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 case $host_vendor in
11194 sni)
11195 shlibpath_overrides_runpath=no
11196 need_lib_prefix=no
11197 runpath_var=LD_RUN_PATH
11198 ;;
11199 siemens)
11200 need_lib_prefix=no
11201 ;;
11202 motorola)
11203 need_lib_prefix=no
11204 need_version=no
11205 shlibpath_overrides_runpath=no
11206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11207 ;;
11208 esac
11209 ;;
11210
11211sysv4*MP*)
11212 if test -d /usr/nec ;then
11213 version_type=linux # correct to gnu/linux during the next big refactor
11214 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11215 soname_spec='$libname${shared_ext}.$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 fi
11218 ;;
11219
11220sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11221 version_type=freebsd-elf
11222 need_lib_prefix=no
11223 need_version=no
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 hardcode_into_libs=yes
11229 if test "$with_gnu_ld" = yes; then
11230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11231 else
11232 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11233 case $host_os in
11234 sco3.2v5*)
11235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11236 ;;
11237 esac
11238 fi
11239 sys_lib_dlsearch_path_spec='/usr/lib'
11240 ;;
11241
11242tpf*)
11243 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11244 version_type=linux # correct to gnu/linux during the next big refactor
11245 need_lib_prefix=no
11246 need_version=no
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=no
11250 hardcode_into_libs=yes
11251 ;;
11252
11253uts4*)
11254 version_type=linux # correct to gnu/linux during the next big refactor
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 ;;
11259
11260*)
11261 dynamic_linker=no
11262 ;;
11263esac
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11265$as_echo "$dynamic_linker" >&6; }
11266test "$dynamic_linker" = no && can_build_shared=no
11267
11268variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11269if test "$GCC" = yes; then
11270 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11271fi
11272
11273if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11274 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11275fi
11276if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11277 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11278fi
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11372$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11373hardcode_action=
11374if test -n "$hardcode_libdir_flag_spec" ||
11375 test -n "$runpath_var" ||
11376 test "X$hardcode_automatic" = "Xyes" ; then
11377
11378 # We can hardcode non-existent directories.
11379 if test "$hardcode_direct" != no &&
11380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11381 # have to relink, otherwise we might link with an installed library
11382 # when we should be linking with a yet-to-be-installed one
11383 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11384 test "$hardcode_minus_L" != no; then
11385 # Linking always hardcodes the temporary library directory.
11386 hardcode_action=relink
11387 else
11388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11389 hardcode_action=immediate
11390 fi
11391else
11392 # We cannot hardcode anything, or else we can only hardcode existing
11393 # directories.
11394 hardcode_action=unsupported
11395fi
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11397$as_echo "$hardcode_action" >&6; }
11398
11399if test "$hardcode_action" = relink ||
11400 test "$inherit_rpath" = yes; then
11401 # Fast installation is not supported
11402 enable_fast_install=no
11403elif test "$shlibpath_overrides_runpath" = yes ||
11404 test "$enable_shared" = no; then
11405 # Fast installation is not necessary
11406 enable_fast_install=needless
11407fi
11408
11409
11410
11411
11412
11413
11414 if test "x$enable_dlopen" != xyes; then
11415 enable_dlopen=unknown
11416 enable_dlopen_self=unknown
11417 enable_dlopen_self_static=unknown
11418else
11419 lt_cv_dlopen=no
11420 lt_cv_dlopen_libs=
11421
11422 case $host_os in
11423 beos*)
11424 lt_cv_dlopen="load_add_on"
11425 lt_cv_dlopen_libs=
11426 lt_cv_dlopen_self=yes
11427 ;;
11428
11429 mingw* | pw32* | cegcc*)
11430 lt_cv_dlopen="LoadLibrary"
11431 lt_cv_dlopen_libs=
11432 ;;
11433
11434 cygwin*)
11435 lt_cv_dlopen="dlopen"
11436 lt_cv_dlopen_libs=
11437 ;;
11438
11439 darwin*)
11440 # if libdl is installed we need to link against it
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11442$as_echo_n "checking for dlopen in -ldl... " >&6; }
11443if ${ac_cv_lib_dl_dlopen+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445else
11446 ac_check_lib_save_LIBS=$LIBS
11447LIBS="-ldl $LIBS"
11448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449/* end confdefs.h. */
11450
11451/* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454#ifdef __cplusplus
11455extern "C"
11456#endif
11457char dlopen ();
11458int
11459main ()
11460{
11461return dlopen ();
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_lib_dl_dlopen=yes
11468else
11469 ac_cv_lib_dl_dlopen=no
11470fi
11471rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473LIBS=$ac_check_lib_save_LIBS
11474fi
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11476$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11477if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11479else
11480
11481 lt_cv_dlopen="dyld"
11482 lt_cv_dlopen_libs=
11483 lt_cv_dlopen_self=yes
11484
11485fi
11486
11487 ;;
11488
11489 *)
11490 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11491if test "x$ac_cv_func_shl_load" = xyes; then :
11492 lt_cv_dlopen="shl_load"
11493else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11495$as_echo_n "checking for shl_load in -ldld... " >&6; }
11496if ${ac_cv_lib_dld_shl_load+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498else
11499 ac_check_lib_save_LIBS=$LIBS
11500LIBS="-ldld $LIBS"
11501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h. */
11503
11504/* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507#ifdef __cplusplus
11508extern "C"
11509#endif
11510char shl_load ();
11511int
11512main ()
11513{
11514return shl_load ();
11515 ;
11516 return 0;
11517}
11518_ACEOF
11519if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_lib_dld_shl_load=yes
11521else
11522 ac_cv_lib_dld_shl_load=no
11523fi
11524rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526LIBS=$ac_check_lib_save_LIBS
11527fi
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11529$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11530if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11531 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11532else
11533 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11534if test "x$ac_cv_func_dlopen" = xyes; then :
11535 lt_cv_dlopen="dlopen"
11536else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11538$as_echo_n "checking for dlopen in -ldl... " >&6; }
11539if ${ac_cv_lib_dl_dlopen+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541else
11542 ac_check_lib_save_LIBS=$LIBS
11543LIBS="-ldl $LIBS"
11544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545/* end confdefs.h. */
11546
11547/* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550#ifdef __cplusplus
11551extern "C"
11552#endif
11553char dlopen ();
11554int
11555main ()
11556{
11557return dlopen ();
11558 ;
11559 return 0;
11560}
11561_ACEOF
11562if ac_fn_c_try_link "$LINENO"; then :
11563 ac_cv_lib_dl_dlopen=yes
11564else
11565 ac_cv_lib_dl_dlopen=no
11566fi
11567rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569LIBS=$ac_check_lib_save_LIBS
11570fi
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11572$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11573if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11575else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11577$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11578if ${ac_cv_lib_svld_dlopen+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580else
11581 ac_check_lib_save_LIBS=$LIBS
11582LIBS="-lsvld $LIBS"
11583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h. */
11585
11586/* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589#ifdef __cplusplus
11590extern "C"
11591#endif
11592char dlopen ();
11593int
11594main ()
11595{
11596return dlopen ();
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_lib_svld_dlopen=yes
11603else
11604 ac_cv_lib_svld_dlopen=no
11605fi
11606rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608LIBS=$ac_check_lib_save_LIBS
11609fi
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11611$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11612if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11614else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11616$as_echo_n "checking for dld_link in -ldld... " >&6; }
11617if ${ac_cv_lib_dld_dld_link+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619else
11620 ac_check_lib_save_LIBS=$LIBS
11621LIBS="-ldld $LIBS"
11622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623/* end confdefs.h. */
11624
11625/* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628#ifdef __cplusplus
11629extern "C"
11630#endif
11631char dld_link ();
11632int
11633main ()
11634{
11635return dld_link ();
11636 ;
11637 return 0;
11638}
11639_ACEOF
11640if ac_fn_c_try_link "$LINENO"; then :
11641 ac_cv_lib_dld_dld_link=yes
11642else
11643 ac_cv_lib_dld_dld_link=no
11644fi
11645rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647LIBS=$ac_check_lib_save_LIBS
11648fi
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11650$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11651if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11652 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11653fi
11654
11655
11656fi
11657
11658
11659fi
11660
11661
11662fi
11663
11664
11665fi
11666
11667
11668fi
11669
11670 ;;
11671 esac
11672
11673 if test "x$lt_cv_dlopen" != xno; then
11674 enable_dlopen=yes
11675 else
11676 enable_dlopen=no
11677 fi
11678
11679 case $lt_cv_dlopen in
11680 dlopen)
11681 save_CPPFLAGS="$CPPFLAGS"
11682 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11683
11684 save_LDFLAGS="$LDFLAGS"
11685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11686
11687 save_LIBS="$LIBS"
11688 LIBS="$lt_cv_dlopen_libs $LIBS"
11689
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11691$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11692if ${lt_cv_dlopen_self+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694else
11695 if test "$cross_compiling" = yes; then :
11696 lt_cv_dlopen_self=cross
11697else
11698 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11699 lt_status=$lt_dlunknown
11700 cat > conftest.$ac_ext <<_LT_EOF
11701#line $LINENO "configure"
11702#include "confdefs.h"
11703
11704#if HAVE_DLFCN_H
11705#include <dlfcn.h>
11706#endif
11707
11708#include <stdio.h>
11709
11710#ifdef RTLD_GLOBAL
11711# define LT_DLGLOBAL RTLD_GLOBAL
11712#else
11713# ifdef DL_GLOBAL
11714# define LT_DLGLOBAL DL_GLOBAL
11715# else
11716# define LT_DLGLOBAL 0
11717# endif
11718#endif
11719
11720/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11721 find out it does not work in some platform. */
11722#ifndef LT_DLLAZY_OR_NOW
11723# ifdef RTLD_LAZY
11724# define LT_DLLAZY_OR_NOW RTLD_LAZY
11725# else
11726# ifdef DL_LAZY
11727# define LT_DLLAZY_OR_NOW DL_LAZY
11728# else
11729# ifdef RTLD_NOW
11730# define LT_DLLAZY_OR_NOW RTLD_NOW
11731# else
11732# ifdef DL_NOW
11733# define LT_DLLAZY_OR_NOW DL_NOW
11734# else
11735# define LT_DLLAZY_OR_NOW 0
11736# endif
11737# endif
11738# endif
11739# endif
11740#endif
11741
11742/* When -fvisbility=hidden is used, assume the code has been annotated
11743 correspondingly for the symbols needed. */
11744#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11745int fnord () __attribute__((visibility("default")));
11746#endif
11747
11748int fnord () { return 42; }
11749int main ()
11750{
11751 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11752 int status = $lt_dlunknown;
11753
11754 if (self)
11755 {
11756 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11757 else
11758 {
11759 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11760 else puts (dlerror ());
11761 }
11762 /* dlclose (self); */
11763 }
11764 else
11765 puts (dlerror ());
11766
11767 return status;
11768}
11769_LT_EOF
11770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11771 (eval $ac_link) 2>&5
11772 ac_status=$?
11773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11774 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11775 (./conftest; exit; ) >&5 2>/dev/null
11776 lt_status=$?
11777 case x$lt_status in
11778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11780 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11781 esac
11782 else :
11783 # compilation failed
11784 lt_cv_dlopen_self=no
11785 fi
11786fi
11787rm -fr conftest*
11788
11789
11790fi
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11792$as_echo "$lt_cv_dlopen_self" >&6; }
11793
11794 if test "x$lt_cv_dlopen_self" = xyes; then
11795 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11797$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11798if ${lt_cv_dlopen_self_static+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800else
11801 if test "$cross_compiling" = yes; then :
11802 lt_cv_dlopen_self_static=cross
11803else
11804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11805 lt_status=$lt_dlunknown
11806 cat > conftest.$ac_ext <<_LT_EOF
11807#line $LINENO "configure"
11808#include "confdefs.h"
11809
11810#if HAVE_DLFCN_H
11811#include <dlfcn.h>
11812#endif
11813
11814#include <stdio.h>
11815
11816#ifdef RTLD_GLOBAL
11817# define LT_DLGLOBAL RTLD_GLOBAL
11818#else
11819# ifdef DL_GLOBAL
11820# define LT_DLGLOBAL DL_GLOBAL
11821# else
11822# define LT_DLGLOBAL 0
11823# endif
11824#endif
11825
11826/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11827 find out it does not work in some platform. */
11828#ifndef LT_DLLAZY_OR_NOW
11829# ifdef RTLD_LAZY
11830# define LT_DLLAZY_OR_NOW RTLD_LAZY
11831# else
11832# ifdef DL_LAZY
11833# define LT_DLLAZY_OR_NOW DL_LAZY
11834# else
11835# ifdef RTLD_NOW
11836# define LT_DLLAZY_OR_NOW RTLD_NOW
11837# else
11838# ifdef DL_NOW
11839# define LT_DLLAZY_OR_NOW DL_NOW
11840# else
11841# define LT_DLLAZY_OR_NOW 0
11842# endif
11843# endif
11844# endif
11845# endif
11846#endif
11847
11848/* When -fvisbility=hidden is used, assume the code has been annotated
11849 correspondingly for the symbols needed. */
11850#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11851int fnord () __attribute__((visibility("default")));
11852#endif
11853
11854int fnord () { return 42; }
11855int main ()
11856{
11857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11858 int status = $lt_dlunknown;
11859
11860 if (self)
11861 {
11862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11863 else
11864 {
11865 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11866 else puts (dlerror ());
11867 }
11868 /* dlclose (self); */
11869 }
11870 else
11871 puts (dlerror ());
11872
11873 return status;
11874}
11875_LT_EOF
11876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11877 (eval $ac_link) 2>&5
11878 ac_status=$?
11879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11880 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11881 (./conftest; exit; ) >&5 2>/dev/null
11882 lt_status=$?
11883 case x$lt_status in
11884 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11885 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11886 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11887 esac
11888 else :
11889 # compilation failed
11890 lt_cv_dlopen_self_static=no
11891 fi
11892fi
11893rm -fr conftest*
11894
11895
11896fi
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11898$as_echo "$lt_cv_dlopen_self_static" >&6; }
11899 fi
11900
11901 CPPFLAGS="$save_CPPFLAGS"
11902 LDFLAGS="$save_LDFLAGS"
11903 LIBS="$save_LIBS"
11904 ;;
11905 esac
11906
11907 case $lt_cv_dlopen_self in
11908 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11909 *) enable_dlopen_self=unknown ;;
11910 esac
11911
11912 case $lt_cv_dlopen_self_static in
11913 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11914 *) enable_dlopen_self_static=unknown ;;
11915 esac
11916fi
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934striplib=
11935old_striplib=
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11937$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11938if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11939 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11940 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942$as_echo "yes" >&6; }
11943else
11944# FIXME - insert some real tests, host_os isn't really good enough
11945 case $host_os in
11946 darwin*)
11947 if test -n "$STRIP" ; then
11948 striplib="$STRIP -x"
11949 old_striplib="$STRIP -S"
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11951$as_echo "yes" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
11955 fi
11956 ;;
11957 *)
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960 ;;
11961 esac
11962fi
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975 # Report which library types will actually be built
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11977$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11979$as_echo "$can_build_shared" >&6; }
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11982$as_echo_n "checking whether to build shared libraries... " >&6; }
11983 test "$can_build_shared" = "no" && enable_shared=no
11984
11985 # On AIX, shared libraries and static libraries use the same namespace, and
11986 # are all built from PIC.
11987 case $host_os in
11988 aix3*)
11989 test "$enable_shared" = yes && enable_static=no
11990 if test -n "$RANLIB"; then
11991 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11992 postinstall_cmds='$RANLIB $lib'
11993 fi
11994 ;;
11995
11996 aix[4-9]*)
11997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11998 test "$enable_shared" = yes && enable_static=no
11999 fi
12000 ;;
12001 esac
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12003$as_echo "$enable_shared" >&6; }
12004
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12006$as_echo_n "checking whether to build static libraries... " >&6; }
12007 # Make sure either enable_shared or enable_static is yes.
12008 test "$enable_shared" = yes || enable_static=yes
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12010$as_echo "$enable_static" >&6; }
12011
12012
12013
12014
12015fi
12016ac_ext=c
12017ac_cpp='$CPP $CPPFLAGS'
12018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020ac_compiler_gnu=$ac_cv_c_compiler_gnu
12021
12022CC="$lt_save_CC"
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038 ac_config_commands="$ac_config_commands libtool"
12039
12040
12041
12042
12043# Only expand once:
12044
12045
12046ac_ext=cpp
12047ac_cpp='$CXXCPP $CPPFLAGS'
12048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12051if test -z "$CXX"; then
12052 if test -n "$CCC"; then
12053 CXX=$CCC
12054 else
12055 if test -n "$ac_tool_prefix"; then
12056 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12057 do
12058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if ${ac_cv_prog_CXX+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 if test -n "$CXX"; then
12066 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079done
12080 done
12081IFS=$as_save_IFS
12082
12083fi
12084fi
12085CXX=$ac_cv_prog_CXX
12086if test -n "$CXX"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12088$as_echo "$CXX" >&6; }
12089else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
12092fi
12093
12094
12095 test -n "$CXX" && break
12096 done
12097fi
12098if test -z "$CXX"; then
12099 ac_ct_CXX=$CXX
12100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12101do
12102 # Extract the first word of "$ac_prog", so it can be a program name with args.
12103set dummy $ac_prog; ac_word=$2
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105$as_echo_n "checking for $ac_word... " >&6; }
12106if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108else
12109 if test -n "$ac_ct_CXX"; then
12110 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12111else
12112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113for as_dir in $PATH
12114do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119 ac_cv_prog_ac_ct_CXX="$ac_prog"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12122 fi
12123done
12124 done
12125IFS=$as_save_IFS
12126
12127fi
12128fi
12129ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12130if test -n "$ac_ct_CXX"; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12132$as_echo "$ac_ct_CXX" >&6; }
12133else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135$as_echo "no" >&6; }
12136fi
12137
12138
12139 test -n "$ac_ct_CXX" && break
12140done
12141
12142 if test "x$ac_ct_CXX" = x; then
12143 CXX="g++"
12144 else
12145 case $cross_compiling:$ac_tool_warned in
12146yes:)
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12149ac_tool_warned=yes ;;
12150esac
12151 CXX=$ac_ct_CXX
12152 fi
12153fi
12154
12155 fi
12156fi
12157# Provide some information about the compiler.
12158$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12159set X $ac_compile
12160ac_compiler=$2
12161for ac_option in --version -v -V -qversion; do
12162 { { ac_try="$ac_compiler $ac_option >&5"
12163case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12168$as_echo "$ac_try_echo"; } >&5
12169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12170 ac_status=$?
12171 if test -s conftest.err; then
12172 sed '10a\
12173... rest of stderr output deleted ...
12174 10q' conftest.err >conftest.er1
12175 cat conftest.er1 >&5
12176 fi
12177 rm -f conftest.er1 conftest.err
12178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12179 test $ac_status = 0; }
12180done
12181
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12183$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12184if ${ac_cv_cxx_compiler_gnu+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186else
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188/* end confdefs.h. */
12189
12190int
12191main ()
12192{
12193#ifndef __GNUC__
12194 choke me
12195#endif
12196
12197 ;
12198 return 0;
12199}
12200_ACEOF
12201if ac_fn_cxx_try_compile "$LINENO"; then :
12202 ac_compiler_gnu=yes
12203else
12204 ac_compiler_gnu=no
12205fi
12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12208
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12211$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12212if test $ac_compiler_gnu = yes; then
12213 GXX=yes
12214else
12215 GXX=
12216fi
12217ac_test_CXXFLAGS=${CXXFLAGS+set}
12218ac_save_CXXFLAGS=$CXXFLAGS
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12220$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12221if ${ac_cv_prog_cxx_g+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223else
12224 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12225 ac_cxx_werror_flag=yes
12226 ac_cv_prog_cxx_g=no
12227 CXXFLAGS="-g"
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h. */
12230
12231int
12232main ()
12233{
12234
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239if ac_fn_cxx_try_compile "$LINENO"; then :
12240 ac_cv_prog_cxx_g=yes
12241else
12242 CXXFLAGS=""
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244/* end confdefs.h. */
12245
12246int
12247main ()
12248{
12249
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254if ac_fn_cxx_try_compile "$LINENO"; then :
12255
12256else
12257 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12258 CXXFLAGS="-g"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260/* end confdefs.h. */
12261
12262int
12263main ()
12264{
12265
12266 ;
12267 return 0;
12268}
12269_ACEOF
12270if ac_fn_cxx_try_compile "$LINENO"; then :
12271 ac_cv_prog_cxx_g=yes
12272fi
12273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274fi
12275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276fi
12277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12279fi
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12281$as_echo "$ac_cv_prog_cxx_g" >&6; }
12282if test "$ac_test_CXXFLAGS" = set; then
12283 CXXFLAGS=$ac_save_CXXFLAGS
12284elif test $ac_cv_prog_cxx_g = yes; then
12285 if test "$GXX" = yes; then
12286 CXXFLAGS="-g -O2"
12287 else
12288 CXXFLAGS="-g"
12289 fi
12290else
12291 if test "$GXX" = yes; then
12292 CXXFLAGS="-O2"
12293 else
12294 CXXFLAGS=
12295 fi
12296fi
12297ac_ext=c
12298ac_cpp='$CPP $CPPFLAGS'
12299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12301ac_compiler_gnu=$ac_cv_c_compiler_gnu
12302
12303depcc="$CXX" am_compiler_list=
12304
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12306$as_echo_n "checking dependency style of $depcc... " >&6; }
12307if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309else
12310 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12311 # We make a subdir and do the tests there. Otherwise we can end up
12312 # making bogus files that we don't know about and never remove. For
12313 # instance it was reported that on HP-UX the gcc test will end up
12314 # making a dummy file named 'D' -- because '-MD' means "put the output
12315 # in D".
12316 rm -rf conftest.dir
12317 mkdir conftest.dir
12318 # Copy depcomp to subdir because otherwise we won't find it if we're
12319 # using a relative directory.
12320 cp "$am_depcomp" conftest.dir
12321 cd conftest.dir
12322 # We will build objects and dependencies in a subdirectory because
12323 # it helps to detect inapplicable dependency modes. For instance
12324 # both Tru64's cc and ICC support -MD to output dependencies as a
12325 # side effect of compilation, but ICC will put the dependencies in
12326 # the current directory while Tru64 will put them in the object
12327 # directory.
12328 mkdir sub
12329
12330 am_cv_CXX_dependencies_compiler_type=none
12331 if test "$am_compiler_list" = ""; then
12332 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12333 fi
12334 am__universal=false
12335 case " $depcc " in #(
12336 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12337 esac
12338
12339 for depmode in $am_compiler_list; do
12340 # Setup a source with many dependencies, because some compilers
12341 # like to wrap large dependency lists on column 80 (with \), and
12342 # we should not choose a depcomp mode which is confused by this.
12343 #
12344 # We need to recreate these files for each test, as the compiler may
12345 # overwrite some of them when testing with obscure command lines.
12346 # This happens at least with the AIX C compiler.
12347 : > sub/conftest.c
12348 for i in 1 2 3 4 5 6; do
12349 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12350 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12351 # Solaris 10 /bin/sh.
12352 echo '/* dummy */' > sub/conftst$i.h
12353 done
12354 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12355
12356 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12357 # mode. It turns out that the SunPro C++ compiler does not properly
12358 # handle '-M -o', and we need to detect this. Also, some Intel
12359 # versions had trouble with output in subdirs.
12360 am__obj=sub/conftest.${OBJEXT-o}
12361 am__minus_obj="-o $am__obj"
12362 case $depmode in
12363 gcc)
12364 # This depmode causes a compiler race in universal mode.
12365 test "$am__universal" = false || continue
12366 ;;
12367 nosideeffect)
12368 # After this tag, mechanisms are not by side-effect, so they'll
12369 # only be used when explicitly requested.
12370 if test "x$enable_dependency_tracking" = xyes; then
12371 continue
12372 else
12373 break
12374 fi
12375 ;;
12376 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12377 # This compiler won't grok '-c -o', but also, the minuso test has
12378 # not run yet. These depmodes are late enough in the game, and
12379 # so weak that their functioning should not be impacted.
12380 am__obj=conftest.${OBJEXT-o}
12381 am__minus_obj=
12382 ;;
12383 none) break ;;
12384 esac
12385 if depmode=$depmode \
12386 source=sub/conftest.c object=$am__obj \
12387 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12388 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12389 >/dev/null 2>conftest.err &&
12390 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12391 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12392 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12393 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12394 # icc doesn't choke on unknown options, it will just issue warnings
12395 # or remarks (even with -Werror). So we grep stderr for any message
12396 # that says an option was ignored or not supported.
12397 # When given -MP, icc 7.0 and 7.1 complain thusly:
12398 # icc: Command line warning: ignoring option '-M'; no argument required
12399 # The diagnosis changed in icc 8.0:
12400 # icc: Command line remark: option '-MP' not supported
12401 if (grep 'ignoring option' conftest.err ||
12402 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12403 am_cv_CXX_dependencies_compiler_type=$depmode
12404 break
12405 fi
12406 fi
12407 done
12408
12409 cd ..
12410 rm -rf conftest.dir
12411else
12412 am_cv_CXX_dependencies_compiler_type=none
12413fi
12414
12415fi
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12417$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12418CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12419
12420 if
12421 test "x$enable_dependency_tracking" != xno \
12422 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12423 am__fastdepCXX_TRUE=
12424 am__fastdepCXX_FALSE='#'
12425else
12426 am__fastdepCXX_TRUE='#'
12427 am__fastdepCXX_FALSE=
12428fi
12429
12430
12431
12432
12433func_stripname_cnf ()
12434{
12435 case ${2} in
12436 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12437 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12438 esac
12439} # func_stripname_cnf
12440
12441 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12442 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12443 (test "X$CXX" != "Xg++"))) ; then
12444 ac_ext=cpp
12445ac_cpp='$CXXCPP $CPPFLAGS'
12446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12450$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12451if test -z "$CXXCPP"; then
12452 if ${ac_cv_prog_CXXCPP+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454else
12455 # Double quotes because CXXCPP needs to be expanded
12456 for CXXCPP in "$CXX -E" "/lib/cpp"
12457 do
12458 ac_preproc_ok=false
12459for ac_cxx_preproc_warn_flag in '' yes
12460do
12461 # Use a header file that comes with gcc, so configuring glibc
12462 # with a fresh cross-compiler works.
12463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12464 # <limits.h> exists even on freestanding compilers.
12465 # On the NeXT, cc -E runs the code through the compiler's parser,
12466 # not just through cpp. "Syntax error" is here to catch this case.
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468/* end confdefs.h. */
12469#ifdef __STDC__
12470# include <limits.h>
12471#else
12472# include <assert.h>
12473#endif
12474 Syntax error
12475_ACEOF
12476if ac_fn_cxx_try_cpp "$LINENO"; then :
12477
12478else
12479 # Broken: fails on valid input.
12480continue
12481fi
12482rm -f conftest.err conftest.i conftest.$ac_ext
12483
12484 # OK, works on sane cases. Now check whether nonexistent headers
12485 # can be detected and how.
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h. */
12488#include <ac_nonexistent.h>
12489_ACEOF
12490if ac_fn_cxx_try_cpp "$LINENO"; then :
12491 # Broken: success on invalid input.
12492continue
12493else
12494 # Passes both tests.
12495ac_preproc_ok=:
12496break
12497fi
12498rm -f conftest.err conftest.i conftest.$ac_ext
12499
12500done
12501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12502rm -f conftest.i conftest.err conftest.$ac_ext
12503if $ac_preproc_ok; then :
12504 break
12505fi
12506
12507 done
12508 ac_cv_prog_CXXCPP=$CXXCPP
12509
12510fi
12511 CXXCPP=$ac_cv_prog_CXXCPP
12512else
12513 ac_cv_prog_CXXCPP=$CXXCPP
12514fi
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12516$as_echo "$CXXCPP" >&6; }
12517ac_preproc_ok=false
12518for ac_cxx_preproc_warn_flag in '' yes
12519do
12520 # Use a header file that comes with gcc, so configuring glibc
12521 # with a fresh cross-compiler works.
12522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12523 # <limits.h> exists even on freestanding compilers.
12524 # On the NeXT, cc -E runs the code through the compiler's parser,
12525 # not just through cpp. "Syntax error" is here to catch this case.
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h. */
12528#ifdef __STDC__
12529# include <limits.h>
12530#else
12531# include <assert.h>
12532#endif
12533 Syntax error
12534_ACEOF
12535if ac_fn_cxx_try_cpp "$LINENO"; then :
12536
12537else
12538 # Broken: fails on valid input.
12539continue
12540fi
12541rm -f conftest.err conftest.i conftest.$ac_ext
12542
12543 # OK, works on sane cases. Now check whether nonexistent headers
12544 # can be detected and how.
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h. */
12547#include <ac_nonexistent.h>
12548_ACEOF
12549if ac_fn_cxx_try_cpp "$LINENO"; then :
12550 # Broken: success on invalid input.
12551continue
12552else
12553 # Passes both tests.
12554ac_preproc_ok=:
12555break
12556fi
12557rm -f conftest.err conftest.i conftest.$ac_ext
12558
12559done
12560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12561rm -f conftest.i conftest.err conftest.$ac_ext
12562if $ac_preproc_ok; then :
12563
12564else
12565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12567as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12568See \`config.log' for more details" "$LINENO" 5; }
12569fi
12570
12571ac_ext=c
12572ac_cpp='$CPP $CPPFLAGS'
12573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575ac_compiler_gnu=$ac_cv_c_compiler_gnu
12576
12577else
12578 _lt_caught_CXX_error=yes
12579fi
12580
12581ac_ext=cpp
12582ac_cpp='$CXXCPP $CPPFLAGS'
12583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12586
12587archive_cmds_need_lc_CXX=no
12588allow_undefined_flag_CXX=
12589always_export_symbols_CXX=no
12590archive_expsym_cmds_CXX=
12591compiler_needs_object_CXX=no
12592export_dynamic_flag_spec_CXX=
12593hardcode_direct_CXX=no
12594hardcode_direct_absolute_CXX=no
12595hardcode_libdir_flag_spec_CXX=
12596hardcode_libdir_separator_CXX=
12597hardcode_minus_L_CXX=no
12598hardcode_shlibpath_var_CXX=unsupported
12599hardcode_automatic_CXX=no
12600inherit_rpath_CXX=no
12601module_cmds_CXX=
12602module_expsym_cmds_CXX=
12603link_all_deplibs_CXX=unknown
12604old_archive_cmds_CXX=$old_archive_cmds
12605reload_flag_CXX=$reload_flag
12606reload_cmds_CXX=$reload_cmds
12607no_undefined_flag_CXX=
12608whole_archive_flag_spec_CXX=
12609enable_shared_with_static_runtimes_CXX=no
12610
12611# Source file extension for C++ test sources.
12612ac_ext=cpp
12613
12614# Object file extension for compiled C++ test sources.
12615objext=o
12616objext_CXX=$objext
12617
12618# No sense in running all these tests if we already determined that
12619# the CXX compiler isn't working. Some variables (like enable_shared)
12620# are currently assumed to apply to all compilers on this platform,
12621# and will be corrupted by setting them based on a non-working compiler.
12622if test "$_lt_caught_CXX_error" != yes; then
12623 # Code to be used in simple compile tests
12624 lt_simple_compile_test_code="int some_variable = 0;"
12625
12626 # Code to be used in simple link tests
12627 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12628
12629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12630
12631
12632
12633
12634
12635
12636# If no C compiler was specified, use CC.
12637LTCC=${LTCC-"$CC"}
12638
12639# If no C compiler flags were specified, use CFLAGS.
12640LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12641
12642# Allow CC to be a program name with arguments.
12643compiler=$CC
12644
12645
12646 # save warnings/boilerplate of simple test code
12647 ac_outfile=conftest.$ac_objext
12648echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12649eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12650_lt_compiler_boilerplate=`cat conftest.err`
12651$RM conftest*
12652
12653 ac_outfile=conftest.$ac_objext
12654echo "$lt_simple_link_test_code" >conftest.$ac_ext
12655eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12656_lt_linker_boilerplate=`cat conftest.err`
12657$RM -r conftest*
12658
12659
12660 # Allow CC to be a program name with arguments.
12661 lt_save_CC=$CC
12662 lt_save_CFLAGS=$CFLAGS
12663 lt_save_LD=$LD
12664 lt_save_GCC=$GCC
12665 GCC=$GXX
12666 lt_save_with_gnu_ld=$with_gnu_ld
12667 lt_save_path_LD=$lt_cv_path_LD
12668 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12669 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12670 else
12671 $as_unset lt_cv_prog_gnu_ld
12672 fi
12673 if test -n "${lt_cv_path_LDCXX+set}"; then
12674 lt_cv_path_LD=$lt_cv_path_LDCXX
12675 else
12676 $as_unset lt_cv_path_LD
12677 fi
12678 test -z "${LDCXX+set}" || LD=$LDCXX
12679 CC=${CXX-"c++"}
12680 CFLAGS=$CXXFLAGS
12681 compiler=$CC
12682 compiler_CXX=$CC
12683 for cc_temp in $compiler""; do
12684 case $cc_temp in
12685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12687 \-*) ;;
12688 *) break;;
12689 esac
12690done
12691cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12692
12693
12694 if test -n "$compiler"; then
12695 # We don't want -fno-exception when compiling C++ code, so set the
12696 # no_builtin_flag separately
12697 if test "$GXX" = yes; then
12698 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12699 else
12700 lt_prog_compiler_no_builtin_flag_CXX=
12701 fi
12702
12703 if test "$GXX" = yes; then
12704 # Set up default GNU C++ configuration
12705
12706
12707
12708# Check whether --with-gnu-ld was given.
12709if test "${with_gnu_ld+set}" = set; then :
12710 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12711else
12712 with_gnu_ld=no
12713fi
12714
12715ac_prog=ld
12716if test "$GCC" = yes; then
12717 # Check if gcc -print-prog-name=ld gives a path.
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12719$as_echo_n "checking for ld used by $CC... " >&6; }
12720 case $host in
12721 *-*-mingw*)
12722 # gcc leaves a trailing carriage return which upsets mingw
12723 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12724 *)
12725 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12726 esac
12727 case $ac_prog in
12728 # Accept absolute paths.
12729 [\\/]* | ?:[\\/]*)
12730 re_direlt='/[^/][^/]*/\.\./'
12731 # Canonicalize the pathname of ld
12732 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12733 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12734 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12735 done
12736 test -z "$LD" && LD="$ac_prog"
12737 ;;
12738 "")
12739 # If it fails, then pretend we aren't using GCC.
12740 ac_prog=ld
12741 ;;
12742 *)
12743 # If it is relative, then search for the first ld in PATH.
12744 with_gnu_ld=unknown
12745 ;;
12746 esac
12747elif test "$with_gnu_ld" = yes; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12749$as_echo_n "checking for GNU ld... " >&6; }
12750else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12752$as_echo_n "checking for non-GNU ld... " >&6; }
12753fi
12754if ${lt_cv_path_LD+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756else
12757 if test -z "$LD"; then
12758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12759 for ac_dir in $PATH; do
12760 IFS="$lt_save_ifs"
12761 test -z "$ac_dir" && ac_dir=.
12762 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12763 lt_cv_path_LD="$ac_dir/$ac_prog"
12764 # Check to see if the program is GNU ld. I'd rather use --version,
12765 # but apparently some variants of GNU ld only accept -v.
12766 # Break only if it was the GNU/non-GNU ld that we prefer.
12767 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12768 *GNU* | *'with BFD'*)
12769 test "$with_gnu_ld" != no && break
12770 ;;
12771 *)
12772 test "$with_gnu_ld" != yes && break
12773 ;;
12774 esac
12775 fi
12776 done
12777 IFS="$lt_save_ifs"
12778else
12779 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12780fi
12781fi
12782
12783LD="$lt_cv_path_LD"
12784if test -n "$LD"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12786$as_echo "$LD" >&6; }
12787else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789$as_echo "no" >&6; }
12790fi
12791test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12793$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12794if ${lt_cv_prog_gnu_ld+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796else
12797 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12798case `$LD -v 2>&1 </dev/null` in
12799*GNU* | *'with BFD'*)
12800 lt_cv_prog_gnu_ld=yes
12801 ;;
12802*)
12803 lt_cv_prog_gnu_ld=no
12804 ;;
12805esac
12806fi
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12808$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12809with_gnu_ld=$lt_cv_prog_gnu_ld
12810
12811
12812
12813
12814
12815
12816
12817 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12818 # archiving commands below assume that GNU ld is being used.
12819 if test "$with_gnu_ld" = yes; then
12820 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821 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'
12822
12823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12825
12826 # If archive_cmds runs LD, not CC, wlarc should be empty
12827 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12828 # investigate it a little bit more. (MM)
12829 wlarc='${wl}'
12830
12831 # ancient GNU ld didn't support --whole-archive et. al.
12832 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12833 $GREP 'no-whole-archive' > /dev/null; then
12834 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12835 else
12836 whole_archive_flag_spec_CXX=
12837 fi
12838 else
12839 with_gnu_ld=no
12840 wlarc=
12841
12842 # A generic and very simple default shared library creation
12843 # command for GNU C++ for the case where it uses the native
12844 # linker, instead of GNU ld. If possible, this setting should
12845 # overridden to take advantage of the native linker features on
12846 # the platform it is being used on.
12847 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12848 fi
12849
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12854
12855 else
12856 GXX=no
12857 with_gnu_ld=no
12858 wlarc=
12859 fi
12860
12861 # PORTME: fill in a description of your system's C++ link characteristics
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12863$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12864 ld_shlibs_CXX=yes
12865 case $host_os in
12866 aix3*)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870 aix[4-9]*)
12871 if test "$host_cpu" = ia64; then
12872 # On IA64, the linker does run time linking by default, so we don't
12873 # have to do anything special.
12874 aix_use_runtimelinking=no
12875 exp_sym_flag='-Bexport'
12876 no_entry_flag=""
12877 else
12878 aix_use_runtimelinking=no
12879
12880 # Test if we are trying to use run time linking or normal
12881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12882 # need to do runtime linking.
12883 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12884 for ld_flag in $LDFLAGS; do
12885 case $ld_flag in
12886 *-brtl*)
12887 aix_use_runtimelinking=yes
12888 break
12889 ;;
12890 esac
12891 done
12892 ;;
12893 esac
12894
12895 exp_sym_flag='-bexport'
12896 no_entry_flag='-bnoentry'
12897 fi
12898
12899 # When large executables or shared objects are built, AIX ld can
12900 # have problems creating the table of contents. If linking a library
12901 # or program results in "error TOC overflow" add -mminimal-toc to
12902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12904
12905 archive_cmds_CXX=''
12906 hardcode_direct_CXX=yes
12907 hardcode_direct_absolute_CXX=yes
12908 hardcode_libdir_separator_CXX=':'
12909 link_all_deplibs_CXX=yes
12910 file_list_spec_CXX='${wl}-f,'
12911
12912 if test "$GXX" = yes; then
12913 case $host_os in aix4.[012]|aix4.[012].*)
12914 # We only want to do this on AIX 4.2 and lower, the check
12915 # below for broken collect2 doesn't work under 4.3+
12916 collect2name=`${CC} -print-prog-name=collect2`
12917 if test -f "$collect2name" &&
12918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12919 then
12920 # We have reworked collect2
12921 :
12922 else
12923 # We have old collect2
12924 hardcode_direct_CXX=unsupported
12925 # It fails to find uninstalled libraries when the uninstalled
12926 # path is not listed in the libpath. Setting hardcode_minus_L
12927 # to unsupported forces relinking
12928 hardcode_minus_L_CXX=yes
12929 hardcode_libdir_flag_spec_CXX='-L$libdir'
12930 hardcode_libdir_separator_CXX=
12931 fi
12932 esac
12933 shared_flag='-shared'
12934 if test "$aix_use_runtimelinking" = yes; then
12935 shared_flag="$shared_flag "'${wl}-G'
12936 fi
12937 else
12938 # not using gcc
12939 if test "$host_cpu" = ia64; then
12940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12941 # chokes on -Wl,-G. The following line is correct:
12942 shared_flag='-G'
12943 else
12944 if test "$aix_use_runtimelinking" = yes; then
12945 shared_flag='${wl}-G'
12946 else
12947 shared_flag='${wl}-bM:SRE'
12948 fi
12949 fi
12950 fi
12951
12952 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12953 # It seems that -bexpall does not export symbols beginning with
12954 # underscore (_), so it is better to generate a list of symbols to
12955 # export.
12956 always_export_symbols_CXX=yes
12957 if test "$aix_use_runtimelinking" = yes; then
12958 # Warning - without using the other runtime loading flags (-brtl),
12959 # -berok will link without error, but may produce a broken library.
12960 allow_undefined_flag_CXX='-berok'
12961 # Determine the default libpath from the value encoded in an empty
12962 # executable.
12963 if test "${lt_cv_aix_libpath+set}" = set; then
12964 aix_libpath=$lt_cv_aix_libpath
12965else
12966 if ${lt_cv_aix_libpath__CXX+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968else
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970/* end confdefs.h. */
12971
12972int
12973main ()
12974{
12975
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980if ac_fn_cxx_try_link "$LINENO"; then :
12981
12982 lt_aix_libpath_sed='
12983 /Import File Strings/,/^$/ {
12984 /^0/ {
12985 s/^0 *\([^ ]*\) *$/\1/
12986 p
12987 }
12988 }'
12989 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12990 # Check for a 64-bit object if we didn't find anything.
12991 if test -z "$lt_cv_aix_libpath__CXX"; then
12992 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12993 fi
12994fi
12995rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12997 if test -z "$lt_cv_aix_libpath__CXX"; then
12998 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12999 fi
13000
13001fi
13002
13003 aix_libpath=$lt_cv_aix_libpath__CXX
13004fi
13005
13006 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13007
13008 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"
13009 else
13010 if test "$host_cpu" = ia64; then
13011 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13012 allow_undefined_flag_CXX="-z nodefs"
13013 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"
13014 else
13015 # Determine the default libpath from the value encoded in an
13016 # empty executable.
13017 if test "${lt_cv_aix_libpath+set}" = set; then
13018 aix_libpath=$lt_cv_aix_libpath
13019else
13020 if ${lt_cv_aix_libpath__CXX+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022else
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024/* end confdefs.h. */
13025
13026int
13027main ()
13028{
13029
13030 ;
13031 return 0;
13032}
13033_ACEOF
13034if ac_fn_cxx_try_link "$LINENO"; then :
13035
13036 lt_aix_libpath_sed='
13037 /Import File Strings/,/^$/ {
13038 /^0/ {
13039 s/^0 *\([^ ]*\) *$/\1/
13040 p
13041 }
13042 }'
13043 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13044 # Check for a 64-bit object if we didn't find anything.
13045 if test -z "$lt_cv_aix_libpath__CXX"; then
13046 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13047 fi
13048fi
13049rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 if test -z "$lt_cv_aix_libpath__CXX"; then
13052 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13053 fi
13054
13055fi
13056
13057 aix_libpath=$lt_cv_aix_libpath__CXX
13058fi
13059
13060 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13061 # Warning - without using the other run time loading flags,
13062 # -berok will link without error, but may produce a broken library.
13063 no_undefined_flag_CXX=' ${wl}-bernotok'
13064 allow_undefined_flag_CXX=' ${wl}-berok'
13065 if test "$with_gnu_ld" = yes; then
13066 # We only use this code for GNU lds that support --whole-archive.
13067 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13068 else
13069 # Exported symbols can be pulled into shared objects from archives
13070 whole_archive_flag_spec_CXX='$convenience'
13071 fi
13072 archive_cmds_need_lc_CXX=yes
13073 # This is similar to how AIX traditionally builds its shared
13074 # libraries.
13075 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'
13076 fi
13077 fi
13078 ;;
13079
13080 beos*)
13081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13082 allow_undefined_flag_CXX=unsupported
13083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13084 # support --undefined. This deserves some investigation. FIXME
13085 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086 else
13087 ld_shlibs_CXX=no
13088 fi
13089 ;;
13090
13091 chorus*)
13092 case $cc_basename in
13093 *)
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13096 ;;
13097 esac
13098 ;;
13099
13100 cygwin* | mingw* | pw32* | cegcc*)
13101 case $GXX,$cc_basename in
13102 ,cl* | no,cl*)
13103 # Native MSVC
13104 # hardcode_libdir_flag_spec is actually meaningless, as there is
13105 # no search path for DLLs.
13106 hardcode_libdir_flag_spec_CXX=' '
13107 allow_undefined_flag_CXX=unsupported
13108 always_export_symbols_CXX=yes
13109 file_list_spec_CXX='@'
13110 # Tell ltmain to make .lib files, not .a files.
13111 libext=lib
13112 # Tell ltmain to make .dll files, not .so files.
13113 shrext_cmds=".dll"
13114 # FIXME: Setting linknames here is a bad hack.
13115 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13116 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13117 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13118 else
13119 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13120 fi~
13121 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13122 linknames='
13123 # The linker will not automatically build a static lib if we build a DLL.
13124 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13125 enable_shared_with_static_runtimes_CXX=yes
13126 # Don't use ranlib
13127 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13128 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13129 lt_tool_outputfile="@TOOL_OUTPUT@"~
13130 case $lt_outputfile in
13131 *.exe|*.EXE) ;;
13132 *)
13133 lt_outputfile="$lt_outputfile.exe"
13134 lt_tool_outputfile="$lt_tool_outputfile.exe"
13135 ;;
13136 esac~
13137 func_to_tool_file "$lt_outputfile"~
13138 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13139 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13140 $RM "$lt_outputfile.manifest";
13141 fi'
13142 ;;
13143 *)
13144 # g++
13145 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13146 # as there is no search path for DLLs.
13147 hardcode_libdir_flag_spec_CXX='-L$libdir'
13148 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13149 allow_undefined_flag_CXX=unsupported
13150 always_export_symbols_CXX=no
13151 enable_shared_with_static_runtimes_CXX=yes
13152
13153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13154 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'
13155 # If the export-symbols file already is a .def file (1st line
13156 # is EXPORTS), use it as is; otherwise, prepend...
13157 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13158 cp $export_symbols $output_objdir/$soname.def;
13159 else
13160 echo EXPORTS > $output_objdir/$soname.def;
13161 cat $export_symbols >> $output_objdir/$soname.def;
13162 fi~
13163 $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'
13164 else
13165 ld_shlibs_CXX=no
13166 fi
13167 ;;
13168 esac
13169 ;;
13170 darwin* | rhapsody*)
13171
13172
13173 archive_cmds_need_lc_CXX=no
13174 hardcode_direct_CXX=no
13175 hardcode_automatic_CXX=yes
13176 hardcode_shlibpath_var_CXX=unsupported
13177 if test "$lt_cv_ld_force_load" = "yes"; then
13178 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\"`'
13179
13180 else
13181 whole_archive_flag_spec_CXX=''
13182 fi
13183 link_all_deplibs_CXX=yes
13184 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13185 case $cc_basename in
13186 ifort*) _lt_dar_can_shared=yes ;;
13187 *) _lt_dar_can_shared=$GCC ;;
13188 esac
13189 if test "$_lt_dar_can_shared" = "yes"; then
13190 output_verbose_link_cmd=func_echo_all
13191 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}"
13192 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13193 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}"
13194 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}"
13195 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13196 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}"
13197 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}"
13198 fi
13199
13200 else
13201 ld_shlibs_CXX=no
13202 fi
13203
13204 ;;
13205
13206 dgux*)
13207 case $cc_basename in
13208 ec++*)
13209 # FIXME: insert proper C++ library support
13210 ld_shlibs_CXX=no
13211 ;;
13212 ghcx*)
13213 # Green Hills C++ Compiler
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 *)
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 ;;
13221 esac
13222 ;;
13223
13224 freebsd2.*)
13225 # C++ shared libraries reported to be fairly broken before
13226 # switch to ELF
13227 ld_shlibs_CXX=no
13228 ;;
13229
13230 freebsd-elf*)
13231 archive_cmds_need_lc_CXX=no
13232 ;;
13233
13234 freebsd* | dragonfly*)
13235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13236 # conventions
13237 ld_shlibs_CXX=yes
13238 ;;
13239
13240 gnu*)
13241 ;;
13242
13243 haiku*)
13244 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13245 link_all_deplibs_CXX=yes
13246 ;;
13247
13248 hpux9*)
13249 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13250 hardcode_libdir_separator_CXX=:
13251 export_dynamic_flag_spec_CXX='${wl}-E'
13252 hardcode_direct_CXX=yes
13253 hardcode_minus_L_CXX=yes # Not in the search PATH,
13254 # but as the default
13255 # location of the library.
13256
13257 case $cc_basename in
13258 CC*)
13259 # FIXME: insert proper C++ library support
13260 ld_shlibs_CXX=no
13261 ;;
13262 aCC*)
13263 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'
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13267 #
13268 # There doesn't appear to be a way to prevent this compiler from
13269 # explicitly linking system object files so we need to strip them
13270 # from the output so that they don't get included in the library
13271 # dependencies.
13272 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"'
13273 ;;
13274 *)
13275 if test "$GXX" = yes; then
13276 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'
13277 else
13278 # FIXME: insert proper C++ library support
13279 ld_shlibs_CXX=no
13280 fi
13281 ;;
13282 esac
13283 ;;
13284
13285 hpux10*|hpux11*)
13286 if test $with_gnu_ld = no; then
13287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13288 hardcode_libdir_separator_CXX=:
13289
13290 case $host_cpu in
13291 hppa*64*|ia64*)
13292 ;;
13293 *)
13294 export_dynamic_flag_spec_CXX='${wl}-E'
13295 ;;
13296 esac
13297 fi
13298 case $host_cpu in
13299 hppa*64*|ia64*)
13300 hardcode_direct_CXX=no
13301 hardcode_shlibpath_var_CXX=no
13302 ;;
13303 *)
13304 hardcode_direct_CXX=yes
13305 hardcode_direct_absolute_CXX=yes
13306 hardcode_minus_L_CXX=yes # Not in the search PATH,
13307 # but as the default
13308 # location of the library.
13309 ;;
13310 esac
13311
13312 case $cc_basename in
13313 CC*)
13314 # FIXME: insert proper C++ library support
13315 ld_shlibs_CXX=no
13316 ;;
13317 aCC*)
13318 case $host_cpu in
13319 hppa*64*)
13320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13321 ;;
13322 ia64*)
13323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13324 ;;
13325 *)
13326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13327 ;;
13328 esac
13329 # Commands to make compiler produce verbose output that lists
13330 # what "hidden" libraries, object files and flags are used when
13331 # linking a shared library.
13332 #
13333 # There doesn't appear to be a way to prevent this compiler from
13334 # explicitly linking system object files so we need to strip them
13335 # from the output so that they don't get included in the library
13336 # dependencies.
13337 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"'
13338 ;;
13339 *)
13340 if test "$GXX" = yes; then
13341 if test $with_gnu_ld = no; then
13342 case $host_cpu in
13343 hppa*64*)
13344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345 ;;
13346 ia64*)
13347 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348 ;;
13349 *)
13350 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'
13351 ;;
13352 esac
13353 fi
13354 else
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 fi
13358 ;;
13359 esac
13360 ;;
13361
13362 interix[3-9]*)
13363 hardcode_direct_CXX=no
13364 hardcode_shlibpath_var_CXX=no
13365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13366 export_dynamic_flag_spec_CXX='${wl}-E'
13367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13368 # Instead, shared libraries are loaded at an image base (0x10000000 by
13369 # default) and relocated if they conflict, which is a slow very memory
13370 # consuming and fragmenting process. To avoid this, we pick a random,
13371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13373 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'
13374 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'
13375 ;;
13376 irix5* | irix6*)
13377 case $cc_basename in
13378 CC*)
13379 # SGI C++
13380 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'
13381
13382 # Archives containing C++ object files must be created using
13383 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13384 # necessary to make sure instantiated templates are included
13385 # in the archive.
13386 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13387 ;;
13388 *)
13389 if test "$GXX" = yes; then
13390 if test "$with_gnu_ld" = no; then
13391 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'
13392 else
13393 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'
13394 fi
13395 fi
13396 link_all_deplibs_CXX=yes
13397 ;;
13398 esac
13399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13400 hardcode_libdir_separator_CXX=:
13401 inherit_rpath_CXX=yes
13402 ;;
13403
13404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13405 case $cc_basename in
13406 KCC*)
13407 # Kuck and Associates, Inc. (KAI) C++ Compiler
13408
13409 # KCC will only create a shared library if the output file
13410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13411 # to its proper name (with version) after linking.
13412 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'
13413 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'
13414 # Commands to make compiler produce verbose output that lists
13415 # what "hidden" libraries, object files and flags are used when
13416 # linking a shared library.
13417 #
13418 # There doesn't appear to be a way to prevent this compiler from
13419 # explicitly linking system object files so we need to strip them
13420 # from the output so that they don't get included in the library
13421 # dependencies.
13422 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"'
13423
13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13426
13427 # Archives containing C++ object files must be created using
13428 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13429 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13430 ;;
13431 icpc* | ecpc* )
13432 # Intel C++
13433 with_gnu_ld=yes
13434 # version 8.0 and above of icpc choke on multiply defined symbols
13435 # if we add $predep_objects and $postdep_objects, however 7.1 and
13436 # earlier do not add the objects themselves.
13437 case `$CC -V 2>&1` in
13438 *"Version 7."*)
13439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13440 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'
13441 ;;
13442 *) # Version 8.0 or newer
13443 tmp_idyn=
13444 case $host_cpu in
13445 ia64*) tmp_idyn=' -i_dynamic';;
13446 esac
13447 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13448 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'
13449 ;;
13450 esac
13451 archive_cmds_need_lc_CXX=no
13452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13454 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13455 ;;
13456 pgCC* | pgcpp*)
13457 # Portland Group C++ compiler
13458 case `$CC -V` in
13459 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13460 prelink_cmds_CXX='tpldir=Template.dir~
13461 rm -rf $tpldir~
13462 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13463 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13464 old_archive_cmds_CXX='tpldir=Template.dir~
13465 rm -rf $tpldir~
13466 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13467 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13468 $RANLIB $oldlib'
13469 archive_cmds_CXX='tpldir=Template.dir~
13470 rm -rf $tpldir~
13471 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13472 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13473 archive_expsym_cmds_CXX='tpldir=Template.dir~
13474 rm -rf $tpldir~
13475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13476 $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'
13477 ;;
13478 *) # Version 6 and above use weak symbols
13479 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13480 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'
13481 ;;
13482 esac
13483
13484 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13486 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'
13487 ;;
13488 cxx*)
13489 # Compaq C++
13490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13491 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'
13492
13493 runpath_var=LD_RUN_PATH
13494 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13495 hardcode_libdir_separator_CXX=:
13496
13497 # Commands to make compiler produce verbose output that lists
13498 # what "hidden" libraries, object files and flags are used when
13499 # linking a shared library.
13500 #
13501 # There doesn't appear to be a way to prevent this compiler from
13502 # explicitly linking system object files so we need to strip them
13503 # from the output so that they don't get included in the library
13504 # dependencies.
13505 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'
13506 ;;
13507 xl* | mpixl* | bgxl*)
13508 # IBM XL 8.0 on PPC, with GNU ld
13509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13511 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512 if test "x$supports_anon_versioning" = xyes; then
13513 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13515 echo "local: *; };" >> $output_objdir/$libname.ver~
13516 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13517 fi
13518 ;;
13519 *)
13520 case `$CC -V 2>&1 | sed 5q` in
13521 *Sun\ C*)
13522 # Sun C++ 5.9
13523 no_undefined_flag_CXX=' -zdefs'
13524 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13525 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'
13526 hardcode_libdir_flag_spec_CXX='-R$libdir'
13527 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'
13528 compiler_needs_object_CXX=yes
13529
13530 # Not sure whether something based on
13531 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13532 # would be better.
13533 output_verbose_link_cmd='func_echo_all'
13534
13535 # Archives containing C++ object files must be created using
13536 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13537 # necessary to make sure instantiated templates are included
13538 # in the archive.
13539 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13540 ;;
13541 esac
13542 ;;
13543 esac
13544 ;;
13545
13546 lynxos*)
13547 # FIXME: insert proper C++ library support
13548 ld_shlibs_CXX=no
13549 ;;
13550
13551 m88k*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555
13556 mvs*)
13557 case $cc_basename in
13558 cxx*)
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13561 ;;
13562 *)
13563 # FIXME: insert proper C++ library support
13564 ld_shlibs_CXX=no
13565 ;;
13566 esac
13567 ;;
13568
13569 netbsd*)
13570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13571 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13572 wlarc=
13573 hardcode_libdir_flag_spec_CXX='-R$libdir'
13574 hardcode_direct_CXX=yes
13575 hardcode_shlibpath_var_CXX=no
13576 fi
13577 # Workaround some broken pre-1.5 toolchains
13578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13579 ;;
13580
13581 *nto* | *qnx*)
13582 ld_shlibs_CXX=yes
13583 ;;
13584
13585 openbsd2*)
13586 # C++ shared libraries are fairly broken
13587 ld_shlibs_CXX=no
13588 ;;
13589
13590 openbsd*)
13591 if test -f /usr/libexec/ld.so; then
13592 hardcode_direct_CXX=yes
13593 hardcode_shlibpath_var_CXX=no
13594 hardcode_direct_absolute_CXX=yes
13595 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13598 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13599 export_dynamic_flag_spec_CXX='${wl}-E'
13600 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13601 fi
13602 output_verbose_link_cmd=func_echo_all
13603 else
13604 ld_shlibs_CXX=no
13605 fi
13606 ;;
13607
13608 osf3* | osf4* | osf5*)
13609 case $cc_basename in
13610 KCC*)
13611 # Kuck and Associates, Inc. (KAI) C++ Compiler
13612
13613 # KCC will only create a shared library if the output file
13614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13615 # to its proper name (with version) after linking.
13616 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'
13617
13618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13619 hardcode_libdir_separator_CXX=:
13620
13621 # Archives containing C++ object files must be created using
13622 # the KAI C++ compiler.
13623 case $host in
13624 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13625 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13626 esac
13627 ;;
13628 RCC*)
13629 # Rational C++ 2.4.1
13630 # FIXME: insert proper C++ library support
13631 ld_shlibs_CXX=no
13632 ;;
13633 cxx*)
13634 case $host in
13635 osf3*)
13636 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13637 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'
13638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13639 ;;
13640 *)
13641 allow_undefined_flag_CXX=' -expect_unresolved \*'
13642 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'
13643 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13644 echo "-hidden">> $lib.exp~
13645 $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~
13646 $RM $lib.exp'
13647 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13648 ;;
13649 esac
13650
13651 hardcode_libdir_separator_CXX=:
13652
13653 # Commands to make compiler produce verbose output that lists
13654 # what "hidden" libraries, object files and flags are used when
13655 # linking a shared library.
13656 #
13657 # There doesn't appear to be a way to prevent this compiler from
13658 # explicitly linking system object files so we need to strip them
13659 # from the output so that they don't get included in the library
13660 # dependencies.
13661 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"'
13662 ;;
13663 *)
13664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13666 case $host in
13667 osf3*)
13668 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'
13669 ;;
13670 *)
13671 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'
13672 ;;
13673 esac
13674
13675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13676 hardcode_libdir_separator_CXX=:
13677
13678 # Commands to make compiler produce verbose output that lists
13679 # what "hidden" libraries, object files and flags are used when
13680 # linking a shared library.
13681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13682
13683 else
13684 # FIXME: insert proper C++ library support
13685 ld_shlibs_CXX=no
13686 fi
13687 ;;
13688 esac
13689 ;;
13690
13691 psos*)
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13694 ;;
13695
13696 sunos4*)
13697 case $cc_basename in
13698 CC*)
13699 # Sun C++ 4.x
13700 # FIXME: insert proper C++ library support
13701 ld_shlibs_CXX=no
13702 ;;
13703 lcc*)
13704 # Lucid
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708 *)
13709 # FIXME: insert proper C++ library support
13710 ld_shlibs_CXX=no
13711 ;;
13712 esac
13713 ;;
13714
13715 solaris*)
13716 case $cc_basename in
13717 CC* | sunCC*)
13718 # Sun C++ 4.2, 5.x and Centerline C++
13719 archive_cmds_need_lc_CXX=yes
13720 no_undefined_flag_CXX=' -zdefs'
13721 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13722 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13723 $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'
13724
13725 hardcode_libdir_flag_spec_CXX='-R$libdir'
13726 hardcode_shlibpath_var_CXX=no
13727 case $host_os in
13728 solaris2.[0-5] | solaris2.[0-5].*) ;;
13729 *)
13730 # The compiler driver will combine and reorder linker options,
13731 # but understands `-z linker_flag'.
13732 # Supported since Solaris 2.6 (maybe 2.5.1?)
13733 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13734 ;;
13735 esac
13736 link_all_deplibs_CXX=yes
13737
13738 output_verbose_link_cmd='func_echo_all'
13739
13740 # Archives containing C++ object files must be created using
13741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13742 # necessary to make sure instantiated templates are included
13743 # in the archive.
13744 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13745 ;;
13746 gcx*)
13747 # Green Hills C++ Compiler
13748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13749
13750 # The C++ compiler must be used to create the archive.
13751 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13752 ;;
13753 *)
13754 # GNU C++ compiler with Solaris linker
13755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13756 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13757 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13758 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13759 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13760 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13761
13762 # Commands to make compiler produce verbose output that lists
13763 # what "hidden" libraries, object files and flags are used when
13764 # linking a shared library.
13765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13766 else
13767 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13768 # platform.
13769 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13770 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13771 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13772
13773 # Commands to make compiler produce verbose output that lists
13774 # what "hidden" libraries, object files and flags are used when
13775 # linking a shared library.
13776 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13777 fi
13778
13779 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13780 case $host_os in
13781 solaris2.[0-5] | solaris2.[0-5].*) ;;
13782 *)
13783 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13784 ;;
13785 esac
13786 fi
13787 ;;
13788 esac
13789 ;;
13790
13791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13792 no_undefined_flag_CXX='${wl}-z,text'
13793 archive_cmds_need_lc_CXX=no
13794 hardcode_shlibpath_var_CXX=no
13795 runpath_var='LD_RUN_PATH'
13796
13797 case $cc_basename in
13798 CC*)
13799 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 ;;
13802 *)
13803 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 ;;
13806 esac
13807 ;;
13808
13809 sysv5* | sco3.2v5* | sco5v6*)
13810 # Note: We can NOT use -z defs as we might desire, because we do not
13811 # link with -lc, and that would cause any symbols used from libc to
13812 # always be unresolved, which means just about no library would
13813 # ever link correctly. If we're not using GNU ld we use -z text
13814 # though, which does catch some bad symbols but isn't as heavy-handed
13815 # as -z defs.
13816 no_undefined_flag_CXX='${wl}-z,text'
13817 allow_undefined_flag_CXX='${wl}-z,nodefs'
13818 archive_cmds_need_lc_CXX=no
13819 hardcode_shlibpath_var_CXX=no
13820 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13821 hardcode_libdir_separator_CXX=':'
13822 link_all_deplibs_CXX=yes
13823 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13824 runpath_var='LD_RUN_PATH'
13825
13826 case $cc_basename in
13827 CC*)
13828 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13831 '"$old_archive_cmds_CXX"
13832 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13833 '"$reload_cmds_CXX"
13834 ;;
13835 *)
13836 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13838 ;;
13839 esac
13840 ;;
13841
13842 tandem*)
13843 case $cc_basename in
13844 NCC*)
13845 # NonStop-UX NCC 3.20
13846 # FIXME: insert proper C++ library support
13847 ld_shlibs_CXX=no
13848 ;;
13849 *)
13850 # FIXME: insert proper C++ library support
13851 ld_shlibs_CXX=no
13852 ;;
13853 esac
13854 ;;
13855
13856 vxworks*)
13857 # FIXME: insert proper C++ library support
13858 ld_shlibs_CXX=no
13859 ;;
13860
13861 *)
13862 # FIXME: insert proper C++ library support
13863 ld_shlibs_CXX=no
13864 ;;
13865 esac
13866
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13868$as_echo "$ld_shlibs_CXX" >&6; }
13869 test "$ld_shlibs_CXX" = no && can_build_shared=no
13870
13871 GCC_CXX="$GXX"
13872 LD_CXX="$LD"
13873
13874 ## CAVEAT EMPTOR:
13875 ## There is no encapsulation within the following macros, do not change
13876 ## the running order or otherwise move them around unless you know exactly
13877 ## what you are doing...
13878 # Dependencies to place before and after the object being linked:
13879predep_objects_CXX=
13880postdep_objects_CXX=
13881predeps_CXX=
13882postdeps_CXX=
13883compiler_lib_search_path_CXX=
13884
13885cat > conftest.$ac_ext <<_LT_EOF
13886class Foo
13887{
13888public:
13889 Foo (void) { a = 0; }
13890private:
13891 int a;
13892};
13893_LT_EOF
13894
13895
13896_lt_libdeps_save_CFLAGS=$CFLAGS
13897case "$CC $CFLAGS " in #(
13898*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13899*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13900*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13901esac
13902
13903if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904 (eval $ac_compile) 2>&5
13905 ac_status=$?
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907 test $ac_status = 0; }; then
13908 # Parse the compiler output and extract the necessary
13909 # objects, libraries and library flags.
13910
13911 # Sentinel used to keep track of whether or not we are before
13912 # the conftest object file.
13913 pre_test_object_deps_done=no
13914
13915 for p in `eval "$output_verbose_link_cmd"`; do
13916 case ${prev}${p} in
13917
13918 -L* | -R* | -l*)
13919 # Some compilers place space between "-{L,R}" and the path.
13920 # Remove the space.
13921 if test $p = "-L" ||
13922 test $p = "-R"; then
13923 prev=$p
13924 continue
13925 fi
13926
13927 # Expand the sysroot to ease extracting the directories later.
13928 if test -z "$prev"; then
13929 case $p in
13930 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13931 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13932 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13933 esac
13934 fi
13935 case $p in
13936 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13937 esac
13938 if test "$pre_test_object_deps_done" = no; then
13939 case ${prev} in
13940 -L | -R)
13941 # Internal compiler library paths should come after those
13942 # provided the user. The postdeps already come after the
13943 # user supplied libs so there is no need to process them.
13944 if test -z "$compiler_lib_search_path_CXX"; then
13945 compiler_lib_search_path_CXX="${prev}${p}"
13946 else
13947 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13948 fi
13949 ;;
13950 # The "-l" case would never come before the object being
13951 # linked, so don't bother handling this case.
13952 esac
13953 else
13954 if test -z "$postdeps_CXX"; then
13955 postdeps_CXX="${prev}${p}"
13956 else
13957 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13958 fi
13959 fi
13960 prev=
13961 ;;
13962
13963 *.lto.$objext) ;; # Ignore GCC LTO objects
13964 *.$objext)
13965 # This assumes that the test object file only shows up
13966 # once in the compiler output.
13967 if test "$p" = "conftest.$objext"; then
13968 pre_test_object_deps_done=yes
13969 continue
13970 fi
13971
13972 if test "$pre_test_object_deps_done" = no; then
13973 if test -z "$predep_objects_CXX"; then
13974 predep_objects_CXX="$p"
13975 else
13976 predep_objects_CXX="$predep_objects_CXX $p"
13977 fi
13978 else
13979 if test -z "$postdep_objects_CXX"; then
13980 postdep_objects_CXX="$p"
13981 else
13982 postdep_objects_CXX="$postdep_objects_CXX $p"
13983 fi
13984 fi
13985 ;;
13986
13987 *) ;; # Ignore the rest.
13988
13989 esac
13990 done
13991
13992 # Clean up.
13993 rm -f a.out a.exe
13994else
13995 echo "libtool.m4: error: problem compiling CXX test program"
13996fi
13997
13998$RM -f confest.$objext
13999CFLAGS=$_lt_libdeps_save_CFLAGS
14000
14001# PORTME: override above test on systems where it is broken
14002case $host_os in
14003interix[3-9]*)
14004 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14005 # hack all around it, let's just trust "g++" to DTRT.
14006 predep_objects_CXX=
14007 postdep_objects_CXX=
14008 postdeps_CXX=
14009 ;;
14010
14011linux*)
14012 case `$CC -V 2>&1 | sed 5q` in
14013 *Sun\ C*)
14014 # Sun C++ 5.9
14015
14016 # The more standards-conforming stlport4 library is
14017 # incompatible with the Cstd library. Avoid specifying
14018 # it if it's in CXXFLAGS. Ignore libCrun as
14019 # -library=stlport4 depends on it.
14020 case " $CXX $CXXFLAGS " in
14021 *" -library=stlport4 "*)
14022 solaris_use_stlport4=yes
14023 ;;
14024 esac
14025
14026 if test "$solaris_use_stlport4" != yes; then
14027 postdeps_CXX='-library=Cstd -library=Crun'
14028 fi
14029 ;;
14030 esac
14031 ;;
14032
14033solaris*)
14034 case $cc_basename in
14035 CC* | sunCC*)
14036 # The more standards-conforming stlport4 library is
14037 # incompatible with the Cstd library. Avoid specifying
14038 # it if it's in CXXFLAGS. Ignore libCrun as
14039 # -library=stlport4 depends on it.
14040 case " $CXX $CXXFLAGS " in
14041 *" -library=stlport4 "*)
14042 solaris_use_stlport4=yes
14043 ;;
14044 esac
14045
14046 # Adding this requires a known-good setup of shared libraries for
14047 # Sun compiler versions before 5.6, else PIC objects from an old
14048 # archive will be linked into the output, leading to subtle bugs.
14049 if test "$solaris_use_stlport4" != yes; then
14050 postdeps_CXX='-library=Cstd -library=Crun'
14051 fi
14052 ;;
14053 esac
14054 ;;
14055esac
14056
14057
14058case " $postdeps_CXX " in
14059*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14060esac
14061 compiler_lib_search_dirs_CXX=
14062if test -n "${compiler_lib_search_path_CXX}"; then
14063 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14064fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096 lt_prog_compiler_wl_CXX=
14097lt_prog_compiler_pic_CXX=
14098lt_prog_compiler_static_CXX=
14099
14100
14101 # C++ specific cases for pic, static, wl, etc.
14102 if test "$GXX" = yes; then
14103 lt_prog_compiler_wl_CXX='-Wl,'
14104 lt_prog_compiler_static_CXX='-static'
14105
14106 case $host_os in
14107 aix*)
14108 # All AIX code is PIC.
14109 if test "$host_cpu" = ia64; then
14110 # AIX 5 now supports IA64 processor
14111 lt_prog_compiler_static_CXX='-Bstatic'
14112 fi
14113 ;;
14114
14115 amigaos*)
14116 case $host_cpu in
14117 powerpc)
14118 # see comment about AmigaOS4 .so support
14119 lt_prog_compiler_pic_CXX='-fPIC'
14120 ;;
14121 m68k)
14122 # FIXME: we need at least 68020 code to build shared libraries, but
14123 # adding the `-m68020' flag to GCC prevents building anything better,
14124 # like `-m68040'.
14125 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14126 ;;
14127 esac
14128 ;;
14129
14130 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14131 # PIC is the default for these OSes.
14132 ;;
14133 mingw* | cygwin* | os2* | pw32* | cegcc*)
14134 # This hack is so that the source file can tell whether it is being
14135 # built for inclusion in a dll (and should export symbols for example).
14136 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14137 # (--disable-auto-import) libraries
14138 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14139 ;;
14140 darwin* | rhapsody*)
14141 # PIC is the default on this platform
14142 # Common symbols not allowed in MH_DYLIB files
14143 lt_prog_compiler_pic_CXX='-fno-common'
14144 ;;
14145 *djgpp*)
14146 # DJGPP does not support shared libraries at all
14147 lt_prog_compiler_pic_CXX=
14148 ;;
14149 haiku*)
14150 # PIC is the default for Haiku.
14151 # The "-static" flag exists, but is broken.
14152 lt_prog_compiler_static_CXX=
14153 ;;
14154 interix[3-9]*)
14155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14156 # Instead, we relocate shared libraries at runtime.
14157 ;;
14158 sysv4*MP*)
14159 if test -d /usr/nec; then
14160 lt_prog_compiler_pic_CXX=-Kconform_pic
14161 fi
14162 ;;
14163 hpux*)
14164 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14165 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14166 # sets the default TLS model and affects inlining.
14167 case $host_cpu in
14168 hppa*64*)
14169 ;;
14170 *)
14171 lt_prog_compiler_pic_CXX='-fPIC'
14172 ;;
14173 esac
14174 ;;
14175 *qnx* | *nto*)
14176 # QNX uses GNU C++, but need to define -shared option too, otherwise
14177 # it will coredump.
14178 lt_prog_compiler_pic_CXX='-fPIC -shared'
14179 ;;
14180 *)
14181 lt_prog_compiler_pic_CXX='-fPIC'
14182 ;;
14183 esac
14184 else
14185 case $host_os in
14186 aix[4-9]*)
14187 # All AIX code is PIC.
14188 if test "$host_cpu" = ia64; then
14189 # AIX 5 now supports IA64 processor
14190 lt_prog_compiler_static_CXX='-Bstatic'
14191 else
14192 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14193 fi
14194 ;;
14195 chorus*)
14196 case $cc_basename in
14197 cxch68*)
14198 # Green Hills C++ Compiler
14199 # _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"
14200 ;;
14201 esac
14202 ;;
14203 mingw* | cygwin* | os2* | pw32* | cegcc*)
14204 # This hack is so that the source file can tell whether it is being
14205 # built for inclusion in a dll (and should export symbols for example).
14206 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14207 ;;
14208 dgux*)
14209 case $cc_basename in
14210 ec++*)
14211 lt_prog_compiler_pic_CXX='-KPIC'
14212 ;;
14213 ghcx*)
14214 # Green Hills C++ Compiler
14215 lt_prog_compiler_pic_CXX='-pic'
14216 ;;
14217 *)
14218 ;;
14219 esac
14220 ;;
14221 freebsd* | dragonfly*)
14222 # FreeBSD uses GNU C++
14223 ;;
14224 hpux9* | hpux10* | hpux11*)
14225 case $cc_basename in
14226 CC*)
14227 lt_prog_compiler_wl_CXX='-Wl,'
14228 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14229 if test "$host_cpu" != ia64; then
14230 lt_prog_compiler_pic_CXX='+Z'
14231 fi
14232 ;;
14233 aCC*)
14234 lt_prog_compiler_wl_CXX='-Wl,'
14235 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14236 case $host_cpu in
14237 hppa*64*|ia64*)
14238 # +Z the default
14239 ;;
14240 *)
14241 lt_prog_compiler_pic_CXX='+Z'
14242 ;;
14243 esac
14244 ;;
14245 *)
14246 ;;
14247 esac
14248 ;;
14249 interix*)
14250 # This is c89, which is MS Visual C++ (no shared libs)
14251 # Anyone wants to do a port?
14252 ;;
14253 irix5* | irix6* | nonstopux*)
14254 case $cc_basename in
14255 CC*)
14256 lt_prog_compiler_wl_CXX='-Wl,'
14257 lt_prog_compiler_static_CXX='-non_shared'
14258 # CC pic flag -KPIC is the default.
14259 ;;
14260 *)
14261 ;;
14262 esac
14263 ;;
14264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14265 case $cc_basename in
14266 KCC*)
14267 # KAI C++ Compiler
14268 lt_prog_compiler_wl_CXX='--backend -Wl,'
14269 lt_prog_compiler_pic_CXX='-fPIC'
14270 ;;
14271 ecpc* )
14272 # old Intel C++ for x86_64 which still supported -KPIC.
14273 lt_prog_compiler_wl_CXX='-Wl,'
14274 lt_prog_compiler_pic_CXX='-KPIC'
14275 lt_prog_compiler_static_CXX='-static'
14276 ;;
14277 icpc* )
14278 # Intel C++, used to be incompatible with GCC.
14279 # ICC 10 doesn't accept -KPIC any more.
14280 lt_prog_compiler_wl_CXX='-Wl,'
14281 lt_prog_compiler_pic_CXX='-fPIC'
14282 lt_prog_compiler_static_CXX='-static'
14283 ;;
14284 pgCC* | pgcpp*)
14285 # Portland Group C++ compiler
14286 lt_prog_compiler_wl_CXX='-Wl,'
14287 lt_prog_compiler_pic_CXX='-fpic'
14288 lt_prog_compiler_static_CXX='-Bstatic'
14289 ;;
14290 cxx*)
14291 # Compaq C++
14292 # Make sure the PIC flag is empty. It appears that all Alpha
14293 # Linux and Compaq Tru64 Unix objects are PIC.
14294 lt_prog_compiler_pic_CXX=
14295 lt_prog_compiler_static_CXX='-non_shared'
14296 ;;
14297 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14298 # IBM XL 8.0, 9.0 on PPC and BlueGene
14299 lt_prog_compiler_wl_CXX='-Wl,'
14300 lt_prog_compiler_pic_CXX='-qpic'
14301 lt_prog_compiler_static_CXX='-qstaticlink'
14302 ;;
14303 *)
14304 case `$CC -V 2>&1 | sed 5q` in
14305 *Sun\ C*)
14306 # Sun C++ 5.9
14307 lt_prog_compiler_pic_CXX='-KPIC'
14308 lt_prog_compiler_static_CXX='-Bstatic'
14309 lt_prog_compiler_wl_CXX='-Qoption ld '
14310 ;;
14311 esac
14312 ;;
14313 esac
14314 ;;
14315 lynxos*)
14316 ;;
14317 m88k*)
14318 ;;
14319 mvs*)
14320 case $cc_basename in
14321 cxx*)
14322 lt_prog_compiler_pic_CXX='-W c,exportall'
14323 ;;
14324 *)
14325 ;;
14326 esac
14327 ;;
14328 netbsd*)
14329 ;;
14330 *qnx* | *nto*)
14331 # QNX uses GNU C++, but need to define -shared option too, otherwise
14332 # it will coredump.
14333 lt_prog_compiler_pic_CXX='-fPIC -shared'
14334 ;;
14335 osf3* | osf4* | osf5*)
14336 case $cc_basename in
14337 KCC*)
14338 lt_prog_compiler_wl_CXX='--backend -Wl,'
14339 ;;
14340 RCC*)
14341 # Rational C++ 2.4.1
14342 lt_prog_compiler_pic_CXX='-pic'
14343 ;;
14344 cxx*)
14345 # Digital/Compaq C++
14346 lt_prog_compiler_wl_CXX='-Wl,'
14347 # Make sure the PIC flag is empty. It appears that all Alpha
14348 # Linux and Compaq Tru64 Unix objects are PIC.
14349 lt_prog_compiler_pic_CXX=
14350 lt_prog_compiler_static_CXX='-non_shared'
14351 ;;
14352 *)
14353 ;;
14354 esac
14355 ;;
14356 psos*)
14357 ;;
14358 solaris*)
14359 case $cc_basename in
14360 CC* | sunCC*)
14361 # Sun C++ 4.2, 5.x and Centerline C++
14362 lt_prog_compiler_pic_CXX='-KPIC'
14363 lt_prog_compiler_static_CXX='-Bstatic'
14364 lt_prog_compiler_wl_CXX='-Qoption ld '
14365 ;;
14366 gcx*)
14367 # Green Hills C++ Compiler
14368 lt_prog_compiler_pic_CXX='-PIC'
14369 ;;
14370 *)
14371 ;;
14372 esac
14373 ;;
14374 sunos4*)
14375 case $cc_basename in
14376 CC*)
14377 # Sun C++ 4.x
14378 lt_prog_compiler_pic_CXX='-pic'
14379 lt_prog_compiler_static_CXX='-Bstatic'
14380 ;;
14381 lcc*)
14382 # Lucid
14383 lt_prog_compiler_pic_CXX='-pic'
14384 ;;
14385 *)
14386 ;;
14387 esac
14388 ;;
14389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14390 case $cc_basename in
14391 CC*)
14392 lt_prog_compiler_wl_CXX='-Wl,'
14393 lt_prog_compiler_pic_CXX='-KPIC'
14394 lt_prog_compiler_static_CXX='-Bstatic'
14395 ;;
14396 esac
14397 ;;
14398 tandem*)
14399 case $cc_basename in
14400 NCC*)
14401 # NonStop-UX NCC 3.20
14402 lt_prog_compiler_pic_CXX='-KPIC'
14403 ;;
14404 *)
14405 ;;
14406 esac
14407 ;;
14408 vxworks*)
14409 ;;
14410 *)
14411 lt_prog_compiler_can_build_shared_CXX=no
14412 ;;
14413 esac
14414 fi
14415
14416case $host_os in
14417 # For platforms which do not support PIC, -DPIC is meaningless:
14418 *djgpp*)
14419 lt_prog_compiler_pic_CXX=
14420 ;;
14421 *)
14422 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14423 ;;
14424esac
14425
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14427$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14428if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14429 $as_echo_n "(cached) " >&6
14430else
14431 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14432fi
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14434$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14435lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14436
14437#
14438# Check to make sure the PIC flag actually works.
14439#
14440if test -n "$lt_prog_compiler_pic_CXX"; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14442$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14443if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14444 $as_echo_n "(cached) " >&6
14445else
14446 lt_cv_prog_compiler_pic_works_CXX=no
14447 ac_outfile=conftest.$ac_objext
14448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 # The option is referenced via a variable to avoid confusing sed.
14455 lt_compile=`echo "$ac_compile" | $SED \
14456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
14459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14460 (eval "$lt_compile" 2>conftest.err)
14461 ac_status=$?
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 if (exit $ac_status) && test -s "$ac_outfile"; then
14465 # The compiler can only warn and ignore the option if not recognized
14466 # So say no if there are warnings other than the usual output.
14467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470 lt_cv_prog_compiler_pic_works_CXX=yes
14471 fi
14472 fi
14473 $RM conftest*
14474
14475fi
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14477$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14478
14479if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14480 case $lt_prog_compiler_pic_CXX in
14481 "" | " "*) ;;
14482 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14483 esac
14484else
14485 lt_prog_compiler_pic_CXX=
14486 lt_prog_compiler_can_build_shared_CXX=no
14487fi
14488
14489fi
14490
14491
14492
14493
14494
14495#
14496# Check to make sure the static flag actually works.
14497#
14498wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14500$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14501if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14502 $as_echo_n "(cached) " >&6
14503else
14504 lt_cv_prog_compiler_static_works_CXX=no
14505 save_LDFLAGS="$LDFLAGS"
14506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14509 # The linker can only warn and ignore the option if not recognized
14510 # So say no if there are warnings
14511 if test -s conftest.err; then
14512 # Append any errors to the config.log.
14513 cat conftest.err 1>&5
14514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14516 if diff conftest.exp conftest.er2 >/dev/null; then
14517 lt_cv_prog_compiler_static_works_CXX=yes
14518 fi
14519 else
14520 lt_cv_prog_compiler_static_works_CXX=yes
14521 fi
14522 fi
14523 $RM -r conftest*
14524 LDFLAGS="$save_LDFLAGS"
14525
14526fi
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14528$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14529
14530if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14531 :
14532else
14533 lt_prog_compiler_static_CXX=
14534fi
14535
14536
14537
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14541if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543else
14544 lt_cv_prog_compiler_c_o_CXX=no
14545 $RM -r conftest 2>/dev/null
14546 mkdir conftest
14547 cd conftest
14548 mkdir out
14549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14550
14551 lt_compiler_flag="-o out/conftest2.$ac_objext"
14552 # Insert the option either (1) after the last *FLAGS variable, or
14553 # (2) before a word containing "conftest.", or (3) at the end.
14554 # Note that $ac_compile itself does not contain backslashes and begins
14555 # with a dollar sign (not a hyphen), so the echo should work correctly.
14556 lt_compile=`echo "$ac_compile" | $SED \
14557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14559 -e 's:$: $lt_compiler_flag:'`
14560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14561 (eval "$lt_compile" 2>out/conftest.err)
14562 ac_status=$?
14563 cat out/conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14566 then
14567 # The compiler can only warn and ignore the option if not recognized
14568 # So say no if there are warnings
14569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14572 lt_cv_prog_compiler_c_o_CXX=yes
14573 fi
14574 fi
14575 chmod u+w . 2>&5
14576 $RM conftest*
14577 # SGI C++ compiler will create directory out/ii_files/ for
14578 # template instantiation
14579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14580 $RM out/* && rmdir out
14581 cd ..
14582 $RM -r conftest
14583 $RM conftest*
14584
14585fi
14586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14587$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14588
14589
14590
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14592$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14593if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595else
14596 lt_cv_prog_compiler_c_o_CXX=no
14597 $RM -r conftest 2>/dev/null
14598 mkdir conftest
14599 cd conftest
14600 mkdir out
14601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14602
14603 lt_compiler_flag="-o out/conftest2.$ac_objext"
14604 # Insert the option either (1) after the last *FLAGS variable, or
14605 # (2) before a word containing "conftest.", or (3) at the end.
14606 # Note that $ac_compile itself does not contain backslashes and begins
14607 # with a dollar sign (not a hyphen), so the echo should work correctly.
14608 lt_compile=`echo "$ac_compile" | $SED \
14609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14611 -e 's:$: $lt_compiler_flag:'`
14612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14613 (eval "$lt_compile" 2>out/conftest.err)
14614 ac_status=$?
14615 cat out/conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14618 then
14619 # The compiler can only warn and ignore the option if not recognized
14620 # So say no if there are warnings
14621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14624 lt_cv_prog_compiler_c_o_CXX=yes
14625 fi
14626 fi
14627 chmod u+w . 2>&5
14628 $RM conftest*
14629 # SGI C++ compiler will create directory out/ii_files/ for
14630 # template instantiation
14631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14632 $RM out/* && rmdir out
14633 cd ..
14634 $RM -r conftest
14635 $RM conftest*
14636
14637fi
14638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14639$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14640
14641
14642
14643
14644hard_links="nottested"
14645if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14646 # do not overwrite the value of need_locks provided by the user
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14648$as_echo_n "checking if we can lock with hard links... " >&6; }
14649 hard_links=yes
14650 $RM conftest*
14651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14652 touch conftest.a
14653 ln conftest.a conftest.b 2>&5 || hard_links=no
14654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14656$as_echo "$hard_links" >&6; }
14657 if test "$hard_links" = no; then
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14659$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14660 need_locks=warn
14661 fi
14662else
14663 need_locks=no
14664fi
14665
14666
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14669$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14670
14671 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14672 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14673 case $host_os in
14674 aix[4-9]*)
14675 # If we're using GNU nm, then we don't want the "-C" option.
14676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14677 # Also, AIX nm treats weak defined symbols like other global defined
14678 # symbols, whereas GNU nm marks them as "W".
14679 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14680 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'
14681 else
14682 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'
14683 fi
14684 ;;
14685 pw32*)
14686 export_symbols_cmds_CXX="$ltdll_cmds"
14687 ;;
14688 cygwin* | mingw* | cegcc*)
14689 case $cc_basename in
14690 cl*)
14691 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14692 ;;
14693 *)
14694 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'
14695 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14696 ;;
14697 esac
14698 ;;
14699 *)
14700 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14701 ;;
14702 esac
14703
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14705$as_echo "$ld_shlibs_CXX" >&6; }
14706test "$ld_shlibs_CXX" = no && can_build_shared=no
14707
14708with_gnu_ld_CXX=$with_gnu_ld
14709
14710
14711
14712
14713
14714
14715#
14716# Do we need to explicitly link libc?
14717#
14718case "x$archive_cmds_need_lc_CXX" in
14719x|xyes)
14720 # Assume -lc should be added
14721 archive_cmds_need_lc_CXX=yes
14722
14723 if test "$enable_shared" = yes && test "$GCC" = yes; then
14724 case $archive_cmds_CXX in
14725 *'~'*)
14726 # FIXME: we may have to deal with multi-command sequences.
14727 ;;
14728 '$CC '*)
14729 # Test whether the compiler implicitly links with -lc since on some
14730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14731 # to ld, don't add -lc before -lgcc.
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14733$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14734if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14735 $as_echo_n "(cached) " >&6
14736else
14737 $RM conftest*
14738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14739
14740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14741 (eval $ac_compile) 2>&5
14742 ac_status=$?
14743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14744 test $ac_status = 0; } 2>conftest.err; then
14745 soname=conftest
14746 lib=conftest
14747 libobjs=conftest.$ac_objext
14748 deplibs=
14749 wl=$lt_prog_compiler_wl_CXX
14750 pic_flag=$lt_prog_compiler_pic_CXX
14751 compiler_flags=-v
14752 linker_flags=-v
14753 verstring=
14754 output_objdir=.
14755 libname=conftest
14756 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14757 allow_undefined_flag_CXX=
14758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14759 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14760 ac_status=$?
14761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14762 test $ac_status = 0; }
14763 then
14764 lt_cv_archive_cmds_need_lc_CXX=no
14765 else
14766 lt_cv_archive_cmds_need_lc_CXX=yes
14767 fi
14768 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14769 else
14770 cat conftest.err 1>&5
14771 fi
14772 $RM conftest*
14773
14774fi
14775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14776$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14777 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14778 ;;
14779 esac
14780 fi
14781 ;;
14782esac
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14846$as_echo_n "checking dynamic linker characteristics... " >&6; }
14847
14848library_names_spec=
14849libname_spec='lib$name'
14850soname_spec=
14851shrext_cmds=".so"
14852postinstall_cmds=
14853postuninstall_cmds=
14854finish_cmds=
14855finish_eval=
14856shlibpath_var=
14857shlibpath_overrides_runpath=unknown
14858version_type=none
14859dynamic_linker="$host_os ld.so"
14860sys_lib_dlsearch_path_spec="/lib /usr/lib"
14861need_lib_prefix=unknown
14862hardcode_into_libs=no
14863
14864# when you set need_version to no, make sure it does not cause -set_version
14865# flags to be left without arguments
14866need_version=unknown
14867
14868case $host_os in
14869aix3*)
14870 version_type=linux # correct to gnu/linux during the next big refactor
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14872 shlibpath_var=LIBPATH
14873
14874 # AIX 3 has no versioning support, so we append a major version to the name.
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 ;;
14877
14878aix[4-9]*)
14879 version_type=linux # correct to gnu/linux during the next big refactor
14880 need_lib_prefix=no
14881 need_version=no
14882 hardcode_into_libs=yes
14883 if test "$host_cpu" = ia64; then
14884 # AIX 5 supports IA64
14885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 else
14888 # With GCC up to 2.95.x, collect2 would create an import file
14889 # for dependence libraries. The import file would start with
14890 # the line `#! .'. This would cause the generated library to
14891 # depend on `.', always an invalid library. This was fixed in
14892 # development snapshots of GCC prior to 3.0.
14893 case $host_os in
14894 aix4 | aix4.[01] | aix4.[01].*)
14895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14896 echo ' yes '
14897 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14898 :
14899 else
14900 can_build_shared=no
14901 fi
14902 ;;
14903 esac
14904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14905 # soname into executable. Probably we can add versioning support to
14906 # collect2, so additional links can be useful in future.
14907 if test "$aix_use_runtimelinking" = yes; then
14908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14909 # instead of lib<name>.a to let people know that these are not
14910 # typical AIX shared libraries.
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912 else
14913 # We preserve .a as extension for shared libraries through AIX4.2
14914 # and later when we are not doing run time linking.
14915 library_names_spec='${libname}${release}.a $libname.a'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 fi
14918 shlibpath_var=LIBPATH
14919 fi
14920 ;;
14921
14922amigaos*)
14923 case $host_cpu in
14924 powerpc)
14925 # Since July 2007 AmigaOS4 officially supports .so libraries.
14926 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928 ;;
14929 m68k)
14930 library_names_spec='$libname.ixlibrary $libname.a'
14931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14932 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'
14933 ;;
14934 esac
14935 ;;
14936
14937beos*)
14938 library_names_spec='${libname}${shared_ext}'
14939 dynamic_linker="$host_os ld.so"
14940 shlibpath_var=LIBRARY_PATH
14941 ;;
14942
14943bsdi[45]*)
14944 version_type=linux # correct to gnu/linux during the next big refactor
14945 need_version=no
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 soname_spec='${libname}${release}${shared_ext}$major'
14948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14952 # the default ld.so.conf also contains /usr/contrib/lib and
14953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14954 # libtool to hard-code these into programs
14955 ;;
14956
14957cygwin* | mingw* | pw32* | cegcc*)
14958 version_type=windows
14959 shrext_cmds=".dll"
14960 need_version=no
14961 need_lib_prefix=no
14962
14963 case $GCC,$cc_basename in
14964 yes,*)
14965 # gcc
14966 library_names_spec='$libname.dll.a'
14967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14968 postinstall_cmds='base_file=`basename \${file}`~
14969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14970 dldir=$destdir/`dirname \$dlpath`~
14971 test -d \$dldir || mkdir -p \$dldir~
14972 $install_prog $dir/$dlname \$dldir/$dlname~
14973 chmod a+x \$dldir/$dlname~
14974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14976 fi'
14977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14978 dlpath=$dir/\$dldll~
14979 $RM \$dlpath'
14980 shlibpath_overrides_runpath=yes
14981
14982 case $host_os in
14983 cygwin*)
14984 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14986
14987 ;;
14988 mingw* | cegcc*)
14989 # MinGW DLLs use traditional 'lib' prefix
14990 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14991 ;;
14992 pw32*)
14993 # pw32 DLLs use 'pw' prefix rather than 'lib'
14994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14995 ;;
14996 esac
14997 dynamic_linker='Win32 ld.exe'
14998 ;;
14999
15000 *,cl*)
15001 # Native MSVC
15002 libname_spec='$name'
15003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15004 library_names_spec='${libname}.dll.lib'
15005
15006 case $build_os in
15007 mingw*)
15008 sys_lib_search_path_spec=
15009 lt_save_ifs=$IFS
15010 IFS=';'
15011 for lt_path in $LIB
15012 do
15013 IFS=$lt_save_ifs
15014 # Let DOS variable expansion print the short 8.3 style file name.
15015 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15016 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15017 done
15018 IFS=$lt_save_ifs
15019 # Convert to MSYS style.
15020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15021 ;;
15022 cygwin*)
15023 # Convert to unix form, then to dos form, then back to unix form
15024 # but this time dos style (no spaces!) so that the unix form looks
15025 # like /cygdrive/c/PROGRA~1:/cygdr...
15026 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15027 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15028 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15029 ;;
15030 *)
15031 sys_lib_search_path_spec="$LIB"
15032 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15033 # It is most probably a Windows format PATH.
15034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15035 else
15036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15037 fi
15038 # FIXME: find the short name or the path components, as spaces are
15039 # common. (e.g. "Program Files" -> "PROGRA~1")
15040 ;;
15041 esac
15042
15043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15044 postinstall_cmds='base_file=`basename \${file}`~
15045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15046 dldir=$destdir/`dirname \$dlpath`~
15047 test -d \$dldir || mkdir -p \$dldir~
15048 $install_prog $dir/$dlname \$dldir/$dlname'
15049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15050 dlpath=$dir/\$dldll~
15051 $RM \$dlpath'
15052 shlibpath_overrides_runpath=yes
15053 dynamic_linker='Win32 link.exe'
15054 ;;
15055
15056 *)
15057 # Assume MSVC wrapper
15058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15059 dynamic_linker='Win32 ld.exe'
15060 ;;
15061 esac
15062 # FIXME: first we should search . and the directory the executable is in
15063 shlibpath_var=PATH
15064 ;;
15065
15066darwin* | rhapsody*)
15067 dynamic_linker="$host_os dyld"
15068 version_type=darwin
15069 need_lib_prefix=no
15070 need_version=no
15071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15072 soname_spec='${libname}${release}${major}$shared_ext'
15073 shlibpath_overrides_runpath=yes
15074 shlibpath_var=DYLD_LIBRARY_PATH
15075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15076
15077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15078 ;;
15079
15080dgux*)
15081 version_type=linux # correct to gnu/linux during the next big refactor
15082 need_lib_prefix=no
15083 need_version=no
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15085 soname_spec='${libname}${release}${shared_ext}$major'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 ;;
15088
15089freebsd* | dragonfly*)
15090 # DragonFly does not have aout. When/if they implement a new
15091 # versioning mechanism, adjust this.
15092 if test -x /usr/bin/objformat; then
15093 objformat=`/usr/bin/objformat`
15094 else
15095 case $host_os in
15096 freebsd[23].*) objformat=aout ;;
15097 *) objformat=elf ;;
15098 esac
15099 fi
15100 version_type=freebsd-$objformat
15101 case $version_type in
15102 freebsd-elf*)
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15104 need_version=no
15105 need_lib_prefix=no
15106 ;;
15107 freebsd-*)
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15109 need_version=yes
15110 ;;
15111 esac
15112 shlibpath_var=LD_LIBRARY_PATH
15113 case $host_os in
15114 freebsd2.*)
15115 shlibpath_overrides_runpath=yes
15116 ;;
15117 freebsd3.[01]* | freebsdelf3.[01]*)
15118 shlibpath_overrides_runpath=yes
15119 hardcode_into_libs=yes
15120 ;;
15121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15125 ;;
15126 *) # from 4.6 on, and DragonFly
15127 shlibpath_overrides_runpath=yes
15128 hardcode_into_libs=yes
15129 ;;
15130 esac
15131 ;;
15132
15133gnu*)
15134 version_type=linux # correct to gnu/linux during the next big refactor
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LD_LIBRARY_PATH
15140 shlibpath_overrides_runpath=no
15141 hardcode_into_libs=yes
15142 ;;
15143
15144haiku*)
15145 version_type=linux # correct to gnu/linux during the next big refactor
15146 need_lib_prefix=no
15147 need_version=no
15148 dynamic_linker="$host_os runtime_loader"
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LIBRARY_PATH
15152 shlibpath_overrides_runpath=yes
15153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15154 hardcode_into_libs=yes
15155 ;;
15156
15157hpux9* | hpux10* | hpux11*)
15158 # Give a soname corresponding to the major version so that dld.sl refuses to
15159 # link against other versions.
15160 version_type=sunos
15161 need_lib_prefix=no
15162 need_version=no
15163 case $host_cpu in
15164 ia64*)
15165 shrext_cmds='.so'
15166 hardcode_into_libs=yes
15167 dynamic_linker="$host_os dld.so"
15168 shlibpath_var=LD_LIBRARY_PATH
15169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 if test "X$HPUX_IA64_MODE" = X32; then
15173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15174 else
15175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15176 fi
15177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15178 ;;
15179 hppa*64*)
15180 shrext_cmds='.sl'
15181 hardcode_into_libs=yes
15182 dynamic_linker="$host_os dld.sl"
15183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15189 ;;
15190 *)
15191 shrext_cmds='.sl'
15192 dynamic_linker="$host_os dld.sl"
15193 shlibpath_var=SHLIB_PATH
15194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 ;;
15198 esac
15199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15200 postinstall_cmds='chmod 555 $lib'
15201 # or fails outright, so override atomically:
15202 install_override_mode=555
15203 ;;
15204
15205interix[3-9]*)
15206 version_type=linux # correct to gnu/linux during the next big refactor
15207 need_lib_prefix=no
15208 need_version=no
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=no
15214 hardcode_into_libs=yes
15215 ;;
15216
15217irix5* | irix6* | nonstopux*)
15218 case $host_os in
15219 nonstopux*) version_type=nonstopux ;;
15220 *)
15221 if test "$lt_cv_prog_gnu_ld" = yes; then
15222 version_type=linux # correct to gnu/linux during the next big refactor
15223 else
15224 version_type=irix
15225 fi ;;
15226 esac
15227 need_lib_prefix=no
15228 need_version=no
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15231 case $host_os in
15232 irix5* | nonstopux*)
15233 libsuff= shlibsuff=
15234 ;;
15235 *)
15236 case $LD in # libtool.m4 will add one of these switches to LD
15237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15238 libsuff= shlibsuff= libmagic=32-bit;;
15239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15240 libsuff=32 shlibsuff=N32 libmagic=N32;;
15241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15243 *) libsuff= shlibsuff= libmagic=never-match;;
15244 esac
15245 ;;
15246 esac
15247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15248 shlibpath_overrides_runpath=no
15249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15251 hardcode_into_libs=yes
15252 ;;
15253
15254# No shared lib support for Linux oldld, aout, or coff.
15255linux*oldld* | linux*aout* | linux*coff*)
15256 dynamic_linker=no
15257 ;;
15258
15259# This must be glibc/ELF.
15260linux* | k*bsd*-gnu | kopensolaris*-gnu)
15261 version_type=linux # correct to gnu/linux during the next big refactor
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=no
15269
15270 # Some binutils ld are patched to set DT_RUNPATH
15271 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273else
15274 lt_cv_shlibpath_overrides_runpath=no
15275 save_LDFLAGS=$LDFLAGS
15276 save_libdir=$libdir
15277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280/* end confdefs.h. */
15281
15282int
15283main ()
15284{
15285
15286 ;
15287 return 0;
15288}
15289_ACEOF
15290if ac_fn_cxx_try_link "$LINENO"; then :
15291 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15292 lt_cv_shlibpath_overrides_runpath=yes
15293fi
15294fi
15295rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15297 LDFLAGS=$save_LDFLAGS
15298 libdir=$save_libdir
15299
15300fi
15301
15302 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15303
15304 # This implies no fast_install, which is unacceptable.
15305 # Some rework will be needed to allow for fast_install
15306 # before this can be enabled.
15307 hardcode_into_libs=yes
15308
15309 # Append ld.so.conf contents to the search path
15310 if test -f /etc/ld.so.conf; then
15311 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' ' '`
15312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15313 fi
15314
15315 # We used to test for /lib/ld.so.1 and disable shared libraries on
15316 # powerpc, because MkLinux only supported shared libraries with the
15317 # GNU dynamic linker. Since this was broken with cross compilers,
15318 # most powerpc-linux boxes support dynamic linking these days and
15319 # people can always --disable-shared, the test was removed, and we
15320 # assume the GNU/Linux dynamic linker is in use.
15321 dynamic_linker='GNU/Linux ld.so'
15322 ;;
15323
15324netbsd*)
15325 version_type=sunos
15326 need_lib_prefix=no
15327 need_version=no
15328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15331 dynamic_linker='NetBSD (a.out) ld.so'
15332 else
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 dynamic_linker='NetBSD ld.elf_so'
15336 fi
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes
15339 hardcode_into_libs=yes
15340 ;;
15341
15342newsos6)
15343 version_type=linux # correct to gnu/linux during the next big refactor
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=yes
15347 ;;
15348
15349*nto* | *qnx*)
15350 version_type=qnx
15351 need_lib_prefix=no
15352 need_version=no
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15358 dynamic_linker='ldqnx.so'
15359 ;;
15360
15361openbsd*)
15362 version_type=sunos
15363 sys_lib_dlsearch_path_spec="/usr/lib"
15364 need_lib_prefix=no
15365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15366 case $host_os in
15367 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15368 *) need_version=no ;;
15369 esac
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15374 case $host_os in
15375 openbsd2.[89] | openbsd2.[89].*)
15376 shlibpath_overrides_runpath=no
15377 ;;
15378 *)
15379 shlibpath_overrides_runpath=yes
15380 ;;
15381 esac
15382 else
15383 shlibpath_overrides_runpath=yes
15384 fi
15385 ;;
15386
15387os2*)
15388 libname_spec='$name'
15389 shrext_cmds=".dll"
15390 need_lib_prefix=no
15391 library_names_spec='$libname${shared_ext} $libname.a'
15392 dynamic_linker='OS/2 ld.exe'
15393 shlibpath_var=LIBPATH
15394 ;;
15395
15396osf3* | osf4* | osf5*)
15397 version_type=osf
15398 need_lib_prefix=no
15399 need_version=no
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15405 ;;
15406
15407rdos*)
15408 dynamic_linker=no
15409 ;;
15410
15411solaris*)
15412 version_type=linux # correct to gnu/linux during the next big refactor
15413 need_lib_prefix=no
15414 need_version=no
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 hardcode_into_libs=yes
15420 # ldd complains unless libraries are executable
15421 postinstall_cmds='chmod +x $lib'
15422 ;;
15423
15424sunos4*)
15425 version_type=sunos
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15430 if test "$with_gnu_ld" = yes; then
15431 need_lib_prefix=no
15432 fi
15433 need_version=yes
15434 ;;
15435
15436sysv4 | sysv4.3*)
15437 version_type=linux # correct to gnu/linux during the next big refactor
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 case $host_vendor in
15442 sni)
15443 shlibpath_overrides_runpath=no
15444 need_lib_prefix=no
15445 runpath_var=LD_RUN_PATH
15446 ;;
15447 siemens)
15448 need_lib_prefix=no
15449 ;;
15450 motorola)
15451 need_lib_prefix=no
15452 need_version=no
15453 shlibpath_overrides_runpath=no
15454 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15455 ;;
15456 esac
15457 ;;
15458
15459sysv4*MP*)
15460 if test -d /usr/nec ;then
15461 version_type=linux # correct to gnu/linux during the next big refactor
15462 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15463 soname_spec='$libname${shared_ext}.$major'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 fi
15466 ;;
15467
15468sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15469 version_type=freebsd-elf
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=yes
15476 hardcode_into_libs=yes
15477 if test "$with_gnu_ld" = yes; then
15478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15479 else
15480 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15481 case $host_os in
15482 sco3.2v5*)
15483 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15484 ;;
15485 esac
15486 fi
15487 sys_lib_dlsearch_path_spec='/usr/lib'
15488 ;;
15489
15490tpf*)
15491 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15492 version_type=linux # correct to gnu/linux during the next big refactor
15493 need_lib_prefix=no
15494 need_version=no
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=no
15498 hardcode_into_libs=yes
15499 ;;
15500
15501uts4*)
15502 version_type=linux # correct to gnu/linux during the next big refactor
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 ;;
15507
15508*)
15509 dynamic_linker=no
15510 ;;
15511esac
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15513$as_echo "$dynamic_linker" >&6; }
15514test "$dynamic_linker" = no && can_build_shared=no
15515
15516variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15517if test "$GCC" = yes; then
15518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15519fi
15520
15521if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15522 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15523fi
15524if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15525 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15526fi
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15566$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15567hardcode_action_CXX=
15568if test -n "$hardcode_libdir_flag_spec_CXX" ||
15569 test -n "$runpath_var_CXX" ||
15570 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15571
15572 # We can hardcode non-existent directories.
15573 if test "$hardcode_direct_CXX" != no &&
15574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15575 # have to relink, otherwise we might link with an installed library
15576 # when we should be linking with a yet-to-be-installed one
15577 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15578 test "$hardcode_minus_L_CXX" != no; then
15579 # Linking always hardcodes the temporary library directory.
15580 hardcode_action_CXX=relink
15581 else
15582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15583 hardcode_action_CXX=immediate
15584 fi
15585else
15586 # We cannot hardcode anything, or else we can only hardcode existing
15587 # directories.
15588 hardcode_action_CXX=unsupported
15589fi
15590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15591$as_echo "$hardcode_action_CXX" >&6; }
15592
15593if test "$hardcode_action_CXX" = relink ||
15594 test "$inherit_rpath_CXX" = yes; then
15595 # Fast installation is not supported
15596 enable_fast_install=no
15597elif test "$shlibpath_overrides_runpath" = yes ||
15598 test "$enable_shared" = no; then
15599 # Fast installation is not necessary
15600 enable_fast_install=needless
15601fi
15602
15603
15604
15605
15606
15607
15608
15609 fi # test -n "$compiler"
15610
15611 CC=$lt_save_CC
15612 CFLAGS=$lt_save_CFLAGS
15613 LDCXX=$LD
15614 LD=$lt_save_LD
15615 GCC=$lt_save_GCC
15616 with_gnu_ld=$lt_save_with_gnu_ld
15617 lt_cv_path_LDCXX=$lt_cv_path_LD
15618 lt_cv_path_LD=$lt_save_path_LD
15619 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15620 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15621fi # test "$_lt_caught_CXX_error" != yes
15622
15623ac_ext=c
15624ac_cpp='$CPP $CPPFLAGS'
15625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15627ac_compiler_gnu=$ac_cv_c_compiler_gnu
15628
15629
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015630
Jeff Thompson965a3242013-10-02 09:59:35 -070015631ac_ext=mm
15632ac_cpp='$OBJCXXCPP $CPPFLAGS'
15633ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15634ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15635ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15636if test -n "$ac_tool_prefix"; then
15637 for ac_prog in g++ objc++ objcxx c++ CXX
15638 do
15639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15642$as_echo_n "checking for $ac_word... " >&6; }
15643if ${ac_cv_prog_OBJCXX+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645else
15646 if test -n "$OBJCXX"; then
15647 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
15648else
15649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650for as_dir in $PATH
15651do
15652 IFS=$as_save_IFS
15653 test -z "$as_dir" && as_dir=.
15654 for ac_exec_ext in '' $ac_executable_extensions; do
15655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15656 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15658 break 2
15659 fi
15660done
15661 done
15662IFS=$as_save_IFS
15663
15664fi
15665fi
15666OBJCXX=$ac_cv_prog_OBJCXX
15667if test -n "$OBJCXX"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15669$as_echo "$OBJCXX" >&6; }
15670else
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15672$as_echo "no" >&6; }
15673fi
15674
15675
15676 test -n "$OBJCXX" && break
15677 done
15678fi
15679if test -z "$OBJCXX"; then
15680 ac_ct_OBJCXX=$OBJCXX
15681 for ac_prog in g++ objc++ objcxx c++ CXX
15682do
15683 # Extract the first word of "$ac_prog", so it can be a program name with args.
15684set dummy $ac_prog; ac_word=$2
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15686$as_echo_n "checking for $ac_word... " >&6; }
15687if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689else
15690 if test -n "$ac_ct_OBJCXX"; then
15691 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15692else
15693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694for as_dir in $PATH
15695do
15696 IFS=$as_save_IFS
15697 test -z "$as_dir" && as_dir=.
15698 for ac_exec_ext in '' $ac_executable_extensions; do
15699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15700 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15702 break 2
15703 fi
15704done
15705 done
15706IFS=$as_save_IFS
15707
15708fi
15709fi
15710ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15711if test -n "$ac_ct_OBJCXX"; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15713$as_echo "$ac_ct_OBJCXX" >&6; }
15714else
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15716$as_echo "no" >&6; }
15717fi
15718
15719
15720 test -n "$ac_ct_OBJCXX" && break
15721done
15722
15723 if test "x$ac_ct_OBJCXX" = x; then
15724 OBJCXX="g++"
15725 else
15726 case $cross_compiling:$ac_tool_warned in
15727yes:)
15728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15730ac_tool_warned=yes ;;
15731esac
15732 OBJCXX=$ac_ct_OBJCXX
15733 fi
15734fi
15735
15736# Provide some information about the compiler.
15737$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15738set X $ac_compile
15739ac_compiler=$2
15740for ac_option in --version -v -V -qversion; do
15741 { { ac_try="$ac_compiler $ac_option >&5"
15742case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745esac
15746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15747$as_echo "$ac_try_echo"; } >&5
15748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15749 ac_status=$?
15750 if test -s conftest.err; then
15751 sed '10a\
15752... rest of stderr output deleted ...
15753 10q' conftest.err >conftest.er1
15754 cat conftest.er1 >&5
15755 fi
15756 rm -f conftest.er1 conftest.err
15757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758 test $ac_status = 0; }
15759done
15760
15761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15762$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15763if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15764 $as_echo_n "(cached) " >&6
15765else
15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767/* end confdefs.h. */
15768
15769int
15770main ()
15771{
15772#ifndef __GNUC__
15773 choke me
15774#endif
15775
15776 ;
15777 return 0;
15778}
15779_ACEOF
15780if ac_fn_objcxx_try_compile "$LINENO"; then :
15781 ac_compiler_gnu=yes
15782else
15783 ac_compiler_gnu=no
15784fi
15785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15787
15788fi
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15790$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15791if test $ac_compiler_gnu = yes; then
15792 GOBJCXX=yes
15793else
15794 GOBJCXX=
15795fi
15796ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15797ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15799$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15800if ${ac_cv_prog_objcxx_g+:} false; then :
15801 $as_echo_n "(cached) " >&6
15802else
15803 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15804 ac_objcxx_werror_flag=yes
15805 ac_cv_prog_objcxx_g=no
15806 OBJCXXFLAGS="-g"
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808/* end confdefs.h. */
15809
15810int
15811main ()
15812{
15813
15814 ;
15815 return 0;
15816}
15817_ACEOF
15818if ac_fn_objcxx_try_compile "$LINENO"; then :
15819 ac_cv_prog_objcxx_g=yes
15820else
15821 OBJCXXFLAGS=""
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h. */
15824
15825int
15826main ()
15827{
15828
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833if ac_fn_objcxx_try_compile "$LINENO"; then :
15834
15835else
15836 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15837 OBJCXXFLAGS="-g"
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h. */
15840
15841int
15842main ()
15843{
15844
15845 ;
15846 return 0;
15847}
15848_ACEOF
15849if ac_fn_objcxx_try_compile "$LINENO"; then :
15850 ac_cv_prog_objcxx_g=yes
15851fi
15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853fi
15854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855fi
15856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15858fi
15859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15860$as_echo "$ac_cv_prog_objcxx_g" >&6; }
15861if test "$ac_test_OBJCXXFLAGS" = set; then
15862 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15863elif test $ac_cv_prog_objcxx_g = yes; then
15864 if test "$GOBJCXX" = yes; then
15865 OBJCXXFLAGS="-g -O2"
15866 else
15867 OBJCXXFLAGS="-g"
15868 fi
15869else
15870 if test "$GOBJCXX" = yes; then
15871 OBJCXXFLAGS="-O2"
15872 else
15873 OBJCXXFLAGS=
15874 fi
15875fi
15876ac_ext=c
15877ac_cpp='$CPP $CPPFLAGS'
15878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15880ac_compiler_gnu=$ac_cv_c_compiler_gnu
15881
15882depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
15883
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15885$as_echo_n "checking dependency style of $depcc... " >&6; }
15886if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888else
15889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15890 # We make a subdir and do the tests there. Otherwise we can end up
15891 # making bogus files that we don't know about and never remove. For
15892 # instance it was reported that on HP-UX the gcc test will end up
15893 # making a dummy file named 'D' -- because '-MD' means "put the output
15894 # in D".
15895 rm -rf conftest.dir
15896 mkdir conftest.dir
15897 # Copy depcomp to subdir because otherwise we won't find it if we're
15898 # using a relative directory.
15899 cp "$am_depcomp" conftest.dir
15900 cd conftest.dir
15901 # We will build objects and dependencies in a subdirectory because
15902 # it helps to detect inapplicable dependency modes. For instance
15903 # both Tru64's cc and ICC support -MD to output dependencies as a
15904 # side effect of compilation, but ICC will put the dependencies in
15905 # the current directory while Tru64 will put them in the object
15906 # directory.
15907 mkdir sub
15908
15909 am_cv_OBJCXX_dependencies_compiler_type=none
15910 if test "$am_compiler_list" = ""; then
15911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15912 fi
15913 am__universal=false
15914
15915
15916 for depmode in $am_compiler_list; do
15917 # Setup a source with many dependencies, because some compilers
15918 # like to wrap large dependency lists on column 80 (with \), and
15919 # we should not choose a depcomp mode which is confused by this.
15920 #
15921 # We need to recreate these files for each test, as the compiler may
15922 # overwrite some of them when testing with obscure command lines.
15923 # This happens at least with the AIX C compiler.
15924 : > sub/conftest.c
15925 for i in 1 2 3 4 5 6; do
15926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15927 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15928 # Solaris 10 /bin/sh.
15929 echo '/* dummy */' > sub/conftst$i.h
15930 done
15931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15932
15933 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15934 # mode. It turns out that the SunPro C++ compiler does not properly
15935 # handle '-M -o', and we need to detect this. Also, some Intel
15936 # versions had trouble with output in subdirs.
15937 am__obj=sub/conftest.${OBJEXT-o}
15938 am__minus_obj="-o $am__obj"
15939 case $depmode in
15940 gcc)
15941 # This depmode causes a compiler race in universal mode.
15942 test "$am__universal" = false || continue
15943 ;;
15944 nosideeffect)
15945 # After this tag, mechanisms are not by side-effect, so they'll
15946 # only be used when explicitly requested.
15947 if test "x$enable_dependency_tracking" = xyes; then
15948 continue
15949 else
15950 break
15951 fi
15952 ;;
15953 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15954 # This compiler won't grok '-c -o', but also, the minuso test has
15955 # not run yet. These depmodes are late enough in the game, and
15956 # so weak that their functioning should not be impacted.
15957 am__obj=conftest.${OBJEXT-o}
15958 am__minus_obj=
15959 ;;
15960 none) break ;;
15961 esac
15962 if depmode=$depmode \
15963 source=sub/conftest.c object=$am__obj \
15964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15966 >/dev/null 2>conftest.err &&
15967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15971 # icc doesn't choke on unknown options, it will just issue warnings
15972 # or remarks (even with -Werror). So we grep stderr for any message
15973 # that says an option was ignored or not supported.
15974 # When given -MP, icc 7.0 and 7.1 complain thusly:
15975 # icc: Command line warning: ignoring option '-M'; no argument required
15976 # The diagnosis changed in icc 8.0:
15977 # icc: Command line remark: option '-MP' not supported
15978 if (grep 'ignoring option' conftest.err ||
15979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15980 am_cv_OBJCXX_dependencies_compiler_type=$depmode
15981 break
15982 fi
15983 fi
15984 done
15985
15986 cd ..
15987 rm -rf conftest.dir
15988else
15989 am_cv_OBJCXX_dependencies_compiler_type=none
15990fi
15991
15992fi
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
15994$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
15995OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
15996
15997 if
15998 test "x$enable_dependency_tracking" != xno \
15999 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
16000 am__fastdepOBJCXX_TRUE=
16001 am__fastdepOBJCXX_FALSE='#'
16002else
16003 am__fastdepOBJCXX_TRUE='#'
16004 am__fastdepOBJCXX_FALSE=
16005fi
16006
16007
Jeff Thompson36174062013-06-21 16:03:44 -070016008ac_ext=cpp
16009ac_cpp='$CXXCPP $CPPFLAGS'
16010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16013
Jeff Thompson36174062013-06-21 16:03:44 -070016014
Jeff Thompson965a3242013-10-02 09:59:35 -070016015
16016# Check whether --with-sqlite3 was given.
16017if test "${with_sqlite3+set}" = set; then :
16018 withval=$with_sqlite3;
16019 if test "$withval" = "no"; then
16020 WANT_SQLITE3="no"
16021 elif test "$withval" = "yes"; then
16022 WANT_SQLITE3="yes"
16023 ac_sqlite3_path=""
16024 else
16025 WANT_SQLITE3="yes"
16026 ac_sqlite3_path="$withval"
16027 fi
16028
16029else
16030 WANT_SQLITE3="yes"
16031
16032fi
16033
16034
16035 SQLITE3_CFLAGS=""
16036 SQLITE3_LDFLAGS=""
16037 SQLITE3_VERSION=""
16038
16039 if test "x$WANT_SQLITE3" = "xyes"; then
16040
16041 ac_sqlite3_header="sqlite3.h"
16042
16043 sqlite3_version_req=3.0.0
16044 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
16045 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
16046 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
16047 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16048 if test "x$sqlite3_version_req_micro" = "x" ; then
16049 sqlite3_version_req_micro="0"
16050 fi
16051
16052 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
16053 \+ $sqlite3_version_req_minor \* 1000 \
16054 \+ $sqlite3_version_req_micro`
16055
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
16057$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
16058
16059 if test "$ac_sqlite3_path" != ""; then
16060 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
16061 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
16062 else
16063 for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
16064 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
16065 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
16066 ac_sqlite3_path=$ac_sqlite3_path_tmp
16067 ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
16068 ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
16069 break;
16070 fi
16071 done
16072 fi
16073
16074 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
16075
16076 saved_CPPFLAGS="$CPPFLAGS"
16077 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
16078
16079 ac_ext=c
16080ac_cpp='$CPP $CPPFLAGS'
16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086/* end confdefs.h. */
16087
16088 #include <sqlite3.h>
16089int
16090main ()
16091{
16092
16093#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
16094/* Everything is okay */
16095#else
16096# error SQLite version is too old
16097#endif
16098
16099
16100 ;
16101 return 0;
16102}
16103
16104_ACEOF
16105if ac_fn_c_try_compile "$LINENO"; then :
16106
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16108$as_echo "yes" >&6; }
16109 success="yes"
16110
16111else
16112
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16114$as_echo "not found" >&6; }
16115 success="no"
16116
16117
16118fi
16119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 ac_ext=cpp
16121ac_cpp='$CXXCPP $CPPFLAGS'
16122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16125
16126
16127 CPPFLAGS="$saved_CPPFLAGS"
16128
16129 if test "$success" = "yes"; then
16130
16131 SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
16132 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
16133
16134 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
16135
16136 if test "x$ac_sqlite3_header_path" != "x"; then
16137 ac_sqlite3_version=`cat $ac_sqlite3_header_path \
16138 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
16139 | sed -e 's/"//'`
16140 if test $ac_sqlite3_version != ""; then
16141 SQLITE3_VERSION=$ac_sqlite3_version
16142 else
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
16144$as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
16145 fi
16146 fi
16147
16148
16149
16150
16151
16152$as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h
16153
16154 fi
16155 fi
16156
Jeff Thompson32a23332013-10-07 18:39:00 -070016157ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16158if test "x$ac_cv_type_size_t" = xyes; then :
16159
16160else
16161
16162cat >>confdefs.h <<_ACEOF
16163#define size_t unsigned int
16164_ACEOF
16165
16166fi
16167
16168ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
16169case $ac_cv_c_int8_t in #(
16170 no|yes) ;; #(
16171 *)
16172
16173cat >>confdefs.h <<_ACEOF
16174#define int8_t $ac_cv_c_int8_t
16175_ACEOF
16176;;
16177esac
16178
16179ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
16180case $ac_cv_c_int16_t in #(
16181 no|yes) ;; #(
16182 *)
16183
16184cat >>confdefs.h <<_ACEOF
16185#define int16_t $ac_cv_c_int16_t
16186_ACEOF
16187;;
16188esac
16189
16190ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
16191case $ac_cv_c_int32_t in #(
16192 no|yes) ;; #(
16193 *)
16194
16195cat >>confdefs.h <<_ACEOF
16196#define int32_t $ac_cv_c_int32_t
16197_ACEOF
16198;;
16199esac
16200
16201ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
16202case $ac_cv_c_int64_t in #(
16203 no|yes) ;; #(
16204 *)
16205
16206cat >>confdefs.h <<_ACEOF
16207#define int64_t $ac_cv_c_int64_t
16208_ACEOF
16209;;
16210esac
16211
16212ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
16213case $ac_cv_c_uint8_t in #(
16214 no|yes) ;; #(
16215 *)
16216
16217$as_echo "#define _UINT8_T 1" >>confdefs.h
16218
16219
16220cat >>confdefs.h <<_ACEOF
16221#define uint8_t $ac_cv_c_uint8_t
16222_ACEOF
16223;;
16224 esac
16225
16226ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
16227case $ac_cv_c_uint16_t in #(
16228 no|yes) ;; #(
16229 *)
16230
16231
16232cat >>confdefs.h <<_ACEOF
16233#define uint16_t $ac_cv_c_uint16_t
16234_ACEOF
16235;;
16236 esac
16237
16238ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16239case $ac_cv_c_uint32_t in #(
16240 no|yes) ;; #(
16241 *)
16242
16243$as_echo "#define _UINT32_T 1" >>confdefs.h
16244
16245
16246cat >>confdefs.h <<_ACEOF
16247#define uint32_t $ac_cv_c_uint32_t
16248_ACEOF
16249;;
16250 esac
16251
16252ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16253case $ac_cv_c_uint64_t in #(
16254 no|yes) ;; #(
16255 *)
16256
16257$as_echo "#define _UINT64_T 1" >>confdefs.h
16258
16259
16260cat >>confdefs.h <<_ACEOF
16261#define uint64_t $ac_cv_c_uint64_t
16262_ACEOF
16263;;
16264 esac
16265
16266for ac_func in memcmp
16267do :
16268 ac_fn_cxx_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
16269if test "x$ac_cv_func_memcmp" = xyes; then :
16270 cat >>confdefs.h <<_ACEOF
16271#define HAVE_MEMCMP 1
16272_ACEOF
16273
16274fi
16275done
16276
16277for ac_func in memcpy
16278do :
16279 ac_fn_cxx_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
16280if test "x$ac_cv_func_memcpy" = xyes; then :
16281 cat >>confdefs.h <<_ACEOF
16282#define HAVE_MEMCPY 1
16283_ACEOF
16284
16285fi
16286done
16287
16288for ac_func in memset
16289do :
16290 ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
16291if test "x$ac_cv_func_memset" = xyes; then :
16292 cat >>confdefs.h <<_ACEOF
16293#define HAVE_MEMSET 1
16294_ACEOF
16295
16296fi
16297done
16298
Jeff Thompson965a3242013-10-02 09:59:35 -070016299
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070016300 ax_cxx_compile_cxx11_required=falsednl
16301 ac_ext=cpp
16302ac_cpp='$CXXCPP $CPPFLAGS'
16303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16306 ac_success=no
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16308$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16309if ${ax_cv_cxx_compile_cxx11+:} false; then :
16310 $as_echo_n "(cached) " >&6
16311else
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313/* end confdefs.h. */
16314
16315 template <typename T>
16316 struct check
16317 {
16318 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16319 };
16320
16321 typedef check<check<bool>> right_angle_brackets;
16322
16323 int a;
16324 decltype(a) b;
16325
16326 typedef check<int> check_type;
16327 check_type c;
16328 check_type&& cr = static_cast<check_type&&>(c);
16329
16330 auto d = a;
16331
16332_ACEOF
16333if ac_fn_cxx_try_compile "$LINENO"; then :
16334 ax_cv_cxx_compile_cxx11=yes
16335else
16336 ax_cv_cxx_compile_cxx11=no
16337fi
16338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339fi
16340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16341$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16342 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16343 ac_success=yes
16344 fi
16345
16346 if test x$ac_success = xno; then
16347 for switch in -std=gnu++11 -std=gnu++0x; do
16348 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16350$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16351if eval \${$cachevar+:} false; then :
16352 $as_echo_n "(cached) " >&6
16353else
16354 ac_save_CXXFLAGS="$CXXFLAGS"
16355 CXXFLAGS="$CXXFLAGS $switch"
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h. */
16358
16359 template <typename T>
16360 struct check
16361 {
16362 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16363 };
16364
16365 typedef check<check<bool>> right_angle_brackets;
16366
16367 int a;
16368 decltype(a) b;
16369
16370 typedef check<int> check_type;
16371 check_type c;
16372 check_type&& cr = static_cast<check_type&&>(c);
16373
16374 auto d = a;
16375
16376_ACEOF
16377if ac_fn_cxx_try_compile "$LINENO"; then :
16378 eval $cachevar=yes
16379else
16380 eval $cachevar=no
16381fi
16382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16383 CXXFLAGS="$ac_save_CXXFLAGS"
16384fi
16385eval ac_res=\$$cachevar
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16387$as_echo "$ac_res" >&6; }
16388 if eval test x\$$cachevar = xyes; then
16389 CXXFLAGS="$CXXFLAGS $switch"
16390 ac_success=yes
16391 break
16392 fi
16393 done
16394 fi
16395
16396 if test x$ac_success = xno; then
16397 for switch in -std=c++11 -std=c++0x; do
16398 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16400$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16401if eval \${$cachevar+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403else
16404 ac_save_CXXFLAGS="$CXXFLAGS"
16405 CXXFLAGS="$CXXFLAGS $switch"
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407/* end confdefs.h. */
16408
16409 template <typename T>
16410 struct check
16411 {
16412 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16413 };
16414
16415 typedef check<check<bool>> right_angle_brackets;
16416
16417 int a;
16418 decltype(a) b;
16419
16420 typedef check<int> check_type;
16421 check_type c;
16422 check_type&& cr = static_cast<check_type&&>(c);
16423
16424 auto d = a;
16425
16426_ACEOF
16427if ac_fn_cxx_try_compile "$LINENO"; then :
16428 eval $cachevar=yes
16429else
16430 eval $cachevar=no
16431fi
16432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433 CXXFLAGS="$ac_save_CXXFLAGS"
16434fi
16435eval ac_res=\$$cachevar
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16437$as_echo "$ac_res" >&6; }
16438 if eval test x\$$cachevar = xyes; then
16439 CXXFLAGS="$CXXFLAGS $switch"
16440 ac_success=yes
16441 break
16442 fi
16443 done
16444 fi
16445 ac_ext=cpp
16446ac_cpp='$CXXCPP $CPPFLAGS'
16447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16450
16451 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16452 if test x$ac_success = xno; then
16453 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16454 fi
16455 else
16456 if test x$ac_success = xno; then
16457 HAVE_CXX11=0
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16459$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16460 else
16461 HAVE_CXX11=1
16462
16463$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16464
16465 fi
16466
16467
16468 fi
16469
Jeff Thompson8a055e02013-08-09 10:44:28 -070016470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
16471$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
16472if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
16473 $as_echo_n "(cached) " >&6
16474else
16475 ac_check_lib_save_LIBS=$LIBS
16476LIBS="-lcrypto $LIBS"
16477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h. */
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016479
Jeff Thompson8a055e02013-08-09 10:44:28 -070016480/* Override any GCC internal prototype to avoid an error.
16481 Use char because int might match the return type of a GCC
16482 builtin and then its argument prototype would still apply. */
16483#ifdef __cplusplus
16484extern "C"
16485#endif
16486char EVP_EncryptInit ();
16487int
16488main ()
16489{
16490return EVP_EncryptInit ();
16491 ;
16492 return 0;
16493}
16494_ACEOF
16495if ac_fn_cxx_try_link "$LINENO"; then :
16496 ac_cv_lib_crypto_EVP_EncryptInit=yes
16497else
16498 ac_cv_lib_crypto_EVP_EncryptInit=no
16499fi
16500rm -f core conftest.err conftest.$ac_objext \
16501 conftest$ac_exeext conftest.$ac_ext
16502LIBS=$ac_check_lib_save_LIBS
16503fi
16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
16505$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
16506if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
16507 cat >>confdefs.h <<_ACEOF
16508#define HAVE_LIBCRYPTO 1
16509_ACEOF
16510
16511 LIBS="-lcrypto $LIBS"
16512
16513else
16514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16516as_fn_error $? "can't find openssl crypto lib
16517See \`config.log' for more details" "$LINENO" 5; }
16518fi
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016519
16520
Jeff Thompson39128c62013-06-19 14:08:51 -070016521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
16522$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524/* end confdefs.h. */
16525#include <memory>
16526 std::shared_ptr<int> have_shared_ptr;
16527int
16528main ()
16529{
16530
16531 ;
16532 return 0;
16533}
16534
16535_ACEOF
16536if ac_fn_cxx_try_compile "$LINENO"; then :
16537
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16539$as_echo "yes" >&6; }
16540
16541cat >>confdefs.h <<_ACEOF
16542#define HAVE_STD_SHARED_PTR 1
16543_ACEOF
16544
16545
16546else
16547
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549$as_echo "no" >&6; }
16550
16551cat >>confdefs.h <<_ACEOF
16552#define HAVE_STD_SHARED_PTR 0
16553_ACEOF
16554
16555
16556fi
16557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070016558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
16559$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h. */
16562#include <boost/shared_ptr.hpp>
16563 boost::shared_ptr<int> have_shared_ptr;
16564int
16565main ()
16566{
16567
16568 ;
16569 return 0;
16570}
16571
16572_ACEOF
16573if ac_fn_cxx_try_compile "$LINENO"; then :
16574
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16576$as_echo "yes" >&6; }
16577
16578cat >>confdefs.h <<_ACEOF
16579#define HAVE_BOOST_SHARED_PTR 1
16580_ACEOF
16581
16582
16583else
16584
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586$as_echo "no" >&6; }
16587
16588cat >>confdefs.h <<_ACEOF
16589#define HAVE_BOOST_SHARED_PTR 0
16590_ACEOF
16591
16592
16593fi
16594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595
Jeff Thompsona28eed82013-08-22 16:21:10 -070016596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5
16597$as_echo_n "checking for std::function... " >&6; }
16598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599/* end confdefs.h. */
16600#include <functional>
16601 std::function<int> have_function();
16602int
16603main ()
16604{
16605
16606 ;
16607 return 0;
16608}
16609
16610_ACEOF
16611if ac_fn_cxx_try_compile "$LINENO"; then :
16612
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16614$as_echo "yes" >&6; }
16615
16616cat >>confdefs.h <<_ACEOF
16617#define HAVE_STD_FUNCTION 1
16618_ACEOF
16619
16620
16621else
16622
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16624$as_echo "no" >&6; }
16625
16626cat >>confdefs.h <<_ACEOF
16627#define HAVE_STD_FUNCTION 0
16628_ACEOF
16629
16630
16631fi
16632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5
16634$as_echo_n "checking for boost::function... " >&6; }
16635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636/* end confdefs.h. */
16637#include <boost/function.hpp>
16638 boost::function<int> have_function();
16639int
16640main ()
16641{
16642
16643 ;
16644 return 0;
16645}
16646
16647_ACEOF
16648if ac_fn_cxx_try_compile "$LINENO"; then :
16649
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16651$as_echo "yes" >&6; }
16652
16653cat >>confdefs.h <<_ACEOF
16654#define HAVE_BOOST_FUNCTION 1
16655_ACEOF
16656
16657
16658else
16659
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661$as_echo "no" >&6; }
16662
16663cat >>confdefs.h <<_ACEOF
16664#define HAVE_BOOST_FUNCTION 0
16665_ACEOF
16666
16667
16668fi
16669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070016671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX SecKeychain" >&5
16672$as_echo_n "checking for OSX SecKeychain... " >&6; }
16673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674/* end confdefs.h. */
16675#include <CoreFoundation/CoreFoundation.h>
16676 #include <Security/Security.h>
16677 #include <CoreServices/CoreServices.h>
16678 void test() { SecKeychainRef x; }
16679int
16680main ()
16681{
16682
16683 ;
16684 return 0;
16685}
16686
16687_ACEOF
16688if ac_fn_cxx_try_compile "$LINENO"; then :
16689
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16691$as_echo "yes" >&6; }
16692
16693cat >>confdefs.h <<_ACEOF
16694#define HAVE_OSX_SECKEYCHAIN 1
16695_ACEOF
16696
16697
16698else
16699
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701$as_echo "no" >&6; }
16702
16703cat >>confdefs.h <<_ACEOF
16704#define HAVE_OSX_SECKEYCHAIN 0
16705_ACEOF
16706
16707
16708fi
16709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710
Jeff Thompsonca45e552013-06-26 17:40:06 -070016711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721# Files:
16722DX_PROJECT=$PACKAGE_NAME
16723
16724DX_CONFIG=Doxyfile
16725
16726DX_DOCDIR=doxygen-doc
16727
16728
16729# Environment variables used inside doxygen.cfg:
16730DX_ENV="$DX_ENV SRCDIR='$srcdir'"
16731
16732DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
16733
16734DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
16735
16736DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
16737
16738
16739# Doxygen itself:
16740
16741
16742
16743 # Check whether --enable-doxygen-doc was given.
16744if test "${enable_doxygen_doc+set}" = set; then :
16745 enableval=$enable_doxygen_doc;
16746case "$enableval" in
16747#(
16748y|Y|yes|Yes|YES)
16749 DX_FLAG_doc=1
16750
16751
16752;; #(
16753n|N|no|No|NO)
16754 DX_FLAG_doc=0
16755
16756;; #(
16757*)
16758 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16759;;
16760esac
16761
16762else
16763
16764DX_FLAG_doc=1
16765
16766
16767
16768fi
16769
16770if test "$DX_FLAG_doc" = 1; then
16771
16772if test -n "$ac_tool_prefix"; then
16773 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
16774set dummy ${ac_tool_prefix}doxygen; ac_word=$2
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16776$as_echo_n "checking for $ac_word... " >&6; }
16777if ${ac_cv_path_DX_DOXYGEN+:} false; then :
16778 $as_echo_n "(cached) " >&6
16779else
16780 case $DX_DOXYGEN in
16781 [\\/]* | ?:[\\/]*)
16782 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
16783 ;;
16784 *)
16785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786for as_dir in $PATH
16787do
16788 IFS=$as_save_IFS
16789 test -z "$as_dir" && as_dir=.
16790 for ac_exec_ext in '' $ac_executable_extensions; do
16791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16792 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16794 break 2
16795 fi
16796done
16797 done
16798IFS=$as_save_IFS
16799
16800 ;;
16801esac
16802fi
16803DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
16804if test -n "$DX_DOXYGEN"; then
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
16806$as_echo "$DX_DOXYGEN" >&6; }
16807else
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16809$as_echo "no" >&6; }
16810fi
16811
16812
16813fi
16814if test -z "$ac_cv_path_DX_DOXYGEN"; then
16815 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
16816 # Extract the first word of "doxygen", so it can be a program name with args.
16817set dummy doxygen; ac_word=$2
16818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16819$as_echo_n "checking for $ac_word... " >&6; }
16820if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
16821 $as_echo_n "(cached) " >&6
16822else
16823 case $ac_pt_DX_DOXYGEN in
16824 [\\/]* | ?:[\\/]*)
16825 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
16826 ;;
16827 *)
16828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829for as_dir in $PATH
16830do
16831 IFS=$as_save_IFS
16832 test -z "$as_dir" && as_dir=.
16833 for ac_exec_ext in '' $ac_executable_extensions; do
16834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16835 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16837 break 2
16838 fi
16839done
16840 done
16841IFS=$as_save_IFS
16842
16843 ;;
16844esac
16845fi
16846ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
16847if test -n "$ac_pt_DX_DOXYGEN"; then
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
16849$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
16850else
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852$as_echo "no" >&6; }
16853fi
16854
16855 if test "x$ac_pt_DX_DOXYGEN" = x; then
16856 DX_DOXYGEN=""
16857 else
16858 case $cross_compiling:$ac_tool_warned in
16859yes:)
16860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16862ac_tool_warned=yes ;;
16863esac
16864 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16865 fi
16866else
16867 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16868fi
16869
16870if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16872$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16873 DX_FLAG_doc=0
16874
16875fi
16876
16877
16878if test -n "$ac_tool_prefix"; then
16879 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16880set dummy ${ac_tool_prefix}perl; ac_word=$2
16881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16882$as_echo_n "checking for $ac_word... " >&6; }
16883if ${ac_cv_path_DX_PERL+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885else
16886 case $DX_PERL in
16887 [\\/]* | ?:[\\/]*)
16888 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16889 ;;
16890 *)
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892for as_dir in $PATH
16893do
16894 IFS=$as_save_IFS
16895 test -z "$as_dir" && as_dir=.
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16900 break 2
16901 fi
16902done
16903 done
16904IFS=$as_save_IFS
16905
16906 ;;
16907esac
16908fi
16909DX_PERL=$ac_cv_path_DX_PERL
16910if test -n "$DX_PERL"; then
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16912$as_echo "$DX_PERL" >&6; }
16913else
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16915$as_echo "no" >&6; }
16916fi
16917
16918
16919fi
16920if test -z "$ac_cv_path_DX_PERL"; then
16921 ac_pt_DX_PERL=$DX_PERL
16922 # Extract the first word of "perl", so it can be a program name with args.
16923set dummy perl; ac_word=$2
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16925$as_echo_n "checking for $ac_word... " >&6; }
16926if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16927 $as_echo_n "(cached) " >&6
16928else
16929 case $ac_pt_DX_PERL in
16930 [\\/]* | ?:[\\/]*)
16931 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16932 ;;
16933 *)
16934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16935for as_dir in $PATH
16936do
16937 IFS=$as_save_IFS
16938 test -z "$as_dir" && as_dir=.
16939 for ac_exec_ext in '' $ac_executable_extensions; do
16940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16941 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16943 break 2
16944 fi
16945done
16946 done
16947IFS=$as_save_IFS
16948
16949 ;;
16950esac
16951fi
16952ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16953if test -n "$ac_pt_DX_PERL"; then
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16955$as_echo "$ac_pt_DX_PERL" >&6; }
16956else
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16958$as_echo "no" >&6; }
16959fi
16960
16961 if test "x$ac_pt_DX_PERL" = x; then
16962 DX_PERL=""
16963 else
16964 case $cross_compiling:$ac_tool_warned in
16965yes:)
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16968ac_tool_warned=yes ;;
16969esac
16970 DX_PERL=$ac_pt_DX_PERL
16971 fi
16972else
16973 DX_PERL="$ac_cv_path_DX_PERL"
16974fi
16975
16976if test "$DX_FLAG_doc$DX_PERL" = 1; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16978$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16979 DX_FLAG_doc=0
16980
16981fi
16982
16983 :
16984fi
16985 if test "$DX_FLAG_doc" = 1; then
16986 DX_COND_doc_TRUE=
16987 DX_COND_doc_FALSE='#'
16988else
16989 DX_COND_doc_TRUE='#'
16990 DX_COND_doc_FALSE=
16991fi
16992
16993if test "$DX_FLAG_doc" = 1; then
16994 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16995
16996 :
16997else
16998
16999 :
17000fi
17001
17002
17003# Dot for graphics:
17004
17005
17006
17007 # Check whether --enable-doxygen-dot was given.
17008if test "${enable_doxygen_dot+set}" = set; then :
17009 enableval=$enable_doxygen_dot;
17010case "$enableval" in
17011#(
17012y|Y|yes|Yes|YES)
17013 DX_FLAG_dot=1
17014
17015
17016test "$DX_FLAG_doc" = "1" \
17017|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
17018
17019;; #(
17020n|N|no|No|NO)
17021 DX_FLAG_dot=0
17022
17023;; #(
17024*)
17025 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
17026;;
17027esac
17028
17029else
17030
17031DX_FLAG_dot=0
17032
17033
17034test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
17035
17036
17037
17038fi
17039
17040if test "$DX_FLAG_dot" = 1; then
17041
17042if test -n "$ac_tool_prefix"; then
17043 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
17044set dummy ${ac_tool_prefix}dot; ac_word=$2
17045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17046$as_echo_n "checking for $ac_word... " >&6; }
17047if ${ac_cv_path_DX_DOT+:} false; then :
17048 $as_echo_n "(cached) " >&6
17049else
17050 case $DX_DOT in
17051 [\\/]* | ?:[\\/]*)
17052 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
17053 ;;
17054 *)
17055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17056for as_dir in $PATH
17057do
17058 IFS=$as_save_IFS
17059 test -z "$as_dir" && as_dir=.
17060 for ac_exec_ext in '' $ac_executable_extensions; do
17061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17062 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17064 break 2
17065 fi
17066done
17067 done
17068IFS=$as_save_IFS
17069
17070 ;;
17071esac
17072fi
17073DX_DOT=$ac_cv_path_DX_DOT
17074if test -n "$DX_DOT"; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
17076$as_echo "$DX_DOT" >&6; }
17077else
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17079$as_echo "no" >&6; }
17080fi
17081
17082
17083fi
17084if test -z "$ac_cv_path_DX_DOT"; then
17085 ac_pt_DX_DOT=$DX_DOT
17086 # Extract the first word of "dot", so it can be a program name with args.
17087set dummy dot; ac_word=$2
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17089$as_echo_n "checking for $ac_word... " >&6; }
17090if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092else
17093 case $ac_pt_DX_DOT in
17094 [\\/]* | ?:[\\/]*)
17095 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
17096 ;;
17097 *)
17098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17099for as_dir in $PATH
17100do
17101 IFS=$as_save_IFS
17102 test -z "$as_dir" && as_dir=.
17103 for ac_exec_ext in '' $ac_executable_extensions; do
17104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17105 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17107 break 2
17108 fi
17109done
17110 done
17111IFS=$as_save_IFS
17112
17113 ;;
17114esac
17115fi
17116ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
17117if test -n "$ac_pt_DX_DOT"; then
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
17119$as_echo "$ac_pt_DX_DOT" >&6; }
17120else
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17122$as_echo "no" >&6; }
17123fi
17124
17125 if test "x$ac_pt_DX_DOT" = x; then
17126 DX_DOT=""
17127 else
17128 case $cross_compiling:$ac_tool_warned in
17129yes:)
17130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17132ac_tool_warned=yes ;;
17133esac
17134 DX_DOT=$ac_pt_DX_DOT
17135 fi
17136else
17137 DX_DOT="$ac_cv_path_DX_DOT"
17138fi
17139
17140if test "$DX_FLAG_dot$DX_DOT" = 1; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
17142$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
17143 DX_FLAG_dot=0
17144
17145fi
17146
17147 :
17148fi
17149 if test "$DX_FLAG_dot" = 1; then
17150 DX_COND_dot_TRUE=
17151 DX_COND_dot_FALSE='#'
17152else
17153 DX_COND_dot_TRUE='#'
17154 DX_COND_dot_FALSE=
17155fi
17156
17157if test "$DX_FLAG_dot" = 1; then
17158 DX_ENV="$DX_ENV HAVE_DOT='YES'"
17159
17160 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
17161
17162 :
17163else
17164 DX_ENV="$DX_ENV HAVE_DOT='NO'"
17165
17166 :
17167fi
17168
17169
17170# Man pages generation:
17171
17172
17173
17174 # Check whether --enable-doxygen-man was given.
17175if test "${enable_doxygen_man+set}" = set; then :
17176 enableval=$enable_doxygen_man;
17177case "$enableval" in
17178#(
17179y|Y|yes|Yes|YES)
17180 DX_FLAG_man=1
17181
17182
17183test "$DX_FLAG_doc" = "1" \
17184|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
17185
17186;; #(
17187n|N|no|No|NO)
17188 DX_FLAG_man=0
17189
17190;; #(
17191*)
17192 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
17193;;
17194esac
17195
17196else
17197
17198DX_FLAG_man=0
17199
17200
17201test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
17202
17203
17204
17205fi
17206
17207if test "$DX_FLAG_man" = 1; then
17208
17209 :
17210fi
17211 if test "$DX_FLAG_man" = 1; then
17212 DX_COND_man_TRUE=
17213 DX_COND_man_FALSE='#'
17214else
17215 DX_COND_man_TRUE='#'
17216 DX_COND_man_FALSE=
17217fi
17218
17219if test "$DX_FLAG_man" = 1; then
17220 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
17221
17222 :
17223else
17224 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
17225
17226 :
17227fi
17228
17229
17230# RTF file generation:
17231
17232
17233
17234 # Check whether --enable-doxygen-rtf was given.
17235if test "${enable_doxygen_rtf+set}" = set; then :
17236 enableval=$enable_doxygen_rtf;
17237case "$enableval" in
17238#(
17239y|Y|yes|Yes|YES)
17240 DX_FLAG_rtf=1
17241
17242
17243test "$DX_FLAG_doc" = "1" \
17244|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
17245
17246;; #(
17247n|N|no|No|NO)
17248 DX_FLAG_rtf=0
17249
17250;; #(
17251*)
17252 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
17253;;
17254esac
17255
17256else
17257
17258DX_FLAG_rtf=0
17259
17260
17261test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
17262
17263
17264
17265fi
17266
17267if test "$DX_FLAG_rtf" = 1; then
17268
17269 :
17270fi
17271 if test "$DX_FLAG_rtf" = 1; then
17272 DX_COND_rtf_TRUE=
17273 DX_COND_rtf_FALSE='#'
17274else
17275 DX_COND_rtf_TRUE='#'
17276 DX_COND_rtf_FALSE=
17277fi
17278
17279if test "$DX_FLAG_rtf" = 1; then
17280 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
17281
17282 :
17283else
17284 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17285
17286 :
17287fi
17288
17289
17290# XML file generation:
17291
17292
17293
17294 # Check whether --enable-doxygen-xml was given.
17295if test "${enable_doxygen_xml+set}" = set; then :
17296 enableval=$enable_doxygen_xml;
17297case "$enableval" in
17298#(
17299y|Y|yes|Yes|YES)
17300 DX_FLAG_xml=1
17301
17302
17303test "$DX_FLAG_doc" = "1" \
17304|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
17305
17306;; #(
17307n|N|no|No|NO)
17308 DX_FLAG_xml=0
17309
17310;; #(
17311*)
17312 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17313;;
17314esac
17315
17316else
17317
17318DX_FLAG_xml=0
17319
17320
17321test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17322
17323
17324
17325fi
17326
17327if test "$DX_FLAG_xml" = 1; then
17328
17329 :
17330fi
17331 if test "$DX_FLAG_xml" = 1; then
17332 DX_COND_xml_TRUE=
17333 DX_COND_xml_FALSE='#'
17334else
17335 DX_COND_xml_TRUE='#'
17336 DX_COND_xml_FALSE=
17337fi
17338
17339if test "$DX_FLAG_xml" = 1; then
17340 DX_ENV="$DX_ENV GENERATE_XML='YES'"
17341
17342 :
17343else
17344 DX_ENV="$DX_ENV GENERATE_XML='NO'"
17345
17346 :
17347fi
17348
17349
17350# (Compressed) HTML help generation:
17351
17352
17353
17354 # Check whether --enable-doxygen-chm was given.
17355if test "${enable_doxygen_chm+set}" = set; then :
17356 enableval=$enable_doxygen_chm;
17357case "$enableval" in
17358#(
17359y|Y|yes|Yes|YES)
17360 DX_FLAG_chm=1
17361
17362
17363test "$DX_FLAG_doc" = "1" \
17364|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
17365
17366;; #(
17367n|N|no|No|NO)
17368 DX_FLAG_chm=0
17369
17370;; #(
17371*)
17372 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17373;;
17374esac
17375
17376else
17377
17378DX_FLAG_chm=0
17379
17380
17381test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17382
17383
17384
17385fi
17386
17387if test "$DX_FLAG_chm" = 1; then
17388
17389if test -n "$ac_tool_prefix"; then
17390 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17391set dummy ${ac_tool_prefix}hhc; ac_word=$2
17392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17393$as_echo_n "checking for $ac_word... " >&6; }
17394if ${ac_cv_path_DX_HHC+:} false; then :
17395 $as_echo_n "(cached) " >&6
17396else
17397 case $DX_HHC in
17398 [\\/]* | ?:[\\/]*)
17399 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17400 ;;
17401 *)
17402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17403for as_dir in $PATH
17404do
17405 IFS=$as_save_IFS
17406 test -z "$as_dir" && as_dir=.
17407 for ac_exec_ext in '' $ac_executable_extensions; do
17408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17409 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17411 break 2
17412 fi
17413done
17414 done
17415IFS=$as_save_IFS
17416
17417 ;;
17418esac
17419fi
17420DX_HHC=$ac_cv_path_DX_HHC
17421if test -n "$DX_HHC"; then
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17423$as_echo "$DX_HHC" >&6; }
17424else
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17426$as_echo "no" >&6; }
17427fi
17428
17429
17430fi
17431if test -z "$ac_cv_path_DX_HHC"; then
17432 ac_pt_DX_HHC=$DX_HHC
17433 # Extract the first word of "hhc", so it can be a program name with args.
17434set dummy hhc; ac_word=$2
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436$as_echo_n "checking for $ac_word... " >&6; }
17437if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439else
17440 case $ac_pt_DX_HHC in
17441 [\\/]* | ?:[\\/]*)
17442 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17443 ;;
17444 *)
17445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17446for as_dir in $PATH
17447do
17448 IFS=$as_save_IFS
17449 test -z "$as_dir" && as_dir=.
17450 for ac_exec_ext in '' $ac_executable_extensions; do
17451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17452 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17454 break 2
17455 fi
17456done
17457 done
17458IFS=$as_save_IFS
17459
17460 ;;
17461esac
17462fi
17463ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17464if test -n "$ac_pt_DX_HHC"; then
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17466$as_echo "$ac_pt_DX_HHC" >&6; }
17467else
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17469$as_echo "no" >&6; }
17470fi
17471
17472 if test "x$ac_pt_DX_HHC" = x; then
17473 DX_HHC=""
17474 else
17475 case $cross_compiling:$ac_tool_warned in
17476yes:)
17477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17479ac_tool_warned=yes ;;
17480esac
17481 DX_HHC=$ac_pt_DX_HHC
17482 fi
17483else
17484 DX_HHC="$ac_cv_path_DX_HHC"
17485fi
17486
17487if test "$DX_FLAG_chm$DX_HHC" = 1; then
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17489$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17490 DX_FLAG_chm=0
17491
17492fi
17493
17494 :
17495fi
17496 if test "$DX_FLAG_chm" = 1; then
17497 DX_COND_chm_TRUE=
17498 DX_COND_chm_FALSE='#'
17499else
17500 DX_COND_chm_TRUE='#'
17501 DX_COND_chm_FALSE=
17502fi
17503
17504if test "$DX_FLAG_chm" = 1; then
17505 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17506
17507 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17508
17509 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17510
17511 :
17512else
17513 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17514
17515 :
17516fi
17517
17518
17519# Seperate CHI file generation.
17520
17521
17522
17523 # Check whether --enable-doxygen-chi was given.
17524if test "${enable_doxygen_chi+set}" = set; then :
17525 enableval=$enable_doxygen_chi;
17526case "$enableval" in
17527#(
17528y|Y|yes|Yes|YES)
17529 DX_FLAG_chi=1
17530
17531
17532test "$DX_FLAG_chm" = "1" \
17533|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
17534
17535;; #(
17536n|N|no|No|NO)
17537 DX_FLAG_chi=0
17538
17539;; #(
17540*)
17541 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17542;;
17543esac
17544
17545else
17546
17547DX_FLAG_chi=0
17548
17549
17550test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17551
17552
17553
17554fi
17555
17556if test "$DX_FLAG_chi" = 1; then
17557
17558 :
17559fi
17560 if test "$DX_FLAG_chi" = 1; then
17561 DX_COND_chi_TRUE=
17562 DX_COND_chi_FALSE='#'
17563else
17564 DX_COND_chi_TRUE='#'
17565 DX_COND_chi_FALSE=
17566fi
17567
17568if test "$DX_FLAG_chi" = 1; then
17569 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17570
17571 :
17572else
17573 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17574
17575 :
17576fi
17577
17578
17579# Plain HTML pages generation:
17580
17581
17582
17583 # Check whether --enable-doxygen-html was given.
17584if test "${enable_doxygen_html+set}" = set; then :
17585 enableval=$enable_doxygen_html;
17586case "$enableval" in
17587#(
17588y|Y|yes|Yes|YES)
17589 DX_FLAG_html=1
17590
17591
17592test "$DX_FLAG_doc" = "1" \
17593|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
17594
17595test "$DX_FLAG_chm" = "0" \
17596|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
17597
17598;; #(
17599n|N|no|No|NO)
17600 DX_FLAG_html=0
17601
17602;; #(
17603*)
17604 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17605;;
17606esac
17607
17608else
17609
17610DX_FLAG_html=1
17611
17612
17613test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17614
17615
17616test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17617
17618
17619
17620fi
17621
17622if test "$DX_FLAG_html" = 1; then
17623
17624 :
17625fi
17626 if test "$DX_FLAG_html" = 1; then
17627 DX_COND_html_TRUE=
17628 DX_COND_html_FALSE='#'
17629else
17630 DX_COND_html_TRUE='#'
17631 DX_COND_html_FALSE=
17632fi
17633
17634if test "$DX_FLAG_html" = 1; then
17635 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17636
17637 :
17638else
17639 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17640
17641 :
17642fi
17643
17644
17645# PostScript file generation:
17646
17647
17648
17649 # Check whether --enable-doxygen-ps was given.
17650if test "${enable_doxygen_ps+set}" = set; then :
17651 enableval=$enable_doxygen_ps;
17652case "$enableval" in
17653#(
17654y|Y|yes|Yes|YES)
17655 DX_FLAG_ps=1
17656
17657
17658test "$DX_FLAG_doc" = "1" \
17659|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
17660
17661;; #(
17662n|N|no|No|NO)
17663 DX_FLAG_ps=0
17664
17665;; #(
17666*)
17667 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17668;;
17669esac
17670
17671else
17672
17673DX_FLAG_ps=0
17674
17675
17676test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17677
17678
17679
17680fi
17681
17682if test "$DX_FLAG_ps" = 1; then
17683
17684if test -n "$ac_tool_prefix"; then
17685 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17686set dummy ${ac_tool_prefix}latex; ac_word=$2
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17688$as_echo_n "checking for $ac_word... " >&6; }
17689if ${ac_cv_path_DX_LATEX+:} false; then :
17690 $as_echo_n "(cached) " >&6
17691else
17692 case $DX_LATEX in
17693 [\\/]* | ?:[\\/]*)
17694 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
17695 ;;
17696 *)
17697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17698for as_dir in $PATH
17699do
17700 IFS=$as_save_IFS
17701 test -z "$as_dir" && as_dir=.
17702 for ac_exec_ext in '' $ac_executable_extensions; do
17703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17704 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17706 break 2
17707 fi
17708done
17709 done
17710IFS=$as_save_IFS
17711
17712 ;;
17713esac
17714fi
17715DX_LATEX=$ac_cv_path_DX_LATEX
17716if test -n "$DX_LATEX"; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
17718$as_echo "$DX_LATEX" >&6; }
17719else
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17721$as_echo "no" >&6; }
17722fi
17723
17724
17725fi
17726if test -z "$ac_cv_path_DX_LATEX"; then
17727 ac_pt_DX_LATEX=$DX_LATEX
17728 # Extract the first word of "latex", so it can be a program name with args.
17729set dummy latex; ac_word=$2
17730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17731$as_echo_n "checking for $ac_word... " >&6; }
17732if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
17733 $as_echo_n "(cached) " >&6
17734else
17735 case $ac_pt_DX_LATEX in
17736 [\\/]* | ?:[\\/]*)
17737 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
17738 ;;
17739 *)
17740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17741for as_dir in $PATH
17742do
17743 IFS=$as_save_IFS
17744 test -z "$as_dir" && as_dir=.
17745 for ac_exec_ext in '' $ac_executable_extensions; do
17746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17747 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17749 break 2
17750 fi
17751done
17752 done
17753IFS=$as_save_IFS
17754
17755 ;;
17756esac
17757fi
17758ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
17759if test -n "$ac_pt_DX_LATEX"; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
17761$as_echo "$ac_pt_DX_LATEX" >&6; }
17762else
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17764$as_echo "no" >&6; }
17765fi
17766
17767 if test "x$ac_pt_DX_LATEX" = x; then
17768 DX_LATEX=""
17769 else
17770 case $cross_compiling:$ac_tool_warned in
17771yes:)
17772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17774ac_tool_warned=yes ;;
17775esac
17776 DX_LATEX=$ac_pt_DX_LATEX
17777 fi
17778else
17779 DX_LATEX="$ac_cv_path_DX_LATEX"
17780fi
17781
17782if test "$DX_FLAG_ps$DX_LATEX" = 1; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
17784$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
17785 DX_FLAG_ps=0
17786
17787fi
17788
17789
17790if test -n "$ac_tool_prefix"; then
17791 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17792set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17794$as_echo_n "checking for $ac_word... " >&6; }
17795if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17796 $as_echo_n "(cached) " >&6
17797else
17798 case $DX_MAKEINDEX in
17799 [\\/]* | ?:[\\/]*)
17800 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17801 ;;
17802 *)
17803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17804for as_dir in $PATH
17805do
17806 IFS=$as_save_IFS
17807 test -z "$as_dir" && as_dir=.
17808 for ac_exec_ext in '' $ac_executable_extensions; do
17809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17810 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17812 break 2
17813 fi
17814done
17815 done
17816IFS=$as_save_IFS
17817
17818 ;;
17819esac
17820fi
17821DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17822if test -n "$DX_MAKEINDEX"; then
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17824$as_echo "$DX_MAKEINDEX" >&6; }
17825else
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17827$as_echo "no" >&6; }
17828fi
17829
17830
17831fi
17832if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17833 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17834 # Extract the first word of "makeindex", so it can be a program name with args.
17835set dummy makeindex; ac_word=$2
17836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17837$as_echo_n "checking for $ac_word... " >&6; }
17838if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17839 $as_echo_n "(cached) " >&6
17840else
17841 case $ac_pt_DX_MAKEINDEX in
17842 [\\/]* | ?:[\\/]*)
17843 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17844 ;;
17845 *)
17846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17847for as_dir in $PATH
17848do
17849 IFS=$as_save_IFS
17850 test -z "$as_dir" && as_dir=.
17851 for ac_exec_ext in '' $ac_executable_extensions; do
17852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17853 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17855 break 2
17856 fi
17857done
17858 done
17859IFS=$as_save_IFS
17860
17861 ;;
17862esac
17863fi
17864ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17865if test -n "$ac_pt_DX_MAKEINDEX"; then
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17867$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17868else
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17870$as_echo "no" >&6; }
17871fi
17872
17873 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17874 DX_MAKEINDEX=""
17875 else
17876 case $cross_compiling:$ac_tool_warned in
17877yes:)
17878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17880ac_tool_warned=yes ;;
17881esac
17882 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17883 fi
17884else
17885 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17886fi
17887
17888if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17890$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17891 DX_FLAG_ps=0
17892
17893fi
17894
17895
17896if test -n "$ac_tool_prefix"; then
17897 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17898set dummy ${ac_tool_prefix}dvips; ac_word=$2
17899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17900$as_echo_n "checking for $ac_word... " >&6; }
17901if ${ac_cv_path_DX_DVIPS+:} false; then :
17902 $as_echo_n "(cached) " >&6
17903else
17904 case $DX_DVIPS in
17905 [\\/]* | ?:[\\/]*)
17906 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17907 ;;
17908 *)
17909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17910for as_dir in $PATH
17911do
17912 IFS=$as_save_IFS
17913 test -z "$as_dir" && as_dir=.
17914 for ac_exec_ext in '' $ac_executable_extensions; do
17915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17916 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17918 break 2
17919 fi
17920done
17921 done
17922IFS=$as_save_IFS
17923
17924 ;;
17925esac
17926fi
17927DX_DVIPS=$ac_cv_path_DX_DVIPS
17928if test -n "$DX_DVIPS"; then
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17930$as_echo "$DX_DVIPS" >&6; }
17931else
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17933$as_echo "no" >&6; }
17934fi
17935
17936
17937fi
17938if test -z "$ac_cv_path_DX_DVIPS"; then
17939 ac_pt_DX_DVIPS=$DX_DVIPS
17940 # Extract the first word of "dvips", so it can be a program name with args.
17941set dummy dvips; ac_word=$2
17942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17943$as_echo_n "checking for $ac_word... " >&6; }
17944if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17945 $as_echo_n "(cached) " >&6
17946else
17947 case $ac_pt_DX_DVIPS in
17948 [\\/]* | ?:[\\/]*)
17949 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17950 ;;
17951 *)
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953for as_dir in $PATH
17954do
17955 IFS=$as_save_IFS
17956 test -z "$as_dir" && as_dir=.
17957 for ac_exec_ext in '' $ac_executable_extensions; do
17958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17959 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17961 break 2
17962 fi
17963done
17964 done
17965IFS=$as_save_IFS
17966
17967 ;;
17968esac
17969fi
17970ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17971if test -n "$ac_pt_DX_DVIPS"; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17973$as_echo "$ac_pt_DX_DVIPS" >&6; }
17974else
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976$as_echo "no" >&6; }
17977fi
17978
17979 if test "x$ac_pt_DX_DVIPS" = x; then
17980 DX_DVIPS=""
17981 else
17982 case $cross_compiling:$ac_tool_warned in
17983yes:)
17984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17986ac_tool_warned=yes ;;
17987esac
17988 DX_DVIPS=$ac_pt_DX_DVIPS
17989 fi
17990else
17991 DX_DVIPS="$ac_cv_path_DX_DVIPS"
17992fi
17993
17994if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17996$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17997 DX_FLAG_ps=0
17998
17999fi
18000
18001
18002if test -n "$ac_tool_prefix"; then
18003 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18004set dummy ${ac_tool_prefix}egrep; ac_word=$2
18005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18006$as_echo_n "checking for $ac_word... " >&6; }
18007if ${ac_cv_path_DX_EGREP+:} false; then :
18008 $as_echo_n "(cached) " >&6
18009else
18010 case $DX_EGREP in
18011 [\\/]* | ?:[\\/]*)
18012 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18013 ;;
18014 *)
18015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18016for as_dir in $PATH
18017do
18018 IFS=$as_save_IFS
18019 test -z "$as_dir" && as_dir=.
18020 for ac_exec_ext in '' $ac_executable_extensions; do
18021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18022 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18024 break 2
18025 fi
18026done
18027 done
18028IFS=$as_save_IFS
18029
18030 ;;
18031esac
18032fi
18033DX_EGREP=$ac_cv_path_DX_EGREP
18034if test -n "$DX_EGREP"; then
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18036$as_echo "$DX_EGREP" >&6; }
18037else
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039$as_echo "no" >&6; }
18040fi
18041
18042
18043fi
18044if test -z "$ac_cv_path_DX_EGREP"; then
18045 ac_pt_DX_EGREP=$DX_EGREP
18046 # Extract the first word of "egrep", so it can be a program name with args.
18047set dummy egrep; ac_word=$2
18048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18049$as_echo_n "checking for $ac_word... " >&6; }
18050if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18051 $as_echo_n "(cached) " >&6
18052else
18053 case $ac_pt_DX_EGREP in
18054 [\\/]* | ?:[\\/]*)
18055 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18056 ;;
18057 *)
18058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18059for as_dir in $PATH
18060do
18061 IFS=$as_save_IFS
18062 test -z "$as_dir" && as_dir=.
18063 for ac_exec_ext in '' $ac_executable_extensions; do
18064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18065 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18067 break 2
18068 fi
18069done
18070 done
18071IFS=$as_save_IFS
18072
18073 ;;
18074esac
18075fi
18076ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18077if test -n "$ac_pt_DX_EGREP"; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18079$as_echo "$ac_pt_DX_EGREP" >&6; }
18080else
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18082$as_echo "no" >&6; }
18083fi
18084
18085 if test "x$ac_pt_DX_EGREP" = x; then
18086 DX_EGREP=""
18087 else
18088 case $cross_compiling:$ac_tool_warned in
18089yes:)
18090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18092ac_tool_warned=yes ;;
18093esac
18094 DX_EGREP=$ac_pt_DX_EGREP
18095 fi
18096else
18097 DX_EGREP="$ac_cv_path_DX_EGREP"
18098fi
18099
18100if test "$DX_FLAG_ps$DX_EGREP" = 1; then
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
18102$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
18103 DX_FLAG_ps=0
18104
18105fi
18106
18107 :
18108fi
18109 if test "$DX_FLAG_ps" = 1; then
18110 DX_COND_ps_TRUE=
18111 DX_COND_ps_FALSE='#'
18112else
18113 DX_COND_ps_TRUE='#'
18114 DX_COND_ps_FALSE=
18115fi
18116
18117if test "$DX_FLAG_ps" = 1; then
18118
18119 :
18120else
18121
18122 :
18123fi
18124
18125
18126# PDF file generation:
18127
18128
18129
18130 # Check whether --enable-doxygen-pdf was given.
18131if test "${enable_doxygen_pdf+set}" = set; then :
18132 enableval=$enable_doxygen_pdf;
18133case "$enableval" in
18134#(
18135y|Y|yes|Yes|YES)
18136 DX_FLAG_pdf=1
18137
18138
18139test "$DX_FLAG_doc" = "1" \
18140|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
18141
18142;; #(
18143n|N|no|No|NO)
18144 DX_FLAG_pdf=0
18145
18146;; #(
18147*)
18148 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
18149;;
18150esac
18151
18152else
18153
18154DX_FLAG_pdf=0
18155
18156
18157test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
18158
18159
18160
18161fi
18162
18163if test "$DX_FLAG_pdf" = 1; then
18164
18165if test -n "$ac_tool_prefix"; then
18166 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
18167set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
18168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18169$as_echo_n "checking for $ac_word... " >&6; }
18170if ${ac_cv_path_DX_PDFLATEX+:} false; then :
18171 $as_echo_n "(cached) " >&6
18172else
18173 case $DX_PDFLATEX in
18174 [\\/]* | ?:[\\/]*)
18175 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
18176 ;;
18177 *)
18178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18179for as_dir in $PATH
18180do
18181 IFS=$as_save_IFS
18182 test -z "$as_dir" && as_dir=.
18183 for ac_exec_ext in '' $ac_executable_extensions; do
18184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18185 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18187 break 2
18188 fi
18189done
18190 done
18191IFS=$as_save_IFS
18192
18193 ;;
18194esac
18195fi
18196DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
18197if test -n "$DX_PDFLATEX"; then
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
18199$as_echo "$DX_PDFLATEX" >&6; }
18200else
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18202$as_echo "no" >&6; }
18203fi
18204
18205
18206fi
18207if test -z "$ac_cv_path_DX_PDFLATEX"; then
18208 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
18209 # Extract the first word of "pdflatex", so it can be a program name with args.
18210set dummy pdflatex; ac_word=$2
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212$as_echo_n "checking for $ac_word... " >&6; }
18213if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
18214 $as_echo_n "(cached) " >&6
18215else
18216 case $ac_pt_DX_PDFLATEX in
18217 [\\/]* | ?:[\\/]*)
18218 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
18219 ;;
18220 *)
18221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222for as_dir in $PATH
18223do
18224 IFS=$as_save_IFS
18225 test -z "$as_dir" && as_dir=.
18226 for ac_exec_ext in '' $ac_executable_extensions; do
18227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18230 break 2
18231 fi
18232done
18233 done
18234IFS=$as_save_IFS
18235
18236 ;;
18237esac
18238fi
18239ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
18240if test -n "$ac_pt_DX_PDFLATEX"; then
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
18242$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
18243else
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245$as_echo "no" >&6; }
18246fi
18247
18248 if test "x$ac_pt_DX_PDFLATEX" = x; then
18249 DX_PDFLATEX=""
18250 else
18251 case $cross_compiling:$ac_tool_warned in
18252yes:)
18253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18255ac_tool_warned=yes ;;
18256esac
18257 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
18258 fi
18259else
18260 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
18261fi
18262
18263if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
18265$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
18266 DX_FLAG_pdf=0
18267
18268fi
18269
18270
18271if test -n "$ac_tool_prefix"; then
18272 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18273set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18275$as_echo_n "checking for $ac_word... " >&6; }
18276if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18277 $as_echo_n "(cached) " >&6
18278else
18279 case $DX_MAKEINDEX in
18280 [\\/]* | ?:[\\/]*)
18281 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18282 ;;
18283 *)
18284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18285for as_dir in $PATH
18286do
18287 IFS=$as_save_IFS
18288 test -z "$as_dir" && as_dir=.
18289 for ac_exec_ext in '' $ac_executable_extensions; do
18290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18291 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18293 break 2
18294 fi
18295done
18296 done
18297IFS=$as_save_IFS
18298
18299 ;;
18300esac
18301fi
18302DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18303if test -n "$DX_MAKEINDEX"; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18305$as_echo "$DX_MAKEINDEX" >&6; }
18306else
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308$as_echo "no" >&6; }
18309fi
18310
18311
18312fi
18313if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18314 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18315 # Extract the first word of "makeindex", so it can be a program name with args.
18316set dummy makeindex; ac_word=$2
18317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18318$as_echo_n "checking for $ac_word... " >&6; }
18319if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18320 $as_echo_n "(cached) " >&6
18321else
18322 case $ac_pt_DX_MAKEINDEX in
18323 [\\/]* | ?:[\\/]*)
18324 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18325 ;;
18326 *)
18327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18328for as_dir in $PATH
18329do
18330 IFS=$as_save_IFS
18331 test -z "$as_dir" && as_dir=.
18332 for ac_exec_ext in '' $ac_executable_extensions; do
18333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18334 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18336 break 2
18337 fi
18338done
18339 done
18340IFS=$as_save_IFS
18341
18342 ;;
18343esac
18344fi
18345ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18346if test -n "$ac_pt_DX_MAKEINDEX"; then
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18348$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18349else
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351$as_echo "no" >&6; }
18352fi
18353
18354 if test "x$ac_pt_DX_MAKEINDEX" = x; then
18355 DX_MAKEINDEX=""
18356 else
18357 case $cross_compiling:$ac_tool_warned in
18358yes:)
18359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18361ac_tool_warned=yes ;;
18362esac
18363 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18364 fi
18365else
18366 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18367fi
18368
18369if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18371$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18372 DX_FLAG_pdf=0
18373
18374fi
18375
18376
18377if test -n "$ac_tool_prefix"; then
18378 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18379set dummy ${ac_tool_prefix}egrep; ac_word=$2
18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18381$as_echo_n "checking for $ac_word... " >&6; }
18382if ${ac_cv_path_DX_EGREP+:} false; then :
18383 $as_echo_n "(cached) " >&6
18384else
18385 case $DX_EGREP in
18386 [\\/]* | ?:[\\/]*)
18387 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18388 ;;
18389 *)
18390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18391for as_dir in $PATH
18392do
18393 IFS=$as_save_IFS
18394 test -z "$as_dir" && as_dir=.
18395 for ac_exec_ext in '' $ac_executable_extensions; do
18396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18397 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18399 break 2
18400 fi
18401done
18402 done
18403IFS=$as_save_IFS
18404
18405 ;;
18406esac
18407fi
18408DX_EGREP=$ac_cv_path_DX_EGREP
18409if test -n "$DX_EGREP"; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18411$as_echo "$DX_EGREP" >&6; }
18412else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414$as_echo "no" >&6; }
18415fi
18416
18417
18418fi
18419if test -z "$ac_cv_path_DX_EGREP"; then
18420 ac_pt_DX_EGREP=$DX_EGREP
18421 # Extract the first word of "egrep", so it can be a program name with args.
18422set dummy egrep; ac_word=$2
18423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18424$as_echo_n "checking for $ac_word... " >&6; }
18425if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18426 $as_echo_n "(cached) " >&6
18427else
18428 case $ac_pt_DX_EGREP in
18429 [\\/]* | ?:[\\/]*)
18430 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18431 ;;
18432 *)
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434for as_dir in $PATH
18435do
18436 IFS=$as_save_IFS
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18440 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18442 break 2
18443 fi
18444done
18445 done
18446IFS=$as_save_IFS
18447
18448 ;;
18449esac
18450fi
18451ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18452if test -n "$ac_pt_DX_EGREP"; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18454$as_echo "$ac_pt_DX_EGREP" >&6; }
18455else
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18457$as_echo "no" >&6; }
18458fi
18459
18460 if test "x$ac_pt_DX_EGREP" = x; then
18461 DX_EGREP=""
18462 else
18463 case $cross_compiling:$ac_tool_warned in
18464yes:)
18465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18467ac_tool_warned=yes ;;
18468esac
18469 DX_EGREP=$ac_pt_DX_EGREP
18470 fi
18471else
18472 DX_EGREP="$ac_cv_path_DX_EGREP"
18473fi
18474
18475if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18477$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18478 DX_FLAG_pdf=0
18479
18480fi
18481
18482 :
18483fi
18484 if test "$DX_FLAG_pdf" = 1; then
18485 DX_COND_pdf_TRUE=
18486 DX_COND_pdf_FALSE='#'
18487else
18488 DX_COND_pdf_TRUE='#'
18489 DX_COND_pdf_FALSE=
18490fi
18491
18492if test "$DX_FLAG_pdf" = 1; then
18493
18494 :
18495else
18496
18497 :
18498fi
18499
18500
18501# LaTeX generation for PS and/or PDF:
18502 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18503 DX_COND_latex_TRUE=
18504 DX_COND_latex_FALSE='#'
18505else
18506 DX_COND_latex_TRUE='#'
18507 DX_COND_latex_FALSE=
18508fi
18509
18510if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18511 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18512
18513else
18514 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18515
18516fi
18517
18518# Paper size for PS and/or PDF:
18519
18520case "$DOXYGEN_PAPER_SIZE" in
18521#(
18522"")
18523 DOXYGEN_PAPER_SIZE=""
18524
18525;; #(
18526a4wide|a4|letter|legal|executive)
18527 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18528
18529;; #(
18530*)
18531 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18532;;
18533esac
18534
18535#For debugging:
18536#echo DX_FLAG_doc=$DX_FLAG_doc
18537#echo DX_FLAG_dot=$DX_FLAG_dot
18538#echo DX_FLAG_man=$DX_FLAG_man
18539#echo DX_FLAG_html=$DX_FLAG_html
18540#echo DX_FLAG_chm=$DX_FLAG_chm
18541#echo DX_FLAG_chi=$DX_FLAG_chi
18542#echo DX_FLAG_rtf=$DX_FLAG_rtf
18543#echo DX_FLAG_xml=$DX_FLAG_xml
18544#echo DX_FLAG_pdf=$DX_FLAG_pdf
18545#echo DX_FLAG_ps=$DX_FLAG_ps
18546#echo DX_ENV=$DX_ENV
18547
18548
Jeff Thompson39128c62013-06-19 14:08:51 -070018549ac_config_files="$ac_config_files Makefile"
18550
18551cat >confcache <<\_ACEOF
18552# This file is a shell script that caches the results of configure
18553# tests run on this system so they can be shared between configure
18554# scripts and configure runs, see configure's option --config-cache.
18555# It is not useful on other systems. If it contains results you don't
18556# want to keep, you may remove or edit it.
18557#
18558# config.status only pays attention to the cache file if you give it
18559# the --recheck option to rerun configure.
18560#
18561# `ac_cv_env_foo' variables (set or unset) will be overridden when
18562# loading this file, other *unset* `ac_cv_foo' will be assigned the
18563# following values.
18564
18565_ACEOF
18566
18567# The following way of writing the cache mishandles newlines in values,
18568# but we know of no workaround that is simple, portable, and efficient.
18569# So, we kill variables containing newlines.
18570# Ultrix sh set writes to stderr and can't be redirected directly,
18571# and sets the high bit in the cache file unless we assign to the vars.
18572(
18573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18574 eval ac_val=\$$ac_var
18575 case $ac_val in #(
18576 *${as_nl}*)
18577 case $ac_var in #(
18578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18579$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18580 esac
18581 case $ac_var in #(
18582 _ | IFS | as_nl) ;; #(
18583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18584 *) { eval $ac_var=; unset $ac_var;} ;;
18585 esac ;;
18586 esac
18587 done
18588
18589 (set) 2>&1 |
18590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18591 *${as_nl}ac_space=\ *)
18592 # `set' does not quote correctly, so add quotes: double-quote
18593 # substitution turns \\\\ into \\, and sed turns \\ into \.
18594 sed -n \
18595 "s/'/'\\\\''/g;
18596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18597 ;; #(
18598 *)
18599 # `set' quotes correctly as required by POSIX, so do not add quotes.
18600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18601 ;;
18602 esac |
18603 sort
18604) |
18605 sed '
18606 /^ac_cv_env_/b end
18607 t clear
18608 :clear
18609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18610 t end
18611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18612 :end' >>confcache
18613if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18614 if test -w "$cache_file"; then
18615 if test "x$cache_file" != "x/dev/null"; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18617$as_echo "$as_me: updating cache $cache_file" >&6;}
18618 if test ! -f "$cache_file" || test -h "$cache_file"; then
18619 cat confcache >"$cache_file"
18620 else
18621 case $cache_file in #(
18622 */* | ?:*)
18623 mv -f confcache "$cache_file"$$ &&
18624 mv -f "$cache_file"$$ "$cache_file" ;; #(
18625 *)
18626 mv -f confcache "$cache_file" ;;
18627 esac
18628 fi
18629 fi
18630 else
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18632$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18633 fi
18634fi
18635rm -f confcache
18636
18637test "x$prefix" = xNONE && prefix=$ac_default_prefix
18638# Let make expand exec_prefix.
18639test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18640
18641DEFS=-DHAVE_CONFIG_H
18642
18643ac_libobjs=
18644ac_ltlibobjs=
18645U=
18646for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18647 # 1. Remove the extension, and $U if already installed.
18648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18649 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18651 # will be set to the directory where LIBOBJS objects are built.
18652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18654done
18655LIBOBJS=$ac_libobjs
18656
18657LTLIBOBJS=$ac_ltlibobjs
18658
18659
18660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18661$as_echo_n "checking that generated files are newer than configure... " >&6; }
18662 if test -n "$am_sleep_pid"; then
18663 # Hide warnings about reused PIDs.
18664 wait $am_sleep_pid 2>/dev/null
18665 fi
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18667$as_echo "done" >&6; }
18668 if test -n "$EXEEXT"; then
18669 am__EXEEXT_TRUE=
18670 am__EXEEXT_FALSE='#'
18671else
18672 am__EXEEXT_TRUE='#'
18673 am__EXEEXT_FALSE=
18674fi
18675
Jeff Thompson47053ad2013-08-05 10:36:53 -070018676if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18677 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18678Usually this means the macro was only invoked conditionally." "$LINENO" 5
18679fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018680if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18681 as_fn_error $? "conditional \"AMDEP\" was never defined.
18682Usually this means the macro was only invoked conditionally." "$LINENO" 5
18683fi
Jeff Thompson36174062013-06-21 16:03:44 -070018684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18685 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18686Usually this means the macro was only invoked conditionally." "$LINENO" 5
18687fi
Jeff Thompson4f031642013-08-05 11:03:16 -070018688if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18689 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18690Usually this means the macro was only invoked conditionally." "$LINENO" 5
18691fi
Jeff Thompson965a3242013-10-02 09:59:35 -070018692if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
18693 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
18694Usually this means the macro was only invoked conditionally." "$LINENO" 5
18695fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070018696if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18697 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
18698Usually this means the macro was only invoked conditionally." "$LINENO" 5
18699fi
18700if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18701 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
18702Usually this means the macro was only invoked conditionally." "$LINENO" 5
18703fi
18704if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18705 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
18706Usually this means the macro was only invoked conditionally." "$LINENO" 5
18707fi
18708if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18709 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
18710Usually this means the macro was only invoked conditionally." "$LINENO" 5
18711fi
18712if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18713 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
18714Usually this means the macro was only invoked conditionally." "$LINENO" 5
18715fi
18716if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18717 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
18718Usually this means the macro was only invoked conditionally." "$LINENO" 5
18719fi
18720if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18721 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
18722Usually this means the macro was only invoked conditionally." "$LINENO" 5
18723fi
18724if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18725 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
18726Usually this means the macro was only invoked conditionally." "$LINENO" 5
18727fi
18728if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18729 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
18730Usually this means the macro was only invoked conditionally." "$LINENO" 5
18731fi
18732if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18733 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
18734Usually this means the macro was only invoked conditionally." "$LINENO" 5
18735fi
18736if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18737 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
18738Usually this means the macro was only invoked conditionally." "$LINENO" 5
18739fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018740
18741: "${CONFIG_STATUS=./config.status}"
18742ac_write_fail=0
18743ac_clean_files_save=$ac_clean_files
18744ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18745{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18746$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18747as_write_fail=0
18748cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18749#! $SHELL
18750# Generated by $as_me.
18751# Run this file to recreate the current configuration.
18752# Compiler output produced by configure, useful for debugging
18753# configure, is in config.log if it exists.
18754
18755debug=false
18756ac_cs_recheck=false
18757ac_cs_silent=false
18758
18759SHELL=\${CONFIG_SHELL-$SHELL}
18760export SHELL
18761_ASEOF
18762cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18763## -------------------- ##
18764## M4sh Initialization. ##
18765## -------------------- ##
18766
18767# Be more Bourne compatible
18768DUALCASE=1; export DUALCASE # for MKS sh
18769if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18770 emulate sh
18771 NULLCMD=:
18772 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18773 # is contrary to our usage. Disable this feature.
18774 alias -g '${1+"$@"}'='"$@"'
18775 setopt NO_GLOB_SUBST
18776else
18777 case `(set -o) 2>/dev/null` in #(
18778 *posix*) :
18779 set -o posix ;; #(
18780 *) :
18781 ;;
18782esac
18783fi
18784
18785
18786as_nl='
18787'
18788export as_nl
18789# Printing a long string crashes Solaris 7 /usr/bin/printf.
18790as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18792as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18793# Prefer a ksh shell builtin over an external printf program on Solaris,
18794# but without wasting forks for bash or zsh.
18795if test -z "$BASH_VERSION$ZSH_VERSION" \
18796 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18797 as_echo='print -r --'
18798 as_echo_n='print -rn --'
18799elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18800 as_echo='printf %s\n'
18801 as_echo_n='printf %s'
18802else
18803 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18804 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18805 as_echo_n='/usr/ucb/echo -n'
18806 else
18807 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18808 as_echo_n_body='eval
18809 arg=$1;
18810 case $arg in #(
18811 *"$as_nl"*)
18812 expr "X$arg" : "X\\(.*\\)$as_nl";
18813 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18814 esac;
18815 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18816 '
18817 export as_echo_n_body
18818 as_echo_n='sh -c $as_echo_n_body as_echo'
18819 fi
18820 export as_echo_body
18821 as_echo='sh -c $as_echo_body as_echo'
18822fi
18823
18824# The user is always right.
18825if test "${PATH_SEPARATOR+set}" != set; then
18826 PATH_SEPARATOR=:
18827 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18828 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18829 PATH_SEPARATOR=';'
18830 }
18831fi
18832
18833
18834# IFS
18835# We need space, tab and new line, in precisely that order. Quoting is
18836# there to prevent editors from complaining about space-tab.
18837# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18838# splitting by setting IFS to empty value.)
18839IFS=" "" $as_nl"
18840
18841# Find who we are. Look in the path if we contain no directory separator.
18842as_myself=
18843case $0 in #((
18844 *[\\/]* ) as_myself=$0 ;;
18845 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18846for as_dir in $PATH
18847do
18848 IFS=$as_save_IFS
18849 test -z "$as_dir" && as_dir=.
18850 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18851 done
18852IFS=$as_save_IFS
18853
18854 ;;
18855esac
18856# We did not find ourselves, most probably we were run as `sh COMMAND'
18857# in which case we are not to be found in the path.
18858if test "x$as_myself" = x; then
18859 as_myself=$0
18860fi
18861if test ! -f "$as_myself"; then
18862 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18863 exit 1
18864fi
18865
18866# Unset variables that we do not need and which cause bugs (e.g. in
18867# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18868# suppresses any "Segmentation fault" message there. '((' could
18869# trigger a bug in pdksh 5.2.14.
18870for as_var in BASH_ENV ENV MAIL MAILPATH
18871do eval test x\${$as_var+set} = xset \
18872 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18873done
18874PS1='$ '
18875PS2='> '
18876PS4='+ '
18877
18878# NLS nuisances.
18879LC_ALL=C
18880export LC_ALL
18881LANGUAGE=C
18882export LANGUAGE
18883
18884# CDPATH.
18885(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18886
18887
18888# as_fn_error STATUS ERROR [LINENO LOG_FD]
18889# ----------------------------------------
18890# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18891# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18892# script with STATUS, using 1 if that was 0.
18893as_fn_error ()
18894{
18895 as_status=$1; test $as_status -eq 0 && as_status=1
18896 if test "$4"; then
18897 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18898 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18899 fi
18900 $as_echo "$as_me: error: $2" >&2
18901 as_fn_exit $as_status
18902} # as_fn_error
18903
18904
18905# as_fn_set_status STATUS
18906# -----------------------
18907# Set $? to STATUS, without forking.
18908as_fn_set_status ()
18909{
18910 return $1
18911} # as_fn_set_status
18912
18913# as_fn_exit STATUS
18914# -----------------
18915# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18916as_fn_exit ()
18917{
18918 set +e
18919 as_fn_set_status $1
18920 exit $1
18921} # as_fn_exit
18922
18923# as_fn_unset VAR
18924# ---------------
18925# Portably unset VAR.
18926as_fn_unset ()
18927{
18928 { eval $1=; unset $1;}
18929}
18930as_unset=as_fn_unset
18931# as_fn_append VAR VALUE
18932# ----------------------
18933# Append the text in VALUE to the end of the definition contained in VAR. Take
18934# advantage of any shell optimizations that allow amortized linear growth over
18935# repeated appends, instead of the typical quadratic growth present in naive
18936# implementations.
18937if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18938 eval 'as_fn_append ()
18939 {
18940 eval $1+=\$2
18941 }'
18942else
18943 as_fn_append ()
18944 {
18945 eval $1=\$$1\$2
18946 }
18947fi # as_fn_append
18948
18949# as_fn_arith ARG...
18950# ------------------
18951# Perform arithmetic evaluation on the ARGs, and store the result in the
18952# global $as_val. Take advantage of shells that can avoid forks. The arguments
18953# must be portable across $(()) and expr.
18954if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18955 eval 'as_fn_arith ()
18956 {
18957 as_val=$(( $* ))
18958 }'
18959else
18960 as_fn_arith ()
18961 {
18962 as_val=`expr "$@" || test $? -eq 1`
18963 }
18964fi # as_fn_arith
18965
18966
18967if expr a : '\(a\)' >/dev/null 2>&1 &&
18968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18969 as_expr=expr
18970else
18971 as_expr=false
18972fi
18973
18974if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18975 as_basename=basename
18976else
18977 as_basename=false
18978fi
18979
18980if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18981 as_dirname=dirname
18982else
18983 as_dirname=false
18984fi
18985
18986as_me=`$as_basename -- "$0" ||
18987$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18988 X"$0" : 'X\(//\)$' \| \
18989 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18990$as_echo X/"$0" |
18991 sed '/^.*\/\([^/][^/]*\)\/*$/{
18992 s//\1/
18993 q
18994 }
18995 /^X\/\(\/\/\)$/{
18996 s//\1/
18997 q
18998 }
18999 /^X\/\(\/\).*/{
19000 s//\1/
19001 q
19002 }
19003 s/.*/./; q'`
19004
19005# Avoid depending upon Character Ranges.
19006as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19007as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19008as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19009as_cr_digits='0123456789'
19010as_cr_alnum=$as_cr_Letters$as_cr_digits
19011
19012ECHO_C= ECHO_N= ECHO_T=
19013case `echo -n x` in #(((((
19014-n*)
19015 case `echo 'xy\c'` in
19016 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19017 xy) ECHO_C='\c';;
19018 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19019 ECHO_T=' ';;
19020 esac;;
19021*)
19022 ECHO_N='-n';;
19023esac
19024
19025rm -f conf$$ conf$$.exe conf$$.file
19026if test -d conf$$.dir; then
19027 rm -f conf$$.dir/conf$$.file
19028else
19029 rm -f conf$$.dir
19030 mkdir conf$$.dir 2>/dev/null
19031fi
19032if (echo >conf$$.file) 2>/dev/null; then
19033 if ln -s conf$$.file conf$$ 2>/dev/null; then
19034 as_ln_s='ln -s'
19035 # ... but there are two gotchas:
19036 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19037 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19038 # In both cases, we have to default to `cp -pR'.
19039 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19040 as_ln_s='cp -pR'
19041 elif ln conf$$.file conf$$ 2>/dev/null; then
19042 as_ln_s=ln
19043 else
19044 as_ln_s='cp -pR'
19045 fi
19046else
19047 as_ln_s='cp -pR'
19048fi
19049rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19050rmdir conf$$.dir 2>/dev/null
19051
19052
19053# as_fn_mkdir_p
19054# -------------
19055# Create "$as_dir" as a directory, including parents if necessary.
19056as_fn_mkdir_p ()
19057{
19058
19059 case $as_dir in #(
19060 -*) as_dir=./$as_dir;;
19061 esac
19062 test -d "$as_dir" || eval $as_mkdir_p || {
19063 as_dirs=
19064 while :; do
19065 case $as_dir in #(
19066 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19067 *) as_qdir=$as_dir;;
19068 esac
19069 as_dirs="'$as_qdir' $as_dirs"
19070 as_dir=`$as_dirname -- "$as_dir" ||
19071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19072 X"$as_dir" : 'X\(//\)[^/]' \| \
19073 X"$as_dir" : 'X\(//\)$' \| \
19074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19075$as_echo X"$as_dir" |
19076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19077 s//\1/
19078 q
19079 }
19080 /^X\(\/\/\)[^/].*/{
19081 s//\1/
19082 q
19083 }
19084 /^X\(\/\/\)$/{
19085 s//\1/
19086 q
19087 }
19088 /^X\(\/\).*/{
19089 s//\1/
19090 q
19091 }
19092 s/.*/./; q'`
19093 test -d "$as_dir" && break
19094 done
19095 test -z "$as_dirs" || eval "mkdir $as_dirs"
19096 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19097
19098
19099} # as_fn_mkdir_p
19100if mkdir -p . 2>/dev/null; then
19101 as_mkdir_p='mkdir -p "$as_dir"'
19102else
19103 test -d ./-p && rmdir ./-p
19104 as_mkdir_p=false
19105fi
19106
19107
19108# as_fn_executable_p FILE
19109# -----------------------
19110# Test if FILE is an executable regular file.
19111as_fn_executable_p ()
19112{
19113 test -f "$1" && test -x "$1"
19114} # as_fn_executable_p
19115as_test_x='test -x'
19116as_executable_p=as_fn_executable_p
19117
19118# Sed expression to map a string onto a valid CPP name.
19119as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19120
19121# Sed expression to map a string onto a valid variable name.
19122as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19123
19124
19125exec 6>&1
19126## ----------------------------------- ##
19127## Main body of $CONFIG_STATUS script. ##
19128## ----------------------------------- ##
19129_ASEOF
19130test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19131
19132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19133# Save the log message, to keep $0 and so on meaningful, and to
19134# report actual input values of CONFIG_FILES etc. instead of their
19135# values after options handling.
19136ac_log="
Jeff Thompson93a24162013-09-27 13:28:13 -070019137This file was extended by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -070019138generated by GNU Autoconf 2.69. Invocation command line was
19139
19140 CONFIG_FILES = $CONFIG_FILES
19141 CONFIG_HEADERS = $CONFIG_HEADERS
19142 CONFIG_LINKS = $CONFIG_LINKS
19143 CONFIG_COMMANDS = $CONFIG_COMMANDS
19144 $ $0 $@
19145
19146on `(hostname || uname -n) 2>/dev/null | sed 1q`
19147"
19148
19149_ACEOF
19150
19151case $ac_config_files in *"
19152"*) set x $ac_config_files; shift; ac_config_files=$*;;
19153esac
19154
19155case $ac_config_headers in *"
19156"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19157esac
19158
19159
19160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19161# Files that config.status was made for.
19162config_files="$ac_config_files"
19163config_headers="$ac_config_headers"
19164config_commands="$ac_config_commands"
19165
19166_ACEOF
19167
19168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19169ac_cs_usage="\
19170\`$as_me' instantiates files and other configuration actions
19171from templates according to the current configuration. Unless the files
19172and actions are specified as TAGs, all are instantiated by default.
19173
19174Usage: $0 [OPTION]... [TAG]...
19175
19176 -h, --help print this help, then exit
19177 -V, --version print version number and configuration settings, then exit
19178 --config print configuration, then exit
19179 -q, --quiet, --silent
19180 do not print progress messages
19181 -d, --debug don't remove temporary files
19182 --recheck update $as_me by reconfiguring in the same conditions
19183 --file=FILE[:TEMPLATE]
19184 instantiate the configuration file FILE
19185 --header=FILE[:TEMPLATE]
19186 instantiate the configuration header FILE
19187
19188Configuration files:
19189$config_files
19190
19191Configuration headers:
19192$config_headers
19193
19194Configuration commands:
19195$config_commands
19196
Jeff Thompson93a24162013-09-27 13:28:13 -070019197Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -070019198ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
19199
19200_ACEOF
19201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19202ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19203ac_cs_version="\\
Jeff Thompson93a24162013-09-27 13:28:13 -070019204ndn-cpp config.status 0.2
Jeff Thompson39128c62013-06-19 14:08:51 -070019205configured by $0, generated by GNU Autoconf 2.69,
19206 with options \\"\$ac_cs_config\\"
19207
19208Copyright (C) 2012 Free Software Foundation, Inc.
19209This config.status script is free software; the Free Software Foundation
19210gives unlimited permission to copy, distribute and modify it."
19211
19212ac_pwd='$ac_pwd'
19213srcdir='$srcdir'
19214INSTALL='$INSTALL'
19215MKDIR_P='$MKDIR_P'
19216AWK='$AWK'
19217test -n "\$AWK" || AWK=awk
19218_ACEOF
19219
19220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19221# The default lists apply if the user does not specify any file.
19222ac_need_defaults=:
19223while test $# != 0
19224do
19225 case $1 in
19226 --*=?*)
19227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19228 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19229 ac_shift=:
19230 ;;
19231 --*=)
19232 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19233 ac_optarg=
19234 ac_shift=:
19235 ;;
19236 *)
19237 ac_option=$1
19238 ac_optarg=$2
19239 ac_shift=shift
19240 ;;
19241 esac
19242
19243 case $ac_option in
19244 # Handling of the options.
19245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19246 ac_cs_recheck=: ;;
19247 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19248 $as_echo "$ac_cs_version"; exit ;;
19249 --config | --confi | --conf | --con | --co | --c )
19250 $as_echo "$ac_cs_config"; exit ;;
19251 --debug | --debu | --deb | --de | --d | -d )
19252 debug=: ;;
19253 --file | --fil | --fi | --f )
19254 $ac_shift
19255 case $ac_optarg in
19256 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19257 '') as_fn_error $? "missing file argument" ;;
19258 esac
19259 as_fn_append CONFIG_FILES " '$ac_optarg'"
19260 ac_need_defaults=false;;
19261 --header | --heade | --head | --hea )
19262 $ac_shift
19263 case $ac_optarg in
19264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19265 esac
19266 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19267 ac_need_defaults=false;;
19268 --he | --h)
19269 # Conflict between --help and --header
19270 as_fn_error $? "ambiguous option: \`$1'
19271Try \`$0 --help' for more information.";;
19272 --help | --hel | -h )
19273 $as_echo "$ac_cs_usage"; exit ;;
19274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19275 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19276 ac_cs_silent=: ;;
19277
19278 # This is an error.
19279 -*) as_fn_error $? "unrecognized option: \`$1'
19280Try \`$0 --help' for more information." ;;
19281
19282 *) as_fn_append ac_config_targets " $1"
19283 ac_need_defaults=false ;;
19284
19285 esac
19286 shift
19287done
19288
19289ac_configure_extra_args=
19290
19291if $ac_cs_silent; then
19292 exec 6>/dev/null
19293 ac_configure_extra_args="$ac_configure_extra_args --silent"
19294fi
19295
19296_ACEOF
19297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19298if \$ac_cs_recheck; then
19299 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19300 shift
19301 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19302 CONFIG_SHELL='$SHELL'
19303 export CONFIG_SHELL
19304 exec "\$@"
19305fi
19306
19307_ACEOF
19308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19309exec 5>>config.log
19310{
19311 echo
19312 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19313## Running $as_me. ##
19314_ASBOX
19315 $as_echo "$ac_log"
19316} >&5
19317
19318_ACEOF
19319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19320#
19321# INIT-COMMANDS
19322#
19323AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19324
Jeff Thompson4f031642013-08-05 11:03:16 -070019325
19326# The HP-UX ksh and POSIX shell print the target directory to stdout
19327# if CDPATH is set.
19328(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19329
19330sed_quote_subst='$sed_quote_subst'
19331double_quote_subst='$double_quote_subst'
19332delay_variable_subst='$delay_variable_subst'
19333macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19334macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19335enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19336enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19337pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19338enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19339SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19340ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19341PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19342host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19343host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19344host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19345build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19346build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19347build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19348SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19349Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19350GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19351EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19352FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19353LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19354NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19355LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19356max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19357ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19358exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19359lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19360lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19361lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19362lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19363lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19364reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19365reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19366OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19367deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19368file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19369file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19370want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19371DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19372sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19373AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19374AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19375archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19376STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19377RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19378old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19379old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19380old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19381lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19382CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19383CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19384compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19385GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19386lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19387lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19388lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19389lt_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"`'
19390nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19391lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19392objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19393MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19394lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19395lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19396lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19397lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19398lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19399need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19400MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19401DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19402NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19403LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19404OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19405OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19406libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19407shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19408extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19409archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19410enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19411export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19412whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19413compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19414old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19415old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19416archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19417archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19418module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19419module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19420with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19421allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19422no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19423hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19424hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19425hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19426hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19427hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19428hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19429hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19430inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19431link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19432always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19433export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19434exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19435include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19436prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19437postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19438file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19439variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19440need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19441need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19442version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19443runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19444shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19445shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19446libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19447library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19448soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19449install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19450postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19451postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19452finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19453finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19454hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19455sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19456sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19457hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19458enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19459enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19460enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19461old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19462striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19463compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19464predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19465postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19466predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19467postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19468compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19469LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19470reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19471reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19472old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19473compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19474GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19475lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19476lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19477lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19478lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19479lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19480archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19481enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19482export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19483whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19484compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19485old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19486old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19487archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19488archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19489module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19490module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19491with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19492allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19493no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19494hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19495hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19496hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19497hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19498hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19499hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19500hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19501inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19502link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19503always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19504export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19505exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19506include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19507prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19508postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19509file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19510hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19511compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19512predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19513postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19514predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19515postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19516compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19517
19518LTCC='$LTCC'
19519LTCFLAGS='$LTCFLAGS'
19520compiler='$compiler_DEFAULT'
19521
19522# A function that is used when there is no print builtin or printf.
19523func_fallback_echo ()
19524{
19525 eval 'cat <<_LTECHO_EOF
19526\$1
19527_LTECHO_EOF'
19528}
19529
19530# Quote evaled strings.
19531for var in SHELL \
19532ECHO \
19533PATH_SEPARATOR \
19534SED \
19535GREP \
19536EGREP \
19537FGREP \
19538LD \
19539NM \
19540LN_S \
19541lt_SP2NL \
19542lt_NL2SP \
19543reload_flag \
19544OBJDUMP \
19545deplibs_check_method \
19546file_magic_cmd \
19547file_magic_glob \
19548want_nocaseglob \
19549DLLTOOL \
19550sharedlib_from_linklib_cmd \
19551AR \
19552AR_FLAGS \
19553archiver_list_spec \
19554STRIP \
19555RANLIB \
19556CC \
19557CFLAGS \
19558compiler \
19559lt_cv_sys_global_symbol_pipe \
19560lt_cv_sys_global_symbol_to_cdecl \
19561lt_cv_sys_global_symbol_to_c_name_address \
19562lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19563nm_file_list_spec \
19564lt_prog_compiler_no_builtin_flag \
19565lt_prog_compiler_pic \
19566lt_prog_compiler_wl \
19567lt_prog_compiler_static \
19568lt_cv_prog_compiler_c_o \
19569need_locks \
19570MANIFEST_TOOL \
19571DSYMUTIL \
19572NMEDIT \
19573LIPO \
19574OTOOL \
19575OTOOL64 \
19576shrext_cmds \
19577export_dynamic_flag_spec \
19578whole_archive_flag_spec \
19579compiler_needs_object \
19580with_gnu_ld \
19581allow_undefined_flag \
19582no_undefined_flag \
19583hardcode_libdir_flag_spec \
19584hardcode_libdir_separator \
19585exclude_expsyms \
19586include_expsyms \
19587file_list_spec \
19588variables_saved_for_relink \
19589libname_spec \
19590library_names_spec \
19591soname_spec \
19592install_override_mode \
19593finish_eval \
19594old_striplib \
19595striplib \
19596compiler_lib_search_dirs \
19597predep_objects \
19598postdep_objects \
19599predeps \
19600postdeps \
19601compiler_lib_search_path \
19602LD_CXX \
19603reload_flag_CXX \
19604compiler_CXX \
19605lt_prog_compiler_no_builtin_flag_CXX \
19606lt_prog_compiler_pic_CXX \
19607lt_prog_compiler_wl_CXX \
19608lt_prog_compiler_static_CXX \
19609lt_cv_prog_compiler_c_o_CXX \
19610export_dynamic_flag_spec_CXX \
19611whole_archive_flag_spec_CXX \
19612compiler_needs_object_CXX \
19613with_gnu_ld_CXX \
19614allow_undefined_flag_CXX \
19615no_undefined_flag_CXX \
19616hardcode_libdir_flag_spec_CXX \
19617hardcode_libdir_separator_CXX \
19618exclude_expsyms_CXX \
19619include_expsyms_CXX \
19620file_list_spec_CXX \
19621compiler_lib_search_dirs_CXX \
19622predep_objects_CXX \
19623postdep_objects_CXX \
19624predeps_CXX \
19625postdeps_CXX \
19626compiler_lib_search_path_CXX; do
19627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19628 *[\\\\\\\`\\"\\\$]*)
19629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19630 ;;
19631 *)
19632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19633 ;;
19634 esac
19635done
19636
19637# Double-quote double-evaled strings.
19638for var in reload_cmds \
19639old_postinstall_cmds \
19640old_postuninstall_cmds \
19641old_archive_cmds \
19642extract_expsyms_cmds \
19643old_archive_from_new_cmds \
19644old_archive_from_expsyms_cmds \
19645archive_cmds \
19646archive_expsym_cmds \
19647module_cmds \
19648module_expsym_cmds \
19649export_symbols_cmds \
19650prelink_cmds \
19651postlink_cmds \
19652postinstall_cmds \
19653postuninstall_cmds \
19654finish_cmds \
19655sys_lib_search_path_spec \
19656sys_lib_dlsearch_path_spec \
19657reload_cmds_CXX \
19658old_archive_cmds_CXX \
19659old_archive_from_new_cmds_CXX \
19660old_archive_from_expsyms_cmds_CXX \
19661archive_cmds_CXX \
19662archive_expsym_cmds_CXX \
19663module_cmds_CXX \
19664module_expsym_cmds_CXX \
19665export_symbols_cmds_CXX \
19666prelink_cmds_CXX \
19667postlink_cmds_CXX; do
19668 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19669 *[\\\\\\\`\\"\\\$]*)
19670 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19671 ;;
19672 *)
19673 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19674 ;;
19675 esac
19676done
19677
19678ac_aux_dir='$ac_aux_dir'
19679xsi_shell='$xsi_shell'
19680lt_shell_append='$lt_shell_append'
19681
19682# See if we are running on zsh, and set the options which allow our
19683# commands through without removal of \ escapes INIT.
19684if test -n "\${ZSH_VERSION+set}" ; then
19685 setopt NO_GLOB_SUBST
19686fi
19687
19688
19689 PACKAGE='$PACKAGE'
19690 VERSION='$VERSION'
19691 TIMESTAMP='$TIMESTAMP'
19692 RM='$RM'
19693 ofile='$ofile'
19694
19695
19696
19697
19698
19699
Jeff Thompson39128c62013-06-19 14:08:51 -070019700_ACEOF
19701
19702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19703
19704# Handling of arguments.
19705for ac_config_target in $ac_config_targets
19706do
19707 case $ac_config_target in
19708 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19709 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070019710 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070019711 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19712
19713 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19714 esac
19715done
19716
19717
19718# If the user did not use the arguments to specify the items to instantiate,
19719# then the envvar interface is used. Set only those that are not.
19720# We use the long form for the default assignment because of an extremely
19721# bizarre bug on SunOS 4.1.3.
19722if $ac_need_defaults; then
19723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19726fi
19727
19728# Have a temporary directory for convenience. Make it in the build tree
19729# simply because there is no reason against having it here, and in addition,
19730# creating and moving files from /tmp can sometimes cause problems.
19731# Hook for its removal unless debugging.
19732# Note that there is a small window in which the directory will not be cleaned:
19733# after its creation but before its name has been assigned to `$tmp'.
19734$debug ||
19735{
19736 tmp= ac_tmp=
19737 trap 'exit_status=$?
19738 : "${ac_tmp:=$tmp}"
19739 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19740' 0
19741 trap 'as_fn_exit 1' 1 2 13 15
19742}
19743# Create a (secure) tmp directory for tmp files.
19744
19745{
19746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19747 test -d "$tmp"
19748} ||
19749{
19750 tmp=./conf$$-$RANDOM
19751 (umask 077 && mkdir "$tmp")
19752} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19753ac_tmp=$tmp
19754
19755# Set up the scripts for CONFIG_FILES section.
19756# No need to generate them if there are no CONFIG_FILES.
19757# This happens for instance with `./config.status config.h'.
19758if test -n "$CONFIG_FILES"; then
19759
19760
19761ac_cr=`echo X | tr X '\015'`
19762# On cygwin, bash can eat \r inside `` if the user requested igncr.
19763# But we know of no other shell where ac_cr would be empty at this
19764# point, so we can use a bashism as a fallback.
19765if test "x$ac_cr" = x; then
19766 eval ac_cr=\$\'\\r\'
19767fi
19768ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19769if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19770 ac_cs_awk_cr='\\r'
19771else
19772 ac_cs_awk_cr=$ac_cr
19773fi
19774
19775echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19776_ACEOF
19777
19778
19779{
19780 echo "cat >conf$$subs.awk <<_ACEOF" &&
19781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19782 echo "_ACEOF"
19783} >conf$$subs.sh ||
19784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19785ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19786ac_delim='%!_!# '
19787for ac_last_try in false false false false false :; do
19788 . ./conf$$subs.sh ||
19789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19790
19791 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19792 if test $ac_delim_n = $ac_delim_num; then
19793 break
19794 elif $ac_last_try; then
19795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19796 else
19797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19798 fi
19799done
19800rm -f conf$$subs.sh
19801
19802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19803cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19804_ACEOF
19805sed -n '
19806h
19807s/^/S["/; s/!.*/"]=/
19808p
19809g
19810s/^[^!]*!//
19811:repl
19812t repl
19813s/'"$ac_delim"'$//
19814t delim
19815:nl
19816h
19817s/\(.\{148\}\)..*/\1/
19818t more1
19819s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19820p
19821n
19822b repl
19823:more1
19824s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19825p
19826g
19827s/.\{148\}//
19828t nl
19829:delim
19830h
19831s/\(.\{148\}\)..*/\1/
19832t more2
19833s/["\\]/\\&/g; s/^/"/; s/$/"/
19834p
19835b
19836:more2
19837s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19838p
19839g
19840s/.\{148\}//
19841t delim
19842' <conf$$subs.awk | sed '
19843/^[^""]/{
19844 N
19845 s/\n//
19846}
19847' >>$CONFIG_STATUS || ac_write_fail=1
19848rm -f conf$$subs.awk
19849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19850_ACAWK
19851cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19852 for (key in S) S_is_set[key] = 1
19853 FS = ""
19854
19855}
19856{
19857 line = $ 0
19858 nfields = split(line, field, "@")
19859 substed = 0
19860 len = length(field[1])
19861 for (i = 2; i < nfields; i++) {
19862 key = field[i]
19863 keylen = length(key)
19864 if (S_is_set[key]) {
19865 value = S[key]
19866 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19867 len += length(value) + length(field[++i])
19868 substed = 1
19869 } else
19870 len += 1 + keylen
19871 }
19872
19873 print line
19874}
19875
19876_ACAWK
19877_ACEOF
19878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19879if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19880 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19881else
19882 cat
19883fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19884 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19885_ACEOF
19886
19887# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19888# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19889# trailing colons and then remove the whole line if VPATH becomes empty
19890# (actually we leave an empty line to preserve line numbers).
19891if test "x$srcdir" = x.; then
19892 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19893h
19894s///
19895s/^/:/
19896s/[ ]*$/:/
19897s/:\$(srcdir):/:/g
19898s/:\${srcdir}:/:/g
19899s/:@srcdir@:/:/g
19900s/^:*//
19901s/:*$//
19902x
19903s/\(=[ ]*\).*/\1/
19904G
19905s/\n//
19906s/^[^=]*=[ ]*$//
19907}'
19908fi
19909
19910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19911fi # test -n "$CONFIG_FILES"
19912
19913# Set up the scripts for CONFIG_HEADERS section.
19914# No need to generate them if there are no CONFIG_HEADERS.
19915# This happens for instance with `./config.status Makefile'.
19916if test -n "$CONFIG_HEADERS"; then
19917cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19918BEGIN {
19919_ACEOF
19920
19921# Transform confdefs.h into an awk script `defines.awk', embedded as
19922# here-document in config.status, that substitutes the proper values into
19923# config.h.in to produce config.h.
19924
19925# Create a delimiter string that does not exist in confdefs.h, to ease
19926# handling of long lines.
19927ac_delim='%!_!# '
19928for ac_last_try in false false :; do
19929 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19930 if test -z "$ac_tt"; then
19931 break
19932 elif $ac_last_try; then
19933 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19934 else
19935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19936 fi
19937done
19938
19939# For the awk script, D is an array of macro values keyed by name,
19940# likewise P contains macro parameters if any. Preserve backslash
19941# newline sequences.
19942
19943ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19944sed -n '
19945s/.\{148\}/&'"$ac_delim"'/g
19946t rset
19947:rset
19948s/^[ ]*#[ ]*define[ ][ ]*/ /
19949t def
19950d
19951:def
19952s/\\$//
19953t bsnl
19954s/["\\]/\\&/g
19955s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19956D["\1"]=" \3"/p
19957s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19958d
19959:bsnl
19960s/["\\]/\\&/g
19961s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19962D["\1"]=" \3\\\\\\n"\\/p
19963t cont
19964s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19965t cont
19966d
19967:cont
19968n
19969s/.\{148\}/&'"$ac_delim"'/g
19970t clear
19971:clear
19972s/\\$//
19973t bsnlc
19974s/["\\]/\\&/g; s/^/"/; s/$/"/p
19975d
19976:bsnlc
19977s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19978b cont
19979' <confdefs.h | sed '
19980s/'"$ac_delim"'/"\\\
19981"/g' >>$CONFIG_STATUS || ac_write_fail=1
19982
19983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19984 for (key in D) D_is_set[key] = 1
19985 FS = ""
19986}
19987/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19988 line = \$ 0
19989 split(line, arg, " ")
19990 if (arg[1] == "#") {
19991 defundef = arg[2]
19992 mac1 = arg[3]
19993 } else {
19994 defundef = substr(arg[1], 2)
19995 mac1 = arg[2]
19996 }
19997 split(mac1, mac2, "(") #)
19998 macro = mac2[1]
19999 prefix = substr(line, 1, index(line, defundef) - 1)
20000 if (D_is_set[macro]) {
20001 # Preserve the white space surrounding the "#".
20002 print prefix "define", macro P[macro] D[macro]
20003 next
20004 } else {
20005 # Replace #undef with comments. This is necessary, for example,
20006 # in the case of _POSIX_SOURCE, which is predefined and required
20007 # on some systems where configure will not decide to define it.
20008 if (defundef == "undef") {
20009 print "/*", prefix defundef, macro, "*/"
20010 next
20011 }
20012 }
20013}
20014{ print }
20015_ACAWK
20016_ACEOF
20017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20018 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20019fi # test -n "$CONFIG_HEADERS"
20020
20021
20022eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20023shift
20024for ac_tag
20025do
20026 case $ac_tag in
20027 :[FHLC]) ac_mode=$ac_tag; continue;;
20028 esac
20029 case $ac_mode$ac_tag in
20030 :[FHL]*:*);;
20031 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20032 :[FH]-) ac_tag=-:-;;
20033 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20034 esac
20035 ac_save_IFS=$IFS
20036 IFS=:
20037 set x $ac_tag
20038 IFS=$ac_save_IFS
20039 shift
20040 ac_file=$1
20041 shift
20042
20043 case $ac_mode in
20044 :L) ac_source=$1;;
20045 :[FH])
20046 ac_file_inputs=
20047 for ac_f
20048 do
20049 case $ac_f in
20050 -) ac_f="$ac_tmp/stdin";;
20051 *) # Look for the file first in the build tree, then in the source tree
20052 # (if the path is not absolute). The absolute path cannot be DOS-style,
20053 # because $ac_f cannot contain `:'.
20054 test -f "$ac_f" ||
20055 case $ac_f in
20056 [\\/$]*) false;;
20057 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20058 esac ||
20059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20060 esac
20061 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20062 as_fn_append ac_file_inputs " '$ac_f'"
20063 done
20064
20065 # Let's still pretend it is `configure' which instantiates (i.e., don't
20066 # use $as_me), people would be surprised to read:
20067 # /* config.h. Generated by config.status. */
20068 configure_input='Generated from '`
20069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20070 `' by configure.'
20071 if test x"$ac_file" != x-; then
20072 configure_input="$ac_file. $configure_input"
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20074$as_echo "$as_me: creating $ac_file" >&6;}
20075 fi
20076 # Neutralize special characters interpreted by sed in replacement strings.
20077 case $configure_input in #(
20078 *\&* | *\|* | *\\* )
20079 ac_sed_conf_input=`$as_echo "$configure_input" |
20080 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20081 *) ac_sed_conf_input=$configure_input;;
20082 esac
20083
20084 case $ac_tag in
20085 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20087 esac
20088 ;;
20089 esac
20090
20091 ac_dir=`$as_dirname -- "$ac_file" ||
20092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20093 X"$ac_file" : 'X\(//\)[^/]' \| \
20094 X"$ac_file" : 'X\(//\)$' \| \
20095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20096$as_echo X"$ac_file" |
20097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20098 s//\1/
20099 q
20100 }
20101 /^X\(\/\/\)[^/].*/{
20102 s//\1/
20103 q
20104 }
20105 /^X\(\/\/\)$/{
20106 s//\1/
20107 q
20108 }
20109 /^X\(\/\).*/{
20110 s//\1/
20111 q
20112 }
20113 s/.*/./; q'`
20114 as_dir="$ac_dir"; as_fn_mkdir_p
20115 ac_builddir=.
20116
20117case "$ac_dir" in
20118.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20119*)
20120 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20121 # A ".." for each directory in $ac_dir_suffix.
20122 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20123 case $ac_top_builddir_sub in
20124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20126 esac ;;
20127esac
20128ac_abs_top_builddir=$ac_pwd
20129ac_abs_builddir=$ac_pwd$ac_dir_suffix
20130# for backward compatibility:
20131ac_top_builddir=$ac_top_build_prefix
20132
20133case $srcdir in
20134 .) # We are building in place.
20135 ac_srcdir=.
20136 ac_top_srcdir=$ac_top_builddir_sub
20137 ac_abs_top_srcdir=$ac_pwd ;;
20138 [\\/]* | ?:[\\/]* ) # Absolute name.
20139 ac_srcdir=$srcdir$ac_dir_suffix;
20140 ac_top_srcdir=$srcdir
20141 ac_abs_top_srcdir=$srcdir ;;
20142 *) # Relative name.
20143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20144 ac_top_srcdir=$ac_top_build_prefix$srcdir
20145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20146esac
20147ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20148
20149
20150 case $ac_mode in
20151 :F)
20152 #
20153 # CONFIG_FILE
20154 #
20155
20156 case $INSTALL in
20157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20158 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20159 esac
20160 ac_MKDIR_P=$MKDIR_P
20161 case $MKDIR_P in
20162 [\\/$]* | ?:[\\/]* ) ;;
20163 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20164 esac
20165_ACEOF
20166
20167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20168# If the template does not know about datarootdir, expand it.
20169# FIXME: This hack should be removed a few years after 2.60.
20170ac_datarootdir_hack=; ac_datarootdir_seen=
20171ac_sed_dataroot='
20172/datarootdir/ {
20173 p
20174 q
20175}
20176/@datadir@/p
20177/@docdir@/p
20178/@infodir@/p
20179/@localedir@/p
20180/@mandir@/p'
20181case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20182*datarootdir*) ac_datarootdir_seen=yes;;
20183*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20185$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20186_ACEOF
20187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20188 ac_datarootdir_hack='
20189 s&@datadir@&$datadir&g
20190 s&@docdir@&$docdir&g
20191 s&@infodir@&$infodir&g
20192 s&@localedir@&$localedir&g
20193 s&@mandir@&$mandir&g
20194 s&\\\${datarootdir}&$datarootdir&g' ;;
20195esac
20196_ACEOF
20197
20198# Neutralize VPATH when `$srcdir' = `.'.
20199# Shell code in configure.ac might set extrasub.
20200# FIXME: do we really want to maintain this feature?
20201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20202ac_sed_extra="$ac_vpsub
20203$extrasub
20204_ACEOF
20205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20206:t
20207/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20208s|@configure_input@|$ac_sed_conf_input|;t t
20209s&@top_builddir@&$ac_top_builddir_sub&;t t
20210s&@top_build_prefix@&$ac_top_build_prefix&;t t
20211s&@srcdir@&$ac_srcdir&;t t
20212s&@abs_srcdir@&$ac_abs_srcdir&;t t
20213s&@top_srcdir@&$ac_top_srcdir&;t t
20214s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20215s&@builddir@&$ac_builddir&;t t
20216s&@abs_builddir@&$ac_abs_builddir&;t t
20217s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20218s&@INSTALL@&$ac_INSTALL&;t t
20219s&@MKDIR_P@&$ac_MKDIR_P&;t t
20220$ac_datarootdir_hack
20221"
20222eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20223 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20224
20225test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20226 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20228 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20230which seems to be undefined. Please make sure it is defined" >&5
20231$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20232which seems to be undefined. Please make sure it is defined" >&2;}
20233
20234 rm -f "$ac_tmp/stdin"
20235 case $ac_file in
20236 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20237 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20238 esac \
20239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20240 ;;
20241 :H)
20242 #
20243 # CONFIG_HEADER
20244 #
20245 if test x"$ac_file" != x-; then
20246 {
20247 $as_echo "/* $configure_input */" \
20248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20249 } >"$ac_tmp/config.h" \
20250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20251 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20253$as_echo "$as_me: $ac_file is unchanged" >&6;}
20254 else
20255 rm -f "$ac_file"
20256 mv "$ac_tmp/config.h" "$ac_file" \
20257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20258 fi
20259 else
20260 $as_echo "/* $configure_input */" \
20261 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20262 || as_fn_error $? "could not create -" "$LINENO" 5
20263 fi
20264# Compute "$ac_file"'s index in $config_headers.
20265_am_arg="$ac_file"
20266_am_stamp_count=1
20267for _am_header in $config_headers :; do
20268 case $_am_header in
20269 $_am_arg | $_am_arg:* )
20270 break ;;
20271 * )
20272 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20273 esac
20274done
20275echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20276$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20277 X"$_am_arg" : 'X\(//\)[^/]' \| \
20278 X"$_am_arg" : 'X\(//\)$' \| \
20279 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20280$as_echo X"$_am_arg" |
20281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20282 s//\1/
20283 q
20284 }
20285 /^X\(\/\/\)[^/].*/{
20286 s//\1/
20287 q
20288 }
20289 /^X\(\/\/\)$/{
20290 s//\1/
20291 q
20292 }
20293 /^X\(\/\).*/{
20294 s//\1/
20295 q
20296 }
20297 s/.*/./; q'`/stamp-h$_am_stamp_count
20298 ;;
20299
20300 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20301$as_echo "$as_me: executing $ac_file commands" >&6;}
20302 ;;
20303 esac
20304
20305
20306 case $ac_file$ac_mode in
20307 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20308 # Older Autoconf quotes --file arguments for eval, but not when files
20309 # are listed without --file. Let's play safe and only enable the eval
20310 # if we detect the quoting.
20311 case $CONFIG_FILES in
20312 *\'*) eval set x "$CONFIG_FILES" ;;
20313 *) set x $CONFIG_FILES ;;
20314 esac
20315 shift
20316 for mf
20317 do
20318 # Strip MF so we end up with the name of the file.
20319 mf=`echo "$mf" | sed -e 's/:.*$//'`
20320 # Check whether this is an Automake generated Makefile or not.
20321 # We used to match only the files named 'Makefile.in', but
20322 # some people rename them; so instead we look at the file content.
20323 # Grep'ing the first line is not enough: some people post-process
20324 # each Makefile.in and add a new line on top of each file to say so.
20325 # Grep'ing the whole file is not good either: AIX grep has a line
20326 # limit of 2048, but all sed's we know have understand at least 4000.
20327 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20328 dirpart=`$as_dirname -- "$mf" ||
20329$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20330 X"$mf" : 'X\(//\)[^/]' \| \
20331 X"$mf" : 'X\(//\)$' \| \
20332 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20333$as_echo X"$mf" |
20334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20335 s//\1/
20336 q
20337 }
20338 /^X\(\/\/\)[^/].*/{
20339 s//\1/
20340 q
20341 }
20342 /^X\(\/\/\)$/{
20343 s//\1/
20344 q
20345 }
20346 /^X\(\/\).*/{
20347 s//\1/
20348 q
20349 }
20350 s/.*/./; q'`
20351 else
20352 continue
20353 fi
20354 # Extract the definition of DEPDIR, am__include, and am__quote
20355 # from the Makefile without running 'make'.
20356 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20357 test -z "$DEPDIR" && continue
20358 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20359 test -z "$am__include" && continue
20360 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20361 # Find all dependency output files, they are included files with
20362 # $(DEPDIR) in their names. We invoke sed twice because it is the
20363 # simplest approach to changing $(DEPDIR) to its actual value in the
20364 # expansion.
20365 for file in `sed -n "
20366 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20367 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20368 # Make sure the directory exists.
20369 test -f "$dirpart/$file" && continue
20370 fdir=`$as_dirname -- "$file" ||
20371$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20372 X"$file" : 'X\(//\)[^/]' \| \
20373 X"$file" : 'X\(//\)$' \| \
20374 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20375$as_echo X"$file" |
20376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20377 s//\1/
20378 q
20379 }
20380 /^X\(\/\/\)[^/].*/{
20381 s//\1/
20382 q
20383 }
20384 /^X\(\/\/\)$/{
20385 s//\1/
20386 q
20387 }
20388 /^X\(\/\).*/{
20389 s//\1/
20390 q
20391 }
20392 s/.*/./; q'`
20393 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20394 # echo "creating $dirpart/$file"
20395 echo '# dummy' > "$dirpart/$file"
20396 done
20397 done
20398}
20399 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070020400 "libtool":C)
20401
20402 # See if we are running on zsh, and set the options which allow our
20403 # commands through without removal of \ escapes.
20404 if test -n "${ZSH_VERSION+set}" ; then
20405 setopt NO_GLOB_SUBST
20406 fi
20407
20408 cfgfile="${ofile}T"
20409 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20410 $RM "$cfgfile"
20411
20412 cat <<_LT_EOF >> "$cfgfile"
20413#! $SHELL
20414
20415# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20416# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20417# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20418# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20419#
20420# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20421# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20422# Foundation, Inc.
20423# Written by Gordon Matzigkeit, 1996
20424#
20425# This file is part of GNU Libtool.
20426#
20427# GNU Libtool is free software; you can redistribute it and/or
20428# modify it under the terms of the GNU General Public License as
20429# published by the Free Software Foundation; either version 2 of
20430# the License, or (at your option) any later version.
20431#
20432# As a special exception to the GNU General Public License,
20433# if you distribute this file as part of a program or library that
20434# is built using GNU Libtool, you may include this file under the
20435# same distribution terms that you use for the rest of that program.
20436#
20437# GNU Libtool is distributed in the hope that it will be useful,
20438# but WITHOUT ANY WARRANTY; without even the implied warranty of
20439# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20440# GNU General Public License for more details.
20441#
20442# You should have received a copy of the GNU General Public License
20443# along with GNU Libtool; see the file COPYING. If not, a copy
20444# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20445# obtained by writing to the Free Software Foundation, Inc.,
20446# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20447
20448
20449# The names of the tagged configurations supported by this script.
20450available_tags="CXX "
20451
20452# ### BEGIN LIBTOOL CONFIG
20453
20454# Which release of libtool.m4 was used?
20455macro_version=$macro_version
20456macro_revision=$macro_revision
20457
20458# Whether or not to build shared libraries.
20459build_libtool_libs=$enable_shared
20460
20461# Whether or not to build static libraries.
20462build_old_libs=$enable_static
20463
20464# What type of objects to build.
20465pic_mode=$pic_mode
20466
20467# Whether or not to optimize for fast installation.
20468fast_install=$enable_fast_install
20469
20470# Shell to use when invoking shell scripts.
20471SHELL=$lt_SHELL
20472
20473# An echo program that protects backslashes.
20474ECHO=$lt_ECHO
20475
20476# The PATH separator for the build system.
20477PATH_SEPARATOR=$lt_PATH_SEPARATOR
20478
20479# The host system.
20480host_alias=$host_alias
20481host=$host
20482host_os=$host_os
20483
20484# The build system.
20485build_alias=$build_alias
20486build=$build
20487build_os=$build_os
20488
20489# A sed program that does not truncate output.
20490SED=$lt_SED
20491
20492# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20493Xsed="\$SED -e 1s/^X//"
20494
20495# A grep program that handles long lines.
20496GREP=$lt_GREP
20497
20498# An ERE matcher.
20499EGREP=$lt_EGREP
20500
20501# A literal string matcher.
20502FGREP=$lt_FGREP
20503
20504# A BSD- or MS-compatible name lister.
20505NM=$lt_NM
20506
20507# Whether we need soft or hard links.
20508LN_S=$lt_LN_S
20509
20510# What is the maximum length of a command?
20511max_cmd_len=$max_cmd_len
20512
20513# Object file suffix (normally "o").
20514objext=$ac_objext
20515
20516# Executable file suffix (normally "").
20517exeext=$exeext
20518
20519# whether the shell understands "unset".
20520lt_unset=$lt_unset
20521
20522# turn spaces into newlines.
20523SP2NL=$lt_lt_SP2NL
20524
20525# turn newlines into spaces.
20526NL2SP=$lt_lt_NL2SP
20527
20528# convert \$build file names to \$host format.
20529to_host_file_cmd=$lt_cv_to_host_file_cmd
20530
20531# convert \$build files to toolchain format.
20532to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20533
20534# An object symbol dumper.
20535OBJDUMP=$lt_OBJDUMP
20536
20537# Method to check whether dependent libraries are shared objects.
20538deplibs_check_method=$lt_deplibs_check_method
20539
20540# Command to use when deplibs_check_method = "file_magic".
20541file_magic_cmd=$lt_file_magic_cmd
20542
20543# How to find potential files when deplibs_check_method = "file_magic".
20544file_magic_glob=$lt_file_magic_glob
20545
20546# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20547want_nocaseglob=$lt_want_nocaseglob
20548
20549# DLL creation program.
20550DLLTOOL=$lt_DLLTOOL
20551
20552# Command to associate shared and link libraries.
20553sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20554
20555# The archiver.
20556AR=$lt_AR
20557
20558# Flags to create an archive.
20559AR_FLAGS=$lt_AR_FLAGS
20560
20561# How to feed a file listing to the archiver.
20562archiver_list_spec=$lt_archiver_list_spec
20563
20564# A symbol stripping program.
20565STRIP=$lt_STRIP
20566
20567# Commands used to install an old-style archive.
20568RANLIB=$lt_RANLIB
20569old_postinstall_cmds=$lt_old_postinstall_cmds
20570old_postuninstall_cmds=$lt_old_postuninstall_cmds
20571
20572# Whether to use a lock for old archive extraction.
20573lock_old_archive_extraction=$lock_old_archive_extraction
20574
20575# A C compiler.
20576LTCC=$lt_CC
20577
20578# LTCC compiler flags.
20579LTCFLAGS=$lt_CFLAGS
20580
20581# Take the output of nm and produce a listing of raw symbols and C names.
20582global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20583
20584# Transform the output of nm in a proper C declaration.
20585global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20586
20587# Transform the output of nm in a C name address pair.
20588global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20589
20590# Transform the output of nm in a C name address pair when lib prefix is needed.
20591global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20592
20593# Specify filename containing input files for \$NM.
20594nm_file_list_spec=$lt_nm_file_list_spec
20595
20596# The root where to search for dependent libraries,and in which our libraries should be installed.
20597lt_sysroot=$lt_sysroot
20598
20599# The name of the directory that contains temporary libtool files.
20600objdir=$objdir
20601
20602# Used to examine libraries when file_magic_cmd begins with "file".
20603MAGIC_CMD=$MAGIC_CMD
20604
20605# Must we lock files when doing compilation?
20606need_locks=$lt_need_locks
20607
20608# Manifest tool.
20609MANIFEST_TOOL=$lt_MANIFEST_TOOL
20610
20611# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20612DSYMUTIL=$lt_DSYMUTIL
20613
20614# Tool to change global to local symbols on Mac OS X.
20615NMEDIT=$lt_NMEDIT
20616
20617# Tool to manipulate fat objects and archives on Mac OS X.
20618LIPO=$lt_LIPO
20619
20620# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20621OTOOL=$lt_OTOOL
20622
20623# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20624OTOOL64=$lt_OTOOL64
20625
20626# Old archive suffix (normally "a").
20627libext=$libext
20628
20629# Shared library suffix (normally ".so").
20630shrext_cmds=$lt_shrext_cmds
20631
20632# The commands to extract the exported symbol list from a shared archive.
20633extract_expsyms_cmds=$lt_extract_expsyms_cmds
20634
20635# Variables whose values should be saved in libtool wrapper scripts and
20636# restored at link time.
20637variables_saved_for_relink=$lt_variables_saved_for_relink
20638
20639# Do we need the "lib" prefix for modules?
20640need_lib_prefix=$need_lib_prefix
20641
20642# Do we need a version for libraries?
20643need_version=$need_version
20644
20645# Library versioning type.
20646version_type=$version_type
20647
20648# Shared library runtime path variable.
20649runpath_var=$runpath_var
20650
20651# Shared library path variable.
20652shlibpath_var=$shlibpath_var
20653
20654# Is shlibpath searched before the hard-coded library search path?
20655shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20656
20657# Format of library name prefix.
20658libname_spec=$lt_libname_spec
20659
20660# List of archive names. First name is the real one, the rest are links.
20661# The last name is the one that the linker finds with -lNAME
20662library_names_spec=$lt_library_names_spec
20663
20664# The coded name of the library, if different from the real name.
20665soname_spec=$lt_soname_spec
20666
20667# Permission mode override for installation of shared libraries.
20668install_override_mode=$lt_install_override_mode
20669
20670# Command to use after installation of a shared archive.
20671postinstall_cmds=$lt_postinstall_cmds
20672
20673# Command to use after uninstallation of a shared archive.
20674postuninstall_cmds=$lt_postuninstall_cmds
20675
20676# Commands used to finish a libtool library installation in a directory.
20677finish_cmds=$lt_finish_cmds
20678
20679# As "finish_cmds", except a single script fragment to be evaled but
20680# not shown.
20681finish_eval=$lt_finish_eval
20682
20683# Whether we should hardcode library paths into libraries.
20684hardcode_into_libs=$hardcode_into_libs
20685
20686# Compile-time system search path for libraries.
20687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20688
20689# Run-time system search path for libraries.
20690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20691
20692# Whether dlopen is supported.
20693dlopen_support=$enable_dlopen
20694
20695# Whether dlopen of programs is supported.
20696dlopen_self=$enable_dlopen_self
20697
20698# Whether dlopen of statically linked programs is supported.
20699dlopen_self_static=$enable_dlopen_self_static
20700
20701# Commands to strip libraries.
20702old_striplib=$lt_old_striplib
20703striplib=$lt_striplib
20704
20705
20706# The linker used to build libraries.
20707LD=$lt_LD
20708
20709# How to create reloadable object files.
20710reload_flag=$lt_reload_flag
20711reload_cmds=$lt_reload_cmds
20712
20713# Commands used to build an old-style archive.
20714old_archive_cmds=$lt_old_archive_cmds
20715
20716# A language specific compiler.
20717CC=$lt_compiler
20718
20719# Is the compiler the GNU compiler?
20720with_gcc=$GCC
20721
20722# Compiler flag to turn off builtin functions.
20723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20724
20725# Additional compiler flags for building library objects.
20726pic_flag=$lt_lt_prog_compiler_pic
20727
20728# How to pass a linker flag through the compiler.
20729wl=$lt_lt_prog_compiler_wl
20730
20731# Compiler flag to prevent dynamic linking.
20732link_static_flag=$lt_lt_prog_compiler_static
20733
20734# Does compiler simultaneously support -c and -o options?
20735compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20736
20737# Whether or not to add -lc for building shared libraries.
20738build_libtool_need_lc=$archive_cmds_need_lc
20739
20740# Whether or not to disallow shared libs when runtime libs are static.
20741allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20742
20743# Compiler flag to allow reflexive dlopens.
20744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20745
20746# Compiler flag to generate shared objects directly from archives.
20747whole_archive_flag_spec=$lt_whole_archive_flag_spec
20748
20749# Whether the compiler copes with passing no objects directly.
20750compiler_needs_object=$lt_compiler_needs_object
20751
20752# Create an old-style archive from a shared archive.
20753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20754
20755# Create a temporary old-style archive to link instead of a shared archive.
20756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20757
20758# Commands used to build a shared archive.
20759archive_cmds=$lt_archive_cmds
20760archive_expsym_cmds=$lt_archive_expsym_cmds
20761
20762# Commands used to build a loadable module if different from building
20763# a shared archive.
20764module_cmds=$lt_module_cmds
20765module_expsym_cmds=$lt_module_expsym_cmds
20766
20767# Whether we are building with GNU ld or not.
20768with_gnu_ld=$lt_with_gnu_ld
20769
20770# Flag that allows shared libraries with undefined symbols to be built.
20771allow_undefined_flag=$lt_allow_undefined_flag
20772
20773# Flag that enforces no undefined symbols.
20774no_undefined_flag=$lt_no_undefined_flag
20775
20776# Flag to hardcode \$libdir into a binary during linking.
20777# This must work even if \$libdir does not exist
20778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20779
20780# Whether we need a single "-rpath" flag with a separated argument.
20781hardcode_libdir_separator=$lt_hardcode_libdir_separator
20782
20783# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20784# DIR into the resulting binary.
20785hardcode_direct=$hardcode_direct
20786
20787# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20788# DIR into the resulting binary and the resulting library dependency is
20789# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20790# library is relocated.
20791hardcode_direct_absolute=$hardcode_direct_absolute
20792
20793# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20794# into the resulting binary.
20795hardcode_minus_L=$hardcode_minus_L
20796
20797# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20798# into the resulting binary.
20799hardcode_shlibpath_var=$hardcode_shlibpath_var
20800
20801# Set to "yes" if building a shared library automatically hardcodes DIR
20802# into the library and all subsequent libraries and executables linked
20803# against it.
20804hardcode_automatic=$hardcode_automatic
20805
20806# Set to yes if linker adds runtime paths of dependent libraries
20807# to runtime path list.
20808inherit_rpath=$inherit_rpath
20809
20810# Whether libtool must link a program against all its dependency libraries.
20811link_all_deplibs=$link_all_deplibs
20812
20813# Set to "yes" if exported symbols are required.
20814always_export_symbols=$always_export_symbols
20815
20816# The commands to list exported symbols.
20817export_symbols_cmds=$lt_export_symbols_cmds
20818
20819# Symbols that should not be listed in the preloaded symbols.
20820exclude_expsyms=$lt_exclude_expsyms
20821
20822# Symbols that must always be exported.
20823include_expsyms=$lt_include_expsyms
20824
20825# Commands necessary for linking programs (against libraries) with templates.
20826prelink_cmds=$lt_prelink_cmds
20827
20828# Commands necessary for finishing linking programs.
20829postlink_cmds=$lt_postlink_cmds
20830
20831# Specify filename containing input files.
20832file_list_spec=$lt_file_list_spec
20833
20834# How to hardcode a shared library path into an executable.
20835hardcode_action=$hardcode_action
20836
20837# The directories searched by this compiler when creating a shared library.
20838compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20839
20840# Dependencies to place before and after the objects being linked to
20841# create a shared library.
20842predep_objects=$lt_predep_objects
20843postdep_objects=$lt_postdep_objects
20844predeps=$lt_predeps
20845postdeps=$lt_postdeps
20846
20847# The library search path used internally by the compiler when linking
20848# a shared library.
20849compiler_lib_search_path=$lt_compiler_lib_search_path
20850
20851# ### END LIBTOOL CONFIG
20852
20853_LT_EOF
20854
20855 case $host_os in
20856 aix3*)
20857 cat <<\_LT_EOF >> "$cfgfile"
20858# AIX sometimes has problems with the GCC collect2 program. For some
20859# reason, if we set the COLLECT_NAMES environment variable, the problems
20860# vanish in a puff of smoke.
20861if test "X${COLLECT_NAMES+set}" != Xset; then
20862 COLLECT_NAMES=
20863 export COLLECT_NAMES
20864fi
20865_LT_EOF
20866 ;;
20867 esac
20868
20869
20870ltmain="$ac_aux_dir/ltmain.sh"
20871
20872
20873 # We use sed instead of cat because bash on DJGPP gets confused if
20874 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20875 # text mode, it properly converts lines to CR/LF. This bash problem
20876 # is reportedly fixed, but why not run on old versions too?
20877 sed '$q' "$ltmain" >> "$cfgfile" \
20878 || (rm -f "$cfgfile"; exit 1)
20879
20880 if test x"$xsi_shell" = xyes; then
20881 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20882func_dirname ()\
20883{\
20884\ case ${1} in\
20885\ */*) func_dirname_result="${1%/*}${2}" ;;\
20886\ * ) func_dirname_result="${3}" ;;\
20887\ esac\
20888} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20889 && mv -f "$cfgfile.tmp" "$cfgfile" \
20890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20891test 0 -eq $? || _lt_function_replace_fail=:
20892
20893
20894 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20895func_basename ()\
20896{\
20897\ func_basename_result="${1##*/}"\
20898} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20899 && mv -f "$cfgfile.tmp" "$cfgfile" \
20900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20901test 0 -eq $? || _lt_function_replace_fail=:
20902
20903
20904 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20905func_dirname_and_basename ()\
20906{\
20907\ case ${1} in\
20908\ */*) func_dirname_result="${1%/*}${2}" ;;\
20909\ * ) func_dirname_result="${3}" ;;\
20910\ esac\
20911\ func_basename_result="${1##*/}"\
20912} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20913 && mv -f "$cfgfile.tmp" "$cfgfile" \
20914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20915test 0 -eq $? || _lt_function_replace_fail=:
20916
20917
20918 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20919func_stripname ()\
20920{\
20921\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20922\ # positional parameters, so assign one to ordinary parameter first.\
20923\ func_stripname_result=${3}\
20924\ func_stripname_result=${func_stripname_result#"${1}"}\
20925\ func_stripname_result=${func_stripname_result%"${2}"}\
20926} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20927 && mv -f "$cfgfile.tmp" "$cfgfile" \
20928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20929test 0 -eq $? || _lt_function_replace_fail=:
20930
20931
20932 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20933func_split_long_opt ()\
20934{\
20935\ func_split_long_opt_name=${1%%=*}\
20936\ func_split_long_opt_arg=${1#*=}\
20937} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20938 && mv -f "$cfgfile.tmp" "$cfgfile" \
20939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20940test 0 -eq $? || _lt_function_replace_fail=:
20941
20942
20943 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20944func_split_short_opt ()\
20945{\
20946\ func_split_short_opt_arg=${1#??}\
20947\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20948} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20949 && mv -f "$cfgfile.tmp" "$cfgfile" \
20950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20951test 0 -eq $? || _lt_function_replace_fail=:
20952
20953
20954 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20955func_lo2o ()\
20956{\
20957\ case ${1} in\
20958\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20959\ *) func_lo2o_result=${1} ;;\
20960\ esac\
20961} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20962 && mv -f "$cfgfile.tmp" "$cfgfile" \
20963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20964test 0 -eq $? || _lt_function_replace_fail=:
20965
20966
20967 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20968func_xform ()\
20969{\
20970 func_xform_result=${1%.*}.lo\
20971} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20972 && mv -f "$cfgfile.tmp" "$cfgfile" \
20973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20974test 0 -eq $? || _lt_function_replace_fail=:
20975
20976
20977 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20978func_arith ()\
20979{\
20980 func_arith_result=$(( $* ))\
20981} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20982 && mv -f "$cfgfile.tmp" "$cfgfile" \
20983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20984test 0 -eq $? || _lt_function_replace_fail=:
20985
20986
20987 sed -e '/^func_len ()$/,/^} # func_len /c\
20988func_len ()\
20989{\
20990 func_len_result=${#1}\
20991} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20992 && mv -f "$cfgfile.tmp" "$cfgfile" \
20993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20994test 0 -eq $? || _lt_function_replace_fail=:
20995
20996fi
20997
20998if test x"$lt_shell_append" = xyes; then
20999 sed -e '/^func_append ()$/,/^} # func_append /c\
21000func_append ()\
21001{\
21002 eval "${1}+=\\${2}"\
21003} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21004 && mv -f "$cfgfile.tmp" "$cfgfile" \
21005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21006test 0 -eq $? || _lt_function_replace_fail=:
21007
21008
21009 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21010func_append_quoted ()\
21011{\
21012\ func_quote_for_eval "${2}"\
21013\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21014} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21015 && mv -f "$cfgfile.tmp" "$cfgfile" \
21016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21017test 0 -eq $? || _lt_function_replace_fail=:
21018
21019
21020 # Save a `func_append' function call where possible by direct use of '+='
21021 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21022 && mv -f "$cfgfile.tmp" "$cfgfile" \
21023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21024 test 0 -eq $? || _lt_function_replace_fail=:
21025else
21026 # Save a `func_append' function call even when '+=' is not available
21027 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21028 && mv -f "$cfgfile.tmp" "$cfgfile" \
21029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21030 test 0 -eq $? || _lt_function_replace_fail=:
21031fi
21032
21033if test x"$_lt_function_replace_fail" = x":"; then
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21035$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21036fi
21037
21038
21039 mv -f "$cfgfile" "$ofile" ||
21040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21041 chmod +x "$ofile"
21042
21043
21044 cat <<_LT_EOF >> "$ofile"
21045
21046# ### BEGIN LIBTOOL TAG CONFIG: CXX
21047
21048# The linker used to build libraries.
21049LD=$lt_LD_CXX
21050
21051# How to create reloadable object files.
21052reload_flag=$lt_reload_flag_CXX
21053reload_cmds=$lt_reload_cmds_CXX
21054
21055# Commands used to build an old-style archive.
21056old_archive_cmds=$lt_old_archive_cmds_CXX
21057
21058# A language specific compiler.
21059CC=$lt_compiler_CXX
21060
21061# Is the compiler the GNU compiler?
21062with_gcc=$GCC_CXX
21063
21064# Compiler flag to turn off builtin functions.
21065no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21066
21067# Additional compiler flags for building library objects.
21068pic_flag=$lt_lt_prog_compiler_pic_CXX
21069
21070# How to pass a linker flag through the compiler.
21071wl=$lt_lt_prog_compiler_wl_CXX
21072
21073# Compiler flag to prevent dynamic linking.
21074link_static_flag=$lt_lt_prog_compiler_static_CXX
21075
21076# Does compiler simultaneously support -c and -o options?
21077compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21078
21079# Whether or not to add -lc for building shared libraries.
21080build_libtool_need_lc=$archive_cmds_need_lc_CXX
21081
21082# Whether or not to disallow shared libs when runtime libs are static.
21083allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21084
21085# Compiler flag to allow reflexive dlopens.
21086export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21087
21088# Compiler flag to generate shared objects directly from archives.
21089whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21090
21091# Whether the compiler copes with passing no objects directly.
21092compiler_needs_object=$lt_compiler_needs_object_CXX
21093
21094# Create an old-style archive from a shared archive.
21095old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21096
21097# Create a temporary old-style archive to link instead of a shared archive.
21098old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21099
21100# Commands used to build a shared archive.
21101archive_cmds=$lt_archive_cmds_CXX
21102archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21103
21104# Commands used to build a loadable module if different from building
21105# a shared archive.
21106module_cmds=$lt_module_cmds_CXX
21107module_expsym_cmds=$lt_module_expsym_cmds_CXX
21108
21109# Whether we are building with GNU ld or not.
21110with_gnu_ld=$lt_with_gnu_ld_CXX
21111
21112# Flag that allows shared libraries with undefined symbols to be built.
21113allow_undefined_flag=$lt_allow_undefined_flag_CXX
21114
21115# Flag that enforces no undefined symbols.
21116no_undefined_flag=$lt_no_undefined_flag_CXX
21117
21118# Flag to hardcode \$libdir into a binary during linking.
21119# This must work even if \$libdir does not exist
21120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21121
21122# Whether we need a single "-rpath" flag with a separated argument.
21123hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21124
21125# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21126# DIR into the resulting binary.
21127hardcode_direct=$hardcode_direct_CXX
21128
21129# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21130# DIR into the resulting binary and the resulting library dependency is
21131# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21132# library is relocated.
21133hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21134
21135# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21136# into the resulting binary.
21137hardcode_minus_L=$hardcode_minus_L_CXX
21138
21139# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21140# into the resulting binary.
21141hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21142
21143# Set to "yes" if building a shared library automatically hardcodes DIR
21144# into the library and all subsequent libraries and executables linked
21145# against it.
21146hardcode_automatic=$hardcode_automatic_CXX
21147
21148# Set to yes if linker adds runtime paths of dependent libraries
21149# to runtime path list.
21150inherit_rpath=$inherit_rpath_CXX
21151
21152# Whether libtool must link a program against all its dependency libraries.
21153link_all_deplibs=$link_all_deplibs_CXX
21154
21155# Set to "yes" if exported symbols are required.
21156always_export_symbols=$always_export_symbols_CXX
21157
21158# The commands to list exported symbols.
21159export_symbols_cmds=$lt_export_symbols_cmds_CXX
21160
21161# Symbols that should not be listed in the preloaded symbols.
21162exclude_expsyms=$lt_exclude_expsyms_CXX
21163
21164# Symbols that must always be exported.
21165include_expsyms=$lt_include_expsyms_CXX
21166
21167# Commands necessary for linking programs (against libraries) with templates.
21168prelink_cmds=$lt_prelink_cmds_CXX
21169
21170# Commands necessary for finishing linking programs.
21171postlink_cmds=$lt_postlink_cmds_CXX
21172
21173# Specify filename containing input files.
21174file_list_spec=$lt_file_list_spec_CXX
21175
21176# How to hardcode a shared library path into an executable.
21177hardcode_action=$hardcode_action_CXX
21178
21179# The directories searched by this compiler when creating a shared library.
21180compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21181
21182# Dependencies to place before and after the objects being linked to
21183# create a shared library.
21184predep_objects=$lt_predep_objects_CXX
21185postdep_objects=$lt_postdep_objects_CXX
21186predeps=$lt_predeps_CXX
21187postdeps=$lt_postdeps_CXX
21188
21189# The library search path used internally by the compiler when linking
21190# a shared library.
21191compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21192
21193# ### END LIBTOOL TAG CONFIG: CXX
21194_LT_EOF
21195
21196 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070021197
21198 esac
21199done # for ac_tag
21200
21201
21202as_fn_exit 0
21203_ACEOF
21204ac_clean_files=$ac_clean_files_save
21205
21206test $ac_write_fail = 0 ||
21207 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21208
21209
21210# configure is writing to config.log, and then calls config.status.
21211# config.status does its own redirection, appending to config.log.
21212# Unfortunately, on DOS this fails, as config.log is still kept open
21213# by configure, so config.status won't be able to write to it; its
21214# output is simply discarded. So we exec the FD to /dev/null,
21215# effectively closing config.log, so it can be properly (re)opened and
21216# appended to by config.status. When coming back to configure, we
21217# need to make the FD available again.
21218if test "$no_create" != yes; then
21219 ac_cs_success=:
21220 ac_config_status_args=
21221 test "$silent" = yes &&
21222 ac_config_status_args="$ac_config_status_args --quiet"
21223 exec 5>/dev/null
21224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21225 exec 5>>config.log
21226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21227 # would make configure fail if this is the last instruction.
21228 $ac_cs_success || as_fn_exit 1
21229fi
21230if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21232$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21233fi
21234