blob: 93c8e72714c39d16c3ce654cda54481dc76b4dd9 [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 Thompsonb7523002013-10-09 10:25:00 -07003233# Create config.h without prefixes.
3234ac_config_headers="$ac_config_headers config.h"
3235
3236# Add prefixes and output to a unique file name.
3237
3238ac_config_commands="$ac_config_commands ndn-cpp/ndn-cpp-config.h"
Jeff Thompson39128c62013-06-19 14:08:51 -07003239
Jeff Thompson47053ad2013-08-05 10:36:53 -07003240
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3242$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3243 # Check whether --enable-maintainer-mode was given.
3244if test "${enable_maintainer_mode+set}" = set; then :
3245 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3246else
3247 USE_MAINTAINER_MODE=no
3248fi
3249
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3251$as_echo "$USE_MAINTAINER_MODE" >&6; }
3252 if test $USE_MAINTAINER_MODE = yes; then
3253 MAINTAINER_MODE_TRUE=
3254 MAINTAINER_MODE_FALSE='#'
3255else
3256 MAINTAINER_MODE_TRUE='#'
3257 MAINTAINER_MODE_FALSE=
3258fi
3259
3260 MAINT=$MAINTAINER_MODE_TRUE
3261
3262
Jeff Thompson39128c62013-06-19 14:08:51 -07003263DEPDIR="${am__leading_dot}deps"
3264
3265ac_config_commands="$ac_config_commands depfiles"
3266
3267
3268am_make=${MAKE-make}
3269cat > confinc << 'END'
3270am__doit:
3271 @echo this is the am__doit target
3272.PHONY: am__doit
3273END
3274# If we don't find an include directive, just comment out the code.
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3276$as_echo_n "checking for style of include used by $am_make... " >&6; }
3277am__include="#"
3278am__quote=
3279_am_result=none
3280# First try GNU make style include.
3281echo "include confinc" > confmf
3282# Ignore all kinds of additional output from 'make'.
3283case `$am_make -s -f confmf 2> /dev/null` in #(
3284*the\ am__doit\ target*)
3285 am__include=include
3286 am__quote=
3287 _am_result=GNU
3288 ;;
3289esac
3290# Now try BSD make style include.
3291if test "$am__include" = "#"; then
3292 echo '.include "confinc"' > confmf
3293 case `$am_make -s -f confmf 2> /dev/null` in #(
3294 *the\ am__doit\ target*)
3295 am__include=.include
3296 am__quote="\""
3297 _am_result=BSD
3298 ;;
3299 esac
3300fi
3301
3302
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3304$as_echo "$_am_result" >&6; }
3305rm -f confinc confmf
3306
3307# Check whether --enable-dependency-tracking was given.
3308if test "${enable_dependency_tracking+set}" = set; then :
3309 enableval=$enable_dependency_tracking;
3310fi
3311
3312if test "x$enable_dependency_tracking" != xno; then
3313 am_depcomp="$ac_aux_dir/depcomp"
3314 AMDEPBACKSLASH='\'
3315 am__nodep='_no'
3316fi
3317 if test "x$enable_dependency_tracking" != xno; then
3318 AMDEP_TRUE=
3319 AMDEP_FALSE='#'
3320else
3321 AMDEP_TRUE='#'
3322 AMDEP_FALSE=
3323fi
3324
3325
Jeff Thompson36174062013-06-21 16:03:44 -07003326ac_ext=c
3327ac_cpp='$CPP $CPPFLAGS'
3328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331if test -n "$ac_tool_prefix"; then
3332 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3333set dummy ${ac_tool_prefix}gcc; ac_word=$2
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335$as_echo_n "checking for $ac_word... " >&6; }
3336if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353done
3354 done
3355IFS=$as_save_IFS
3356
3357fi
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362$as_echo "$CC" >&6; }
3363else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366fi
3367
3368
3369fi
3370if test -z "$ac_cv_prog_CC"; then
3371 ac_ct_CC=$CC
3372 # Extract the first word of "gcc", so it can be a program name with args.
3373set dummy gcc; ac_word=$2
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375$as_echo_n "checking for $ac_word... " >&6; }
3376if ${ac_cv_prog_ac_ct_CC+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378else
3379 if test -n "$ac_ct_CC"; then
3380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3381else
3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383for as_dir in $PATH
3384do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_ac_ct_CC="gcc"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393done
3394 done
3395IFS=$as_save_IFS
3396
3397fi
3398fi
3399ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400if test -n "$ac_ct_CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3402$as_echo "$ac_ct_CC" >&6; }
3403else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405$as_echo "no" >&6; }
3406fi
3407
3408 if test "x$ac_ct_CC" = x; then
3409 CC=""
3410 else
3411 case $cross_compiling:$ac_tool_warned in
3412yes:)
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415ac_tool_warned=yes ;;
3416esac
3417 CC=$ac_ct_CC
3418 fi
3419else
3420 CC="$ac_cv_prog_CC"
3421fi
3422
3423if test -z "$CC"; then
3424 if test -n "$ac_tool_prefix"; then
3425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3426set dummy ${ac_tool_prefix}cc; ac_word=$2
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428$as_echo_n "checking for $ac_word... " >&6; }
3429if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431else
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="${ac_tool_prefix}cc"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446done
3447 done
3448IFS=$as_save_IFS
3449
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455$as_echo "$CC" >&6; }
3456else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
3459fi
3460
3461
3462 fi
3463fi
3464if test -z "$CC"; then
3465 # Extract the first word of "cc", so it can be a program name with args.
3466set dummy cc; ac_word=$2
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468$as_echo_n "checking for $ac_word... " >&6; }
3469if ${ac_cv_prog_CC+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471else
3472 if test -n "$CC"; then
3473 ac_cv_prog_CC="$CC" # Let the user override the test.
3474else
3475 ac_prog_rejected=no
3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477for as_dir in $PATH
3478do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3484 ac_prog_rejected=yes
3485 continue
3486 fi
3487 ac_cv_prog_CC="cc"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491done
3492 done
3493IFS=$as_save_IFS
3494
3495if test $ac_prog_rejected = yes; then
3496 # We found a bogon in the path, so make sure we never use it.
3497 set dummy $ac_cv_prog_CC
3498 shift
3499 if test $# != 0; then
3500 # We chose a different compiler from the bogus one.
3501 # However, it has the same basename, so the bogon will be chosen
3502 # first if we set CC to just the basename; use the full file name.
3503 shift
3504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3505 fi
3506fi
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512$as_echo "$CC" >&6; }
3513else
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516fi
3517
3518
3519fi
3520if test -z "$CC"; then
3521 if test -n "$ac_tool_prefix"; then
3522 for ac_prog in cl.exe
3523 do
3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527$as_echo_n "checking for $ac_word... " >&6; }
3528if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545done
3546 done
3547IFS=$as_save_IFS
3548
3549fi
3550fi
3551CC=$ac_cv_prog_CC
3552if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554$as_echo "$CC" >&6; }
3555else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558fi
3559
3560
3561 test -n "$CC" && break
3562 done
3563fi
3564if test -z "$CC"; then
3565 ac_ct_CC=$CC
3566 for ac_prog in cl.exe
3567do
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569set dummy $ac_prog; ac_word=$2
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571$as_echo_n "checking for $ac_word... " >&6; }
3572if ${ac_cv_prog_ac_ct_CC+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574else
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CC="$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589done
3590 done
3591IFS=$as_save_IFS
3592
3593fi
3594fi
3595ac_ct_CC=$ac_cv_prog_ac_ct_CC
3596if test -n "$ac_ct_CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598$as_echo "$ac_ct_CC" >&6; }
3599else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601$as_echo "no" >&6; }
3602fi
3603
3604
3605 test -n "$ac_ct_CC" && break
3606done
3607
3608 if test "x$ac_ct_CC" = x; then
3609 CC=""
3610 else
3611 case $cross_compiling:$ac_tool_warned in
3612yes:)
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615ac_tool_warned=yes ;;
3616esac
3617 CC=$ac_ct_CC
3618 fi
3619fi
3620
3621fi
3622
3623
3624test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626as_fn_error $? "no acceptable C compiler found in \$PATH
3627See \`config.log' for more details" "$LINENO" 5; }
3628
3629# Provide some information about the compiler.
3630$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3631set X $ac_compile
3632ac_compiler=$2
3633for ac_option in --version -v -V -qversion; do
3634 { { ac_try="$ac_compiler $ac_option >&5"
3635case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638esac
3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640$as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3642 ac_status=$?
3643 if test -s conftest.err; then
3644 sed '10a\
3645... rest of stderr output deleted ...
3646 10q' conftest.err >conftest.er1
3647 cat conftest.er1 >&5
3648 fi
3649 rm -f conftest.er1 conftest.err
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652done
3653
Jeff Thompson4f031642013-08-05 11:03:16 -07003654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h. */
3656
3657int
3658main ()
3659{
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665ac_clean_files_save=$ac_clean_files
3666ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3667# Try to create an executable without -o first, disregard a.out.
3668# It will help us diagnose broken compilers, and finding out an intuition
3669# of exeext.
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3671$as_echo_n "checking whether the C compiler works... " >&6; }
3672ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3673
3674# The possible output files:
3675ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3676
3677ac_rmfiles=
3678for ac_file in $ac_files
3679do
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3682 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3683 esac
3684done
3685rm -f $ac_rmfiles
3686
3687if { { ac_try="$ac_link_default"
3688case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693$as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link_default") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3699# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3700# in a Makefile. We should not override ac_cv_exeext if it was cached,
3701# so that the user can short-circuit this test for compilers unknown to
3702# Autoconf.
3703for ac_file in $ac_files ''
3704do
3705 test -f "$ac_file" || continue
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3708 ;;
3709 [ab].out )
3710 # We found the default executable, but exeext='' is most
3711 # certainly right.
3712 break;;
3713 *.* )
3714 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3715 then :; else
3716 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717 fi
3718 # We set ac_cv_exeext here because the later test for it is not
3719 # safe: cross compilers may not add the suffix if given an `-o'
3720 # argument, so we may need to know it at that point already.
3721 # Even if this section looks crufty: it has the advantage of
3722 # actually working.
3723 break;;
3724 * )
3725 break;;
3726 esac
3727done
3728test "$ac_cv_exeext" = no && ac_cv_exeext=
3729
3730else
3731 ac_file=''
3732fi
3733if test -z "$ac_file"; then :
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735$as_echo "no" >&6; }
3736$as_echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741as_fn_error 77 "C compiler cannot create executables
3742See \`config.log' for more details" "$LINENO" 5; }
3743else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3745$as_echo "yes" >&6; }
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3748$as_echo_n "checking for C compiler default output file name... " >&6; }
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3750$as_echo "$ac_file" >&6; }
3751ac_exeext=$ac_cv_exeext
3752
3753rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3754ac_clean_files=$ac_clean_files_save
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3756$as_echo_n "checking for suffix of executables... " >&6; }
3757if { { ac_try="$ac_link"
3758case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761esac
3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763$as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_link") 2>&5
3765 ac_status=$?
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3769# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3770# work properly (i.e., refer to `conftest.exe'), while it won't with
3771# `rm'.
3772for ac_file in conftest.exe conftest conftest.*; do
3773 test -f "$ac_file" || continue
3774 case $ac_file in
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3777 break;;
3778 * ) break;;
3779 esac
3780done
3781else
3782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3785See \`config.log' for more details" "$LINENO" 5; }
3786fi
3787rm -f conftest conftest$ac_cv_exeext
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3789$as_echo "$ac_cv_exeext" >&6; }
3790
3791rm -f conftest.$ac_ext
3792EXEEXT=$ac_cv_exeext
3793ac_exeext=$EXEEXT
3794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h. */
3796#include <stdio.h>
3797int
3798main ()
3799{
3800FILE *f = fopen ("conftest.out", "w");
3801 return ferror (f) || fclose (f) != 0;
3802
3803 ;
3804 return 0;
3805}
3806_ACEOF
3807ac_clean_files="$ac_clean_files conftest.out"
3808# Check that the compiler produces executables we can run. If not, either
3809# the compiler is broken, or we cross compile.
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3811$as_echo_n "checking whether we are cross compiling... " >&6; }
3812if test "$cross_compiling" != yes; then
3813 { { ac_try="$ac_link"
3814case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817esac
3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819$as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link") 2>&5
3821 ac_status=$?
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }
3824 if { ac_try='./conftest$ac_cv_exeext'
3825 { { case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828esac
3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830$as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_try") 2>&5
3832 ac_status=$?
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; }; then
3835 cross_compiling=no
3836 else
3837 if test "$cross_compiling" = maybe; then
3838 cross_compiling=yes
3839 else
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842as_fn_error $? "cannot run C compiled programs.
3843If you meant to cross compile, use \`--host'.
3844See \`config.log' for more details" "$LINENO" 5; }
3845 fi
3846 fi
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3849$as_echo "$cross_compiling" >&6; }
3850
3851rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3852ac_clean_files=$ac_clean_files_save
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3854$as_echo_n "checking for suffix of object files... " >&6; }
3855if ${ac_cv_objext+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857else
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h. */
3860
3861int
3862main ()
3863{
3864
3865 ;
3866 return 0;
3867}
3868_ACEOF
3869rm -f conftest.o conftest.obj
3870if { { ac_try="$ac_compile"
3871case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874esac
3875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876$as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_compile") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 for ac_file in conftest.o conftest.obj conftest.*; do
3882 test -f "$ac_file" || continue;
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3886 break;;
3887 esac
3888done
3889else
3890 $as_echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895as_fn_error $? "cannot compute suffix of object files: cannot compile
3896See \`config.log' for more details" "$LINENO" 5; }
3897fi
3898rm -f conftest.$ac_cv_objext conftest.$ac_ext
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3901$as_echo "$ac_cv_objext" >&6; }
3902OBJEXT=$ac_cv_objext
3903ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3905$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3906if ${ac_cv_c_compiler_gnu+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908else
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h. */
3911
3912int
3913main ()
3914{
3915#ifndef __GNUC__
3916 choke me
3917#endif
3918
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_compiler_gnu=yes
3925else
3926 ac_compiler_gnu=no
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929ac_cv_c_compiler_gnu=$ac_compiler_gnu
3930
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3933$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3934if test $ac_compiler_gnu = yes; then
3935 GCC=yes
3936else
3937 GCC=
3938fi
3939ac_test_CFLAGS=${CFLAGS+set}
3940ac_save_CFLAGS=$CFLAGS
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3942$as_echo_n "checking whether $CC accepts -g... " >&6; }
3943if ${ac_cv_prog_cc_g+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945else
3946 ac_save_c_werror_flag=$ac_c_werror_flag
3947 ac_c_werror_flag=yes
3948 ac_cv_prog_cc_g=no
3949 CFLAGS="-g"
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_cv_prog_cc_g=yes
3963else
3964 CFLAGS=""
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966/* end confdefs.h. */
3967
3968int
3969main ()
3970{
3971
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976if ac_fn_c_try_compile "$LINENO"; then :
3977
3978else
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3980 CFLAGS="-g"
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h. */
3983
3984int
3985main ()
3986{
3987
3988 ;
3989 return 0;
3990}
3991_ACEOF
3992if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_cv_prog_cc_g=yes
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996fi
3997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998fi
3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 ac_c_werror_flag=$ac_save_c_werror_flag
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4003$as_echo "$ac_cv_prog_cc_g" >&6; }
4004if test "$ac_test_CFLAGS" = set; then
4005 CFLAGS=$ac_save_CFLAGS
4006elif test $ac_cv_prog_cc_g = yes; then
4007 if test "$GCC" = yes; then
4008 CFLAGS="-g -O2"
4009 else
4010 CFLAGS="-g"
4011 fi
4012else
4013 if test "$GCC" = yes; then
4014 CFLAGS="-O2"
4015 else
4016 CFLAGS=
4017 fi
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4020$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4021if ${ac_cv_prog_cc_c89+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023else
4024 ac_cv_prog_cc_c89=no
4025ac_save_CC=$CC
4026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028#include <stdarg.h>
4029#include <stdio.h>
4030struct stat;
4031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4032struct buf { int x; };
4033FILE * (*rcsopen) (struct buf *, struct stat *, int);
4034static char *e (p, i)
4035 char **p;
4036 int i;
4037{
4038 return p[i];
4039}
4040static char *f (char * (*g) (char **, int), char **p, ...)
4041{
4042 char *s;
4043 va_list v;
4044 va_start (v,p);
4045 s = g (p, va_arg (v,int));
4046 va_end (v);
4047 return s;
4048}
4049
4050/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4051 function prototypes and stuff, but not '\xHH' hex character constants.
4052 These don't provoke an error unfortunately, instead are silently treated
4053 as 'x'. The following induces an error, until -std is added to get
4054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4055 array size at least. It's necessary to write '\x00'==0 to get something
4056 that's true only with -std. */
4057int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4058
4059/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4060 inside strings and character constants. */
4061#define FOO(x) 'x'
4062int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4063
4064int test (int i, double x);
4065struct s1 {int (*f) (int a);};
4066struct s2 {int (*f) (double a);};
4067int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4068int argc;
4069char **argv;
4070int
4071main ()
4072{
4073return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4080do
4081 CC="$ac_save_CC $ac_arg"
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_prog_cc_c89=$ac_arg
4084fi
4085rm -f core conftest.err conftest.$ac_objext
4086 test "x$ac_cv_prog_cc_c89" != "xno" && break
4087done
4088rm -f conftest.$ac_ext
4089CC=$ac_save_CC
4090
4091fi
4092# AC_CACHE_VAL
4093case "x$ac_cv_prog_cc_c89" in
4094 x)
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4096$as_echo "none needed" >&6; } ;;
4097 xno)
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4099$as_echo "unsupported" >&6; } ;;
4100 *)
4101 CC="$CC $ac_cv_prog_cc_c89"
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4103$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4104esac
4105if test "x$ac_cv_prog_cc_c89" != xno; then :
4106
4107fi
4108
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004109ac_ext=c
4110ac_cpp='$CPP $CPPFLAGS'
4111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004114
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4121$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4122if ${am_cv_prog_cc_c_o+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124else
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
4127
4128int
4129main ()
4130{
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136 # Make sure it works both with $CC and with simple cc.
4137 # Following AC_PROG_CC_C_O, we do the test twice because some
4138 # compilers refuse to overwrite an existing .o file with -o,
4139 # though they will create one.
4140 am_cv_prog_cc_c_o=yes
4141 for am_i in 1 2; do
4142 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4143 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } \
4147 && test -f conftest2.$ac_objext; then
4148 : OK
4149 else
4150 am_cv_prog_cc_c_o=no
4151 break
4152 fi
4153 done
4154 rm -f core conftest*
4155 unset am_i
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4158$as_echo "$am_cv_prog_cc_c_o" >&6; }
4159if test "$am_cv_prog_cc_c_o" != yes; then
4160 # Losing compiler, so override with the script.
4161 # FIXME: It is wrong to rewrite CC.
4162 # But if we don't then we get into trouble of one sort or another.
4163 # A longer-term fix would be to have automake use am__CC in this case,
4164 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4165 CC="$am_aux_dir/compile $CC"
4166fi
4167ac_ext=c
4168ac_cpp='$CPP $CPPFLAGS'
4169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172
4173
Jeff Thompson36174062013-06-21 16:03:44 -07004174depcc="$CC" am_compiler_list=
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4177$as_echo_n "checking dependency style of $depcc... " >&6; }
4178if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180else
4181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4182 # We make a subdir and do the tests there. Otherwise we can end up
4183 # making bogus files that we don't know about and never remove. For
4184 # instance it was reported that on HP-UX the gcc test will end up
4185 # making a dummy file named 'D' -- because '-MD' means "put the output
4186 # in D".
4187 rm -rf conftest.dir
4188 mkdir conftest.dir
4189 # Copy depcomp to subdir because otherwise we won't find it if we're
4190 # using a relative directory.
4191 cp "$am_depcomp" conftest.dir
4192 cd conftest.dir
4193 # We will build objects and dependencies in a subdirectory because
4194 # it helps to detect inapplicable dependency modes. For instance
4195 # both Tru64's cc and ICC support -MD to output dependencies as a
4196 # side effect of compilation, but ICC will put the dependencies in
4197 # the current directory while Tru64 will put them in the object
4198 # directory.
4199 mkdir sub
4200
4201 am_cv_CC_dependencies_compiler_type=none
4202 if test "$am_compiler_list" = ""; then
4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4204 fi
4205 am__universal=false
4206 case " $depcc " in #(
4207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4208 esac
4209
4210 for depmode in $am_compiler_list; do
4211 # Setup a source with many dependencies, because some compilers
4212 # like to wrap large dependency lists on column 80 (with \), and
4213 # we should not choose a depcomp mode which is confused by this.
4214 #
4215 # We need to recreate these files for each test, as the compiler may
4216 # overwrite some of them when testing with obscure command lines.
4217 # This happens at least with the AIX C compiler.
4218 : > sub/conftest.c
4219 for i in 1 2 3 4 5 6; do
4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4221 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4222 # Solaris 10 /bin/sh.
4223 echo '/* dummy */' > sub/conftst$i.h
4224 done
4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4226
4227 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4228 # mode. It turns out that the SunPro C++ compiler does not properly
4229 # handle '-M -o', and we need to detect this. Also, some Intel
4230 # versions had trouble with output in subdirs.
4231 am__obj=sub/conftest.${OBJEXT-o}
4232 am__minus_obj="-o $am__obj"
4233 case $depmode in
4234 gcc)
4235 # This depmode causes a compiler race in universal mode.
4236 test "$am__universal" = false || continue
4237 ;;
4238 nosideeffect)
4239 # After this tag, mechanisms are not by side-effect, so they'll
4240 # only be used when explicitly requested.
4241 if test "x$enable_dependency_tracking" = xyes; then
4242 continue
4243 else
4244 break
4245 fi
4246 ;;
4247 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4248 # This compiler won't grok '-c -o', but also, the minuso test has
4249 # not run yet. These depmodes are late enough in the game, and
4250 # so weak that their functioning should not be impacted.
4251 am__obj=conftest.${OBJEXT-o}
4252 am__minus_obj=
4253 ;;
4254 none) break ;;
4255 esac
4256 if depmode=$depmode \
4257 source=sub/conftest.c object=$am__obj \
4258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4260 >/dev/null 2>conftest.err &&
4261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265 # icc doesn't choke on unknown options, it will just issue warnings
4266 # or remarks (even with -Werror). So we grep stderr for any message
4267 # that says an option was ignored or not supported.
4268 # When given -MP, icc 7.0 and 7.1 complain thusly:
4269 # icc: Command line warning: ignoring option '-M'; no argument required
4270 # The diagnosis changed in icc 8.0:
4271 # icc: Command line remark: option '-MP' not supported
4272 if (grep 'ignoring option' conftest.err ||
4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274 am_cv_CC_dependencies_compiler_type=$depmode
4275 break
4276 fi
4277 fi
4278 done
4279
4280 cd ..
4281 rm -rf conftest.dir
4282else
4283 am_cv_CC_dependencies_compiler_type=none
4284fi
4285
4286fi
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4288$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4289CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4290
4291 if
4292 test "x$enable_dependency_tracking" != xno \
4293 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4294 am__fastdepCC_TRUE=
4295 am__fastdepCC_FALSE='#'
4296else
4297 am__fastdepCC_TRUE='#'
4298 am__fastdepCC_FALSE=
4299fi
4300
4301
Jeff Thompson36174062013-06-21 16:03:44 -07004302
4303if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004304 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004305 do
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309$as_echo_n "checking for $ac_word... " >&6; }
4310if ${ac_cv_prog_AR+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312else
4313 if test -n "$AR"; then
4314 ac_cv_prog_AR="$AR" # Let the user override the test.
4315else
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327done
4328 done
4329IFS=$as_save_IFS
4330
4331fi
4332fi
4333AR=$ac_cv_prog_AR
4334if test -n "$AR"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4336$as_echo "$AR" >&6; }
4337else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339$as_echo "no" >&6; }
4340fi
4341
4342
4343 test -n "$AR" && break
4344 done
4345fi
4346if test -z "$AR"; then
4347 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004348 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004349do
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351set dummy $ac_prog; ac_word=$2
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353$as_echo_n "checking for $ac_word... " >&6; }
4354if ${ac_cv_prog_ac_ct_AR+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356else
4357 if test -n "$ac_ct_AR"; then
4358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_ac_ct_AR="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371done
4372 done
4373IFS=$as_save_IFS
4374
4375fi
4376fi
4377ac_ct_AR=$ac_cv_prog_ac_ct_AR
4378if test -n "$ac_ct_AR"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4380$as_echo "$ac_ct_AR" >&6; }
4381else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383$as_echo "no" >&6; }
4384fi
4385
4386
4387 test -n "$ac_ct_AR" && break
4388done
4389
4390 if test "x$ac_ct_AR" = x; then
4391 AR="false"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394yes:)
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397ac_tool_warned=yes ;;
4398esac
4399 AR=$ac_ct_AR
4400 fi
4401fi
4402
4403: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07004404
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4406$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4407if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07004408 $as_echo_n "(cached) " >&6
4409else
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004410 ac_ext=c
4411ac_cpp='$CPP $CPPFLAGS'
4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07004417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004419int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004420_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004421if ac_fn_c_try_compile "$LINENO"; then :
4422 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4424 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004429 am_cv_ar_interface=ar
4430 else
4431 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4433 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004434 ac_status=$?
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004437 if test "$ac_status" -eq 0; then
4438 am_cv_ar_interface=lib
4439 else
4440 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004441 fi
4442 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004443 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004444
4445fi
4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004447 ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004452
4453fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4455$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004456
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004457case $am_cv_ar_interface in
4458ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004459 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004460lib)
4461 # Microsoft lib, so override with the ar-lib wrapper script.
4462 # FIXME: It is wrong to rewrite AR.
4463 # But if we don't then we get into trouble of one sort or another.
4464 # A longer-term fix would be to have automake use am__AR in this case,
4465 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4466 # similar.
4467 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004468 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004469unknown)
4470 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004471 ;;
4472esac
4473
Jeff Thompson4f031642013-08-05 11:03:16 -07004474case `pwd` in
4475 *\ * | *\ *)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4477$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4478esac
4479
4480
4481
4482macro_version='2.4.2'
4483macro_revision='1.3337'
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497ltmain="$ac_aux_dir/ltmain.sh"
4498
4499# Make sure we can run config.sub.
4500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4501 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4504$as_echo_n "checking build system type... " >&6; }
4505if ${ac_cv_build+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507else
4508 ac_build_alias=$build_alias
4509test "x$ac_build_alias" = x &&
4510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4511test "x$ac_build_alias" = x &&
4512 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4515
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4518$as_echo "$ac_cv_build" >&6; }
4519case $ac_cv_build in
4520*-*-*) ;;
4521*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4522esac
4523build=$ac_cv_build
4524ac_save_IFS=$IFS; IFS='-'
4525set x $ac_cv_build
4526shift
4527build_cpu=$1
4528build_vendor=$2
4529shift; shift
4530# Remember, the first character of IFS is used to create $*,
4531# except with old shells:
4532build_os=$*
4533IFS=$ac_save_IFS
4534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4535
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4538$as_echo_n "checking host system type... " >&6; }
4539if ${ac_cv_host+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541else
4542 if test "x$host_alias" = x; then
4543 ac_cv_host=$ac_cv_build
4544else
4545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4547fi
4548
4549fi
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4551$as_echo "$ac_cv_host" >&6; }
4552case $ac_cv_host in
4553*-*-*) ;;
4554*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4555esac
4556host=$ac_cv_host
4557ac_save_IFS=$IFS; IFS='-'
4558set x $ac_cv_host
4559shift
4560host_cpu=$1
4561host_vendor=$2
4562shift; shift
4563# Remember, the first character of IFS is used to create $*,
4564# except with old shells:
4565host_os=$*
4566IFS=$ac_save_IFS
4567case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4568
4569
4570# Backslashify metacharacters that are still active within
4571# double-quoted strings.
4572sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4573
4574# Same as above, but do not quote variable references.
4575double_quote_subst='s/\(["`\\]\)/\\\1/g'
4576
4577# Sed substitution to delay expansion of an escaped shell variable in a
4578# double_quote_subst'ed string.
4579delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4580
4581# Sed substitution to delay expansion of an escaped single quote.
4582delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4583
4584# Sed substitution to avoid accidental globbing in evaled expressions
4585no_glob_subst='s/\*/\\\*/g'
4586
4587ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4588ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4589ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4590
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4592$as_echo_n "checking how to print strings... " >&6; }
4593# Test print first, because it will be a builtin if present.
4594if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4595 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4596 ECHO='print -r --'
4597elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4598 ECHO='printf %s\n'
4599else
4600 # Use this function as a fallback that always works.
4601 func_fallback_echo ()
4602 {
4603 eval 'cat <<_LTECHO_EOF
4604$1
4605_LTECHO_EOF'
4606 }
4607 ECHO='func_fallback_echo'
4608fi
4609
4610# func_echo_all arg...
4611# Invoke $ECHO with all args, space-separated.
4612func_echo_all ()
4613{
4614 $ECHO ""
4615}
4616
4617case "$ECHO" in
4618 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4619$as_echo "printf" >&6; } ;;
4620 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4621$as_echo "print -r" >&6; } ;;
4622 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4623$as_echo "cat" >&6; } ;;
4624esac
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4640$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4641if ${ac_cv_path_SED+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643else
4644 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4645 for ac_i in 1 2 3 4 5 6 7; do
4646 ac_script="$ac_script$as_nl$ac_script"
4647 done
4648 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4649 { ac_script=; unset ac_script;}
4650 if test -z "$SED"; then
4651 ac_path_SED_found=false
4652 # Loop through the user's path and test for each of PROGNAME-LIST
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_prog in sed gsed; do
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4661 as_fn_executable_p "$ac_path_SED" || continue
4662# Check for GNU ac_path_SED and select it if it is found.
4663 # Check for GNU $ac_path_SED
4664case `"$ac_path_SED" --version 2>&1` in
4665*GNU*)
4666 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4667*)
4668 ac_count=0
4669 $as_echo_n 0123456789 >"conftest.in"
4670 while :
4671 do
4672 cat "conftest.in" "conftest.in" >"conftest.tmp"
4673 mv "conftest.tmp" "conftest.in"
4674 cp "conftest.in" "conftest.nl"
4675 $as_echo '' >> "conftest.nl"
4676 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4678 as_fn_arith $ac_count + 1 && ac_count=$as_val
4679 if test $ac_count -gt ${ac_path_SED_max-0}; then
4680 # Best one so far, save it but keep looking for a better one
4681 ac_cv_path_SED="$ac_path_SED"
4682 ac_path_SED_max=$ac_count
4683 fi
4684 # 10*(2^10) chars as input seems more than enough
4685 test $ac_count -gt 10 && break
4686 done
4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688esac
4689
4690 $ac_path_SED_found && break 3
4691 done
4692 done
4693 done
4694IFS=$as_save_IFS
4695 if test -z "$ac_cv_path_SED"; then
4696 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4697 fi
4698else
4699 ac_cv_path_SED=$SED
4700fi
4701
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4704$as_echo "$ac_cv_path_SED" >&6; }
4705 SED="$ac_cv_path_SED"
4706 rm -f conftest.sed
4707
4708test -z "$SED" && SED=sed
4709Xsed="$SED -e 1s/^X//"
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4722$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4723if ${ac_cv_path_GREP+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725else
4726 if test -z "$GREP"; then
4727 ac_path_GREP_found=false
4728 # Loop through the user's path and test for each of PROGNAME-LIST
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_prog in grep ggrep; do
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4737 as_fn_executable_p "$ac_path_GREP" || continue
4738# Check for GNU ac_path_GREP and select it if it is found.
4739 # Check for GNU $ac_path_GREP
4740case `"$ac_path_GREP" --version 2>&1` in
4741*GNU*)
4742 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4743*)
4744 ac_count=0
4745 $as_echo_n 0123456789 >"conftest.in"
4746 while :
4747 do
4748 cat "conftest.in" "conftest.in" >"conftest.tmp"
4749 mv "conftest.tmp" "conftest.in"
4750 cp "conftest.in" "conftest.nl"
4751 $as_echo 'GREP' >> "conftest.nl"
4752 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4754 as_fn_arith $ac_count + 1 && ac_count=$as_val
4755 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4756 # Best one so far, save it but keep looking for a better one
4757 ac_cv_path_GREP="$ac_path_GREP"
4758 ac_path_GREP_max=$ac_count
4759 fi
4760 # 10*(2^10) chars as input seems more than enough
4761 test $ac_count -gt 10 && break
4762 done
4763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764esac
4765
4766 $ac_path_GREP_found && break 3
4767 done
4768 done
4769 done
4770IFS=$as_save_IFS
4771 if test -z "$ac_cv_path_GREP"; then
4772 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773 fi
4774else
4775 ac_cv_path_GREP=$GREP
4776fi
4777
4778fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4780$as_echo "$ac_cv_path_GREP" >&6; }
4781 GREP="$ac_cv_path_GREP"
4782
4783
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4785$as_echo_n "checking for egrep... " >&6; }
4786if ${ac_cv_path_EGREP+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788else
4789 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4790 then ac_cv_path_EGREP="$GREP -E"
4791 else
4792 if test -z "$EGREP"; then
4793 ac_path_EGREP_found=false
4794 # Loop through the user's path and test for each of PROGNAME-LIST
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4797do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_prog in egrep; do
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4803 as_fn_executable_p "$ac_path_EGREP" || continue
4804# Check for GNU ac_path_EGREP and select it if it is found.
4805 # Check for GNU $ac_path_EGREP
4806case `"$ac_path_EGREP" --version 2>&1` in
4807*GNU*)
4808 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4809*)
4810 ac_count=0
4811 $as_echo_n 0123456789 >"conftest.in"
4812 while :
4813 do
4814 cat "conftest.in" "conftest.in" >"conftest.tmp"
4815 mv "conftest.tmp" "conftest.in"
4816 cp "conftest.in" "conftest.nl"
4817 $as_echo 'EGREP' >> "conftest.nl"
4818 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820 as_fn_arith $ac_count + 1 && ac_count=$as_val
4821 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4822 # Best one so far, save it but keep looking for a better one
4823 ac_cv_path_EGREP="$ac_path_EGREP"
4824 ac_path_EGREP_max=$ac_count
4825 fi
4826 # 10*(2^10) chars as input seems more than enough
4827 test $ac_count -gt 10 && break
4828 done
4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830esac
4831
4832 $ac_path_EGREP_found && break 3
4833 done
4834 done
4835 done
4836IFS=$as_save_IFS
4837 if test -z "$ac_cv_path_EGREP"; then
4838 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4839 fi
4840else
4841 ac_cv_path_EGREP=$EGREP
4842fi
4843
4844 fi
4845fi
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4847$as_echo "$ac_cv_path_EGREP" >&6; }
4848 EGREP="$ac_cv_path_EGREP"
4849
4850
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4852$as_echo_n "checking for fgrep... " >&6; }
4853if ${ac_cv_path_FGREP+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4857 then ac_cv_path_FGREP="$GREP -F"
4858 else
4859 if test -z "$FGREP"; then
4860 ac_path_FGREP_found=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_prog in fgrep; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4870 as_fn_executable_p "$ac_path_FGREP" || continue
4871# Check for GNU ac_path_FGREP and select it if it is found.
4872 # Check for GNU $ac_path_FGREP
4873case `"$ac_path_FGREP" --version 2>&1` in
4874*GNU*)
4875 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4876*)
4877 ac_count=0
4878 $as_echo_n 0123456789 >"conftest.in"
4879 while :
4880 do
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo 'FGREP' >> "conftest.nl"
4885 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887 as_fn_arith $ac_count + 1 && ac_count=$as_val
4888 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_FGREP="$ac_path_FGREP"
4891 ac_path_FGREP_max=$ac_count
4892 fi
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4895 done
4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897esac
4898
4899 $ac_path_FGREP_found && break 3
4900 done
4901 done
4902 done
4903IFS=$as_save_IFS
4904 if test -z "$ac_cv_path_FGREP"; then
4905 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906 fi
4907else
4908 ac_cv_path_FGREP=$FGREP
4909fi
4910
4911 fi
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4914$as_echo "$ac_cv_path_FGREP" >&6; }
4915 FGREP="$ac_cv_path_FGREP"
4916
4917
4918test -z "$GREP" && GREP=grep
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938# Check whether --with-gnu-ld was given.
4939if test "${with_gnu_ld+set}" = set; then :
4940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4941else
4942 with_gnu_ld=no
4943fi
4944
4945ac_prog=ld
4946if test "$GCC" = yes; then
4947 # Check if gcc -print-prog-name=ld gives a path.
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4949$as_echo_n "checking for ld used by $CC... " >&6; }
4950 case $host in
4951 *-*-mingw*)
4952 # gcc leaves a trailing carriage return which upsets mingw
4953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4954 *)
4955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4956 esac
4957 case $ac_prog in
4958 # Accept absolute paths.
4959 [\\/]* | ?:[\\/]*)
4960 re_direlt='/[^/][^/]*/\.\./'
4961 # Canonicalize the pathname of ld
4962 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4963 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4964 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4965 done
4966 test -z "$LD" && LD="$ac_prog"
4967 ;;
4968 "")
4969 # If it fails, then pretend we aren't using GCC.
4970 ac_prog=ld
4971 ;;
4972 *)
4973 # If it is relative, then search for the first ld in PATH.
4974 with_gnu_ld=unknown
4975 ;;
4976 esac
4977elif test "$with_gnu_ld" = yes; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4979$as_echo_n "checking for GNU ld... " >&6; }
4980else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4982$as_echo_n "checking for non-GNU ld... " >&6; }
4983fi
4984if ${lt_cv_path_LD+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986else
4987 if test -z "$LD"; then
4988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4989 for ac_dir in $PATH; do
4990 IFS="$lt_save_ifs"
4991 test -z "$ac_dir" && ac_dir=.
4992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4993 lt_cv_path_LD="$ac_dir/$ac_prog"
4994 # Check to see if the program is GNU ld. I'd rather use --version,
4995 # but apparently some variants of GNU ld only accept -v.
4996 # Break only if it was the GNU/non-GNU ld that we prefer.
4997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4998 *GNU* | *'with BFD'*)
4999 test "$with_gnu_ld" != no && break
5000 ;;
5001 *)
5002 test "$with_gnu_ld" != yes && break
5003 ;;
5004 esac
5005 fi
5006 done
5007 IFS="$lt_save_ifs"
5008else
5009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5010fi
5011fi
5012
5013LD="$lt_cv_path_LD"
5014if test -n "$LD"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5016$as_echo "$LD" >&6; }
5017else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019$as_echo "no" >&6; }
5020fi
5021test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5023$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5024if ${lt_cv_prog_gnu_ld+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5028case `$LD -v 2>&1 </dev/null` in
5029*GNU* | *'with BFD'*)
5030 lt_cv_prog_gnu_ld=yes
5031 ;;
5032*)
5033 lt_cv_prog_gnu_ld=no
5034 ;;
5035esac
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5038$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5039with_gnu_ld=$lt_cv_prog_gnu_ld
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5050$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5051if ${lt_cv_path_NM+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053else
5054 if test -n "$NM"; then
5055 # Let the user override the test.
5056 lt_cv_path_NM="$NM"
5057else
5058 lt_nm_to_check="${ac_tool_prefix}nm"
5059 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5060 lt_nm_to_check="$lt_nm_to_check nm"
5061 fi
5062 for lt_tmp_nm in $lt_nm_to_check; do
5063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5065 IFS="$lt_save_ifs"
5066 test -z "$ac_dir" && ac_dir=.
5067 tmp_nm="$ac_dir/$lt_tmp_nm"
5068 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069 # Check to see if the nm accepts a BSD-compat flag.
5070 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5071 # nm: unknown option "B" ignored
5072 # Tru64's nm complains that /dev/null is an invalid object file
5073 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5074 */dev/null* | *'Invalid file or object type'*)
5075 lt_cv_path_NM="$tmp_nm -B"
5076 break
5077 ;;
5078 *)
5079 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5080 */dev/null*)
5081 lt_cv_path_NM="$tmp_nm -p"
5082 break
5083 ;;
5084 *)
5085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5086 continue # so that we can try to find one that supports BSD flags
5087 ;;
5088 esac
5089 ;;
5090 esac
5091 fi
5092 done
5093 IFS="$lt_save_ifs"
5094 done
5095 : ${lt_cv_path_NM=no}
5096fi
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5099$as_echo "$lt_cv_path_NM" >&6; }
5100if test "$lt_cv_path_NM" != "no"; then
5101 NM="$lt_cv_path_NM"
5102else
5103 # Didn't find any BSD compatible name lister, look for dumpbin.
5104 if test -n "$DUMPBIN"; then :
5105 # Let the user override the test.
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in dumpbin "link -dump"
5109 do
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if ${ac_cv_prog_DUMPBIN+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 if test -n "$DUMPBIN"; then
5118 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132 done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137DUMPBIN=$ac_cv_prog_DUMPBIN
5138if test -n "$DUMPBIN"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5140$as_echo "$DUMPBIN" >&6; }
5141else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147 test -n "$DUMPBIN" && break
5148 done
5149fi
5150if test -z "$DUMPBIN"; then
5151 ac_ct_DUMPBIN=$DUMPBIN
5152 for ac_prog in dumpbin "link -dump"
5153do
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155set dummy $ac_prog; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160else
5161 if test -n "$ac_ct_DUMPBIN"; then
5162 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175done
5176 done
5177IFS=$as_save_IFS
5178
5179fi
5180fi
5181ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5182if test -n "$ac_ct_DUMPBIN"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5184$as_echo "$ac_ct_DUMPBIN" >&6; }
5185else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
5188fi
5189
5190
5191 test -n "$ac_ct_DUMPBIN" && break
5192done
5193
5194 if test "x$ac_ct_DUMPBIN" = x; then
5195 DUMPBIN=":"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198yes:)
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201ac_tool_warned=yes ;;
5202esac
5203 DUMPBIN=$ac_ct_DUMPBIN
5204 fi
5205fi
5206
5207 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5208 *COFF*)
5209 DUMPBIN="$DUMPBIN -symbols"
5210 ;;
5211 *)
5212 DUMPBIN=:
5213 ;;
5214 esac
5215 fi
5216
5217 if test "$DUMPBIN" != ":"; then
5218 NM="$DUMPBIN"
5219 fi
5220fi
5221test -z "$NM" && NM=nm
5222
5223
5224
5225
5226
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5229$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5230if ${lt_cv_nm_interface+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232else
5233 lt_cv_nm_interface="BSD nm"
5234 echo "int some_variable = 0;" > conftest.$ac_ext
5235 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5236 (eval "$ac_compile" 2>conftest.err)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5239 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5240 cat conftest.err >&5
5241 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5242 cat conftest.out >&5
5243 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5244 lt_cv_nm_interface="MS dumpbin"
5245 fi
5246 rm -f conftest*
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5249$as_echo "$lt_cv_nm_interface" >&6; }
5250
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5252$as_echo_n "checking whether ln -s works... " >&6; }
5253LN_S=$as_ln_s
5254if test "$LN_S" = "ln -s"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256$as_echo "yes" >&6; }
5257else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5259$as_echo "no, using $LN_S" >&6; }
5260fi
5261
5262# find the maximum length of command line arguments
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5264$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5265if ${lt_cv_sys_max_cmd_len+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267else
5268 i=0
5269 teststring="ABCD"
5270
5271 case $build_os in
5272 msdosdjgpp*)
5273 # On DJGPP, this test can blow up pretty badly due to problems in libc
5274 # (any single argument exceeding 2000 bytes causes a buffer overrun
5275 # during glob expansion). Even if it were fixed, the result of this
5276 # check would be larger than it should be.
5277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5278 ;;
5279
5280 gnu*)
5281 # Under GNU Hurd, this test is not required because there is
5282 # no limit to the length of command line arguments.
5283 # Libtool will interpret -1 as no limit whatsoever
5284 lt_cv_sys_max_cmd_len=-1;
5285 ;;
5286
5287 cygwin* | mingw* | cegcc*)
5288 # On Win9x/ME, this test blows up -- it succeeds, but takes
5289 # about 5 minutes as the teststring grows exponentially.
5290 # Worse, since 9x/ME are not pre-emptively multitasking,
5291 # you end up with a "frozen" computer, even though with patience
5292 # the test eventually succeeds (with a max line length of 256k).
5293 # Instead, let's just punt: use the minimum linelength reported by
5294 # all of the supported platforms: 8192 (on NT/2K/XP).
5295 lt_cv_sys_max_cmd_len=8192;
5296 ;;
5297
5298 mint*)
5299 # On MiNT this can take a long time and run out of memory.
5300 lt_cv_sys_max_cmd_len=8192;
5301 ;;
5302
5303 amigaos*)
5304 # On AmigaOS with pdksh, this test takes hours, literally.
5305 # So we just punt and use a minimum line length of 8192.
5306 lt_cv_sys_max_cmd_len=8192;
5307 ;;
5308
5309 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5310 # This has been around since 386BSD, at least. Likely further.
5311 if test -x /sbin/sysctl; then
5312 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5313 elif test -x /usr/sbin/sysctl; then
5314 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5315 else
5316 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5317 fi
5318 # And add a safety zone
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5321 ;;
5322
5323 interix*)
5324 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5325 lt_cv_sys_max_cmd_len=196608
5326 ;;
5327
5328 os2*)
5329 # The test takes a long time on OS/2.
5330 lt_cv_sys_max_cmd_len=8192
5331 ;;
5332
5333 osf*)
5334 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5335 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5336 # nice to cause kernel panics so lets avoid the loop below.
5337 # First set a reasonable default.
5338 lt_cv_sys_max_cmd_len=16384
5339 #
5340 if test -x /sbin/sysconfig; then
5341 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5342 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5343 esac
5344 fi
5345 ;;
5346 sco3.2v5*)
5347 lt_cv_sys_max_cmd_len=102400
5348 ;;
5349 sysv5* | sco5v6* | sysv4.2uw2*)
5350 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5351 if test -n "$kargmax"; then
5352 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5353 else
5354 lt_cv_sys_max_cmd_len=32768
5355 fi
5356 ;;
5357 *)
5358 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5359 if test -n "$lt_cv_sys_max_cmd_len"; then
5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5362 else
5363 # Make teststring a little bigger before we do anything with it.
5364 # a 1K string should be a reasonable start.
5365 for i in 1 2 3 4 5 6 7 8 ; do
5366 teststring=$teststring$teststring
5367 done
5368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5369 # If test is not a shell built-in, we'll probably end up computing a
5370 # maximum length that is only half of the actual maximum length, but
5371 # we can't tell.
5372 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5373 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5374 test $i != 17 # 1/2 MB should be enough
5375 do
5376 i=`expr $i + 1`
5377 teststring=$teststring$teststring
5378 done
5379 # Only check the string length outside the loop.
5380 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5381 teststring=
5382 # Add a significant safety factor because C++ compilers can tack on
5383 # massive amounts of additional arguments before passing them to the
5384 # linker. It appears as though 1/2 is a usable value.
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5386 fi
5387 ;;
5388 esac
5389
5390fi
5391
5392if test -n $lt_cv_sys_max_cmd_len ; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5394$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5397$as_echo "none" >&6; }
5398fi
5399max_cmd_len=$lt_cv_sys_max_cmd_len
5400
5401
5402
5403
5404
5405
5406: ${CP="cp -f"}
5407: ${MV="mv -f"}
5408: ${RM="rm -f"}
5409
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5411$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5412# Try some XSI features
5413xsi_shell=no
5414( _lt_dummy="a/b/c"
5415 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5416 = c,a/b,b/c, \
5417 && eval 'test $(( 1 + 1 )) -eq 2 \
5418 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5419 && xsi_shell=yes
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5421$as_echo "$xsi_shell" >&6; }
5422
5423
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5425$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5426lt_shell_append=no
5427( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5428 >/dev/null 2>&1 \
5429 && lt_shell_append=yes
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5431$as_echo "$lt_shell_append" >&6; }
5432
5433
5434if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5435 lt_unset=unset
5436else
5437 lt_unset=false
5438fi
5439
5440
5441
5442
5443
5444# test EBCDIC or ASCII
5445case `echo X|tr X '\101'` in
5446 A) # ASCII based system
5447 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5448 lt_SP2NL='tr \040 \012'
5449 lt_NL2SP='tr \015\012 \040\040'
5450 ;;
5451 *) # EBCDIC based system
5452 lt_SP2NL='tr \100 \n'
5453 lt_NL2SP='tr \r\n \100\100'
5454 ;;
5455esac
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5466$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5467if ${lt_cv_to_host_file_cmd+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469else
5470 case $host in
5471 *-*-mingw* )
5472 case $build in
5473 *-*-mingw* ) # actually msys
5474 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5475 ;;
5476 *-*-cygwin* )
5477 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5478 ;;
5479 * ) # otherwise, assume *nix
5480 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5481 ;;
5482 esac
5483 ;;
5484 *-*-cygwin* )
5485 case $build in
5486 *-*-mingw* ) # actually msys
5487 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5488 ;;
5489 *-*-cygwin* )
5490 lt_cv_to_host_file_cmd=func_convert_file_noop
5491 ;;
5492 * ) # otherwise, assume *nix
5493 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5494 ;;
5495 esac
5496 ;;
5497 * ) # unhandled hosts (and "normal" native builds)
5498 lt_cv_to_host_file_cmd=func_convert_file_noop
5499 ;;
5500esac
5501
5502fi
5503
5504to_host_file_cmd=$lt_cv_to_host_file_cmd
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5506$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5507
5508
5509
5510
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5513$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5514if ${lt_cv_to_tool_file_cmd+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 #assume ordinary cross tools, or native build.
5518lt_cv_to_tool_file_cmd=func_convert_file_noop
5519case $host in
5520 *-*-mingw* )
5521 case $build in
5522 *-*-mingw* ) # actually msys
5523 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5524 ;;
5525 esac
5526 ;;
5527esac
5528
5529fi
5530
5531to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5533$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5534
5535
5536
5537
5538
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5540$as_echo_n "checking for $LD option to reload object files... " >&6; }
5541if ${lt_cv_ld_reload_flag+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543else
5544 lt_cv_ld_reload_flag='-r'
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5547$as_echo "$lt_cv_ld_reload_flag" >&6; }
5548reload_flag=$lt_cv_ld_reload_flag
5549case $reload_flag in
5550"" | " "*) ;;
5551*) reload_flag=" $reload_flag" ;;
5552esac
5553reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554case $host_os in
5555 cygwin* | mingw* | pw32* | cegcc*)
5556 if test "$GCC" != yes; then
5557 reload_cmds=false
5558 fi
5559 ;;
5560 darwin*)
5561 if test "$GCC" = yes; then
5562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5563 else
5564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5565 fi
5566 ;;
5567esac
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5579set dummy ${ac_tool_prefix}objdump; ac_word=$2
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581$as_echo_n "checking for $ac_word... " >&6; }
5582if ${ac_cv_prog_OBJDUMP+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584else
5585 if test -n "$OBJDUMP"; then
5586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599done
5600 done
5601IFS=$as_save_IFS
5602
5603fi
5604fi
5605OBJDUMP=$ac_cv_prog_OBJDUMP
5606if test -n "$OBJDUMP"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5608$as_echo "$OBJDUMP" >&6; }
5609else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614
5615fi
5616if test -z "$ac_cv_prog_OBJDUMP"; then
5617 ac_ct_OBJDUMP=$OBJDUMP
5618 # Extract the first word of "objdump", so it can be a program name with args.
5619set dummy objdump; ac_word=$2
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621$as_echo_n "checking for $ac_word... " >&6; }
5622if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624else
5625 if test -n "$ac_ct_OBJDUMP"; then
5626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639done
5640 done
5641IFS=$as_save_IFS
5642
5643fi
5644fi
5645ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5646if test -n "$ac_ct_OBJDUMP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5648$as_echo "$ac_ct_OBJDUMP" >&6; }
5649else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651$as_echo "no" >&6; }
5652fi
5653
5654 if test "x$ac_ct_OBJDUMP" = x; then
5655 OBJDUMP="false"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661ac_tool_warned=yes ;;
5662esac
5663 OBJDUMP=$ac_ct_OBJDUMP
5664 fi
5665else
5666 OBJDUMP="$ac_cv_prog_OBJDUMP"
5667fi
5668
5669test -z "$OBJDUMP" && OBJDUMP=objdump
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5680$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5681if ${lt_cv_deplibs_check_method+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683else
5684 lt_cv_file_magic_cmd='$MAGIC_CMD'
5685lt_cv_file_magic_test_file=
5686lt_cv_deplibs_check_method='unknown'
5687# Need to set the preceding variable on all platforms that support
5688# interlibrary dependencies.
5689# 'none' -- dependencies not supported.
5690# `unknown' -- same as none, but documents that we really don't know.
5691# 'pass_all' -- all dependencies passed with no checks.
5692# 'test_compile' -- check by making test program.
5693# 'file_magic [[regex]]' -- check by looking for files in library path
5694# which responds to the $file_magic_cmd with a given extended regex.
5695# If you have `file' or equivalent on your system and you're not sure
5696# whether `pass_all' will *always* work, you probably want this one.
5697
5698case $host_os in
5699aix[4-9]*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
5703beos*)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706
5707bsdi[45]*)
5708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5709 lt_cv_file_magic_cmd='/usr/bin/file -L'
5710 lt_cv_file_magic_test_file=/shlib/libc.so
5711 ;;
5712
5713cygwin*)
5714 # func_win32_libid is a shell function defined in ltmain.sh
5715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5716 lt_cv_file_magic_cmd='func_win32_libid'
5717 ;;
5718
5719mingw* | pw32*)
5720 # Base MSYS/MinGW do not provide the 'file' command needed by
5721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5722 # unless we find 'file', for example because we are cross-compiling.
5723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5724 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5726 lt_cv_file_magic_cmd='func_win32_libid'
5727 else
5728 # Keep this pattern in sync with the one in func_win32_libid.
5729 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5730 lt_cv_file_magic_cmd='$OBJDUMP -f'
5731 fi
5732 ;;
5733
5734cegcc*)
5735 # use the weaker test based on 'objdump'. See mingw*.
5736 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5737 lt_cv_file_magic_cmd='$OBJDUMP -f'
5738 ;;
5739
5740darwin* | rhapsody*)
5741 lt_cv_deplibs_check_method=pass_all
5742 ;;
5743
5744freebsd* | dragonfly*)
5745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5746 case $host_cpu in
5747 i*86 )
5748 # Not sure whether the presence of OpenBSD here was a mistake.
5749 # Let's accept both of them until this is cleared up.
5750 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5751 lt_cv_file_magic_cmd=/usr/bin/file
5752 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5753 ;;
5754 esac
5755 else
5756 lt_cv_deplibs_check_method=pass_all
5757 fi
5758 ;;
5759
5760gnu*)
5761 lt_cv_deplibs_check_method=pass_all
5762 ;;
5763
5764haiku*)
5765 lt_cv_deplibs_check_method=pass_all
5766 ;;
5767
5768hpux10.20* | hpux11*)
5769 lt_cv_file_magic_cmd=/usr/bin/file
5770 case $host_cpu in
5771 ia64*)
5772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5773 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5774 ;;
5775 hppa*64*)
5776 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]'
5777 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5778 ;;
5779 *)
5780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5781 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5782 ;;
5783 esac
5784 ;;
5785
5786interix[3-9]*)
5787 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5789 ;;
5790
5791irix5* | irix6* | nonstopux*)
5792 case $LD in
5793 *-32|*"-32 ") libmagic=32-bit;;
5794 *-n32|*"-n32 ") libmagic=N32;;
5795 *-64|*"-64 ") libmagic=64-bit;;
5796 *) libmagic=never-match;;
5797 esac
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801# This must be glibc/ELF.
5802linux* | k*bsd*-gnu | kopensolaris*-gnu)
5803 lt_cv_deplibs_check_method=pass_all
5804 ;;
5805
5806netbsd*)
5807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5809 else
5810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5811 fi
5812 ;;
5813
5814newos6*)
5815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5816 lt_cv_file_magic_cmd=/usr/bin/file
5817 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5818 ;;
5819
5820*nto* | *qnx*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823
5824openbsd*)
5825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5827 else
5828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5829 fi
5830 ;;
5831
5832osf3* | osf4* | osf5*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836rdos*)
5837 lt_cv_deplibs_check_method=pass_all
5838 ;;
5839
5840solaris*)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843
5844sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847
5848sysv4 | sysv4.3*)
5849 case $host_vendor in
5850 motorola)
5851 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]'
5852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5853 ;;
5854 ncr)
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857 sequent)
5858 lt_cv_file_magic_cmd='/bin/file'
5859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5860 ;;
5861 sni)
5862 lt_cv_file_magic_cmd='/bin/file'
5863 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5864 lt_cv_file_magic_test_file=/lib/libc.so
5865 ;;
5866 siemens)
5867 lt_cv_deplibs_check_method=pass_all
5868 ;;
5869 pc)
5870 lt_cv_deplibs_check_method=pass_all
5871 ;;
5872 esac
5873 ;;
5874
5875tpf*)
5876 lt_cv_deplibs_check_method=pass_all
5877 ;;
5878esac
5879
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5882$as_echo "$lt_cv_deplibs_check_method" >&6; }
5883
5884file_magic_glob=
5885want_nocaseglob=no
5886if test "$build" = "$host"; then
5887 case $host_os in
5888 mingw* | pw32*)
5889 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5890 want_nocaseglob=yes
5891 else
5892 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5893 fi
5894 ;;
5895 esac
5896fi
5897
5898file_magic_cmd=$lt_cv_file_magic_cmd
5899deplibs_check_method=$lt_cv_deplibs_check_method
5900test -z "$deplibs_check_method" && deplibs_check_method=unknown
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5925set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_DLLTOOL+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930else
5931 if test -n "$DLLTOOL"; then
5932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945done
5946 done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951DLLTOOL=$ac_cv_prog_DLLTOOL
5952if test -n "$DLLTOOL"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5954$as_echo "$DLLTOOL" >&6; }
5955else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960
5961fi
5962if test -z "$ac_cv_prog_DLLTOOL"; then
5963 ac_ct_DLLTOOL=$DLLTOOL
5964 # Extract the first word of "dlltool", so it can be a program name with args.
5965set dummy dlltool; ac_word=$2
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967$as_echo_n "checking for $ac_word... " >&6; }
5968if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970else
5971 if test -n "$ac_ct_DLLTOOL"; then
5972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5973else
5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985done
5986 done
5987IFS=$as_save_IFS
5988
5989fi
5990fi
5991ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5992if test -n "$ac_ct_DLLTOOL"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5994$as_echo "$ac_ct_DLLTOOL" >&6; }
5995else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999
6000 if test "x$ac_ct_DLLTOOL" = x; then
6001 DLLTOOL="false"
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004yes:)
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007ac_tool_warned=yes ;;
6008esac
6009 DLLTOOL=$ac_ct_DLLTOOL
6010 fi
6011else
6012 DLLTOOL="$ac_cv_prog_DLLTOOL"
6013fi
6014
6015test -z "$DLLTOOL" && DLLTOOL=dlltool
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6027$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6028if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030else
6031 lt_cv_sharedlib_from_linklib_cmd='unknown'
6032
6033case $host_os in
6034cygwin* | mingw* | pw32* | cegcc*)
6035 # two different shell functions defined in ltmain.sh
6036 # decide which to use based on capabilities of $DLLTOOL
6037 case `$DLLTOOL --help 2>&1` in
6038 *--identify-strict*)
6039 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6040 ;;
6041 *)
6042 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6043 ;;
6044 esac
6045 ;;
6046*)
6047 # fallback: assume linklib IS sharedlib
6048 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6049 ;;
6050esac
6051
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6054$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6055sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6056test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6057
6058
6059
6060
6061
6062
6063
6064if test -n "$ac_tool_prefix"; then
6065 for ac_prog in ar
6066 do
6067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if ${ac_cv_prog_AR+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$AR"; then
6075 ac_cv_prog_AR="$AR" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088done
6089 done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094AR=$ac_cv_prog_AR
6095if test -n "$AR"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6097$as_echo "$AR" >&6; }
6098else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104 test -n "$AR" && break
6105 done
6106fi
6107if test -z "$AR"; then
6108 ac_ct_AR=$AR
6109 for ac_prog in ar
6110do
6111 # Extract the first word of "$ac_prog", so it can be a program name with args.
6112set dummy $ac_prog; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
6115if ${ac_cv_prog_ac_ct_AR+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117else
6118 if test -n "$ac_ct_AR"; then
6119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_ac_ct_AR="$ac_prog"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132done
6133 done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138ac_ct_AR=$ac_cv_prog_ac_ct_AR
6139if test -n "$ac_ct_AR"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6141$as_echo "$ac_ct_AR" >&6; }
6142else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148 test -n "$ac_ct_AR" && break
6149done
6150
6151 if test "x$ac_ct_AR" = x; then
6152 AR="false"
6153 else
6154 case $cross_compiling:$ac_tool_warned in
6155yes:)
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158ac_tool_warned=yes ;;
6159esac
6160 AR=$ac_ct_AR
6161 fi
6162fi
6163
6164: ${AR=ar}
6165: ${AR_FLAGS=cru}
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6178$as_echo_n "checking for archiver @FILE support... " >&6; }
6179if ${lt_cv_ar_at_file+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 lt_cv_ar_at_file=no
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185
6186int
6187main ()
6188{
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"; then :
6195 echo conftest.$ac_objext > conftest.lst
6196 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6198 (eval $lt_ar_try) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }
6202 if test "$ac_status" -eq 0; then
6203 # Ensure the archiver fails upon bogus file names.
6204 rm -f conftest.$ac_objext libconftest.a
6205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6206 (eval $lt_ar_try) 2>&5
6207 ac_status=$?
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; }
6210 if test "$ac_status" -ne 0; then
6211 lt_cv_ar_at_file=@
6212 fi
6213 fi
6214 rm -f conftest.* libconftest.a
6215
6216fi
6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6221$as_echo "$lt_cv_ar_at_file" >&6; }
6222
6223if test "x$lt_cv_ar_at_file" = xno; then
6224 archiver_list_spec=
6225else
6226 archiver_list_spec=$lt_cv_ar_at_file
6227fi
6228
6229
6230
6231
6232
6233
6234
6235if test -n "$ac_tool_prefix"; then
6236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6237set dummy ${ac_tool_prefix}strip; ac_word=$2
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239$as_echo_n "checking for $ac_word... " >&6; }
6240if ${ac_cv_prog_STRIP+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242else
6243 if test -n "$STRIP"; then
6244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6245else
6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257done
6258 done
6259IFS=$as_save_IFS
6260
6261fi
6262fi
6263STRIP=$ac_cv_prog_STRIP
6264if test -n "$STRIP"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6266$as_echo "$STRIP" >&6; }
6267else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269$as_echo "no" >&6; }
6270fi
6271
6272
6273fi
6274if test -z "$ac_cv_prog_STRIP"; then
6275 ac_ct_STRIP=$STRIP
6276 # Extract the first word of "strip", so it can be a program name with args.
6277set dummy strip; ac_word=$2
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279$as_echo_n "checking for $ac_word... " >&6; }
6280if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282else
6283 if test -n "$ac_ct_STRIP"; then
6284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6285else
6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293 ac_cv_prog_ac_ct_STRIP="strip"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297done
6298 done
6299IFS=$as_save_IFS
6300
6301fi
6302fi
6303ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6304if test -n "$ac_ct_STRIP"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6306$as_echo "$ac_ct_STRIP" >&6; }
6307else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309$as_echo "no" >&6; }
6310fi
6311
6312 if test "x$ac_ct_STRIP" = x; then
6313 STRIP=":"
6314 else
6315 case $cross_compiling:$ac_tool_warned in
6316yes:)
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6319ac_tool_warned=yes ;;
6320esac
6321 STRIP=$ac_ct_STRIP
6322 fi
6323else
6324 STRIP="$ac_cv_prog_STRIP"
6325fi
6326
6327test -z "$STRIP" && STRIP=:
6328
6329
6330
6331
6332
6333
6334if test -n "$ac_tool_prefix"; then
6335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6336set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338$as_echo_n "checking for $ac_word... " >&6; }
6339if ${ac_cv_prog_RANLIB+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341else
6342 if test -n "$RANLIB"; then
6343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6344else
6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356done
6357 done
6358IFS=$as_save_IFS
6359
6360fi
6361fi
6362RANLIB=$ac_cv_prog_RANLIB
6363if test -n "$RANLIB"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6365$as_echo "$RANLIB" >&6; }
6366else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368$as_echo "no" >&6; }
6369fi
6370
6371
6372fi
6373if test -z "$ac_cv_prog_RANLIB"; then
6374 ac_ct_RANLIB=$RANLIB
6375 # Extract the first word of "ranlib", so it can be a program name with args.
6376set dummy ranlib; ac_word=$2
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378$as_echo_n "checking for $ac_word... " >&6; }
6379if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381else
6382 if test -n "$ac_ct_RANLIB"; then
6383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6384else
6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386for as_dir in $PATH
6387do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392 ac_cv_prog_ac_ct_RANLIB="ranlib"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396done
6397 done
6398IFS=$as_save_IFS
6399
6400fi
6401fi
6402ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6403if test -n "$ac_ct_RANLIB"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6405$as_echo "$ac_ct_RANLIB" >&6; }
6406else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
6410
6411 if test "x$ac_ct_RANLIB" = x; then
6412 RANLIB=":"
6413 else
6414 case $cross_compiling:$ac_tool_warned in
6415yes:)
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6418ac_tool_warned=yes ;;
6419esac
6420 RANLIB=$ac_ct_RANLIB
6421 fi
6422else
6423 RANLIB="$ac_cv_prog_RANLIB"
6424fi
6425
6426test -z "$RANLIB" && RANLIB=:
6427
6428
6429
6430
6431
6432
6433# Determine commands to create old-style static archives.
6434old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6435old_postinstall_cmds='chmod 644 $oldlib'
6436old_postuninstall_cmds=
6437
6438if test -n "$RANLIB"; then
6439 case $host_os in
6440 openbsd*)
6441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6442 ;;
6443 *)
6444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6445 ;;
6446 esac
6447 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6448fi
6449
6450case $host_os in
6451 darwin*)
6452 lock_old_archive_extraction=yes ;;
6453 *)
6454 lock_old_archive_extraction=no ;;
6455esac
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
6491
6492
6493
6494
6495# If no C compiler was specified, use CC.
6496LTCC=${LTCC-"$CC"}
6497
6498# If no C compiler flags were specified, use CFLAGS.
6499LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6500
6501# Allow CC to be a program name with arguments.
6502compiler=$CC
6503
6504
6505# Check for command to grab the raw symbol name followed by C symbol from nm.
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6507$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6508if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510else
6511
6512# These are sane defaults that work on at least a few old systems.
6513# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6514
6515# Character class describing NM global symbol codes.
6516symcode='[BCDEGRST]'
6517
6518# Regexp to match symbols that can be accessed directly from C.
6519sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6520
6521# Define system-specific variables.
6522case $host_os in
6523aix*)
6524 symcode='[BCDT]'
6525 ;;
6526cygwin* | mingw* | pw32* | cegcc*)
6527 symcode='[ABCDGISTW]'
6528 ;;
6529hpux*)
6530 if test "$host_cpu" = ia64; then
6531 symcode='[ABCDEGRST]'
6532 fi
6533 ;;
6534irix* | nonstopux*)
6535 symcode='[BCDEGRST]'
6536 ;;
6537osf*)
6538 symcode='[BCDEGQRST]'
6539 ;;
6540solaris*)
6541 symcode='[BDRT]'
6542 ;;
6543sco3.2v5*)
6544 symcode='[DT]'
6545 ;;
6546sysv4.2uw2*)
6547 symcode='[DT]'
6548 ;;
6549sysv5* | sco5v6* | unixware* | OpenUNIX*)
6550 symcode='[ABDT]'
6551 ;;
6552sysv4)
6553 symcode='[DFNSTU]'
6554 ;;
6555esac
6556
6557# If we're using GNU nm, then use its standard symbol codes.
6558case `$NM -V 2>&1` in
6559*GNU* | *'with BFD'*)
6560 symcode='[ABCDGIRSTW]' ;;
6561esac
6562
6563# Transform an extracted symbol line into a proper C declaration.
6564# Some systems (esp. on ia64) link data and code symbols differently,
6565# so use this general approach.
6566lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6567
6568# Transform an extracted symbol line into symbol name and symbol address
6569lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6570lt_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'"
6571
6572# Handle CRLF in mingw tool chain
6573opt_cr=
6574case $build_os in
6575mingw*)
6576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6577 ;;
6578esac
6579
6580# Try without a prefix underscore, then with it.
6581for ac_symprfx in "" "_"; do
6582
6583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6584 symxfrm="\\1 $ac_symprfx\\2 \\2"
6585
6586 # Write the raw and C identifiers.
6587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6588 # Fake it for dumpbin and say T for any non-static function
6589 # and D for any global variable.
6590 # Also find C++ and __fastcall symbols from MSVC++,
6591 # which start with @ or ?.
6592 lt_cv_sys_global_symbol_pipe="$AWK '"\
6593" {last_section=section; section=\$ 3};"\
6594" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6595" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6596" \$ 0!~/External *\|/{next};"\
6597" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6598" {if(hide[section]) next};"\
6599" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6600" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6601" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6602" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6603" ' prfx=^$ac_symprfx"
6604 else
6605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6606 fi
6607 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6608
6609 # Check to see that the pipe works correctly.
6610 pipe_works=no
6611
6612 rm -f conftest*
6613 cat > conftest.$ac_ext <<_LT_EOF
6614#ifdef __cplusplus
6615extern "C" {
6616#endif
6617char nm_test_var;
6618void nm_test_func(void);
6619void nm_test_func(void){}
6620#ifdef __cplusplus
6621}
6622#endif
6623int main(){nm_test_var='a';nm_test_func();return(0);}
6624_LT_EOF
6625
6626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6627 (eval $ac_compile) 2>&5
6628 ac_status=$?
6629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630 test $ac_status = 0; }; then
6631 # Now try to grab the symbols.
6632 nlist=conftest.nm
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6634 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; } && test -s "$nlist"; then
6638 # Try sorting and uniquifying the output.
6639 if sort "$nlist" | uniq > "$nlist"T; then
6640 mv -f "$nlist"T "$nlist"
6641 else
6642 rm -f "$nlist"T
6643 fi
6644
6645 # Make sure that we snagged all the symbols we need.
6646 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6647 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6648 cat <<_LT_EOF > conftest.$ac_ext
6649/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6650#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6651/* DATA imports from DLLs on WIN32 con't be const, because runtime
6652 relocations are performed -- see ld's documentation on pseudo-relocs. */
6653# define LT_DLSYM_CONST
6654#elif defined(__osf__)
6655/* This system does not cope well with relocations in const data. */
6656# define LT_DLSYM_CONST
6657#else
6658# define LT_DLSYM_CONST const
6659#endif
6660
6661#ifdef __cplusplus
6662extern "C" {
6663#endif
6664
6665_LT_EOF
6666 # Now generate the symbol file.
6667 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6668
6669 cat <<_LT_EOF >> conftest.$ac_ext
6670
6671/* The mapping between symbol names and symbols. */
6672LT_DLSYM_CONST struct {
6673 const char *name;
6674 void *address;
6675}
6676lt__PROGRAM__LTX_preloaded_symbols[] =
6677{
6678 { "@PROGRAM@", (void *) 0 },
6679_LT_EOF
6680 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6681 cat <<\_LT_EOF >> conftest.$ac_ext
6682 {0, (void *) 0}
6683};
6684
6685/* This works around a problem in FreeBSD linker */
6686#ifdef FREEBSD_WORKAROUND
6687static const void *lt_preloaded_setup() {
6688 return lt__PROGRAM__LTX_preloaded_symbols;
6689}
6690#endif
6691
6692#ifdef __cplusplus
6693}
6694#endif
6695_LT_EOF
6696 # Now try linking the two files.
6697 mv conftest.$ac_objext conftstm.$ac_objext
6698 lt_globsym_save_LIBS=$LIBS
6699 lt_globsym_save_CFLAGS=$CFLAGS
6700 LIBS="conftstm.$ac_objext"
6701 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6707 pipe_works=yes
6708 fi
6709 LIBS=$lt_globsym_save_LIBS
6710 CFLAGS=$lt_globsym_save_CFLAGS
6711 else
6712 echo "cannot find nm_test_func in $nlist" >&5
6713 fi
6714 else
6715 echo "cannot find nm_test_var in $nlist" >&5
6716 fi
6717 else
6718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6719 fi
6720 else
6721 echo "$progname: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6723 fi
6724 rm -rf conftest* conftst*
6725
6726 # Do not use the global_symbol_pipe unless it works.
6727 if test "$pipe_works" = yes; then
6728 break
6729 else
6730 lt_cv_sys_global_symbol_pipe=
6731 fi
6732done
6733
6734fi
6735
6736if test -z "$lt_cv_sys_global_symbol_pipe"; then
6737 lt_cv_sys_global_symbol_to_cdecl=
6738fi
6739if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6741$as_echo "failed" >&6; }
6742else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6744$as_echo "ok" >&6; }
6745fi
6746
6747# Response file support.
6748if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6749 nm_file_list_spec='@'
6750elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6751 nm_file_list_spec='@'
6752fi
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6781$as_echo_n "checking for sysroot... " >&6; }
6782
6783# Check whether --with-sysroot was given.
6784if test "${with_sysroot+set}" = set; then :
6785 withval=$with_sysroot;
6786else
6787 with_sysroot=no
6788fi
6789
6790
6791lt_sysroot=
6792case ${with_sysroot} in #(
6793 yes)
6794 if test "$GCC" = yes; then
6795 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6796 fi
6797 ;; #(
6798 /*)
6799 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6800 ;; #(
6801 no|'')
6802 ;; #(
6803 *)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6805$as_echo "${with_sysroot}" >&6; }
6806 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6807 ;;
6808esac
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6811$as_echo "${lt_sysroot:-no}" >&6; }
6812
6813
6814
6815
6816
6817# Check whether --enable-libtool-lock was given.
6818if test "${enable_libtool_lock+set}" = set; then :
6819 enableval=$enable_libtool_lock;
6820fi
6821
6822test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6823
6824# Some flags need to be propagated to the compiler or linker for good
6825# libtool support.
6826case $host in
6827ia64-*-hpux*)
6828 # Find out which ABI we are using.
6829 echo 'int i;' > conftest.$ac_ext
6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831 (eval $ac_compile) 2>&5
6832 ac_status=$?
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; then
6835 case `/usr/bin/file conftest.$ac_objext` in
6836 *ELF-32*)
6837 HPUX_IA64_MODE="32"
6838 ;;
6839 *ELF-64*)
6840 HPUX_IA64_MODE="64"
6841 ;;
6842 esac
6843 fi
6844 rm -rf conftest*
6845 ;;
6846*-*-irix6*)
6847 # Find out which ABI we are using.
6848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }; then
6854 if test "$lt_cv_prog_gnu_ld" = yes; then
6855 case `/usr/bin/file conftest.$ac_objext` in
6856 *32-bit*)
6857 LD="${LD-ld} -melf32bsmip"
6858 ;;
6859 *N32*)
6860 LD="${LD-ld} -melf32bmipn32"
6861 ;;
6862 *64-bit*)
6863 LD="${LD-ld} -melf64bmip"
6864 ;;
6865 esac
6866 else
6867 case `/usr/bin/file conftest.$ac_objext` in
6868 *32-bit*)
6869 LD="${LD-ld} -32"
6870 ;;
6871 *N32*)
6872 LD="${LD-ld} -n32"
6873 ;;
6874 *64-bit*)
6875 LD="${LD-ld} -64"
6876 ;;
6877 esac
6878 fi
6879 fi
6880 rm -rf conftest*
6881 ;;
6882
6883x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6884s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6885 # Find out which ABI we are using.
6886 echo 'int i;' > conftest.$ac_ext
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 case `/usr/bin/file conftest.o` in
6893 *32-bit*)
6894 case $host in
6895 x86_64-*kfreebsd*-gnu)
6896 LD="${LD-ld} -m elf_i386_fbsd"
6897 ;;
6898 x86_64-*linux*)
6899 LD="${LD-ld} -m elf_i386"
6900 ;;
6901 ppc64-*linux*|powerpc64-*linux*)
6902 LD="${LD-ld} -m elf32ppclinux"
6903 ;;
6904 s390x-*linux*)
6905 LD="${LD-ld} -m elf_s390"
6906 ;;
6907 sparc64-*linux*)
6908 LD="${LD-ld} -m elf32_sparc"
6909 ;;
6910 esac
6911 ;;
6912 *64-bit*)
6913 case $host in
6914 x86_64-*kfreebsd*-gnu)
6915 LD="${LD-ld} -m elf_x86_64_fbsd"
6916 ;;
6917 x86_64-*linux*)
6918 LD="${LD-ld} -m elf_x86_64"
6919 ;;
6920 ppc*-*linux*|powerpc*-*linux*)
6921 LD="${LD-ld} -m elf64ppc"
6922 ;;
6923 s390*-*linux*|s390*-*tpf*)
6924 LD="${LD-ld} -m elf64_s390"
6925 ;;
6926 sparc*-*linux*)
6927 LD="${LD-ld} -m elf64_sparc"
6928 ;;
6929 esac
6930 ;;
6931 esac
6932 fi
6933 rm -rf conftest*
6934 ;;
6935
6936*-*-sco3.2v5*)
6937 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6938 SAVE_CFLAGS="$CFLAGS"
6939 CFLAGS="$CFLAGS -belf"
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6941$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6942if ${lt_cv_cc_needs_belf+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944else
6945 ac_ext=c
6946ac_cpp='$CPP $CPPFLAGS'
6947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h. */
6953
6954int
6955main ()
6956{
6957
6958 ;
6959 return 0;
6960}
6961_ACEOF
6962if ac_fn_c_try_link "$LINENO"; then :
6963 lt_cv_cc_needs_belf=yes
6964else
6965 lt_cv_cc_needs_belf=no
6966fi
6967rm -f core conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 ac_ext=c
6970ac_cpp='$CPP $CPPFLAGS'
6971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974
6975fi
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6977$as_echo "$lt_cv_cc_needs_belf" >&6; }
6978 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6980 CFLAGS="$SAVE_CFLAGS"
6981 fi
6982 ;;
6983*-*solaris*)
6984 # Find out which ABI we are using.
6985 echo 'int i;' > conftest.$ac_ext
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987 (eval $ac_compile) 2>&5
6988 ac_status=$?
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; then
6991 case `/usr/bin/file conftest.o` in
6992 *64-bit*)
6993 case $lt_cv_prog_gnu_ld in
6994 yes*)
6995 case $host in
6996 i?86-*-solaris*)
6997 LD="${LD-ld} -m elf_x86_64"
6998 ;;
6999 sparc*-*-solaris*)
7000 LD="${LD-ld} -m elf64_sparc"
7001 ;;
7002 esac
7003 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7004 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7005 LD="${LD-ld}_sol2"
7006 fi
7007 ;;
7008 *)
7009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7010 LD="${LD-ld} -64"
7011 fi
7012 ;;
7013 esac
7014 ;;
7015 esac
7016 fi
7017 rm -rf conftest*
7018 ;;
7019esac
7020
7021need_locks="$enable_libtool_lock"
7022
7023if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7025set dummy ${ac_tool_prefix}mt; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027$as_echo_n "checking for $ac_word... " >&6; }
7028if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030else
7031 if test -n "$MANIFEST_TOOL"; then
7032 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046 done
7047IFS=$as_save_IFS
7048
7049fi
7050fi
7051MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7052if test -n "$MANIFEST_TOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7054$as_echo "$MANIFEST_TOOL" >&6; }
7055else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060
7061fi
7062if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7063 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7064 # Extract the first word of "mt", so it can be a program name with args.
7065set dummy mt; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070else
7071 if test -n "$ac_ct_MANIFEST_TOOL"; then
7072 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086 done
7087IFS=$as_save_IFS
7088
7089fi
7090fi
7091ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7092if test -n "$ac_ct_MANIFEST_TOOL"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7094$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7095else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7101 MANIFEST_TOOL=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104yes:)
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107ac_tool_warned=yes ;;
7108esac
7109 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7110 fi
7111else
7112 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7113fi
7114
7115test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7117$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7118if ${lt_cv_path_mainfest_tool+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120else
7121 lt_cv_path_mainfest_tool=no
7122 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7123 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7124 cat conftest.err >&5
7125 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7126 lt_cv_path_mainfest_tool=yes
7127 fi
7128 rm -f conftest*
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7131$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7132if test "x$lt_cv_path_mainfest_tool" != xyes; then
7133 MANIFEST_TOOL=:
7134fi
7135
7136
7137
7138
7139
7140
7141 case $host_os in
7142 rhapsody* | darwin*)
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7145set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147$as_echo_n "checking for $ac_word... " >&6; }
7148if ${ac_cv_prog_DSYMUTIL+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150else
7151 if test -n "$DSYMUTIL"; then
7152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165done
7166 done
7167IFS=$as_save_IFS
7168
7169fi
7170fi
7171DSYMUTIL=$ac_cv_prog_DSYMUTIL
7172if test -n "$DSYMUTIL"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7174$as_echo "$DSYMUTIL" >&6; }
7175else
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177$as_echo "no" >&6; }
7178fi
7179
7180
7181fi
7182if test -z "$ac_cv_prog_DSYMUTIL"; then
7183 ac_ct_DSYMUTIL=$DSYMUTIL
7184 # Extract the first word of "dsymutil", so it can be a program name with args.
7185set dummy dsymutil; ac_word=$2
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190else
7191 if test -n "$ac_ct_DSYMUTIL"; then
7192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7204 fi
7205done
7206 done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7212if test -n "$ac_ct_DSYMUTIL"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7214$as_echo "$ac_ct_DSYMUTIL" >&6; }
7215else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220 if test "x$ac_ct_DSYMUTIL" = x; then
7221 DSYMUTIL=":"
7222 else
7223 case $cross_compiling:$ac_tool_warned in
7224yes:)
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227ac_tool_warned=yes ;;
7228esac
7229 DSYMUTIL=$ac_ct_DSYMUTIL
7230 fi
7231else
7232 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7233fi
7234
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7237set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239$as_echo_n "checking for $ac_word... " >&6; }
7240if ${ac_cv_prog_NMEDIT+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242else
7243 if test -n "$NMEDIT"; then
7244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257done
7258 done
7259IFS=$as_save_IFS
7260
7261fi
7262fi
7263NMEDIT=$ac_cv_prog_NMEDIT
7264if test -n "$NMEDIT"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7266$as_echo "$NMEDIT" >&6; }
7267else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269$as_echo "no" >&6; }
7270fi
7271
7272
7273fi
7274if test -z "$ac_cv_prog_NMEDIT"; then
7275 ac_ct_NMEDIT=$NMEDIT
7276 # Extract the first word of "nmedit", so it can be a program name with args.
7277set dummy nmedit; ac_word=$2
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282else
7283 if test -n "$ac_ct_NMEDIT"; then
7284 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297done
7298 done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7304if test -n "$ac_ct_NMEDIT"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7306$as_echo "$ac_ct_NMEDIT" >&6; }
7307else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312 if test "x$ac_ct_NMEDIT" = x; then
7313 NMEDIT=":"
7314 else
7315 case $cross_compiling:$ac_tool_warned in
7316yes:)
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319ac_tool_warned=yes ;;
7320esac
7321 NMEDIT=$ac_ct_NMEDIT
7322 fi
7323else
7324 NMEDIT="$ac_cv_prog_NMEDIT"
7325fi
7326
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7329set dummy ${ac_tool_prefix}lipo; ac_word=$2
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331$as_echo_n "checking for $ac_word... " >&6; }
7332if ${ac_cv_prog_LIPO+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334else
7335 if test -n "$LIPO"; then
7336 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7337else
7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349done
7350 done
7351IFS=$as_save_IFS
7352
7353fi
7354fi
7355LIPO=$ac_cv_prog_LIPO
7356if test -n "$LIPO"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7358$as_echo "$LIPO" >&6; }
7359else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365fi
7366if test -z "$ac_cv_prog_LIPO"; then
7367 ac_ct_LIPO=$LIPO
7368 # Extract the first word of "lipo", so it can be a program name with args.
7369set dummy lipo; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374else
7375 if test -n "$ac_ct_LIPO"; then
7376 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_LIPO="lipo"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389done
7390 done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7396if test -n "$ac_ct_LIPO"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7398$as_echo "$ac_ct_LIPO" >&6; }
7399else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401$as_echo "no" >&6; }
7402fi
7403
7404 if test "x$ac_ct_LIPO" = x; then
7405 LIPO=":"
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408yes:)
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411ac_tool_warned=yes ;;
7412esac
7413 LIPO=$ac_ct_LIPO
7414 fi
7415else
7416 LIPO="$ac_cv_prog_LIPO"
7417fi
7418
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}otool; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423$as_echo_n "checking for $ac_word... " >&6; }
7424if ${ac_cv_prog_OTOOL+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426else
7427 if test -n "$OTOOL"; then
7428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442 done
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7447OTOOL=$ac_cv_prog_OTOOL
7448if test -n "$OTOOL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7450$as_echo "$OTOOL" >&6; }
7451else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
7455
7456
7457fi
7458if test -z "$ac_cv_prog_OTOOL"; then
7459 ac_ct_OTOOL=$OTOOL
7460 # Extract the first word of "otool", so it can be a program name with args.
7461set dummy otool; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466else
7467 if test -n "$ac_ct_OTOOL"; then
7468 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_OTOOL="otool"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481done
7482 done
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7487ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7488if test -n "$ac_ct_OTOOL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7490$as_echo "$ac_ct_OTOOL" >&6; }
7491else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
7494fi
7495
7496 if test "x$ac_ct_OTOOL" = x; then
7497 OTOOL=":"
7498 else
7499 case $cross_compiling:$ac_tool_warned in
7500yes:)
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503ac_tool_warned=yes ;;
7504esac
7505 OTOOL=$ac_ct_OTOOL
7506 fi
7507else
7508 OTOOL="$ac_cv_prog_OTOOL"
7509fi
7510
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7513set dummy ${ac_tool_prefix}otool64; ac_word=$2
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
7516if ${ac_cv_prog_OTOOL64+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518else
7519 if test -n "$OTOOL64"; then
7520 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534 done
7535IFS=$as_save_IFS
7536
7537fi
7538fi
7539OTOOL64=$ac_cv_prog_OTOOL64
7540if test -n "$OTOOL64"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7542$as_echo "$OTOOL64" >&6; }
7543else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
7546fi
7547
7548
7549fi
7550if test -z "$ac_cv_prog_OTOOL64"; then
7551 ac_ct_OTOOL64=$OTOOL64
7552 # Extract the first word of "otool64", so it can be a program name with args.
7553set dummy otool64; ac_word=$2
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
7556if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558else
7559 if test -n "$ac_ct_OTOOL64"; then
7560 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_OTOOL64="otool64"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
7574 done
7575IFS=$as_save_IFS
7576
7577fi
7578fi
7579ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7580if test -n "$ac_ct_OTOOL64"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7582$as_echo "$ac_ct_OTOOL64" >&6; }
7583else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586fi
7587
7588 if test "x$ac_ct_OTOOL64" = x; then
7589 OTOOL64=":"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592yes:)
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595ac_tool_warned=yes ;;
7596esac
7597 OTOOL64=$ac_ct_OTOOL64
7598 fi
7599else
7600 OTOOL64="$ac_cv_prog_OTOOL64"
7601fi
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7630$as_echo_n "checking for -single_module linker flag... " >&6; }
7631if ${lt_cv_apple_cc_single_mod+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633else
7634 lt_cv_apple_cc_single_mod=no
7635 if test -z "${LT_MULTI_MODULE}"; then
7636 # By default we will add the -single_module flag. You can override
7637 # by either setting the environment variable LT_MULTI_MODULE
7638 # non-empty at configure time, or by adding -multi_module to the
7639 # link flags.
7640 rm -rf libconftest.dylib*
7641 echo "int foo(void){return 1;}" > conftest.c
7642 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7643-dynamiclib -Wl,-single_module conftest.c" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7646 _lt_result=$?
7647 # If there is a non-empty error log, and "single_module"
7648 # appears in it, assume the flag caused a linker warning
7649 if test -s conftest.err && $GREP single_module conftest.err; then
7650 cat conftest.err >&5
7651 # Otherwise, if the output was created with a 0 exit code from
7652 # the compiler, it worked.
7653 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7654 lt_cv_apple_cc_single_mod=yes
7655 else
7656 cat conftest.err >&5
7657 fi
7658 rm -rf libconftest.dylib*
7659 rm -f conftest.*
7660 fi
7661fi
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7663$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7664
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7666$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7667if ${lt_cv_ld_exported_symbols_list+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669else
7670 lt_cv_ld_exported_symbols_list=no
7671 save_LDFLAGS=$LDFLAGS
7672 echo "_main" > conftest.sym
7673 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h. */
7676
7677int
7678main ()
7679{
7680
7681 ;
7682 return 0;
7683}
7684_ACEOF
7685if ac_fn_c_try_link "$LINENO"; then :
7686 lt_cv_ld_exported_symbols_list=yes
7687else
7688 lt_cv_ld_exported_symbols_list=no
7689fi
7690rm -f core conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7692 LDFLAGS="$save_LDFLAGS"
7693
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7696$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7697
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7699$as_echo_n "checking for -force_load linker flag... " >&6; }
7700if ${lt_cv_ld_force_load+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702else
7703 lt_cv_ld_force_load=no
7704 cat > conftest.c << _LT_EOF
7705int forced_loaded() { return 2;}
7706_LT_EOF
7707 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7708 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7709 echo "$AR cru libconftest.a conftest.o" >&5
7710 $AR cru libconftest.a conftest.o 2>&5
7711 echo "$RANLIB libconftest.a" >&5
7712 $RANLIB libconftest.a 2>&5
7713 cat > conftest.c << _LT_EOF
7714int main() { return 0;}
7715_LT_EOF
7716 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7717 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7718 _lt_result=$?
7719 if test -s conftest.err && $GREP force_load conftest.err; then
7720 cat conftest.err >&5
7721 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7722 lt_cv_ld_force_load=yes
7723 else
7724 cat conftest.err >&5
7725 fi
7726 rm -f conftest.err libconftest.a conftest conftest.c
7727 rm -rf conftest.dSYM
7728
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7731$as_echo "$lt_cv_ld_force_load" >&6; }
7732 case $host_os in
7733 rhapsody* | darwin1.[012])
7734 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7735 darwin1.*)
7736 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7737 darwin*) # darwin 5.x on
7738 # if running on 10.5 or later, the deployment target defaults
7739 # to the OS version, if on x86, and 10.4, the deployment
7740 # target defaults to 10.4. Don't you love it?
7741 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7742 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7743 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7744 10.[012]*)
7745 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7746 10.*)
7747 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7748 esac
7749 ;;
7750 esac
7751 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7752 _lt_dar_single_mod='$single_module'
7753 fi
7754 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7755 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7756 else
7757 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7758 fi
7759 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7760 _lt_dsymutil='~$DSYMUTIL $lib || :'
7761 else
7762 _lt_dsymutil=
7763 fi
7764 ;;
7765 esac
7766
7767ac_ext=c
7768ac_cpp='$CPP $CPPFLAGS'
7769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7773$as_echo_n "checking how to run the C preprocessor... " >&6; }
7774# On Suns, sometimes $CPP names a directory.
7775if test -n "$CPP" && test -d "$CPP"; then
7776 CPP=
7777fi
7778if test -z "$CPP"; then
7779 if ${ac_cv_prog_CPP+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781else
7782 # Double quotes because CPP needs to be expanded
7783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7784 do
7785 ac_preproc_ok=false
7786for ac_c_preproc_warn_flag in '' yes
7787do
7788 # Use a header file that comes with gcc, so configuring glibc
7789 # with a fresh cross-compiler works.
7790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791 # <limits.h> exists even on freestanding compilers.
7792 # On the NeXT, cc -E runs the code through the compiler's parser,
7793 # not just through cpp. "Syntax error" is here to catch this case.
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h. */
7796#ifdef __STDC__
7797# include <limits.h>
7798#else
7799# include <assert.h>
7800#endif
7801 Syntax error
7802_ACEOF
7803if ac_fn_c_try_cpp "$LINENO"; then :
7804
7805else
7806 # Broken: fails on valid input.
7807continue
7808fi
7809rm -f conftest.err conftest.i conftest.$ac_ext
7810
7811 # OK, works on sane cases. Now check whether nonexistent headers
7812 # can be detected and how.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h. */
7815#include <ac_nonexistent.h>
7816_ACEOF
7817if ac_fn_c_try_cpp "$LINENO"; then :
7818 # Broken: success on invalid input.
7819continue
7820else
7821 # Passes both tests.
7822ac_preproc_ok=:
7823break
7824fi
7825rm -f conftest.err conftest.i conftest.$ac_ext
7826
7827done
7828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7829rm -f conftest.i conftest.err conftest.$ac_ext
7830if $ac_preproc_ok; then :
7831 break
7832fi
7833
7834 done
7835 ac_cv_prog_CPP=$CPP
7836
7837fi
7838 CPP=$ac_cv_prog_CPP
7839else
7840 ac_cv_prog_CPP=$CPP
7841fi
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7843$as_echo "$CPP" >&6; }
7844ac_preproc_ok=false
7845for ac_c_preproc_warn_flag in '' yes
7846do
7847 # Use a header file that comes with gcc, so configuring glibc
7848 # with a fresh cross-compiler works.
7849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7850 # <limits.h> exists even on freestanding compilers.
7851 # On the NeXT, cc -E runs the code through the compiler's parser,
7852 # not just through cpp. "Syntax error" is here to catch this case.
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h. */
7855#ifdef __STDC__
7856# include <limits.h>
7857#else
7858# include <assert.h>
7859#endif
7860 Syntax error
7861_ACEOF
7862if ac_fn_c_try_cpp "$LINENO"; then :
7863
7864else
7865 # Broken: fails on valid input.
7866continue
7867fi
7868rm -f conftest.err conftest.i conftest.$ac_ext
7869
7870 # OK, works on sane cases. Now check whether nonexistent headers
7871 # can be detected and how.
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874#include <ac_nonexistent.h>
7875_ACEOF
7876if ac_fn_c_try_cpp "$LINENO"; then :
7877 # Broken: success on invalid input.
7878continue
7879else
7880 # Passes both tests.
7881ac_preproc_ok=:
7882break
7883fi
7884rm -f conftest.err conftest.i conftest.$ac_ext
7885
7886done
7887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7888rm -f conftest.i conftest.err conftest.$ac_ext
7889if $ac_preproc_ok; then :
7890
7891else
7892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7894as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7895See \`config.log' for more details" "$LINENO" 5; }
7896fi
7897
7898ac_ext=c
7899ac_cpp='$CPP $CPPFLAGS'
7900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7906$as_echo_n "checking for ANSI C header files... " >&6; }
7907if ${ac_cv_header_stdc+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909else
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911/* end confdefs.h. */
7912#include <stdlib.h>
7913#include <stdarg.h>
7914#include <string.h>
7915#include <float.h>
7916
7917int
7918main ()
7919{
7920
7921 ;
7922 return 0;
7923}
7924_ACEOF
7925if ac_fn_c_try_compile "$LINENO"; then :
7926 ac_cv_header_stdc=yes
7927else
7928 ac_cv_header_stdc=no
7929fi
7930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931
7932if test $ac_cv_header_stdc = yes; then
7933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h. */
7936#include <string.h>
7937
7938_ACEOF
7939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7940 $EGREP "memchr" >/dev/null 2>&1; then :
7941
7942else
7943 ac_cv_header_stdc=no
7944fi
7945rm -f conftest*
7946
7947fi
7948
7949if test $ac_cv_header_stdc = yes; then
7950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h. */
7953#include <stdlib.h>
7954
7955_ACEOF
7956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957 $EGREP "free" >/dev/null 2>&1; then :
7958
7959else
7960 ac_cv_header_stdc=no
7961fi
7962rm -f conftest*
7963
7964fi
7965
7966if test $ac_cv_header_stdc = yes; then
7967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7968 if test "$cross_compiling" = yes; then :
7969 :
7970else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h. */
7973#include <ctype.h>
7974#include <stdlib.h>
7975#if ((' ' & 0x0FF) == 0x020)
7976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7978#else
7979# define ISLOWER(c) \
7980 (('a' <= (c) && (c) <= 'i') \
7981 || ('j' <= (c) && (c) <= 'r') \
7982 || ('s' <= (c) && (c) <= 'z'))
7983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7984#endif
7985
7986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7987int
7988main ()
7989{
7990 int i;
7991 for (i = 0; i < 256; i++)
7992 if (XOR (islower (i), ISLOWER (i))
7993 || toupper (i) != TOUPPER (i))
7994 return 2;
7995 return 0;
7996}
7997_ACEOF
7998if ac_fn_c_try_run "$LINENO"; then :
7999
8000else
8001 ac_cv_header_stdc=no
8002fi
8003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8004 conftest.$ac_objext conftest.beam conftest.$ac_ext
8005fi
8006
8007fi
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8010$as_echo "$ac_cv_header_stdc" >&6; }
8011if test $ac_cv_header_stdc = yes; then
8012
8013$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8014
8015fi
8016
8017# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8018for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8019 inttypes.h stdint.h unistd.h
8020do :
8021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8022ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8023"
8024if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8025 cat >>confdefs.h <<_ACEOF
8026#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027_ACEOF
8028
8029fi
8030
8031done
8032
8033
8034for ac_header in dlfcn.h
8035do :
8036 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8037"
8038if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8039 cat >>confdefs.h <<_ACEOF
8040#define HAVE_DLFCN_H 1
8041_ACEOF
8042
8043fi
8044
8045done
8046
8047
8048
8049
8050
8051# Set options
8052
8053
8054
8055 enable_dlopen=no
8056
8057
8058 enable_win32_dll=no
8059
8060
8061 # Check whether --enable-shared was given.
8062if test "${enable_shared+set}" = set; then :
8063 enableval=$enable_shared; p=${PACKAGE-default}
8064 case $enableval in
8065 yes) enable_shared=yes ;;
8066 no) enable_shared=no ;;
8067 *)
8068 enable_shared=no
8069 # Look at the argument we got. We use all the common list separators.
8070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071 for pkg in $enableval; do
8072 IFS="$lt_save_ifs"
8073 if test "X$pkg" = "X$p"; then
8074 enable_shared=yes
8075 fi
8076 done
8077 IFS="$lt_save_ifs"
8078 ;;
8079 esac
8080else
8081 enable_shared=yes
8082fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092 # Check whether --enable-static was given.
8093if test "${enable_static+set}" = set; then :
8094 enableval=$enable_static; p=${PACKAGE-default}
8095 case $enableval in
8096 yes) enable_static=yes ;;
8097 no) enable_static=no ;;
8098 *)
8099 enable_static=no
8100 # Look at the argument we got. We use all the common list separators.
8101 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8102 for pkg in $enableval; do
8103 IFS="$lt_save_ifs"
8104 if test "X$pkg" = "X$p"; then
8105 enable_static=yes
8106 fi
8107 done
8108 IFS="$lt_save_ifs"
8109 ;;
8110 esac
8111else
8112 enable_static=yes
8113fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124# Check whether --with-pic was given.
8125if test "${with_pic+set}" = set; then :
8126 withval=$with_pic; lt_p=${PACKAGE-default}
8127 case $withval in
8128 yes|no) pic_mode=$withval ;;
8129 *)
8130 pic_mode=default
8131 # Look at the argument we got. We use all the common list separators.
8132 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8133 for lt_pkg in $withval; do
8134 IFS="$lt_save_ifs"
8135 if test "X$lt_pkg" = "X$lt_p"; then
8136 pic_mode=yes
8137 fi
8138 done
8139 IFS="$lt_save_ifs"
8140 ;;
8141 esac
8142else
8143 pic_mode=default
8144fi
8145
8146
8147test -z "$pic_mode" && pic_mode=default
8148
8149
8150
8151
8152
8153
8154
8155 # Check whether --enable-fast-install was given.
8156if test "${enable_fast_install+set}" = set; then :
8157 enableval=$enable_fast_install; p=${PACKAGE-default}
8158 case $enableval in
8159 yes) enable_fast_install=yes ;;
8160 no) enable_fast_install=no ;;
8161 *)
8162 enable_fast_install=no
8163 # Look at the argument we got. We use all the common list separators.
8164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8165 for pkg in $enableval; do
8166 IFS="$lt_save_ifs"
8167 if test "X$pkg" = "X$p"; then
8168 enable_fast_install=yes
8169 fi
8170 done
8171 IFS="$lt_save_ifs"
8172 ;;
8173 esac
8174else
8175 enable_fast_install=yes
8176fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188# This can be used to rebuild libtool when needed
8189LIBTOOL_DEPS="$ltmain"
8190
8191# Always use our own libtool.
8192LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8218
8219
8220
8221
8222
8223test -z "$LN_S" && LN_S="ln -s"
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238if test -n "${ZSH_VERSION+set}" ; then
8239 setopt NO_GLOB_SUBST
8240fi
8241
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8243$as_echo_n "checking for objdir... " >&6; }
8244if ${lt_cv_objdir+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246else
8247 rm -f .libs 2>/dev/null
8248mkdir .libs 2>/dev/null
8249if test -d .libs; then
8250 lt_cv_objdir=.libs
8251else
8252 # MS-DOS does not allow filenames that begin with a dot.
8253 lt_cv_objdir=_libs
8254fi
8255rmdir .libs 2>/dev/null
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8258$as_echo "$lt_cv_objdir" >&6; }
8259objdir=$lt_cv_objdir
8260
8261
8262
8263
8264
8265cat >>confdefs.h <<_ACEOF
8266#define LT_OBJDIR "$lt_cv_objdir/"
8267_ACEOF
8268
8269
8270
8271
8272case $host_os in
8273aix3*)
8274 # AIX sometimes has problems with the GCC collect2 program. For some
8275 # reason, if we set the COLLECT_NAMES environment variable, the problems
8276 # vanish in a puff of smoke.
8277 if test "X${COLLECT_NAMES+set}" != Xset; then
8278 COLLECT_NAMES=
8279 export COLLECT_NAMES
8280 fi
8281 ;;
8282esac
8283
8284# Global variables:
8285ofile=libtool
8286can_build_shared=yes
8287
8288# All known linkers require a `.a' archive for static linking (except MSVC,
8289# which needs '.lib').
8290libext=a
8291
8292with_gnu_ld="$lt_cv_prog_gnu_ld"
8293
8294old_CC="$CC"
8295old_CFLAGS="$CFLAGS"
8296
8297# Set sane defaults for various variables
8298test -z "$CC" && CC=cc
8299test -z "$LTCC" && LTCC=$CC
8300test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8301test -z "$LD" && LD=ld
8302test -z "$ac_objext" && ac_objext=o
8303
8304for cc_temp in $compiler""; do
8305 case $cc_temp in
8306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8308 \-*) ;;
8309 *) break;;
8310 esac
8311done
8312cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8313
8314
8315# Only perform the check for file, if the check method requires it
8316test -z "$MAGIC_CMD" && MAGIC_CMD=file
8317case $deplibs_check_method in
8318file_magic*)
8319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8321$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8322if ${lt_cv_path_MAGIC_CMD+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324else
8325 case $MAGIC_CMD in
8326[\\/*] | ?:[\\/]*)
8327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8328 ;;
8329*)
8330 lt_save_MAGIC_CMD="$MAGIC_CMD"
8331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8333 for ac_dir in $ac_dummy; do
8334 IFS="$lt_save_ifs"
8335 test -z "$ac_dir" && ac_dir=.
8336 if test -f $ac_dir/${ac_tool_prefix}file; then
8337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8338 if test -n "$file_magic_test_file"; then
8339 case $deplibs_check_method in
8340 "file_magic "*)
8341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8344 $EGREP "$file_magic_regex" > /dev/null; then
8345 :
8346 else
8347 cat <<_LT_EOF 1>&2
8348
8349*** Warning: the command libtool uses to detect shared libraries,
8350*** $file_magic_cmd, produces output that libtool cannot recognize.
8351*** The result is that libtool may fail to recognize shared libraries
8352*** as such. This will affect the creation of libtool libraries that
8353*** depend on shared libraries, but programs linked with such libtool
8354*** libraries will work regardless of this problem. Nevertheless, you
8355*** may want to report the problem to your system manager and/or to
8356*** bug-libtool@gnu.org
8357
8358_LT_EOF
8359 fi ;;
8360 esac
8361 fi
8362 break
8363 fi
8364 done
8365 IFS="$lt_save_ifs"
8366 MAGIC_CMD="$lt_save_MAGIC_CMD"
8367 ;;
8368esac
8369fi
8370
8371MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372if test -n "$MAGIC_CMD"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8374$as_echo "$MAGIC_CMD" >&6; }
8375else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377$as_echo "no" >&6; }
8378fi
8379
8380
8381
8382
8383
8384if test -z "$lt_cv_path_MAGIC_CMD"; then
8385 if test -n "$ac_tool_prefix"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8387$as_echo_n "checking for file... " >&6; }
8388if ${lt_cv_path_MAGIC_CMD+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390else
8391 case $MAGIC_CMD in
8392[\\/*] | ?:[\\/]*)
8393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8394 ;;
8395*)
8396 lt_save_MAGIC_CMD="$MAGIC_CMD"
8397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8399 for ac_dir in $ac_dummy; do
8400 IFS="$lt_save_ifs"
8401 test -z "$ac_dir" && ac_dir=.
8402 if test -f $ac_dir/file; then
8403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8404 if test -n "$file_magic_test_file"; then
8405 case $deplibs_check_method in
8406 "file_magic "*)
8407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8410 $EGREP "$file_magic_regex" > /dev/null; then
8411 :
8412 else
8413 cat <<_LT_EOF 1>&2
8414
8415*** Warning: the command libtool uses to detect shared libraries,
8416*** $file_magic_cmd, produces output that libtool cannot recognize.
8417*** The result is that libtool may fail to recognize shared libraries
8418*** as such. This will affect the creation of libtool libraries that
8419*** depend on shared libraries, but programs linked with such libtool
8420*** libraries will work regardless of this problem. Nevertheless, you
8421*** may want to report the problem to your system manager and/or to
8422*** bug-libtool@gnu.org
8423
8424_LT_EOF
8425 fi ;;
8426 esac
8427 fi
8428 break
8429 fi
8430 done
8431 IFS="$lt_save_ifs"
8432 MAGIC_CMD="$lt_save_MAGIC_CMD"
8433 ;;
8434esac
8435fi
8436
8437MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438if test -n "$MAGIC_CMD"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8440$as_echo "$MAGIC_CMD" >&6; }
8441else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443$as_echo "no" >&6; }
8444fi
8445
8446
8447 else
8448 MAGIC_CMD=:
8449 fi
8450fi
8451
8452 fi
8453 ;;
8454esac
8455
8456# Use C for the default configuration in the libtool script
8457
8458lt_save_CC="$CC"
8459ac_ext=c
8460ac_cpp='$CPP $CPPFLAGS'
8461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8463ac_compiler_gnu=$ac_cv_c_compiler_gnu
8464
8465
8466# Source file extension for C test sources.
8467ac_ext=c
8468
8469# Object file extension for compiled C test sources.
8470objext=o
8471objext=$objext
8472
8473# Code to be used in simple compile tests
8474lt_simple_compile_test_code="int some_variable = 0;"
8475
8476# Code to be used in simple link tests
8477lt_simple_link_test_code='int main(){return(0);}'
8478
8479
8480
8481
8482
8483
8484
8485# If no C compiler was specified, use CC.
8486LTCC=${LTCC-"$CC"}
8487
8488# If no C compiler flags were specified, use CFLAGS.
8489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8490
8491# Allow CC to be a program name with arguments.
8492compiler=$CC
8493
8494# Save the default compiler, since it gets overwritten when the other
8495# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8496compiler_DEFAULT=$CC
8497
8498# save warnings/boilerplate of simple test code
8499ac_outfile=conftest.$ac_objext
8500echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8501eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502_lt_compiler_boilerplate=`cat conftest.err`
8503$RM conftest*
8504
8505ac_outfile=conftest.$ac_objext
8506echo "$lt_simple_link_test_code" >conftest.$ac_ext
8507eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8508_lt_linker_boilerplate=`cat conftest.err`
8509$RM -r conftest*
8510
8511
8512if test -n "$compiler"; then
8513
8514lt_prog_compiler_no_builtin_flag=
8515
8516if test "$GCC" = yes; then
8517 case $cc_basename in
8518 nvcc*)
8519 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8520 *)
8521 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8522 esac
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8525$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8526if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528else
8529 lt_cv_prog_compiler_rtti_exceptions=no
8530 ac_outfile=conftest.$ac_objext
8531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532 lt_compiler_flag="-fno-rtti -fno-exceptions"
8533 # Insert the option either (1) after the last *FLAGS variable, or
8534 # (2) before a word containing "conftest.", or (3) at the end.
8535 # Note that $ac_compile itself does not contain backslashes and begins
8536 # with a dollar sign (not a hyphen), so the echo should work correctly.
8537 # The option is referenced via a variable to avoid confusing sed.
8538 lt_compile=`echo "$ac_compile" | $SED \
8539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541 -e 's:$: $lt_compiler_flag:'`
8542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8543 (eval "$lt_compile" 2>conftest.err)
8544 ac_status=$?
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 if (exit $ac_status) && test -s "$ac_outfile"; then
8548 # The compiler can only warn and ignore the option if not recognized
8549 # So say no if there are warnings other than the usual output.
8550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8553 lt_cv_prog_compiler_rtti_exceptions=yes
8554 fi
8555 fi
8556 $RM conftest*
8557
8558fi
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8560$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8561
8562if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8563 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8564else
8565 :
8566fi
8567
8568fi
8569
8570
8571
8572
8573
8574
8575 lt_prog_compiler_wl=
8576lt_prog_compiler_pic=
8577lt_prog_compiler_static=
8578
8579
8580 if test "$GCC" = yes; then
8581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_static='-static'
8583
8584 case $host_os in
8585 aix*)
8586 # All AIX code is PIC.
8587 if test "$host_cpu" = ia64; then
8588 # AIX 5 now supports IA64 processor
8589 lt_prog_compiler_static='-Bstatic'
8590 fi
8591 ;;
8592
8593 amigaos*)
8594 case $host_cpu in
8595 powerpc)
8596 # see comment about AmigaOS4 .so support
8597 lt_prog_compiler_pic='-fPIC'
8598 ;;
8599 m68k)
8600 # FIXME: we need at least 68020 code to build shared libraries, but
8601 # adding the `-m68020' flag to GCC prevents building anything better,
8602 # like `-m68040'.
8603 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8604 ;;
8605 esac
8606 ;;
8607
8608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8609 # PIC is the default for these OSes.
8610 ;;
8611
8612 mingw* | cygwin* | pw32* | os2* | cegcc*)
8613 # This hack is so that the source file can tell whether it is being
8614 # built for inclusion in a dll (and should export symbols for example).
8615 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8616 # (--disable-auto-import) libraries
8617 lt_prog_compiler_pic='-DDLL_EXPORT'
8618 ;;
8619
8620 darwin* | rhapsody*)
8621 # PIC is the default on this platform
8622 # Common symbols not allowed in MH_DYLIB files
8623 lt_prog_compiler_pic='-fno-common'
8624 ;;
8625
8626 haiku*)
8627 # PIC is the default for Haiku.
8628 # The "-static" flag exists, but is broken.
8629 lt_prog_compiler_static=
8630 ;;
8631
8632 hpux*)
8633 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8634 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8635 # sets the default TLS model and affects inlining.
8636 case $host_cpu in
8637 hppa*64*)
8638 # +Z the default
8639 ;;
8640 *)
8641 lt_prog_compiler_pic='-fPIC'
8642 ;;
8643 esac
8644 ;;
8645
8646 interix[3-9]*)
8647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8648 # Instead, we relocate shared libraries at runtime.
8649 ;;
8650
8651 msdosdjgpp*)
8652 # Just because we use GCC doesn't mean we suddenly get shared libraries
8653 # on systems that don't support them.
8654 lt_prog_compiler_can_build_shared=no
8655 enable_shared=no
8656 ;;
8657
8658 *nto* | *qnx*)
8659 # QNX uses GNU C++, but need to define -shared option too, otherwise
8660 # it will coredump.
8661 lt_prog_compiler_pic='-fPIC -shared'
8662 ;;
8663
8664 sysv4*MP*)
8665 if test -d /usr/nec; then
8666 lt_prog_compiler_pic=-Kconform_pic
8667 fi
8668 ;;
8669
8670 *)
8671 lt_prog_compiler_pic='-fPIC'
8672 ;;
8673 esac
8674
8675 case $cc_basename in
8676 nvcc*) # Cuda Compiler Driver 2.2
8677 lt_prog_compiler_wl='-Xlinker '
8678 if test -n "$lt_prog_compiler_pic"; then
8679 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8680 fi
8681 ;;
8682 esac
8683 else
8684 # PORTME Check for flag to pass linker flags through the system compiler.
8685 case $host_os in
8686 aix*)
8687 lt_prog_compiler_wl='-Wl,'
8688 if test "$host_cpu" = ia64; then
8689 # AIX 5 now supports IA64 processor
8690 lt_prog_compiler_static='-Bstatic'
8691 else
8692 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8693 fi
8694 ;;
8695
8696 mingw* | cygwin* | pw32* | os2* | cegcc*)
8697 # This hack is so that the source file can tell whether it is being
8698 # built for inclusion in a dll (and should export symbols for example).
8699 lt_prog_compiler_pic='-DDLL_EXPORT'
8700 ;;
8701
8702 hpux9* | hpux10* | hpux11*)
8703 lt_prog_compiler_wl='-Wl,'
8704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8705 # not for PA HP-UX.
8706 case $host_cpu in
8707 hppa*64*|ia64*)
8708 # +Z the default
8709 ;;
8710 *)
8711 lt_prog_compiler_pic='+Z'
8712 ;;
8713 esac
8714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8715 lt_prog_compiler_static='${wl}-a ${wl}archive'
8716 ;;
8717
8718 irix5* | irix6* | nonstopux*)
8719 lt_prog_compiler_wl='-Wl,'
8720 # PIC (with -KPIC) is the default.
8721 lt_prog_compiler_static='-non_shared'
8722 ;;
8723
8724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8725 case $cc_basename in
8726 # old Intel for x86_64 which still supported -KPIC.
8727 ecc*)
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-static'
8731 ;;
8732 # icc used to be incompatible with GCC.
8733 # ICC 10 doesn't accept -KPIC any more.
8734 icc* | ifort*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-fPIC'
8737 lt_prog_compiler_static='-static'
8738 ;;
8739 # Lahey Fortran 8.1.
8740 lf95*)
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_pic='--shared'
8743 lt_prog_compiler_static='--static'
8744 ;;
8745 nagfor*)
8746 # NAG Fortran compiler
8747 lt_prog_compiler_wl='-Wl,-Wl,,'
8748 lt_prog_compiler_pic='-PIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 ;;
8751 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8752 # Portland Group compilers (*not* the Pentium gcc compiler,
8753 # which looks to be a dead project)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-fpic'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758 ccc*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # All Alpha code is PIC.
8761 lt_prog_compiler_static='-non_shared'
8762 ;;
8763 xl* | bgxl* | bgf* | mpixl*)
8764 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_pic='-qpic'
8767 lt_prog_compiler_static='-qstaticlink'
8768 ;;
8769 *)
8770 case `$CC -V 2>&1 | sed 5q` in
8771 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8772 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8773 lt_prog_compiler_pic='-KPIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 lt_prog_compiler_wl=''
8776 ;;
8777 *Sun\ F* | *Sun*Fortran*)
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 lt_prog_compiler_wl='-Qoption ld '
8781 ;;
8782 *Sun\ C*)
8783 # Sun C 5.9
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-Bstatic'
8786 lt_prog_compiler_wl='-Wl,'
8787 ;;
8788 *Intel*\ [CF]*Compiler*)
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_pic='-fPIC'
8791 lt_prog_compiler_static='-static'
8792 ;;
8793 *Portland\ Group*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='-fpic'
8796 lt_prog_compiler_static='-Bstatic'
8797 ;;
8798 esac
8799 ;;
8800 esac
8801 ;;
8802
8803 newsos6)
8804 lt_prog_compiler_pic='-KPIC'
8805 lt_prog_compiler_static='-Bstatic'
8806 ;;
8807
8808 *nto* | *qnx*)
8809 # QNX uses GNU C++, but need to define -shared option too, otherwise
8810 # it will coredump.
8811 lt_prog_compiler_pic='-fPIC -shared'
8812 ;;
8813
8814 osf3* | osf4* | osf5*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # All OSF/1 code is PIC.
8817 lt_prog_compiler_static='-non_shared'
8818 ;;
8819
8820 rdos*)
8821 lt_prog_compiler_static='-non_shared'
8822 ;;
8823
8824 solaris*)
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-Bstatic'
8827 case $cc_basename in
8828 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8829 lt_prog_compiler_wl='-Qoption ld ';;
8830 *)
8831 lt_prog_compiler_wl='-Wl,';;
8832 esac
8833 ;;
8834
8835 sunos4*)
8836 lt_prog_compiler_wl='-Qoption ld '
8837 lt_prog_compiler_pic='-PIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 ;;
8840
8841 sysv4 | sysv4.2uw2* | sysv4.3*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8845 ;;
8846
8847 sysv4*MP*)
8848 if test -d /usr/nec ;then
8849 lt_prog_compiler_pic='-Kconform_pic'
8850 lt_prog_compiler_static='-Bstatic'
8851 fi
8852 ;;
8853
8854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_pic='-KPIC'
8857 lt_prog_compiler_static='-Bstatic'
8858 ;;
8859
8860 unicos*)
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_can_build_shared=no
8863 ;;
8864
8865 uts4*)
8866 lt_prog_compiler_pic='-pic'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
8869
8870 *)
8871 lt_prog_compiler_can_build_shared=no
8872 ;;
8873 esac
8874 fi
8875
8876case $host_os in
8877 # For platforms which do not support PIC, -DPIC is meaningless:
8878 *djgpp*)
8879 lt_prog_compiler_pic=
8880 ;;
8881 *)
8882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8883 ;;
8884esac
8885
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8887$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8888if ${lt_cv_prog_compiler_pic+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890else
8891 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8894$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8895lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8896
8897#
8898# Check to make sure the PIC flag actually works.
8899#
8900if test -n "$lt_prog_compiler_pic"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8902$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8903if ${lt_cv_prog_compiler_pic_works+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905else
8906 lt_cv_prog_compiler_pic_works=no
8907 ac_outfile=conftest.$ac_objext
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 # The option is referenced via a variable to avoid confusing sed.
8915 lt_compile=`echo "$ac_compile" | $SED \
8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918 -e 's:$: $lt_compiler_flag:'`
8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920 (eval "$lt_compile" 2>conftest.err)
8921 ac_status=$?
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 if (exit $ac_status) && test -s "$ac_outfile"; then
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings other than the usual output.
8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_pic_works=yes
8931 fi
8932 fi
8933 $RM conftest*
8934
8935fi
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8937$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8938
8939if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8940 case $lt_prog_compiler_pic in
8941 "" | " "*) ;;
8942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8943 esac
8944else
8945 lt_prog_compiler_pic=
8946 lt_prog_compiler_can_build_shared=no
8947fi
8948
8949fi
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961#
8962# Check to make sure the static flag actually works.
8963#
8964wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8966$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8967if ${lt_cv_prog_compiler_static_works+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969else
8970 lt_cv_prog_compiler_static_works=no
8971 save_LDFLAGS="$LDFLAGS"
8972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8975 # The linker can only warn and ignore the option if not recognized
8976 # So say no if there are warnings
8977 if test -s conftest.err; then
8978 # Append any errors to the config.log.
8979 cat conftest.err 1>&5
8980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982 if diff conftest.exp conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_static_works=yes
8984 fi
8985 else
8986 lt_cv_prog_compiler_static_works=yes
8987 fi
8988 fi
8989 $RM -r conftest*
8990 LDFLAGS="$save_LDFLAGS"
8991
8992fi
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8994$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8995
8996if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8997 :
8998else
8999 lt_prog_compiler_static=
9000fi
9001
9002
9003
9004
9005
9006
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9009$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9010if ${lt_cv_prog_compiler_c_o+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012else
9013 lt_cv_prog_compiler_c_o=no
9014 $RM -r conftest 2>/dev/null
9015 mkdir conftest
9016 cd conftest
9017 mkdir out
9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9019
9020 lt_compiler_flag="-o out/conftest2.$ac_objext"
9021 # Insert the option either (1) after the last *FLAGS variable, or
9022 # (2) before a word containing "conftest.", or (3) at the end.
9023 # Note that $ac_compile itself does not contain backslashes and begins
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
9025 lt_compile=`echo "$ac_compile" | $SED \
9026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9028 -e 's:$: $lt_compiler_flag:'`
9029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9030 (eval "$lt_compile" 2>out/conftest.err)
9031 ac_status=$?
9032 cat out/conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9035 then
9036 # The compiler can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_c_o=yes
9042 fi
9043 fi
9044 chmod u+w . 2>&5
9045 $RM conftest*
9046 # SGI C++ compiler will create directory out/ii_files/ for
9047 # template instantiation
9048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9049 $RM out/* && rmdir out
9050 cd ..
9051 $RM -r conftest
9052 $RM conftest*
9053
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9056$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9057
9058
9059
9060
9061
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9064$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9065if ${lt_cv_prog_compiler_c_o+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067else
9068 lt_cv_prog_compiler_c_o=no
9069 $RM -r conftest 2>/dev/null
9070 mkdir conftest
9071 cd conftest
9072 mkdir out
9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9074
9075 lt_compiler_flag="-o out/conftest2.$ac_objext"
9076 # Insert the option either (1) after the last *FLAGS variable, or
9077 # (2) before a word containing "conftest.", or (3) at the end.
9078 # Note that $ac_compile itself does not contain backslashes and begins
9079 # with a dollar sign (not a hyphen), so the echo should work correctly.
9080 lt_compile=`echo "$ac_compile" | $SED \
9081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9083 -e 's:$: $lt_compiler_flag:'`
9084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9085 (eval "$lt_compile" 2>out/conftest.err)
9086 ac_status=$?
9087 cat out/conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9090 then
9091 # The compiler can only warn and ignore the option if not recognized
9092 # So say no if there are warnings
9093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9096 lt_cv_prog_compiler_c_o=yes
9097 fi
9098 fi
9099 chmod u+w . 2>&5
9100 $RM conftest*
9101 # SGI C++ compiler will create directory out/ii_files/ for
9102 # template instantiation
9103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9104 $RM out/* && rmdir out
9105 cd ..
9106 $RM -r conftest
9107 $RM conftest*
9108
9109fi
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9111$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9112
9113
9114
9115
9116hard_links="nottested"
9117if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9118 # do not overwrite the value of need_locks provided by the user
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9120$as_echo_n "checking if we can lock with hard links... " >&6; }
9121 hard_links=yes
9122 $RM conftest*
9123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9124 touch conftest.a
9125 ln conftest.a conftest.b 2>&5 || hard_links=no
9126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9128$as_echo "$hard_links" >&6; }
9129 if test "$hard_links" = no; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9131$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9132 need_locks=warn
9133 fi
9134else
9135 need_locks=no
9136fi
9137
9138
9139
9140
9141
9142
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9144$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9145
9146 runpath_var=
9147 allow_undefined_flag=
9148 always_export_symbols=no
9149 archive_cmds=
9150 archive_expsym_cmds=
9151 compiler_needs_object=no
9152 enable_shared_with_static_runtimes=no
9153 export_dynamic_flag_spec=
9154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9155 hardcode_automatic=no
9156 hardcode_direct=no
9157 hardcode_direct_absolute=no
9158 hardcode_libdir_flag_spec=
9159 hardcode_libdir_separator=
9160 hardcode_minus_L=no
9161 hardcode_shlibpath_var=unsupported
9162 inherit_rpath=no
9163 link_all_deplibs=unknown
9164 module_cmds=
9165 module_expsym_cmds=
9166 old_archive_from_new_cmds=
9167 old_archive_from_expsyms_cmds=
9168 thread_safe_flag_spec=
9169 whole_archive_flag_spec=
9170 # include_expsyms should be a list of space-separated symbols to be *always*
9171 # included in the symbol list
9172 include_expsyms=
9173 # exclude_expsyms can be an extended regexp of symbols to exclude
9174 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9175 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9176 # as well as any symbol that contains `d'.
9177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9179 # platforms (ab)use it in PIC code, but their linkers get confused if
9180 # the symbol is explicitly referenced. Since portable code cannot
9181 # rely on this symbol name, it's probably fine to never include it in
9182 # preloaded symbol tables.
9183 # Exclude shared library initialization/finalization symbols.
9184 extract_expsyms_cmds=
9185
9186 case $host_os in
9187 cygwin* | mingw* | pw32* | cegcc*)
9188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9189 # When not using gcc, we currently assume that we are using
9190 # Microsoft Visual C++.
9191 if test "$GCC" != yes; then
9192 with_gnu_ld=no
9193 fi
9194 ;;
9195 interix*)
9196 # we just hope/assume this is gcc and not c89 (= MSVC++)
9197 with_gnu_ld=yes
9198 ;;
9199 openbsd*)
9200 with_gnu_ld=no
9201 ;;
9202 esac
9203
9204 ld_shlibs=yes
9205
9206 # On some targets, GNU ld is compatible enough with the native linker
9207 # that we're better off using the native interface for both.
9208 lt_use_gnu_ld_interface=no
9209 if test "$with_gnu_ld" = yes; then
9210 case $host_os in
9211 aix*)
9212 # The AIX port of GNU ld has always aspired to compatibility
9213 # with the native linker. However, as the warning in the GNU ld
9214 # block says, versions before 2.19.5* couldn't really create working
9215 # shared libraries, regardless of the interface used.
9216 case `$LD -v 2>&1` in
9217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9219 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9220 *)
9221 lt_use_gnu_ld_interface=yes
9222 ;;
9223 esac
9224 ;;
9225 *)
9226 lt_use_gnu_ld_interface=yes
9227 ;;
9228 esac
9229 fi
9230
9231 if test "$lt_use_gnu_ld_interface" = yes; then
9232 # If archive_cmds runs LD, not CC, wlarc should be empty
9233 wlarc='${wl}'
9234
9235 # Set some defaults for GNU ld with shared library support. These
9236 # are reset later if shared libraries are not supported. Putting them
9237 # here allows them to be overridden if necessary.
9238 runpath_var=LD_RUN_PATH
9239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240 export_dynamic_flag_spec='${wl}--export-dynamic'
9241 # ancient GNU ld didn't support --whole-archive et. al.
9242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9243 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9244 else
9245 whole_archive_flag_spec=
9246 fi
9247 supports_anon_versioning=no
9248 case `$LD -v 2>&1` in
9249 *GNU\ gold*) supports_anon_versioning=yes ;;
9250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9253 *\ 2.11.*) ;; # other 2.11 versions
9254 *) supports_anon_versioning=yes ;;
9255 esac
9256
9257 # See if GNU ld supports shared libraries.
9258 case $host_os in
9259 aix[3-9]*)
9260 # On AIX/PPC, the GNU linker is very broken
9261 if test "$host_cpu" != ia64; then
9262 ld_shlibs=no
9263 cat <<_LT_EOF 1>&2
9264
9265*** Warning: the GNU linker, at least up to release 2.19, is reported
9266*** to be unable to reliably create shared libraries on AIX.
9267*** Therefore, libtool is disabling shared libraries support. If you
9268*** really care for shared libraries, you may want to install binutils
9269*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9270*** You will then need to restart the configuration process.
9271
9272_LT_EOF
9273 fi
9274 ;;
9275
9276 amigaos*)
9277 case $host_cpu in
9278 powerpc)
9279 # see comment about AmigaOS4 .so support
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 archive_expsym_cmds=''
9282 ;;
9283 m68k)
9284 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)'
9285 hardcode_libdir_flag_spec='-L$libdir'
9286 hardcode_minus_L=yes
9287 ;;
9288 esac
9289 ;;
9290
9291 beos*)
9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293 allow_undefined_flag=unsupported
9294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9295 # support --undefined. This deserves some investigation. FIXME
9296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9297 else
9298 ld_shlibs=no
9299 fi
9300 ;;
9301
9302 cygwin* | mingw* | pw32* | cegcc*)
9303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9304 # as there is no search path for DLLs.
9305 hardcode_libdir_flag_spec='-L$libdir'
9306 export_dynamic_flag_spec='${wl}--export-all-symbols'
9307 allow_undefined_flag=unsupported
9308 always_export_symbols=no
9309 enable_shared_with_static_runtimes=yes
9310 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'
9311 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9312
9313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9315 # If the export-symbols file already is a .def file (1st line
9316 # is EXPORTS), use it as is; otherwise, prepend...
9317 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9318 cp $export_symbols $output_objdir/$soname.def;
9319 else
9320 echo EXPORTS > $output_objdir/$soname.def;
9321 cat $export_symbols >> $output_objdir/$soname.def;
9322 fi~
9323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9324 else
9325 ld_shlibs=no
9326 fi
9327 ;;
9328
9329 haiku*)
9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 link_all_deplibs=yes
9332 ;;
9333
9334 interix[3-9]*)
9335 hardcode_direct=no
9336 hardcode_shlibpath_var=no
9337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9338 export_dynamic_flag_spec='${wl}-E'
9339 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9340 # Instead, shared libraries are loaded at an image base (0x10000000 by
9341 # default) and relocated if they conflict, which is a slow very memory
9342 # consuming and fragmenting process. To avoid this, we pick a random,
9343 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9344 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9346 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'
9347 ;;
9348
9349 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9350 tmp_diet=no
9351 if test "$host_os" = linux-dietlibc; then
9352 case $cc_basename in
9353 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9354 esac
9355 fi
9356 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9357 && test "$tmp_diet" = no
9358 then
9359 tmp_addflag=' $pic_flag'
9360 tmp_sharedflag='-shared'
9361 case $cc_basename,$host_cpu in
9362 pgcc*) # Portland Group C compiler
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'
9365 ;;
9366 pgf77* | pgf90* | pgf95* | pgfortran*)
9367 # Portland Group f77 and f90 compilers
9368 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'
9369 tmp_addflag=' $pic_flag -Mnomain' ;;
9370 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9371 tmp_addflag=' -i_dynamic' ;;
9372 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9373 tmp_addflag=' -i_dynamic -nofor_main' ;;
9374 ifc* | ifort*) # Intel Fortran compiler
9375 tmp_addflag=' -nofor_main' ;;
9376 lf95*) # Lahey Fortran 8.1
9377 whole_archive_flag_spec=
9378 tmp_sharedflag='--shared' ;;
9379 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9380 tmp_sharedflag='-qmkshrobj'
9381 tmp_addflag= ;;
9382 nvcc*) # Cuda Compiler Driver 2.2
9383 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'
9384 compiler_needs_object=yes
9385 ;;
9386 esac
9387 case `$CC -V 2>&1 | sed 5q` in
9388 *Sun\ C*) # Sun C 5.9
9389 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'
9390 compiler_needs_object=yes
9391 tmp_sharedflag='-G' ;;
9392 *Sun\ F*) # Sun Fortran 8.3
9393 tmp_sharedflag='-G' ;;
9394 esac
9395 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396
9397 if test "x$supports_anon_versioning" = xyes; then
9398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400 echo "local: *; };" >> $output_objdir/$libname.ver~
9401 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9402 fi
9403
9404 case $cc_basename in
9405 xlf* | bgf* | bgxlf* | mpixlf*)
9406 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9407 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9410 if test "x$supports_anon_versioning" = xyes; then
9411 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9413 echo "local: *; };" >> $output_objdir/$libname.ver~
9414 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9415 fi
9416 ;;
9417 esac
9418 else
9419 ld_shlibs=no
9420 fi
9421 ;;
9422
9423 netbsd*)
9424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9425 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9426 wlarc=
9427 else
9428 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 fi
9431 ;;
9432
9433 solaris*)
9434 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9435 ld_shlibs=no
9436 cat <<_LT_EOF 1>&2
9437
9438*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9439*** create shared libraries on Solaris systems. Therefore, libtool
9440*** is disabling shared libraries support. We urge you to upgrade GNU
9441*** binutils to release 2.9.1 or newer. Another option is to modify
9442*** your PATH or compiler configuration so that the native linker is
9443*** used, and then restart.
9444
9445_LT_EOF
9446 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9449 else
9450 ld_shlibs=no
9451 fi
9452 ;;
9453
9454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9455 case `$LD -v 2>&1` in
9456 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9457 ld_shlibs=no
9458 cat <<_LT_EOF 1>&2
9459
9460*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9461*** reliably create shared libraries on SCO systems. Therefore, libtool
9462*** is disabling shared libraries support. We urge you to upgrade GNU
9463*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9464*** your PATH or compiler configuration so that the native linker is
9465*** used, and then restart.
9466
9467_LT_EOF
9468 ;;
9469 *)
9470 # For security reasons, it is highly recommended that you always
9471 # use absolute paths for naming shared libraries, and exclude the
9472 # DT_RUNPATH tag from executables and libraries. But doing so
9473 # requires that you compile everything twice, which is a pain.
9474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9478 else
9479 ld_shlibs=no
9480 fi
9481 ;;
9482 esac
9483 ;;
9484
9485 sunos4*)
9486 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9487 wlarc=
9488 hardcode_direct=yes
9489 hardcode_shlibpath_var=no
9490 ;;
9491
9492 *)
9493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9496 else
9497 ld_shlibs=no
9498 fi
9499 ;;
9500 esac
9501
9502 if test "$ld_shlibs" = no; then
9503 runpath_var=
9504 hardcode_libdir_flag_spec=
9505 export_dynamic_flag_spec=
9506 whole_archive_flag_spec=
9507 fi
9508 else
9509 # PORTME fill in a description of your system's linker (not GNU ld)
9510 case $host_os in
9511 aix3*)
9512 allow_undefined_flag=unsupported
9513 always_export_symbols=yes
9514 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'
9515 # Note: this linker hardcodes the directories in LIBPATH if there
9516 # are no directories specified by -L.
9517 hardcode_minus_L=yes
9518 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9519 # Neither direct hardcoding nor static linking is supported with a
9520 # broken collect2.
9521 hardcode_direct=unsupported
9522 fi
9523 ;;
9524
9525 aix[4-9]*)
9526 if test "$host_cpu" = ia64; then
9527 # On IA64, the linker does run time linking by default, so we don't
9528 # have to do anything special.
9529 aix_use_runtimelinking=no
9530 exp_sym_flag='-Bexport'
9531 no_entry_flag=""
9532 else
9533 # If we're using GNU nm, then we don't want the "-C" option.
9534 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9535 # Also, AIX nm treats weak defined symbols like other global
9536 # defined symbols, whereas GNU nm marks them as "W".
9537 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9538 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'
9539 else
9540 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'
9541 fi
9542 aix_use_runtimelinking=no
9543
9544 # Test if we are trying to use run time linking or normal
9545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9546 # need to do runtime linking.
9547 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9548 for ld_flag in $LDFLAGS; do
9549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9550 aix_use_runtimelinking=yes
9551 break
9552 fi
9553 done
9554 ;;
9555 esac
9556
9557 exp_sym_flag='-bexport'
9558 no_entry_flag='-bnoentry'
9559 fi
9560
9561 # When large executables or shared objects are built, AIX ld can
9562 # have problems creating the table of contents. If linking a library
9563 # or program results in "error TOC overflow" add -mminimal-toc to
9564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9566
9567 archive_cmds=''
9568 hardcode_direct=yes
9569 hardcode_direct_absolute=yes
9570 hardcode_libdir_separator=':'
9571 link_all_deplibs=yes
9572 file_list_spec='${wl}-f,'
9573
9574 if test "$GCC" = yes; then
9575 case $host_os in aix4.[012]|aix4.[012].*)
9576 # We only want to do this on AIX 4.2 and lower, the check
9577 # below for broken collect2 doesn't work under 4.3+
9578 collect2name=`${CC} -print-prog-name=collect2`
9579 if test -f "$collect2name" &&
9580 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9581 then
9582 # We have reworked collect2
9583 :
9584 else
9585 # We have old collect2
9586 hardcode_direct=unsupported
9587 # It fails to find uninstalled libraries when the uninstalled
9588 # path is not listed in the libpath. Setting hardcode_minus_L
9589 # to unsupported forces relinking
9590 hardcode_minus_L=yes
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 hardcode_libdir_separator=
9593 fi
9594 ;;
9595 esac
9596 shared_flag='-shared'
9597 if test "$aix_use_runtimelinking" = yes; then
9598 shared_flag="$shared_flag "'${wl}-G'
9599 fi
9600 else
9601 # not using gcc
9602 if test "$host_cpu" = ia64; then
9603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9604 # chokes on -Wl,-G. The following line is correct:
9605 shared_flag='-G'
9606 else
9607 if test "$aix_use_runtimelinking" = yes; then
9608 shared_flag='${wl}-G'
9609 else
9610 shared_flag='${wl}-bM:SRE'
9611 fi
9612 fi
9613 fi
9614
9615 export_dynamic_flag_spec='${wl}-bexpall'
9616 # It seems that -bexpall does not export symbols beginning with
9617 # underscore (_), so it is better to generate a list of symbols to export.
9618 always_export_symbols=yes
9619 if test "$aix_use_runtimelinking" = yes; then
9620 # Warning - without using the other runtime loading flags (-brtl),
9621 # -berok will link without error, but may produce a broken library.
9622 allow_undefined_flag='-berok'
9623 # Determine the default libpath from the value encoded in an
9624 # empty executable.
9625 if test "${lt_cv_aix_libpath+set}" = set; then
9626 aix_libpath=$lt_cv_aix_libpath
9627else
9628 if ${lt_cv_aix_libpath_+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630else
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632/* end confdefs.h. */
9633
9634int
9635main ()
9636{
9637
9638 ;
9639 return 0;
9640}
9641_ACEOF
9642if ac_fn_c_try_link "$LINENO"; then :
9643
9644 lt_aix_libpath_sed='
9645 /Import File Strings/,/^$/ {
9646 /^0/ {
9647 s/^0 *\([^ ]*\) *$/\1/
9648 p
9649 }
9650 }'
9651 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9652 # Check for a 64-bit object if we didn't find anything.
9653 if test -z "$lt_cv_aix_libpath_"; then
9654 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9655 fi
9656fi
9657rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 if test -z "$lt_cv_aix_libpath_"; then
9660 lt_cv_aix_libpath_="/usr/lib:/lib"
9661 fi
9662
9663fi
9664
9665 aix_libpath=$lt_cv_aix_libpath_
9666fi
9667
9668 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9669 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"
9670 else
9671 if test "$host_cpu" = ia64; then
9672 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9673 allow_undefined_flag="-z nodefs"
9674 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"
9675 else
9676 # Determine the default libpath from the value encoded in an
9677 # empty executable.
9678 if test "${lt_cv_aix_libpath+set}" = set; then
9679 aix_libpath=$lt_cv_aix_libpath
9680else
9681 if ${lt_cv_aix_libpath_+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h. */
9686
9687int
9688main ()
9689{
9690
9691 ;
9692 return 0;
9693}
9694_ACEOF
9695if ac_fn_c_try_link "$LINENO"; then :
9696
9697 lt_aix_libpath_sed='
9698 /Import File Strings/,/^$/ {
9699 /^0/ {
9700 s/^0 *\([^ ]*\) *$/\1/
9701 p
9702 }
9703 }'
9704 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9705 # Check for a 64-bit object if we didn't find anything.
9706 if test -z "$lt_cv_aix_libpath_"; then
9707 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 fi
9709fi
9710rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$lt_cv_aix_libpath_"; then
9713 lt_cv_aix_libpath_="/usr/lib:/lib"
9714 fi
9715
9716fi
9717
9718 aix_libpath=$lt_cv_aix_libpath_
9719fi
9720
9721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9722 # Warning - without using the other run time loading flags,
9723 # -berok will link without error, but may produce a broken library.
9724 no_undefined_flag=' ${wl}-bernotok'
9725 allow_undefined_flag=' ${wl}-berok'
9726 if test "$with_gnu_ld" = yes; then
9727 # We only use this code for GNU lds that support --whole-archive.
9728 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9729 else
9730 # Exported symbols can be pulled into shared objects from archives
9731 whole_archive_flag_spec='$convenience'
9732 fi
9733 archive_cmds_need_lc=yes
9734 # This is similar to how AIX traditionally builds its shared libraries.
9735 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'
9736 fi
9737 fi
9738 ;;
9739
9740 amigaos*)
9741 case $host_cpu in
9742 powerpc)
9743 # see comment about AmigaOS4 .so support
9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745 archive_expsym_cmds=''
9746 ;;
9747 m68k)
9748 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)'
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_minus_L=yes
9751 ;;
9752 esac
9753 ;;
9754
9755 bsdi[45]*)
9756 export_dynamic_flag_spec=-rdynamic
9757 ;;
9758
9759 cygwin* | mingw* | pw32* | cegcc*)
9760 # When not using gcc, we currently assume that we are using
9761 # Microsoft Visual C++.
9762 # hardcode_libdir_flag_spec is actually meaningless, as there is
9763 # no search path for DLLs.
9764 case $cc_basename in
9765 cl*)
9766 # Native MSVC
9767 hardcode_libdir_flag_spec=' '
9768 allow_undefined_flag=unsupported
9769 always_export_symbols=yes
9770 file_list_spec='@'
9771 # Tell ltmain to make .lib files, not .a files.
9772 libext=lib
9773 # Tell ltmain to make .dll files, not .so files.
9774 shrext_cmds=".dll"
9775 # FIXME: Setting linknames here is a bad hack.
9776 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9777 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9778 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9779 else
9780 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9781 fi~
9782 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9783 linknames='
9784 # The linker will not automatically build a static lib if we build a DLL.
9785 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9786 enable_shared_with_static_runtimes=yes
9787 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9789 # Don't use ranlib
9790 old_postinstall_cmds='chmod 644 $oldlib'
9791 postlink_cmds='lt_outputfile="@OUTPUT@"~
9792 lt_tool_outputfile="@TOOL_OUTPUT@"~
9793 case $lt_outputfile in
9794 *.exe|*.EXE) ;;
9795 *)
9796 lt_outputfile="$lt_outputfile.exe"
9797 lt_tool_outputfile="$lt_tool_outputfile.exe"
9798 ;;
9799 esac~
9800 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9801 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9802 $RM "$lt_outputfile.manifest";
9803 fi'
9804 ;;
9805 *)
9806 # Assume MSVC wrapper
9807 hardcode_libdir_flag_spec=' '
9808 allow_undefined_flag=unsupported
9809 # Tell ltmain to make .lib files, not .a files.
9810 libext=lib
9811 # Tell ltmain to make .dll files, not .so files.
9812 shrext_cmds=".dll"
9813 # FIXME: Setting linknames here is a bad hack.
9814 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9815 # The linker will automatically build a .lib file if we build a DLL.
9816 old_archive_from_new_cmds='true'
9817 # FIXME: Should let the user specify the lib program.
9818 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9819 enable_shared_with_static_runtimes=yes
9820 ;;
9821 esac
9822 ;;
9823
9824 darwin* | rhapsody*)
9825
9826
9827 archive_cmds_need_lc=no
9828 hardcode_direct=no
9829 hardcode_automatic=yes
9830 hardcode_shlibpath_var=unsupported
9831 if test "$lt_cv_ld_force_load" = "yes"; then
9832 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\"`'
9833
9834 else
9835 whole_archive_flag_spec=''
9836 fi
9837 link_all_deplibs=yes
9838 allow_undefined_flag="$_lt_dar_allow_undefined"
9839 case $cc_basename in
9840 ifort*) _lt_dar_can_shared=yes ;;
9841 *) _lt_dar_can_shared=$GCC ;;
9842 esac
9843 if test "$_lt_dar_can_shared" = "yes"; then
9844 output_verbose_link_cmd=func_echo_all
9845 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9846 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9847 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}"
9848 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}"
9849
9850 else
9851 ld_shlibs=no
9852 fi
9853
9854 ;;
9855
9856 dgux*)
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_shlibpath_var=no
9860 ;;
9861
9862 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9863 # support. Future versions do this automatically, but an explicit c++rt0.o
9864 # does not break anything, and helps significantly (at the cost of a little
9865 # extra space).
9866 freebsd2.2*)
9867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9868 hardcode_libdir_flag_spec='-R$libdir'
9869 hardcode_direct=yes
9870 hardcode_shlibpath_var=no
9871 ;;
9872
9873 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9874 freebsd2.*)
9875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_direct=yes
9877 hardcode_minus_L=yes
9878 hardcode_shlibpath_var=no
9879 ;;
9880
9881 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9882 freebsd* | dragonfly*)
9883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9884 hardcode_libdir_flag_spec='-R$libdir'
9885 hardcode_direct=yes
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 hpux9*)
9890 if test "$GCC" = yes; then
9891 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'
9892 else
9893 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'
9894 fi
9895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9896 hardcode_libdir_separator=:
9897 hardcode_direct=yes
9898
9899 # hardcode_minus_L: Not really in the search PATH,
9900 # but as the default location of the library.
9901 hardcode_minus_L=yes
9902 export_dynamic_flag_spec='${wl}-E'
9903 ;;
9904
9905 hpux10*)
9906 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9907 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9908 else
9909 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9910 fi
9911 if test "$with_gnu_ld" = no; then
9912 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_direct=yes
9915 hardcode_direct_absolute=yes
9916 export_dynamic_flag_spec='${wl}-E'
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9920 fi
9921 ;;
9922
9923 hpux11*)
9924 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9925 case $host_cpu in
9926 hppa*64*)
9927 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 ;;
9929 ia64*)
9930 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931 ;;
9932 *)
9933 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9934 ;;
9935 esac
9936 else
9937 case $host_cpu in
9938 hppa*64*)
9939 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 ;;
9941 ia64*)
9942 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9943 ;;
9944 *)
9945
9946 # Older versions of the 11.00 compiler do not understand -b yet
9947 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9949$as_echo_n "checking if $CC understands -b... " >&6; }
9950if ${lt_cv_prog_compiler__b+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952else
9953 lt_cv_prog_compiler__b=no
9954 save_LDFLAGS="$LDFLAGS"
9955 LDFLAGS="$LDFLAGS -b"
9956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9958 # The linker can only warn and ignore the option if not recognized
9959 # So say no if there are warnings
9960 if test -s conftest.err; then
9961 # Append any errors to the config.log.
9962 cat conftest.err 1>&5
9963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965 if diff conftest.exp conftest.er2 >/dev/null; then
9966 lt_cv_prog_compiler__b=yes
9967 fi
9968 else
9969 lt_cv_prog_compiler__b=yes
9970 fi
9971 fi
9972 $RM -r conftest*
9973 LDFLAGS="$save_LDFLAGS"
9974
9975fi
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9977$as_echo "$lt_cv_prog_compiler__b" >&6; }
9978
9979if test x"$lt_cv_prog_compiler__b" = xyes; then
9980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981else
9982 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9983fi
9984
9985 ;;
9986 esac
9987 fi
9988 if test "$with_gnu_ld" = no; then
9989 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990 hardcode_libdir_separator=:
9991
9992 case $host_cpu in
9993 hppa*64*|ia64*)
9994 hardcode_direct=no
9995 hardcode_shlibpath_var=no
9996 ;;
9997 *)
9998 hardcode_direct=yes
9999 hardcode_direct_absolute=yes
10000 export_dynamic_flag_spec='${wl}-E'
10001
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10005 ;;
10006 esac
10007 fi
10008 ;;
10009
10010 irix5* | irix6* | nonstopux*)
10011 if test "$GCC" = yes; then
10012 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'
10013 # Try to use the -exported_symbol ld option, if it does not
10014 # work, assume that -exports_file does not work either and
10015 # implicitly export all symbols.
10016 # This should be the same for all languages, so no per-tag cache variable.
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10018$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10019if ${lt_cv_irix_exported_symbol+:} false; then :
10020 $as_echo_n "(cached) " >&6
10021else
10022 save_LDFLAGS="$LDFLAGS"
10023 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h. */
10026int foo (void) { return 0; }
10027_ACEOF
10028if ac_fn_c_try_link "$LINENO"; then :
10029 lt_cv_irix_exported_symbol=yes
10030else
10031 lt_cv_irix_exported_symbol=no
10032fi
10033rm -f core conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035 LDFLAGS="$save_LDFLAGS"
10036fi
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10038$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10039 if test "$lt_cv_irix_exported_symbol" = yes; then
10040 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'
10041 fi
10042 else
10043 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'
10044 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'
10045 fi
10046 archive_cmds_need_lc='no'
10047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10048 hardcode_libdir_separator=:
10049 inherit_rpath=yes
10050 link_all_deplibs=yes
10051 ;;
10052
10053 netbsd*)
10054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10056 else
10057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10058 fi
10059 hardcode_libdir_flag_spec='-R$libdir'
10060 hardcode_direct=yes
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 newsos6)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_direct=yes
10067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068 hardcode_libdir_separator=:
10069 hardcode_shlibpath_var=no
10070 ;;
10071
10072 *nto* | *qnx*)
10073 ;;
10074
10075 openbsd*)
10076 if test -f /usr/libexec/ld.so; then
10077 hardcode_direct=yes
10078 hardcode_shlibpath_var=no
10079 hardcode_direct_absolute=yes
10080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10084 export_dynamic_flag_spec='${wl}-E'
10085 else
10086 case $host_os in
10087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec='-R$libdir'
10090 ;;
10091 *)
10092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10094 ;;
10095 esac
10096 fi
10097 else
10098 ld_shlibs=no
10099 fi
10100 ;;
10101
10102 os2*)
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_minus_L=yes
10105 allow_undefined_flag=unsupported
10106 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'
10107 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10108 ;;
10109
10110 osf3*)
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 else
10115 allow_undefined_flag=' -expect_unresolved \*'
10116 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'
10117 fi
10118 archive_cmds_need_lc='no'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 ;;
10122
10123 osf4* | osf5*) # as osf3* with the addition of -msym flag
10124 if test "$GCC" = yes; then
10125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10126 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'
10127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128 else
10129 allow_undefined_flag=' -expect_unresolved \*'
10130 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'
10131 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~
10132 $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'
10133
10134 # Both c and cxx compiler support -rpath directly
10135 hardcode_libdir_flag_spec='-rpath $libdir'
10136 fi
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_separator=:
10139 ;;
10140
10141 solaris*)
10142 no_undefined_flag=' -z defs'
10143 if test "$GCC" = yes; then
10144 wlarc='${wl}'
10145 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $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'
10148 else
10149 case `$CC -V 2>&1` in
10150 *"Compilers 5.0"*)
10151 wlarc=''
10152 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10155 ;;
10156 *)
10157 wlarc='${wl}'
10158 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10160 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10161 ;;
10162 esac
10163 fi
10164 hardcode_libdir_flag_spec='-R$libdir'
10165 hardcode_shlibpath_var=no
10166 case $host_os in
10167 solaris2.[0-5] | solaris2.[0-5].*) ;;
10168 *)
10169 # The compiler driver will combine and reorder linker options,
10170 # but understands `-z linker_flag'. GCC discards it without `$wl',
10171 # but is careful enough not to reorder.
10172 # Supported since Solaris 2.6 (maybe 2.5.1?)
10173 if test "$GCC" = yes; then
10174 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10175 else
10176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10177 fi
10178 ;;
10179 esac
10180 link_all_deplibs=yes
10181 ;;
10182
10183 sunos4*)
10184 if test "x$host_vendor" = xsequent; then
10185 # Use $CC to link under sequent, because it throws in some extra .o
10186 # files that make .init and .fini sections work.
10187 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10188 else
10189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10190 fi
10191 hardcode_libdir_flag_spec='-L$libdir'
10192 hardcode_direct=yes
10193 hardcode_minus_L=yes
10194 hardcode_shlibpath_var=no
10195 ;;
10196
10197 sysv4)
10198 case $host_vendor in
10199 sni)
10200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct=yes # is this really true???
10202 ;;
10203 siemens)
10204 ## LD is ld it makes a PLAMLIB
10205 ## CC just makes a GrossModule.
10206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10207 reload_cmds='$CC -r -o $output$reload_objs'
10208 hardcode_direct=no
10209 ;;
10210 motorola)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10213 ;;
10214 esac
10215 runpath_var='LD_RUN_PATH'
10216 hardcode_shlibpath_var=no
10217 ;;
10218
10219 sysv4.3*)
10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 hardcode_shlibpath_var=no
10222 export_dynamic_flag_spec='-Bexport'
10223 ;;
10224
10225 sysv4*MP*)
10226 if test -d /usr/nec; then
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_shlibpath_var=no
10229 runpath_var=LD_RUN_PATH
10230 hardcode_runpath_var=yes
10231 ld_shlibs=yes
10232 fi
10233 ;;
10234
10235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10236 no_undefined_flag='${wl}-z,text'
10237 archive_cmds_need_lc=no
10238 hardcode_shlibpath_var=no
10239 runpath_var='LD_RUN_PATH'
10240
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 fi
10248 ;;
10249
10250 sysv5* | sco3.2v5* | sco5v6*)
10251 # Note: We can NOT use -z defs as we might desire, because we do not
10252 # link with -lc, and that would cause any symbols used from libc to
10253 # always be unresolved, which means just about no library would
10254 # ever link correctly. If we're not using GNU ld we use -z text
10255 # though, which does catch some bad symbols but isn't as heavy-handed
10256 # as -z defs.
10257 no_undefined_flag='${wl}-z,text'
10258 allow_undefined_flag='${wl}-z,nodefs'
10259 archive_cmds_need_lc=no
10260 hardcode_shlibpath_var=no
10261 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10262 hardcode_libdir_separator=':'
10263 link_all_deplibs=yes
10264 export_dynamic_flag_spec='${wl}-Bexport'
10265 runpath_var='LD_RUN_PATH'
10266
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 fi
10274 ;;
10275
10276 uts4*)
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_libdir_flag_spec='-L$libdir'
10279 hardcode_shlibpath_var=no
10280 ;;
10281
10282 *)
10283 ld_shlibs=no
10284 ;;
10285 esac
10286
10287 if test x$host_vendor = xsni; then
10288 case $host in
10289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10290 export_dynamic_flag_spec='${wl}-Blargedynsym'
10291 ;;
10292 esac
10293 fi
10294 fi
10295
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10297$as_echo "$ld_shlibs" >&6; }
10298test "$ld_shlibs" = no && can_build_shared=no
10299
10300with_gnu_ld=$with_gnu_ld
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316#
10317# Do we need to explicitly link libc?
10318#
10319case "x$archive_cmds_need_lc" in
10320x|xyes)
10321 # Assume -lc should be added
10322 archive_cmds_need_lc=yes
10323
10324 if test "$enable_shared" = yes && test "$GCC" = yes; then
10325 case $archive_cmds in
10326 *'~'*)
10327 # FIXME: we may have to deal with multi-command sequences.
10328 ;;
10329 '$CC '*)
10330 # Test whether the compiler implicitly links with -lc since on some
10331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10332 # to ld, don't add -lc before -lgcc.
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10334$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10335if ${lt_cv_archive_cmds_need_lc+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337else
10338 $RM conftest*
10339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10340
10341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10342 (eval $ac_compile) 2>&5
10343 ac_status=$?
10344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10345 test $ac_status = 0; } 2>conftest.err; then
10346 soname=conftest
10347 lib=conftest
10348 libobjs=conftest.$ac_objext
10349 deplibs=
10350 wl=$lt_prog_compiler_wl
10351 pic_flag=$lt_prog_compiler_pic
10352 compiler_flags=-v
10353 linker_flags=-v
10354 verstring=
10355 output_objdir=.
10356 libname=conftest
10357 lt_save_allow_undefined_flag=$allow_undefined_flag
10358 allow_undefined_flag=
10359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10360 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10361 ac_status=$?
10362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363 test $ac_status = 0; }
10364 then
10365 lt_cv_archive_cmds_need_lc=no
10366 else
10367 lt_cv_archive_cmds_need_lc=yes
10368 fi
10369 allow_undefined_flag=$lt_save_allow_undefined_flag
10370 else
10371 cat conftest.err 1>&5
10372 fi
10373 $RM conftest*
10374
10375fi
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10377$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10378 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10379 ;;
10380 esac
10381 fi
10382 ;;
10383esac
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
10532
10533
10534
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10537$as_echo_n "checking dynamic linker characteristics... " >&6; }
10538
10539if test "$GCC" = yes; then
10540 case $host_os in
10541 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10542 *) lt_awk_arg="/^libraries:/" ;;
10543 esac
10544 case $host_os in
10545 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10546 *) lt_sed_strip_eq="s,=/,/,g" ;;
10547 esac
10548 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10549 case $lt_search_path_spec in
10550 *\;*)
10551 # if the path contains ";" then we assume it to be the separator
10552 # otherwise default to the standard path separator (i.e. ":") - it is
10553 # assumed that no part of a normal pathname contains ";" but that should
10554 # okay in the real world where ";" in dirpaths is itself problematic.
10555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10556 ;;
10557 *)
10558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10559 ;;
10560 esac
10561 # Ok, now we have the path, separated by spaces, we can step through it
10562 # and add multilib dir if necessary.
10563 lt_tmp_lt_search_path_spec=
10564 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10565 for lt_sys_path in $lt_search_path_spec; do
10566 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10567 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10568 else
10569 test -d "$lt_sys_path" && \
10570 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10571 fi
10572 done
10573 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10574BEGIN {RS=" "; FS="/|\n";} {
10575 lt_foo="";
10576 lt_count=0;
10577 for (lt_i = NF; lt_i > 0; lt_i--) {
10578 if ($lt_i != "" && $lt_i != ".") {
10579 if ($lt_i == "..") {
10580 lt_count++;
10581 } else {
10582 if (lt_count == 0) {
10583 lt_foo="/" $lt_i lt_foo;
10584 } else {
10585 lt_count--;
10586 }
10587 }
10588 }
10589 }
10590 if (lt_foo != "") { lt_freq[lt_foo]++; }
10591 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10592}'`
10593 # AWK program above erroneously prepends '/' to C:/dos/paths
10594 # for these hosts.
10595 case $host_os in
10596 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10597 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10598 esac
10599 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10600else
10601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10602fi
10603library_names_spec=
10604libname_spec='lib$name'
10605soname_spec=
10606shrext_cmds=".so"
10607postinstall_cmds=
10608postuninstall_cmds=
10609finish_cmds=
10610finish_eval=
10611shlibpath_var=
10612shlibpath_overrides_runpath=unknown
10613version_type=none
10614dynamic_linker="$host_os ld.so"
10615sys_lib_dlsearch_path_spec="/lib /usr/lib"
10616need_lib_prefix=unknown
10617hardcode_into_libs=no
10618
10619# when you set need_version to no, make sure it does not cause -set_version
10620# flags to be left without arguments
10621need_version=unknown
10622
10623case $host_os in
10624aix3*)
10625 version_type=linux # correct to gnu/linux during the next big refactor
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10627 shlibpath_var=LIBPATH
10628
10629 # AIX 3 has no versioning support, so we append a major version to the name.
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 ;;
10632
10633aix[4-9]*)
10634 version_type=linux # correct to gnu/linux during the next big refactor
10635 need_lib_prefix=no
10636 need_version=no
10637 hardcode_into_libs=yes
10638 if test "$host_cpu" = ia64; then
10639 # AIX 5 supports IA64
10640 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 else
10643 # With GCC up to 2.95.x, collect2 would create an import file
10644 # for dependence libraries. The import file would start with
10645 # the line `#! .'. This would cause the generated library to
10646 # depend on `.', always an invalid library. This was fixed in
10647 # development snapshots of GCC prior to 3.0.
10648 case $host_os in
10649 aix4 | aix4.[01] | aix4.[01].*)
10650 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10651 echo ' yes '
10652 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10653 :
10654 else
10655 can_build_shared=no
10656 fi
10657 ;;
10658 esac
10659 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10660 # soname into executable. Probably we can add versioning support to
10661 # collect2, so additional links can be useful in future.
10662 if test "$aix_use_runtimelinking" = yes; then
10663 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10664 # instead of lib<name>.a to let people know that these are not
10665 # typical AIX shared libraries.
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 else
10668 # We preserve .a as extension for shared libraries through AIX4.2
10669 # and later when we are not doing run time linking.
10670 library_names_spec='${libname}${release}.a $libname.a'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 fi
10673 shlibpath_var=LIBPATH
10674 fi
10675 ;;
10676
10677amigaos*)
10678 case $host_cpu in
10679 powerpc)
10680 # Since July 2007 AmigaOS4 officially supports .so libraries.
10681 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 ;;
10684 m68k)
10685 library_names_spec='$libname.ixlibrary $libname.a'
10686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10687 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'
10688 ;;
10689 esac
10690 ;;
10691
10692beos*)
10693 library_names_spec='${libname}${shared_ext}'
10694 dynamic_linker="$host_os ld.so"
10695 shlibpath_var=LIBRARY_PATH
10696 ;;
10697
10698bsdi[45]*)
10699 version_type=linux # correct to gnu/linux during the next big refactor
10700 need_version=no
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10707 # the default ld.so.conf also contains /usr/contrib/lib and
10708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10709 # libtool to hard-code these into programs
10710 ;;
10711
10712cygwin* | mingw* | pw32* | cegcc*)
10713 version_type=windows
10714 shrext_cmds=".dll"
10715 need_version=no
10716 need_lib_prefix=no
10717
10718 case $GCC,$cc_basename in
10719 yes,*)
10720 # gcc
10721 library_names_spec='$libname.dll.a'
10722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10723 postinstall_cmds='base_file=`basename \${file}`~
10724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10725 dldir=$destdir/`dirname \$dlpath`~
10726 test -d \$dldir || mkdir -p \$dldir~
10727 $install_prog $dir/$dlname \$dldir/$dlname~
10728 chmod a+x \$dldir/$dlname~
10729 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10730 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10731 fi'
10732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10733 dlpath=$dir/\$dldll~
10734 $RM \$dlpath'
10735 shlibpath_overrides_runpath=yes
10736
10737 case $host_os in
10738 cygwin*)
10739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10741
10742 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10743 ;;
10744 mingw* | cegcc*)
10745 # MinGW DLLs use traditional 'lib' prefix
10746 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747 ;;
10748 pw32*)
10749 # pw32 DLLs use 'pw' prefix rather than 'lib'
10750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751 ;;
10752 esac
10753 dynamic_linker='Win32 ld.exe'
10754 ;;
10755
10756 *,cl*)
10757 # Native MSVC
10758 libname_spec='$name'
10759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10760 library_names_spec='${libname}.dll.lib'
10761
10762 case $build_os in
10763 mingw*)
10764 sys_lib_search_path_spec=
10765 lt_save_ifs=$IFS
10766 IFS=';'
10767 for lt_path in $LIB
10768 do
10769 IFS=$lt_save_ifs
10770 # Let DOS variable expansion print the short 8.3 style file name.
10771 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10772 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10773 done
10774 IFS=$lt_save_ifs
10775 # Convert to MSYS style.
10776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10777 ;;
10778 cygwin*)
10779 # Convert to unix form, then to dos form, then back to unix form
10780 # but this time dos style (no spaces!) so that the unix form looks
10781 # like /cygdrive/c/PROGRA~1:/cygdr...
10782 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10783 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10784 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10785 ;;
10786 *)
10787 sys_lib_search_path_spec="$LIB"
10788 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10789 # It is most probably a Windows format PATH.
10790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10791 else
10792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793 fi
10794 # FIXME: find the short name or the path components, as spaces are
10795 # common. (e.g. "Program Files" -> "PROGRA~1")
10796 ;;
10797 esac
10798
10799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10800 postinstall_cmds='base_file=`basename \${file}`~
10801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10802 dldir=$destdir/`dirname \$dlpath`~
10803 test -d \$dldir || mkdir -p \$dldir~
10804 $install_prog $dir/$dlname \$dldir/$dlname'
10805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10806 dlpath=$dir/\$dldll~
10807 $RM \$dlpath'
10808 shlibpath_overrides_runpath=yes
10809 dynamic_linker='Win32 link.exe'
10810 ;;
10811
10812 *)
10813 # Assume MSVC wrapper
10814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10815 dynamic_linker='Win32 ld.exe'
10816 ;;
10817 esac
10818 # FIXME: first we should search . and the directory the executable is in
10819 shlibpath_var=PATH
10820 ;;
10821
10822darwin* | rhapsody*)
10823 dynamic_linker="$host_os dyld"
10824 version_type=darwin
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10828 soname_spec='${libname}${release}${major}$shared_ext'
10829 shlibpath_overrides_runpath=yes
10830 shlibpath_var=DYLD_LIBRARY_PATH
10831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10832
10833 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10835 ;;
10836
10837dgux*)
10838 version_type=linux # correct to gnu/linux during the next big refactor
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 ;;
10845
10846freebsd* | dragonfly*)
10847 # DragonFly does not have aout. When/if they implement a new
10848 # versioning mechanism, adjust this.
10849 if test -x /usr/bin/objformat; then
10850 objformat=`/usr/bin/objformat`
10851 else
10852 case $host_os in
10853 freebsd[23].*) objformat=aout ;;
10854 *) objformat=elf ;;
10855 esac
10856 fi
10857 version_type=freebsd-$objformat
10858 case $version_type in
10859 freebsd-elf*)
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10861 need_version=no
10862 need_lib_prefix=no
10863 ;;
10864 freebsd-*)
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10866 need_version=yes
10867 ;;
10868 esac
10869 shlibpath_var=LD_LIBRARY_PATH
10870 case $host_os in
10871 freebsd2.*)
10872 shlibpath_overrides_runpath=yes
10873 ;;
10874 freebsd3.[01]* | freebsdelf3.[01]*)
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 ;;
10878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10880 shlibpath_overrides_runpath=no
10881 hardcode_into_libs=yes
10882 ;;
10883 *) # from 4.6 on, and DragonFly
10884 shlibpath_overrides_runpath=yes
10885 hardcode_into_libs=yes
10886 ;;
10887 esac
10888 ;;
10889
10890gnu*)
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
10898 hardcode_into_libs=yes
10899 ;;
10900
10901haiku*)
10902 version_type=linux # correct to gnu/linux during the next big refactor
10903 need_lib_prefix=no
10904 need_version=no
10905 dynamic_linker="$host_os runtime_loader"
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10910 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10911 hardcode_into_libs=yes
10912 ;;
10913
10914hpux9* | hpux10* | hpux11*)
10915 # Give a soname corresponding to the major version so that dld.sl refuses to
10916 # link against other versions.
10917 version_type=sunos
10918 need_lib_prefix=no
10919 need_version=no
10920 case $host_cpu in
10921 ia64*)
10922 shrext_cmds='.so'
10923 hardcode_into_libs=yes
10924 dynamic_linker="$host_os dld.so"
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 if test "X$HPUX_IA64_MODE" = X32; then
10930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10931 else
10932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10933 fi
10934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10935 ;;
10936 hppa*64*)
10937 shrext_cmds='.sl'
10938 hardcode_into_libs=yes
10939 dynamic_linker="$host_os dld.sl"
10940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10946 ;;
10947 *)
10948 shrext_cmds='.sl'
10949 dynamic_linker="$host_os dld.sl"
10950 shlibpath_var=SHLIB_PATH
10951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 ;;
10955 esac
10956 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10957 postinstall_cmds='chmod 555 $lib'
10958 # or fails outright, so override atomically:
10959 install_override_mode=555
10960 ;;
10961
10962interix[3-9]*)
10963 version_type=linux # correct to gnu/linux during the next big refactor
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=no
10971 hardcode_into_libs=yes
10972 ;;
10973
10974irix5* | irix6* | nonstopux*)
10975 case $host_os in
10976 nonstopux*) version_type=nonstopux ;;
10977 *)
10978 if test "$lt_cv_prog_gnu_ld" = yes; then
10979 version_type=linux # correct to gnu/linux during the next big refactor
10980 else
10981 version_type=irix
10982 fi ;;
10983 esac
10984 need_lib_prefix=no
10985 need_version=no
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10988 case $host_os in
10989 irix5* | nonstopux*)
10990 libsuff= shlibsuff=
10991 ;;
10992 *)
10993 case $LD in # libtool.m4 will add one of these switches to LD
10994 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10995 libsuff= shlibsuff= libmagic=32-bit;;
10996 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10997 libsuff=32 shlibsuff=N32 libmagic=N32;;
10998 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10999 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11000 *) libsuff= shlibsuff= libmagic=never-match;;
11001 esac
11002 ;;
11003 esac
11004 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11005 shlibpath_overrides_runpath=no
11006 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11007 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11008 hardcode_into_libs=yes
11009 ;;
11010
11011# No shared lib support for Linux oldld, aout, or coff.
11012linux*oldld* | linux*aout* | linux*coff*)
11013 dynamic_linker=no
11014 ;;
11015
11016# This must be glibc/ELF.
11017linux* | k*bsd*-gnu | kopensolaris*-gnu)
11018 version_type=linux # correct to gnu/linux during the next big refactor
11019 need_lib_prefix=no
11020 need_version=no
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=no
11026
11027 # Some binutils ld are patched to set DT_RUNPATH
11028 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030else
11031 lt_cv_shlibpath_overrides_runpath=no
11032 save_LDFLAGS=$LDFLAGS
11033 save_libdir=$libdir
11034 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11035 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037/* end confdefs.h. */
11038
11039int
11040main ()
11041{
11042
11043 ;
11044 return 0;
11045}
11046_ACEOF
11047if ac_fn_c_try_link "$LINENO"; then :
11048 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11049 lt_cv_shlibpath_overrides_runpath=yes
11050fi
11051fi
11052rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LDFLAGS=$save_LDFLAGS
11055 libdir=$save_libdir
11056
11057fi
11058
11059 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11060
11061 # This implies no fast_install, which is unacceptable.
11062 # Some rework will be needed to allow for fast_install
11063 # before this can be enabled.
11064 hardcode_into_libs=yes
11065
11066 # Append ld.so.conf contents to the search path
11067 if test -f /etc/ld.so.conf; then
11068 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' ' '`
11069 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11070 fi
11071
11072 # We used to test for /lib/ld.so.1 and disable shared libraries on
11073 # powerpc, because MkLinux only supported shared libraries with the
11074 # GNU dynamic linker. Since this was broken with cross compilers,
11075 # most powerpc-linux boxes support dynamic linking these days and
11076 # people can always --disable-shared, the test was removed, and we
11077 # assume the GNU/Linux dynamic linker is in use.
11078 dynamic_linker='GNU/Linux ld.so'
11079 ;;
11080
11081netbsd*)
11082 version_type=sunos
11083 need_lib_prefix=no
11084 need_version=no
11085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 dynamic_linker='NetBSD (a.out) ld.so'
11089 else
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 dynamic_linker='NetBSD ld.elf_so'
11093 fi
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11097 ;;
11098
11099newsos6)
11100 version_type=linux # correct to gnu/linux during the next big refactor
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11104 ;;
11105
11106*nto* | *qnx*)
11107 version_type=qnx
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=no
11114 hardcode_into_libs=yes
11115 dynamic_linker='ldqnx.so'
11116 ;;
11117
11118openbsd*)
11119 version_type=sunos
11120 sys_lib_dlsearch_path_spec="/usr/lib"
11121 need_lib_prefix=no
11122 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11123 case $host_os in
11124 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11125 *) need_version=no ;;
11126 esac
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11131 case $host_os in
11132 openbsd2.[89] | openbsd2.[89].*)
11133 shlibpath_overrides_runpath=no
11134 ;;
11135 *)
11136 shlibpath_overrides_runpath=yes
11137 ;;
11138 esac
11139 else
11140 shlibpath_overrides_runpath=yes
11141 fi
11142 ;;
11143
11144os2*)
11145 libname_spec='$name'
11146 shrext_cmds=".dll"
11147 need_lib_prefix=no
11148 library_names_spec='$libname${shared_ext} $libname.a'
11149 dynamic_linker='OS/2 ld.exe'
11150 shlibpath_var=LIBPATH
11151 ;;
11152
11153osf3* | osf4* | osf5*)
11154 version_type=osf
11155 need_lib_prefix=no
11156 need_version=no
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11162 ;;
11163
11164rdos*)
11165 dynamic_linker=no
11166 ;;
11167
11168solaris*)
11169 version_type=linux # correct to gnu/linux during the next big refactor
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11176 hardcode_into_libs=yes
11177 # ldd complains unless libraries are executable
11178 postinstall_cmds='chmod +x $lib'
11179 ;;
11180
11181sunos4*)
11182 version_type=sunos
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=yes
11187 if test "$with_gnu_ld" = yes; then
11188 need_lib_prefix=no
11189 fi
11190 need_version=yes
11191 ;;
11192
11193sysv4 | sysv4.3*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 case $host_vendor in
11199 sni)
11200 shlibpath_overrides_runpath=no
11201 need_lib_prefix=no
11202 runpath_var=LD_RUN_PATH
11203 ;;
11204 siemens)
11205 need_lib_prefix=no
11206 ;;
11207 motorola)
11208 need_lib_prefix=no
11209 need_version=no
11210 shlibpath_overrides_runpath=no
11211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11212 ;;
11213 esac
11214 ;;
11215
11216sysv4*MP*)
11217 if test -d /usr/nec ;then
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11220 soname_spec='$libname${shared_ext}.$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 fi
11223 ;;
11224
11225sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11226 version_type=freebsd-elf
11227 need_lib_prefix=no
11228 need_version=no
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 shlibpath_overrides_runpath=yes
11233 hardcode_into_libs=yes
11234 if test "$with_gnu_ld" = yes; then
11235 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11236 else
11237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11238 case $host_os in
11239 sco3.2v5*)
11240 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11241 ;;
11242 esac
11243 fi
11244 sys_lib_dlsearch_path_spec='/usr/lib'
11245 ;;
11246
11247tpf*)
11248 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11249 version_type=linux # correct to gnu/linux during the next big refactor
11250 need_lib_prefix=no
11251 need_version=no
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=no
11255 hardcode_into_libs=yes
11256 ;;
11257
11258uts4*)
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 ;;
11264
11265*)
11266 dynamic_linker=no
11267 ;;
11268esac
11269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11270$as_echo "$dynamic_linker" >&6; }
11271test "$dynamic_linker" = no && can_build_shared=no
11272
11273variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11274if test "$GCC" = yes; then
11275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11276fi
11277
11278if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11279 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11280fi
11281if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11282 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11283fi
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
11372
11373
11374
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11377$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11378hardcode_action=
11379if test -n "$hardcode_libdir_flag_spec" ||
11380 test -n "$runpath_var" ||
11381 test "X$hardcode_automatic" = "Xyes" ; then
11382
11383 # We can hardcode non-existent directories.
11384 if test "$hardcode_direct" != no &&
11385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11386 # have to relink, otherwise we might link with an installed library
11387 # when we should be linking with a yet-to-be-installed one
11388 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11389 test "$hardcode_minus_L" != no; then
11390 # Linking always hardcodes the temporary library directory.
11391 hardcode_action=relink
11392 else
11393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11394 hardcode_action=immediate
11395 fi
11396else
11397 # We cannot hardcode anything, or else we can only hardcode existing
11398 # directories.
11399 hardcode_action=unsupported
11400fi
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11402$as_echo "$hardcode_action" >&6; }
11403
11404if test "$hardcode_action" = relink ||
11405 test "$inherit_rpath" = yes; then
11406 # Fast installation is not supported
11407 enable_fast_install=no
11408elif test "$shlibpath_overrides_runpath" = yes ||
11409 test "$enable_shared" = no; then
11410 # Fast installation is not necessary
11411 enable_fast_install=needless
11412fi
11413
11414
11415
11416
11417
11418
11419 if test "x$enable_dlopen" != xyes; then
11420 enable_dlopen=unknown
11421 enable_dlopen_self=unknown
11422 enable_dlopen_self_static=unknown
11423else
11424 lt_cv_dlopen=no
11425 lt_cv_dlopen_libs=
11426
11427 case $host_os in
11428 beos*)
11429 lt_cv_dlopen="load_add_on"
11430 lt_cv_dlopen_libs=
11431 lt_cv_dlopen_self=yes
11432 ;;
11433
11434 mingw* | pw32* | cegcc*)
11435 lt_cv_dlopen="LoadLibrary"
11436 lt_cv_dlopen_libs=
11437 ;;
11438
11439 cygwin*)
11440 lt_cv_dlopen="dlopen"
11441 lt_cv_dlopen_libs=
11442 ;;
11443
11444 darwin*)
11445 # if libdl is installed we need to link against it
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11447$as_echo_n "checking for dlopen in -ldl... " >&6; }
11448if ${ac_cv_lib_dl_dlopen+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450else
11451 ac_check_lib_save_LIBS=$LIBS
11452LIBS="-ldl $LIBS"
11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454/* end confdefs.h. */
11455
11456/* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459#ifdef __cplusplus
11460extern "C"
11461#endif
11462char dlopen ();
11463int
11464main ()
11465{
11466return dlopen ();
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_dl_dlopen=yes
11473else
11474 ac_cv_lib_dl_dlopen=no
11475fi
11476rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478LIBS=$ac_check_lib_save_LIBS
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11481$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11482if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11484else
11485
11486 lt_cv_dlopen="dyld"
11487 lt_cv_dlopen_libs=
11488 lt_cv_dlopen_self=yes
11489
11490fi
11491
11492 ;;
11493
11494 *)
11495 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11496if test "x$ac_cv_func_shl_load" = xyes; then :
11497 lt_cv_dlopen="shl_load"
11498else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11500$as_echo_n "checking for shl_load in -ldld... " >&6; }
11501if ${ac_cv_lib_dld_shl_load+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503else
11504 ac_check_lib_save_LIBS=$LIBS
11505LIBS="-ldld $LIBS"
11506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507/* end confdefs.h. */
11508
11509/* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11512#ifdef __cplusplus
11513extern "C"
11514#endif
11515char shl_load ();
11516int
11517main ()
11518{
11519return shl_load ();
11520 ;
11521 return 0;
11522}
11523_ACEOF
11524if ac_fn_c_try_link "$LINENO"; then :
11525 ac_cv_lib_dld_shl_load=yes
11526else
11527 ac_cv_lib_dld_shl_load=no
11528fi
11529rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531LIBS=$ac_check_lib_save_LIBS
11532fi
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11534$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11535if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11536 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11537else
11538 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11539if test "x$ac_cv_func_dlopen" = xyes; then :
11540 lt_cv_dlopen="dlopen"
11541else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11543$as_echo_n "checking for dlopen in -ldl... " >&6; }
11544if ${ac_cv_lib_dl_dlopen+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546else
11547 ac_check_lib_save_LIBS=$LIBS
11548LIBS="-ldl $LIBS"
11549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550/* end confdefs.h. */
11551
11552/* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555#ifdef __cplusplus
11556extern "C"
11557#endif
11558char dlopen ();
11559int
11560main ()
11561{
11562return dlopen ();
11563 ;
11564 return 0;
11565}
11566_ACEOF
11567if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_dl_dlopen=yes
11569else
11570 ac_cv_lib_dl_dlopen=no
11571fi
11572rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574LIBS=$ac_check_lib_save_LIBS
11575fi
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11577$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11578if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11580else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11582$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11583if ${ac_cv_lib_svld_dlopen+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585else
11586 ac_check_lib_save_LIBS=$LIBS
11587LIBS="-lsvld $LIBS"
11588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h. */
11590
11591/* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597char dlopen ();
11598int
11599main ()
11600{
11601return dlopen ();
11602 ;
11603 return 0;
11604}
11605_ACEOF
11606if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_lib_svld_dlopen=yes
11608else
11609 ac_cv_lib_svld_dlopen=no
11610fi
11611rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613LIBS=$ac_check_lib_save_LIBS
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11616$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11617if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11619else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11621$as_echo_n "checking for dld_link in -ldld... " >&6; }
11622if ${ac_cv_lib_dld_dld_link+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624else
11625 ac_check_lib_save_LIBS=$LIBS
11626LIBS="-ldld $LIBS"
11627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h. */
11629
11630/* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11633#ifdef __cplusplus
11634extern "C"
11635#endif
11636char dld_link ();
11637int
11638main ()
11639{
11640return dld_link ();
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645if ac_fn_c_try_link "$LINENO"; then :
11646 ac_cv_lib_dld_dld_link=yes
11647else
11648 ac_cv_lib_dld_dld_link=no
11649fi
11650rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652LIBS=$ac_check_lib_save_LIBS
11653fi
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11655$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11656if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11657 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11658fi
11659
11660
11661fi
11662
11663
11664fi
11665
11666
11667fi
11668
11669
11670fi
11671
11672
11673fi
11674
11675 ;;
11676 esac
11677
11678 if test "x$lt_cv_dlopen" != xno; then
11679 enable_dlopen=yes
11680 else
11681 enable_dlopen=no
11682 fi
11683
11684 case $lt_cv_dlopen in
11685 dlopen)
11686 save_CPPFLAGS="$CPPFLAGS"
11687 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11688
11689 save_LDFLAGS="$LDFLAGS"
11690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11691
11692 save_LIBS="$LIBS"
11693 LIBS="$lt_cv_dlopen_libs $LIBS"
11694
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11696$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11697if ${lt_cv_dlopen_self+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699else
11700 if test "$cross_compiling" = yes; then :
11701 lt_cv_dlopen_self=cross
11702else
11703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11704 lt_status=$lt_dlunknown
11705 cat > conftest.$ac_ext <<_LT_EOF
11706#line $LINENO "configure"
11707#include "confdefs.h"
11708
11709#if HAVE_DLFCN_H
11710#include <dlfcn.h>
11711#endif
11712
11713#include <stdio.h>
11714
11715#ifdef RTLD_GLOBAL
11716# define LT_DLGLOBAL RTLD_GLOBAL
11717#else
11718# ifdef DL_GLOBAL
11719# define LT_DLGLOBAL DL_GLOBAL
11720# else
11721# define LT_DLGLOBAL 0
11722# endif
11723#endif
11724
11725/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11726 find out it does not work in some platform. */
11727#ifndef LT_DLLAZY_OR_NOW
11728# ifdef RTLD_LAZY
11729# define LT_DLLAZY_OR_NOW RTLD_LAZY
11730# else
11731# ifdef DL_LAZY
11732# define LT_DLLAZY_OR_NOW DL_LAZY
11733# else
11734# ifdef RTLD_NOW
11735# define LT_DLLAZY_OR_NOW RTLD_NOW
11736# else
11737# ifdef DL_NOW
11738# define LT_DLLAZY_OR_NOW DL_NOW
11739# else
11740# define LT_DLLAZY_OR_NOW 0
11741# endif
11742# endif
11743# endif
11744# endif
11745#endif
11746
11747/* When -fvisbility=hidden is used, assume the code has been annotated
11748 correspondingly for the symbols needed. */
11749#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11750int fnord () __attribute__((visibility("default")));
11751#endif
11752
11753int fnord () { return 42; }
11754int main ()
11755{
11756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11757 int status = $lt_dlunknown;
11758
11759 if (self)
11760 {
11761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11762 else
11763 {
11764 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11765 else puts (dlerror ());
11766 }
11767 /* dlclose (self); */
11768 }
11769 else
11770 puts (dlerror ());
11771
11772 return status;
11773}
11774_LT_EOF
11775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11776 (eval $ac_link) 2>&5
11777 ac_status=$?
11778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11779 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11780 (./conftest; exit; ) >&5 2>/dev/null
11781 lt_status=$?
11782 case x$lt_status in
11783 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11784 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11785 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11786 esac
11787 else :
11788 # compilation failed
11789 lt_cv_dlopen_self=no
11790 fi
11791fi
11792rm -fr conftest*
11793
11794
11795fi
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11797$as_echo "$lt_cv_dlopen_self" >&6; }
11798
11799 if test "x$lt_cv_dlopen_self" = xyes; then
11800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11802$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11803if ${lt_cv_dlopen_self_static+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805else
11806 if test "$cross_compiling" = yes; then :
11807 lt_cv_dlopen_self_static=cross
11808else
11809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11810 lt_status=$lt_dlunknown
11811 cat > conftest.$ac_ext <<_LT_EOF
11812#line $LINENO "configure"
11813#include "confdefs.h"
11814
11815#if HAVE_DLFCN_H
11816#include <dlfcn.h>
11817#endif
11818
11819#include <stdio.h>
11820
11821#ifdef RTLD_GLOBAL
11822# define LT_DLGLOBAL RTLD_GLOBAL
11823#else
11824# ifdef DL_GLOBAL
11825# define LT_DLGLOBAL DL_GLOBAL
11826# else
11827# define LT_DLGLOBAL 0
11828# endif
11829#endif
11830
11831/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11832 find out it does not work in some platform. */
11833#ifndef LT_DLLAZY_OR_NOW
11834# ifdef RTLD_LAZY
11835# define LT_DLLAZY_OR_NOW RTLD_LAZY
11836# else
11837# ifdef DL_LAZY
11838# define LT_DLLAZY_OR_NOW DL_LAZY
11839# else
11840# ifdef RTLD_NOW
11841# define LT_DLLAZY_OR_NOW RTLD_NOW
11842# else
11843# ifdef DL_NOW
11844# define LT_DLLAZY_OR_NOW DL_NOW
11845# else
11846# define LT_DLLAZY_OR_NOW 0
11847# endif
11848# endif
11849# endif
11850# endif
11851#endif
11852
11853/* When -fvisbility=hidden is used, assume the code has been annotated
11854 correspondingly for the symbols needed. */
11855#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11856int fnord () __attribute__((visibility("default")));
11857#endif
11858
11859int fnord () { return 42; }
11860int main ()
11861{
11862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11863 int status = $lt_dlunknown;
11864
11865 if (self)
11866 {
11867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11868 else
11869 {
11870 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11871 else puts (dlerror ());
11872 }
11873 /* dlclose (self); */
11874 }
11875 else
11876 puts (dlerror ());
11877
11878 return status;
11879}
11880_LT_EOF
11881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11882 (eval $ac_link) 2>&5
11883 ac_status=$?
11884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11885 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11886 (./conftest; exit; ) >&5 2>/dev/null
11887 lt_status=$?
11888 case x$lt_status in
11889 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11890 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11891 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11892 esac
11893 else :
11894 # compilation failed
11895 lt_cv_dlopen_self_static=no
11896 fi
11897fi
11898rm -fr conftest*
11899
11900
11901fi
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11903$as_echo "$lt_cv_dlopen_self_static" >&6; }
11904 fi
11905
11906 CPPFLAGS="$save_CPPFLAGS"
11907 LDFLAGS="$save_LDFLAGS"
11908 LIBS="$save_LIBS"
11909 ;;
11910 esac
11911
11912 case $lt_cv_dlopen_self in
11913 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11914 *) enable_dlopen_self=unknown ;;
11915 esac
11916
11917 case $lt_cv_dlopen_self_static in
11918 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11919 *) enable_dlopen_self_static=unknown ;;
11920 esac
11921fi
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939striplib=
11940old_striplib=
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11942$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11943if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11944 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11945 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947$as_echo "yes" >&6; }
11948else
11949# FIXME - insert some real tests, host_os isn't really good enough
11950 case $host_os in
11951 darwin*)
11952 if test -n "$STRIP" ; then
11953 striplib="$STRIP -x"
11954 old_striplib="$STRIP -S"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11956$as_echo "yes" >&6; }
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960 fi
11961 ;;
11962 *)
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
11965 ;;
11966 esac
11967fi
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980 # Report which library types will actually be built
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11982$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11984$as_echo "$can_build_shared" >&6; }
11985
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11987$as_echo_n "checking whether to build shared libraries... " >&6; }
11988 test "$can_build_shared" = "no" && enable_shared=no
11989
11990 # On AIX, shared libraries and static libraries use the same namespace, and
11991 # are all built from PIC.
11992 case $host_os in
11993 aix3*)
11994 test "$enable_shared" = yes && enable_static=no
11995 if test -n "$RANLIB"; then
11996 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11997 postinstall_cmds='$RANLIB $lib'
11998 fi
11999 ;;
12000
12001 aix[4-9]*)
12002 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12003 test "$enable_shared" = yes && enable_static=no
12004 fi
12005 ;;
12006 esac
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12008$as_echo "$enable_shared" >&6; }
12009
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12011$as_echo_n "checking whether to build static libraries... " >&6; }
12012 # Make sure either enable_shared or enable_static is yes.
12013 test "$enable_shared" = yes || enable_static=yes
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12015$as_echo "$enable_static" >&6; }
12016
12017
12018
12019
12020fi
12021ac_ext=c
12022ac_cpp='$CPP $CPPFLAGS'
12023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12025ac_compiler_gnu=$ac_cv_c_compiler_gnu
12026
12027CC="$lt_save_CC"
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043 ac_config_commands="$ac_config_commands libtool"
12044
12045
12046
12047
12048# Only expand once:
12049
12050
12051ac_ext=cpp
12052ac_cpp='$CXXCPP $CPPFLAGS'
12053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12056if test -z "$CXX"; then
12057 if test -n "$CCC"; then
12058 CXX=$CCC
12059 else
12060 if test -n "$ac_tool_prefix"; then
12061 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12062 do
12063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066$as_echo_n "checking for $ac_word... " >&6; }
12067if ${ac_cv_prog_CXX+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069else
12070 if test -n "$CXX"; then
12071 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12072else
12073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074for as_dir in $PATH
12075do
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12080 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12083 fi
12084done
12085 done
12086IFS=$as_save_IFS
12087
12088fi
12089fi
12090CXX=$ac_cv_prog_CXX
12091if test -n "$CXX"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12093$as_echo "$CXX" >&6; }
12094else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
12097fi
12098
12099
12100 test -n "$CXX" && break
12101 done
12102fi
12103if test -z "$CXX"; then
12104 ac_ct_CXX=$CXX
12105 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12106do
12107 # Extract the first word of "$ac_prog", so it can be a program name with args.
12108set dummy $ac_prog; ac_word=$2
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110$as_echo_n "checking for $ac_word... " >&6; }
12111if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12112 $as_echo_n "(cached) " >&6
12113else
12114 if test -n "$ac_ct_CXX"; then
12115 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12116else
12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118for as_dir in $PATH
12119do
12120 IFS=$as_save_IFS
12121 test -z "$as_dir" && as_dir=.
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12124 ac_cv_prog_ac_ct_CXX="$ac_prog"
12125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 break 2
12127 fi
12128done
12129 done
12130IFS=$as_save_IFS
12131
12132fi
12133fi
12134ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12135if test -n "$ac_ct_CXX"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12137$as_echo "$ac_ct_CXX" >&6; }
12138else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
12141fi
12142
12143
12144 test -n "$ac_ct_CXX" && break
12145done
12146
12147 if test "x$ac_ct_CXX" = x; then
12148 CXX="g++"
12149 else
12150 case $cross_compiling:$ac_tool_warned in
12151yes:)
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12154ac_tool_warned=yes ;;
12155esac
12156 CXX=$ac_ct_CXX
12157 fi
12158fi
12159
12160 fi
12161fi
12162# Provide some information about the compiler.
12163$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12164set X $ac_compile
12165ac_compiler=$2
12166for ac_option in --version -v -V -qversion; do
12167 { { ac_try="$ac_compiler $ac_option >&5"
12168case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171esac
12172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12173$as_echo "$ac_try_echo"; } >&5
12174 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12175 ac_status=$?
12176 if test -s conftest.err; then
12177 sed '10a\
12178... rest of stderr output deleted ...
12179 10q' conftest.err >conftest.er1
12180 cat conftest.er1 >&5
12181 fi
12182 rm -f conftest.er1 conftest.err
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }
12185done
12186
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12188$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12189if ${ac_cv_cxx_compiler_gnu+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191else
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h. */
12194
12195int
12196main ()
12197{
12198#ifndef __GNUC__
12199 choke me
12200#endif
12201
12202 ;
12203 return 0;
12204}
12205_ACEOF
12206if ac_fn_cxx_try_compile "$LINENO"; then :
12207 ac_compiler_gnu=yes
12208else
12209 ac_compiler_gnu=no
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12213
12214fi
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12216$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12217if test $ac_compiler_gnu = yes; then
12218 GXX=yes
12219else
12220 GXX=
12221fi
12222ac_test_CXXFLAGS=${CXXFLAGS+set}
12223ac_save_CXXFLAGS=$CXXFLAGS
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12225$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12226if ${ac_cv_prog_cxx_g+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228else
12229 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12230 ac_cxx_werror_flag=yes
12231 ac_cv_prog_cxx_g=no
12232 CXXFLAGS="-g"
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234/* end confdefs.h. */
12235
12236int
12237main ()
12238{
12239
12240 ;
12241 return 0;
12242}
12243_ACEOF
12244if ac_fn_cxx_try_compile "$LINENO"; then :
12245 ac_cv_prog_cxx_g=yes
12246else
12247 CXXFLAGS=""
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h. */
12250
12251int
12252main ()
12253{
12254
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259if ac_fn_cxx_try_compile "$LINENO"; then :
12260
12261else
12262 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12263 CXXFLAGS="-g"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h. */
12266
12267int
12268main ()
12269{
12270
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275if ac_fn_cxx_try_compile "$LINENO"; then :
12276 ac_cv_prog_cxx_g=yes
12277fi
12278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279fi
12280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281fi
12282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12284fi
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12286$as_echo "$ac_cv_prog_cxx_g" >&6; }
12287if test "$ac_test_CXXFLAGS" = set; then
12288 CXXFLAGS=$ac_save_CXXFLAGS
12289elif test $ac_cv_prog_cxx_g = yes; then
12290 if test "$GXX" = yes; then
12291 CXXFLAGS="-g -O2"
12292 else
12293 CXXFLAGS="-g"
12294 fi
12295else
12296 if test "$GXX" = yes; then
12297 CXXFLAGS="-O2"
12298 else
12299 CXXFLAGS=
12300 fi
12301fi
12302ac_ext=c
12303ac_cpp='$CPP $CPPFLAGS'
12304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12306ac_compiler_gnu=$ac_cv_c_compiler_gnu
12307
12308depcc="$CXX" am_compiler_list=
12309
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12311$as_echo_n "checking dependency style of $depcc... " >&6; }
12312if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314else
12315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12316 # We make a subdir and do the tests there. Otherwise we can end up
12317 # making bogus files that we don't know about and never remove. For
12318 # instance it was reported that on HP-UX the gcc test will end up
12319 # making a dummy file named 'D' -- because '-MD' means "put the output
12320 # in D".
12321 rm -rf conftest.dir
12322 mkdir conftest.dir
12323 # Copy depcomp to subdir because otherwise we won't find it if we're
12324 # using a relative directory.
12325 cp "$am_depcomp" conftest.dir
12326 cd conftest.dir
12327 # We will build objects and dependencies in a subdirectory because
12328 # it helps to detect inapplicable dependency modes. For instance
12329 # both Tru64's cc and ICC support -MD to output dependencies as a
12330 # side effect of compilation, but ICC will put the dependencies in
12331 # the current directory while Tru64 will put them in the object
12332 # directory.
12333 mkdir sub
12334
12335 am_cv_CXX_dependencies_compiler_type=none
12336 if test "$am_compiler_list" = ""; then
12337 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12338 fi
12339 am__universal=false
12340 case " $depcc " in #(
12341 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12342 esac
12343
12344 for depmode in $am_compiler_list; do
12345 # Setup a source with many dependencies, because some compilers
12346 # like to wrap large dependency lists on column 80 (with \), and
12347 # we should not choose a depcomp mode which is confused by this.
12348 #
12349 # We need to recreate these files for each test, as the compiler may
12350 # overwrite some of them when testing with obscure command lines.
12351 # This happens at least with the AIX C compiler.
12352 : > sub/conftest.c
12353 for i in 1 2 3 4 5 6; do
12354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12355 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12356 # Solaris 10 /bin/sh.
12357 echo '/* dummy */' > sub/conftst$i.h
12358 done
12359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12360
12361 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12362 # mode. It turns out that the SunPro C++ compiler does not properly
12363 # handle '-M -o', and we need to detect this. Also, some Intel
12364 # versions had trouble with output in subdirs.
12365 am__obj=sub/conftest.${OBJEXT-o}
12366 am__minus_obj="-o $am__obj"
12367 case $depmode in
12368 gcc)
12369 # This depmode causes a compiler race in universal mode.
12370 test "$am__universal" = false || continue
12371 ;;
12372 nosideeffect)
12373 # After this tag, mechanisms are not by side-effect, so they'll
12374 # only be used when explicitly requested.
12375 if test "x$enable_dependency_tracking" = xyes; then
12376 continue
12377 else
12378 break
12379 fi
12380 ;;
12381 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12382 # This compiler won't grok '-c -o', but also, the minuso test has
12383 # not run yet. These depmodes are late enough in the game, and
12384 # so weak that their functioning should not be impacted.
12385 am__obj=conftest.${OBJEXT-o}
12386 am__minus_obj=
12387 ;;
12388 none) break ;;
12389 esac
12390 if depmode=$depmode \
12391 source=sub/conftest.c object=$am__obj \
12392 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12393 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12394 >/dev/null 2>conftest.err &&
12395 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12396 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12397 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12398 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12399 # icc doesn't choke on unknown options, it will just issue warnings
12400 # or remarks (even with -Werror). So we grep stderr for any message
12401 # that says an option was ignored or not supported.
12402 # When given -MP, icc 7.0 and 7.1 complain thusly:
12403 # icc: Command line warning: ignoring option '-M'; no argument required
12404 # The diagnosis changed in icc 8.0:
12405 # icc: Command line remark: option '-MP' not supported
12406 if (grep 'ignoring option' conftest.err ||
12407 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12408 am_cv_CXX_dependencies_compiler_type=$depmode
12409 break
12410 fi
12411 fi
12412 done
12413
12414 cd ..
12415 rm -rf conftest.dir
12416else
12417 am_cv_CXX_dependencies_compiler_type=none
12418fi
12419
12420fi
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12422$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12423CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12424
12425 if
12426 test "x$enable_dependency_tracking" != xno \
12427 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12428 am__fastdepCXX_TRUE=
12429 am__fastdepCXX_FALSE='#'
12430else
12431 am__fastdepCXX_TRUE='#'
12432 am__fastdepCXX_FALSE=
12433fi
12434
12435
12436
12437
12438func_stripname_cnf ()
12439{
12440 case ${2} in
12441 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12442 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12443 esac
12444} # func_stripname_cnf
12445
12446 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12447 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12448 (test "X$CXX" != "Xg++"))) ; then
12449 ac_ext=cpp
12450ac_cpp='$CXXCPP $CPPFLAGS'
12451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12455$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12456if test -z "$CXXCPP"; then
12457 if ${ac_cv_prog_CXXCPP+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459else
12460 # Double quotes because CXXCPP needs to be expanded
12461 for CXXCPP in "$CXX -E" "/lib/cpp"
12462 do
12463 ac_preproc_ok=false
12464for ac_cxx_preproc_warn_flag in '' yes
12465do
12466 # Use a header file that comes with gcc, so configuring glibc
12467 # with a fresh cross-compiler works.
12468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 # <limits.h> exists even on freestanding compilers.
12470 # On the NeXT, cc -E runs the code through the compiler's parser,
12471 # not just through cpp. "Syntax error" is here to catch this case.
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473/* end confdefs.h. */
12474#ifdef __STDC__
12475# include <limits.h>
12476#else
12477# include <assert.h>
12478#endif
12479 Syntax error
12480_ACEOF
12481if ac_fn_cxx_try_cpp "$LINENO"; then :
12482
12483else
12484 # Broken: fails on valid input.
12485continue
12486fi
12487rm -f conftest.err conftest.i conftest.$ac_ext
12488
12489 # OK, works on sane cases. Now check whether nonexistent headers
12490 # can be detected and how.
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h. */
12493#include <ac_nonexistent.h>
12494_ACEOF
12495if ac_fn_cxx_try_cpp "$LINENO"; then :
12496 # Broken: success on invalid input.
12497continue
12498else
12499 # Passes both tests.
12500ac_preproc_ok=:
12501break
12502fi
12503rm -f conftest.err conftest.i conftest.$ac_ext
12504
12505done
12506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12507rm -f conftest.i conftest.err conftest.$ac_ext
12508if $ac_preproc_ok; then :
12509 break
12510fi
12511
12512 done
12513 ac_cv_prog_CXXCPP=$CXXCPP
12514
12515fi
12516 CXXCPP=$ac_cv_prog_CXXCPP
12517else
12518 ac_cv_prog_CXXCPP=$CXXCPP
12519fi
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12521$as_echo "$CXXCPP" >&6; }
12522ac_preproc_ok=false
12523for ac_cxx_preproc_warn_flag in '' yes
12524do
12525 # Use a header file that comes with gcc, so configuring glibc
12526 # with a fresh cross-compiler works.
12527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12528 # <limits.h> exists even on freestanding compilers.
12529 # On the NeXT, cc -E runs the code through the compiler's parser,
12530 # not just through cpp. "Syntax error" is here to catch this case.
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532/* end confdefs.h. */
12533#ifdef __STDC__
12534# include <limits.h>
12535#else
12536# include <assert.h>
12537#endif
12538 Syntax error
12539_ACEOF
12540if ac_fn_cxx_try_cpp "$LINENO"; then :
12541
12542else
12543 # Broken: fails on valid input.
12544continue
12545fi
12546rm -f conftest.err conftest.i conftest.$ac_ext
12547
12548 # OK, works on sane cases. Now check whether nonexistent headers
12549 # can be detected and how.
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551/* end confdefs.h. */
12552#include <ac_nonexistent.h>
12553_ACEOF
12554if ac_fn_cxx_try_cpp "$LINENO"; then :
12555 # Broken: success on invalid input.
12556continue
12557else
12558 # Passes both tests.
12559ac_preproc_ok=:
12560break
12561fi
12562rm -f conftest.err conftest.i conftest.$ac_ext
12563
12564done
12565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12566rm -f conftest.i conftest.err conftest.$ac_ext
12567if $ac_preproc_ok; then :
12568
12569else
12570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12572as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12573See \`config.log' for more details" "$LINENO" 5; }
12574fi
12575
12576ac_ext=c
12577ac_cpp='$CPP $CPPFLAGS'
12578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581
12582else
12583 _lt_caught_CXX_error=yes
12584fi
12585
12586ac_ext=cpp
12587ac_cpp='$CXXCPP $CPPFLAGS'
12588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12591
12592archive_cmds_need_lc_CXX=no
12593allow_undefined_flag_CXX=
12594always_export_symbols_CXX=no
12595archive_expsym_cmds_CXX=
12596compiler_needs_object_CXX=no
12597export_dynamic_flag_spec_CXX=
12598hardcode_direct_CXX=no
12599hardcode_direct_absolute_CXX=no
12600hardcode_libdir_flag_spec_CXX=
12601hardcode_libdir_separator_CXX=
12602hardcode_minus_L_CXX=no
12603hardcode_shlibpath_var_CXX=unsupported
12604hardcode_automatic_CXX=no
12605inherit_rpath_CXX=no
12606module_cmds_CXX=
12607module_expsym_cmds_CXX=
12608link_all_deplibs_CXX=unknown
12609old_archive_cmds_CXX=$old_archive_cmds
12610reload_flag_CXX=$reload_flag
12611reload_cmds_CXX=$reload_cmds
12612no_undefined_flag_CXX=
12613whole_archive_flag_spec_CXX=
12614enable_shared_with_static_runtimes_CXX=no
12615
12616# Source file extension for C++ test sources.
12617ac_ext=cpp
12618
12619# Object file extension for compiled C++ test sources.
12620objext=o
12621objext_CXX=$objext
12622
12623# No sense in running all these tests if we already determined that
12624# the CXX compiler isn't working. Some variables (like enable_shared)
12625# are currently assumed to apply to all compilers on this platform,
12626# and will be corrupted by setting them based on a non-working compiler.
12627if test "$_lt_caught_CXX_error" != yes; then
12628 # Code to be used in simple compile tests
12629 lt_simple_compile_test_code="int some_variable = 0;"
12630
12631 # Code to be used in simple link tests
12632 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12633
12634 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12635
12636
12637
12638
12639
12640
12641# If no C compiler was specified, use CC.
12642LTCC=${LTCC-"$CC"}
12643
12644# If no C compiler flags were specified, use CFLAGS.
12645LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12646
12647# Allow CC to be a program name with arguments.
12648compiler=$CC
12649
12650
12651 # save warnings/boilerplate of simple test code
12652 ac_outfile=conftest.$ac_objext
12653echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12654eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655_lt_compiler_boilerplate=`cat conftest.err`
12656$RM conftest*
12657
12658 ac_outfile=conftest.$ac_objext
12659echo "$lt_simple_link_test_code" >conftest.$ac_ext
12660eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12661_lt_linker_boilerplate=`cat conftest.err`
12662$RM -r conftest*
12663
12664
12665 # Allow CC to be a program name with arguments.
12666 lt_save_CC=$CC
12667 lt_save_CFLAGS=$CFLAGS
12668 lt_save_LD=$LD
12669 lt_save_GCC=$GCC
12670 GCC=$GXX
12671 lt_save_with_gnu_ld=$with_gnu_ld
12672 lt_save_path_LD=$lt_cv_path_LD
12673 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12674 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12675 else
12676 $as_unset lt_cv_prog_gnu_ld
12677 fi
12678 if test -n "${lt_cv_path_LDCXX+set}"; then
12679 lt_cv_path_LD=$lt_cv_path_LDCXX
12680 else
12681 $as_unset lt_cv_path_LD
12682 fi
12683 test -z "${LDCXX+set}" || LD=$LDCXX
12684 CC=${CXX-"c++"}
12685 CFLAGS=$CXXFLAGS
12686 compiler=$CC
12687 compiler_CXX=$CC
12688 for cc_temp in $compiler""; do
12689 case $cc_temp in
12690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12692 \-*) ;;
12693 *) break;;
12694 esac
12695done
12696cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12697
12698
12699 if test -n "$compiler"; then
12700 # We don't want -fno-exception when compiling C++ code, so set the
12701 # no_builtin_flag separately
12702 if test "$GXX" = yes; then
12703 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12704 else
12705 lt_prog_compiler_no_builtin_flag_CXX=
12706 fi
12707
12708 if test "$GXX" = yes; then
12709 # Set up default GNU C++ configuration
12710
12711
12712
12713# Check whether --with-gnu-ld was given.
12714if test "${with_gnu_ld+set}" = set; then :
12715 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12716else
12717 with_gnu_ld=no
12718fi
12719
12720ac_prog=ld
12721if test "$GCC" = yes; then
12722 # Check if gcc -print-prog-name=ld gives a path.
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12724$as_echo_n "checking for ld used by $CC... " >&6; }
12725 case $host in
12726 *-*-mingw*)
12727 # gcc leaves a trailing carriage return which upsets mingw
12728 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12729 *)
12730 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12731 esac
12732 case $ac_prog in
12733 # Accept absolute paths.
12734 [\\/]* | ?:[\\/]*)
12735 re_direlt='/[^/][^/]*/\.\./'
12736 # Canonicalize the pathname of ld
12737 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12738 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12739 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12740 done
12741 test -z "$LD" && LD="$ac_prog"
12742 ;;
12743 "")
12744 # If it fails, then pretend we aren't using GCC.
12745 ac_prog=ld
12746 ;;
12747 *)
12748 # If it is relative, then search for the first ld in PATH.
12749 with_gnu_ld=unknown
12750 ;;
12751 esac
12752elif test "$with_gnu_ld" = yes; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12754$as_echo_n "checking for GNU ld... " >&6; }
12755else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12757$as_echo_n "checking for non-GNU ld... " >&6; }
12758fi
12759if ${lt_cv_path_LD+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761else
12762 if test -z "$LD"; then
12763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12764 for ac_dir in $PATH; do
12765 IFS="$lt_save_ifs"
12766 test -z "$ac_dir" && ac_dir=.
12767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12768 lt_cv_path_LD="$ac_dir/$ac_prog"
12769 # Check to see if the program is GNU ld. I'd rather use --version,
12770 # but apparently some variants of GNU ld only accept -v.
12771 # Break only if it was the GNU/non-GNU ld that we prefer.
12772 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12773 *GNU* | *'with BFD'*)
12774 test "$with_gnu_ld" != no && break
12775 ;;
12776 *)
12777 test "$with_gnu_ld" != yes && break
12778 ;;
12779 esac
12780 fi
12781 done
12782 IFS="$lt_save_ifs"
12783else
12784 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12785fi
12786fi
12787
12788LD="$lt_cv_path_LD"
12789if test -n "$LD"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12791$as_echo "$LD" >&6; }
12792else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794$as_echo "no" >&6; }
12795fi
12796test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12798$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12799if ${lt_cv_prog_gnu_ld+:} false; then :
12800 $as_echo_n "(cached) " >&6
12801else
12802 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12803case `$LD -v 2>&1 </dev/null` in
12804*GNU* | *'with BFD'*)
12805 lt_cv_prog_gnu_ld=yes
12806 ;;
12807*)
12808 lt_cv_prog_gnu_ld=no
12809 ;;
12810esac
12811fi
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12813$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12814with_gnu_ld=$lt_cv_prog_gnu_ld
12815
12816
12817
12818
12819
12820
12821
12822 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12823 # archiving commands below assume that GNU ld is being used.
12824 if test "$with_gnu_ld" = yes; then
12825 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 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'
12827
12828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12830
12831 # If archive_cmds runs LD, not CC, wlarc should be empty
12832 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12833 # investigate it a little bit more. (MM)
12834 wlarc='${wl}'
12835
12836 # ancient GNU ld didn't support --whole-archive et. al.
12837 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12838 $GREP 'no-whole-archive' > /dev/null; then
12839 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12840 else
12841 whole_archive_flag_spec_CXX=
12842 fi
12843 else
12844 with_gnu_ld=no
12845 wlarc=
12846
12847 # A generic and very simple default shared library creation
12848 # command for GNU C++ for the case where it uses the native
12849 # linker, instead of GNU ld. If possible, this setting should
12850 # overridden to take advantage of the native linker features on
12851 # the platform it is being used on.
12852 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12853 fi
12854
12855 # Commands to make compiler produce verbose output that lists
12856 # what "hidden" libraries, object files and flags are used when
12857 # linking a shared library.
12858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12859
12860 else
12861 GXX=no
12862 with_gnu_ld=no
12863 wlarc=
12864 fi
12865
12866 # PORTME: fill in a description of your system's C++ link characteristics
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12868$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12869 ld_shlibs_CXX=yes
12870 case $host_os in
12871 aix3*)
12872 # FIXME: insert proper C++ library support
12873 ld_shlibs_CXX=no
12874 ;;
12875 aix[4-9]*)
12876 if test "$host_cpu" = ia64; then
12877 # On IA64, the linker does run time linking by default, so we don't
12878 # have to do anything special.
12879 aix_use_runtimelinking=no
12880 exp_sym_flag='-Bexport'
12881 no_entry_flag=""
12882 else
12883 aix_use_runtimelinking=no
12884
12885 # Test if we are trying to use run time linking or normal
12886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12887 # need to do runtime linking.
12888 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12889 for ld_flag in $LDFLAGS; do
12890 case $ld_flag in
12891 *-brtl*)
12892 aix_use_runtimelinking=yes
12893 break
12894 ;;
12895 esac
12896 done
12897 ;;
12898 esac
12899
12900 exp_sym_flag='-bexport'
12901 no_entry_flag='-bnoentry'
12902 fi
12903
12904 # When large executables or shared objects are built, AIX ld can
12905 # have problems creating the table of contents. If linking a library
12906 # or program results in "error TOC overflow" add -mminimal-toc to
12907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12909
12910 archive_cmds_CXX=''
12911 hardcode_direct_CXX=yes
12912 hardcode_direct_absolute_CXX=yes
12913 hardcode_libdir_separator_CXX=':'
12914 link_all_deplibs_CXX=yes
12915 file_list_spec_CXX='${wl}-f,'
12916
12917 if test "$GXX" = yes; then
12918 case $host_os in aix4.[012]|aix4.[012].*)
12919 # We only want to do this on AIX 4.2 and lower, the check
12920 # below for broken collect2 doesn't work under 4.3+
12921 collect2name=`${CC} -print-prog-name=collect2`
12922 if test -f "$collect2name" &&
12923 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12924 then
12925 # We have reworked collect2
12926 :
12927 else
12928 # We have old collect2
12929 hardcode_direct_CXX=unsupported
12930 # It fails to find uninstalled libraries when the uninstalled
12931 # path is not listed in the libpath. Setting hardcode_minus_L
12932 # to unsupported forces relinking
12933 hardcode_minus_L_CXX=yes
12934 hardcode_libdir_flag_spec_CXX='-L$libdir'
12935 hardcode_libdir_separator_CXX=
12936 fi
12937 esac
12938 shared_flag='-shared'
12939 if test "$aix_use_runtimelinking" = yes; then
12940 shared_flag="$shared_flag "'${wl}-G'
12941 fi
12942 else
12943 # not using gcc
12944 if test "$host_cpu" = ia64; then
12945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12946 # chokes on -Wl,-G. The following line is correct:
12947 shared_flag='-G'
12948 else
12949 if test "$aix_use_runtimelinking" = yes; then
12950 shared_flag='${wl}-G'
12951 else
12952 shared_flag='${wl}-bM:SRE'
12953 fi
12954 fi
12955 fi
12956
12957 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12958 # It seems that -bexpall does not export symbols beginning with
12959 # underscore (_), so it is better to generate a list of symbols to
12960 # export.
12961 always_export_symbols_CXX=yes
12962 if test "$aix_use_runtimelinking" = yes; then
12963 # Warning - without using the other runtime loading flags (-brtl),
12964 # -berok will link without error, but may produce a broken library.
12965 allow_undefined_flag_CXX='-berok'
12966 # Determine the default libpath from the value encoded in an empty
12967 # executable.
12968 if test "${lt_cv_aix_libpath+set}" = set; then
12969 aix_libpath=$lt_cv_aix_libpath
12970else
12971 if ${lt_cv_aix_libpath__CXX+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973else
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975/* end confdefs.h. */
12976
12977int
12978main ()
12979{
12980
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985if ac_fn_cxx_try_link "$LINENO"; then :
12986
12987 lt_aix_libpath_sed='
12988 /Import File Strings/,/^$/ {
12989 /^0/ {
12990 s/^0 *\([^ ]*\) *$/\1/
12991 p
12992 }
12993 }'
12994 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12995 # Check for a 64-bit object if we didn't find anything.
12996 if test -z "$lt_cv_aix_libpath__CXX"; then
12997 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12998 fi
12999fi
13000rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 if test -z "$lt_cv_aix_libpath__CXX"; then
13003 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13004 fi
13005
13006fi
13007
13008 aix_libpath=$lt_cv_aix_libpath__CXX
13009fi
13010
13011 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13012
13013 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"
13014 else
13015 if test "$host_cpu" = ia64; then
13016 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13017 allow_undefined_flag_CXX="-z nodefs"
13018 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"
13019 else
13020 # Determine the default libpath from the value encoded in an
13021 # empty executable.
13022 if test "${lt_cv_aix_libpath+set}" = set; then
13023 aix_libpath=$lt_cv_aix_libpath
13024else
13025 if ${lt_cv_aix_libpath__CXX+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027else
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h. */
13030
13031int
13032main ()
13033{
13034
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039if ac_fn_cxx_try_link "$LINENO"; then :
13040
13041 lt_aix_libpath_sed='
13042 /Import File Strings/,/^$/ {
13043 /^0/ {
13044 s/^0 *\([^ ]*\) *$/\1/
13045 p
13046 }
13047 }'
13048 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13049 # Check for a 64-bit object if we didn't find anything.
13050 if test -z "$lt_cv_aix_libpath__CXX"; then
13051 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13052 fi
13053fi
13054rm -f core conftest.err conftest.$ac_objext \
13055 conftest$ac_exeext conftest.$ac_ext
13056 if test -z "$lt_cv_aix_libpath__CXX"; then
13057 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13058 fi
13059
13060fi
13061
13062 aix_libpath=$lt_cv_aix_libpath__CXX
13063fi
13064
13065 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13066 # Warning - without using the other run time loading flags,
13067 # -berok will link without error, but may produce a broken library.
13068 no_undefined_flag_CXX=' ${wl}-bernotok'
13069 allow_undefined_flag_CXX=' ${wl}-berok'
13070 if test "$with_gnu_ld" = yes; then
13071 # We only use this code for GNU lds that support --whole-archive.
13072 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13073 else
13074 # Exported symbols can be pulled into shared objects from archives
13075 whole_archive_flag_spec_CXX='$convenience'
13076 fi
13077 archive_cmds_need_lc_CXX=yes
13078 # This is similar to how AIX traditionally builds its shared
13079 # libraries.
13080 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'
13081 fi
13082 fi
13083 ;;
13084
13085 beos*)
13086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13087 allow_undefined_flag_CXX=unsupported
13088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13089 # support --undefined. This deserves some investigation. FIXME
13090 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 else
13092 ld_shlibs_CXX=no
13093 fi
13094 ;;
13095
13096 chorus*)
13097 case $cc_basename in
13098 *)
13099 # FIXME: insert proper C++ library support
13100 ld_shlibs_CXX=no
13101 ;;
13102 esac
13103 ;;
13104
13105 cygwin* | mingw* | pw32* | cegcc*)
13106 case $GXX,$cc_basename in
13107 ,cl* | no,cl*)
13108 # Native MSVC
13109 # hardcode_libdir_flag_spec is actually meaningless, as there is
13110 # no search path for DLLs.
13111 hardcode_libdir_flag_spec_CXX=' '
13112 allow_undefined_flag_CXX=unsupported
13113 always_export_symbols_CXX=yes
13114 file_list_spec_CXX='@'
13115 # Tell ltmain to make .lib files, not .a files.
13116 libext=lib
13117 # Tell ltmain to make .dll files, not .so files.
13118 shrext_cmds=".dll"
13119 # FIXME: Setting linknames here is a bad hack.
13120 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13121 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13122 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13123 else
13124 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13125 fi~
13126 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13127 linknames='
13128 # The linker will not automatically build a static lib if we build a DLL.
13129 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13130 enable_shared_with_static_runtimes_CXX=yes
13131 # Don't use ranlib
13132 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13133 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13134 lt_tool_outputfile="@TOOL_OUTPUT@"~
13135 case $lt_outputfile in
13136 *.exe|*.EXE) ;;
13137 *)
13138 lt_outputfile="$lt_outputfile.exe"
13139 lt_tool_outputfile="$lt_tool_outputfile.exe"
13140 ;;
13141 esac~
13142 func_to_tool_file "$lt_outputfile"~
13143 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13144 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13145 $RM "$lt_outputfile.manifest";
13146 fi'
13147 ;;
13148 *)
13149 # g++
13150 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13151 # as there is no search path for DLLs.
13152 hardcode_libdir_flag_spec_CXX='-L$libdir'
13153 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13154 allow_undefined_flag_CXX=unsupported
13155 always_export_symbols_CXX=no
13156 enable_shared_with_static_runtimes_CXX=yes
13157
13158 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13159 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'
13160 # If the export-symbols file already is a .def file (1st line
13161 # is EXPORTS), use it as is; otherwise, prepend...
13162 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13163 cp $export_symbols $output_objdir/$soname.def;
13164 else
13165 echo EXPORTS > $output_objdir/$soname.def;
13166 cat $export_symbols >> $output_objdir/$soname.def;
13167 fi~
13168 $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'
13169 else
13170 ld_shlibs_CXX=no
13171 fi
13172 ;;
13173 esac
13174 ;;
13175 darwin* | rhapsody*)
13176
13177
13178 archive_cmds_need_lc_CXX=no
13179 hardcode_direct_CXX=no
13180 hardcode_automatic_CXX=yes
13181 hardcode_shlibpath_var_CXX=unsupported
13182 if test "$lt_cv_ld_force_load" = "yes"; then
13183 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\"`'
13184
13185 else
13186 whole_archive_flag_spec_CXX=''
13187 fi
13188 link_all_deplibs_CXX=yes
13189 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13190 case $cc_basename in
13191 ifort*) _lt_dar_can_shared=yes ;;
13192 *) _lt_dar_can_shared=$GCC ;;
13193 esac
13194 if test "$_lt_dar_can_shared" = "yes"; then
13195 output_verbose_link_cmd=func_echo_all
13196 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}"
13197 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13198 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}"
13199 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}"
13200 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13201 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}"
13202 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}"
13203 fi
13204
13205 else
13206 ld_shlibs_CXX=no
13207 fi
13208
13209 ;;
13210
13211 dgux*)
13212 case $cc_basename in
13213 ec++*)
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 ghcx*)
13218 # Green Hills C++ Compiler
13219 # FIXME: insert proper C++ library support
13220 ld_shlibs_CXX=no
13221 ;;
13222 *)
13223 # FIXME: insert proper C++ library support
13224 ld_shlibs_CXX=no
13225 ;;
13226 esac
13227 ;;
13228
13229 freebsd2.*)
13230 # C++ shared libraries reported to be fairly broken before
13231 # switch to ELF
13232 ld_shlibs_CXX=no
13233 ;;
13234
13235 freebsd-elf*)
13236 archive_cmds_need_lc_CXX=no
13237 ;;
13238
13239 freebsd* | dragonfly*)
13240 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13241 # conventions
13242 ld_shlibs_CXX=yes
13243 ;;
13244
13245 gnu*)
13246 ;;
13247
13248 haiku*)
13249 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13250 link_all_deplibs_CXX=yes
13251 ;;
13252
13253 hpux9*)
13254 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13255 hardcode_libdir_separator_CXX=:
13256 export_dynamic_flag_spec_CXX='${wl}-E'
13257 hardcode_direct_CXX=yes
13258 hardcode_minus_L_CXX=yes # Not in the search PATH,
13259 # but as the default
13260 # location of the library.
13261
13262 case $cc_basename in
13263 CC*)
13264 # FIXME: insert proper C++ library support
13265 ld_shlibs_CXX=no
13266 ;;
13267 aCC*)
13268 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'
13269 # Commands to make compiler produce verbose output that lists
13270 # what "hidden" libraries, object files and flags are used when
13271 # linking a shared library.
13272 #
13273 # There doesn't appear to be a way to prevent this compiler from
13274 # explicitly linking system object files so we need to strip them
13275 # from the output so that they don't get included in the library
13276 # dependencies.
13277 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"'
13278 ;;
13279 *)
13280 if test "$GXX" = yes; then
13281 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'
13282 else
13283 # FIXME: insert proper C++ library support
13284 ld_shlibs_CXX=no
13285 fi
13286 ;;
13287 esac
13288 ;;
13289
13290 hpux10*|hpux11*)
13291 if test $with_gnu_ld = no; then
13292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13293 hardcode_libdir_separator_CXX=:
13294
13295 case $host_cpu in
13296 hppa*64*|ia64*)
13297 ;;
13298 *)
13299 export_dynamic_flag_spec_CXX='${wl}-E'
13300 ;;
13301 esac
13302 fi
13303 case $host_cpu in
13304 hppa*64*|ia64*)
13305 hardcode_direct_CXX=no
13306 hardcode_shlibpath_var_CXX=no
13307 ;;
13308 *)
13309 hardcode_direct_CXX=yes
13310 hardcode_direct_absolute_CXX=yes
13311 hardcode_minus_L_CXX=yes # Not in the search PATH,
13312 # but as the default
13313 # location of the library.
13314 ;;
13315 esac
13316
13317 case $cc_basename in
13318 CC*)
13319 # FIXME: insert proper C++ library support
13320 ld_shlibs_CXX=no
13321 ;;
13322 aCC*)
13323 case $host_cpu in
13324 hppa*64*)
13325 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13326 ;;
13327 ia64*)
13328 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13329 ;;
13330 *)
13331 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13332 ;;
13333 esac
13334 # Commands to make compiler produce verbose output that lists
13335 # what "hidden" libraries, object files and flags are used when
13336 # linking a shared library.
13337 #
13338 # There doesn't appear to be a way to prevent this compiler from
13339 # explicitly linking system object files so we need to strip them
13340 # from the output so that they don't get included in the library
13341 # dependencies.
13342 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"'
13343 ;;
13344 *)
13345 if test "$GXX" = yes; then
13346 if test $with_gnu_ld = no; then
13347 case $host_cpu in
13348 hppa*64*)
13349 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13350 ;;
13351 ia64*)
13352 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13353 ;;
13354 *)
13355 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'
13356 ;;
13357 esac
13358 fi
13359 else
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13362 fi
13363 ;;
13364 esac
13365 ;;
13366
13367 interix[3-9]*)
13368 hardcode_direct_CXX=no
13369 hardcode_shlibpath_var_CXX=no
13370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13371 export_dynamic_flag_spec_CXX='${wl}-E'
13372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13373 # Instead, shared libraries are loaded at an image base (0x10000000 by
13374 # default) and relocated if they conflict, which is a slow very memory
13375 # consuming and fragmenting process. To avoid this, we pick a random,
13376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13378 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'
13379 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'
13380 ;;
13381 irix5* | irix6*)
13382 case $cc_basename in
13383 CC*)
13384 # SGI C++
13385 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'
13386
13387 # Archives containing C++ object files must be created using
13388 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13389 # necessary to make sure instantiated templates are included
13390 # in the archive.
13391 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13392 ;;
13393 *)
13394 if test "$GXX" = yes; then
13395 if test "$with_gnu_ld" = no; then
13396 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'
13397 else
13398 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'
13399 fi
13400 fi
13401 link_all_deplibs_CXX=yes
13402 ;;
13403 esac
13404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13405 hardcode_libdir_separator_CXX=:
13406 inherit_rpath_CXX=yes
13407 ;;
13408
13409 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13410 case $cc_basename in
13411 KCC*)
13412 # Kuck and Associates, Inc. (KAI) C++ Compiler
13413
13414 # KCC will only create a shared library if the output file
13415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13416 # to its proper name (with version) after linking.
13417 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'
13418 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'
13419 # Commands to make compiler produce verbose output that lists
13420 # what "hidden" libraries, object files and flags are used when
13421 # linking a shared library.
13422 #
13423 # There doesn't appear to be a way to prevent this compiler from
13424 # explicitly linking system object files so we need to strip them
13425 # from the output so that they don't get included in the library
13426 # dependencies.
13427 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"'
13428
13429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13431
13432 # Archives containing C++ object files must be created using
13433 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13434 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13435 ;;
13436 icpc* | ecpc* )
13437 # Intel C++
13438 with_gnu_ld=yes
13439 # version 8.0 and above of icpc choke on multiply defined symbols
13440 # if we add $predep_objects and $postdep_objects, however 7.1 and
13441 # earlier do not add the objects themselves.
13442 case `$CC -V 2>&1` in
13443 *"Version 7."*)
13444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13445 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'
13446 ;;
13447 *) # Version 8.0 or newer
13448 tmp_idyn=
13449 case $host_cpu in
13450 ia64*) tmp_idyn=' -i_dynamic';;
13451 esac
13452 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453 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'
13454 ;;
13455 esac
13456 archive_cmds_need_lc_CXX=no
13457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13459 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13460 ;;
13461 pgCC* | pgcpp*)
13462 # Portland Group C++ compiler
13463 case `$CC -V` in
13464 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13465 prelink_cmds_CXX='tpldir=Template.dir~
13466 rm -rf $tpldir~
13467 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13468 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13469 old_archive_cmds_CXX='tpldir=Template.dir~
13470 rm -rf $tpldir~
13471 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13472 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13473 $RANLIB $oldlib'
13474 archive_cmds_CXX='tpldir=Template.dir~
13475 rm -rf $tpldir~
13476 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13477 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13478 archive_expsym_cmds_CXX='tpldir=Template.dir~
13479 rm -rf $tpldir~
13480 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13481 $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'
13482 ;;
13483 *) # Version 6 and above use weak symbols
13484 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13485 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'
13486 ;;
13487 esac
13488
13489 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13491 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'
13492 ;;
13493 cxx*)
13494 # Compaq C++
13495 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13496 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'
13497
13498 runpath_var=LD_RUN_PATH
13499 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13500 hardcode_libdir_separator_CXX=:
13501
13502 # Commands to make compiler produce verbose output that lists
13503 # what "hidden" libraries, object files and flags are used when
13504 # linking a shared library.
13505 #
13506 # There doesn't appear to be a way to prevent this compiler from
13507 # explicitly linking system object files so we need to strip them
13508 # from the output so that they don't get included in the library
13509 # dependencies.
13510 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'
13511 ;;
13512 xl* | mpixl* | bgxl*)
13513 # IBM XL 8.0 on PPC, with GNU ld
13514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13516 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13517 if test "x$supports_anon_versioning" = xyes; then
13518 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13520 echo "local: *; };" >> $output_objdir/$libname.ver~
13521 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13522 fi
13523 ;;
13524 *)
13525 case `$CC -V 2>&1 | sed 5q` in
13526 *Sun\ C*)
13527 # Sun C++ 5.9
13528 no_undefined_flag_CXX=' -zdefs'
13529 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13530 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'
13531 hardcode_libdir_flag_spec_CXX='-R$libdir'
13532 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'
13533 compiler_needs_object_CXX=yes
13534
13535 # Not sure whether something based on
13536 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13537 # would be better.
13538 output_verbose_link_cmd='func_echo_all'
13539
13540 # Archives containing C++ object files must be created using
13541 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13542 # necessary to make sure instantiated templates are included
13543 # in the archive.
13544 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13545 ;;
13546 esac
13547 ;;
13548 esac
13549 ;;
13550
13551 lynxos*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555
13556 m88k*)
13557 # FIXME: insert proper C++ library support
13558 ld_shlibs_CXX=no
13559 ;;
13560
13561 mvs*)
13562 case $cc_basename in
13563 cxx*)
13564 # FIXME: insert proper C++ library support
13565 ld_shlibs_CXX=no
13566 ;;
13567 *)
13568 # FIXME: insert proper C++ library support
13569 ld_shlibs_CXX=no
13570 ;;
13571 esac
13572 ;;
13573
13574 netbsd*)
13575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13576 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13577 wlarc=
13578 hardcode_libdir_flag_spec_CXX='-R$libdir'
13579 hardcode_direct_CXX=yes
13580 hardcode_shlibpath_var_CXX=no
13581 fi
13582 # Workaround some broken pre-1.5 toolchains
13583 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13584 ;;
13585
13586 *nto* | *qnx*)
13587 ld_shlibs_CXX=yes
13588 ;;
13589
13590 openbsd2*)
13591 # C++ shared libraries are fairly broken
13592 ld_shlibs_CXX=no
13593 ;;
13594
13595 openbsd*)
13596 if test -f /usr/libexec/ld.so; then
13597 hardcode_direct_CXX=yes
13598 hardcode_shlibpath_var_CXX=no
13599 hardcode_direct_absolute_CXX=yes
13600 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13603 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13604 export_dynamic_flag_spec_CXX='${wl}-E'
13605 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13606 fi
13607 output_verbose_link_cmd=func_echo_all
13608 else
13609 ld_shlibs_CXX=no
13610 fi
13611 ;;
13612
13613 osf3* | osf4* | osf5*)
13614 case $cc_basename in
13615 KCC*)
13616 # Kuck and Associates, Inc. (KAI) C++ Compiler
13617
13618 # KCC will only create a shared library if the output file
13619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13620 # to its proper name (with version) after linking.
13621 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'
13622
13623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13624 hardcode_libdir_separator_CXX=:
13625
13626 # Archives containing C++ object files must be created using
13627 # the KAI C++ compiler.
13628 case $host in
13629 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13630 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13631 esac
13632 ;;
13633 RCC*)
13634 # Rational C++ 2.4.1
13635 # FIXME: insert proper C++ library support
13636 ld_shlibs_CXX=no
13637 ;;
13638 cxx*)
13639 case $host in
13640 osf3*)
13641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13642 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'
13643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13644 ;;
13645 *)
13646 allow_undefined_flag_CXX=' -expect_unresolved \*'
13647 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'
13648 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13649 echo "-hidden">> $lib.exp~
13650 $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~
13651 $RM $lib.exp'
13652 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13653 ;;
13654 esac
13655
13656 hardcode_libdir_separator_CXX=:
13657
13658 # Commands to make compiler produce verbose output that lists
13659 # what "hidden" libraries, object files and flags are used when
13660 # linking a shared library.
13661 #
13662 # There doesn't appear to be a way to prevent this compiler from
13663 # explicitly linking system object files so we need to strip them
13664 # from the output so that they don't get included in the library
13665 # dependencies.
13666 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"'
13667 ;;
13668 *)
13669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13670 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13671 case $host in
13672 osf3*)
13673 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'
13674 ;;
13675 *)
13676 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'
13677 ;;
13678 esac
13679
13680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13681 hardcode_libdir_separator_CXX=:
13682
13683 # Commands to make compiler produce verbose output that lists
13684 # what "hidden" libraries, object files and flags are used when
13685 # linking a shared library.
13686 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13687
13688 else
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13691 fi
13692 ;;
13693 esac
13694 ;;
13695
13696 psos*)
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13699 ;;
13700
13701 sunos4*)
13702 case $cc_basename in
13703 CC*)
13704 # Sun C++ 4.x
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708 lcc*)
13709 # Lucid
13710 # FIXME: insert proper C++ library support
13711 ld_shlibs_CXX=no
13712 ;;
13713 *)
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13716 ;;
13717 esac
13718 ;;
13719
13720 solaris*)
13721 case $cc_basename in
13722 CC* | sunCC*)
13723 # Sun C++ 4.2, 5.x and Centerline C++
13724 archive_cmds_need_lc_CXX=yes
13725 no_undefined_flag_CXX=' -zdefs'
13726 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13728 $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'
13729
13730 hardcode_libdir_flag_spec_CXX='-R$libdir'
13731 hardcode_shlibpath_var_CXX=no
13732 case $host_os in
13733 solaris2.[0-5] | solaris2.[0-5].*) ;;
13734 *)
13735 # The compiler driver will combine and reorder linker options,
13736 # but understands `-z linker_flag'.
13737 # Supported since Solaris 2.6 (maybe 2.5.1?)
13738 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13739 ;;
13740 esac
13741 link_all_deplibs_CXX=yes
13742
13743 output_verbose_link_cmd='func_echo_all'
13744
13745 # Archives containing C++ object files must be created using
13746 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13747 # necessary to make sure instantiated templates are included
13748 # in the archive.
13749 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13750 ;;
13751 gcx*)
13752 # Green Hills C++ Compiler
13753 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13754
13755 # The C++ compiler must be used to create the archive.
13756 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13757 ;;
13758 *)
13759 # GNU C++ compiler with Solaris linker
13760 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13761 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13762 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13763 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13765 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13766
13767 # Commands to make compiler produce verbose output that lists
13768 # what "hidden" libraries, object files and flags are used when
13769 # linking a shared library.
13770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13771 else
13772 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13773 # platform.
13774 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13775 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13776 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13777
13778 # Commands to make compiler produce verbose output that lists
13779 # what "hidden" libraries, object files and flags are used when
13780 # linking a shared library.
13781 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13782 fi
13783
13784 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13785 case $host_os in
13786 solaris2.[0-5] | solaris2.[0-5].*) ;;
13787 *)
13788 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13789 ;;
13790 esac
13791 fi
13792 ;;
13793 esac
13794 ;;
13795
13796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13797 no_undefined_flag_CXX='${wl}-z,text'
13798 archive_cmds_need_lc_CXX=no
13799 hardcode_shlibpath_var_CXX=no
13800 runpath_var='LD_RUN_PATH'
13801
13802 case $cc_basename in
13803 CC*)
13804 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13806 ;;
13807 *)
13808 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810 ;;
13811 esac
13812 ;;
13813
13814 sysv5* | sco3.2v5* | sco5v6*)
13815 # Note: We can NOT use -z defs as we might desire, because we do not
13816 # link with -lc, and that would cause any symbols used from libc to
13817 # always be unresolved, which means just about no library would
13818 # ever link correctly. If we're not using GNU ld we use -z text
13819 # though, which does catch some bad symbols but isn't as heavy-handed
13820 # as -z defs.
13821 no_undefined_flag_CXX='${wl}-z,text'
13822 allow_undefined_flag_CXX='${wl}-z,nodefs'
13823 archive_cmds_need_lc_CXX=no
13824 hardcode_shlibpath_var_CXX=no
13825 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13826 hardcode_libdir_separator_CXX=':'
13827 link_all_deplibs_CXX=yes
13828 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13829 runpath_var='LD_RUN_PATH'
13830
13831 case $cc_basename in
13832 CC*)
13833 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13836 '"$old_archive_cmds_CXX"
13837 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13838 '"$reload_cmds_CXX"
13839 ;;
13840 *)
13841 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 ;;
13844 esac
13845 ;;
13846
13847 tandem*)
13848 case $cc_basename in
13849 NCC*)
13850 # NonStop-UX NCC 3.20
13851 # FIXME: insert proper C++ library support
13852 ld_shlibs_CXX=no
13853 ;;
13854 *)
13855 # FIXME: insert proper C++ library support
13856 ld_shlibs_CXX=no
13857 ;;
13858 esac
13859 ;;
13860
13861 vxworks*)
13862 # FIXME: insert proper C++ library support
13863 ld_shlibs_CXX=no
13864 ;;
13865
13866 *)
13867 # FIXME: insert proper C++ library support
13868 ld_shlibs_CXX=no
13869 ;;
13870 esac
13871
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13873$as_echo "$ld_shlibs_CXX" >&6; }
13874 test "$ld_shlibs_CXX" = no && can_build_shared=no
13875
13876 GCC_CXX="$GXX"
13877 LD_CXX="$LD"
13878
13879 ## CAVEAT EMPTOR:
13880 ## There is no encapsulation within the following macros, do not change
13881 ## the running order or otherwise move them around unless you know exactly
13882 ## what you are doing...
13883 # Dependencies to place before and after the object being linked:
13884predep_objects_CXX=
13885postdep_objects_CXX=
13886predeps_CXX=
13887postdeps_CXX=
13888compiler_lib_search_path_CXX=
13889
13890cat > conftest.$ac_ext <<_LT_EOF
13891class Foo
13892{
13893public:
13894 Foo (void) { a = 0; }
13895private:
13896 int a;
13897};
13898_LT_EOF
13899
13900
13901_lt_libdeps_save_CFLAGS=$CFLAGS
13902case "$CC $CFLAGS " in #(
13903*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13904*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13905*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13906esac
13907
13908if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13909 (eval $ac_compile) 2>&5
13910 ac_status=$?
13911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912 test $ac_status = 0; }; then
13913 # Parse the compiler output and extract the necessary
13914 # objects, libraries and library flags.
13915
13916 # Sentinel used to keep track of whether or not we are before
13917 # the conftest object file.
13918 pre_test_object_deps_done=no
13919
13920 for p in `eval "$output_verbose_link_cmd"`; do
13921 case ${prev}${p} in
13922
13923 -L* | -R* | -l*)
13924 # Some compilers place space between "-{L,R}" and the path.
13925 # Remove the space.
13926 if test $p = "-L" ||
13927 test $p = "-R"; then
13928 prev=$p
13929 continue
13930 fi
13931
13932 # Expand the sysroot to ease extracting the directories later.
13933 if test -z "$prev"; then
13934 case $p in
13935 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13936 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13937 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13938 esac
13939 fi
13940 case $p in
13941 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13942 esac
13943 if test "$pre_test_object_deps_done" = no; then
13944 case ${prev} in
13945 -L | -R)
13946 # Internal compiler library paths should come after those
13947 # provided the user. The postdeps already come after the
13948 # user supplied libs so there is no need to process them.
13949 if test -z "$compiler_lib_search_path_CXX"; then
13950 compiler_lib_search_path_CXX="${prev}${p}"
13951 else
13952 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13953 fi
13954 ;;
13955 # The "-l" case would never come before the object being
13956 # linked, so don't bother handling this case.
13957 esac
13958 else
13959 if test -z "$postdeps_CXX"; then
13960 postdeps_CXX="${prev}${p}"
13961 else
13962 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13963 fi
13964 fi
13965 prev=
13966 ;;
13967
13968 *.lto.$objext) ;; # Ignore GCC LTO objects
13969 *.$objext)
13970 # This assumes that the test object file only shows up
13971 # once in the compiler output.
13972 if test "$p" = "conftest.$objext"; then
13973 pre_test_object_deps_done=yes
13974 continue
13975 fi
13976
13977 if test "$pre_test_object_deps_done" = no; then
13978 if test -z "$predep_objects_CXX"; then
13979 predep_objects_CXX="$p"
13980 else
13981 predep_objects_CXX="$predep_objects_CXX $p"
13982 fi
13983 else
13984 if test -z "$postdep_objects_CXX"; then
13985 postdep_objects_CXX="$p"
13986 else
13987 postdep_objects_CXX="$postdep_objects_CXX $p"
13988 fi
13989 fi
13990 ;;
13991
13992 *) ;; # Ignore the rest.
13993
13994 esac
13995 done
13996
13997 # Clean up.
13998 rm -f a.out a.exe
13999else
14000 echo "libtool.m4: error: problem compiling CXX test program"
14001fi
14002
14003$RM -f confest.$objext
14004CFLAGS=$_lt_libdeps_save_CFLAGS
14005
14006# PORTME: override above test on systems where it is broken
14007case $host_os in
14008interix[3-9]*)
14009 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14010 # hack all around it, let's just trust "g++" to DTRT.
14011 predep_objects_CXX=
14012 postdep_objects_CXX=
14013 postdeps_CXX=
14014 ;;
14015
14016linux*)
14017 case `$CC -V 2>&1 | sed 5q` in
14018 *Sun\ C*)
14019 # Sun C++ 5.9
14020
14021 # The more standards-conforming stlport4 library is
14022 # incompatible with the Cstd library. Avoid specifying
14023 # it if it's in CXXFLAGS. Ignore libCrun as
14024 # -library=stlport4 depends on it.
14025 case " $CXX $CXXFLAGS " in
14026 *" -library=stlport4 "*)
14027 solaris_use_stlport4=yes
14028 ;;
14029 esac
14030
14031 if test "$solaris_use_stlport4" != yes; then
14032 postdeps_CXX='-library=Cstd -library=Crun'
14033 fi
14034 ;;
14035 esac
14036 ;;
14037
14038solaris*)
14039 case $cc_basename in
14040 CC* | sunCC*)
14041 # The more standards-conforming stlport4 library is
14042 # incompatible with the Cstd library. Avoid specifying
14043 # it if it's in CXXFLAGS. Ignore libCrun as
14044 # -library=stlport4 depends on it.
14045 case " $CXX $CXXFLAGS " in
14046 *" -library=stlport4 "*)
14047 solaris_use_stlport4=yes
14048 ;;
14049 esac
14050
14051 # Adding this requires a known-good setup of shared libraries for
14052 # Sun compiler versions before 5.6, else PIC objects from an old
14053 # archive will be linked into the output, leading to subtle bugs.
14054 if test "$solaris_use_stlport4" != yes; then
14055 postdeps_CXX='-library=Cstd -library=Crun'
14056 fi
14057 ;;
14058 esac
14059 ;;
14060esac
14061
14062
14063case " $postdeps_CXX " in
14064*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14065esac
14066 compiler_lib_search_dirs_CXX=
14067if test -n "${compiler_lib_search_path_CXX}"; then
14068 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14069fi
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101 lt_prog_compiler_wl_CXX=
14102lt_prog_compiler_pic_CXX=
14103lt_prog_compiler_static_CXX=
14104
14105
14106 # C++ specific cases for pic, static, wl, etc.
14107 if test "$GXX" = yes; then
14108 lt_prog_compiler_wl_CXX='-Wl,'
14109 lt_prog_compiler_static_CXX='-static'
14110
14111 case $host_os in
14112 aix*)
14113 # All AIX code is PIC.
14114 if test "$host_cpu" = ia64; then
14115 # AIX 5 now supports IA64 processor
14116 lt_prog_compiler_static_CXX='-Bstatic'
14117 fi
14118 ;;
14119
14120 amigaos*)
14121 case $host_cpu in
14122 powerpc)
14123 # see comment about AmigaOS4 .so support
14124 lt_prog_compiler_pic_CXX='-fPIC'
14125 ;;
14126 m68k)
14127 # FIXME: we need at least 68020 code to build shared libraries, but
14128 # adding the `-m68020' flag to GCC prevents building anything better,
14129 # like `-m68040'.
14130 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14131 ;;
14132 esac
14133 ;;
14134
14135 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14136 # PIC is the default for these OSes.
14137 ;;
14138 mingw* | cygwin* | os2* | pw32* | cegcc*)
14139 # This hack is so that the source file can tell whether it is being
14140 # built for inclusion in a dll (and should export symbols for example).
14141 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14142 # (--disable-auto-import) libraries
14143 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14144 ;;
14145 darwin* | rhapsody*)
14146 # PIC is the default on this platform
14147 # Common symbols not allowed in MH_DYLIB files
14148 lt_prog_compiler_pic_CXX='-fno-common'
14149 ;;
14150 *djgpp*)
14151 # DJGPP does not support shared libraries at all
14152 lt_prog_compiler_pic_CXX=
14153 ;;
14154 haiku*)
14155 # PIC is the default for Haiku.
14156 # The "-static" flag exists, but is broken.
14157 lt_prog_compiler_static_CXX=
14158 ;;
14159 interix[3-9]*)
14160 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14161 # Instead, we relocate shared libraries at runtime.
14162 ;;
14163 sysv4*MP*)
14164 if test -d /usr/nec; then
14165 lt_prog_compiler_pic_CXX=-Kconform_pic
14166 fi
14167 ;;
14168 hpux*)
14169 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14170 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14171 # sets the default TLS model and affects inlining.
14172 case $host_cpu in
14173 hppa*64*)
14174 ;;
14175 *)
14176 lt_prog_compiler_pic_CXX='-fPIC'
14177 ;;
14178 esac
14179 ;;
14180 *qnx* | *nto*)
14181 # QNX uses GNU C++, but need to define -shared option too, otherwise
14182 # it will coredump.
14183 lt_prog_compiler_pic_CXX='-fPIC -shared'
14184 ;;
14185 *)
14186 lt_prog_compiler_pic_CXX='-fPIC'
14187 ;;
14188 esac
14189 else
14190 case $host_os in
14191 aix[4-9]*)
14192 # All AIX code is PIC.
14193 if test "$host_cpu" = ia64; then
14194 # AIX 5 now supports IA64 processor
14195 lt_prog_compiler_static_CXX='-Bstatic'
14196 else
14197 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14198 fi
14199 ;;
14200 chorus*)
14201 case $cc_basename in
14202 cxch68*)
14203 # Green Hills C++ Compiler
14204 # _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"
14205 ;;
14206 esac
14207 ;;
14208 mingw* | cygwin* | os2* | pw32* | cegcc*)
14209 # This hack is so that the source file can tell whether it is being
14210 # built for inclusion in a dll (and should export symbols for example).
14211 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14212 ;;
14213 dgux*)
14214 case $cc_basename in
14215 ec++*)
14216 lt_prog_compiler_pic_CXX='-KPIC'
14217 ;;
14218 ghcx*)
14219 # Green Hills C++ Compiler
14220 lt_prog_compiler_pic_CXX='-pic'
14221 ;;
14222 *)
14223 ;;
14224 esac
14225 ;;
14226 freebsd* | dragonfly*)
14227 # FreeBSD uses GNU C++
14228 ;;
14229 hpux9* | hpux10* | hpux11*)
14230 case $cc_basename in
14231 CC*)
14232 lt_prog_compiler_wl_CXX='-Wl,'
14233 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14234 if test "$host_cpu" != ia64; then
14235 lt_prog_compiler_pic_CXX='+Z'
14236 fi
14237 ;;
14238 aCC*)
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14241 case $host_cpu in
14242 hppa*64*|ia64*)
14243 # +Z the default
14244 ;;
14245 *)
14246 lt_prog_compiler_pic_CXX='+Z'
14247 ;;
14248 esac
14249 ;;
14250 *)
14251 ;;
14252 esac
14253 ;;
14254 interix*)
14255 # This is c89, which is MS Visual C++ (no shared libs)
14256 # Anyone wants to do a port?
14257 ;;
14258 irix5* | irix6* | nonstopux*)
14259 case $cc_basename in
14260 CC*)
14261 lt_prog_compiler_wl_CXX='-Wl,'
14262 lt_prog_compiler_static_CXX='-non_shared'
14263 # CC pic flag -KPIC is the default.
14264 ;;
14265 *)
14266 ;;
14267 esac
14268 ;;
14269 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14270 case $cc_basename in
14271 KCC*)
14272 # KAI C++ Compiler
14273 lt_prog_compiler_wl_CXX='--backend -Wl,'
14274 lt_prog_compiler_pic_CXX='-fPIC'
14275 ;;
14276 ecpc* )
14277 # old Intel C++ for x86_64 which still supported -KPIC.
14278 lt_prog_compiler_wl_CXX='-Wl,'
14279 lt_prog_compiler_pic_CXX='-KPIC'
14280 lt_prog_compiler_static_CXX='-static'
14281 ;;
14282 icpc* )
14283 # Intel C++, used to be incompatible with GCC.
14284 # ICC 10 doesn't accept -KPIC any more.
14285 lt_prog_compiler_wl_CXX='-Wl,'
14286 lt_prog_compiler_pic_CXX='-fPIC'
14287 lt_prog_compiler_static_CXX='-static'
14288 ;;
14289 pgCC* | pgcpp*)
14290 # Portland Group C++ compiler
14291 lt_prog_compiler_wl_CXX='-Wl,'
14292 lt_prog_compiler_pic_CXX='-fpic'
14293 lt_prog_compiler_static_CXX='-Bstatic'
14294 ;;
14295 cxx*)
14296 # Compaq C++
14297 # Make sure the PIC flag is empty. It appears that all Alpha
14298 # Linux and Compaq Tru64 Unix objects are PIC.
14299 lt_prog_compiler_pic_CXX=
14300 lt_prog_compiler_static_CXX='-non_shared'
14301 ;;
14302 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14303 # IBM XL 8.0, 9.0 on PPC and BlueGene
14304 lt_prog_compiler_wl_CXX='-Wl,'
14305 lt_prog_compiler_pic_CXX='-qpic'
14306 lt_prog_compiler_static_CXX='-qstaticlink'
14307 ;;
14308 *)
14309 case `$CC -V 2>&1 | sed 5q` in
14310 *Sun\ C*)
14311 # Sun C++ 5.9
14312 lt_prog_compiler_pic_CXX='-KPIC'
14313 lt_prog_compiler_static_CXX='-Bstatic'
14314 lt_prog_compiler_wl_CXX='-Qoption ld '
14315 ;;
14316 esac
14317 ;;
14318 esac
14319 ;;
14320 lynxos*)
14321 ;;
14322 m88k*)
14323 ;;
14324 mvs*)
14325 case $cc_basename in
14326 cxx*)
14327 lt_prog_compiler_pic_CXX='-W c,exportall'
14328 ;;
14329 *)
14330 ;;
14331 esac
14332 ;;
14333 netbsd*)
14334 ;;
14335 *qnx* | *nto*)
14336 # QNX uses GNU C++, but need to define -shared option too, otherwise
14337 # it will coredump.
14338 lt_prog_compiler_pic_CXX='-fPIC -shared'
14339 ;;
14340 osf3* | osf4* | osf5*)
14341 case $cc_basename in
14342 KCC*)
14343 lt_prog_compiler_wl_CXX='--backend -Wl,'
14344 ;;
14345 RCC*)
14346 # Rational C++ 2.4.1
14347 lt_prog_compiler_pic_CXX='-pic'
14348 ;;
14349 cxx*)
14350 # Digital/Compaq C++
14351 lt_prog_compiler_wl_CXX='-Wl,'
14352 # Make sure the PIC flag is empty. It appears that all Alpha
14353 # Linux and Compaq Tru64 Unix objects are PIC.
14354 lt_prog_compiler_pic_CXX=
14355 lt_prog_compiler_static_CXX='-non_shared'
14356 ;;
14357 *)
14358 ;;
14359 esac
14360 ;;
14361 psos*)
14362 ;;
14363 solaris*)
14364 case $cc_basename in
14365 CC* | sunCC*)
14366 # Sun C++ 4.2, 5.x and Centerline C++
14367 lt_prog_compiler_pic_CXX='-KPIC'
14368 lt_prog_compiler_static_CXX='-Bstatic'
14369 lt_prog_compiler_wl_CXX='-Qoption ld '
14370 ;;
14371 gcx*)
14372 # Green Hills C++ Compiler
14373 lt_prog_compiler_pic_CXX='-PIC'
14374 ;;
14375 *)
14376 ;;
14377 esac
14378 ;;
14379 sunos4*)
14380 case $cc_basename in
14381 CC*)
14382 # Sun C++ 4.x
14383 lt_prog_compiler_pic_CXX='-pic'
14384 lt_prog_compiler_static_CXX='-Bstatic'
14385 ;;
14386 lcc*)
14387 # Lucid
14388 lt_prog_compiler_pic_CXX='-pic'
14389 ;;
14390 *)
14391 ;;
14392 esac
14393 ;;
14394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14395 case $cc_basename in
14396 CC*)
14397 lt_prog_compiler_wl_CXX='-Wl,'
14398 lt_prog_compiler_pic_CXX='-KPIC'
14399 lt_prog_compiler_static_CXX='-Bstatic'
14400 ;;
14401 esac
14402 ;;
14403 tandem*)
14404 case $cc_basename in
14405 NCC*)
14406 # NonStop-UX NCC 3.20
14407 lt_prog_compiler_pic_CXX='-KPIC'
14408 ;;
14409 *)
14410 ;;
14411 esac
14412 ;;
14413 vxworks*)
14414 ;;
14415 *)
14416 lt_prog_compiler_can_build_shared_CXX=no
14417 ;;
14418 esac
14419 fi
14420
14421case $host_os in
14422 # For platforms which do not support PIC, -DPIC is meaningless:
14423 *djgpp*)
14424 lt_prog_compiler_pic_CXX=
14425 ;;
14426 *)
14427 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14428 ;;
14429esac
14430
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14432$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14433if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435else
14436 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14437fi
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14439$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14440lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14441
14442#
14443# Check to make sure the PIC flag actually works.
14444#
14445if test -n "$lt_prog_compiler_pic_CXX"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14447$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14448if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14449 $as_echo_n "(cached) " >&6
14450else
14451 lt_cv_prog_compiler_pic_works_CXX=no
14452 ac_outfile=conftest.$ac_objext
14453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14454 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14455 # Insert the option either (1) after the last *FLAGS variable, or
14456 # (2) before a word containing "conftest.", or (3) at the end.
14457 # Note that $ac_compile itself does not contain backslashes and begins
14458 # with a dollar sign (not a hyphen), so the echo should work correctly.
14459 # The option is referenced via a variable to avoid confusing sed.
14460 lt_compile=`echo "$ac_compile" | $SED \
14461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14463 -e 's:$: $lt_compiler_flag:'`
14464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14465 (eval "$lt_compile" 2>conftest.err)
14466 ac_status=$?
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 if (exit $ac_status) && test -s "$ac_outfile"; then
14470 # The compiler can only warn and ignore the option if not recognized
14471 # So say no if there are warnings other than the usual output.
14472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14475 lt_cv_prog_compiler_pic_works_CXX=yes
14476 fi
14477 fi
14478 $RM conftest*
14479
14480fi
14481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14482$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14483
14484if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14485 case $lt_prog_compiler_pic_CXX in
14486 "" | " "*) ;;
14487 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14488 esac
14489else
14490 lt_prog_compiler_pic_CXX=
14491 lt_prog_compiler_can_build_shared_CXX=no
14492fi
14493
14494fi
14495
14496
14497
14498
14499
14500#
14501# Check to make sure the static flag actually works.
14502#
14503wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14505$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14506if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14507 $as_echo_n "(cached) " >&6
14508else
14509 lt_cv_prog_compiler_static_works_CXX=no
14510 save_LDFLAGS="$LDFLAGS"
14511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14514 # The linker can only warn and ignore the option if not recognized
14515 # So say no if there are warnings
14516 if test -s conftest.err; then
14517 # Append any errors to the config.log.
14518 cat conftest.err 1>&5
14519 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521 if diff conftest.exp conftest.er2 >/dev/null; then
14522 lt_cv_prog_compiler_static_works_CXX=yes
14523 fi
14524 else
14525 lt_cv_prog_compiler_static_works_CXX=yes
14526 fi
14527 fi
14528 $RM -r conftest*
14529 LDFLAGS="$save_LDFLAGS"
14530
14531fi
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14533$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14534
14535if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14536 :
14537else
14538 lt_prog_compiler_static_CXX=
14539fi
14540
14541
14542
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14545$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14546if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14547 $as_echo_n "(cached) " >&6
14548else
14549 lt_cv_prog_compiler_c_o_CXX=no
14550 $RM -r conftest 2>/dev/null
14551 mkdir conftest
14552 cd conftest
14553 mkdir out
14554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14555
14556 lt_compiler_flag="-o out/conftest2.$ac_objext"
14557 # Insert the option either (1) after the last *FLAGS variable, or
14558 # (2) before a word containing "conftest.", or (3) at the end.
14559 # Note that $ac_compile itself does not contain backslashes and begins
14560 # with a dollar sign (not a hyphen), so the echo should work correctly.
14561 lt_compile=`echo "$ac_compile" | $SED \
14562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14564 -e 's:$: $lt_compiler_flag:'`
14565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14566 (eval "$lt_compile" 2>out/conftest.err)
14567 ac_status=$?
14568 cat out/conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14571 then
14572 # The compiler can only warn and ignore the option if not recognized
14573 # So say no if there are warnings
14574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14577 lt_cv_prog_compiler_c_o_CXX=yes
14578 fi
14579 fi
14580 chmod u+w . 2>&5
14581 $RM conftest*
14582 # SGI C++ compiler will create directory out/ii_files/ for
14583 # template instantiation
14584 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14585 $RM out/* && rmdir out
14586 cd ..
14587 $RM -r conftest
14588 $RM conftest*
14589
14590fi
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14592$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14593
14594
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14598if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600else
14601 lt_cv_prog_compiler_c_o_CXX=no
14602 $RM -r conftest 2>/dev/null
14603 mkdir conftest
14604 cd conftest
14605 mkdir out
14606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14607
14608 lt_compiler_flag="-o out/conftest2.$ac_objext"
14609 # Insert the option either (1) after the last *FLAGS variable, or
14610 # (2) before a word containing "conftest.", or (3) at the end.
14611 # Note that $ac_compile itself does not contain backslashes and begins
14612 # with a dollar sign (not a hyphen), so the echo should work correctly.
14613 lt_compile=`echo "$ac_compile" | $SED \
14614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14616 -e 's:$: $lt_compiler_flag:'`
14617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14618 (eval "$lt_compile" 2>out/conftest.err)
14619 ac_status=$?
14620 cat out/conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14623 then
14624 # The compiler can only warn and ignore the option if not recognized
14625 # So say no if there are warnings
14626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14629 lt_cv_prog_compiler_c_o_CXX=yes
14630 fi
14631 fi
14632 chmod u+w . 2>&5
14633 $RM conftest*
14634 # SGI C++ compiler will create directory out/ii_files/ for
14635 # template instantiation
14636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14637 $RM out/* && rmdir out
14638 cd ..
14639 $RM -r conftest
14640 $RM conftest*
14641
14642fi
14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14644$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14645
14646
14647
14648
14649hard_links="nottested"
14650if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14651 # do not overwrite the value of need_locks provided by the user
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14653$as_echo_n "checking if we can lock with hard links... " >&6; }
14654 hard_links=yes
14655 $RM conftest*
14656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14657 touch conftest.a
14658 ln conftest.a conftest.b 2>&5 || hard_links=no
14659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14661$as_echo "$hard_links" >&6; }
14662 if test "$hard_links" = no; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14664$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14665 need_locks=warn
14666 fi
14667else
14668 need_locks=no
14669fi
14670
14671
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14674$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14675
14676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14677 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14678 case $host_os in
14679 aix[4-9]*)
14680 # If we're using GNU nm, then we don't want the "-C" option.
14681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14682 # Also, AIX nm treats weak defined symbols like other global defined
14683 # symbols, whereas GNU nm marks them as "W".
14684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14685 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'
14686 else
14687 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'
14688 fi
14689 ;;
14690 pw32*)
14691 export_symbols_cmds_CXX="$ltdll_cmds"
14692 ;;
14693 cygwin* | mingw* | cegcc*)
14694 case $cc_basename in
14695 cl*)
14696 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14697 ;;
14698 *)
14699 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'
14700 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14701 ;;
14702 esac
14703 ;;
14704 *)
14705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14706 ;;
14707 esac
14708
14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14710$as_echo "$ld_shlibs_CXX" >&6; }
14711test "$ld_shlibs_CXX" = no && can_build_shared=no
14712
14713with_gnu_ld_CXX=$with_gnu_ld
14714
14715
14716
14717
14718
14719
14720#
14721# Do we need to explicitly link libc?
14722#
14723case "x$archive_cmds_need_lc_CXX" in
14724x|xyes)
14725 # Assume -lc should be added
14726 archive_cmds_need_lc_CXX=yes
14727
14728 if test "$enable_shared" = yes && test "$GCC" = yes; then
14729 case $archive_cmds_CXX in
14730 *'~'*)
14731 # FIXME: we may have to deal with multi-command sequences.
14732 ;;
14733 '$CC '*)
14734 # Test whether the compiler implicitly links with -lc since on some
14735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14736 # to ld, don't add -lc before -lgcc.
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14738$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14739if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14740 $as_echo_n "(cached) " >&6
14741else
14742 $RM conftest*
14743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744
14745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14746 (eval $ac_compile) 2>&5
14747 ac_status=$?
14748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14749 test $ac_status = 0; } 2>conftest.err; then
14750 soname=conftest
14751 lib=conftest
14752 libobjs=conftest.$ac_objext
14753 deplibs=
14754 wl=$lt_prog_compiler_wl_CXX
14755 pic_flag=$lt_prog_compiler_pic_CXX
14756 compiler_flags=-v
14757 linker_flags=-v
14758 verstring=
14759 output_objdir=.
14760 libname=conftest
14761 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14762 allow_undefined_flag_CXX=
14763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14764 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14765 ac_status=$?
14766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14767 test $ac_status = 0; }
14768 then
14769 lt_cv_archive_cmds_need_lc_CXX=no
14770 else
14771 lt_cv_archive_cmds_need_lc_CXX=yes
14772 fi
14773 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14774 else
14775 cat conftest.err 1>&5
14776 fi
14777 $RM conftest*
14778
14779fi
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14781$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14782 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14783 ;;
14784 esac
14785 fi
14786 ;;
14787esac
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
14846
14847
14848
14849
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14851$as_echo_n "checking dynamic linker characteristics... " >&6; }
14852
14853library_names_spec=
14854libname_spec='lib$name'
14855soname_spec=
14856shrext_cmds=".so"
14857postinstall_cmds=
14858postuninstall_cmds=
14859finish_cmds=
14860finish_eval=
14861shlibpath_var=
14862shlibpath_overrides_runpath=unknown
14863version_type=none
14864dynamic_linker="$host_os ld.so"
14865sys_lib_dlsearch_path_spec="/lib /usr/lib"
14866need_lib_prefix=unknown
14867hardcode_into_libs=no
14868
14869# when you set need_version to no, make sure it does not cause -set_version
14870# flags to be left without arguments
14871need_version=unknown
14872
14873case $host_os in
14874aix3*)
14875 version_type=linux # correct to gnu/linux during the next big refactor
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14877 shlibpath_var=LIBPATH
14878
14879 # AIX 3 has no versioning support, so we append a major version to the name.
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 ;;
14882
14883aix[4-9]*)
14884 version_type=linux # correct to gnu/linux during the next big refactor
14885 need_lib_prefix=no
14886 need_version=no
14887 hardcode_into_libs=yes
14888 if test "$host_cpu" = ia64; then
14889 # AIX 5 supports IA64
14890 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 else
14893 # With GCC up to 2.95.x, collect2 would create an import file
14894 # for dependence libraries. The import file would start with
14895 # the line `#! .'. This would cause the generated library to
14896 # depend on `.', always an invalid library. This was fixed in
14897 # development snapshots of GCC prior to 3.0.
14898 case $host_os in
14899 aix4 | aix4.[01] | aix4.[01].*)
14900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14901 echo ' yes '
14902 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14903 :
14904 else
14905 can_build_shared=no
14906 fi
14907 ;;
14908 esac
14909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14910 # soname into executable. Probably we can add versioning support to
14911 # collect2, so additional links can be useful in future.
14912 if test "$aix_use_runtimelinking" = yes; then
14913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14914 # instead of lib<name>.a to let people know that these are not
14915 # typical AIX shared libraries.
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 else
14918 # We preserve .a as extension for shared libraries through AIX4.2
14919 # and later when we are not doing run time linking.
14920 library_names_spec='${libname}${release}.a $libname.a'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 fi
14923 shlibpath_var=LIBPATH
14924 fi
14925 ;;
14926
14927amigaos*)
14928 case $host_cpu in
14929 powerpc)
14930 # Since July 2007 AmigaOS4 officially supports .so libraries.
14931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 ;;
14934 m68k)
14935 library_names_spec='$libname.ixlibrary $libname.a'
14936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14937 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'
14938 ;;
14939 esac
14940 ;;
14941
14942beos*)
14943 library_names_spec='${libname}${shared_ext}'
14944 dynamic_linker="$host_os ld.so"
14945 shlibpath_var=LIBRARY_PATH
14946 ;;
14947
14948bsdi[45]*)
14949 version_type=linux # correct to gnu/linux during the next big refactor
14950 need_version=no
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14957 # the default ld.so.conf also contains /usr/contrib/lib and
14958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14959 # libtool to hard-code these into programs
14960 ;;
14961
14962cygwin* | mingw* | pw32* | cegcc*)
14963 version_type=windows
14964 shrext_cmds=".dll"
14965 need_version=no
14966 need_lib_prefix=no
14967
14968 case $GCC,$cc_basename in
14969 yes,*)
14970 # gcc
14971 library_names_spec='$libname.dll.a'
14972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14973 postinstall_cmds='base_file=`basename \${file}`~
14974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14975 dldir=$destdir/`dirname \$dlpath`~
14976 test -d \$dldir || mkdir -p \$dldir~
14977 $install_prog $dir/$dlname \$dldir/$dlname~
14978 chmod a+x \$dldir/$dlname~
14979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14981 fi'
14982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14983 dlpath=$dir/\$dldll~
14984 $RM \$dlpath'
14985 shlibpath_overrides_runpath=yes
14986
14987 case $host_os in
14988 cygwin*)
14989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14990 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14991
14992 ;;
14993 mingw* | cegcc*)
14994 # MinGW DLLs use traditional 'lib' prefix
14995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14996 ;;
14997 pw32*)
14998 # pw32 DLLs use 'pw' prefix rather than 'lib'
14999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15000 ;;
15001 esac
15002 dynamic_linker='Win32 ld.exe'
15003 ;;
15004
15005 *,cl*)
15006 # Native MSVC
15007 libname_spec='$name'
15008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15009 library_names_spec='${libname}.dll.lib'
15010
15011 case $build_os in
15012 mingw*)
15013 sys_lib_search_path_spec=
15014 lt_save_ifs=$IFS
15015 IFS=';'
15016 for lt_path in $LIB
15017 do
15018 IFS=$lt_save_ifs
15019 # Let DOS variable expansion print the short 8.3 style file name.
15020 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15021 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15022 done
15023 IFS=$lt_save_ifs
15024 # Convert to MSYS style.
15025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15026 ;;
15027 cygwin*)
15028 # Convert to unix form, then to dos form, then back to unix form
15029 # but this time dos style (no spaces!) so that the unix form looks
15030 # like /cygdrive/c/PROGRA~1:/cygdr...
15031 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15032 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15033 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15034 ;;
15035 *)
15036 sys_lib_search_path_spec="$LIB"
15037 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15038 # It is most probably a Windows format PATH.
15039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15040 else
15041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15042 fi
15043 # FIXME: find the short name or the path components, as spaces are
15044 # common. (e.g. "Program Files" -> "PROGRA~1")
15045 ;;
15046 esac
15047
15048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15049 postinstall_cmds='base_file=`basename \${file}`~
15050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15051 dldir=$destdir/`dirname \$dlpath`~
15052 test -d \$dldir || mkdir -p \$dldir~
15053 $install_prog $dir/$dlname \$dldir/$dlname'
15054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15055 dlpath=$dir/\$dldll~
15056 $RM \$dlpath'
15057 shlibpath_overrides_runpath=yes
15058 dynamic_linker='Win32 link.exe'
15059 ;;
15060
15061 *)
15062 # Assume MSVC wrapper
15063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15064 dynamic_linker='Win32 ld.exe'
15065 ;;
15066 esac
15067 # FIXME: first we should search . and the directory the executable is in
15068 shlibpath_var=PATH
15069 ;;
15070
15071darwin* | rhapsody*)
15072 dynamic_linker="$host_os dyld"
15073 version_type=darwin
15074 need_lib_prefix=no
15075 need_version=no
15076 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15077 soname_spec='${libname}${release}${major}$shared_ext'
15078 shlibpath_overrides_runpath=yes
15079 shlibpath_var=DYLD_LIBRARY_PATH
15080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15081
15082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15083 ;;
15084
15085dgux*)
15086 version_type=linux # correct to gnu/linux during the next big refactor
15087 need_lib_prefix=no
15088 need_version=no
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 ;;
15093
15094freebsd* | dragonfly*)
15095 # DragonFly does not have aout. When/if they implement a new
15096 # versioning mechanism, adjust this.
15097 if test -x /usr/bin/objformat; then
15098 objformat=`/usr/bin/objformat`
15099 else
15100 case $host_os in
15101 freebsd[23].*) objformat=aout ;;
15102 *) objformat=elf ;;
15103 esac
15104 fi
15105 version_type=freebsd-$objformat
15106 case $version_type in
15107 freebsd-elf*)
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15109 need_version=no
15110 need_lib_prefix=no
15111 ;;
15112 freebsd-*)
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15114 need_version=yes
15115 ;;
15116 esac
15117 shlibpath_var=LD_LIBRARY_PATH
15118 case $host_os in
15119 freebsd2.*)
15120 shlibpath_overrides_runpath=yes
15121 ;;
15122 freebsd3.[01]* | freebsdelf3.[01]*)
15123 shlibpath_overrides_runpath=yes
15124 hardcode_into_libs=yes
15125 ;;
15126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15128 shlibpath_overrides_runpath=no
15129 hardcode_into_libs=yes
15130 ;;
15131 *) # from 4.6 on, and DragonFly
15132 shlibpath_overrides_runpath=yes
15133 hardcode_into_libs=yes
15134 ;;
15135 esac
15136 ;;
15137
15138gnu*)
15139 version_type=linux # correct to gnu/linux during the next big refactor
15140 need_lib_prefix=no
15141 need_version=no
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 shlibpath_overrides_runpath=no
15146 hardcode_into_libs=yes
15147 ;;
15148
15149haiku*)
15150 version_type=linux # correct to gnu/linux during the next big refactor
15151 need_lib_prefix=no
15152 need_version=no
15153 dynamic_linker="$host_os runtime_loader"
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 shlibpath_var=LIBRARY_PATH
15157 shlibpath_overrides_runpath=yes
15158 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15159 hardcode_into_libs=yes
15160 ;;
15161
15162hpux9* | hpux10* | hpux11*)
15163 # Give a soname corresponding to the major version so that dld.sl refuses to
15164 # link against other versions.
15165 version_type=sunos
15166 need_lib_prefix=no
15167 need_version=no
15168 case $host_cpu in
15169 ia64*)
15170 shrext_cmds='.so'
15171 hardcode_into_libs=yes
15172 dynamic_linker="$host_os dld.so"
15173 shlibpath_var=LD_LIBRARY_PATH
15174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 if test "X$HPUX_IA64_MODE" = X32; then
15178 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15179 else
15180 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15181 fi
15182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15183 ;;
15184 hppa*64*)
15185 shrext_cmds='.sl'
15186 hardcode_into_libs=yes
15187 dynamic_linker="$host_os dld.sl"
15188 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 soname_spec='${libname}${release}${shared_ext}$major'
15192 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15194 ;;
15195 *)
15196 shrext_cmds='.sl'
15197 dynamic_linker="$host_os dld.sl"
15198 shlibpath_var=SHLIB_PATH
15199 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 ;;
15203 esac
15204 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15205 postinstall_cmds='chmod 555 $lib'
15206 # or fails outright, so override atomically:
15207 install_override_mode=555
15208 ;;
15209
15210interix[3-9]*)
15211 version_type=linux # correct to gnu/linux during the next big refactor
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=no
15219 hardcode_into_libs=yes
15220 ;;
15221
15222irix5* | irix6* | nonstopux*)
15223 case $host_os in
15224 nonstopux*) version_type=nonstopux ;;
15225 *)
15226 if test "$lt_cv_prog_gnu_ld" = yes; then
15227 version_type=linux # correct to gnu/linux during the next big refactor
15228 else
15229 version_type=irix
15230 fi ;;
15231 esac
15232 need_lib_prefix=no
15233 need_version=no
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15236 case $host_os in
15237 irix5* | nonstopux*)
15238 libsuff= shlibsuff=
15239 ;;
15240 *)
15241 case $LD in # libtool.m4 will add one of these switches to LD
15242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15243 libsuff= shlibsuff= libmagic=32-bit;;
15244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15245 libsuff=32 shlibsuff=N32 libmagic=N32;;
15246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15248 *) libsuff= shlibsuff= libmagic=never-match;;
15249 esac
15250 ;;
15251 esac
15252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15253 shlibpath_overrides_runpath=no
15254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15256 hardcode_into_libs=yes
15257 ;;
15258
15259# No shared lib support for Linux oldld, aout, or coff.
15260linux*oldld* | linux*aout* | linux*coff*)
15261 dynamic_linker=no
15262 ;;
15263
15264# This must be glibc/ELF.
15265linux* | k*bsd*-gnu | kopensolaris*-gnu)
15266 version_type=linux # correct to gnu/linux during the next big refactor
15267 need_lib_prefix=no
15268 need_version=no
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 shlibpath_overrides_runpath=no
15274
15275 # Some binutils ld are patched to set DT_RUNPATH
15276 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15277 $as_echo_n "(cached) " >&6
15278else
15279 lt_cv_shlibpath_overrides_runpath=no
15280 save_LDFLAGS=$LDFLAGS
15281 save_libdir=$libdir
15282 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15283 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h. */
15286
15287int
15288main ()
15289{
15290
15291 ;
15292 return 0;
15293}
15294_ACEOF
15295if ac_fn_cxx_try_link "$LINENO"; then :
15296 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15297 lt_cv_shlibpath_overrides_runpath=yes
15298fi
15299fi
15300rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LDFLAGS=$save_LDFLAGS
15303 libdir=$save_libdir
15304
15305fi
15306
15307 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15308
15309 # This implies no fast_install, which is unacceptable.
15310 # Some rework will be needed to allow for fast_install
15311 # before this can be enabled.
15312 hardcode_into_libs=yes
15313
15314 # Append ld.so.conf contents to the search path
15315 if test -f /etc/ld.so.conf; then
15316 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' ' '`
15317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15318 fi
15319
15320 # We used to test for /lib/ld.so.1 and disable shared libraries on
15321 # powerpc, because MkLinux only supported shared libraries with the
15322 # GNU dynamic linker. Since this was broken with cross compilers,
15323 # most powerpc-linux boxes support dynamic linking these days and
15324 # people can always --disable-shared, the test was removed, and we
15325 # assume the GNU/Linux dynamic linker is in use.
15326 dynamic_linker='GNU/Linux ld.so'
15327 ;;
15328
15329netbsd*)
15330 version_type=sunos
15331 need_lib_prefix=no
15332 need_version=no
15333 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15336 dynamic_linker='NetBSD (a.out) ld.so'
15337 else
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 dynamic_linker='NetBSD ld.elf_so'
15341 fi
15342 shlibpath_var=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath=yes
15344 hardcode_into_libs=yes
15345 ;;
15346
15347newsos6)
15348 version_type=linux # correct to gnu/linux during the next big refactor
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15352 ;;
15353
15354*nto* | *qnx*)
15355 version_type=qnx
15356 need_lib_prefix=no
15357 need_version=no
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15362 hardcode_into_libs=yes
15363 dynamic_linker='ldqnx.so'
15364 ;;
15365
15366openbsd*)
15367 version_type=sunos
15368 sys_lib_dlsearch_path_spec="/usr/lib"
15369 need_lib_prefix=no
15370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15371 case $host_os in
15372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15373 *) need_version=no ;;
15374 esac
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15377 shlibpath_var=LD_LIBRARY_PATH
15378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15379 case $host_os in
15380 openbsd2.[89] | openbsd2.[89].*)
15381 shlibpath_overrides_runpath=no
15382 ;;
15383 *)
15384 shlibpath_overrides_runpath=yes
15385 ;;
15386 esac
15387 else
15388 shlibpath_overrides_runpath=yes
15389 fi
15390 ;;
15391
15392os2*)
15393 libname_spec='$name'
15394 shrext_cmds=".dll"
15395 need_lib_prefix=no
15396 library_names_spec='$libname${shared_ext} $libname.a'
15397 dynamic_linker='OS/2 ld.exe'
15398 shlibpath_var=LIBPATH
15399 ;;
15400
15401osf3* | osf4* | osf5*)
15402 version_type=osf
15403 need_lib_prefix=no
15404 need_version=no
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15410 ;;
15411
15412rdos*)
15413 dynamic_linker=no
15414 ;;
15415
15416solaris*)
15417 version_type=linux # correct to gnu/linux during the next big refactor
15418 need_lib_prefix=no
15419 need_version=no
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=yes
15424 hardcode_into_libs=yes
15425 # ldd complains unless libraries are executable
15426 postinstall_cmds='chmod +x $lib'
15427 ;;
15428
15429sunos4*)
15430 version_type=sunos
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=yes
15435 if test "$with_gnu_ld" = yes; then
15436 need_lib_prefix=no
15437 fi
15438 need_version=yes
15439 ;;
15440
15441sysv4 | sysv4.3*)
15442 version_type=linux # correct to gnu/linux during the next big refactor
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 case $host_vendor in
15447 sni)
15448 shlibpath_overrides_runpath=no
15449 need_lib_prefix=no
15450 runpath_var=LD_RUN_PATH
15451 ;;
15452 siemens)
15453 need_lib_prefix=no
15454 ;;
15455 motorola)
15456 need_lib_prefix=no
15457 need_version=no
15458 shlibpath_overrides_runpath=no
15459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15460 ;;
15461 esac
15462 ;;
15463
15464sysv4*MP*)
15465 if test -d /usr/nec ;then
15466 version_type=linux # correct to gnu/linux during the next big refactor
15467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15468 soname_spec='$libname${shared_ext}.$major'
15469 shlibpath_var=LD_LIBRARY_PATH
15470 fi
15471 ;;
15472
15473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15474 version_type=freebsd-elf
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=yes
15481 hardcode_into_libs=yes
15482 if test "$with_gnu_ld" = yes; then
15483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15484 else
15485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15486 case $host_os in
15487 sco3.2v5*)
15488 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15489 ;;
15490 esac
15491 fi
15492 sys_lib_dlsearch_path_spec='/usr/lib'
15493 ;;
15494
15495tpf*)
15496 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15497 version_type=linux # correct to gnu/linux during the next big refactor
15498 need_lib_prefix=no
15499 need_version=no
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501 shlibpath_var=LD_LIBRARY_PATH
15502 shlibpath_overrides_runpath=no
15503 hardcode_into_libs=yes
15504 ;;
15505
15506uts4*)
15507 version_type=linux # correct to gnu/linux during the next big refactor
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 ;;
15512
15513*)
15514 dynamic_linker=no
15515 ;;
15516esac
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15518$as_echo "$dynamic_linker" >&6; }
15519test "$dynamic_linker" = no && can_build_shared=no
15520
15521variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15522if test "$GCC" = yes; then
15523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15524fi
15525
15526if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15527 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15528fi
15529if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15530 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15531fi
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
15566
15567
15568
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15571$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15572hardcode_action_CXX=
15573if test -n "$hardcode_libdir_flag_spec_CXX" ||
15574 test -n "$runpath_var_CXX" ||
15575 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15576
15577 # We can hardcode non-existent directories.
15578 if test "$hardcode_direct_CXX" != no &&
15579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15580 # have to relink, otherwise we might link with an installed library
15581 # when we should be linking with a yet-to-be-installed one
15582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15583 test "$hardcode_minus_L_CXX" != no; then
15584 # Linking always hardcodes the temporary library directory.
15585 hardcode_action_CXX=relink
15586 else
15587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15588 hardcode_action_CXX=immediate
15589 fi
15590else
15591 # We cannot hardcode anything, or else we can only hardcode existing
15592 # directories.
15593 hardcode_action_CXX=unsupported
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15596$as_echo "$hardcode_action_CXX" >&6; }
15597
15598if test "$hardcode_action_CXX" = relink ||
15599 test "$inherit_rpath_CXX" = yes; then
15600 # Fast installation is not supported
15601 enable_fast_install=no
15602elif test "$shlibpath_overrides_runpath" = yes ||
15603 test "$enable_shared" = no; then
15604 # Fast installation is not necessary
15605 enable_fast_install=needless
15606fi
15607
15608
15609
15610
15611
15612
15613
15614 fi # test -n "$compiler"
15615
15616 CC=$lt_save_CC
15617 CFLAGS=$lt_save_CFLAGS
15618 LDCXX=$LD
15619 LD=$lt_save_LD
15620 GCC=$lt_save_GCC
15621 with_gnu_ld=$lt_save_with_gnu_ld
15622 lt_cv_path_LDCXX=$lt_cv_path_LD
15623 lt_cv_path_LD=$lt_save_path_LD
15624 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15625 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15626fi # test "$_lt_caught_CXX_error" != yes
15627
15628ac_ext=c
15629ac_cpp='$CPP $CPPFLAGS'
15630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15632ac_compiler_gnu=$ac_cv_c_compiler_gnu
15633
15634
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015635
Jeff Thompson965a3242013-10-02 09:59:35 -070015636ac_ext=mm
15637ac_cpp='$OBJCXXCPP $CPPFLAGS'
15638ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15641if test -n "$ac_tool_prefix"; then
15642 for ac_prog in g++ objc++ objcxx c++ CXX
15643 do
15644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15647$as_echo_n "checking for $ac_word... " >&6; }
15648if ${ac_cv_prog_OBJCXX+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650else
15651 if test -n "$OBJCXX"; then
15652 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
15653else
15654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15655for as_dir in $PATH
15656do
15657 IFS=$as_save_IFS
15658 test -z "$as_dir" && as_dir=.
15659 for ac_exec_ext in '' $ac_executable_extensions; do
15660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15661 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15663 break 2
15664 fi
15665done
15666 done
15667IFS=$as_save_IFS
15668
15669fi
15670fi
15671OBJCXX=$ac_cv_prog_OBJCXX
15672if test -n "$OBJCXX"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15674$as_echo "$OBJCXX" >&6; }
15675else
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677$as_echo "no" >&6; }
15678fi
15679
15680
15681 test -n "$OBJCXX" && break
15682 done
15683fi
15684if test -z "$OBJCXX"; then
15685 ac_ct_OBJCXX=$OBJCXX
15686 for ac_prog in g++ objc++ objcxx c++ CXX
15687do
15688 # Extract the first word of "$ac_prog", so it can be a program name with args.
15689set dummy $ac_prog; ac_word=$2
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15691$as_echo_n "checking for $ac_word... " >&6; }
15692if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15693 $as_echo_n "(cached) " >&6
15694else
15695 if test -n "$ac_ct_OBJCXX"; then
15696 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15697else
15698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699for as_dir in $PATH
15700do
15701 IFS=$as_save_IFS
15702 test -z "$as_dir" && as_dir=.
15703 for ac_exec_ext in '' $ac_executable_extensions; do
15704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15705 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15707 break 2
15708 fi
15709done
15710 done
15711IFS=$as_save_IFS
15712
15713fi
15714fi
15715ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15716if test -n "$ac_ct_OBJCXX"; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15718$as_echo "$ac_ct_OBJCXX" >&6; }
15719else
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721$as_echo "no" >&6; }
15722fi
15723
15724
15725 test -n "$ac_ct_OBJCXX" && break
15726done
15727
15728 if test "x$ac_ct_OBJCXX" = x; then
15729 OBJCXX="g++"
15730 else
15731 case $cross_compiling:$ac_tool_warned in
15732yes:)
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15735ac_tool_warned=yes ;;
15736esac
15737 OBJCXX=$ac_ct_OBJCXX
15738 fi
15739fi
15740
15741# Provide some information about the compiler.
15742$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15743set X $ac_compile
15744ac_compiler=$2
15745for ac_option in --version -v -V -qversion; do
15746 { { ac_try="$ac_compiler $ac_option >&5"
15747case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750esac
15751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15752$as_echo "$ac_try_echo"; } >&5
15753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15754 ac_status=$?
15755 if test -s conftest.err; then
15756 sed '10a\
15757... rest of stderr output deleted ...
15758 10q' conftest.err >conftest.er1
15759 cat conftest.er1 >&5
15760 fi
15761 rm -f conftest.er1 conftest.err
15762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15763 test $ac_status = 0; }
15764done
15765
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15767$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15768if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15769 $as_echo_n "(cached) " >&6
15770else
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772/* end confdefs.h. */
15773
15774int
15775main ()
15776{
15777#ifndef __GNUC__
15778 choke me
15779#endif
15780
15781 ;
15782 return 0;
15783}
15784_ACEOF
15785if ac_fn_objcxx_try_compile "$LINENO"; then :
15786 ac_compiler_gnu=yes
15787else
15788 ac_compiler_gnu=no
15789fi
15790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15792
15793fi
15794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15795$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15796if test $ac_compiler_gnu = yes; then
15797 GOBJCXX=yes
15798else
15799 GOBJCXX=
15800fi
15801ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15802ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15804$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15805if ${ac_cv_prog_objcxx_g+:} false; then :
15806 $as_echo_n "(cached) " >&6
15807else
15808 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15809 ac_objcxx_werror_flag=yes
15810 ac_cv_prog_objcxx_g=no
15811 OBJCXXFLAGS="-g"
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813/* end confdefs.h. */
15814
15815int
15816main ()
15817{
15818
15819 ;
15820 return 0;
15821}
15822_ACEOF
15823if ac_fn_objcxx_try_compile "$LINENO"; then :
15824 ac_cv_prog_objcxx_g=yes
15825else
15826 OBJCXXFLAGS=""
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828/* end confdefs.h. */
15829
15830int
15831main ()
15832{
15833
15834 ;
15835 return 0;
15836}
15837_ACEOF
15838if ac_fn_objcxx_try_compile "$LINENO"; then :
15839
15840else
15841 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15842 OBJCXXFLAGS="-g"
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h. */
15845
15846int
15847main ()
15848{
15849
15850 ;
15851 return 0;
15852}
15853_ACEOF
15854if ac_fn_objcxx_try_compile "$LINENO"; then :
15855 ac_cv_prog_objcxx_g=yes
15856fi
15857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858fi
15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860fi
15861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15863fi
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15865$as_echo "$ac_cv_prog_objcxx_g" >&6; }
15866if test "$ac_test_OBJCXXFLAGS" = set; then
15867 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15868elif test $ac_cv_prog_objcxx_g = yes; then
15869 if test "$GOBJCXX" = yes; then
15870 OBJCXXFLAGS="-g -O2"
15871 else
15872 OBJCXXFLAGS="-g"
15873 fi
15874else
15875 if test "$GOBJCXX" = yes; then
15876 OBJCXXFLAGS="-O2"
15877 else
15878 OBJCXXFLAGS=
15879 fi
15880fi
15881ac_ext=c
15882ac_cpp='$CPP $CPPFLAGS'
15883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15885ac_compiler_gnu=$ac_cv_c_compiler_gnu
15886
15887depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
15888
15889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15890$as_echo_n "checking dependency style of $depcc... " >&6; }
15891if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
15892 $as_echo_n "(cached) " >&6
15893else
15894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15895 # We make a subdir and do the tests there. Otherwise we can end up
15896 # making bogus files that we don't know about and never remove. For
15897 # instance it was reported that on HP-UX the gcc test will end up
15898 # making a dummy file named 'D' -- because '-MD' means "put the output
15899 # in D".
15900 rm -rf conftest.dir
15901 mkdir conftest.dir
15902 # Copy depcomp to subdir because otherwise we won't find it if we're
15903 # using a relative directory.
15904 cp "$am_depcomp" conftest.dir
15905 cd conftest.dir
15906 # We will build objects and dependencies in a subdirectory because
15907 # it helps to detect inapplicable dependency modes. For instance
15908 # both Tru64's cc and ICC support -MD to output dependencies as a
15909 # side effect of compilation, but ICC will put the dependencies in
15910 # the current directory while Tru64 will put them in the object
15911 # directory.
15912 mkdir sub
15913
15914 am_cv_OBJCXX_dependencies_compiler_type=none
15915 if test "$am_compiler_list" = ""; then
15916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15917 fi
15918 am__universal=false
15919
15920
15921 for depmode in $am_compiler_list; do
15922 # Setup a source with many dependencies, because some compilers
15923 # like to wrap large dependency lists on column 80 (with \), and
15924 # we should not choose a depcomp mode which is confused by this.
15925 #
15926 # We need to recreate these files for each test, as the compiler may
15927 # overwrite some of them when testing with obscure command lines.
15928 # This happens at least with the AIX C compiler.
15929 : > sub/conftest.c
15930 for i in 1 2 3 4 5 6; do
15931 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15932 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15933 # Solaris 10 /bin/sh.
15934 echo '/* dummy */' > sub/conftst$i.h
15935 done
15936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15937
15938 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15939 # mode. It turns out that the SunPro C++ compiler does not properly
15940 # handle '-M -o', and we need to detect this. Also, some Intel
15941 # versions had trouble with output in subdirs.
15942 am__obj=sub/conftest.${OBJEXT-o}
15943 am__minus_obj="-o $am__obj"
15944 case $depmode in
15945 gcc)
15946 # This depmode causes a compiler race in universal mode.
15947 test "$am__universal" = false || continue
15948 ;;
15949 nosideeffect)
15950 # After this tag, mechanisms are not by side-effect, so they'll
15951 # only be used when explicitly requested.
15952 if test "x$enable_dependency_tracking" = xyes; then
15953 continue
15954 else
15955 break
15956 fi
15957 ;;
15958 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15959 # This compiler won't grok '-c -o', but also, the minuso test has
15960 # not run yet. These depmodes are late enough in the game, and
15961 # so weak that their functioning should not be impacted.
15962 am__obj=conftest.${OBJEXT-o}
15963 am__minus_obj=
15964 ;;
15965 none) break ;;
15966 esac
15967 if depmode=$depmode \
15968 source=sub/conftest.c object=$am__obj \
15969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15970 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15971 >/dev/null 2>conftest.err &&
15972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15974 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15976 # icc doesn't choke on unknown options, it will just issue warnings
15977 # or remarks (even with -Werror). So we grep stderr for any message
15978 # that says an option was ignored or not supported.
15979 # When given -MP, icc 7.0 and 7.1 complain thusly:
15980 # icc: Command line warning: ignoring option '-M'; no argument required
15981 # The diagnosis changed in icc 8.0:
15982 # icc: Command line remark: option '-MP' not supported
15983 if (grep 'ignoring option' conftest.err ||
15984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15985 am_cv_OBJCXX_dependencies_compiler_type=$depmode
15986 break
15987 fi
15988 fi
15989 done
15990
15991 cd ..
15992 rm -rf conftest.dir
15993else
15994 am_cv_OBJCXX_dependencies_compiler_type=none
15995fi
15996
15997fi
15998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
15999$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
16000OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
16001
16002 if
16003 test "x$enable_dependency_tracking" != xno \
16004 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
16005 am__fastdepOBJCXX_TRUE=
16006 am__fastdepOBJCXX_FALSE='#'
16007else
16008 am__fastdepOBJCXX_TRUE='#'
16009 am__fastdepOBJCXX_FALSE=
16010fi
16011
16012
Jeff Thompson36174062013-06-21 16:03:44 -070016013ac_ext=cpp
16014ac_cpp='$CXXCPP $CPPFLAGS'
16015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16018
Jeff Thompson36174062013-06-21 16:03:44 -070016019
Jeff Thompson965a3242013-10-02 09:59:35 -070016020
16021# Check whether --with-sqlite3 was given.
16022if test "${with_sqlite3+set}" = set; then :
16023 withval=$with_sqlite3;
16024 if test "$withval" = "no"; then
16025 WANT_SQLITE3="no"
16026 elif test "$withval" = "yes"; then
16027 WANT_SQLITE3="yes"
16028 ac_sqlite3_path=""
16029 else
16030 WANT_SQLITE3="yes"
16031 ac_sqlite3_path="$withval"
16032 fi
16033
16034else
16035 WANT_SQLITE3="yes"
16036
16037fi
16038
16039
16040 SQLITE3_CFLAGS=""
16041 SQLITE3_LDFLAGS=""
16042 SQLITE3_VERSION=""
16043
16044 if test "x$WANT_SQLITE3" = "xyes"; then
16045
16046 ac_sqlite3_header="sqlite3.h"
16047
16048 sqlite3_version_req=3.0.0
16049 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
16050 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
16051 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
16052 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16053 if test "x$sqlite3_version_req_micro" = "x" ; then
16054 sqlite3_version_req_micro="0"
16055 fi
16056
16057 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
16058 \+ $sqlite3_version_req_minor \* 1000 \
16059 \+ $sqlite3_version_req_micro`
16060
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
16062$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
16063
16064 if test "$ac_sqlite3_path" != ""; then
16065 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
16066 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
16067 else
16068 for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
16069 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
16070 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
16071 ac_sqlite3_path=$ac_sqlite3_path_tmp
16072 ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
16073 ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
16074 break;
16075 fi
16076 done
16077 fi
16078
16079 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
16080
16081 saved_CPPFLAGS="$CPPFLAGS"
16082 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
16083
16084 ac_ext=c
16085ac_cpp='$CPP $CPPFLAGS'
16086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16088ac_compiler_gnu=$ac_cv_c_compiler_gnu
16089
16090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091/* end confdefs.h. */
16092
16093 #include <sqlite3.h>
16094int
16095main ()
16096{
16097
16098#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
16099/* Everything is okay */
16100#else
16101# error SQLite version is too old
16102#endif
16103
16104
16105 ;
16106 return 0;
16107}
16108
16109_ACEOF
16110if ac_fn_c_try_compile "$LINENO"; then :
16111
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16113$as_echo "yes" >&6; }
16114 success="yes"
16115
16116else
16117
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16119$as_echo "not found" >&6; }
16120 success="no"
16121
16122
16123fi
16124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 ac_ext=cpp
16126ac_cpp='$CXXCPP $CPPFLAGS'
16127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16130
16131
16132 CPPFLAGS="$saved_CPPFLAGS"
16133
16134 if test "$success" = "yes"; then
16135
16136 SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
16137 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
16138
16139 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
16140
16141 if test "x$ac_sqlite3_header_path" != "x"; then
16142 ac_sqlite3_version=`cat $ac_sqlite3_header_path \
16143 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
16144 | sed -e 's/"//'`
16145 if test $ac_sqlite3_version != ""; then
16146 SQLITE3_VERSION=$ac_sqlite3_version
16147 else
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
16149$as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
16150 fi
16151 fi
16152
16153
16154
16155
16156
16157$as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h
16158
16159 fi
16160 fi
16161
Jeff Thompson32a23332013-10-07 18:39:00 -070016162ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16163if test "x$ac_cv_type_size_t" = xyes; then :
16164
16165else
16166
16167cat >>confdefs.h <<_ACEOF
16168#define size_t unsigned int
16169_ACEOF
16170
16171fi
16172
16173ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
16174case $ac_cv_c_int8_t in #(
16175 no|yes) ;; #(
16176 *)
16177
16178cat >>confdefs.h <<_ACEOF
16179#define int8_t $ac_cv_c_int8_t
16180_ACEOF
16181;;
16182esac
16183
16184ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
16185case $ac_cv_c_int16_t in #(
16186 no|yes) ;; #(
16187 *)
16188
16189cat >>confdefs.h <<_ACEOF
16190#define int16_t $ac_cv_c_int16_t
16191_ACEOF
16192;;
16193esac
16194
16195ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
16196case $ac_cv_c_int32_t in #(
16197 no|yes) ;; #(
16198 *)
16199
16200cat >>confdefs.h <<_ACEOF
16201#define int32_t $ac_cv_c_int32_t
16202_ACEOF
16203;;
16204esac
16205
16206ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
16207case $ac_cv_c_int64_t in #(
16208 no|yes) ;; #(
16209 *)
16210
16211cat >>confdefs.h <<_ACEOF
16212#define int64_t $ac_cv_c_int64_t
16213_ACEOF
16214;;
16215esac
16216
16217ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
16218case $ac_cv_c_uint8_t in #(
16219 no|yes) ;; #(
16220 *)
16221
16222$as_echo "#define _UINT8_T 1" >>confdefs.h
16223
16224
16225cat >>confdefs.h <<_ACEOF
16226#define uint8_t $ac_cv_c_uint8_t
16227_ACEOF
16228;;
16229 esac
16230
16231ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
16232case $ac_cv_c_uint16_t in #(
16233 no|yes) ;; #(
16234 *)
16235
16236
16237cat >>confdefs.h <<_ACEOF
16238#define uint16_t $ac_cv_c_uint16_t
16239_ACEOF
16240;;
16241 esac
16242
16243ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16244case $ac_cv_c_uint32_t in #(
16245 no|yes) ;; #(
16246 *)
16247
16248$as_echo "#define _UINT32_T 1" >>confdefs.h
16249
16250
16251cat >>confdefs.h <<_ACEOF
16252#define uint32_t $ac_cv_c_uint32_t
16253_ACEOF
16254;;
16255 esac
16256
16257ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16258case $ac_cv_c_uint64_t in #(
16259 no|yes) ;; #(
16260 *)
16261
16262$as_echo "#define _UINT64_T 1" >>confdefs.h
16263
16264
16265cat >>confdefs.h <<_ACEOF
16266#define uint64_t $ac_cv_c_uint64_t
16267_ACEOF
16268;;
16269 esac
16270
16271for ac_func in memcmp
16272do :
16273 ac_fn_cxx_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
16274if test "x$ac_cv_func_memcmp" = xyes; then :
16275 cat >>confdefs.h <<_ACEOF
16276#define HAVE_MEMCMP 1
16277_ACEOF
16278
16279fi
16280done
16281
16282for ac_func in memcpy
16283do :
16284 ac_fn_cxx_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
16285if test "x$ac_cv_func_memcpy" = xyes; then :
16286 cat >>confdefs.h <<_ACEOF
16287#define HAVE_MEMCPY 1
16288_ACEOF
16289
16290fi
16291done
16292
16293for ac_func in memset
16294do :
16295 ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
16296if test "x$ac_cv_func_memset" = xyes; then :
16297 cat >>confdefs.h <<_ACEOF
16298#define HAVE_MEMSET 1
16299_ACEOF
16300
16301fi
16302done
16303
Jeff Thompson965a3242013-10-02 09:59:35 -070016304
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070016305 ax_cxx_compile_cxx11_required=falsednl
16306 ac_ext=cpp
16307ac_cpp='$CXXCPP $CPPFLAGS'
16308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16311 ac_success=no
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16313$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16314if ${ax_cv_cxx_compile_cxx11+:} false; then :
16315 $as_echo_n "(cached) " >&6
16316else
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h. */
16319
16320 template <typename T>
16321 struct check
16322 {
16323 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16324 };
16325
16326 typedef check<check<bool>> right_angle_brackets;
16327
16328 int a;
16329 decltype(a) b;
16330
16331 typedef check<int> check_type;
16332 check_type c;
16333 check_type&& cr = static_cast<check_type&&>(c);
16334
16335 auto d = a;
16336
16337_ACEOF
16338if ac_fn_cxx_try_compile "$LINENO"; then :
16339 ax_cv_cxx_compile_cxx11=yes
16340else
16341 ax_cv_cxx_compile_cxx11=no
16342fi
16343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344fi
16345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16346$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16347 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16348 ac_success=yes
16349 fi
16350
16351 if test x$ac_success = xno; then
16352 for switch in -std=gnu++11 -std=gnu++0x; do
16353 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16355$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16356if eval \${$cachevar+:} false; then :
16357 $as_echo_n "(cached) " >&6
16358else
16359 ac_save_CXXFLAGS="$CXXFLAGS"
16360 CXXFLAGS="$CXXFLAGS $switch"
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362/* end confdefs.h. */
16363
16364 template <typename T>
16365 struct check
16366 {
16367 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16368 };
16369
16370 typedef check<check<bool>> right_angle_brackets;
16371
16372 int a;
16373 decltype(a) b;
16374
16375 typedef check<int> check_type;
16376 check_type c;
16377 check_type&& cr = static_cast<check_type&&>(c);
16378
16379 auto d = a;
16380
16381_ACEOF
16382if ac_fn_cxx_try_compile "$LINENO"; then :
16383 eval $cachevar=yes
16384else
16385 eval $cachevar=no
16386fi
16387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 CXXFLAGS="$ac_save_CXXFLAGS"
16389fi
16390eval ac_res=\$$cachevar
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16392$as_echo "$ac_res" >&6; }
16393 if eval test x\$$cachevar = xyes; then
16394 CXXFLAGS="$CXXFLAGS $switch"
16395 ac_success=yes
16396 break
16397 fi
16398 done
16399 fi
16400
16401 if test x$ac_success = xno; then
16402 for switch in -std=c++11 -std=c++0x; do
16403 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16405$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16406if eval \${$cachevar+:} false; then :
16407 $as_echo_n "(cached) " >&6
16408else
16409 ac_save_CXXFLAGS="$CXXFLAGS"
16410 CXXFLAGS="$CXXFLAGS $switch"
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412/* end confdefs.h. */
16413
16414 template <typename T>
16415 struct check
16416 {
16417 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16418 };
16419
16420 typedef check<check<bool>> right_angle_brackets;
16421
16422 int a;
16423 decltype(a) b;
16424
16425 typedef check<int> check_type;
16426 check_type c;
16427 check_type&& cr = static_cast<check_type&&>(c);
16428
16429 auto d = a;
16430
16431_ACEOF
16432if ac_fn_cxx_try_compile "$LINENO"; then :
16433 eval $cachevar=yes
16434else
16435 eval $cachevar=no
16436fi
16437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 CXXFLAGS="$ac_save_CXXFLAGS"
16439fi
16440eval ac_res=\$$cachevar
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16442$as_echo "$ac_res" >&6; }
16443 if eval test x\$$cachevar = xyes; then
16444 CXXFLAGS="$CXXFLAGS $switch"
16445 ac_success=yes
16446 break
16447 fi
16448 done
16449 fi
16450 ac_ext=cpp
16451ac_cpp='$CXXCPP $CPPFLAGS'
16452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16455
16456 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16457 if test x$ac_success = xno; then
16458 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16459 fi
16460 else
16461 if test x$ac_success = xno; then
16462 HAVE_CXX11=0
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16464$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16465 else
16466 HAVE_CXX11=1
16467
16468$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16469
16470 fi
16471
16472
16473 fi
16474
Jeff Thompson8a055e02013-08-09 10:44:28 -070016475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
16476$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
16477if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479else
16480 ac_check_lib_save_LIBS=$LIBS
16481LIBS="-lcrypto $LIBS"
16482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h. */
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016484
Jeff Thompson8a055e02013-08-09 10:44:28 -070016485/* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16488#ifdef __cplusplus
16489extern "C"
16490#endif
16491char EVP_EncryptInit ();
16492int
16493main ()
16494{
16495return EVP_EncryptInit ();
16496 ;
16497 return 0;
16498}
16499_ACEOF
16500if ac_fn_cxx_try_link "$LINENO"; then :
16501 ac_cv_lib_crypto_EVP_EncryptInit=yes
16502else
16503 ac_cv_lib_crypto_EVP_EncryptInit=no
16504fi
16505rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext conftest.$ac_ext
16507LIBS=$ac_check_lib_save_LIBS
16508fi
16509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
16510$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
16511if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
16512 cat >>confdefs.h <<_ACEOF
16513#define HAVE_LIBCRYPTO 1
16514_ACEOF
16515
16516 LIBS="-lcrypto $LIBS"
16517
16518else
16519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16521as_fn_error $? "can't find openssl crypto lib
16522See \`config.log' for more details" "$LINENO" 5; }
16523fi
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016524
16525
Jeff Thompson39128c62013-06-19 14:08:51 -070016526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
16527$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h. */
16530#include <memory>
16531 std::shared_ptr<int> have_shared_ptr;
16532int
16533main ()
16534{
16535
16536 ;
16537 return 0;
16538}
16539
16540_ACEOF
16541if ac_fn_cxx_try_compile "$LINENO"; then :
16542
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16544$as_echo "yes" >&6; }
16545
16546cat >>confdefs.h <<_ACEOF
16547#define HAVE_STD_SHARED_PTR 1
16548_ACEOF
16549
16550
16551else
16552
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554$as_echo "no" >&6; }
16555
16556cat >>confdefs.h <<_ACEOF
16557#define HAVE_STD_SHARED_PTR 0
16558_ACEOF
16559
16560
16561fi
16562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070016563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
16564$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566/* end confdefs.h. */
16567#include <boost/shared_ptr.hpp>
16568 boost::shared_ptr<int> have_shared_ptr;
16569int
16570main ()
16571{
16572
16573 ;
16574 return 0;
16575}
16576
16577_ACEOF
16578if ac_fn_cxx_try_compile "$LINENO"; then :
16579
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16581$as_echo "yes" >&6; }
16582
16583cat >>confdefs.h <<_ACEOF
16584#define HAVE_BOOST_SHARED_PTR 1
16585_ACEOF
16586
16587
16588else
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16591$as_echo "no" >&6; }
16592
16593cat >>confdefs.h <<_ACEOF
16594#define HAVE_BOOST_SHARED_PTR 0
16595_ACEOF
16596
16597
16598fi
16599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16600
Jeff Thompsona28eed82013-08-22 16:21:10 -070016601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5
16602$as_echo_n "checking for std::function... " >&6; }
16603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h. */
16605#include <functional>
16606 std::function<int> have_function();
16607int
16608main ()
16609{
16610
16611 ;
16612 return 0;
16613}
16614
16615_ACEOF
16616if ac_fn_cxx_try_compile "$LINENO"; then :
16617
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16619$as_echo "yes" >&6; }
16620
16621cat >>confdefs.h <<_ACEOF
16622#define HAVE_STD_FUNCTION 1
16623_ACEOF
16624
16625
16626else
16627
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629$as_echo "no" >&6; }
16630
16631cat >>confdefs.h <<_ACEOF
16632#define HAVE_STD_FUNCTION 0
16633_ACEOF
16634
16635
16636fi
16637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5
16639$as_echo_n "checking for boost::function... " >&6; }
16640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641/* end confdefs.h. */
16642#include <boost/function.hpp>
16643 boost::function<int> have_function();
16644int
16645main ()
16646{
16647
16648 ;
16649 return 0;
16650}
16651
16652_ACEOF
16653if ac_fn_cxx_try_compile "$LINENO"; then :
16654
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16656$as_echo "yes" >&6; }
16657
16658cat >>confdefs.h <<_ACEOF
16659#define HAVE_BOOST_FUNCTION 1
16660_ACEOF
16661
16662
16663else
16664
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16666$as_echo "no" >&6; }
16667
16668cat >>confdefs.h <<_ACEOF
16669#define HAVE_BOOST_FUNCTION 0
16670_ACEOF
16671
16672
16673fi
16674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070016676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX SecKeychain" >&5
16677$as_echo_n "checking for OSX SecKeychain... " >&6; }
16678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679/* end confdefs.h. */
16680#include <CoreFoundation/CoreFoundation.h>
16681 #include <Security/Security.h>
16682 #include <CoreServices/CoreServices.h>
16683 void test() { SecKeychainRef x; }
16684int
16685main ()
16686{
16687
16688 ;
16689 return 0;
16690}
16691
16692_ACEOF
16693if ac_fn_cxx_try_compile "$LINENO"; then :
16694
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16696$as_echo "yes" >&6; }
16697
16698cat >>confdefs.h <<_ACEOF
16699#define HAVE_OSX_SECKEYCHAIN 1
16700_ACEOF
16701
16702
16703else
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16706$as_echo "no" >&6; }
16707
16708cat >>confdefs.h <<_ACEOF
16709#define HAVE_OSX_SECKEYCHAIN 0
16710_ACEOF
16711
16712
16713fi
16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715
Jeff Thompsonca45e552013-06-26 17:40:06 -070016716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726# Files:
16727DX_PROJECT=$PACKAGE_NAME
16728
16729DX_CONFIG=Doxyfile
16730
16731DX_DOCDIR=doxygen-doc
16732
16733
16734# Environment variables used inside doxygen.cfg:
16735DX_ENV="$DX_ENV SRCDIR='$srcdir'"
16736
16737DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
16738
16739DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
16740
16741DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
16742
16743
16744# Doxygen itself:
16745
16746
16747
16748 # Check whether --enable-doxygen-doc was given.
16749if test "${enable_doxygen_doc+set}" = set; then :
16750 enableval=$enable_doxygen_doc;
16751case "$enableval" in
16752#(
16753y|Y|yes|Yes|YES)
16754 DX_FLAG_doc=1
16755
16756
16757;; #(
16758n|N|no|No|NO)
16759 DX_FLAG_doc=0
16760
16761;; #(
16762*)
16763 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16764;;
16765esac
16766
16767else
16768
16769DX_FLAG_doc=1
16770
16771
16772
16773fi
16774
16775if test "$DX_FLAG_doc" = 1; then
16776
16777if test -n "$ac_tool_prefix"; then
16778 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
16779set dummy ${ac_tool_prefix}doxygen; ac_word=$2
16780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16781$as_echo_n "checking for $ac_word... " >&6; }
16782if ${ac_cv_path_DX_DOXYGEN+:} false; then :
16783 $as_echo_n "(cached) " >&6
16784else
16785 case $DX_DOXYGEN in
16786 [\\/]* | ?:[\\/]*)
16787 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
16788 ;;
16789 *)
16790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791for as_dir in $PATH
16792do
16793 IFS=$as_save_IFS
16794 test -z "$as_dir" && as_dir=.
16795 for ac_exec_ext in '' $ac_executable_extensions; do
16796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16797 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16799 break 2
16800 fi
16801done
16802 done
16803IFS=$as_save_IFS
16804
16805 ;;
16806esac
16807fi
16808DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
16809if test -n "$DX_DOXYGEN"; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
16811$as_echo "$DX_DOXYGEN" >&6; }
16812else
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814$as_echo "no" >&6; }
16815fi
16816
16817
16818fi
16819if test -z "$ac_cv_path_DX_DOXYGEN"; then
16820 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
16821 # Extract the first word of "doxygen", so it can be a program name with args.
16822set dummy doxygen; ac_word=$2
16823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16824$as_echo_n "checking for $ac_word... " >&6; }
16825if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827else
16828 case $ac_pt_DX_DOXYGEN in
16829 [\\/]* | ?:[\\/]*)
16830 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
16831 ;;
16832 *)
16833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16834for as_dir in $PATH
16835do
16836 IFS=$as_save_IFS
16837 test -z "$as_dir" && as_dir=.
16838 for ac_exec_ext in '' $ac_executable_extensions; do
16839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16840 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16842 break 2
16843 fi
16844done
16845 done
16846IFS=$as_save_IFS
16847
16848 ;;
16849esac
16850fi
16851ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
16852if test -n "$ac_pt_DX_DOXYGEN"; then
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
16854$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
16855else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857$as_echo "no" >&6; }
16858fi
16859
16860 if test "x$ac_pt_DX_DOXYGEN" = x; then
16861 DX_DOXYGEN=""
16862 else
16863 case $cross_compiling:$ac_tool_warned in
16864yes:)
16865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16867ac_tool_warned=yes ;;
16868esac
16869 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16870 fi
16871else
16872 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16873fi
16874
16875if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16877$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16878 DX_FLAG_doc=0
16879
16880fi
16881
16882
16883if test -n "$ac_tool_prefix"; then
16884 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16885set dummy ${ac_tool_prefix}perl; ac_word=$2
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16887$as_echo_n "checking for $ac_word... " >&6; }
16888if ${ac_cv_path_DX_PERL+:} false; then :
16889 $as_echo_n "(cached) " >&6
16890else
16891 case $DX_PERL in
16892 [\\/]* | ?:[\\/]*)
16893 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16894 ;;
16895 *)
16896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16897for as_dir in $PATH
16898do
16899 IFS=$as_save_IFS
16900 test -z "$as_dir" && as_dir=.
16901 for ac_exec_ext in '' $ac_executable_extensions; do
16902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16903 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16905 break 2
16906 fi
16907done
16908 done
16909IFS=$as_save_IFS
16910
16911 ;;
16912esac
16913fi
16914DX_PERL=$ac_cv_path_DX_PERL
16915if test -n "$DX_PERL"; then
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16917$as_echo "$DX_PERL" >&6; }
16918else
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16920$as_echo "no" >&6; }
16921fi
16922
16923
16924fi
16925if test -z "$ac_cv_path_DX_PERL"; then
16926 ac_pt_DX_PERL=$DX_PERL
16927 # Extract the first word of "perl", so it can be a program name with args.
16928set dummy perl; ac_word=$2
16929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930$as_echo_n "checking for $ac_word... " >&6; }
16931if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16932 $as_echo_n "(cached) " >&6
16933else
16934 case $ac_pt_DX_PERL in
16935 [\\/]* | ?:[\\/]*)
16936 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16937 ;;
16938 *)
16939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16940for as_dir in $PATH
16941do
16942 IFS=$as_save_IFS
16943 test -z "$as_dir" && as_dir=.
16944 for ac_exec_ext in '' $ac_executable_extensions; do
16945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16946 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16948 break 2
16949 fi
16950done
16951 done
16952IFS=$as_save_IFS
16953
16954 ;;
16955esac
16956fi
16957ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16958if test -n "$ac_pt_DX_PERL"; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16960$as_echo "$ac_pt_DX_PERL" >&6; }
16961else
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963$as_echo "no" >&6; }
16964fi
16965
16966 if test "x$ac_pt_DX_PERL" = x; then
16967 DX_PERL=""
16968 else
16969 case $cross_compiling:$ac_tool_warned in
16970yes:)
16971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16973ac_tool_warned=yes ;;
16974esac
16975 DX_PERL=$ac_pt_DX_PERL
16976 fi
16977else
16978 DX_PERL="$ac_cv_path_DX_PERL"
16979fi
16980
16981if test "$DX_FLAG_doc$DX_PERL" = 1; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16983$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16984 DX_FLAG_doc=0
16985
16986fi
16987
16988 :
16989fi
16990 if test "$DX_FLAG_doc" = 1; then
16991 DX_COND_doc_TRUE=
16992 DX_COND_doc_FALSE='#'
16993else
16994 DX_COND_doc_TRUE='#'
16995 DX_COND_doc_FALSE=
16996fi
16997
16998if test "$DX_FLAG_doc" = 1; then
16999 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
17000
17001 :
17002else
17003
17004 :
17005fi
17006
17007
17008# Dot for graphics:
17009
17010
17011
17012 # Check whether --enable-doxygen-dot was given.
17013if test "${enable_doxygen_dot+set}" = set; then :
17014 enableval=$enable_doxygen_dot;
17015case "$enableval" in
17016#(
17017y|Y|yes|Yes|YES)
17018 DX_FLAG_dot=1
17019
17020
17021test "$DX_FLAG_doc" = "1" \
17022|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
17023
17024;; #(
17025n|N|no|No|NO)
17026 DX_FLAG_dot=0
17027
17028;; #(
17029*)
17030 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
17031;;
17032esac
17033
17034else
17035
17036DX_FLAG_dot=0
17037
17038
17039test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
17040
17041
17042
17043fi
17044
17045if test "$DX_FLAG_dot" = 1; then
17046
17047if test -n "$ac_tool_prefix"; then
17048 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
17049set dummy ${ac_tool_prefix}dot; ac_word=$2
17050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17051$as_echo_n "checking for $ac_word... " >&6; }
17052if ${ac_cv_path_DX_DOT+:} false; then :
17053 $as_echo_n "(cached) " >&6
17054else
17055 case $DX_DOT in
17056 [\\/]* | ?:[\\/]*)
17057 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
17058 ;;
17059 *)
17060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17061for as_dir in $PATH
17062do
17063 IFS=$as_save_IFS
17064 test -z "$as_dir" && as_dir=.
17065 for ac_exec_ext in '' $ac_executable_extensions; do
17066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17067 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17069 break 2
17070 fi
17071done
17072 done
17073IFS=$as_save_IFS
17074
17075 ;;
17076esac
17077fi
17078DX_DOT=$ac_cv_path_DX_DOT
17079if test -n "$DX_DOT"; then
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
17081$as_echo "$DX_DOT" >&6; }
17082else
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17084$as_echo "no" >&6; }
17085fi
17086
17087
17088fi
17089if test -z "$ac_cv_path_DX_DOT"; then
17090 ac_pt_DX_DOT=$DX_DOT
17091 # Extract the first word of "dot", so it can be a program name with args.
17092set dummy dot; ac_word=$2
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17094$as_echo_n "checking for $ac_word... " >&6; }
17095if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
17096 $as_echo_n "(cached) " >&6
17097else
17098 case $ac_pt_DX_DOT in
17099 [\\/]* | ?:[\\/]*)
17100 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
17101 ;;
17102 *)
17103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17104for as_dir in $PATH
17105do
17106 IFS=$as_save_IFS
17107 test -z "$as_dir" && as_dir=.
17108 for ac_exec_ext in '' $ac_executable_extensions; do
17109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17110 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17112 break 2
17113 fi
17114done
17115 done
17116IFS=$as_save_IFS
17117
17118 ;;
17119esac
17120fi
17121ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
17122if test -n "$ac_pt_DX_DOT"; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
17124$as_echo "$ac_pt_DX_DOT" >&6; }
17125else
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17127$as_echo "no" >&6; }
17128fi
17129
17130 if test "x$ac_pt_DX_DOT" = x; then
17131 DX_DOT=""
17132 else
17133 case $cross_compiling:$ac_tool_warned in
17134yes:)
17135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17137ac_tool_warned=yes ;;
17138esac
17139 DX_DOT=$ac_pt_DX_DOT
17140 fi
17141else
17142 DX_DOT="$ac_cv_path_DX_DOT"
17143fi
17144
17145if test "$DX_FLAG_dot$DX_DOT" = 1; then
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
17147$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
17148 DX_FLAG_dot=0
17149
17150fi
17151
17152 :
17153fi
17154 if test "$DX_FLAG_dot" = 1; then
17155 DX_COND_dot_TRUE=
17156 DX_COND_dot_FALSE='#'
17157else
17158 DX_COND_dot_TRUE='#'
17159 DX_COND_dot_FALSE=
17160fi
17161
17162if test "$DX_FLAG_dot" = 1; then
17163 DX_ENV="$DX_ENV HAVE_DOT='YES'"
17164
17165 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
17166
17167 :
17168else
17169 DX_ENV="$DX_ENV HAVE_DOT='NO'"
17170
17171 :
17172fi
17173
17174
17175# Man pages generation:
17176
17177
17178
17179 # Check whether --enable-doxygen-man was given.
17180if test "${enable_doxygen_man+set}" = set; then :
17181 enableval=$enable_doxygen_man;
17182case "$enableval" in
17183#(
17184y|Y|yes|Yes|YES)
17185 DX_FLAG_man=1
17186
17187
17188test "$DX_FLAG_doc" = "1" \
17189|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
17190
17191;; #(
17192n|N|no|No|NO)
17193 DX_FLAG_man=0
17194
17195;; #(
17196*)
17197 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
17198;;
17199esac
17200
17201else
17202
17203DX_FLAG_man=0
17204
17205
17206test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
17207
17208
17209
17210fi
17211
17212if test "$DX_FLAG_man" = 1; then
17213
17214 :
17215fi
17216 if test "$DX_FLAG_man" = 1; then
17217 DX_COND_man_TRUE=
17218 DX_COND_man_FALSE='#'
17219else
17220 DX_COND_man_TRUE='#'
17221 DX_COND_man_FALSE=
17222fi
17223
17224if test "$DX_FLAG_man" = 1; then
17225 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
17226
17227 :
17228else
17229 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
17230
17231 :
17232fi
17233
17234
17235# RTF file generation:
17236
17237
17238
17239 # Check whether --enable-doxygen-rtf was given.
17240if test "${enable_doxygen_rtf+set}" = set; then :
17241 enableval=$enable_doxygen_rtf;
17242case "$enableval" in
17243#(
17244y|Y|yes|Yes|YES)
17245 DX_FLAG_rtf=1
17246
17247
17248test "$DX_FLAG_doc" = "1" \
17249|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
17250
17251;; #(
17252n|N|no|No|NO)
17253 DX_FLAG_rtf=0
17254
17255;; #(
17256*)
17257 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
17258;;
17259esac
17260
17261else
17262
17263DX_FLAG_rtf=0
17264
17265
17266test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
17267
17268
17269
17270fi
17271
17272if test "$DX_FLAG_rtf" = 1; then
17273
17274 :
17275fi
17276 if test "$DX_FLAG_rtf" = 1; then
17277 DX_COND_rtf_TRUE=
17278 DX_COND_rtf_FALSE='#'
17279else
17280 DX_COND_rtf_TRUE='#'
17281 DX_COND_rtf_FALSE=
17282fi
17283
17284if test "$DX_FLAG_rtf" = 1; then
17285 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
17286
17287 :
17288else
17289 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17290
17291 :
17292fi
17293
17294
17295# XML file generation:
17296
17297
17298
17299 # Check whether --enable-doxygen-xml was given.
17300if test "${enable_doxygen_xml+set}" = set; then :
17301 enableval=$enable_doxygen_xml;
17302case "$enableval" in
17303#(
17304y|Y|yes|Yes|YES)
17305 DX_FLAG_xml=1
17306
17307
17308test "$DX_FLAG_doc" = "1" \
17309|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
17310
17311;; #(
17312n|N|no|No|NO)
17313 DX_FLAG_xml=0
17314
17315;; #(
17316*)
17317 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17318;;
17319esac
17320
17321else
17322
17323DX_FLAG_xml=0
17324
17325
17326test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17327
17328
17329
17330fi
17331
17332if test "$DX_FLAG_xml" = 1; then
17333
17334 :
17335fi
17336 if test "$DX_FLAG_xml" = 1; then
17337 DX_COND_xml_TRUE=
17338 DX_COND_xml_FALSE='#'
17339else
17340 DX_COND_xml_TRUE='#'
17341 DX_COND_xml_FALSE=
17342fi
17343
17344if test "$DX_FLAG_xml" = 1; then
17345 DX_ENV="$DX_ENV GENERATE_XML='YES'"
17346
17347 :
17348else
17349 DX_ENV="$DX_ENV GENERATE_XML='NO'"
17350
17351 :
17352fi
17353
17354
17355# (Compressed) HTML help generation:
17356
17357
17358
17359 # Check whether --enable-doxygen-chm was given.
17360if test "${enable_doxygen_chm+set}" = set; then :
17361 enableval=$enable_doxygen_chm;
17362case "$enableval" in
17363#(
17364y|Y|yes|Yes|YES)
17365 DX_FLAG_chm=1
17366
17367
17368test "$DX_FLAG_doc" = "1" \
17369|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
17370
17371;; #(
17372n|N|no|No|NO)
17373 DX_FLAG_chm=0
17374
17375;; #(
17376*)
17377 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17378;;
17379esac
17380
17381else
17382
17383DX_FLAG_chm=0
17384
17385
17386test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17387
17388
17389
17390fi
17391
17392if test "$DX_FLAG_chm" = 1; then
17393
17394if test -n "$ac_tool_prefix"; then
17395 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17396set dummy ${ac_tool_prefix}hhc; ac_word=$2
17397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17398$as_echo_n "checking for $ac_word... " >&6; }
17399if ${ac_cv_path_DX_HHC+:} false; then :
17400 $as_echo_n "(cached) " >&6
17401else
17402 case $DX_HHC in
17403 [\\/]* | ?:[\\/]*)
17404 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17405 ;;
17406 *)
17407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17408for as_dir in $PATH
17409do
17410 IFS=$as_save_IFS
17411 test -z "$as_dir" && as_dir=.
17412 for ac_exec_ext in '' $ac_executable_extensions; do
17413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17414 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17416 break 2
17417 fi
17418done
17419 done
17420IFS=$as_save_IFS
17421
17422 ;;
17423esac
17424fi
17425DX_HHC=$ac_cv_path_DX_HHC
17426if test -n "$DX_HHC"; then
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17428$as_echo "$DX_HHC" >&6; }
17429else
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17431$as_echo "no" >&6; }
17432fi
17433
17434
17435fi
17436if test -z "$ac_cv_path_DX_HHC"; then
17437 ac_pt_DX_HHC=$DX_HHC
17438 # Extract the first word of "hhc", so it can be a program name with args.
17439set dummy hhc; ac_word=$2
17440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17441$as_echo_n "checking for $ac_word... " >&6; }
17442if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17443 $as_echo_n "(cached) " >&6
17444else
17445 case $ac_pt_DX_HHC in
17446 [\\/]* | ?:[\\/]*)
17447 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17448 ;;
17449 *)
17450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17451for as_dir in $PATH
17452do
17453 IFS=$as_save_IFS
17454 test -z "$as_dir" && as_dir=.
17455 for ac_exec_ext in '' $ac_executable_extensions; do
17456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17457 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17459 break 2
17460 fi
17461done
17462 done
17463IFS=$as_save_IFS
17464
17465 ;;
17466esac
17467fi
17468ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17469if test -n "$ac_pt_DX_HHC"; then
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17471$as_echo "$ac_pt_DX_HHC" >&6; }
17472else
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474$as_echo "no" >&6; }
17475fi
17476
17477 if test "x$ac_pt_DX_HHC" = x; then
17478 DX_HHC=""
17479 else
17480 case $cross_compiling:$ac_tool_warned in
17481yes:)
17482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17484ac_tool_warned=yes ;;
17485esac
17486 DX_HHC=$ac_pt_DX_HHC
17487 fi
17488else
17489 DX_HHC="$ac_cv_path_DX_HHC"
17490fi
17491
17492if test "$DX_FLAG_chm$DX_HHC" = 1; then
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17494$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17495 DX_FLAG_chm=0
17496
17497fi
17498
17499 :
17500fi
17501 if test "$DX_FLAG_chm" = 1; then
17502 DX_COND_chm_TRUE=
17503 DX_COND_chm_FALSE='#'
17504else
17505 DX_COND_chm_TRUE='#'
17506 DX_COND_chm_FALSE=
17507fi
17508
17509if test "$DX_FLAG_chm" = 1; then
17510 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17511
17512 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17513
17514 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17515
17516 :
17517else
17518 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17519
17520 :
17521fi
17522
17523
17524# Seperate CHI file generation.
17525
17526
17527
17528 # Check whether --enable-doxygen-chi was given.
17529if test "${enable_doxygen_chi+set}" = set; then :
17530 enableval=$enable_doxygen_chi;
17531case "$enableval" in
17532#(
17533y|Y|yes|Yes|YES)
17534 DX_FLAG_chi=1
17535
17536
17537test "$DX_FLAG_chm" = "1" \
17538|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
17539
17540;; #(
17541n|N|no|No|NO)
17542 DX_FLAG_chi=0
17543
17544;; #(
17545*)
17546 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17547;;
17548esac
17549
17550else
17551
17552DX_FLAG_chi=0
17553
17554
17555test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17556
17557
17558
17559fi
17560
17561if test "$DX_FLAG_chi" = 1; then
17562
17563 :
17564fi
17565 if test "$DX_FLAG_chi" = 1; then
17566 DX_COND_chi_TRUE=
17567 DX_COND_chi_FALSE='#'
17568else
17569 DX_COND_chi_TRUE='#'
17570 DX_COND_chi_FALSE=
17571fi
17572
17573if test "$DX_FLAG_chi" = 1; then
17574 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17575
17576 :
17577else
17578 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17579
17580 :
17581fi
17582
17583
17584# Plain HTML pages generation:
17585
17586
17587
17588 # Check whether --enable-doxygen-html was given.
17589if test "${enable_doxygen_html+set}" = set; then :
17590 enableval=$enable_doxygen_html;
17591case "$enableval" in
17592#(
17593y|Y|yes|Yes|YES)
17594 DX_FLAG_html=1
17595
17596
17597test "$DX_FLAG_doc" = "1" \
17598|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
17599
17600test "$DX_FLAG_chm" = "0" \
17601|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
17602
17603;; #(
17604n|N|no|No|NO)
17605 DX_FLAG_html=0
17606
17607;; #(
17608*)
17609 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17610;;
17611esac
17612
17613else
17614
17615DX_FLAG_html=1
17616
17617
17618test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17619
17620
17621test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17622
17623
17624
17625fi
17626
17627if test "$DX_FLAG_html" = 1; then
17628
17629 :
17630fi
17631 if test "$DX_FLAG_html" = 1; then
17632 DX_COND_html_TRUE=
17633 DX_COND_html_FALSE='#'
17634else
17635 DX_COND_html_TRUE='#'
17636 DX_COND_html_FALSE=
17637fi
17638
17639if test "$DX_FLAG_html" = 1; then
17640 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17641
17642 :
17643else
17644 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17645
17646 :
17647fi
17648
17649
17650# PostScript file generation:
17651
17652
17653
17654 # Check whether --enable-doxygen-ps was given.
17655if test "${enable_doxygen_ps+set}" = set; then :
17656 enableval=$enable_doxygen_ps;
17657case "$enableval" in
17658#(
17659y|Y|yes|Yes|YES)
17660 DX_FLAG_ps=1
17661
17662
17663test "$DX_FLAG_doc" = "1" \
17664|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
17665
17666;; #(
17667n|N|no|No|NO)
17668 DX_FLAG_ps=0
17669
17670;; #(
17671*)
17672 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17673;;
17674esac
17675
17676else
17677
17678DX_FLAG_ps=0
17679
17680
17681test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17682
17683
17684
17685fi
17686
17687if test "$DX_FLAG_ps" = 1; then
17688
17689if test -n "$ac_tool_prefix"; then
17690 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17691set dummy ${ac_tool_prefix}latex; ac_word=$2
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17693$as_echo_n "checking for $ac_word... " >&6; }
17694if ${ac_cv_path_DX_LATEX+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696else
17697 case $DX_LATEX in
17698 [\\/]* | ?:[\\/]*)
17699 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
17700 ;;
17701 *)
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703for as_dir in $PATH
17704do
17705 IFS=$as_save_IFS
17706 test -z "$as_dir" && as_dir=.
17707 for ac_exec_ext in '' $ac_executable_extensions; do
17708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17709 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17711 break 2
17712 fi
17713done
17714 done
17715IFS=$as_save_IFS
17716
17717 ;;
17718esac
17719fi
17720DX_LATEX=$ac_cv_path_DX_LATEX
17721if test -n "$DX_LATEX"; then
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
17723$as_echo "$DX_LATEX" >&6; }
17724else
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726$as_echo "no" >&6; }
17727fi
17728
17729
17730fi
17731if test -z "$ac_cv_path_DX_LATEX"; then
17732 ac_pt_DX_LATEX=$DX_LATEX
17733 # Extract the first word of "latex", so it can be a program name with args.
17734set dummy latex; ac_word=$2
17735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17736$as_echo_n "checking for $ac_word... " >&6; }
17737if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
17738 $as_echo_n "(cached) " >&6
17739else
17740 case $ac_pt_DX_LATEX in
17741 [\\/]* | ?:[\\/]*)
17742 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
17743 ;;
17744 *)
17745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17746for as_dir in $PATH
17747do
17748 IFS=$as_save_IFS
17749 test -z "$as_dir" && as_dir=.
17750 for ac_exec_ext in '' $ac_executable_extensions; do
17751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17752 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17754 break 2
17755 fi
17756done
17757 done
17758IFS=$as_save_IFS
17759
17760 ;;
17761esac
17762fi
17763ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
17764if test -n "$ac_pt_DX_LATEX"; then
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
17766$as_echo "$ac_pt_DX_LATEX" >&6; }
17767else
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17769$as_echo "no" >&6; }
17770fi
17771
17772 if test "x$ac_pt_DX_LATEX" = x; then
17773 DX_LATEX=""
17774 else
17775 case $cross_compiling:$ac_tool_warned in
17776yes:)
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17779ac_tool_warned=yes ;;
17780esac
17781 DX_LATEX=$ac_pt_DX_LATEX
17782 fi
17783else
17784 DX_LATEX="$ac_cv_path_DX_LATEX"
17785fi
17786
17787if test "$DX_FLAG_ps$DX_LATEX" = 1; then
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
17789$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
17790 DX_FLAG_ps=0
17791
17792fi
17793
17794
17795if test -n "$ac_tool_prefix"; then
17796 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17797set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17799$as_echo_n "checking for $ac_word... " >&6; }
17800if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17801 $as_echo_n "(cached) " >&6
17802else
17803 case $DX_MAKEINDEX in
17804 [\\/]* | ?:[\\/]*)
17805 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17806 ;;
17807 *)
17808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17809for as_dir in $PATH
17810do
17811 IFS=$as_save_IFS
17812 test -z "$as_dir" && as_dir=.
17813 for ac_exec_ext in '' $ac_executable_extensions; do
17814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17815 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17817 break 2
17818 fi
17819done
17820 done
17821IFS=$as_save_IFS
17822
17823 ;;
17824esac
17825fi
17826DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17827if test -n "$DX_MAKEINDEX"; then
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17829$as_echo "$DX_MAKEINDEX" >&6; }
17830else
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832$as_echo "no" >&6; }
17833fi
17834
17835
17836fi
17837if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17838 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17839 # Extract the first word of "makeindex", so it can be a program name with args.
17840set dummy makeindex; ac_word=$2
17841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17842$as_echo_n "checking for $ac_word... " >&6; }
17843if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17844 $as_echo_n "(cached) " >&6
17845else
17846 case $ac_pt_DX_MAKEINDEX in
17847 [\\/]* | ?:[\\/]*)
17848 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17849 ;;
17850 *)
17851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17852for as_dir in $PATH
17853do
17854 IFS=$as_save_IFS
17855 test -z "$as_dir" && as_dir=.
17856 for ac_exec_ext in '' $ac_executable_extensions; do
17857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17858 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17860 break 2
17861 fi
17862done
17863 done
17864IFS=$as_save_IFS
17865
17866 ;;
17867esac
17868fi
17869ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17870if test -n "$ac_pt_DX_MAKEINDEX"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17872$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17873else
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17875$as_echo "no" >&6; }
17876fi
17877
17878 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17879 DX_MAKEINDEX=""
17880 else
17881 case $cross_compiling:$ac_tool_warned in
17882yes:)
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17885ac_tool_warned=yes ;;
17886esac
17887 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17888 fi
17889else
17890 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17891fi
17892
17893if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17895$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17896 DX_FLAG_ps=0
17897
17898fi
17899
17900
17901if test -n "$ac_tool_prefix"; then
17902 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17903set dummy ${ac_tool_prefix}dvips; ac_word=$2
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17905$as_echo_n "checking for $ac_word... " >&6; }
17906if ${ac_cv_path_DX_DVIPS+:} false; then :
17907 $as_echo_n "(cached) " >&6
17908else
17909 case $DX_DVIPS in
17910 [\\/]* | ?:[\\/]*)
17911 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17912 ;;
17913 *)
17914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17915for as_dir in $PATH
17916do
17917 IFS=$as_save_IFS
17918 test -z "$as_dir" && as_dir=.
17919 for ac_exec_ext in '' $ac_executable_extensions; do
17920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17921 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17923 break 2
17924 fi
17925done
17926 done
17927IFS=$as_save_IFS
17928
17929 ;;
17930esac
17931fi
17932DX_DVIPS=$ac_cv_path_DX_DVIPS
17933if test -n "$DX_DVIPS"; then
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17935$as_echo "$DX_DVIPS" >&6; }
17936else
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17938$as_echo "no" >&6; }
17939fi
17940
17941
17942fi
17943if test -z "$ac_cv_path_DX_DVIPS"; then
17944 ac_pt_DX_DVIPS=$DX_DVIPS
17945 # Extract the first word of "dvips", so it can be a program name with args.
17946set dummy dvips; ac_word=$2
17947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17948$as_echo_n "checking for $ac_word... " >&6; }
17949if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17950 $as_echo_n "(cached) " >&6
17951else
17952 case $ac_pt_DX_DVIPS in
17953 [\\/]* | ?:[\\/]*)
17954 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17955 ;;
17956 *)
17957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17958for as_dir in $PATH
17959do
17960 IFS=$as_save_IFS
17961 test -z "$as_dir" && as_dir=.
17962 for ac_exec_ext in '' $ac_executable_extensions; do
17963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17964 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17966 break 2
17967 fi
17968done
17969 done
17970IFS=$as_save_IFS
17971
17972 ;;
17973esac
17974fi
17975ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17976if test -n "$ac_pt_DX_DVIPS"; then
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17978$as_echo "$ac_pt_DX_DVIPS" >&6; }
17979else
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981$as_echo "no" >&6; }
17982fi
17983
17984 if test "x$ac_pt_DX_DVIPS" = x; then
17985 DX_DVIPS=""
17986 else
17987 case $cross_compiling:$ac_tool_warned in
17988yes:)
17989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17991ac_tool_warned=yes ;;
17992esac
17993 DX_DVIPS=$ac_pt_DX_DVIPS
17994 fi
17995else
17996 DX_DVIPS="$ac_cv_path_DX_DVIPS"
17997fi
17998
17999if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
18001$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
18002 DX_FLAG_ps=0
18003
18004fi
18005
18006
18007if test -n "$ac_tool_prefix"; then
18008 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18009set dummy ${ac_tool_prefix}egrep; ac_word=$2
18010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18011$as_echo_n "checking for $ac_word... " >&6; }
18012if ${ac_cv_path_DX_EGREP+:} false; then :
18013 $as_echo_n "(cached) " >&6
18014else
18015 case $DX_EGREP in
18016 [\\/]* | ?:[\\/]*)
18017 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18018 ;;
18019 *)
18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18021for as_dir in $PATH
18022do
18023 IFS=$as_save_IFS
18024 test -z "$as_dir" && as_dir=.
18025 for ac_exec_ext in '' $ac_executable_extensions; do
18026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18027 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18029 break 2
18030 fi
18031done
18032 done
18033IFS=$as_save_IFS
18034
18035 ;;
18036esac
18037fi
18038DX_EGREP=$ac_cv_path_DX_EGREP
18039if test -n "$DX_EGREP"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18041$as_echo "$DX_EGREP" >&6; }
18042else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18044$as_echo "no" >&6; }
18045fi
18046
18047
18048fi
18049if test -z "$ac_cv_path_DX_EGREP"; then
18050 ac_pt_DX_EGREP=$DX_EGREP
18051 # Extract the first word of "egrep", so it can be a program name with args.
18052set dummy egrep; ac_word=$2
18053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18054$as_echo_n "checking for $ac_word... " >&6; }
18055if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18056 $as_echo_n "(cached) " >&6
18057else
18058 case $ac_pt_DX_EGREP in
18059 [\\/]* | ?:[\\/]*)
18060 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18061 ;;
18062 *)
18063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18064for as_dir in $PATH
18065do
18066 IFS=$as_save_IFS
18067 test -z "$as_dir" && as_dir=.
18068 for ac_exec_ext in '' $ac_executable_extensions; do
18069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18070 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18072 break 2
18073 fi
18074done
18075 done
18076IFS=$as_save_IFS
18077
18078 ;;
18079esac
18080fi
18081ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18082if test -n "$ac_pt_DX_EGREP"; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18084$as_echo "$ac_pt_DX_EGREP" >&6; }
18085else
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18087$as_echo "no" >&6; }
18088fi
18089
18090 if test "x$ac_pt_DX_EGREP" = x; then
18091 DX_EGREP=""
18092 else
18093 case $cross_compiling:$ac_tool_warned in
18094yes:)
18095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18097ac_tool_warned=yes ;;
18098esac
18099 DX_EGREP=$ac_pt_DX_EGREP
18100 fi
18101else
18102 DX_EGREP="$ac_cv_path_DX_EGREP"
18103fi
18104
18105if test "$DX_FLAG_ps$DX_EGREP" = 1; then
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
18107$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
18108 DX_FLAG_ps=0
18109
18110fi
18111
18112 :
18113fi
18114 if test "$DX_FLAG_ps" = 1; then
18115 DX_COND_ps_TRUE=
18116 DX_COND_ps_FALSE='#'
18117else
18118 DX_COND_ps_TRUE='#'
18119 DX_COND_ps_FALSE=
18120fi
18121
18122if test "$DX_FLAG_ps" = 1; then
18123
18124 :
18125else
18126
18127 :
18128fi
18129
18130
18131# PDF file generation:
18132
18133
18134
18135 # Check whether --enable-doxygen-pdf was given.
18136if test "${enable_doxygen_pdf+set}" = set; then :
18137 enableval=$enable_doxygen_pdf;
18138case "$enableval" in
18139#(
18140y|Y|yes|Yes|YES)
18141 DX_FLAG_pdf=1
18142
18143
18144test "$DX_FLAG_doc" = "1" \
18145|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
18146
18147;; #(
18148n|N|no|No|NO)
18149 DX_FLAG_pdf=0
18150
18151;; #(
18152*)
18153 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
18154;;
18155esac
18156
18157else
18158
18159DX_FLAG_pdf=0
18160
18161
18162test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
18163
18164
18165
18166fi
18167
18168if test "$DX_FLAG_pdf" = 1; then
18169
18170if test -n "$ac_tool_prefix"; then
18171 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
18172set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
18173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18174$as_echo_n "checking for $ac_word... " >&6; }
18175if ${ac_cv_path_DX_PDFLATEX+:} false; then :
18176 $as_echo_n "(cached) " >&6
18177else
18178 case $DX_PDFLATEX in
18179 [\\/]* | ?:[\\/]*)
18180 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
18181 ;;
18182 *)
18183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184for as_dir in $PATH
18185do
18186 IFS=$as_save_IFS
18187 test -z "$as_dir" && as_dir=.
18188 for ac_exec_ext in '' $ac_executable_extensions; do
18189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18190 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18192 break 2
18193 fi
18194done
18195 done
18196IFS=$as_save_IFS
18197
18198 ;;
18199esac
18200fi
18201DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
18202if test -n "$DX_PDFLATEX"; then
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
18204$as_echo "$DX_PDFLATEX" >&6; }
18205else
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18207$as_echo "no" >&6; }
18208fi
18209
18210
18211fi
18212if test -z "$ac_cv_path_DX_PDFLATEX"; then
18213 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
18214 # Extract the first word of "pdflatex", so it can be a program name with args.
18215set dummy pdflatex; ac_word=$2
18216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18217$as_echo_n "checking for $ac_word... " >&6; }
18218if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
18219 $as_echo_n "(cached) " >&6
18220else
18221 case $ac_pt_DX_PDFLATEX in
18222 [\\/]* | ?:[\\/]*)
18223 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
18224 ;;
18225 *)
18226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18227for as_dir in $PATH
18228do
18229 IFS=$as_save_IFS
18230 test -z "$as_dir" && as_dir=.
18231 for ac_exec_ext in '' $ac_executable_extensions; do
18232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18233 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18235 break 2
18236 fi
18237done
18238 done
18239IFS=$as_save_IFS
18240
18241 ;;
18242esac
18243fi
18244ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
18245if test -n "$ac_pt_DX_PDFLATEX"; then
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
18247$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
18248else
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250$as_echo "no" >&6; }
18251fi
18252
18253 if test "x$ac_pt_DX_PDFLATEX" = x; then
18254 DX_PDFLATEX=""
18255 else
18256 case $cross_compiling:$ac_tool_warned in
18257yes:)
18258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18260ac_tool_warned=yes ;;
18261esac
18262 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
18263 fi
18264else
18265 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
18266fi
18267
18268if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
18270$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
18271 DX_FLAG_pdf=0
18272
18273fi
18274
18275
18276if test -n "$ac_tool_prefix"; then
18277 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18278set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18280$as_echo_n "checking for $ac_word... " >&6; }
18281if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18282 $as_echo_n "(cached) " >&6
18283else
18284 case $DX_MAKEINDEX in
18285 [\\/]* | ?:[\\/]*)
18286 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18287 ;;
18288 *)
18289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18290for as_dir in $PATH
18291do
18292 IFS=$as_save_IFS
18293 test -z "$as_dir" && as_dir=.
18294 for ac_exec_ext in '' $ac_executable_extensions; do
18295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18296 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18298 break 2
18299 fi
18300done
18301 done
18302IFS=$as_save_IFS
18303
18304 ;;
18305esac
18306fi
18307DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18308if test -n "$DX_MAKEINDEX"; then
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18310$as_echo "$DX_MAKEINDEX" >&6; }
18311else
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18313$as_echo "no" >&6; }
18314fi
18315
18316
18317fi
18318if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18319 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18320 # Extract the first word of "makeindex", so it can be a program name with args.
18321set dummy makeindex; ac_word=$2
18322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18323$as_echo_n "checking for $ac_word... " >&6; }
18324if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18325 $as_echo_n "(cached) " >&6
18326else
18327 case $ac_pt_DX_MAKEINDEX in
18328 [\\/]* | ?:[\\/]*)
18329 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18330 ;;
18331 *)
18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333for as_dir in $PATH
18334do
18335 IFS=$as_save_IFS
18336 test -z "$as_dir" && as_dir=.
18337 for ac_exec_ext in '' $ac_executable_extensions; do
18338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18339 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18341 break 2
18342 fi
18343done
18344 done
18345IFS=$as_save_IFS
18346
18347 ;;
18348esac
18349fi
18350ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18351if test -n "$ac_pt_DX_MAKEINDEX"; then
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18353$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18354else
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356$as_echo "no" >&6; }
18357fi
18358
18359 if test "x$ac_pt_DX_MAKEINDEX" = x; then
18360 DX_MAKEINDEX=""
18361 else
18362 case $cross_compiling:$ac_tool_warned in
18363yes:)
18364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18366ac_tool_warned=yes ;;
18367esac
18368 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18369 fi
18370else
18371 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18372fi
18373
18374if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18376$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18377 DX_FLAG_pdf=0
18378
18379fi
18380
18381
18382if test -n "$ac_tool_prefix"; then
18383 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18384set dummy ${ac_tool_prefix}egrep; ac_word=$2
18385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18386$as_echo_n "checking for $ac_word... " >&6; }
18387if ${ac_cv_path_DX_EGREP+:} false; then :
18388 $as_echo_n "(cached) " >&6
18389else
18390 case $DX_EGREP in
18391 [\\/]* | ?:[\\/]*)
18392 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18393 ;;
18394 *)
18395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396for as_dir in $PATH
18397do
18398 IFS=$as_save_IFS
18399 test -z "$as_dir" && as_dir=.
18400 for ac_exec_ext in '' $ac_executable_extensions; do
18401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18404 break 2
18405 fi
18406done
18407 done
18408IFS=$as_save_IFS
18409
18410 ;;
18411esac
18412fi
18413DX_EGREP=$ac_cv_path_DX_EGREP
18414if test -n "$DX_EGREP"; then
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18416$as_echo "$DX_EGREP" >&6; }
18417else
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419$as_echo "no" >&6; }
18420fi
18421
18422
18423fi
18424if test -z "$ac_cv_path_DX_EGREP"; then
18425 ac_pt_DX_EGREP=$DX_EGREP
18426 # Extract the first word of "egrep", so it can be a program name with args.
18427set dummy egrep; ac_word=$2
18428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18429$as_echo_n "checking for $ac_word... " >&6; }
18430if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18431 $as_echo_n "(cached) " >&6
18432else
18433 case $ac_pt_DX_EGREP in
18434 [\\/]* | ?:[\\/]*)
18435 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18436 ;;
18437 *)
18438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18439for as_dir in $PATH
18440do
18441 IFS=$as_save_IFS
18442 test -z "$as_dir" && as_dir=.
18443 for ac_exec_ext in '' $ac_executable_extensions; do
18444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18445 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18447 break 2
18448 fi
18449done
18450 done
18451IFS=$as_save_IFS
18452
18453 ;;
18454esac
18455fi
18456ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18457if test -n "$ac_pt_DX_EGREP"; then
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18459$as_echo "$ac_pt_DX_EGREP" >&6; }
18460else
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18462$as_echo "no" >&6; }
18463fi
18464
18465 if test "x$ac_pt_DX_EGREP" = x; then
18466 DX_EGREP=""
18467 else
18468 case $cross_compiling:$ac_tool_warned in
18469yes:)
18470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18472ac_tool_warned=yes ;;
18473esac
18474 DX_EGREP=$ac_pt_DX_EGREP
18475 fi
18476else
18477 DX_EGREP="$ac_cv_path_DX_EGREP"
18478fi
18479
18480if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18482$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18483 DX_FLAG_pdf=0
18484
18485fi
18486
18487 :
18488fi
18489 if test "$DX_FLAG_pdf" = 1; then
18490 DX_COND_pdf_TRUE=
18491 DX_COND_pdf_FALSE='#'
18492else
18493 DX_COND_pdf_TRUE='#'
18494 DX_COND_pdf_FALSE=
18495fi
18496
18497if test "$DX_FLAG_pdf" = 1; then
18498
18499 :
18500else
18501
18502 :
18503fi
18504
18505
18506# LaTeX generation for PS and/or PDF:
18507 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18508 DX_COND_latex_TRUE=
18509 DX_COND_latex_FALSE='#'
18510else
18511 DX_COND_latex_TRUE='#'
18512 DX_COND_latex_FALSE=
18513fi
18514
18515if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18516 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18517
18518else
18519 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18520
18521fi
18522
18523# Paper size for PS and/or PDF:
18524
18525case "$DOXYGEN_PAPER_SIZE" in
18526#(
18527"")
18528 DOXYGEN_PAPER_SIZE=""
18529
18530;; #(
18531a4wide|a4|letter|legal|executive)
18532 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18533
18534;; #(
18535*)
18536 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18537;;
18538esac
18539
18540#For debugging:
18541#echo DX_FLAG_doc=$DX_FLAG_doc
18542#echo DX_FLAG_dot=$DX_FLAG_dot
18543#echo DX_FLAG_man=$DX_FLAG_man
18544#echo DX_FLAG_html=$DX_FLAG_html
18545#echo DX_FLAG_chm=$DX_FLAG_chm
18546#echo DX_FLAG_chi=$DX_FLAG_chi
18547#echo DX_FLAG_rtf=$DX_FLAG_rtf
18548#echo DX_FLAG_xml=$DX_FLAG_xml
18549#echo DX_FLAG_pdf=$DX_FLAG_pdf
18550#echo DX_FLAG_ps=$DX_FLAG_ps
18551#echo DX_ENV=$DX_ENV
18552
18553
Jeff Thompson39128c62013-06-19 14:08:51 -070018554ac_config_files="$ac_config_files Makefile"
18555
18556cat >confcache <<\_ACEOF
18557# This file is a shell script that caches the results of configure
18558# tests run on this system so they can be shared between configure
18559# scripts and configure runs, see configure's option --config-cache.
18560# It is not useful on other systems. If it contains results you don't
18561# want to keep, you may remove or edit it.
18562#
18563# config.status only pays attention to the cache file if you give it
18564# the --recheck option to rerun configure.
18565#
18566# `ac_cv_env_foo' variables (set or unset) will be overridden when
18567# loading this file, other *unset* `ac_cv_foo' will be assigned the
18568# following values.
18569
18570_ACEOF
18571
18572# The following way of writing the cache mishandles newlines in values,
18573# but we know of no workaround that is simple, portable, and efficient.
18574# So, we kill variables containing newlines.
18575# Ultrix sh set writes to stderr and can't be redirected directly,
18576# and sets the high bit in the cache file unless we assign to the vars.
18577(
18578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18579 eval ac_val=\$$ac_var
18580 case $ac_val in #(
18581 *${as_nl}*)
18582 case $ac_var in #(
18583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18585 esac
18586 case $ac_var in #(
18587 _ | IFS | as_nl) ;; #(
18588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18589 *) { eval $ac_var=; unset $ac_var;} ;;
18590 esac ;;
18591 esac
18592 done
18593
18594 (set) 2>&1 |
18595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18596 *${as_nl}ac_space=\ *)
18597 # `set' does not quote correctly, so add quotes: double-quote
18598 # substitution turns \\\\ into \\, and sed turns \\ into \.
18599 sed -n \
18600 "s/'/'\\\\''/g;
18601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18602 ;; #(
18603 *)
18604 # `set' quotes correctly as required by POSIX, so do not add quotes.
18605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18606 ;;
18607 esac |
18608 sort
18609) |
18610 sed '
18611 /^ac_cv_env_/b end
18612 t clear
18613 :clear
18614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18615 t end
18616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18617 :end' >>confcache
18618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18619 if test -w "$cache_file"; then
18620 if test "x$cache_file" != "x/dev/null"; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18622$as_echo "$as_me: updating cache $cache_file" >&6;}
18623 if test ! -f "$cache_file" || test -h "$cache_file"; then
18624 cat confcache >"$cache_file"
18625 else
18626 case $cache_file in #(
18627 */* | ?:*)
18628 mv -f confcache "$cache_file"$$ &&
18629 mv -f "$cache_file"$$ "$cache_file" ;; #(
18630 *)
18631 mv -f confcache "$cache_file" ;;
18632 esac
18633 fi
18634 fi
18635 else
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18637$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18638 fi
18639fi
18640rm -f confcache
18641
18642test "x$prefix" = xNONE && prefix=$ac_default_prefix
18643# Let make expand exec_prefix.
18644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18645
18646DEFS=-DHAVE_CONFIG_H
18647
18648ac_libobjs=
18649ac_ltlibobjs=
18650U=
18651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18652 # 1. Remove the extension, and $U if already installed.
18653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18656 # will be set to the directory where LIBOBJS objects are built.
18657 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18658 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18659done
18660LIBOBJS=$ac_libobjs
18661
18662LTLIBOBJS=$ac_ltlibobjs
18663
18664
18665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18666$as_echo_n "checking that generated files are newer than configure... " >&6; }
18667 if test -n "$am_sleep_pid"; then
18668 # Hide warnings about reused PIDs.
18669 wait $am_sleep_pid 2>/dev/null
18670 fi
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18672$as_echo "done" >&6; }
18673 if test -n "$EXEEXT"; then
18674 am__EXEEXT_TRUE=
18675 am__EXEEXT_FALSE='#'
18676else
18677 am__EXEEXT_TRUE='#'
18678 am__EXEEXT_FALSE=
18679fi
18680
Jeff Thompson47053ad2013-08-05 10:36:53 -070018681if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18682 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18683Usually this means the macro was only invoked conditionally." "$LINENO" 5
18684fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018685if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18686 as_fn_error $? "conditional \"AMDEP\" was never defined.
18687Usually this means the macro was only invoked conditionally." "$LINENO" 5
18688fi
Jeff Thompson36174062013-06-21 16:03:44 -070018689if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18690 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18691Usually this means the macro was only invoked conditionally." "$LINENO" 5
18692fi
Jeff Thompson4f031642013-08-05 11:03:16 -070018693if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18694 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18695Usually this means the macro was only invoked conditionally." "$LINENO" 5
18696fi
Jeff Thompson965a3242013-10-02 09:59:35 -070018697if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
18698 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
18699Usually this means the macro was only invoked conditionally." "$LINENO" 5
18700fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070018701if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18702 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
18703Usually this means the macro was only invoked conditionally." "$LINENO" 5
18704fi
18705if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18706 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
18707Usually this means the macro was only invoked conditionally." "$LINENO" 5
18708fi
18709if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18710 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
18711Usually this means the macro was only invoked conditionally." "$LINENO" 5
18712fi
18713if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18714 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
18715Usually this means the macro was only invoked conditionally." "$LINENO" 5
18716fi
18717if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18718 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
18719Usually this means the macro was only invoked conditionally." "$LINENO" 5
18720fi
18721if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18722 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
18723Usually this means the macro was only invoked conditionally." "$LINENO" 5
18724fi
18725if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18726 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
18727Usually this means the macro was only invoked conditionally." "$LINENO" 5
18728fi
18729if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18730 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
18731Usually this means the macro was only invoked conditionally." "$LINENO" 5
18732fi
18733if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18734 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
18735Usually this means the macro was only invoked conditionally." "$LINENO" 5
18736fi
18737if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18738 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
18739Usually this means the macro was only invoked conditionally." "$LINENO" 5
18740fi
18741if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18742 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
18743Usually this means the macro was only invoked conditionally." "$LINENO" 5
18744fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018745
18746: "${CONFIG_STATUS=./config.status}"
18747ac_write_fail=0
18748ac_clean_files_save=$ac_clean_files
18749ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18750{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18751$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18752as_write_fail=0
18753cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18754#! $SHELL
18755# Generated by $as_me.
18756# Run this file to recreate the current configuration.
18757# Compiler output produced by configure, useful for debugging
18758# configure, is in config.log if it exists.
18759
18760debug=false
18761ac_cs_recheck=false
18762ac_cs_silent=false
18763
18764SHELL=\${CONFIG_SHELL-$SHELL}
18765export SHELL
18766_ASEOF
18767cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18768## -------------------- ##
18769## M4sh Initialization. ##
18770## -------------------- ##
18771
18772# Be more Bourne compatible
18773DUALCASE=1; export DUALCASE # for MKS sh
18774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18775 emulate sh
18776 NULLCMD=:
18777 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18778 # is contrary to our usage. Disable this feature.
18779 alias -g '${1+"$@"}'='"$@"'
18780 setopt NO_GLOB_SUBST
18781else
18782 case `(set -o) 2>/dev/null` in #(
18783 *posix*) :
18784 set -o posix ;; #(
18785 *) :
18786 ;;
18787esac
18788fi
18789
18790
18791as_nl='
18792'
18793export as_nl
18794# Printing a long string crashes Solaris 7 /usr/bin/printf.
18795as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18796as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18797as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18798# Prefer a ksh shell builtin over an external printf program on Solaris,
18799# but without wasting forks for bash or zsh.
18800if test -z "$BASH_VERSION$ZSH_VERSION" \
18801 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18802 as_echo='print -r --'
18803 as_echo_n='print -rn --'
18804elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18805 as_echo='printf %s\n'
18806 as_echo_n='printf %s'
18807else
18808 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18809 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18810 as_echo_n='/usr/ucb/echo -n'
18811 else
18812 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18813 as_echo_n_body='eval
18814 arg=$1;
18815 case $arg in #(
18816 *"$as_nl"*)
18817 expr "X$arg" : "X\\(.*\\)$as_nl";
18818 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18819 esac;
18820 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18821 '
18822 export as_echo_n_body
18823 as_echo_n='sh -c $as_echo_n_body as_echo'
18824 fi
18825 export as_echo_body
18826 as_echo='sh -c $as_echo_body as_echo'
18827fi
18828
18829# The user is always right.
18830if test "${PATH_SEPARATOR+set}" != set; then
18831 PATH_SEPARATOR=:
18832 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18833 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18834 PATH_SEPARATOR=';'
18835 }
18836fi
18837
18838
18839# IFS
18840# We need space, tab and new line, in precisely that order. Quoting is
18841# there to prevent editors from complaining about space-tab.
18842# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18843# splitting by setting IFS to empty value.)
18844IFS=" "" $as_nl"
18845
18846# Find who we are. Look in the path if we contain no directory separator.
18847as_myself=
18848case $0 in #((
18849 *[\\/]* ) as_myself=$0 ;;
18850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18851for as_dir in $PATH
18852do
18853 IFS=$as_save_IFS
18854 test -z "$as_dir" && as_dir=.
18855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18856 done
18857IFS=$as_save_IFS
18858
18859 ;;
18860esac
18861# We did not find ourselves, most probably we were run as `sh COMMAND'
18862# in which case we are not to be found in the path.
18863if test "x$as_myself" = x; then
18864 as_myself=$0
18865fi
18866if test ! -f "$as_myself"; then
18867 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18868 exit 1
18869fi
18870
18871# Unset variables that we do not need and which cause bugs (e.g. in
18872# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18873# suppresses any "Segmentation fault" message there. '((' could
18874# trigger a bug in pdksh 5.2.14.
18875for as_var in BASH_ENV ENV MAIL MAILPATH
18876do eval test x\${$as_var+set} = xset \
18877 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18878done
18879PS1='$ '
18880PS2='> '
18881PS4='+ '
18882
18883# NLS nuisances.
18884LC_ALL=C
18885export LC_ALL
18886LANGUAGE=C
18887export LANGUAGE
18888
18889# CDPATH.
18890(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18891
18892
18893# as_fn_error STATUS ERROR [LINENO LOG_FD]
18894# ----------------------------------------
18895# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18896# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18897# script with STATUS, using 1 if that was 0.
18898as_fn_error ()
18899{
18900 as_status=$1; test $as_status -eq 0 && as_status=1
18901 if test "$4"; then
18902 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18903 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18904 fi
18905 $as_echo "$as_me: error: $2" >&2
18906 as_fn_exit $as_status
18907} # as_fn_error
18908
18909
18910# as_fn_set_status STATUS
18911# -----------------------
18912# Set $? to STATUS, without forking.
18913as_fn_set_status ()
18914{
18915 return $1
18916} # as_fn_set_status
18917
18918# as_fn_exit STATUS
18919# -----------------
18920# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18921as_fn_exit ()
18922{
18923 set +e
18924 as_fn_set_status $1
18925 exit $1
18926} # as_fn_exit
18927
18928# as_fn_unset VAR
18929# ---------------
18930# Portably unset VAR.
18931as_fn_unset ()
18932{
18933 { eval $1=; unset $1;}
18934}
18935as_unset=as_fn_unset
18936# as_fn_append VAR VALUE
18937# ----------------------
18938# Append the text in VALUE to the end of the definition contained in VAR. Take
18939# advantage of any shell optimizations that allow amortized linear growth over
18940# repeated appends, instead of the typical quadratic growth present in naive
18941# implementations.
18942if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18943 eval 'as_fn_append ()
18944 {
18945 eval $1+=\$2
18946 }'
18947else
18948 as_fn_append ()
18949 {
18950 eval $1=\$$1\$2
18951 }
18952fi # as_fn_append
18953
18954# as_fn_arith ARG...
18955# ------------------
18956# Perform arithmetic evaluation on the ARGs, and store the result in the
18957# global $as_val. Take advantage of shells that can avoid forks. The arguments
18958# must be portable across $(()) and expr.
18959if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18960 eval 'as_fn_arith ()
18961 {
18962 as_val=$(( $* ))
18963 }'
18964else
18965 as_fn_arith ()
18966 {
18967 as_val=`expr "$@" || test $? -eq 1`
18968 }
18969fi # as_fn_arith
18970
18971
18972if expr a : '\(a\)' >/dev/null 2>&1 &&
18973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18974 as_expr=expr
18975else
18976 as_expr=false
18977fi
18978
18979if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18980 as_basename=basename
18981else
18982 as_basename=false
18983fi
18984
18985if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18986 as_dirname=dirname
18987else
18988 as_dirname=false
18989fi
18990
18991as_me=`$as_basename -- "$0" ||
18992$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18993 X"$0" : 'X\(//\)$' \| \
18994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18995$as_echo X/"$0" |
18996 sed '/^.*\/\([^/][^/]*\)\/*$/{
18997 s//\1/
18998 q
18999 }
19000 /^X\/\(\/\/\)$/{
19001 s//\1/
19002 q
19003 }
19004 /^X\/\(\/\).*/{
19005 s//\1/
19006 q
19007 }
19008 s/.*/./; q'`
19009
19010# Avoid depending upon Character Ranges.
19011as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19012as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19013as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19014as_cr_digits='0123456789'
19015as_cr_alnum=$as_cr_Letters$as_cr_digits
19016
19017ECHO_C= ECHO_N= ECHO_T=
19018case `echo -n x` in #(((((
19019-n*)
19020 case `echo 'xy\c'` in
19021 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19022 xy) ECHO_C='\c';;
19023 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19024 ECHO_T=' ';;
19025 esac;;
19026*)
19027 ECHO_N='-n';;
19028esac
19029
19030rm -f conf$$ conf$$.exe conf$$.file
19031if test -d conf$$.dir; then
19032 rm -f conf$$.dir/conf$$.file
19033else
19034 rm -f conf$$.dir
19035 mkdir conf$$.dir 2>/dev/null
19036fi
19037if (echo >conf$$.file) 2>/dev/null; then
19038 if ln -s conf$$.file conf$$ 2>/dev/null; then
19039 as_ln_s='ln -s'
19040 # ... but there are two gotchas:
19041 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19042 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19043 # In both cases, we have to default to `cp -pR'.
19044 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19045 as_ln_s='cp -pR'
19046 elif ln conf$$.file conf$$ 2>/dev/null; then
19047 as_ln_s=ln
19048 else
19049 as_ln_s='cp -pR'
19050 fi
19051else
19052 as_ln_s='cp -pR'
19053fi
19054rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19055rmdir conf$$.dir 2>/dev/null
19056
19057
19058# as_fn_mkdir_p
19059# -------------
19060# Create "$as_dir" as a directory, including parents if necessary.
19061as_fn_mkdir_p ()
19062{
19063
19064 case $as_dir in #(
19065 -*) as_dir=./$as_dir;;
19066 esac
19067 test -d "$as_dir" || eval $as_mkdir_p || {
19068 as_dirs=
19069 while :; do
19070 case $as_dir in #(
19071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19072 *) as_qdir=$as_dir;;
19073 esac
19074 as_dirs="'$as_qdir' $as_dirs"
19075 as_dir=`$as_dirname -- "$as_dir" ||
19076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19077 X"$as_dir" : 'X\(//\)[^/]' \| \
19078 X"$as_dir" : 'X\(//\)$' \| \
19079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19080$as_echo X"$as_dir" |
19081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19082 s//\1/
19083 q
19084 }
19085 /^X\(\/\/\)[^/].*/{
19086 s//\1/
19087 q
19088 }
19089 /^X\(\/\/\)$/{
19090 s//\1/
19091 q
19092 }
19093 /^X\(\/\).*/{
19094 s//\1/
19095 q
19096 }
19097 s/.*/./; q'`
19098 test -d "$as_dir" && break
19099 done
19100 test -z "$as_dirs" || eval "mkdir $as_dirs"
19101 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19102
19103
19104} # as_fn_mkdir_p
19105if mkdir -p . 2>/dev/null; then
19106 as_mkdir_p='mkdir -p "$as_dir"'
19107else
19108 test -d ./-p && rmdir ./-p
19109 as_mkdir_p=false
19110fi
19111
19112
19113# as_fn_executable_p FILE
19114# -----------------------
19115# Test if FILE is an executable regular file.
19116as_fn_executable_p ()
19117{
19118 test -f "$1" && test -x "$1"
19119} # as_fn_executable_p
19120as_test_x='test -x'
19121as_executable_p=as_fn_executable_p
19122
19123# Sed expression to map a string onto a valid CPP name.
19124as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19125
19126# Sed expression to map a string onto a valid variable name.
19127as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19128
19129
19130exec 6>&1
19131## ----------------------------------- ##
19132## Main body of $CONFIG_STATUS script. ##
19133## ----------------------------------- ##
19134_ASEOF
19135test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19136
19137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19138# Save the log message, to keep $0 and so on meaningful, and to
19139# report actual input values of CONFIG_FILES etc. instead of their
19140# values after options handling.
19141ac_log="
Jeff Thompson93a24162013-09-27 13:28:13 -070019142This file was extended by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -070019143generated by GNU Autoconf 2.69. Invocation command line was
19144
19145 CONFIG_FILES = $CONFIG_FILES
19146 CONFIG_HEADERS = $CONFIG_HEADERS
19147 CONFIG_LINKS = $CONFIG_LINKS
19148 CONFIG_COMMANDS = $CONFIG_COMMANDS
19149 $ $0 $@
19150
19151on `(hostname || uname -n) 2>/dev/null | sed 1q`
19152"
19153
19154_ACEOF
19155
19156case $ac_config_files in *"
19157"*) set x $ac_config_files; shift; ac_config_files=$*;;
19158esac
19159
19160case $ac_config_headers in *"
19161"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19162esac
19163
19164
19165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19166# Files that config.status was made for.
19167config_files="$ac_config_files"
19168config_headers="$ac_config_headers"
19169config_commands="$ac_config_commands"
19170
19171_ACEOF
19172
19173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19174ac_cs_usage="\
19175\`$as_me' instantiates files and other configuration actions
19176from templates according to the current configuration. Unless the files
19177and actions are specified as TAGs, all are instantiated by default.
19178
19179Usage: $0 [OPTION]... [TAG]...
19180
19181 -h, --help print this help, then exit
19182 -V, --version print version number and configuration settings, then exit
19183 --config print configuration, then exit
19184 -q, --quiet, --silent
19185 do not print progress messages
19186 -d, --debug don't remove temporary files
19187 --recheck update $as_me by reconfiguring in the same conditions
19188 --file=FILE[:TEMPLATE]
19189 instantiate the configuration file FILE
19190 --header=FILE[:TEMPLATE]
19191 instantiate the configuration header FILE
19192
19193Configuration files:
19194$config_files
19195
19196Configuration headers:
19197$config_headers
19198
19199Configuration commands:
19200$config_commands
19201
Jeff Thompson93a24162013-09-27 13:28:13 -070019202Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -070019203ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
19204
19205_ACEOF
19206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19207ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19208ac_cs_version="\\
Jeff Thompson93a24162013-09-27 13:28:13 -070019209ndn-cpp config.status 0.2
Jeff Thompson39128c62013-06-19 14:08:51 -070019210configured by $0, generated by GNU Autoconf 2.69,
19211 with options \\"\$ac_cs_config\\"
19212
19213Copyright (C) 2012 Free Software Foundation, Inc.
19214This config.status script is free software; the Free Software Foundation
19215gives unlimited permission to copy, distribute and modify it."
19216
19217ac_pwd='$ac_pwd'
19218srcdir='$srcdir'
19219INSTALL='$INSTALL'
19220MKDIR_P='$MKDIR_P'
19221AWK='$AWK'
19222test -n "\$AWK" || AWK=awk
19223_ACEOF
19224
19225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19226# The default lists apply if the user does not specify any file.
19227ac_need_defaults=:
19228while test $# != 0
19229do
19230 case $1 in
19231 --*=?*)
19232 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19233 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19234 ac_shift=:
19235 ;;
19236 --*=)
19237 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19238 ac_optarg=
19239 ac_shift=:
19240 ;;
19241 *)
19242 ac_option=$1
19243 ac_optarg=$2
19244 ac_shift=shift
19245 ;;
19246 esac
19247
19248 case $ac_option in
19249 # Handling of the options.
19250 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19251 ac_cs_recheck=: ;;
19252 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19253 $as_echo "$ac_cs_version"; exit ;;
19254 --config | --confi | --conf | --con | --co | --c )
19255 $as_echo "$ac_cs_config"; exit ;;
19256 --debug | --debu | --deb | --de | --d | -d )
19257 debug=: ;;
19258 --file | --fil | --fi | --f )
19259 $ac_shift
19260 case $ac_optarg in
19261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19262 '') as_fn_error $? "missing file argument" ;;
19263 esac
19264 as_fn_append CONFIG_FILES " '$ac_optarg'"
19265 ac_need_defaults=false;;
19266 --header | --heade | --head | --hea )
19267 $ac_shift
19268 case $ac_optarg in
19269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19270 esac
19271 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19272 ac_need_defaults=false;;
19273 --he | --h)
19274 # Conflict between --help and --header
19275 as_fn_error $? "ambiguous option: \`$1'
19276Try \`$0 --help' for more information.";;
19277 --help | --hel | -h )
19278 $as_echo "$ac_cs_usage"; exit ;;
19279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19280 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19281 ac_cs_silent=: ;;
19282
19283 # This is an error.
19284 -*) as_fn_error $? "unrecognized option: \`$1'
19285Try \`$0 --help' for more information." ;;
19286
19287 *) as_fn_append ac_config_targets " $1"
19288 ac_need_defaults=false ;;
19289
19290 esac
19291 shift
19292done
19293
19294ac_configure_extra_args=
19295
19296if $ac_cs_silent; then
19297 exec 6>/dev/null
19298 ac_configure_extra_args="$ac_configure_extra_args --silent"
19299fi
19300
19301_ACEOF
19302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19303if \$ac_cs_recheck; then
19304 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19305 shift
19306 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19307 CONFIG_SHELL='$SHELL'
19308 export CONFIG_SHELL
19309 exec "\$@"
19310fi
19311
19312_ACEOF
19313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19314exec 5>>config.log
19315{
19316 echo
19317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19318## Running $as_me. ##
19319_ASBOX
19320 $as_echo "$ac_log"
19321} >&5
19322
19323_ACEOF
19324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19325#
19326# INIT-COMMANDS
19327#
Jeff Thompsonb7523002013-10-09 10:25:00 -070019328PACKAGE="$PACKAGE"
Jeff Thompson39128c62013-06-19 14:08:51 -070019329AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19330
Jeff Thompson4f031642013-08-05 11:03:16 -070019331
19332# The HP-UX ksh and POSIX shell print the target directory to stdout
19333# if CDPATH is set.
19334(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19335
19336sed_quote_subst='$sed_quote_subst'
19337double_quote_subst='$double_quote_subst'
19338delay_variable_subst='$delay_variable_subst'
19339macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19340macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19341enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19342enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19343pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19344enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19345SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19346ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19347PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19348host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19349host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19350host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19351build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19352build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19353build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19354SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19355Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19356GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19357EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19358FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19359LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19360NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19361LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19362max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19363ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19364exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19365lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19366lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19367lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19368lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19369lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19370reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19371reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19372OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19373deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19374file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19375file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19376want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19377DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19378sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19379AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19380AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19381archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19382STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19383RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19384old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19385old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19386old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19387lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19388CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19389CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19390compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19391GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19392lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19393lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19394lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19395lt_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"`'
19396nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19397lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19398objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19399MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19400lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19401lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19402lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19403lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19404lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19405need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19406MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19407DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19408NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19409LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19410OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19411OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19412libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19413shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19414extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19415archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19416enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19417export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19418whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19419compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19420old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19421old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19422archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19423archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19424module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19425module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19426with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19427allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19428no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19429hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19430hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19431hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19432hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19433hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19434hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19435hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19436inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19437link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19438always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19439export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19440exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19441include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19442prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19443postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19444file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19445variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19446need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19447need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19448version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19449runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19450shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19451shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19452libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19453library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19454soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19455install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19456postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19457postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19458finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19459finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19460hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19461sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19462sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19463hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19464enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19465enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19466enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19467old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19468striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19469compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19470predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19471postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19472predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19473postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19474compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19475LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19476reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19477reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19478old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19479compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19480GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19481lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19482lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19483lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19484lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19485lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19486archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19487enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19488export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19489whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19490compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19491old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19492old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19493archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19494archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19495module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19496module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19497with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19498allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19499no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19500hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19501hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19502hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19503hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19504hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19505hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19506hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19507inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19508link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19509always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19510export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19511exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19512include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19513prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19514postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19515file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19516hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19517compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19518predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19519postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19520predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19521postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19522compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19523
19524LTCC='$LTCC'
19525LTCFLAGS='$LTCFLAGS'
19526compiler='$compiler_DEFAULT'
19527
19528# A function that is used when there is no print builtin or printf.
19529func_fallback_echo ()
19530{
19531 eval 'cat <<_LTECHO_EOF
19532\$1
19533_LTECHO_EOF'
19534}
19535
19536# Quote evaled strings.
19537for var in SHELL \
19538ECHO \
19539PATH_SEPARATOR \
19540SED \
19541GREP \
19542EGREP \
19543FGREP \
19544LD \
19545NM \
19546LN_S \
19547lt_SP2NL \
19548lt_NL2SP \
19549reload_flag \
19550OBJDUMP \
19551deplibs_check_method \
19552file_magic_cmd \
19553file_magic_glob \
19554want_nocaseglob \
19555DLLTOOL \
19556sharedlib_from_linklib_cmd \
19557AR \
19558AR_FLAGS \
19559archiver_list_spec \
19560STRIP \
19561RANLIB \
19562CC \
19563CFLAGS \
19564compiler \
19565lt_cv_sys_global_symbol_pipe \
19566lt_cv_sys_global_symbol_to_cdecl \
19567lt_cv_sys_global_symbol_to_c_name_address \
19568lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19569nm_file_list_spec \
19570lt_prog_compiler_no_builtin_flag \
19571lt_prog_compiler_pic \
19572lt_prog_compiler_wl \
19573lt_prog_compiler_static \
19574lt_cv_prog_compiler_c_o \
19575need_locks \
19576MANIFEST_TOOL \
19577DSYMUTIL \
19578NMEDIT \
19579LIPO \
19580OTOOL \
19581OTOOL64 \
19582shrext_cmds \
19583export_dynamic_flag_spec \
19584whole_archive_flag_spec \
19585compiler_needs_object \
19586with_gnu_ld \
19587allow_undefined_flag \
19588no_undefined_flag \
19589hardcode_libdir_flag_spec \
19590hardcode_libdir_separator \
19591exclude_expsyms \
19592include_expsyms \
19593file_list_spec \
19594variables_saved_for_relink \
19595libname_spec \
19596library_names_spec \
19597soname_spec \
19598install_override_mode \
19599finish_eval \
19600old_striplib \
19601striplib \
19602compiler_lib_search_dirs \
19603predep_objects \
19604postdep_objects \
19605predeps \
19606postdeps \
19607compiler_lib_search_path \
19608LD_CXX \
19609reload_flag_CXX \
19610compiler_CXX \
19611lt_prog_compiler_no_builtin_flag_CXX \
19612lt_prog_compiler_pic_CXX \
19613lt_prog_compiler_wl_CXX \
19614lt_prog_compiler_static_CXX \
19615lt_cv_prog_compiler_c_o_CXX \
19616export_dynamic_flag_spec_CXX \
19617whole_archive_flag_spec_CXX \
19618compiler_needs_object_CXX \
19619with_gnu_ld_CXX \
19620allow_undefined_flag_CXX \
19621no_undefined_flag_CXX \
19622hardcode_libdir_flag_spec_CXX \
19623hardcode_libdir_separator_CXX \
19624exclude_expsyms_CXX \
19625include_expsyms_CXX \
19626file_list_spec_CXX \
19627compiler_lib_search_dirs_CXX \
19628predep_objects_CXX \
19629postdep_objects_CXX \
19630predeps_CXX \
19631postdeps_CXX \
19632compiler_lib_search_path_CXX; do
19633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19634 *[\\\\\\\`\\"\\\$]*)
19635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19636 ;;
19637 *)
19638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19639 ;;
19640 esac
19641done
19642
19643# Double-quote double-evaled strings.
19644for var in reload_cmds \
19645old_postinstall_cmds \
19646old_postuninstall_cmds \
19647old_archive_cmds \
19648extract_expsyms_cmds \
19649old_archive_from_new_cmds \
19650old_archive_from_expsyms_cmds \
19651archive_cmds \
19652archive_expsym_cmds \
19653module_cmds \
19654module_expsym_cmds \
19655export_symbols_cmds \
19656prelink_cmds \
19657postlink_cmds \
19658postinstall_cmds \
19659postuninstall_cmds \
19660finish_cmds \
19661sys_lib_search_path_spec \
19662sys_lib_dlsearch_path_spec \
19663reload_cmds_CXX \
19664old_archive_cmds_CXX \
19665old_archive_from_new_cmds_CXX \
19666old_archive_from_expsyms_cmds_CXX \
19667archive_cmds_CXX \
19668archive_expsym_cmds_CXX \
19669module_cmds_CXX \
19670module_expsym_cmds_CXX \
19671export_symbols_cmds_CXX \
19672prelink_cmds_CXX \
19673postlink_cmds_CXX; do
19674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19675 *[\\\\\\\`\\"\\\$]*)
19676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19677 ;;
19678 *)
19679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19680 ;;
19681 esac
19682done
19683
19684ac_aux_dir='$ac_aux_dir'
19685xsi_shell='$xsi_shell'
19686lt_shell_append='$lt_shell_append'
19687
19688# See if we are running on zsh, and set the options which allow our
19689# commands through without removal of \ escapes INIT.
19690if test -n "\${ZSH_VERSION+set}" ; then
19691 setopt NO_GLOB_SUBST
19692fi
19693
19694
19695 PACKAGE='$PACKAGE'
19696 VERSION='$VERSION'
19697 TIMESTAMP='$TIMESTAMP'
19698 RM='$RM'
19699 ofile='$ofile'
19700
19701
19702
19703
19704
19705
Jeff Thompson39128c62013-06-19 14:08:51 -070019706_ACEOF
19707
19708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19709
19710# Handling of arguments.
19711for ac_config_target in $ac_config_targets
19712do
19713 case $ac_config_target in
Jeff Thompsonb7523002013-10-09 10:25:00 -070019714 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19715 "ndn-cpp/ndn-cpp-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS ndn-cpp/ndn-cpp-config.h" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070019716 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070019717 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070019718 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19719
19720 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19721 esac
19722done
19723
19724
19725# If the user did not use the arguments to specify the items to instantiate,
19726# then the envvar interface is used. Set only those that are not.
19727# We use the long form for the default assignment because of an extremely
19728# bizarre bug on SunOS 4.1.3.
19729if $ac_need_defaults; then
19730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19732 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19733fi
19734
19735# Have a temporary directory for convenience. Make it in the build tree
19736# simply because there is no reason against having it here, and in addition,
19737# creating and moving files from /tmp can sometimes cause problems.
19738# Hook for its removal unless debugging.
19739# Note that there is a small window in which the directory will not be cleaned:
19740# after its creation but before its name has been assigned to `$tmp'.
19741$debug ||
19742{
19743 tmp= ac_tmp=
19744 trap 'exit_status=$?
19745 : "${ac_tmp:=$tmp}"
19746 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19747' 0
19748 trap 'as_fn_exit 1' 1 2 13 15
19749}
19750# Create a (secure) tmp directory for tmp files.
19751
19752{
19753 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19754 test -d "$tmp"
19755} ||
19756{
19757 tmp=./conf$$-$RANDOM
19758 (umask 077 && mkdir "$tmp")
19759} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19760ac_tmp=$tmp
19761
19762# Set up the scripts for CONFIG_FILES section.
19763# No need to generate them if there are no CONFIG_FILES.
19764# This happens for instance with `./config.status config.h'.
19765if test -n "$CONFIG_FILES"; then
19766
19767
19768ac_cr=`echo X | tr X '\015'`
19769# On cygwin, bash can eat \r inside `` if the user requested igncr.
19770# But we know of no other shell where ac_cr would be empty at this
19771# point, so we can use a bashism as a fallback.
19772if test "x$ac_cr" = x; then
19773 eval ac_cr=\$\'\\r\'
19774fi
19775ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19776if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19777 ac_cs_awk_cr='\\r'
19778else
19779 ac_cs_awk_cr=$ac_cr
19780fi
19781
19782echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19783_ACEOF
19784
19785
19786{
19787 echo "cat >conf$$subs.awk <<_ACEOF" &&
19788 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19789 echo "_ACEOF"
19790} >conf$$subs.sh ||
19791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19792ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19793ac_delim='%!_!# '
19794for ac_last_try in false false false false false :; do
19795 . ./conf$$subs.sh ||
19796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19797
19798 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19799 if test $ac_delim_n = $ac_delim_num; then
19800 break
19801 elif $ac_last_try; then
19802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19803 else
19804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19805 fi
19806done
19807rm -f conf$$subs.sh
19808
19809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19810cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19811_ACEOF
19812sed -n '
19813h
19814s/^/S["/; s/!.*/"]=/
19815p
19816g
19817s/^[^!]*!//
19818:repl
19819t repl
19820s/'"$ac_delim"'$//
19821t delim
19822:nl
19823h
19824s/\(.\{148\}\)..*/\1/
19825t more1
19826s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19827p
19828n
19829b repl
19830:more1
19831s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19832p
19833g
19834s/.\{148\}//
19835t nl
19836:delim
19837h
19838s/\(.\{148\}\)..*/\1/
19839t more2
19840s/["\\]/\\&/g; s/^/"/; s/$/"/
19841p
19842b
19843:more2
19844s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19845p
19846g
19847s/.\{148\}//
19848t delim
19849' <conf$$subs.awk | sed '
19850/^[^""]/{
19851 N
19852 s/\n//
19853}
19854' >>$CONFIG_STATUS || ac_write_fail=1
19855rm -f conf$$subs.awk
19856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19857_ACAWK
19858cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19859 for (key in S) S_is_set[key] = 1
19860 FS = ""
19861
19862}
19863{
19864 line = $ 0
19865 nfields = split(line, field, "@")
19866 substed = 0
19867 len = length(field[1])
19868 for (i = 2; i < nfields; i++) {
19869 key = field[i]
19870 keylen = length(key)
19871 if (S_is_set[key]) {
19872 value = S[key]
19873 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19874 len += length(value) + length(field[++i])
19875 substed = 1
19876 } else
19877 len += 1 + keylen
19878 }
19879
19880 print line
19881}
19882
19883_ACAWK
19884_ACEOF
19885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19886if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19887 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19888else
19889 cat
19890fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19891 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19892_ACEOF
19893
19894# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19895# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19896# trailing colons and then remove the whole line if VPATH becomes empty
19897# (actually we leave an empty line to preserve line numbers).
19898if test "x$srcdir" = x.; then
19899 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19900h
19901s///
19902s/^/:/
19903s/[ ]*$/:/
19904s/:\$(srcdir):/:/g
19905s/:\${srcdir}:/:/g
19906s/:@srcdir@:/:/g
19907s/^:*//
19908s/:*$//
19909x
19910s/\(=[ ]*\).*/\1/
19911G
19912s/\n//
19913s/^[^=]*=[ ]*$//
19914}'
19915fi
19916
19917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918fi # test -n "$CONFIG_FILES"
19919
19920# Set up the scripts for CONFIG_HEADERS section.
19921# No need to generate them if there are no CONFIG_HEADERS.
19922# This happens for instance with `./config.status Makefile'.
19923if test -n "$CONFIG_HEADERS"; then
19924cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19925BEGIN {
19926_ACEOF
19927
19928# Transform confdefs.h into an awk script `defines.awk', embedded as
19929# here-document in config.status, that substitutes the proper values into
19930# config.h.in to produce config.h.
19931
19932# Create a delimiter string that does not exist in confdefs.h, to ease
19933# handling of long lines.
19934ac_delim='%!_!# '
19935for ac_last_try in false false :; do
19936 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19937 if test -z "$ac_tt"; then
19938 break
19939 elif $ac_last_try; then
19940 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19941 else
19942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19943 fi
19944done
19945
19946# For the awk script, D is an array of macro values keyed by name,
19947# likewise P contains macro parameters if any. Preserve backslash
19948# newline sequences.
19949
19950ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19951sed -n '
19952s/.\{148\}/&'"$ac_delim"'/g
19953t rset
19954:rset
19955s/^[ ]*#[ ]*define[ ][ ]*/ /
19956t def
19957d
19958:def
19959s/\\$//
19960t bsnl
19961s/["\\]/\\&/g
19962s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19963D["\1"]=" \3"/p
19964s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19965d
19966:bsnl
19967s/["\\]/\\&/g
19968s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19969D["\1"]=" \3\\\\\\n"\\/p
19970t cont
19971s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19972t cont
19973d
19974:cont
19975n
19976s/.\{148\}/&'"$ac_delim"'/g
19977t clear
19978:clear
19979s/\\$//
19980t bsnlc
19981s/["\\]/\\&/g; s/^/"/; s/$/"/p
19982d
19983:bsnlc
19984s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19985b cont
19986' <confdefs.h | sed '
19987s/'"$ac_delim"'/"\\\
19988"/g' >>$CONFIG_STATUS || ac_write_fail=1
19989
19990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19991 for (key in D) D_is_set[key] = 1
19992 FS = ""
19993}
19994/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19995 line = \$ 0
19996 split(line, arg, " ")
19997 if (arg[1] == "#") {
19998 defundef = arg[2]
19999 mac1 = arg[3]
20000 } else {
20001 defundef = substr(arg[1], 2)
20002 mac1 = arg[2]
20003 }
20004 split(mac1, mac2, "(") #)
20005 macro = mac2[1]
20006 prefix = substr(line, 1, index(line, defundef) - 1)
20007 if (D_is_set[macro]) {
20008 # Preserve the white space surrounding the "#".
20009 print prefix "define", macro P[macro] D[macro]
20010 next
20011 } else {
20012 # Replace #undef with comments. This is necessary, for example,
20013 # in the case of _POSIX_SOURCE, which is predefined and required
20014 # on some systems where configure will not decide to define it.
20015 if (defundef == "undef") {
20016 print "/*", prefix defundef, macro, "*/"
20017 next
20018 }
20019 }
20020}
20021{ print }
20022_ACAWK
20023_ACEOF
20024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20025 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20026fi # test -n "$CONFIG_HEADERS"
20027
20028
20029eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20030shift
20031for ac_tag
20032do
20033 case $ac_tag in
20034 :[FHLC]) ac_mode=$ac_tag; continue;;
20035 esac
20036 case $ac_mode$ac_tag in
20037 :[FHL]*:*);;
20038 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20039 :[FH]-) ac_tag=-:-;;
20040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20041 esac
20042 ac_save_IFS=$IFS
20043 IFS=:
20044 set x $ac_tag
20045 IFS=$ac_save_IFS
20046 shift
20047 ac_file=$1
20048 shift
20049
20050 case $ac_mode in
20051 :L) ac_source=$1;;
20052 :[FH])
20053 ac_file_inputs=
20054 for ac_f
20055 do
20056 case $ac_f in
20057 -) ac_f="$ac_tmp/stdin";;
20058 *) # Look for the file first in the build tree, then in the source tree
20059 # (if the path is not absolute). The absolute path cannot be DOS-style,
20060 # because $ac_f cannot contain `:'.
20061 test -f "$ac_f" ||
20062 case $ac_f in
20063 [\\/$]*) false;;
20064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20065 esac ||
20066 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20067 esac
20068 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20069 as_fn_append ac_file_inputs " '$ac_f'"
20070 done
20071
20072 # Let's still pretend it is `configure' which instantiates (i.e., don't
20073 # use $as_me), people would be surprised to read:
20074 # /* config.h. Generated by config.status. */
20075 configure_input='Generated from '`
20076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20077 `' by configure.'
20078 if test x"$ac_file" != x-; then
20079 configure_input="$ac_file. $configure_input"
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20081$as_echo "$as_me: creating $ac_file" >&6;}
20082 fi
20083 # Neutralize special characters interpreted by sed in replacement strings.
20084 case $configure_input in #(
20085 *\&* | *\|* | *\\* )
20086 ac_sed_conf_input=`$as_echo "$configure_input" |
20087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20088 *) ac_sed_conf_input=$configure_input;;
20089 esac
20090
20091 case $ac_tag in
20092 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20094 esac
20095 ;;
20096 esac
20097
20098 ac_dir=`$as_dirname -- "$ac_file" ||
20099$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20100 X"$ac_file" : 'X\(//\)[^/]' \| \
20101 X"$ac_file" : 'X\(//\)$' \| \
20102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20103$as_echo X"$ac_file" |
20104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20105 s//\1/
20106 q
20107 }
20108 /^X\(\/\/\)[^/].*/{
20109 s//\1/
20110 q
20111 }
20112 /^X\(\/\/\)$/{
20113 s//\1/
20114 q
20115 }
20116 /^X\(\/\).*/{
20117 s//\1/
20118 q
20119 }
20120 s/.*/./; q'`
20121 as_dir="$ac_dir"; as_fn_mkdir_p
20122 ac_builddir=.
20123
20124case "$ac_dir" in
20125.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20126*)
20127 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20128 # A ".." for each directory in $ac_dir_suffix.
20129 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20130 case $ac_top_builddir_sub in
20131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20133 esac ;;
20134esac
20135ac_abs_top_builddir=$ac_pwd
20136ac_abs_builddir=$ac_pwd$ac_dir_suffix
20137# for backward compatibility:
20138ac_top_builddir=$ac_top_build_prefix
20139
20140case $srcdir in
20141 .) # We are building in place.
20142 ac_srcdir=.
20143 ac_top_srcdir=$ac_top_builddir_sub
20144 ac_abs_top_srcdir=$ac_pwd ;;
20145 [\\/]* | ?:[\\/]* ) # Absolute name.
20146 ac_srcdir=$srcdir$ac_dir_suffix;
20147 ac_top_srcdir=$srcdir
20148 ac_abs_top_srcdir=$srcdir ;;
20149 *) # Relative name.
20150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20151 ac_top_srcdir=$ac_top_build_prefix$srcdir
20152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20153esac
20154ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20155
20156
20157 case $ac_mode in
20158 :F)
20159 #
20160 # CONFIG_FILE
20161 #
20162
20163 case $INSTALL in
20164 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20165 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20166 esac
20167 ac_MKDIR_P=$MKDIR_P
20168 case $MKDIR_P in
20169 [\\/$]* | ?:[\\/]* ) ;;
20170 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20171 esac
20172_ACEOF
20173
20174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20175# If the template does not know about datarootdir, expand it.
20176# FIXME: This hack should be removed a few years after 2.60.
20177ac_datarootdir_hack=; ac_datarootdir_seen=
20178ac_sed_dataroot='
20179/datarootdir/ {
20180 p
20181 q
20182}
20183/@datadir@/p
20184/@docdir@/p
20185/@infodir@/p
20186/@localedir@/p
20187/@mandir@/p'
20188case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20189*datarootdir*) ac_datarootdir_seen=yes;;
20190*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20192$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20193_ACEOF
20194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20195 ac_datarootdir_hack='
20196 s&@datadir@&$datadir&g
20197 s&@docdir@&$docdir&g
20198 s&@infodir@&$infodir&g
20199 s&@localedir@&$localedir&g
20200 s&@mandir@&$mandir&g
20201 s&\\\${datarootdir}&$datarootdir&g' ;;
20202esac
20203_ACEOF
20204
20205# Neutralize VPATH when `$srcdir' = `.'.
20206# Shell code in configure.ac might set extrasub.
20207# FIXME: do we really want to maintain this feature?
20208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20209ac_sed_extra="$ac_vpsub
20210$extrasub
20211_ACEOF
20212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20213:t
20214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20215s|@configure_input@|$ac_sed_conf_input|;t t
20216s&@top_builddir@&$ac_top_builddir_sub&;t t
20217s&@top_build_prefix@&$ac_top_build_prefix&;t t
20218s&@srcdir@&$ac_srcdir&;t t
20219s&@abs_srcdir@&$ac_abs_srcdir&;t t
20220s&@top_srcdir@&$ac_top_srcdir&;t t
20221s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20222s&@builddir@&$ac_builddir&;t t
20223s&@abs_builddir@&$ac_abs_builddir&;t t
20224s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20225s&@INSTALL@&$ac_INSTALL&;t t
20226s&@MKDIR_P@&$ac_MKDIR_P&;t t
20227$ac_datarootdir_hack
20228"
20229eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20230 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20231
20232test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20233 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20235 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20237which seems to be undefined. Please make sure it is defined" >&5
20238$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20239which seems to be undefined. Please make sure it is defined" >&2;}
20240
20241 rm -f "$ac_tmp/stdin"
20242 case $ac_file in
20243 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20244 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20245 esac \
20246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20247 ;;
20248 :H)
20249 #
20250 # CONFIG_HEADER
20251 #
20252 if test x"$ac_file" != x-; then
20253 {
20254 $as_echo "/* $configure_input */" \
20255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20256 } >"$ac_tmp/config.h" \
20257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20258 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20260$as_echo "$as_me: $ac_file is unchanged" >&6;}
20261 else
20262 rm -f "$ac_file"
20263 mv "$ac_tmp/config.h" "$ac_file" \
20264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20265 fi
20266 else
20267 $as_echo "/* $configure_input */" \
20268 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20269 || as_fn_error $? "could not create -" "$LINENO" 5
20270 fi
20271# Compute "$ac_file"'s index in $config_headers.
20272_am_arg="$ac_file"
20273_am_stamp_count=1
20274for _am_header in $config_headers :; do
20275 case $_am_header in
20276 $_am_arg | $_am_arg:* )
20277 break ;;
20278 * )
20279 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20280 esac
20281done
20282echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20283$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20284 X"$_am_arg" : 'X\(//\)[^/]' \| \
20285 X"$_am_arg" : 'X\(//\)$' \| \
20286 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20287$as_echo X"$_am_arg" |
20288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20289 s//\1/
20290 q
20291 }
20292 /^X\(\/\/\)[^/].*/{
20293 s//\1/
20294 q
20295 }
20296 /^X\(\/\/\)$/{
20297 s//\1/
20298 q
20299 }
20300 /^X\(\/\).*/{
20301 s//\1/
20302 q
20303 }
20304 s/.*/./; q'`/stamp-h$_am_stamp_count
20305 ;;
20306
20307 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20308$as_echo "$as_me: executing $ac_file commands" >&6;}
20309 ;;
20310 esac
20311
20312
20313 case $ac_file$ac_mode in
Jeff Thompsonb7523002013-10-09 10:25:00 -070020314 "ndn-cpp/ndn-cpp-config.h":C) ac_prefix_conf_OUT=`echo ndn-cpp/ndn-cpp-config.h`
20315ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
20316ac_prefix_conf_PKG=`echo $PACKAGE`
20317ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
20318ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
20319ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
20320if test ".$ac_prefix_conf_INP" = "."; then
20321 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
20322 case "$ac_file" in
20323 *.h) ac_prefix_conf_INP=$ac_file ;;
20324 *)
20325 esac
20326 test ".$ac_prefix_conf_INP" != "." && break
20327 done
20328fi
20329if test ".$ac_prefix_conf_INP" = "."; then
20330 case "$ac_prefix_conf_OUT" in
20331 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
20332 ;;
20333 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
20334 ;;
20335 *) ac_prefix_conf_INP=config.h
20336 ;;
20337 esac
20338fi
20339if test -z "$ac_prefix_conf_PKG" ; then
20340 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
20341else
20342 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
20343 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
20344 fi fi
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
20346$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
20347 if test -f $ac_prefix_conf_INP ; then
20348 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
20349 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
20350 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
20351 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
20352 $as_echo "#endif/" >> conftest.prefix
20353 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
20354 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
20355 $as_echo "#endif/" >> conftest.prefix
20356 # now executing _script on _DEF input to create _OUT output file
20357 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
20358 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
20359 echo ' ' >>$tmp/pconfig.h
20360 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
20361
20362 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
20363 echo ' ' >>$tmp/pconfig.h
20364 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
20365 echo "#endif" >>$tmp/pconfig.h
20366 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
20368$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
20369 else
20370 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
20371$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20372 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
20373 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
20374 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
20375$as_echo X"$ac_prefix_conf_OUT" |
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="$ac_dir"; as_fn_mkdir_p
20394 rm -f "$ac_prefix_conf_OUT"
20395 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
20396 fi
20397 cp conftest.prefix _configs.sed
20398 else
20399 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
20400 fi
20401 rm -f conftest.*
20402fi
20403 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020404 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20405 # Older Autoconf quotes --file arguments for eval, but not when files
20406 # are listed without --file. Let's play safe and only enable the eval
20407 # if we detect the quoting.
20408 case $CONFIG_FILES in
20409 *\'*) eval set x "$CONFIG_FILES" ;;
20410 *) set x $CONFIG_FILES ;;
20411 esac
20412 shift
20413 for mf
20414 do
20415 # Strip MF so we end up with the name of the file.
20416 mf=`echo "$mf" | sed -e 's/:.*$//'`
20417 # Check whether this is an Automake generated Makefile or not.
20418 # We used to match only the files named 'Makefile.in', but
20419 # some people rename them; so instead we look at the file content.
20420 # Grep'ing the first line is not enough: some people post-process
20421 # each Makefile.in and add a new line on top of each file to say so.
20422 # Grep'ing the whole file is not good either: AIX grep has a line
20423 # limit of 2048, but all sed's we know have understand at least 4000.
20424 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20425 dirpart=`$as_dirname -- "$mf" ||
20426$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20427 X"$mf" : 'X\(//\)[^/]' \| \
20428 X"$mf" : 'X\(//\)$' \| \
20429 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20430$as_echo X"$mf" |
20431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20432 s//\1/
20433 q
20434 }
20435 /^X\(\/\/\)[^/].*/{
20436 s//\1/
20437 q
20438 }
20439 /^X\(\/\/\)$/{
20440 s//\1/
20441 q
20442 }
20443 /^X\(\/\).*/{
20444 s//\1/
20445 q
20446 }
20447 s/.*/./; q'`
20448 else
20449 continue
20450 fi
20451 # Extract the definition of DEPDIR, am__include, and am__quote
20452 # from the Makefile without running 'make'.
20453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20454 test -z "$DEPDIR" && continue
20455 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20456 test -z "$am__include" && continue
20457 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20458 # Find all dependency output files, they are included files with
20459 # $(DEPDIR) in their names. We invoke sed twice because it is the
20460 # simplest approach to changing $(DEPDIR) to its actual value in the
20461 # expansion.
20462 for file in `sed -n "
20463 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20464 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20465 # Make sure the directory exists.
20466 test -f "$dirpart/$file" && continue
20467 fdir=`$as_dirname -- "$file" ||
20468$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20469 X"$file" : 'X\(//\)[^/]' \| \
20470 X"$file" : 'X\(//\)$' \| \
20471 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20472$as_echo X"$file" |
20473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20474 s//\1/
20475 q
20476 }
20477 /^X\(\/\/\)[^/].*/{
20478 s//\1/
20479 q
20480 }
20481 /^X\(\/\/\)$/{
20482 s//\1/
20483 q
20484 }
20485 /^X\(\/\).*/{
20486 s//\1/
20487 q
20488 }
20489 s/.*/./; q'`
20490 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20491 # echo "creating $dirpart/$file"
20492 echo '# dummy' > "$dirpart/$file"
20493 done
20494 done
20495}
20496 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070020497 "libtool":C)
20498
20499 # See if we are running on zsh, and set the options which allow our
20500 # commands through without removal of \ escapes.
20501 if test -n "${ZSH_VERSION+set}" ; then
20502 setopt NO_GLOB_SUBST
20503 fi
20504
20505 cfgfile="${ofile}T"
20506 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20507 $RM "$cfgfile"
20508
20509 cat <<_LT_EOF >> "$cfgfile"
20510#! $SHELL
20511
20512# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20513# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20514# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20515# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20516#
20517# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20518# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20519# Foundation, Inc.
20520# Written by Gordon Matzigkeit, 1996
20521#
20522# This file is part of GNU Libtool.
20523#
20524# GNU Libtool is free software; you can redistribute it and/or
20525# modify it under the terms of the GNU General Public License as
20526# published by the Free Software Foundation; either version 2 of
20527# the License, or (at your option) any later version.
20528#
20529# As a special exception to the GNU General Public License,
20530# if you distribute this file as part of a program or library that
20531# is built using GNU Libtool, you may include this file under the
20532# same distribution terms that you use for the rest of that program.
20533#
20534# GNU Libtool is distributed in the hope that it will be useful,
20535# but WITHOUT ANY WARRANTY; without even the implied warranty of
20536# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20537# GNU General Public License for more details.
20538#
20539# You should have received a copy of the GNU General Public License
20540# along with GNU Libtool; see the file COPYING. If not, a copy
20541# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20542# obtained by writing to the Free Software Foundation, Inc.,
20543# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20544
20545
20546# The names of the tagged configurations supported by this script.
20547available_tags="CXX "
20548
20549# ### BEGIN LIBTOOL CONFIG
20550
20551# Which release of libtool.m4 was used?
20552macro_version=$macro_version
20553macro_revision=$macro_revision
20554
20555# Whether or not to build shared libraries.
20556build_libtool_libs=$enable_shared
20557
20558# Whether or not to build static libraries.
20559build_old_libs=$enable_static
20560
20561# What type of objects to build.
20562pic_mode=$pic_mode
20563
20564# Whether or not to optimize for fast installation.
20565fast_install=$enable_fast_install
20566
20567# Shell to use when invoking shell scripts.
20568SHELL=$lt_SHELL
20569
20570# An echo program that protects backslashes.
20571ECHO=$lt_ECHO
20572
20573# The PATH separator for the build system.
20574PATH_SEPARATOR=$lt_PATH_SEPARATOR
20575
20576# The host system.
20577host_alias=$host_alias
20578host=$host
20579host_os=$host_os
20580
20581# The build system.
20582build_alias=$build_alias
20583build=$build
20584build_os=$build_os
20585
20586# A sed program that does not truncate output.
20587SED=$lt_SED
20588
20589# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20590Xsed="\$SED -e 1s/^X//"
20591
20592# A grep program that handles long lines.
20593GREP=$lt_GREP
20594
20595# An ERE matcher.
20596EGREP=$lt_EGREP
20597
20598# A literal string matcher.
20599FGREP=$lt_FGREP
20600
20601# A BSD- or MS-compatible name lister.
20602NM=$lt_NM
20603
20604# Whether we need soft or hard links.
20605LN_S=$lt_LN_S
20606
20607# What is the maximum length of a command?
20608max_cmd_len=$max_cmd_len
20609
20610# Object file suffix (normally "o").
20611objext=$ac_objext
20612
20613# Executable file suffix (normally "").
20614exeext=$exeext
20615
20616# whether the shell understands "unset".
20617lt_unset=$lt_unset
20618
20619# turn spaces into newlines.
20620SP2NL=$lt_lt_SP2NL
20621
20622# turn newlines into spaces.
20623NL2SP=$lt_lt_NL2SP
20624
20625# convert \$build file names to \$host format.
20626to_host_file_cmd=$lt_cv_to_host_file_cmd
20627
20628# convert \$build files to toolchain format.
20629to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20630
20631# An object symbol dumper.
20632OBJDUMP=$lt_OBJDUMP
20633
20634# Method to check whether dependent libraries are shared objects.
20635deplibs_check_method=$lt_deplibs_check_method
20636
20637# Command to use when deplibs_check_method = "file_magic".
20638file_magic_cmd=$lt_file_magic_cmd
20639
20640# How to find potential files when deplibs_check_method = "file_magic".
20641file_magic_glob=$lt_file_magic_glob
20642
20643# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20644want_nocaseglob=$lt_want_nocaseglob
20645
20646# DLL creation program.
20647DLLTOOL=$lt_DLLTOOL
20648
20649# Command to associate shared and link libraries.
20650sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20651
20652# The archiver.
20653AR=$lt_AR
20654
20655# Flags to create an archive.
20656AR_FLAGS=$lt_AR_FLAGS
20657
20658# How to feed a file listing to the archiver.
20659archiver_list_spec=$lt_archiver_list_spec
20660
20661# A symbol stripping program.
20662STRIP=$lt_STRIP
20663
20664# Commands used to install an old-style archive.
20665RANLIB=$lt_RANLIB
20666old_postinstall_cmds=$lt_old_postinstall_cmds
20667old_postuninstall_cmds=$lt_old_postuninstall_cmds
20668
20669# Whether to use a lock for old archive extraction.
20670lock_old_archive_extraction=$lock_old_archive_extraction
20671
20672# A C compiler.
20673LTCC=$lt_CC
20674
20675# LTCC compiler flags.
20676LTCFLAGS=$lt_CFLAGS
20677
20678# Take the output of nm and produce a listing of raw symbols and C names.
20679global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20680
20681# Transform the output of nm in a proper C declaration.
20682global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20683
20684# Transform the output of nm in a C name address pair.
20685global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20686
20687# Transform the output of nm in a C name address pair when lib prefix is needed.
20688global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20689
20690# Specify filename containing input files for \$NM.
20691nm_file_list_spec=$lt_nm_file_list_spec
20692
20693# The root where to search for dependent libraries,and in which our libraries should be installed.
20694lt_sysroot=$lt_sysroot
20695
20696# The name of the directory that contains temporary libtool files.
20697objdir=$objdir
20698
20699# Used to examine libraries when file_magic_cmd begins with "file".
20700MAGIC_CMD=$MAGIC_CMD
20701
20702# Must we lock files when doing compilation?
20703need_locks=$lt_need_locks
20704
20705# Manifest tool.
20706MANIFEST_TOOL=$lt_MANIFEST_TOOL
20707
20708# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20709DSYMUTIL=$lt_DSYMUTIL
20710
20711# Tool to change global to local symbols on Mac OS X.
20712NMEDIT=$lt_NMEDIT
20713
20714# Tool to manipulate fat objects and archives on Mac OS X.
20715LIPO=$lt_LIPO
20716
20717# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20718OTOOL=$lt_OTOOL
20719
20720# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20721OTOOL64=$lt_OTOOL64
20722
20723# Old archive suffix (normally "a").
20724libext=$libext
20725
20726# Shared library suffix (normally ".so").
20727shrext_cmds=$lt_shrext_cmds
20728
20729# The commands to extract the exported symbol list from a shared archive.
20730extract_expsyms_cmds=$lt_extract_expsyms_cmds
20731
20732# Variables whose values should be saved in libtool wrapper scripts and
20733# restored at link time.
20734variables_saved_for_relink=$lt_variables_saved_for_relink
20735
20736# Do we need the "lib" prefix for modules?
20737need_lib_prefix=$need_lib_prefix
20738
20739# Do we need a version for libraries?
20740need_version=$need_version
20741
20742# Library versioning type.
20743version_type=$version_type
20744
20745# Shared library runtime path variable.
20746runpath_var=$runpath_var
20747
20748# Shared library path variable.
20749shlibpath_var=$shlibpath_var
20750
20751# Is shlibpath searched before the hard-coded library search path?
20752shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20753
20754# Format of library name prefix.
20755libname_spec=$lt_libname_spec
20756
20757# List of archive names. First name is the real one, the rest are links.
20758# The last name is the one that the linker finds with -lNAME
20759library_names_spec=$lt_library_names_spec
20760
20761# The coded name of the library, if different from the real name.
20762soname_spec=$lt_soname_spec
20763
20764# Permission mode override for installation of shared libraries.
20765install_override_mode=$lt_install_override_mode
20766
20767# Command to use after installation of a shared archive.
20768postinstall_cmds=$lt_postinstall_cmds
20769
20770# Command to use after uninstallation of a shared archive.
20771postuninstall_cmds=$lt_postuninstall_cmds
20772
20773# Commands used to finish a libtool library installation in a directory.
20774finish_cmds=$lt_finish_cmds
20775
20776# As "finish_cmds", except a single script fragment to be evaled but
20777# not shown.
20778finish_eval=$lt_finish_eval
20779
20780# Whether we should hardcode library paths into libraries.
20781hardcode_into_libs=$hardcode_into_libs
20782
20783# Compile-time system search path for libraries.
20784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20785
20786# Run-time system search path for libraries.
20787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20788
20789# Whether dlopen is supported.
20790dlopen_support=$enable_dlopen
20791
20792# Whether dlopen of programs is supported.
20793dlopen_self=$enable_dlopen_self
20794
20795# Whether dlopen of statically linked programs is supported.
20796dlopen_self_static=$enable_dlopen_self_static
20797
20798# Commands to strip libraries.
20799old_striplib=$lt_old_striplib
20800striplib=$lt_striplib
20801
20802
20803# The linker used to build libraries.
20804LD=$lt_LD
20805
20806# How to create reloadable object files.
20807reload_flag=$lt_reload_flag
20808reload_cmds=$lt_reload_cmds
20809
20810# Commands used to build an old-style archive.
20811old_archive_cmds=$lt_old_archive_cmds
20812
20813# A language specific compiler.
20814CC=$lt_compiler
20815
20816# Is the compiler the GNU compiler?
20817with_gcc=$GCC
20818
20819# Compiler flag to turn off builtin functions.
20820no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20821
20822# Additional compiler flags for building library objects.
20823pic_flag=$lt_lt_prog_compiler_pic
20824
20825# How to pass a linker flag through the compiler.
20826wl=$lt_lt_prog_compiler_wl
20827
20828# Compiler flag to prevent dynamic linking.
20829link_static_flag=$lt_lt_prog_compiler_static
20830
20831# Does compiler simultaneously support -c and -o options?
20832compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20833
20834# Whether or not to add -lc for building shared libraries.
20835build_libtool_need_lc=$archive_cmds_need_lc
20836
20837# Whether or not to disallow shared libs when runtime libs are static.
20838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20839
20840# Compiler flag to allow reflexive dlopens.
20841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20842
20843# Compiler flag to generate shared objects directly from archives.
20844whole_archive_flag_spec=$lt_whole_archive_flag_spec
20845
20846# Whether the compiler copes with passing no objects directly.
20847compiler_needs_object=$lt_compiler_needs_object
20848
20849# Create an old-style archive from a shared archive.
20850old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20851
20852# Create a temporary old-style archive to link instead of a shared archive.
20853old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20854
20855# Commands used to build a shared archive.
20856archive_cmds=$lt_archive_cmds
20857archive_expsym_cmds=$lt_archive_expsym_cmds
20858
20859# Commands used to build a loadable module if different from building
20860# a shared archive.
20861module_cmds=$lt_module_cmds
20862module_expsym_cmds=$lt_module_expsym_cmds
20863
20864# Whether we are building with GNU ld or not.
20865with_gnu_ld=$lt_with_gnu_ld
20866
20867# Flag that allows shared libraries with undefined symbols to be built.
20868allow_undefined_flag=$lt_allow_undefined_flag
20869
20870# Flag that enforces no undefined symbols.
20871no_undefined_flag=$lt_no_undefined_flag
20872
20873# Flag to hardcode \$libdir into a binary during linking.
20874# This must work even if \$libdir does not exist
20875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20876
20877# Whether we need a single "-rpath" flag with a separated argument.
20878hardcode_libdir_separator=$lt_hardcode_libdir_separator
20879
20880# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20881# DIR into the resulting binary.
20882hardcode_direct=$hardcode_direct
20883
20884# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20885# DIR into the resulting binary and the resulting library dependency is
20886# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20887# library is relocated.
20888hardcode_direct_absolute=$hardcode_direct_absolute
20889
20890# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20891# into the resulting binary.
20892hardcode_minus_L=$hardcode_minus_L
20893
20894# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20895# into the resulting binary.
20896hardcode_shlibpath_var=$hardcode_shlibpath_var
20897
20898# Set to "yes" if building a shared library automatically hardcodes DIR
20899# into the library and all subsequent libraries and executables linked
20900# against it.
20901hardcode_automatic=$hardcode_automatic
20902
20903# Set to yes if linker adds runtime paths of dependent libraries
20904# to runtime path list.
20905inherit_rpath=$inherit_rpath
20906
20907# Whether libtool must link a program against all its dependency libraries.
20908link_all_deplibs=$link_all_deplibs
20909
20910# Set to "yes" if exported symbols are required.
20911always_export_symbols=$always_export_symbols
20912
20913# The commands to list exported symbols.
20914export_symbols_cmds=$lt_export_symbols_cmds
20915
20916# Symbols that should not be listed in the preloaded symbols.
20917exclude_expsyms=$lt_exclude_expsyms
20918
20919# Symbols that must always be exported.
20920include_expsyms=$lt_include_expsyms
20921
20922# Commands necessary for linking programs (against libraries) with templates.
20923prelink_cmds=$lt_prelink_cmds
20924
20925# Commands necessary for finishing linking programs.
20926postlink_cmds=$lt_postlink_cmds
20927
20928# Specify filename containing input files.
20929file_list_spec=$lt_file_list_spec
20930
20931# How to hardcode a shared library path into an executable.
20932hardcode_action=$hardcode_action
20933
20934# The directories searched by this compiler when creating a shared library.
20935compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20936
20937# Dependencies to place before and after the objects being linked to
20938# create a shared library.
20939predep_objects=$lt_predep_objects
20940postdep_objects=$lt_postdep_objects
20941predeps=$lt_predeps
20942postdeps=$lt_postdeps
20943
20944# The library search path used internally by the compiler when linking
20945# a shared library.
20946compiler_lib_search_path=$lt_compiler_lib_search_path
20947
20948# ### END LIBTOOL CONFIG
20949
20950_LT_EOF
20951
20952 case $host_os in
20953 aix3*)
20954 cat <<\_LT_EOF >> "$cfgfile"
20955# AIX sometimes has problems with the GCC collect2 program. For some
20956# reason, if we set the COLLECT_NAMES environment variable, the problems
20957# vanish in a puff of smoke.
20958if test "X${COLLECT_NAMES+set}" != Xset; then
20959 COLLECT_NAMES=
20960 export COLLECT_NAMES
20961fi
20962_LT_EOF
20963 ;;
20964 esac
20965
20966
20967ltmain="$ac_aux_dir/ltmain.sh"
20968
20969
20970 # We use sed instead of cat because bash on DJGPP gets confused if
20971 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20972 # text mode, it properly converts lines to CR/LF. This bash problem
20973 # is reportedly fixed, but why not run on old versions too?
20974 sed '$q' "$ltmain" >> "$cfgfile" \
20975 || (rm -f "$cfgfile"; exit 1)
20976
20977 if test x"$xsi_shell" = xyes; then
20978 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20979func_dirname ()\
20980{\
20981\ case ${1} in\
20982\ */*) func_dirname_result="${1%/*}${2}" ;;\
20983\ * ) func_dirname_result="${3}" ;;\
20984\ esac\
20985} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20986 && mv -f "$cfgfile.tmp" "$cfgfile" \
20987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20988test 0 -eq $? || _lt_function_replace_fail=:
20989
20990
20991 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20992func_basename ()\
20993{\
20994\ func_basename_result="${1##*/}"\
20995} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20996 && mv -f "$cfgfile.tmp" "$cfgfile" \
20997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20998test 0 -eq $? || _lt_function_replace_fail=:
20999
21000
21001 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21002func_dirname_and_basename ()\
21003{\
21004\ case ${1} in\
21005\ */*) func_dirname_result="${1%/*}${2}" ;;\
21006\ * ) func_dirname_result="${3}" ;;\
21007\ esac\
21008\ func_basename_result="${1##*/}"\
21009} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21010 && mv -f "$cfgfile.tmp" "$cfgfile" \
21011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21012test 0 -eq $? || _lt_function_replace_fail=:
21013
21014
21015 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21016func_stripname ()\
21017{\
21018\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21019\ # positional parameters, so assign one to ordinary parameter first.\
21020\ func_stripname_result=${3}\
21021\ func_stripname_result=${func_stripname_result#"${1}"}\
21022\ func_stripname_result=${func_stripname_result%"${2}"}\
21023} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21024 && mv -f "$cfgfile.tmp" "$cfgfile" \
21025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21026test 0 -eq $? || _lt_function_replace_fail=:
21027
21028
21029 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21030func_split_long_opt ()\
21031{\
21032\ func_split_long_opt_name=${1%%=*}\
21033\ func_split_long_opt_arg=${1#*=}\
21034} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21035 && mv -f "$cfgfile.tmp" "$cfgfile" \
21036 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21037test 0 -eq $? || _lt_function_replace_fail=:
21038
21039
21040 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21041func_split_short_opt ()\
21042{\
21043\ func_split_short_opt_arg=${1#??}\
21044\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21045} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21046 && mv -f "$cfgfile.tmp" "$cfgfile" \
21047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21048test 0 -eq $? || _lt_function_replace_fail=:
21049
21050
21051 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21052func_lo2o ()\
21053{\
21054\ case ${1} in\
21055\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21056\ *) func_lo2o_result=${1} ;;\
21057\ esac\
21058} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21059 && mv -f "$cfgfile.tmp" "$cfgfile" \
21060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21061test 0 -eq $? || _lt_function_replace_fail=:
21062
21063
21064 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21065func_xform ()\
21066{\
21067 func_xform_result=${1%.*}.lo\
21068} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21069 && mv -f "$cfgfile.tmp" "$cfgfile" \
21070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21071test 0 -eq $? || _lt_function_replace_fail=:
21072
21073
21074 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21075func_arith ()\
21076{\
21077 func_arith_result=$(( $* ))\
21078} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21079 && mv -f "$cfgfile.tmp" "$cfgfile" \
21080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21081test 0 -eq $? || _lt_function_replace_fail=:
21082
21083
21084 sed -e '/^func_len ()$/,/^} # func_len /c\
21085func_len ()\
21086{\
21087 func_len_result=${#1}\
21088} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21089 && mv -f "$cfgfile.tmp" "$cfgfile" \
21090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21091test 0 -eq $? || _lt_function_replace_fail=:
21092
21093fi
21094
21095if test x"$lt_shell_append" = xyes; then
21096 sed -e '/^func_append ()$/,/^} # func_append /c\
21097func_append ()\
21098{\
21099 eval "${1}+=\\${2}"\
21100} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21101 && mv -f "$cfgfile.tmp" "$cfgfile" \
21102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21103test 0 -eq $? || _lt_function_replace_fail=:
21104
21105
21106 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21107func_append_quoted ()\
21108{\
21109\ func_quote_for_eval "${2}"\
21110\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21111} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21112 && mv -f "$cfgfile.tmp" "$cfgfile" \
21113 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21114test 0 -eq $? || _lt_function_replace_fail=:
21115
21116
21117 # Save a `func_append' function call where possible by direct use of '+='
21118 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21119 && mv -f "$cfgfile.tmp" "$cfgfile" \
21120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21121 test 0 -eq $? || _lt_function_replace_fail=:
21122else
21123 # Save a `func_append' function call even when '+=' is not available
21124 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21125 && mv -f "$cfgfile.tmp" "$cfgfile" \
21126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21127 test 0 -eq $? || _lt_function_replace_fail=:
21128fi
21129
21130if test x"$_lt_function_replace_fail" = x":"; then
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21132$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21133fi
21134
21135
21136 mv -f "$cfgfile" "$ofile" ||
21137 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21138 chmod +x "$ofile"
21139
21140
21141 cat <<_LT_EOF >> "$ofile"
21142
21143# ### BEGIN LIBTOOL TAG CONFIG: CXX
21144
21145# The linker used to build libraries.
21146LD=$lt_LD_CXX
21147
21148# How to create reloadable object files.
21149reload_flag=$lt_reload_flag_CXX
21150reload_cmds=$lt_reload_cmds_CXX
21151
21152# Commands used to build an old-style archive.
21153old_archive_cmds=$lt_old_archive_cmds_CXX
21154
21155# A language specific compiler.
21156CC=$lt_compiler_CXX
21157
21158# Is the compiler the GNU compiler?
21159with_gcc=$GCC_CXX
21160
21161# Compiler flag to turn off builtin functions.
21162no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21163
21164# Additional compiler flags for building library objects.
21165pic_flag=$lt_lt_prog_compiler_pic_CXX
21166
21167# How to pass a linker flag through the compiler.
21168wl=$lt_lt_prog_compiler_wl_CXX
21169
21170# Compiler flag to prevent dynamic linking.
21171link_static_flag=$lt_lt_prog_compiler_static_CXX
21172
21173# Does compiler simultaneously support -c and -o options?
21174compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21175
21176# Whether or not to add -lc for building shared libraries.
21177build_libtool_need_lc=$archive_cmds_need_lc_CXX
21178
21179# Whether or not to disallow shared libs when runtime libs are static.
21180allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21181
21182# Compiler flag to allow reflexive dlopens.
21183export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21184
21185# Compiler flag to generate shared objects directly from archives.
21186whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21187
21188# Whether the compiler copes with passing no objects directly.
21189compiler_needs_object=$lt_compiler_needs_object_CXX
21190
21191# Create an old-style archive from a shared archive.
21192old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21193
21194# Create a temporary old-style archive to link instead of a shared archive.
21195old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21196
21197# Commands used to build a shared archive.
21198archive_cmds=$lt_archive_cmds_CXX
21199archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21200
21201# Commands used to build a loadable module if different from building
21202# a shared archive.
21203module_cmds=$lt_module_cmds_CXX
21204module_expsym_cmds=$lt_module_expsym_cmds_CXX
21205
21206# Whether we are building with GNU ld or not.
21207with_gnu_ld=$lt_with_gnu_ld_CXX
21208
21209# Flag that allows shared libraries with undefined symbols to be built.
21210allow_undefined_flag=$lt_allow_undefined_flag_CXX
21211
21212# Flag that enforces no undefined symbols.
21213no_undefined_flag=$lt_no_undefined_flag_CXX
21214
21215# Flag to hardcode \$libdir into a binary during linking.
21216# This must work even if \$libdir does not exist
21217hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21218
21219# Whether we need a single "-rpath" flag with a separated argument.
21220hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21221
21222# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21223# DIR into the resulting binary.
21224hardcode_direct=$hardcode_direct_CXX
21225
21226# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21227# DIR into the resulting binary and the resulting library dependency is
21228# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21229# library is relocated.
21230hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21231
21232# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21233# into the resulting binary.
21234hardcode_minus_L=$hardcode_minus_L_CXX
21235
21236# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21237# into the resulting binary.
21238hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21239
21240# Set to "yes" if building a shared library automatically hardcodes DIR
21241# into the library and all subsequent libraries and executables linked
21242# against it.
21243hardcode_automatic=$hardcode_automatic_CXX
21244
21245# Set to yes if linker adds runtime paths of dependent libraries
21246# to runtime path list.
21247inherit_rpath=$inherit_rpath_CXX
21248
21249# Whether libtool must link a program against all its dependency libraries.
21250link_all_deplibs=$link_all_deplibs_CXX
21251
21252# Set to "yes" if exported symbols are required.
21253always_export_symbols=$always_export_symbols_CXX
21254
21255# The commands to list exported symbols.
21256export_symbols_cmds=$lt_export_symbols_cmds_CXX
21257
21258# Symbols that should not be listed in the preloaded symbols.
21259exclude_expsyms=$lt_exclude_expsyms_CXX
21260
21261# Symbols that must always be exported.
21262include_expsyms=$lt_include_expsyms_CXX
21263
21264# Commands necessary for linking programs (against libraries) with templates.
21265prelink_cmds=$lt_prelink_cmds_CXX
21266
21267# Commands necessary for finishing linking programs.
21268postlink_cmds=$lt_postlink_cmds_CXX
21269
21270# Specify filename containing input files.
21271file_list_spec=$lt_file_list_spec_CXX
21272
21273# How to hardcode a shared library path into an executable.
21274hardcode_action=$hardcode_action_CXX
21275
21276# The directories searched by this compiler when creating a shared library.
21277compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21278
21279# Dependencies to place before and after the objects being linked to
21280# create a shared library.
21281predep_objects=$lt_predep_objects_CXX
21282postdep_objects=$lt_postdep_objects_CXX
21283predeps=$lt_predeps_CXX
21284postdeps=$lt_postdeps_CXX
21285
21286# The library search path used internally by the compiler when linking
21287# a shared library.
21288compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21289
21290# ### END LIBTOOL TAG CONFIG: CXX
21291_LT_EOF
21292
21293 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070021294
21295 esac
21296done # for ac_tag
21297
21298
21299as_fn_exit 0
21300_ACEOF
21301ac_clean_files=$ac_clean_files_save
21302
21303test $ac_write_fail = 0 ||
21304 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21305
21306
21307# configure is writing to config.log, and then calls config.status.
21308# config.status does its own redirection, appending to config.log.
21309# Unfortunately, on DOS this fails, as config.log is still kept open
21310# by configure, so config.status won't be able to write to it; its
21311# output is simply discarded. So we exec the FD to /dev/null,
21312# effectively closing config.log, so it can be properly (re)opened and
21313# appended to by config.status. When coming back to configure, we
21314# need to make the FD available again.
21315if test "$no_create" != yes; then
21316 ac_cs_success=:
21317 ac_config_status_args=
21318 test "$silent" = yes &&
21319 ac_config_status_args="$ac_config_status_args --quiet"
21320 exec 5>/dev/null
21321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21322 exec 5>>config.log
21323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21324 # would make configure fail if this is the last instruction.
21325 $ac_cs_success || as_fn_exit 1
21326fi
21327if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21329$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21330fi
21331