blob: c179520fed6955eab5ebf65f02a6cc6e1a8395b9 [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 Thompson965a3242013-10-02 09:59:35 -0700685SQLITE3_VERSION
686SQLITE3_LDFLAGS
687SQLITE3_CFLAGS
Jeff Thompsond0f62e12013-10-09 17:41:25 -0700688HAVE_CXX11
Jeff Thompson965a3242013-10-02 09:59:35 -0700689am__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 Thompson23cb7422013-10-09 16:11:47 -07003233
Jeff Thompsonb7523002013-10-09 10:25:00 -07003234# Create config.h without prefixes.
3235ac_config_headers="$ac_config_headers config.h"
3236
3237# Add prefixes and output to a unique file name.
3238
3239ac_config_commands="$ac_config_commands ndn-cpp/ndn-cpp-config.h"
Jeff Thompson39128c62013-06-19 14:08:51 -07003240
Jeff Thompson47053ad2013-08-05 10:36:53 -07003241
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3243$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3244 # Check whether --enable-maintainer-mode was given.
3245if test "${enable_maintainer_mode+set}" = set; then :
3246 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3247else
3248 USE_MAINTAINER_MODE=no
3249fi
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3252$as_echo "$USE_MAINTAINER_MODE" >&6; }
3253 if test $USE_MAINTAINER_MODE = yes; then
3254 MAINTAINER_MODE_TRUE=
3255 MAINTAINER_MODE_FALSE='#'
3256else
3257 MAINTAINER_MODE_TRUE='#'
3258 MAINTAINER_MODE_FALSE=
3259fi
3260
3261 MAINT=$MAINTAINER_MODE_TRUE
3262
3263
Jeff Thompson39128c62013-06-19 14:08:51 -07003264DEPDIR="${am__leading_dot}deps"
3265
3266ac_config_commands="$ac_config_commands depfiles"
3267
3268
3269am_make=${MAKE-make}
3270cat > confinc << 'END'
3271am__doit:
3272 @echo this is the am__doit target
3273.PHONY: am__doit
3274END
3275# If we don't find an include directive, just comment out the code.
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3277$as_echo_n "checking for style of include used by $am_make... " >&6; }
3278am__include="#"
3279am__quote=
3280_am_result=none
3281# First try GNU make style include.
3282echo "include confinc" > confmf
3283# Ignore all kinds of additional output from 'make'.
3284case `$am_make -s -f confmf 2> /dev/null` in #(
3285*the\ am__doit\ target*)
3286 am__include=include
3287 am__quote=
3288 _am_result=GNU
3289 ;;
3290esac
3291# Now try BSD make style include.
3292if test "$am__include" = "#"; then
3293 echo '.include "confinc"' > confmf
3294 case `$am_make -s -f confmf 2> /dev/null` in #(
3295 *the\ am__doit\ target*)
3296 am__include=.include
3297 am__quote="\""
3298 _am_result=BSD
3299 ;;
3300 esac
3301fi
3302
3303
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3305$as_echo "$_am_result" >&6; }
3306rm -f confinc confmf
3307
3308# Check whether --enable-dependency-tracking was given.
3309if test "${enable_dependency_tracking+set}" = set; then :
3310 enableval=$enable_dependency_tracking;
3311fi
3312
3313if test "x$enable_dependency_tracking" != xno; then
3314 am_depcomp="$ac_aux_dir/depcomp"
3315 AMDEPBACKSLASH='\'
3316 am__nodep='_no'
3317fi
3318 if test "x$enable_dependency_tracking" != xno; then
3319 AMDEP_TRUE=
3320 AMDEP_FALSE='#'
3321else
3322 AMDEP_TRUE='#'
3323 AMDEP_FALSE=
3324fi
3325
3326
Jeff Thompson36174062013-06-21 16:03:44 -07003327ac_ext=c
3328ac_cpp='$CPP $CPPFLAGS'
3329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3334set dummy ${ac_tool_prefix}gcc; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if ${ac_cv_prog_CC+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339else
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354done
3355 done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360CC=$ac_cv_prog_CC
3361if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363$as_echo "$CC" >&6; }
3364else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369
3370fi
3371if test -z "$ac_cv_prog_CC"; then
3372 ac_ct_CC=$CC
3373 # Extract the first word of "gcc", so it can be a program name with args.
3374set dummy gcc; ac_word=$2
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376$as_echo_n "checking for $ac_word... " >&6; }
3377if ${ac_cv_prog_ac_ct_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379else
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="gcc"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394done
3395 done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401if test -n "$ac_ct_CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403$as_echo "$ac_ct_CC" >&6; }
3404else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406$as_echo "no" >&6; }
3407fi
3408
3409 if test "x$ac_ct_CC" = x; then
3410 CC=""
3411 else
3412 case $cross_compiling:$ac_tool_warned in
3413yes:)
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416ac_tool_warned=yes ;;
3417esac
3418 CC=$ac_ct_CC
3419 fi
3420else
3421 CC="$ac_cv_prog_CC"
3422fi
3423
3424if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3427set dummy ${ac_tool_prefix}cc; ac_word=$2
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; }
3430if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432else
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_CC="${ac_tool_prefix}cc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447done
3448 done
3449IFS=$as_save_IFS
3450
3451fi
3452fi
3453CC=$ac_cv_prog_CC
3454if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456$as_echo "$CC" >&6; }
3457else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
3460fi
3461
3462
3463 fi
3464fi
3465if test -z "$CC"; then
3466 # Extract the first word of "cc", so it can be a program name with args.
3467set dummy cc; ac_word=$2
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469$as_echo_n "checking for $ac_word... " >&6; }
3470if ${ac_cv_prog_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475else
3476 ac_prog_rejected=no
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3485 ac_prog_rejected=yes
3486 continue
3487 fi
3488 ac_cv_prog_CC="cc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492done
3493 done
3494IFS=$as_save_IFS
3495
3496if test $ac_prog_rejected = yes; then
3497 # We found a bogon in the path, so make sure we never use it.
3498 set dummy $ac_cv_prog_CC
3499 shift
3500 if test $# != 0; then
3501 # We chose a different compiler from the bogus one.
3502 # However, it has the same basename, so the bogon will be chosen
3503 # first if we set CC to just the basename; use the full file name.
3504 shift
3505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3506 fi
3507fi
3508fi
3509fi
3510CC=$ac_cv_prog_CC
3511if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513$as_echo "$CC" >&6; }
3514else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516$as_echo "no" >&6; }
3517fi
3518
3519
3520fi
3521if test -z "$CC"; then
3522 if test -n "$ac_tool_prefix"; then
3523 for ac_prog in cl.exe
3524 do
3525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528$as_echo_n "checking for $ac_word... " >&6; }
3529if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531else
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3534else
3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546done
3547 done
3548IFS=$as_save_IFS
3549
3550fi
3551fi
3552CC=$ac_cv_prog_CC
3553if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555$as_echo "$CC" >&6; }
3556else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558$as_echo "no" >&6; }
3559fi
3560
3561
3562 test -n "$CC" && break
3563 done
3564fi
3565if test -z "$CC"; then
3566 ac_ct_CC=$CC
3567 for ac_prog in cl.exe
3568do
3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3570set dummy $ac_prog; ac_word=$2
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572$as_echo_n "checking for $ac_word... " >&6; }
3573if ${ac_cv_prog_ac_ct_CC+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575else
3576 if test -n "$ac_ct_CC"; then
3577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3578else
3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_ac_ct_CC="$ac_prog"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3589 fi
3590done
3591 done
3592IFS=$as_save_IFS
3593
3594fi
3595fi
3596ac_ct_CC=$ac_cv_prog_ac_ct_CC
3597if test -n "$ac_ct_CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3599$as_echo "$ac_ct_CC" >&6; }
3600else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602$as_echo "no" >&6; }
3603fi
3604
3605
3606 test -n "$ac_ct_CC" && break
3607done
3608
3609 if test "x$ac_ct_CC" = x; then
3610 CC=""
3611 else
3612 case $cross_compiling:$ac_tool_warned in
3613yes:)
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616ac_tool_warned=yes ;;
3617esac
3618 CC=$ac_ct_CC
3619 fi
3620fi
3621
3622fi
3623
3624
3625test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627as_fn_error $? "no acceptable C compiler found in \$PATH
3628See \`config.log' for more details" "$LINENO" 5; }
3629
3630# Provide some information about the compiler.
3631$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3632set X $ac_compile
3633ac_compiler=$2
3634for ac_option in --version -v -V -qversion; do
3635 { { ac_try="$ac_compiler $ac_option >&5"
3636case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639esac
3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641$as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3643 ac_status=$?
3644 if test -s conftest.err; then
3645 sed '10a\
3646... rest of stderr output deleted ...
3647 10q' conftest.err >conftest.er1
3648 cat conftest.er1 >&5
3649 fi
3650 rm -f conftest.er1 conftest.err
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3653done
3654
Jeff Thompson4f031642013-08-05 11:03:16 -07003655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h. */
3657
3658int
3659main ()
3660{
3661
3662 ;
3663 return 0;
3664}
3665_ACEOF
3666ac_clean_files_save=$ac_clean_files
3667ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3668# Try to create an executable without -o first, disregard a.out.
3669# It will help us diagnose broken compilers, and finding out an intuition
3670# of exeext.
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3672$as_echo_n "checking whether the C compiler works... " >&6; }
3673ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3674
3675# The possible output files:
3676ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3677
3678ac_rmfiles=
3679for ac_file in $ac_files
3680do
3681 case $ac_file in
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3684 esac
3685done
3686rm -f $ac_rmfiles
3687
3688if { { ac_try="$ac_link_default"
3689case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692esac
3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694$as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_link_default") 2>&5
3696 ac_status=$?
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3700# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3701# in a Makefile. We should not override ac_cv_exeext if it was cached,
3702# so that the user can short-circuit this test for compilers unknown to
3703# Autoconf.
3704for ac_file in $ac_files ''
3705do
3706 test -f "$ac_file" || continue
3707 case $ac_file in
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3709 ;;
3710 [ab].out )
3711 # We found the default executable, but exeext='' is most
3712 # certainly right.
3713 break;;
3714 *.* )
3715 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3716 then :; else
3717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3718 fi
3719 # We set ac_cv_exeext here because the later test for it is not
3720 # safe: cross compilers may not add the suffix if given an `-o'
3721 # argument, so we may need to know it at that point already.
3722 # Even if this section looks crufty: it has the advantage of
3723 # actually working.
3724 break;;
3725 * )
3726 break;;
3727 esac
3728done
3729test "$ac_cv_exeext" = no && ac_cv_exeext=
3730
3731else
3732 ac_file=''
3733fi
3734if test -z "$ac_file"; then :
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736$as_echo "no" >&6; }
3737$as_echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742as_fn_error 77 "C compiler cannot create executables
3743See \`config.log' for more details" "$LINENO" 5; }
3744else
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746$as_echo "yes" >&6; }
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3749$as_echo_n "checking for C compiler default output file name... " >&6; }
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3751$as_echo "$ac_file" >&6; }
3752ac_exeext=$ac_cv_exeext
3753
3754rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3755ac_clean_files=$ac_clean_files_save
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3757$as_echo_n "checking for suffix of executables... " >&6; }
3758if { { ac_try="$ac_link"
3759case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3762esac
3763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764$as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_link") 2>&5
3766 ac_status=$?
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }; then :
3769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3770# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3771# work properly (i.e., refer to `conftest.exe'), while it won't with
3772# `rm'.
3773for ac_file in conftest.exe conftest conftest.*; do
3774 test -f "$ac_file" || continue
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 break;;
3779 * ) break;;
3780 esac
3781done
3782else
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3786See \`config.log' for more details" "$LINENO" 5; }
3787fi
3788rm -f conftest conftest$ac_cv_exeext
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3790$as_echo "$ac_cv_exeext" >&6; }
3791
3792rm -f conftest.$ac_ext
3793EXEEXT=$ac_cv_exeext
3794ac_exeext=$EXEEXT
3795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h. */
3797#include <stdio.h>
3798int
3799main ()
3800{
3801FILE *f = fopen ("conftest.out", "w");
3802 return ferror (f) || fclose (f) != 0;
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
3808ac_clean_files="$ac_clean_files conftest.out"
3809# Check that the compiler produces executables we can run. If not, either
3810# the compiler is broken, or we cross compile.
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3812$as_echo_n "checking whether we are cross compiling... " >&6; }
3813if test "$cross_compiling" != yes; then
3814 { { ac_try="$ac_link"
3815case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818esac
3819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820$as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link") 2>&5
3822 ac_status=$?
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }
3825 if { ac_try='./conftest$ac_cv_exeext'
3826 { { case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831$as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_try") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; }; then
3836 cross_compiling=no
3837 else
3838 if test "$cross_compiling" = maybe; then
3839 cross_compiling=yes
3840 else
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error $? "cannot run C compiled programs.
3844If you meant to cross compile, use \`--host'.
3845See \`config.log' for more details" "$LINENO" 5; }
3846 fi
3847 fi
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3850$as_echo "$cross_compiling" >&6; }
3851
3852rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3853ac_clean_files=$ac_clean_files_save
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3855$as_echo_n "checking for suffix of object files... " >&6; }
3856if ${ac_cv_objext+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h. */
3861
3862int
3863main ()
3864{
3865
3866 ;
3867 return 0;
3868}
3869_ACEOF
3870rm -f conftest.o conftest.obj
3871if { { ac_try="$ac_compile"
3872case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875esac
3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877$as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_compile") 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 for ac_file in conftest.o conftest.obj conftest.*; do
3883 test -f "$ac_file" || continue;
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3887 break;;
3888 esac
3889done
3890else
3891 $as_echo "$as_me: failed program was:" >&5
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3894{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896as_fn_error $? "cannot compute suffix of object files: cannot compile
3897See \`config.log' for more details" "$LINENO" 5; }
3898fi
3899rm -f conftest.$ac_cv_objext conftest.$ac_ext
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3902$as_echo "$ac_cv_objext" >&6; }
3903OBJEXT=$ac_cv_objext
3904ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3906$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3907if ${ac_cv_c_compiler_gnu+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h. */
3912
3913int
3914main ()
3915{
3916#ifndef __GNUC__
3917 choke me
3918#endif
3919
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_compiler_gnu=yes
3926else
3927 ac_compiler_gnu=no
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930ac_cv_c_compiler_gnu=$ac_compiler_gnu
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3934$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3935if test $ac_compiler_gnu = yes; then
3936 GCC=yes
3937else
3938 GCC=
3939fi
3940ac_test_CFLAGS=${CFLAGS+set}
3941ac_save_CFLAGS=$CFLAGS
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3943$as_echo_n "checking whether $CC accepts -g... " >&6; }
3944if ${ac_cv_prog_cc_g+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946else
3947 ac_save_c_werror_flag=$ac_c_werror_flag
3948 ac_c_werror_flag=yes
3949 ac_cv_prog_cc_g=no
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953
3954int
3955main ()
3956{
3957
3958 ;
3959 return 0;
3960}
3961_ACEOF
3962if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3964else
3965 CFLAGS=""
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h. */
3968
3969int
3970main ()
3971{
3972
3973 ;
3974 return 0;
3975}
3976_ACEOF
3977if ac_fn_c_try_compile "$LINENO"; then :
3978
3979else
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3981 CFLAGS="-g"
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h. */
3984
3985int
3986main ()
3987{
3988
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_prog_cc_g=yes
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997fi
3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_c_werror_flag=$ac_save_c_werror_flag
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4004$as_echo "$ac_cv_prog_cc_g" >&6; }
4005if test "$ac_test_CFLAGS" = set; then
4006 CFLAGS=$ac_save_CFLAGS
4007elif test $ac_cv_prog_cc_g = yes; then
4008 if test "$GCC" = yes; then
4009 CFLAGS="-g -O2"
4010 else
4011 CFLAGS="-g"
4012 fi
4013else
4014 if test "$GCC" = yes; then
4015 CFLAGS="-O2"
4016 else
4017 CFLAGS=
4018 fi
4019fi
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4021$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4022if ${ac_cv_prog_cc_c89+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024else
4025 ac_cv_prog_cc_c89=no
4026ac_save_CC=$CC
4027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029#include <stdarg.h>
4030#include <stdio.h>
4031struct stat;
4032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4033struct buf { int x; };
4034FILE * (*rcsopen) (struct buf *, struct stat *, int);
4035static char *e (p, i)
4036 char **p;
4037 int i;
4038{
4039 return p[i];
4040}
4041static char *f (char * (*g) (char **, int), char **p, ...)
4042{
4043 char *s;
4044 va_list v;
4045 va_start (v,p);
4046 s = g (p, va_arg (v,int));
4047 va_end (v);
4048 return s;
4049}
4050
4051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4052 function prototypes and stuff, but not '\xHH' hex character constants.
4053 These don't provoke an error unfortunately, instead are silently treated
4054 as 'x'. The following induces an error, until -std is added to get
4055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4056 array size at least. It's necessary to write '\x00'==0 to get something
4057 that's true only with -std. */
4058int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4059
4060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4061 inside strings and character constants. */
4062#define FOO(x) 'x'
4063int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4064
4065int test (int i, double x);
4066struct s1 {int (*f) (int a);};
4067struct s2 {int (*f) (double a);};
4068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4069int argc;
4070char **argv;
4071int
4072main ()
4073{
4074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4081do
4082 CC="$ac_save_CC $ac_arg"
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_cv_prog_cc_c89=$ac_arg
4085fi
4086rm -f core conftest.err conftest.$ac_objext
4087 test "x$ac_cv_prog_cc_c89" != "xno" && break
4088done
4089rm -f conftest.$ac_ext
4090CC=$ac_save_CC
4091
4092fi
4093# AC_CACHE_VAL
4094case "x$ac_cv_prog_cc_c89" in
4095 x)
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4097$as_echo "none needed" >&6; } ;;
4098 xno)
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4100$as_echo "unsupported" >&6; } ;;
4101 *)
4102 CC="$CC $ac_cv_prog_cc_c89"
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4104$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4105esac
4106if test "x$ac_cv_prog_cc_c89" != xno; then :
4107
4108fi
4109
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004110ac_ext=c
4111ac_cpp='$CPP $CPPFLAGS'
4112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004115
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004116ac_ext=c
4117ac_cpp='$CPP $CPPFLAGS'
4118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4122$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4123if ${am_cv_prog_cc_c_o+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h. */
4128
4129int
4130main ()
4131{
4132
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137 # Make sure it works both with $CC and with simple cc.
4138 # Following AC_PROG_CC_C_O, we do the test twice because some
4139 # compilers refuse to overwrite an existing .o file with -o,
4140 # though they will create one.
4141 am_cv_prog_cc_c_o=yes
4142 for am_i in 1 2; do
4143 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4144 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } \
4148 && test -f conftest2.$ac_objext; then
4149 : OK
4150 else
4151 am_cv_prog_cc_c_o=no
4152 break
4153 fi
4154 done
4155 rm -f core conftest*
4156 unset am_i
4157fi
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4159$as_echo "$am_cv_prog_cc_c_o" >&6; }
4160if test "$am_cv_prog_cc_c_o" != yes; then
4161 # Losing compiler, so override with the script.
4162 # FIXME: It is wrong to rewrite CC.
4163 # But if we don't then we get into trouble of one sort or another.
4164 # A longer-term fix would be to have automake use am__CC in this case,
4165 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4166 CC="$am_aux_dir/compile $CC"
4167fi
4168ac_ext=c
4169ac_cpp='$CPP $CPPFLAGS'
4170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174
Jeff Thompson36174062013-06-21 16:03:44 -07004175depcc="$CC" am_compiler_list=
4176
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4178$as_echo_n "checking dependency style of $depcc... " >&6; }
4179if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181else
4182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4183 # We make a subdir and do the tests there. Otherwise we can end up
4184 # making bogus files that we don't know about and never remove. For
4185 # instance it was reported that on HP-UX the gcc test will end up
4186 # making a dummy file named 'D' -- because '-MD' means "put the output
4187 # in D".
4188 rm -rf conftest.dir
4189 mkdir conftest.dir
4190 # Copy depcomp to subdir because otherwise we won't find it if we're
4191 # using a relative directory.
4192 cp "$am_depcomp" conftest.dir
4193 cd conftest.dir
4194 # We will build objects and dependencies in a subdirectory because
4195 # it helps to detect inapplicable dependency modes. For instance
4196 # both Tru64's cc and ICC support -MD to output dependencies as a
4197 # side effect of compilation, but ICC will put the dependencies in
4198 # the current directory while Tru64 will put them in the object
4199 # directory.
4200 mkdir sub
4201
4202 am_cv_CC_dependencies_compiler_type=none
4203 if test "$am_compiler_list" = ""; then
4204 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4205 fi
4206 am__universal=false
4207 case " $depcc " in #(
4208 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4209 esac
4210
4211 for depmode in $am_compiler_list; do
4212 # Setup a source with many dependencies, because some compilers
4213 # like to wrap large dependency lists on column 80 (with \), and
4214 # we should not choose a depcomp mode which is confused by this.
4215 #
4216 # We need to recreate these files for each test, as the compiler may
4217 # overwrite some of them when testing with obscure command lines.
4218 # This happens at least with the AIX C compiler.
4219 : > sub/conftest.c
4220 for i in 1 2 3 4 5 6; do
4221 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4222 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4223 # Solaris 10 /bin/sh.
4224 echo '/* dummy */' > sub/conftst$i.h
4225 done
4226 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4227
4228 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4229 # mode. It turns out that the SunPro C++ compiler does not properly
4230 # handle '-M -o', and we need to detect this. Also, some Intel
4231 # versions had trouble with output in subdirs.
4232 am__obj=sub/conftest.${OBJEXT-o}
4233 am__minus_obj="-o $am__obj"
4234 case $depmode in
4235 gcc)
4236 # This depmode causes a compiler race in universal mode.
4237 test "$am__universal" = false || continue
4238 ;;
4239 nosideeffect)
4240 # After this tag, mechanisms are not by side-effect, so they'll
4241 # only be used when explicitly requested.
4242 if test "x$enable_dependency_tracking" = xyes; then
4243 continue
4244 else
4245 break
4246 fi
4247 ;;
4248 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4249 # This compiler won't grok '-c -o', but also, the minuso test has
4250 # not run yet. These depmodes are late enough in the game, and
4251 # so weak that their functioning should not be impacted.
4252 am__obj=conftest.${OBJEXT-o}
4253 am__minus_obj=
4254 ;;
4255 none) break ;;
4256 esac
4257 if depmode=$depmode \
4258 source=sub/conftest.c object=$am__obj \
4259 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4260 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4261 >/dev/null 2>conftest.err &&
4262 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4263 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4264 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4265 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4266 # icc doesn't choke on unknown options, it will just issue warnings
4267 # or remarks (even with -Werror). So we grep stderr for any message
4268 # that says an option was ignored or not supported.
4269 # When given -MP, icc 7.0 and 7.1 complain thusly:
4270 # icc: Command line warning: ignoring option '-M'; no argument required
4271 # The diagnosis changed in icc 8.0:
4272 # icc: Command line remark: option '-MP' not supported
4273 if (grep 'ignoring option' conftest.err ||
4274 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4275 am_cv_CC_dependencies_compiler_type=$depmode
4276 break
4277 fi
4278 fi
4279 done
4280
4281 cd ..
4282 rm -rf conftest.dir
4283else
4284 am_cv_CC_dependencies_compiler_type=none
4285fi
4286
4287fi
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4289$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4290CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4291
4292 if
4293 test "x$enable_dependency_tracking" != xno \
4294 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4295 am__fastdepCC_TRUE=
4296 am__fastdepCC_FALSE='#'
4297else
4298 am__fastdepCC_TRUE='#'
4299 am__fastdepCC_FALSE=
4300fi
4301
4302
Jeff Thompson36174062013-06-21 16:03:44 -07004303
4304if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004305 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004306 do
4307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4308set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310$as_echo_n "checking for $ac_word... " >&6; }
4311if ${ac_cv_prog_AR+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$AR"; then
4315 ac_cv_prog_AR="$AR" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328done
4329 done
4330IFS=$as_save_IFS
4331
4332fi
4333fi
4334AR=$ac_cv_prog_AR
4335if test -n "$AR"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4337$as_echo "$AR" >&6; }
4338else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340$as_echo "no" >&6; }
4341fi
4342
4343
4344 test -n "$AR" && break
4345 done
4346fi
4347if test -z "$AR"; then
4348 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004349 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004350do
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352set dummy $ac_prog; ac_word=$2
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354$as_echo_n "checking for $ac_word... " >&6; }
4355if ${ac_cv_prog_ac_ct_AR+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357else
4358 if test -n "$ac_ct_AR"; then
4359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4360else
4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_ac_ct_AR="$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372done
4373 done
4374IFS=$as_save_IFS
4375
4376fi
4377fi
4378ac_ct_AR=$ac_cv_prog_ac_ct_AR
4379if test -n "$ac_ct_AR"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4381$as_echo "$ac_ct_AR" >&6; }
4382else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384$as_echo "no" >&6; }
4385fi
4386
4387
4388 test -n "$ac_ct_AR" && break
4389done
4390
4391 if test "x$ac_ct_AR" = x; then
4392 AR="false"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395yes:)
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398ac_tool_warned=yes ;;
4399esac
4400 AR=$ac_ct_AR
4401 fi
4402fi
4403
4404: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07004405
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4407$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4408if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07004409 $as_echo_n "(cached) " >&6
4410else
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004411 ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07004418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004420int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004421_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004422if ac_fn_c_try_compile "$LINENO"; then :
4423 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4425 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004426 ac_status=$?
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4429 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004430 am_cv_ar_interface=ar
4431 else
4432 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4434 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004435 ac_status=$?
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004438 if test "$ac_status" -eq 0; then
4439 am_cv_ar_interface=lib
4440 else
4441 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004442 fi
4443 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004444 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004445
4446fi
4447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004448 ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004453
4454fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4456$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004457
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004458case $am_cv_ar_interface in
4459ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004460 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004461lib)
4462 # Microsoft lib, so override with the ar-lib wrapper script.
4463 # FIXME: It is wrong to rewrite AR.
4464 # But if we don't then we get into trouble of one sort or another.
4465 # A longer-term fix would be to have automake use am__AR in this case,
4466 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4467 # similar.
4468 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004469 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004470unknown)
4471 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004472 ;;
4473esac
4474
Jeff Thompson4f031642013-08-05 11:03:16 -07004475case `pwd` in
4476 *\ * | *\ *)
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4478$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4479esac
4480
4481
4482
4483macro_version='2.4.2'
4484macro_revision='1.3337'
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498ltmain="$ac_aux_dir/ltmain.sh"
4499
4500# Make sure we can run config.sub.
4501$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4502 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4505$as_echo_n "checking build system type... " >&6; }
4506if ${ac_cv_build+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508else
4509 ac_build_alias=$build_alias
4510test "x$ac_build_alias" = x &&
4511 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4512test "x$ac_build_alias" = x &&
4513 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4514ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4516
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4519$as_echo "$ac_cv_build" >&6; }
4520case $ac_cv_build in
4521*-*-*) ;;
4522*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4523esac
4524build=$ac_cv_build
4525ac_save_IFS=$IFS; IFS='-'
4526set x $ac_cv_build
4527shift
4528build_cpu=$1
4529build_vendor=$2
4530shift; shift
4531# Remember, the first character of IFS is used to create $*,
4532# except with old shells:
4533build_os=$*
4534IFS=$ac_save_IFS
4535case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4536
4537
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4539$as_echo_n "checking host system type... " >&6; }
4540if ${ac_cv_host+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542else
4543 if test "x$host_alias" = x; then
4544 ac_cv_host=$ac_cv_build
4545else
4546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4547 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4548fi
4549
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4552$as_echo "$ac_cv_host" >&6; }
4553case $ac_cv_host in
4554*-*-*) ;;
4555*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4556esac
4557host=$ac_cv_host
4558ac_save_IFS=$IFS; IFS='-'
4559set x $ac_cv_host
4560shift
4561host_cpu=$1
4562host_vendor=$2
4563shift; shift
4564# Remember, the first character of IFS is used to create $*,
4565# except with old shells:
4566host_os=$*
4567IFS=$ac_save_IFS
4568case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4569
4570
4571# Backslashify metacharacters that are still active within
4572# double-quoted strings.
4573sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4574
4575# Same as above, but do not quote variable references.
4576double_quote_subst='s/\(["`\\]\)/\\\1/g'
4577
4578# Sed substitution to delay expansion of an escaped shell variable in a
4579# double_quote_subst'ed string.
4580delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4581
4582# Sed substitution to delay expansion of an escaped single quote.
4583delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4584
4585# Sed substitution to avoid accidental globbing in evaled expressions
4586no_glob_subst='s/\*/\\\*/g'
4587
4588ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4589ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4590ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4591
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4593$as_echo_n "checking how to print strings... " >&6; }
4594# Test print first, because it will be a builtin if present.
4595if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4596 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4597 ECHO='print -r --'
4598elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4599 ECHO='printf %s\n'
4600else
4601 # Use this function as a fallback that always works.
4602 func_fallback_echo ()
4603 {
4604 eval 'cat <<_LTECHO_EOF
4605$1
4606_LTECHO_EOF'
4607 }
4608 ECHO='func_fallback_echo'
4609fi
4610
4611# func_echo_all arg...
4612# Invoke $ECHO with all args, space-separated.
4613func_echo_all ()
4614{
4615 $ECHO ""
4616}
4617
4618case "$ECHO" in
4619 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4620$as_echo "printf" >&6; } ;;
4621 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4622$as_echo "print -r" >&6; } ;;
4623 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4624$as_echo "cat" >&6; } ;;
4625esac
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4642if ${ac_cv_path_SED+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644else
4645 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4646 for ac_i in 1 2 3 4 5 6 7; do
4647 ac_script="$ac_script$as_nl$ac_script"
4648 done
4649 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4650 { ac_script=; unset ac_script;}
4651 if test -z "$SED"; then
4652 ac_path_SED_found=false
4653 # Loop through the user's path and test for each of PROGNAME-LIST
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_prog in sed gsed; do
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4662 as_fn_executable_p "$ac_path_SED" || continue
4663# Check for GNU ac_path_SED and select it if it is found.
4664 # Check for GNU $ac_path_SED
4665case `"$ac_path_SED" --version 2>&1` in
4666*GNU*)
4667 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4668*)
4669 ac_count=0
4670 $as_echo_n 0123456789 >"conftest.in"
4671 while :
4672 do
4673 cat "conftest.in" "conftest.in" >"conftest.tmp"
4674 mv "conftest.tmp" "conftest.in"
4675 cp "conftest.in" "conftest.nl"
4676 $as_echo '' >> "conftest.nl"
4677 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679 as_fn_arith $ac_count + 1 && ac_count=$as_val
4680 if test $ac_count -gt ${ac_path_SED_max-0}; then
4681 # Best one so far, save it but keep looking for a better one
4682 ac_cv_path_SED="$ac_path_SED"
4683 ac_path_SED_max=$ac_count
4684 fi
4685 # 10*(2^10) chars as input seems more than enough
4686 test $ac_count -gt 10 && break
4687 done
4688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689esac
4690
4691 $ac_path_SED_found && break 3
4692 done
4693 done
4694 done
4695IFS=$as_save_IFS
4696 if test -z "$ac_cv_path_SED"; then
4697 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4698 fi
4699else
4700 ac_cv_path_SED=$SED
4701fi
4702
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4705$as_echo "$ac_cv_path_SED" >&6; }
4706 SED="$ac_cv_path_SED"
4707 rm -f conftest.sed
4708
4709test -z "$SED" && SED=sed
4710Xsed="$SED -e 1s/^X//"
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724if ${ac_cv_path_GREP+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726else
4727 if test -z "$GREP"; then
4728 ac_path_GREP_found=false
4729 # Loop through the user's path and test for each of PROGNAME-LIST
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_prog in grep ggrep; do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738 as_fn_executable_p "$ac_path_GREP" || continue
4739# Check for GNU ac_path_GREP and select it if it is found.
4740 # Check for GNU $ac_path_GREP
4741case `"$ac_path_GREP" --version 2>&1` in
4742*GNU*)
4743 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4744*)
4745 ac_count=0
4746 $as_echo_n 0123456789 >"conftest.in"
4747 while :
4748 do
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 $as_echo 'GREP' >> "conftest.nl"
4753 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_GREP="$ac_path_GREP"
4759 ac_path_GREP_max=$ac_count
4760 fi
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4763 done
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765esac
4766
4767 $ac_path_GREP_found && break 3
4768 done
4769 done
4770 done
4771IFS=$as_save_IFS
4772 if test -z "$ac_cv_path_GREP"; then
4773 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774 fi
4775else
4776 ac_cv_path_GREP=$GREP
4777fi
4778
4779fi
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4781$as_echo "$ac_cv_path_GREP" >&6; }
4782 GREP="$ac_cv_path_GREP"
4783
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786$as_echo_n "checking for egrep... " >&6; }
4787if ${ac_cv_path_EGREP+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789else
4790 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4791 then ac_cv_path_EGREP="$GREP -E"
4792 else
4793 if test -z "$EGREP"; then
4794 ac_path_EGREP_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in egrep; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804 as_fn_executable_p "$ac_path_EGREP" || continue
4805# Check for GNU ac_path_EGREP and select it if it is found.
4806 # Check for GNU $ac_path_EGREP
4807case `"$ac_path_EGREP" --version 2>&1` in
4808*GNU*)
4809 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4810*)
4811 ac_count=0
4812 $as_echo_n 0123456789 >"conftest.in"
4813 while :
4814 do
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo 'EGREP' >> "conftest.nl"
4819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_EGREP="$ac_path_EGREP"
4825 ac_path_EGREP_max=$ac_count
4826 fi
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4829 done
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831esac
4832
4833 $ac_path_EGREP_found && break 3
4834 done
4835 done
4836 done
4837IFS=$as_save_IFS
4838 if test -z "$ac_cv_path_EGREP"; then
4839 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840 fi
4841else
4842 ac_cv_path_EGREP=$EGREP
4843fi
4844
4845 fi
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4848$as_echo "$ac_cv_path_EGREP" >&6; }
4849 EGREP="$ac_cv_path_EGREP"
4850
4851
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4853$as_echo_n "checking for fgrep... " >&6; }
4854if ${ac_cv_path_FGREP+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856else
4857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4858 then ac_cv_path_FGREP="$GREP -F"
4859 else
4860 if test -z "$FGREP"; then
4861 ac_path_FGREP_found=false
4862 # Loop through the user's path and test for each of PROGNAME-LIST
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_prog in fgrep; do
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4871 as_fn_executable_p "$ac_path_FGREP" || continue
4872# Check for GNU ac_path_FGREP and select it if it is found.
4873 # Check for GNU $ac_path_FGREP
4874case `"$ac_path_FGREP" --version 2>&1` in
4875*GNU*)
4876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4877*)
4878 ac_count=0
4879 $as_echo_n 0123456789 >"conftest.in"
4880 while :
4881 do
4882 cat "conftest.in" "conftest.in" >"conftest.tmp"
4883 mv "conftest.tmp" "conftest.in"
4884 cp "conftest.in" "conftest.nl"
4885 $as_echo 'FGREP' >> "conftest.nl"
4886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888 as_fn_arith $ac_count + 1 && ac_count=$as_val
4889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4890 # Best one so far, save it but keep looking for a better one
4891 ac_cv_path_FGREP="$ac_path_FGREP"
4892 ac_path_FGREP_max=$ac_count
4893 fi
4894 # 10*(2^10) chars as input seems more than enough
4895 test $ac_count -gt 10 && break
4896 done
4897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4898esac
4899
4900 $ac_path_FGREP_found && break 3
4901 done
4902 done
4903 done
4904IFS=$as_save_IFS
4905 if test -z "$ac_cv_path_FGREP"; then
4906 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4907 fi
4908else
4909 ac_cv_path_FGREP=$FGREP
4910fi
4911
4912 fi
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4915$as_echo "$ac_cv_path_FGREP" >&6; }
4916 FGREP="$ac_cv_path_FGREP"
4917
4918
4919test -z "$GREP" && GREP=grep
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939# Check whether --with-gnu-ld was given.
4940if test "${with_gnu_ld+set}" = set; then :
4941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4942else
4943 with_gnu_ld=no
4944fi
4945
4946ac_prog=ld
4947if test "$GCC" = yes; then
4948 # Check if gcc -print-prog-name=ld gives a path.
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4950$as_echo_n "checking for ld used by $CC... " >&6; }
4951 case $host in
4952 *-*-mingw*)
4953 # gcc leaves a trailing carriage return which upsets mingw
4954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4955 *)
4956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4957 esac
4958 case $ac_prog in
4959 # Accept absolute paths.
4960 [\\/]* | ?:[\\/]*)
4961 re_direlt='/[^/][^/]*/\.\./'
4962 # Canonicalize the pathname of ld
4963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4966 done
4967 test -z "$LD" && LD="$ac_prog"
4968 ;;
4969 "")
4970 # If it fails, then pretend we aren't using GCC.
4971 ac_prog=ld
4972 ;;
4973 *)
4974 # If it is relative, then search for the first ld in PATH.
4975 with_gnu_ld=unknown
4976 ;;
4977 esac
4978elif test "$with_gnu_ld" = yes; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4980$as_echo_n "checking for GNU ld... " >&6; }
4981else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4983$as_echo_n "checking for non-GNU ld... " >&6; }
4984fi
4985if ${lt_cv_path_LD+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 if test -z "$LD"; then
4989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990 for ac_dir in $PATH; do
4991 IFS="$lt_save_ifs"
4992 test -z "$ac_dir" && ac_dir=.
4993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4994 lt_cv_path_LD="$ac_dir/$ac_prog"
4995 # Check to see if the program is GNU ld. I'd rather use --version,
4996 # but apparently some variants of GNU ld only accept -v.
4997 # Break only if it was the GNU/non-GNU ld that we prefer.
4998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4999 *GNU* | *'with BFD'*)
5000 test "$with_gnu_ld" != no && break
5001 ;;
5002 *)
5003 test "$with_gnu_ld" != yes && break
5004 ;;
5005 esac
5006 fi
5007 done
5008 IFS="$lt_save_ifs"
5009else
5010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5011fi
5012fi
5013
5014LD="$lt_cv_path_LD"
5015if test -n "$LD"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5017$as_echo "$LD" >&6; }
5018else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020$as_echo "no" >&6; }
5021fi
5022test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5024$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5025if ${lt_cv_prog_gnu_ld+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5029case `$LD -v 2>&1 </dev/null` in
5030*GNU* | *'with BFD'*)
5031 lt_cv_prog_gnu_ld=yes
5032 ;;
5033*)
5034 lt_cv_prog_gnu_ld=no
5035 ;;
5036esac
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5039$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5040with_gnu_ld=$lt_cv_prog_gnu_ld
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5051$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5052if ${lt_cv_path_NM+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test -n "$NM"; then
5056 # Let the user override the test.
5057 lt_cv_path_NM="$NM"
5058else
5059 lt_nm_to_check="${ac_tool_prefix}nm"
5060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5061 lt_nm_to_check="$lt_nm_to_check nm"
5062 fi
5063 for lt_tmp_nm in $lt_nm_to_check; do
5064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5066 IFS="$lt_save_ifs"
5067 test -z "$ac_dir" && ac_dir=.
5068 tmp_nm="$ac_dir/$lt_tmp_nm"
5069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5070 # Check to see if the nm accepts a BSD-compat flag.
5071 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072 # nm: unknown option "B" ignored
5073 # Tru64's nm complains that /dev/null is an invalid object file
5074 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5075 */dev/null* | *'Invalid file or object type'*)
5076 lt_cv_path_NM="$tmp_nm -B"
5077 break
5078 ;;
5079 *)
5080 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5081 */dev/null*)
5082 lt_cv_path_NM="$tmp_nm -p"
5083 break
5084 ;;
5085 *)
5086 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5087 continue # so that we can try to find one that supports BSD flags
5088 ;;
5089 esac
5090 ;;
5091 esac
5092 fi
5093 done
5094 IFS="$lt_save_ifs"
5095 done
5096 : ${lt_cv_path_NM=no}
5097fi
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5100$as_echo "$lt_cv_path_NM" >&6; }
5101if test "$lt_cv_path_NM" != "no"; then
5102 NM="$lt_cv_path_NM"
5103else
5104 # Didn't find any BSD compatible name lister, look for dumpbin.
5105 if test -n "$DUMPBIN"; then :
5106 # Let the user override the test.
5107 else
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog in dumpbin "link -dump"
5110 do
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if ${ac_cv_prog_DUMPBIN+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 if test -n "$DUMPBIN"; then
5119 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138DUMPBIN=$ac_cv_prog_DUMPBIN
5139if test -n "$DUMPBIN"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5141$as_echo "$DUMPBIN" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147
5148 test -n "$DUMPBIN" && break
5149 done
5150fi
5151if test -z "$DUMPBIN"; then
5152 ac_ct_DUMPBIN=$DUMPBIN
5153 for ac_prog in dumpbin "link -dump"
5154do
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156set dummy $ac_prog; ac_word=$2
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
5159if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161else
5162 if test -n "$ac_ct_DUMPBIN"; then
5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177 done
5178IFS=$as_save_IFS
5179
5180fi
5181fi
5182ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5183if test -n "$ac_ct_DUMPBIN"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5185$as_echo "$ac_ct_DUMPBIN" >&6; }
5186else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189fi
5190
5191
5192 test -n "$ac_ct_DUMPBIN" && break
5193done
5194
5195 if test "x$ac_ct_DUMPBIN" = x; then
5196 DUMPBIN=":"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199yes:)
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204 DUMPBIN=$ac_ct_DUMPBIN
5205 fi
5206fi
5207
5208 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5209 *COFF*)
5210 DUMPBIN="$DUMPBIN -symbols"
5211 ;;
5212 *)
5213 DUMPBIN=:
5214 ;;
5215 esac
5216 fi
5217
5218 if test "$DUMPBIN" != ":"; then
5219 NM="$DUMPBIN"
5220 fi
5221fi
5222test -z "$NM" && NM=nm
5223
5224
5225
5226
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5230$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5231if ${lt_cv_nm_interface+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233else
5234 lt_cv_nm_interface="BSD nm"
5235 echo "int some_variable = 0;" > conftest.$ac_ext
5236 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5237 (eval "$ac_compile" 2>conftest.err)
5238 cat conftest.err >&5
5239 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5240 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5241 cat conftest.err >&5
5242 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5243 cat conftest.out >&5
5244 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5245 lt_cv_nm_interface="MS dumpbin"
5246 fi
5247 rm -f conftest*
5248fi
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5250$as_echo "$lt_cv_nm_interface" >&6; }
5251
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5253$as_echo_n "checking whether ln -s works... " >&6; }
5254LN_S=$as_ln_s
5255if test "$LN_S" = "ln -s"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257$as_echo "yes" >&6; }
5258else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5260$as_echo "no, using $LN_S" >&6; }
5261fi
5262
5263# find the maximum length of command line arguments
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5265$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5266if ${lt_cv_sys_max_cmd_len+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268else
5269 i=0
5270 teststring="ABCD"
5271
5272 case $build_os in
5273 msdosdjgpp*)
5274 # On DJGPP, this test can blow up pretty badly due to problems in libc
5275 # (any single argument exceeding 2000 bytes causes a buffer overrun
5276 # during glob expansion). Even if it were fixed, the result of this
5277 # check would be larger than it should be.
5278 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5279 ;;
5280
5281 gnu*)
5282 # Under GNU Hurd, this test is not required because there is
5283 # no limit to the length of command line arguments.
5284 # Libtool will interpret -1 as no limit whatsoever
5285 lt_cv_sys_max_cmd_len=-1;
5286 ;;
5287
5288 cygwin* | mingw* | cegcc*)
5289 # On Win9x/ME, this test blows up -- it succeeds, but takes
5290 # about 5 minutes as the teststring grows exponentially.
5291 # Worse, since 9x/ME are not pre-emptively multitasking,
5292 # you end up with a "frozen" computer, even though with patience
5293 # the test eventually succeeds (with a max line length of 256k).
5294 # Instead, let's just punt: use the minimum linelength reported by
5295 # all of the supported platforms: 8192 (on NT/2K/XP).
5296 lt_cv_sys_max_cmd_len=8192;
5297 ;;
5298
5299 mint*)
5300 # On MiNT this can take a long time and run out of memory.
5301 lt_cv_sys_max_cmd_len=8192;
5302 ;;
5303
5304 amigaos*)
5305 # On AmigaOS with pdksh, this test takes hours, literally.
5306 # So we just punt and use a minimum line length of 8192.
5307 lt_cv_sys_max_cmd_len=8192;
5308 ;;
5309
5310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5311 # This has been around since 386BSD, at least. Likely further.
5312 if test -x /sbin/sysctl; then
5313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5314 elif test -x /usr/sbin/sysctl; then
5315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5316 else
5317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5318 fi
5319 # And add a safety zone
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5322 ;;
5323
5324 interix*)
5325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5326 lt_cv_sys_max_cmd_len=196608
5327 ;;
5328
5329 os2*)
5330 # The test takes a long time on OS/2.
5331 lt_cv_sys_max_cmd_len=8192
5332 ;;
5333
5334 osf*)
5335 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5336 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5337 # nice to cause kernel panics so lets avoid the loop below.
5338 # First set a reasonable default.
5339 lt_cv_sys_max_cmd_len=16384
5340 #
5341 if test -x /sbin/sysconfig; then
5342 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5343 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5344 esac
5345 fi
5346 ;;
5347 sco3.2v5*)
5348 lt_cv_sys_max_cmd_len=102400
5349 ;;
5350 sysv5* | sco5v6* | sysv4.2uw2*)
5351 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5352 if test -n "$kargmax"; then
5353 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5354 else
5355 lt_cv_sys_max_cmd_len=32768
5356 fi
5357 ;;
5358 *)
5359 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5360 if test -n "$lt_cv_sys_max_cmd_len"; then
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5363 else
5364 # Make teststring a little bigger before we do anything with it.
5365 # a 1K string should be a reasonable start.
5366 for i in 1 2 3 4 5 6 7 8 ; do
5367 teststring=$teststring$teststring
5368 done
5369 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5370 # If test is not a shell built-in, we'll probably end up computing a
5371 # maximum length that is only half of the actual maximum length, but
5372 # we can't tell.
5373 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5374 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5375 test $i != 17 # 1/2 MB should be enough
5376 do
5377 i=`expr $i + 1`
5378 teststring=$teststring$teststring
5379 done
5380 # Only check the string length outside the loop.
5381 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5382 teststring=
5383 # Add a significant safety factor because C++ compilers can tack on
5384 # massive amounts of additional arguments before passing them to the
5385 # linker. It appears as though 1/2 is a usable value.
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5387 fi
5388 ;;
5389 esac
5390
5391fi
5392
5393if test -n $lt_cv_sys_max_cmd_len ; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5395$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5396else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5398$as_echo "none" >&6; }
5399fi
5400max_cmd_len=$lt_cv_sys_max_cmd_len
5401
5402
5403
5404
5405
5406
5407: ${CP="cp -f"}
5408: ${MV="mv -f"}
5409: ${RM="rm -f"}
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5412$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5413# Try some XSI features
5414xsi_shell=no
5415( _lt_dummy="a/b/c"
5416 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5417 = c,a/b,b/c, \
5418 && eval 'test $(( 1 + 1 )) -eq 2 \
5419 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5420 && xsi_shell=yes
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5422$as_echo "$xsi_shell" >&6; }
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5426$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5427lt_shell_append=no
5428( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5429 >/dev/null 2>&1 \
5430 && lt_shell_append=yes
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5432$as_echo "$lt_shell_append" >&6; }
5433
5434
5435if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5436 lt_unset=unset
5437else
5438 lt_unset=false
5439fi
5440
5441
5442
5443
5444
5445# test EBCDIC or ASCII
5446case `echo X|tr X '\101'` in
5447 A) # ASCII based system
5448 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5449 lt_SP2NL='tr \040 \012'
5450 lt_NL2SP='tr \015\012 \040\040'
5451 ;;
5452 *) # EBCDIC based system
5453 lt_SP2NL='tr \100 \n'
5454 lt_NL2SP='tr \r\n \100\100'
5455 ;;
5456esac
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5467$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5468if ${lt_cv_to_host_file_cmd+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470else
5471 case $host in
5472 *-*-mingw* )
5473 case $build in
5474 *-*-mingw* ) # actually msys
5475 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5476 ;;
5477 *-*-cygwin* )
5478 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5479 ;;
5480 * ) # otherwise, assume *nix
5481 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5482 ;;
5483 esac
5484 ;;
5485 *-*-cygwin* )
5486 case $build in
5487 *-*-mingw* ) # actually msys
5488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5489 ;;
5490 *-*-cygwin* )
5491 lt_cv_to_host_file_cmd=func_convert_file_noop
5492 ;;
5493 * ) # otherwise, assume *nix
5494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5495 ;;
5496 esac
5497 ;;
5498 * ) # unhandled hosts (and "normal" native builds)
5499 lt_cv_to_host_file_cmd=func_convert_file_noop
5500 ;;
5501esac
5502
5503fi
5504
5505to_host_file_cmd=$lt_cv_to_host_file_cmd
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5507$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5508
5509
5510
5511
5512
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5514$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5515if ${lt_cv_to_tool_file_cmd+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517else
5518 #assume ordinary cross tools, or native build.
5519lt_cv_to_tool_file_cmd=func_convert_file_noop
5520case $host in
5521 *-*-mingw* )
5522 case $build in
5523 *-*-mingw* ) # actually msys
5524 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5525 ;;
5526 esac
5527 ;;
5528esac
5529
5530fi
5531
5532to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5534$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5535
5536
5537
5538
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5541$as_echo_n "checking for $LD option to reload object files... " >&6; }
5542if ${lt_cv_ld_reload_flag+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544else
5545 lt_cv_ld_reload_flag='-r'
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5548$as_echo "$lt_cv_ld_reload_flag" >&6; }
5549reload_flag=$lt_cv_ld_reload_flag
5550case $reload_flag in
5551"" | " "*) ;;
5552*) reload_flag=" $reload_flag" ;;
5553esac
5554reload_cmds='$LD$reload_flag -o $output$reload_objs'
5555case $host_os in
5556 cygwin* | mingw* | pw32* | cegcc*)
5557 if test "$GCC" != yes; then
5558 reload_cmds=false
5559 fi
5560 ;;
5561 darwin*)
5562 if test "$GCC" = yes; then
5563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5564 else
5565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5566 fi
5567 ;;
5568esac
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5580set dummy ${ac_tool_prefix}objdump; ac_word=$2
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
5583if ${ac_cv_prog_OBJDUMP+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585else
5586 if test -n "$OBJDUMP"; then
5587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600done
5601 done
5602IFS=$as_save_IFS
5603
5604fi
5605fi
5606OBJDUMP=$ac_cv_prog_OBJDUMP
5607if test -n "$OBJDUMP"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5609$as_echo "$OBJDUMP" >&6; }
5610else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612$as_echo "no" >&6; }
5613fi
5614
5615
5616fi
5617if test -z "$ac_cv_prog_OBJDUMP"; then
5618 ac_ct_OBJDUMP=$OBJDUMP
5619 # Extract the first word of "objdump", so it can be a program name with args.
5620set dummy objdump; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625else
5626 if test -n "$ac_ct_OBJDUMP"; then
5627 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5639 fi
5640done
5641 done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5647if test -n "$ac_ct_OBJDUMP"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5649$as_echo "$ac_ct_OBJDUMP" >&6; }
5650else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655 if test "x$ac_ct_OBJDUMP" = x; then
5656 OBJDUMP="false"
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659yes:)
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662ac_tool_warned=yes ;;
5663esac
5664 OBJDUMP=$ac_ct_OBJDUMP
5665 fi
5666else
5667 OBJDUMP="$ac_cv_prog_OBJDUMP"
5668fi
5669
5670test -z "$OBJDUMP" && OBJDUMP=objdump
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5681$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5682if ${lt_cv_deplibs_check_method+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684else
5685 lt_cv_file_magic_cmd='$MAGIC_CMD'
5686lt_cv_file_magic_test_file=
5687lt_cv_deplibs_check_method='unknown'
5688# Need to set the preceding variable on all platforms that support
5689# interlibrary dependencies.
5690# 'none' -- dependencies not supported.
5691# `unknown' -- same as none, but documents that we really don't know.
5692# 'pass_all' -- all dependencies passed with no checks.
5693# 'test_compile' -- check by making test program.
5694# 'file_magic [[regex]]' -- check by looking for files in library path
5695# which responds to the $file_magic_cmd with a given extended regex.
5696# If you have `file' or equivalent on your system and you're not sure
5697# whether `pass_all' will *always* work, you probably want this one.
5698
5699case $host_os in
5700aix[4-9]*)
5701 lt_cv_deplibs_check_method=pass_all
5702 ;;
5703
5704beos*)
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707
5708bsdi[45]*)
5709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5710 lt_cv_file_magic_cmd='/usr/bin/file -L'
5711 lt_cv_file_magic_test_file=/shlib/libc.so
5712 ;;
5713
5714cygwin*)
5715 # func_win32_libid is a shell function defined in ltmain.sh
5716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5717 lt_cv_file_magic_cmd='func_win32_libid'
5718 ;;
5719
5720mingw* | pw32*)
5721 # Base MSYS/MinGW do not provide the 'file' command needed by
5722 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5723 # unless we find 'file', for example because we are cross-compiling.
5724 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5725 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727 lt_cv_file_magic_cmd='func_win32_libid'
5728 else
5729 # Keep this pattern in sync with the one in func_win32_libid.
5730 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5731 lt_cv_file_magic_cmd='$OBJDUMP -f'
5732 fi
5733 ;;
5734
5735cegcc*)
5736 # use the weaker test based on 'objdump'. See mingw*.
5737 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5738 lt_cv_file_magic_cmd='$OBJDUMP -f'
5739 ;;
5740
5741darwin* | rhapsody*)
5742 lt_cv_deplibs_check_method=pass_all
5743 ;;
5744
5745freebsd* | dragonfly*)
5746 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5747 case $host_cpu in
5748 i*86 )
5749 # Not sure whether the presence of OpenBSD here was a mistake.
5750 # Let's accept both of them until this is cleared up.
5751 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5752 lt_cv_file_magic_cmd=/usr/bin/file
5753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5754 ;;
5755 esac
5756 else
5757 lt_cv_deplibs_check_method=pass_all
5758 fi
5759 ;;
5760
5761gnu*)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764
5765haiku*)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768
5769hpux10.20* | hpux11*)
5770 lt_cv_file_magic_cmd=/usr/bin/file
5771 case $host_cpu in
5772 ia64*)
5773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5774 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5775 ;;
5776 hppa*64*)
5777 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]'
5778 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5779 ;;
5780 *)
5781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5782 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5783 ;;
5784 esac
5785 ;;
5786
5787interix[3-9]*)
5788 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5790 ;;
5791
5792irix5* | irix6* | nonstopux*)
5793 case $LD in
5794 *-32|*"-32 ") libmagic=32-bit;;
5795 *-n32|*"-n32 ") libmagic=N32;;
5796 *-64|*"-64 ") libmagic=64-bit;;
5797 *) libmagic=never-match;;
5798 esac
5799 lt_cv_deplibs_check_method=pass_all
5800 ;;
5801
5802# This must be glibc/ELF.
5803linux* | k*bsd*-gnu | kopensolaris*-gnu)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807netbsd*)
5808 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5810 else
5811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5812 fi
5813 ;;
5814
5815newos6*)
5816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5817 lt_cv_file_magic_cmd=/usr/bin/file
5818 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5819 ;;
5820
5821*nto* | *qnx*)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824
5825openbsd*)
5826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5828 else
5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5830 fi
5831 ;;
5832
5833osf3* | osf4* | osf5*)
5834 lt_cv_deplibs_check_method=pass_all
5835 ;;
5836
5837rdos*)
5838 lt_cv_deplibs_check_method=pass_all
5839 ;;
5840
5841solaris*)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844
5845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5846 lt_cv_deplibs_check_method=pass_all
5847 ;;
5848
5849sysv4 | sysv4.3*)
5850 case $host_vendor in
5851 motorola)
5852 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]'
5853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5854 ;;
5855 ncr)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858 sequent)
5859 lt_cv_file_magic_cmd='/bin/file'
5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5861 ;;
5862 sni)
5863 lt_cv_file_magic_cmd='/bin/file'
5864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5865 lt_cv_file_magic_test_file=/lib/libc.so
5866 ;;
5867 siemens)
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870 pc)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873 esac
5874 ;;
5875
5876tpf*)
5877 lt_cv_deplibs_check_method=pass_all
5878 ;;
5879esac
5880
5881fi
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5883$as_echo "$lt_cv_deplibs_check_method" >&6; }
5884
5885file_magic_glob=
5886want_nocaseglob=no
5887if test "$build" = "$host"; then
5888 case $host_os in
5889 mingw* | pw32*)
5890 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5891 want_nocaseglob=yes
5892 else
5893 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5894 fi
5895 ;;
5896 esac
5897fi
5898
5899file_magic_cmd=$lt_cv_file_magic_cmd
5900deplibs_check_method=$lt_cv_deplibs_check_method
5901test -z "$deplibs_check_method" && deplibs_check_method=unknown
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5926set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if ${ac_cv_prog_DLLTOOL+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931else
5932 if test -n "$DLLTOOL"; then
5933 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946done
5947 done
5948IFS=$as_save_IFS
5949
5950fi
5951fi
5952DLLTOOL=$ac_cv_prog_DLLTOOL
5953if test -n "$DLLTOOL"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5955$as_echo "$DLLTOOL" >&6; }
5956else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958$as_echo "no" >&6; }
5959fi
5960
5961
5962fi
5963if test -z "$ac_cv_prog_DLLTOOL"; then
5964 ac_ct_DLLTOOL=$DLLTOOL
5965 # Extract the first word of "dlltool", so it can be a program name with args.
5966set dummy dlltool; ac_word=$2
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968$as_echo_n "checking for $ac_word... " >&6; }
5969if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971else
5972 if test -n "$ac_ct_DLLTOOL"; then
5973 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986done
5987 done
5988IFS=$as_save_IFS
5989
5990fi
5991fi
5992ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5993if test -n "$ac_ct_DLLTOOL"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5995$as_echo "$ac_ct_DLLTOOL" >&6; }
5996else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001 if test "x$ac_ct_DLLTOOL" = x; then
6002 DLLTOOL="false"
6003 else
6004 case $cross_compiling:$ac_tool_warned in
6005yes:)
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008ac_tool_warned=yes ;;
6009esac
6010 DLLTOOL=$ac_ct_DLLTOOL
6011 fi
6012else
6013 DLLTOOL="$ac_cv_prog_DLLTOOL"
6014fi
6015
6016test -z "$DLLTOOL" && DLLTOOL=dlltool
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6028$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6029if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031else
6032 lt_cv_sharedlib_from_linklib_cmd='unknown'
6033
6034case $host_os in
6035cygwin* | mingw* | pw32* | cegcc*)
6036 # two different shell functions defined in ltmain.sh
6037 # decide which to use based on capabilities of $DLLTOOL
6038 case `$DLLTOOL --help 2>&1` in
6039 *--identify-strict*)
6040 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6041 ;;
6042 *)
6043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6044 ;;
6045 esac
6046 ;;
6047*)
6048 # fallback: assume linklib IS sharedlib
6049 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6050 ;;
6051esac
6052
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6055$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6056sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6057test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6058
6059
6060
6061
6062
6063
6064
6065if test -n "$ac_tool_prefix"; then
6066 for ac_prog in ar
6067 do
6068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6069set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071$as_echo_n "checking for $ac_word... " >&6; }
6072if ${ac_cv_prog_AR+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074else
6075 if test -n "$AR"; then
6076 ac_cv_prog_AR="$AR" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089done
6090 done
6091IFS=$as_save_IFS
6092
6093fi
6094fi
6095AR=$ac_cv_prog_AR
6096if test -n "$AR"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6098$as_echo "$AR" >&6; }
6099else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101$as_echo "no" >&6; }
6102fi
6103
6104
6105 test -n "$AR" && break
6106 done
6107fi
6108if test -z "$AR"; then
6109 ac_ct_AR=$AR
6110 for ac_prog in ar
6111do
6112 # Extract the first word of "$ac_prog", so it can be a program name with args.
6113set dummy $ac_prog; ac_word=$2
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115$as_echo_n "checking for $ac_word... " >&6; }
6116if ${ac_cv_prog_ac_ct_AR+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118else
6119 if test -n "$ac_ct_AR"; then
6120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_ac_ct_AR="$ac_prog"
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133done
6134 done
6135IFS=$as_save_IFS
6136
6137fi
6138fi
6139ac_ct_AR=$ac_cv_prog_ac_ct_AR
6140if test -n "$ac_ct_AR"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6142$as_echo "$ac_ct_AR" >&6; }
6143else
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145$as_echo "no" >&6; }
6146fi
6147
6148
6149 test -n "$ac_ct_AR" && break
6150done
6151
6152 if test "x$ac_ct_AR" = x; then
6153 AR="false"
6154 else
6155 case $cross_compiling:$ac_tool_warned in
6156yes:)
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159ac_tool_warned=yes ;;
6160esac
6161 AR=$ac_ct_AR
6162 fi
6163fi
6164
6165: ${AR=ar}
6166: ${AR_FLAGS=cru}
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6179$as_echo_n "checking for archiver @FILE support... " >&6; }
6180if ${lt_cv_ar_at_file+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182else
6183 lt_cv_ar_at_file=no
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h. */
6186
6187int
6188main ()
6189{
6190
6191 ;
6192 return 0;
6193}
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196 echo conftest.$ac_objext > conftest.lst
6197 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6199 (eval $lt_ar_try) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }
6203 if test "$ac_status" -eq 0; then
6204 # Ensure the archiver fails upon bogus file names.
6205 rm -f conftest.$ac_objext libconftest.a
6206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6207 (eval $lt_ar_try) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }
6211 if test "$ac_status" -ne 0; then
6212 lt_cv_ar_at_file=@
6213 fi
6214 fi
6215 rm -f conftest.* libconftest.a
6216
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6222$as_echo "$lt_cv_ar_at_file" >&6; }
6223
6224if test "x$lt_cv_ar_at_file" = xno; then
6225 archiver_list_spec=
6226else
6227 archiver_list_spec=$lt_cv_ar_at_file
6228fi
6229
6230
6231
6232
6233
6234
6235
6236if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6238set dummy ${ac_tool_prefix}strip; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if ${ac_cv_prog_STRIP+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243else
6244 if test -n "$STRIP"; then
6245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258done
6259 done
6260IFS=$as_save_IFS
6261
6262fi
6263fi
6264STRIP=$ac_cv_prog_STRIP
6265if test -n "$STRIP"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6267$as_echo "$STRIP" >&6; }
6268else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274fi
6275if test -z "$ac_cv_prog_STRIP"; then
6276 ac_ct_STRIP=$STRIP
6277 # Extract the first word of "strip", so it can be a program name with args.
6278set dummy strip; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$ac_ct_STRIP"; then
6285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_STRIP="strip"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298done
6299 done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6305if test -n "$ac_ct_STRIP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6307$as_echo "$ac_ct_STRIP" >&6; }
6308else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313 if test "x$ac_ct_STRIP" = x; then
6314 STRIP=":"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317yes:)
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320ac_tool_warned=yes ;;
6321esac
6322 STRIP=$ac_ct_STRIP
6323 fi
6324else
6325 STRIP="$ac_cv_prog_STRIP"
6326fi
6327
6328test -z "$STRIP" && STRIP=:
6329
6330
6331
6332
6333
6334
6335if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6337set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339$as_echo_n "checking for $ac_word... " >&6; }
6340if ${ac_cv_prog_RANLIB+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342else
6343 if test -n "$RANLIB"; then
6344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6345else
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357done
6358 done
6359IFS=$as_save_IFS
6360
6361fi
6362fi
6363RANLIB=$ac_cv_prog_RANLIB
6364if test -n "$RANLIB"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6366$as_echo "$RANLIB" >&6; }
6367else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369$as_echo "no" >&6; }
6370fi
6371
6372
6373fi
6374if test -z "$ac_cv_prog_RANLIB"; then
6375 ac_ct_RANLIB=$RANLIB
6376 # Extract the first word of "ranlib", so it can be a program name with args.
6377set dummy ranlib; ac_word=$2
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379$as_echo_n "checking for $ac_word... " >&6; }
6380if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382else
6383 if test -n "$ac_ct_RANLIB"; then
6384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_ac_ct_RANLIB="ranlib"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398 done
6399IFS=$as_save_IFS
6400
6401fi
6402fi
6403ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6404if test -n "$ac_ct_RANLIB"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6406$as_echo "$ac_ct_RANLIB" >&6; }
6407else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410fi
6411
6412 if test "x$ac_ct_RANLIB" = x; then
6413 RANLIB=":"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416yes:)
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419ac_tool_warned=yes ;;
6420esac
6421 RANLIB=$ac_ct_RANLIB
6422 fi
6423else
6424 RANLIB="$ac_cv_prog_RANLIB"
6425fi
6426
6427test -z "$RANLIB" && RANLIB=:
6428
6429
6430
6431
6432
6433
6434# Determine commands to create old-style static archives.
6435old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6436old_postinstall_cmds='chmod 644 $oldlib'
6437old_postuninstall_cmds=
6438
6439if test -n "$RANLIB"; then
6440 case $host_os in
6441 openbsd*)
6442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6443 ;;
6444 *)
6445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6446 ;;
6447 esac
6448 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6449fi
6450
6451case $host_os in
6452 darwin*)
6453 lock_old_archive_extraction=yes ;;
6454 *)
6455 lock_old_archive_extraction=no ;;
6456esac
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
6496# If no C compiler was specified, use CC.
6497LTCC=${LTCC-"$CC"}
6498
6499# If no C compiler flags were specified, use CFLAGS.
6500LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6501
6502# Allow CC to be a program name with arguments.
6503compiler=$CC
6504
6505
6506# Check for command to grab the raw symbol name followed by C symbol from nm.
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6508$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6509if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511else
6512
6513# These are sane defaults that work on at least a few old systems.
6514# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6515
6516# Character class describing NM global symbol codes.
6517symcode='[BCDEGRST]'
6518
6519# Regexp to match symbols that can be accessed directly from C.
6520sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6521
6522# Define system-specific variables.
6523case $host_os in
6524aix*)
6525 symcode='[BCDT]'
6526 ;;
6527cygwin* | mingw* | pw32* | cegcc*)
6528 symcode='[ABCDGISTW]'
6529 ;;
6530hpux*)
6531 if test "$host_cpu" = ia64; then
6532 symcode='[ABCDEGRST]'
6533 fi
6534 ;;
6535irix* | nonstopux*)
6536 symcode='[BCDEGRST]'
6537 ;;
6538osf*)
6539 symcode='[BCDEGQRST]'
6540 ;;
6541solaris*)
6542 symcode='[BDRT]'
6543 ;;
6544sco3.2v5*)
6545 symcode='[DT]'
6546 ;;
6547sysv4.2uw2*)
6548 symcode='[DT]'
6549 ;;
6550sysv5* | sco5v6* | unixware* | OpenUNIX*)
6551 symcode='[ABDT]'
6552 ;;
6553sysv4)
6554 symcode='[DFNSTU]'
6555 ;;
6556esac
6557
6558# If we're using GNU nm, then use its standard symbol codes.
6559case `$NM -V 2>&1` in
6560*GNU* | *'with BFD'*)
6561 symcode='[ABCDGIRSTW]' ;;
6562esac
6563
6564# Transform an extracted symbol line into a proper C declaration.
6565# Some systems (esp. on ia64) link data and code symbols differently,
6566# so use this general approach.
6567lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6568
6569# Transform an extracted symbol line into symbol name and symbol address
6570lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6571lt_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'"
6572
6573# Handle CRLF in mingw tool chain
6574opt_cr=
6575case $build_os in
6576mingw*)
6577 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6578 ;;
6579esac
6580
6581# Try without a prefix underscore, then with it.
6582for ac_symprfx in "" "_"; do
6583
6584 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6585 symxfrm="\\1 $ac_symprfx\\2 \\2"
6586
6587 # Write the raw and C identifiers.
6588 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6589 # Fake it for dumpbin and say T for any non-static function
6590 # and D for any global variable.
6591 # Also find C++ and __fastcall symbols from MSVC++,
6592 # which start with @ or ?.
6593 lt_cv_sys_global_symbol_pipe="$AWK '"\
6594" {last_section=section; section=\$ 3};"\
6595" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6596" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6597" \$ 0!~/External *\|/{next};"\
6598" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6599" {if(hide[section]) next};"\
6600" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6601" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6602" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6603" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6604" ' prfx=^$ac_symprfx"
6605 else
6606 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6607 fi
6608 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6609
6610 # Check to see that the pipe works correctly.
6611 pipe_works=no
6612
6613 rm -f conftest*
6614 cat > conftest.$ac_ext <<_LT_EOF
6615#ifdef __cplusplus
6616extern "C" {
6617#endif
6618char nm_test_var;
6619void nm_test_func(void);
6620void nm_test_func(void){}
6621#ifdef __cplusplus
6622}
6623#endif
6624int main(){nm_test_var='a';nm_test_func();return(0);}
6625_LT_EOF
6626
6627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6628 (eval $ac_compile) 2>&5
6629 ac_status=$?
6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631 test $ac_status = 0; }; then
6632 # Now try to grab the symbols.
6633 nlist=conftest.nm
6634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6635 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6636 ac_status=$?
6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6638 test $ac_status = 0; } && test -s "$nlist"; then
6639 # Try sorting and uniquifying the output.
6640 if sort "$nlist" | uniq > "$nlist"T; then
6641 mv -f "$nlist"T "$nlist"
6642 else
6643 rm -f "$nlist"T
6644 fi
6645
6646 # Make sure that we snagged all the symbols we need.
6647 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6648 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6649 cat <<_LT_EOF > conftest.$ac_ext
6650/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6651#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6652/* DATA imports from DLLs on WIN32 con't be const, because runtime
6653 relocations are performed -- see ld's documentation on pseudo-relocs. */
6654# define LT_DLSYM_CONST
6655#elif defined(__osf__)
6656/* This system does not cope well with relocations in const data. */
6657# define LT_DLSYM_CONST
6658#else
6659# define LT_DLSYM_CONST const
6660#endif
6661
6662#ifdef __cplusplus
6663extern "C" {
6664#endif
6665
6666_LT_EOF
6667 # Now generate the symbol file.
6668 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6669
6670 cat <<_LT_EOF >> conftest.$ac_ext
6671
6672/* The mapping between symbol names and symbols. */
6673LT_DLSYM_CONST struct {
6674 const char *name;
6675 void *address;
6676}
6677lt__PROGRAM__LTX_preloaded_symbols[] =
6678{
6679 { "@PROGRAM@", (void *) 0 },
6680_LT_EOF
6681 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6682 cat <<\_LT_EOF >> conftest.$ac_ext
6683 {0, (void *) 0}
6684};
6685
6686/* This works around a problem in FreeBSD linker */
6687#ifdef FREEBSD_WORKAROUND
6688static const void *lt_preloaded_setup() {
6689 return lt__PROGRAM__LTX_preloaded_symbols;
6690}
6691#endif
6692
6693#ifdef __cplusplus
6694}
6695#endif
6696_LT_EOF
6697 # Now try linking the two files.
6698 mv conftest.$ac_objext conftstm.$ac_objext
6699 lt_globsym_save_LIBS=$LIBS
6700 lt_globsym_save_CFLAGS=$CFLAGS
6701 LIBS="conftstm.$ac_objext"
6702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6704 (eval $ac_link) 2>&5
6705 ac_status=$?
6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6708 pipe_works=yes
6709 fi
6710 LIBS=$lt_globsym_save_LIBS
6711 CFLAGS=$lt_globsym_save_CFLAGS
6712 else
6713 echo "cannot find nm_test_func in $nlist" >&5
6714 fi
6715 else
6716 echo "cannot find nm_test_var in $nlist" >&5
6717 fi
6718 else
6719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6720 fi
6721 else
6722 echo "$progname: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6724 fi
6725 rm -rf conftest* conftst*
6726
6727 # Do not use the global_symbol_pipe unless it works.
6728 if test "$pipe_works" = yes; then
6729 break
6730 else
6731 lt_cv_sys_global_symbol_pipe=
6732 fi
6733done
6734
6735fi
6736
6737if test -z "$lt_cv_sys_global_symbol_pipe"; then
6738 lt_cv_sys_global_symbol_to_cdecl=
6739fi
6740if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6742$as_echo "failed" >&6; }
6743else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6745$as_echo "ok" >&6; }
6746fi
6747
6748# Response file support.
6749if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750 nm_file_list_spec='@'
6751elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6752 nm_file_list_spec='@'
6753fi
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
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6782$as_echo_n "checking for sysroot... " >&6; }
6783
6784# Check whether --with-sysroot was given.
6785if test "${with_sysroot+set}" = set; then :
6786 withval=$with_sysroot;
6787else
6788 with_sysroot=no
6789fi
6790
6791
6792lt_sysroot=
6793case ${with_sysroot} in #(
6794 yes)
6795 if test "$GCC" = yes; then
6796 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6797 fi
6798 ;; #(
6799 /*)
6800 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6801 ;; #(
6802 no|'')
6803 ;; #(
6804 *)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6806$as_echo "${with_sysroot}" >&6; }
6807 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6808 ;;
6809esac
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6812$as_echo "${lt_sysroot:-no}" >&6; }
6813
6814
6815
6816
6817
6818# Check whether --enable-libtool-lock was given.
6819if test "${enable_libtool_lock+set}" = set; then :
6820 enableval=$enable_libtool_lock;
6821fi
6822
6823test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6824
6825# Some flags need to be propagated to the compiler or linker for good
6826# libtool support.
6827case $host in
6828ia64-*-hpux*)
6829 # Find out which ABI we are using.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.$ac_objext` in
6837 *ELF-32*)
6838 HPUX_IA64_MODE="32"
6839 ;;
6840 *ELF-64*)
6841 HPUX_IA64_MODE="64"
6842 ;;
6843 esac
6844 fi
6845 rm -rf conftest*
6846 ;;
6847*-*-irix6*)
6848 # Find out which ABI we are using.
6849 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 if test "$lt_cv_prog_gnu_ld" = yes; then
6856 case `/usr/bin/file conftest.$ac_objext` in
6857 *32-bit*)
6858 LD="${LD-ld} -melf32bsmip"
6859 ;;
6860 *N32*)
6861 LD="${LD-ld} -melf32bmipn32"
6862 ;;
6863 *64-bit*)
6864 LD="${LD-ld} -melf64bmip"
6865 ;;
6866 esac
6867 else
6868 case `/usr/bin/file conftest.$ac_objext` in
6869 *32-bit*)
6870 LD="${LD-ld} -32"
6871 ;;
6872 *N32*)
6873 LD="${LD-ld} -n32"
6874 ;;
6875 *64-bit*)
6876 LD="${LD-ld} -64"
6877 ;;
6878 esac
6879 fi
6880 fi
6881 rm -rf conftest*
6882 ;;
6883
6884x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6885s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6886 # Find out which ABI we are using.
6887 echo 'int i;' > conftest.$ac_ext
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889 (eval $ac_compile) 2>&5
6890 ac_status=$?
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 case `/usr/bin/file conftest.o` in
6894 *32-bit*)
6895 case $host in
6896 x86_64-*kfreebsd*-gnu)
6897 LD="${LD-ld} -m elf_i386_fbsd"
6898 ;;
6899 x86_64-*linux*)
6900 LD="${LD-ld} -m elf_i386"
6901 ;;
6902 ppc64-*linux*|powerpc64-*linux*)
6903 LD="${LD-ld} -m elf32ppclinux"
6904 ;;
6905 s390x-*linux*)
6906 LD="${LD-ld} -m elf_s390"
6907 ;;
6908 sparc64-*linux*)
6909 LD="${LD-ld} -m elf32_sparc"
6910 ;;
6911 esac
6912 ;;
6913 *64-bit*)
6914 case $host in
6915 x86_64-*kfreebsd*-gnu)
6916 LD="${LD-ld} -m elf_x86_64_fbsd"
6917 ;;
6918 x86_64-*linux*)
6919 LD="${LD-ld} -m elf_x86_64"
6920 ;;
6921 ppc*-*linux*|powerpc*-*linux*)
6922 LD="${LD-ld} -m elf64ppc"
6923 ;;
6924 s390*-*linux*|s390*-*tpf*)
6925 LD="${LD-ld} -m elf64_s390"
6926 ;;
6927 sparc*-*linux*)
6928 LD="${LD-ld} -m elf64_sparc"
6929 ;;
6930 esac
6931 ;;
6932 esac
6933 fi
6934 rm -rf conftest*
6935 ;;
6936
6937*-*-sco3.2v5*)
6938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6939 SAVE_CFLAGS="$CFLAGS"
6940 CFLAGS="$CFLAGS -belf"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6942$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6943if ${lt_cv_cc_needs_belf+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945else
6946 ac_ext=c
6947ac_cpp='$CPP $CPPFLAGS'
6948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h. */
6954
6955int
6956main ()
6957{
6958
6959 ;
6960 return 0;
6961}
6962_ACEOF
6963if ac_fn_c_try_link "$LINENO"; then :
6964 lt_cv_cc_needs_belf=yes
6965else
6966 lt_cv_cc_needs_belf=no
6967fi
6968rm -f core conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970 ac_ext=c
6971ac_cpp='$CPP $CPPFLAGS'
6972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975
6976fi
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6978$as_echo "$lt_cv_cc_needs_belf" >&6; }
6979 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6980 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6981 CFLAGS="$SAVE_CFLAGS"
6982 fi
6983 ;;
6984*-*solaris*)
6985 # Find out which ABI we are using.
6986 echo 'int i;' > conftest.$ac_ext
6987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6988 (eval $ac_compile) 2>&5
6989 ac_status=$?
6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; }; then
6992 case `/usr/bin/file conftest.o` in
6993 *64-bit*)
6994 case $lt_cv_prog_gnu_ld in
6995 yes*)
6996 case $host in
6997 i?86-*-solaris*)
6998 LD="${LD-ld} -m elf_x86_64"
6999 ;;
7000 sparc*-*-solaris*)
7001 LD="${LD-ld} -m elf64_sparc"
7002 ;;
7003 esac
7004 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7005 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7006 LD="${LD-ld}_sol2"
7007 fi
7008 ;;
7009 *)
7010 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7011 LD="${LD-ld} -64"
7012 fi
7013 ;;
7014 esac
7015 ;;
7016 esac
7017 fi
7018 rm -rf conftest*
7019 ;;
7020esac
7021
7022need_locks="$enable_libtool_lock"
7023
7024if test -n "$ac_tool_prefix"; then
7025 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7026set dummy ${ac_tool_prefix}mt; ac_word=$2
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028$as_echo_n "checking for $ac_word... " >&6; }
7029if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031else
7032 if test -n "$MANIFEST_TOOL"; then
7033 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7034else
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047 done
7048IFS=$as_save_IFS
7049
7050fi
7051fi
7052MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7053if test -n "$MANIFEST_TOOL"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7055$as_echo "$MANIFEST_TOOL" >&6; }
7056else
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058$as_echo "no" >&6; }
7059fi
7060
7061
7062fi
7063if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7064 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7065 # Extract the first word of "mt", so it can be a program name with args.
7066set dummy mt; ac_word=$2
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068$as_echo_n "checking for $ac_word... " >&6; }
7069if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071else
7072 if test -n "$ac_ct_MANIFEST_TOOL"; then
7073 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7074else
7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076for as_dir in $PATH
7077do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086done
7087 done
7088IFS=$as_save_IFS
7089
7090fi
7091fi
7092ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7093if test -n "$ac_ct_MANIFEST_TOOL"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7095$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7096else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098$as_echo "no" >&6; }
7099fi
7100
7101 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7102 MANIFEST_TOOL=":"
7103 else
7104 case $cross_compiling:$ac_tool_warned in
7105yes:)
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108ac_tool_warned=yes ;;
7109esac
7110 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7111 fi
7112else
7113 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7114fi
7115
7116test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7118$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7119if ${lt_cv_path_mainfest_tool+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121else
7122 lt_cv_path_mainfest_tool=no
7123 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7124 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7125 cat conftest.err >&5
7126 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7127 lt_cv_path_mainfest_tool=yes
7128 fi
7129 rm -f conftest*
7130fi
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7132$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7133if test "x$lt_cv_path_mainfest_tool" != xyes; then
7134 MANIFEST_TOOL=:
7135fi
7136
7137
7138
7139
7140
7141
7142 case $host_os in
7143 rhapsody* | darwin*)
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7146set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148$as_echo_n "checking for $ac_word... " >&6; }
7149if ${ac_cv_prog_DSYMUTIL+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151else
7152 if test -n "$DSYMUTIL"; then
7153 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167 done
7168IFS=$as_save_IFS
7169
7170fi
7171fi
7172DSYMUTIL=$ac_cv_prog_DSYMUTIL
7173if test -n "$DSYMUTIL"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7175$as_echo "$DSYMUTIL" >&6; }
7176else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178$as_echo "no" >&6; }
7179fi
7180
7181
7182fi
7183if test -z "$ac_cv_prog_DSYMUTIL"; then
7184 ac_ct_DSYMUTIL=$DSYMUTIL
7185 # Extract the first word of "dsymutil", so it can be a program name with args.
7186set dummy dsymutil; ac_word=$2
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188$as_echo_n "checking for $ac_word... " >&6; }
7189if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191else
7192 if test -n "$ac_ct_DSYMUTIL"; then
7193 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207 done
7208IFS=$as_save_IFS
7209
7210fi
7211fi
7212ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7213if test -n "$ac_ct_DSYMUTIL"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7215$as_echo "$ac_ct_DSYMUTIL" >&6; }
7216else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
7219fi
7220
7221 if test "x$ac_ct_DSYMUTIL" = x; then
7222 DSYMUTIL=":"
7223 else
7224 case $cross_compiling:$ac_tool_warned in
7225yes:)
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228ac_tool_warned=yes ;;
7229esac
7230 DSYMUTIL=$ac_ct_DSYMUTIL
7231 fi
7232else
7233 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7234fi
7235
7236 if test -n "$ac_tool_prefix"; then
7237 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7238set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240$as_echo_n "checking for $ac_word... " >&6; }
7241if ${ac_cv_prog_NMEDIT+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243else
7244 if test -n "$NMEDIT"; then
7245 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7246else
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258done
7259 done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264NMEDIT=$ac_cv_prog_NMEDIT
7265if test -n "$NMEDIT"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7267$as_echo "$NMEDIT" >&6; }
7268else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271fi
7272
7273
7274fi
7275if test -z "$ac_cv_prog_NMEDIT"; then
7276 ac_ct_NMEDIT=$NMEDIT
7277 # Extract the first word of "nmedit", so it can be a program name with args.
7278set dummy nmedit; ac_word=$2
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283else
7284 if test -n "$ac_ct_NMEDIT"; then
7285 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298done
7299 done
7300IFS=$as_save_IFS
7301
7302fi
7303fi
7304ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7305if test -n "$ac_ct_NMEDIT"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7307$as_echo "$ac_ct_NMEDIT" >&6; }
7308else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
7311fi
7312
7313 if test "x$ac_ct_NMEDIT" = x; then
7314 NMEDIT=":"
7315 else
7316 case $cross_compiling:$ac_tool_warned in
7317yes:)
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320ac_tool_warned=yes ;;
7321esac
7322 NMEDIT=$ac_ct_NMEDIT
7323 fi
7324else
7325 NMEDIT="$ac_cv_prog_NMEDIT"
7326fi
7327
7328 if test -n "$ac_tool_prefix"; then
7329 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7330set dummy ${ac_tool_prefix}lipo; ac_word=$2
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332$as_echo_n "checking for $ac_word... " >&6; }
7333if ${ac_cv_prog_LIPO+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335else
7336 if test -n "$LIPO"; then
7337 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350done
7351 done
7352IFS=$as_save_IFS
7353
7354fi
7355fi
7356LIPO=$ac_cv_prog_LIPO
7357if test -n "$LIPO"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7359$as_echo "$LIPO" >&6; }
7360else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365
7366fi
7367if test -z "$ac_cv_prog_LIPO"; then
7368 ac_ct_LIPO=$LIPO
7369 # Extract the first word of "lipo", so it can be a program name with args.
7370set dummy lipo; ac_word=$2
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372$as_echo_n "checking for $ac_word... " >&6; }
7373if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375else
7376 if test -n "$ac_ct_LIPO"; then
7377 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7378else
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_ac_ct_LIPO="lipo"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390done
7391 done
7392IFS=$as_save_IFS
7393
7394fi
7395fi
7396ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7397if test -n "$ac_ct_LIPO"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7399$as_echo "$ac_ct_LIPO" >&6; }
7400else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402$as_echo "no" >&6; }
7403fi
7404
7405 if test "x$ac_ct_LIPO" = x; then
7406 LIPO=":"
7407 else
7408 case $cross_compiling:$ac_tool_warned in
7409yes:)
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7412ac_tool_warned=yes ;;
7413esac
7414 LIPO=$ac_ct_LIPO
7415 fi
7416else
7417 LIPO="$ac_cv_prog_LIPO"
7418fi
7419
7420 if test -n "$ac_tool_prefix"; then
7421 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7422set dummy ${ac_tool_prefix}otool; ac_word=$2
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424$as_echo_n "checking for $ac_word... " >&6; }
7425if ${ac_cv_prog_OTOOL+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427else
7428 if test -n "$OTOOL"; then
7429 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443 done
7444IFS=$as_save_IFS
7445
7446fi
7447fi
7448OTOOL=$ac_cv_prog_OTOOL
7449if test -n "$OTOOL"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7451$as_echo "$OTOOL" >&6; }
7452else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454$as_echo "no" >&6; }
7455fi
7456
7457
7458fi
7459if test -z "$ac_cv_prog_OTOOL"; then
7460 ac_ct_OTOOL=$OTOOL
7461 # Extract the first word of "otool", so it can be a program name with args.
7462set dummy otool; ac_word=$2
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464$as_echo_n "checking for $ac_word... " >&6; }
7465if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467else
7468 if test -n "$ac_ct_OTOOL"; then
7469 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7470else
7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_ac_ct_OTOOL="otool"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482done
7483 done
7484IFS=$as_save_IFS
7485
7486fi
7487fi
7488ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7489if test -n "$ac_ct_OTOOL"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7491$as_echo "$ac_ct_OTOOL" >&6; }
7492else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494$as_echo "no" >&6; }
7495fi
7496
7497 if test "x$ac_ct_OTOOL" = x; then
7498 OTOOL=":"
7499 else
7500 case $cross_compiling:$ac_tool_warned in
7501yes:)
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7504ac_tool_warned=yes ;;
7505esac
7506 OTOOL=$ac_ct_OTOOL
7507 fi
7508else
7509 OTOOL="$ac_cv_prog_OTOOL"
7510fi
7511
7512 if test -n "$ac_tool_prefix"; then
7513 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7514set dummy ${ac_tool_prefix}otool64; ac_word=$2
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516$as_echo_n "checking for $ac_word... " >&6; }
7517if ${ac_cv_prog_OTOOL64+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519else
7520 if test -n "$OTOOL64"; then
7521 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534done
7535 done
7536IFS=$as_save_IFS
7537
7538fi
7539fi
7540OTOOL64=$ac_cv_prog_OTOOL64
7541if test -n "$OTOOL64"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7543$as_echo "$OTOOL64" >&6; }
7544else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547fi
7548
7549
7550fi
7551if test -z "$ac_cv_prog_OTOOL64"; then
7552 ac_ct_OTOOL64=$OTOOL64
7553 # Extract the first word of "otool64", so it can be a program name with args.
7554set dummy otool64; ac_word=$2
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556$as_echo_n "checking for $ac_word... " >&6; }
7557if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7558 $as_echo_n "(cached) " >&6
7559else
7560 if test -n "$ac_ct_OTOOL64"; then
7561 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7562else
7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_ac_ct_OTOOL64="otool64"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574done
7575 done
7576IFS=$as_save_IFS
7577
7578fi
7579fi
7580ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7581if test -n "$ac_ct_OTOOL64"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7583$as_echo "$ac_ct_OTOOL64" >&6; }
7584else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586$as_echo "no" >&6; }
7587fi
7588
7589 if test "x$ac_ct_OTOOL64" = x; then
7590 OTOOL64=":"
7591 else
7592 case $cross_compiling:$ac_tool_warned in
7593yes:)
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7596ac_tool_warned=yes ;;
7597esac
7598 OTOOL64=$ac_ct_OTOOL64
7599 fi
7600else
7601 OTOOL64="$ac_cv_prog_OTOOL64"
7602fi
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
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7631$as_echo_n "checking for -single_module linker flag... " >&6; }
7632if ${lt_cv_apple_cc_single_mod+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634else
7635 lt_cv_apple_cc_single_mod=no
7636 if test -z "${LT_MULTI_MODULE}"; then
7637 # By default we will add the -single_module flag. You can override
7638 # by either setting the environment variable LT_MULTI_MODULE
7639 # non-empty at configure time, or by adding -multi_module to the
7640 # link flags.
7641 rm -rf libconftest.dylib*
7642 echo "int foo(void){return 1;}" > conftest.c
7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7644-dynamiclib -Wl,-single_module conftest.c" >&5
7645 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7646 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7647 _lt_result=$?
7648 # If there is a non-empty error log, and "single_module"
7649 # appears in it, assume the flag caused a linker warning
7650 if test -s conftest.err && $GREP single_module conftest.err; then
7651 cat conftest.err >&5
7652 # Otherwise, if the output was created with a 0 exit code from
7653 # the compiler, it worked.
7654 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7655 lt_cv_apple_cc_single_mod=yes
7656 else
7657 cat conftest.err >&5
7658 fi
7659 rm -rf libconftest.dylib*
7660 rm -f conftest.*
7661 fi
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7664$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7667$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7668if ${lt_cv_ld_exported_symbols_list+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670else
7671 lt_cv_ld_exported_symbols_list=no
7672 save_LDFLAGS=$LDFLAGS
7673 echo "_main" > conftest.sym
7674 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h. */
7677
7678int
7679main ()
7680{
7681
7682 ;
7683 return 0;
7684}
7685_ACEOF
7686if ac_fn_c_try_link "$LINENO"; then :
7687 lt_cv_ld_exported_symbols_list=yes
7688else
7689 lt_cv_ld_exported_symbols_list=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 LDFLAGS="$save_LDFLAGS"
7694
7695fi
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7697$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7700$as_echo_n "checking for -force_load linker flag... " >&6; }
7701if ${lt_cv_ld_force_load+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703else
7704 lt_cv_ld_force_load=no
7705 cat > conftest.c << _LT_EOF
7706int forced_loaded() { return 2;}
7707_LT_EOF
7708 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7709 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7710 echo "$AR cru libconftest.a conftest.o" >&5
7711 $AR cru libconftest.a conftest.o 2>&5
7712 echo "$RANLIB libconftest.a" >&5
7713 $RANLIB libconftest.a 2>&5
7714 cat > conftest.c << _LT_EOF
7715int main() { return 0;}
7716_LT_EOF
7717 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7718 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7719 _lt_result=$?
7720 if test -s conftest.err && $GREP force_load conftest.err; then
7721 cat conftest.err >&5
7722 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7723 lt_cv_ld_force_load=yes
7724 else
7725 cat conftest.err >&5
7726 fi
7727 rm -f conftest.err libconftest.a conftest conftest.c
7728 rm -rf conftest.dSYM
7729
7730fi
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7732$as_echo "$lt_cv_ld_force_load" >&6; }
7733 case $host_os in
7734 rhapsody* | darwin1.[012])
7735 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7736 darwin1.*)
7737 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7738 darwin*) # darwin 5.x on
7739 # if running on 10.5 or later, the deployment target defaults
7740 # to the OS version, if on x86, and 10.4, the deployment
7741 # target defaults to 10.4. Don't you love it?
7742 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7743 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7744 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7745 10.[012]*)
7746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7747 10.*)
7748 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7749 esac
7750 ;;
7751 esac
7752 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7753 _lt_dar_single_mod='$single_module'
7754 fi
7755 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7756 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7757 else
7758 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7759 fi
7760 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7761 _lt_dsymutil='~$DSYMUTIL $lib || :'
7762 else
7763 _lt_dsymutil=
7764 fi
7765 ;;
7766 esac
7767
7768ac_ext=c
7769ac_cpp='$CPP $CPPFLAGS'
7770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7774$as_echo_n "checking how to run the C preprocessor... " >&6; }
7775# On Suns, sometimes $CPP names a directory.
7776if test -n "$CPP" && test -d "$CPP"; then
7777 CPP=
7778fi
7779if test -z "$CPP"; then
7780 if ${ac_cv_prog_CPP+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 # Double quotes because CPP needs to be expanded
7784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7785 do
7786 ac_preproc_ok=false
7787for ac_c_preproc_warn_flag in '' yes
7788do
7789 # Use a header file that comes with gcc, so configuring glibc
7790 # with a fresh cross-compiler works.
7791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792 # <limits.h> exists even on freestanding compilers.
7793 # On the NeXT, cc -E runs the code through the compiler's parser,
7794 # not just through cpp. "Syntax error" is here to catch this case.
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h. */
7797#ifdef __STDC__
7798# include <limits.h>
7799#else
7800# include <assert.h>
7801#endif
7802 Syntax error
7803_ACEOF
7804if ac_fn_c_try_cpp "$LINENO"; then :
7805
7806else
7807 # Broken: fails on valid input.
7808continue
7809fi
7810rm -f conftest.err conftest.i conftest.$ac_ext
7811
7812 # OK, works on sane cases. Now check whether nonexistent headers
7813 # can be detected and how.
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h. */
7816#include <ac_nonexistent.h>
7817_ACEOF
7818if ac_fn_c_try_cpp "$LINENO"; then :
7819 # Broken: success on invalid input.
7820continue
7821else
7822 # Passes both tests.
7823ac_preproc_ok=:
7824break
7825fi
7826rm -f conftest.err conftest.i conftest.$ac_ext
7827
7828done
7829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7830rm -f conftest.i conftest.err conftest.$ac_ext
7831if $ac_preproc_ok; then :
7832 break
7833fi
7834
7835 done
7836 ac_cv_prog_CPP=$CPP
7837
7838fi
7839 CPP=$ac_cv_prog_CPP
7840else
7841 ac_cv_prog_CPP=$CPP
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7844$as_echo "$CPP" >&6; }
7845ac_preproc_ok=false
7846for ac_c_preproc_warn_flag in '' yes
7847do
7848 # Use a header file that comes with gcc, so configuring glibc
7849 # with a fresh cross-compiler works.
7850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7851 # <limits.h> exists even on freestanding compilers.
7852 # On the NeXT, cc -E runs the code through the compiler's parser,
7853 # not just through cpp. "Syntax error" is here to catch this case.
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h. */
7856#ifdef __STDC__
7857# include <limits.h>
7858#else
7859# include <assert.h>
7860#endif
7861 Syntax error
7862_ACEOF
7863if ac_fn_c_try_cpp "$LINENO"; then :
7864
7865else
7866 # Broken: fails on valid input.
7867continue
7868fi
7869rm -f conftest.err conftest.i conftest.$ac_ext
7870
7871 # OK, works on sane cases. Now check whether nonexistent headers
7872 # can be detected and how.
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h. */
7875#include <ac_nonexistent.h>
7876_ACEOF
7877if ac_fn_c_try_cpp "$LINENO"; then :
7878 # Broken: success on invalid input.
7879continue
7880else
7881 # Passes both tests.
7882ac_preproc_ok=:
7883break
7884fi
7885rm -f conftest.err conftest.i conftest.$ac_ext
7886
7887done
7888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7889rm -f conftest.i conftest.err conftest.$ac_ext
7890if $ac_preproc_ok; then :
7891
7892else
7893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7895as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7896See \`config.log' for more details" "$LINENO" 5; }
7897fi
7898
7899ac_ext=c
7900ac_cpp='$CPP $CPPFLAGS'
7901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7907$as_echo_n "checking for ANSI C header files... " >&6; }
7908if ${ac_cv_header_stdc+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910else
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h. */
7913#include <stdlib.h>
7914#include <stdarg.h>
7915#include <string.h>
7916#include <float.h>
7917
7918int
7919main ()
7920{
7921
7922 ;
7923 return 0;
7924}
7925_ACEOF
7926if ac_fn_c_try_compile "$LINENO"; then :
7927 ac_cv_header_stdc=yes
7928else
7929 ac_cv_header_stdc=no
7930fi
7931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932
7933if test $ac_cv_header_stdc = yes; then
7934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h. */
7937#include <string.h>
7938
7939_ACEOF
7940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7941 $EGREP "memchr" >/dev/null 2>&1; then :
7942
7943else
7944 ac_cv_header_stdc=no
7945fi
7946rm -f conftest*
7947
7948fi
7949
7950if test $ac_cv_header_stdc = yes; then
7951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h. */
7954#include <stdlib.h>
7955
7956_ACEOF
7957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958 $EGREP "free" >/dev/null 2>&1; then :
7959
7960else
7961 ac_cv_header_stdc=no
7962fi
7963rm -f conftest*
7964
7965fi
7966
7967if test $ac_cv_header_stdc = yes; then
7968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7969 if test "$cross_compiling" = yes; then :
7970 :
7971else
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h. */
7974#include <ctype.h>
7975#include <stdlib.h>
7976#if ((' ' & 0x0FF) == 0x020)
7977# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7978# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7979#else
7980# define ISLOWER(c) \
7981 (('a' <= (c) && (c) <= 'i') \
7982 || ('j' <= (c) && (c) <= 'r') \
7983 || ('s' <= (c) && (c) <= 'z'))
7984# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7985#endif
7986
7987#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7988int
7989main ()
7990{
7991 int i;
7992 for (i = 0; i < 256; i++)
7993 if (XOR (islower (i), ISLOWER (i))
7994 || toupper (i) != TOUPPER (i))
7995 return 2;
7996 return 0;
7997}
7998_ACEOF
7999if ac_fn_c_try_run "$LINENO"; then :
8000
8001else
8002 ac_cv_header_stdc=no
8003fi
8004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8005 conftest.$ac_objext conftest.beam conftest.$ac_ext
8006fi
8007
8008fi
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8011$as_echo "$ac_cv_header_stdc" >&6; }
8012if test $ac_cv_header_stdc = yes; then
8013
8014$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8015
8016fi
8017
8018# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8019for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8020 inttypes.h stdint.h unistd.h
8021do :
8022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8023ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8024"
8025if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8026 cat >>confdefs.h <<_ACEOF
8027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8028_ACEOF
8029
8030fi
8031
8032done
8033
8034
8035for ac_header in dlfcn.h
8036do :
8037 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8038"
8039if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8040 cat >>confdefs.h <<_ACEOF
8041#define HAVE_DLFCN_H 1
8042_ACEOF
8043
8044fi
8045
8046done
8047
8048
8049
8050
8051
8052# Set options
8053
8054
8055
8056 enable_dlopen=no
8057
8058
8059 enable_win32_dll=no
8060
8061
8062 # Check whether --enable-shared was given.
8063if test "${enable_shared+set}" = set; then :
8064 enableval=$enable_shared; p=${PACKAGE-default}
8065 case $enableval in
8066 yes) enable_shared=yes ;;
8067 no) enable_shared=no ;;
8068 *)
8069 enable_shared=no
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8072 for pkg in $enableval; do
8073 IFS="$lt_save_ifs"
8074 if test "X$pkg" = "X$p"; then
8075 enable_shared=yes
8076 fi
8077 done
8078 IFS="$lt_save_ifs"
8079 ;;
8080 esac
8081else
8082 enable_shared=yes
8083fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 # Check whether --enable-static was given.
8094if test "${enable_static+set}" = set; then :
8095 enableval=$enable_static; p=${PACKAGE-default}
8096 case $enableval in
8097 yes) enable_static=yes ;;
8098 no) enable_static=no ;;
8099 *)
8100 enable_static=no
8101 # Look at the argument we got. We use all the common list separators.
8102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8103 for pkg in $enableval; do
8104 IFS="$lt_save_ifs"
8105 if test "X$pkg" = "X$p"; then
8106 enable_static=yes
8107 fi
8108 done
8109 IFS="$lt_save_ifs"
8110 ;;
8111 esac
8112else
8113 enable_static=yes
8114fi
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125# Check whether --with-pic was given.
8126if test "${with_pic+set}" = set; then :
8127 withval=$with_pic; lt_p=${PACKAGE-default}
8128 case $withval in
8129 yes|no) pic_mode=$withval ;;
8130 *)
8131 pic_mode=default
8132 # Look at the argument we got. We use all the common list separators.
8133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134 for lt_pkg in $withval; do
8135 IFS="$lt_save_ifs"
8136 if test "X$lt_pkg" = "X$lt_p"; then
8137 pic_mode=yes
8138 fi
8139 done
8140 IFS="$lt_save_ifs"
8141 ;;
8142 esac
8143else
8144 pic_mode=default
8145fi
8146
8147
8148test -z "$pic_mode" && pic_mode=default
8149
8150
8151
8152
8153
8154
8155
8156 # Check whether --enable-fast-install was given.
8157if test "${enable_fast_install+set}" = set; then :
8158 enableval=$enable_fast_install; p=${PACKAGE-default}
8159 case $enableval in
8160 yes) enable_fast_install=yes ;;
8161 no) enable_fast_install=no ;;
8162 *)
8163 enable_fast_install=no
8164 # Look at the argument we got. We use all the common list separators.
8165 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8166 for pkg in $enableval; do
8167 IFS="$lt_save_ifs"
8168 if test "X$pkg" = "X$p"; then
8169 enable_fast_install=yes
8170 fi
8171 done
8172 IFS="$lt_save_ifs"
8173 ;;
8174 esac
8175else
8176 enable_fast_install=yes
8177fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189# This can be used to rebuild libtool when needed
8190LIBTOOL_DEPS="$ltmain"
8191
8192# Always use our own libtool.
8193LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8223
8224test -z "$LN_S" && LN_S="ln -s"
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239if test -n "${ZSH_VERSION+set}" ; then
8240 setopt NO_GLOB_SUBST
8241fi
8242
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8244$as_echo_n "checking for objdir... " >&6; }
8245if ${lt_cv_objdir+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247else
8248 rm -f .libs 2>/dev/null
8249mkdir .libs 2>/dev/null
8250if test -d .libs; then
8251 lt_cv_objdir=.libs
8252else
8253 # MS-DOS does not allow filenames that begin with a dot.
8254 lt_cv_objdir=_libs
8255fi
8256rmdir .libs 2>/dev/null
8257fi
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8259$as_echo "$lt_cv_objdir" >&6; }
8260objdir=$lt_cv_objdir
8261
8262
8263
8264
8265
8266cat >>confdefs.h <<_ACEOF
8267#define LT_OBJDIR "$lt_cv_objdir/"
8268_ACEOF
8269
8270
8271
8272
8273case $host_os in
8274aix3*)
8275 # AIX sometimes has problems with the GCC collect2 program. For some
8276 # reason, if we set the COLLECT_NAMES environment variable, the problems
8277 # vanish in a puff of smoke.
8278 if test "X${COLLECT_NAMES+set}" != Xset; then
8279 COLLECT_NAMES=
8280 export COLLECT_NAMES
8281 fi
8282 ;;
8283esac
8284
8285# Global variables:
8286ofile=libtool
8287can_build_shared=yes
8288
8289# All known linkers require a `.a' archive for static linking (except MSVC,
8290# which needs '.lib').
8291libext=a
8292
8293with_gnu_ld="$lt_cv_prog_gnu_ld"
8294
8295old_CC="$CC"
8296old_CFLAGS="$CFLAGS"
8297
8298# Set sane defaults for various variables
8299test -z "$CC" && CC=cc
8300test -z "$LTCC" && LTCC=$CC
8301test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8302test -z "$LD" && LD=ld
8303test -z "$ac_objext" && ac_objext=o
8304
8305for cc_temp in $compiler""; do
8306 case $cc_temp in
8307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8309 \-*) ;;
8310 *) break;;
8311 esac
8312done
8313cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8314
8315
8316# Only perform the check for file, if the check method requires it
8317test -z "$MAGIC_CMD" && MAGIC_CMD=file
8318case $deplibs_check_method in
8319file_magic*)
8320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8322$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8323if ${lt_cv_path_MAGIC_CMD+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325else
8326 case $MAGIC_CMD in
8327[\\/*] | ?:[\\/]*)
8328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8329 ;;
8330*)
8331 lt_save_MAGIC_CMD="$MAGIC_CMD"
8332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8333 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8334 for ac_dir in $ac_dummy; do
8335 IFS="$lt_save_ifs"
8336 test -z "$ac_dir" && ac_dir=.
8337 if test -f $ac_dir/${ac_tool_prefix}file; then
8338 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8339 if test -n "$file_magic_test_file"; then
8340 case $deplibs_check_method in
8341 "file_magic "*)
8342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8345 $EGREP "$file_magic_regex" > /dev/null; then
8346 :
8347 else
8348 cat <<_LT_EOF 1>&2
8349
8350*** Warning: the command libtool uses to detect shared libraries,
8351*** $file_magic_cmd, produces output that libtool cannot recognize.
8352*** The result is that libtool may fail to recognize shared libraries
8353*** as such. This will affect the creation of libtool libraries that
8354*** depend on shared libraries, but programs linked with such libtool
8355*** libraries will work regardless of this problem. Nevertheless, you
8356*** may want to report the problem to your system manager and/or to
8357*** bug-libtool@gnu.org
8358
8359_LT_EOF
8360 fi ;;
8361 esac
8362 fi
8363 break
8364 fi
8365 done
8366 IFS="$lt_save_ifs"
8367 MAGIC_CMD="$lt_save_MAGIC_CMD"
8368 ;;
8369esac
8370fi
8371
8372MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8373if test -n "$MAGIC_CMD"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8375$as_echo "$MAGIC_CMD" >&6; }
8376else
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
8379fi
8380
8381
8382
8383
8384
8385if test -z "$lt_cv_path_MAGIC_CMD"; then
8386 if test -n "$ac_tool_prefix"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8388$as_echo_n "checking for file... " >&6; }
8389if ${lt_cv_path_MAGIC_CMD+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391else
8392 case $MAGIC_CMD in
8393[\\/*] | ?:[\\/]*)
8394 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8395 ;;
8396*)
8397 lt_save_MAGIC_CMD="$MAGIC_CMD"
8398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8399 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8400 for ac_dir in $ac_dummy; do
8401 IFS="$lt_save_ifs"
8402 test -z "$ac_dir" && ac_dir=.
8403 if test -f $ac_dir/file; then
8404 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8405 if test -n "$file_magic_test_file"; then
8406 case $deplibs_check_method in
8407 "file_magic "*)
8408 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8410 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8411 $EGREP "$file_magic_regex" > /dev/null; then
8412 :
8413 else
8414 cat <<_LT_EOF 1>&2
8415
8416*** Warning: the command libtool uses to detect shared libraries,
8417*** $file_magic_cmd, produces output that libtool cannot recognize.
8418*** The result is that libtool may fail to recognize shared libraries
8419*** as such. This will affect the creation of libtool libraries that
8420*** depend on shared libraries, but programs linked with such libtool
8421*** libraries will work regardless of this problem. Nevertheless, you
8422*** may want to report the problem to your system manager and/or to
8423*** bug-libtool@gnu.org
8424
8425_LT_EOF
8426 fi ;;
8427 esac
8428 fi
8429 break
8430 fi
8431 done
8432 IFS="$lt_save_ifs"
8433 MAGIC_CMD="$lt_save_MAGIC_CMD"
8434 ;;
8435esac
8436fi
8437
8438MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8439if test -n "$MAGIC_CMD"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8441$as_echo "$MAGIC_CMD" >&6; }
8442else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
8445fi
8446
8447
8448 else
8449 MAGIC_CMD=:
8450 fi
8451fi
8452
8453 fi
8454 ;;
8455esac
8456
8457# Use C for the default configuration in the libtool script
8458
8459lt_save_CC="$CC"
8460ac_ext=c
8461ac_cpp='$CPP $CPPFLAGS'
8462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464ac_compiler_gnu=$ac_cv_c_compiler_gnu
8465
8466
8467# Source file extension for C test sources.
8468ac_ext=c
8469
8470# Object file extension for compiled C test sources.
8471objext=o
8472objext=$objext
8473
8474# Code to be used in simple compile tests
8475lt_simple_compile_test_code="int some_variable = 0;"
8476
8477# Code to be used in simple link tests
8478lt_simple_link_test_code='int main(){return(0);}'
8479
8480
8481
8482
8483
8484
8485
8486# If no C compiler was specified, use CC.
8487LTCC=${LTCC-"$CC"}
8488
8489# If no C compiler flags were specified, use CFLAGS.
8490LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8491
8492# Allow CC to be a program name with arguments.
8493compiler=$CC
8494
8495# Save the default compiler, since it gets overwritten when the other
8496# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8497compiler_DEFAULT=$CC
8498
8499# save warnings/boilerplate of simple test code
8500ac_outfile=conftest.$ac_objext
8501echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8502eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8503_lt_compiler_boilerplate=`cat conftest.err`
8504$RM conftest*
8505
8506ac_outfile=conftest.$ac_objext
8507echo "$lt_simple_link_test_code" >conftest.$ac_ext
8508eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8509_lt_linker_boilerplate=`cat conftest.err`
8510$RM -r conftest*
8511
8512
Jeff Thompson23cb7422013-10-09 16:11:47 -07008513## CAVEAT EMPTOR:
8514## There is no encapsulation within the following macros, do not change
8515## the running order or otherwise move them around unless you know exactly
8516## what you are doing...
Jeff Thompson4f031642013-08-05 11:03:16 -07008517if test -n "$compiler"; then
8518
8519lt_prog_compiler_no_builtin_flag=
8520
8521if test "$GCC" = yes; then
8522 case $cc_basename in
8523 nvcc*)
8524 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8525 *)
8526 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8527 esac
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8530$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8531if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533else
8534 lt_cv_prog_compiler_rtti_exceptions=no
8535 ac_outfile=conftest.$ac_objext
8536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8537 lt_compiler_flag="-fno-rtti -fno-exceptions"
8538 # Insert the option either (1) after the last *FLAGS variable, or
8539 # (2) before a word containing "conftest.", or (3) at the end.
8540 # Note that $ac_compile itself does not contain backslashes and begins
8541 # with a dollar sign (not a hyphen), so the echo should work correctly.
8542 # The option is referenced via a variable to avoid confusing sed.
8543 lt_compile=`echo "$ac_compile" | $SED \
8544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8546 -e 's:$: $lt_compiler_flag:'`
8547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8548 (eval "$lt_compile" 2>conftest.err)
8549 ac_status=$?
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 if (exit $ac_status) && test -s "$ac_outfile"; then
8553 # The compiler can only warn and ignore the option if not recognized
8554 # So say no if there are warnings other than the usual output.
8555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8558 lt_cv_prog_compiler_rtti_exceptions=yes
8559 fi
8560 fi
8561 $RM conftest*
8562
8563fi
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8565$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8566
8567if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8569else
8570 :
8571fi
8572
8573fi
8574
8575
8576
8577
8578
8579
8580 lt_prog_compiler_wl=
8581lt_prog_compiler_pic=
8582lt_prog_compiler_static=
8583
8584
8585 if test "$GCC" = yes; then
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_static='-static'
8588
8589 case $host_os in
8590 aix*)
8591 # All AIX code is PIC.
8592 if test "$host_cpu" = ia64; then
8593 # AIX 5 now supports IA64 processor
8594 lt_prog_compiler_static='-Bstatic'
8595 fi
8596 ;;
8597
8598 amigaos*)
8599 case $host_cpu in
8600 powerpc)
8601 # see comment about AmigaOS4 .so support
8602 lt_prog_compiler_pic='-fPIC'
8603 ;;
8604 m68k)
8605 # FIXME: we need at least 68020 code to build shared libraries, but
8606 # adding the `-m68020' flag to GCC prevents building anything better,
8607 # like `-m68040'.
8608 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8609 ;;
8610 esac
8611 ;;
8612
8613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8614 # PIC is the default for these OSes.
8615 ;;
8616
8617 mingw* | cygwin* | pw32* | os2* | cegcc*)
8618 # This hack is so that the source file can tell whether it is being
8619 # built for inclusion in a dll (and should export symbols for example).
8620 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8621 # (--disable-auto-import) libraries
8622 lt_prog_compiler_pic='-DDLL_EXPORT'
8623 ;;
8624
8625 darwin* | rhapsody*)
8626 # PIC is the default on this platform
8627 # Common symbols not allowed in MH_DYLIB files
8628 lt_prog_compiler_pic='-fno-common'
8629 ;;
8630
8631 haiku*)
8632 # PIC is the default for Haiku.
8633 # The "-static" flag exists, but is broken.
8634 lt_prog_compiler_static=
8635 ;;
8636
8637 hpux*)
8638 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8639 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8640 # sets the default TLS model and affects inlining.
8641 case $host_cpu in
8642 hppa*64*)
8643 # +Z the default
8644 ;;
8645 *)
8646 lt_prog_compiler_pic='-fPIC'
8647 ;;
8648 esac
8649 ;;
8650
8651 interix[3-9]*)
8652 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8653 # Instead, we relocate shared libraries at runtime.
8654 ;;
8655
8656 msdosdjgpp*)
8657 # Just because we use GCC doesn't mean we suddenly get shared libraries
8658 # on systems that don't support them.
8659 lt_prog_compiler_can_build_shared=no
8660 enable_shared=no
8661 ;;
8662
8663 *nto* | *qnx*)
8664 # QNX uses GNU C++, but need to define -shared option too, otherwise
8665 # it will coredump.
8666 lt_prog_compiler_pic='-fPIC -shared'
8667 ;;
8668
8669 sysv4*MP*)
8670 if test -d /usr/nec; then
8671 lt_prog_compiler_pic=-Kconform_pic
8672 fi
8673 ;;
8674
8675 *)
8676 lt_prog_compiler_pic='-fPIC'
8677 ;;
8678 esac
8679
8680 case $cc_basename in
8681 nvcc*) # Cuda Compiler Driver 2.2
8682 lt_prog_compiler_wl='-Xlinker '
8683 if test -n "$lt_prog_compiler_pic"; then
8684 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8685 fi
8686 ;;
8687 esac
8688 else
8689 # PORTME Check for flag to pass linker flags through the system compiler.
8690 case $host_os in
8691 aix*)
8692 lt_prog_compiler_wl='-Wl,'
8693 if test "$host_cpu" = ia64; then
8694 # AIX 5 now supports IA64 processor
8695 lt_prog_compiler_static='-Bstatic'
8696 else
8697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8698 fi
8699 ;;
8700
8701 mingw* | cygwin* | pw32* | os2* | cegcc*)
8702 # This hack is so that the source file can tell whether it is being
8703 # built for inclusion in a dll (and should export symbols for example).
8704 lt_prog_compiler_pic='-DDLL_EXPORT'
8705 ;;
8706
8707 hpux9* | hpux10* | hpux11*)
8708 lt_prog_compiler_wl='-Wl,'
8709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8710 # not for PA HP-UX.
8711 case $host_cpu in
8712 hppa*64*|ia64*)
8713 # +Z the default
8714 ;;
8715 *)
8716 lt_prog_compiler_pic='+Z'
8717 ;;
8718 esac
8719 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8720 lt_prog_compiler_static='${wl}-a ${wl}archive'
8721 ;;
8722
8723 irix5* | irix6* | nonstopux*)
8724 lt_prog_compiler_wl='-Wl,'
8725 # PIC (with -KPIC) is the default.
8726 lt_prog_compiler_static='-non_shared'
8727 ;;
8728
8729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8730 case $cc_basename in
8731 # old Intel for x86_64 which still supported -KPIC.
8732 ecc*)
8733 lt_prog_compiler_wl='-Wl,'
8734 lt_prog_compiler_pic='-KPIC'
8735 lt_prog_compiler_static='-static'
8736 ;;
8737 # icc used to be incompatible with GCC.
8738 # ICC 10 doesn't accept -KPIC any more.
8739 icc* | ifort*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-fPIC'
8742 lt_prog_compiler_static='-static'
8743 ;;
8744 # Lahey Fortran 8.1.
8745 lf95*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='--shared'
8748 lt_prog_compiler_static='--static'
8749 ;;
8750 nagfor*)
8751 # NAG Fortran compiler
8752 lt_prog_compiler_wl='-Wl,-Wl,,'
8753 lt_prog_compiler_pic='-PIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 ;;
8756 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8757 # Portland Group compilers (*not* the Pentium gcc compiler,
8758 # which looks to be a dead project)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-fpic'
8761 lt_prog_compiler_static='-Bstatic'
8762 ;;
8763 ccc*)
8764 lt_prog_compiler_wl='-Wl,'
8765 # All Alpha code is PIC.
8766 lt_prog_compiler_static='-non_shared'
8767 ;;
8768 xl* | bgxl* | bgf* | mpixl*)
8769 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-qpic'
8772 lt_prog_compiler_static='-qstaticlink'
8773 ;;
8774 *)
8775 case `$CC -V 2>&1 | sed 5q` in
8776 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8777 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 lt_prog_compiler_wl=''
8781 ;;
8782 *Sun\ F* | *Sun*Fortran*)
8783 lt_prog_compiler_pic='-KPIC'
8784 lt_prog_compiler_static='-Bstatic'
8785 lt_prog_compiler_wl='-Qoption ld '
8786 ;;
8787 *Sun\ C*)
8788 # Sun C 5.9
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_wl='-Wl,'
8792 ;;
8793 *Intel*\ [CF]*Compiler*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='-fPIC'
8796 lt_prog_compiler_static='-static'
8797 ;;
8798 *Portland\ Group*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-fpic'
8801 lt_prog_compiler_static='-Bstatic'
8802 ;;
8803 esac
8804 ;;
8805 esac
8806 ;;
8807
8808 newsos6)
8809 lt_prog_compiler_pic='-KPIC'
8810 lt_prog_compiler_static='-Bstatic'
8811 ;;
8812
8813 *nto* | *qnx*)
8814 # QNX uses GNU C++, but need to define -shared option too, otherwise
8815 # it will coredump.
8816 lt_prog_compiler_pic='-fPIC -shared'
8817 ;;
8818
8819 osf3* | osf4* | osf5*)
8820 lt_prog_compiler_wl='-Wl,'
8821 # All OSF/1 code is PIC.
8822 lt_prog_compiler_static='-non_shared'
8823 ;;
8824
8825 rdos*)
8826 lt_prog_compiler_static='-non_shared'
8827 ;;
8828
8829 solaris*)
8830 lt_prog_compiler_pic='-KPIC'
8831 lt_prog_compiler_static='-Bstatic'
8832 case $cc_basename in
8833 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8834 lt_prog_compiler_wl='-Qoption ld ';;
8835 *)
8836 lt_prog_compiler_wl='-Wl,';;
8837 esac
8838 ;;
8839
8840 sunos4*)
8841 lt_prog_compiler_wl='-Qoption ld '
8842 lt_prog_compiler_pic='-PIC'
8843 lt_prog_compiler_static='-Bstatic'
8844 ;;
8845
8846 sysv4 | sysv4.2uw2* | sysv4.3*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-KPIC'
8849 lt_prog_compiler_static='-Bstatic'
8850 ;;
8851
8852 sysv4*MP*)
8853 if test -d /usr/nec ;then
8854 lt_prog_compiler_pic='-Kconform_pic'
8855 lt_prog_compiler_static='-Bstatic'
8856 fi
8857 ;;
8858
8859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-Bstatic'
8863 ;;
8864
8865 unicos*)
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_can_build_shared=no
8868 ;;
8869
8870 uts4*)
8871 lt_prog_compiler_pic='-pic'
8872 lt_prog_compiler_static='-Bstatic'
8873 ;;
8874
8875 *)
8876 lt_prog_compiler_can_build_shared=no
8877 ;;
8878 esac
8879 fi
8880
8881case $host_os in
8882 # For platforms which do not support PIC, -DPIC is meaningless:
8883 *djgpp*)
8884 lt_prog_compiler_pic=
8885 ;;
8886 *)
8887 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8888 ;;
8889esac
8890
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8892$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8893if ${lt_cv_prog_compiler_pic+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895else
8896 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8899$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8900lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8901
8902#
8903# Check to make sure the PIC flag actually works.
8904#
8905if test -n "$lt_prog_compiler_pic"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8907$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8908if ${lt_cv_prog_compiler_pic_works+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910else
8911 lt_cv_prog_compiler_pic_works=no
8912 ac_outfile=conftest.$ac_objext
8913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8914 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8915 # Insert the option either (1) after the last *FLAGS variable, or
8916 # (2) before a word containing "conftest.", or (3) at the end.
8917 # Note that $ac_compile itself does not contain backslashes and begins
8918 # with a dollar sign (not a hyphen), so the echo should work correctly.
8919 # The option is referenced via a variable to avoid confusing sed.
8920 lt_compile=`echo "$ac_compile" | $SED \
8921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8923 -e 's:$: $lt_compiler_flag:'`
8924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8925 (eval "$lt_compile" 2>conftest.err)
8926 ac_status=$?
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 if (exit $ac_status) && test -s "$ac_outfile"; then
8930 # The compiler can only warn and ignore the option if not recognized
8931 # So say no if there are warnings other than the usual output.
8932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8935 lt_cv_prog_compiler_pic_works=yes
8936 fi
8937 fi
8938 $RM conftest*
8939
8940fi
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8942$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8943
8944if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8945 case $lt_prog_compiler_pic in
8946 "" | " "*) ;;
8947 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8948 esac
8949else
8950 lt_prog_compiler_pic=
8951 lt_prog_compiler_can_build_shared=no
8952fi
8953
8954fi
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966#
8967# Check to make sure the static flag actually works.
8968#
8969wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8971$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8972if ${lt_cv_prog_compiler_static_works+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974else
8975 lt_cv_prog_compiler_static_works=no
8976 save_LDFLAGS="$LDFLAGS"
8977 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8978 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8979 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8980 # The linker can only warn and ignore the option if not recognized
8981 # So say no if there are warnings
8982 if test -s conftest.err; then
8983 # Append any errors to the config.log.
8984 cat conftest.err 1>&5
8985 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987 if diff conftest.exp conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_static_works=yes
8989 fi
8990 else
8991 lt_cv_prog_compiler_static_works=yes
8992 fi
8993 fi
8994 $RM -r conftest*
8995 LDFLAGS="$save_LDFLAGS"
8996
8997fi
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8999$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9000
9001if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9002 :
9003else
9004 lt_prog_compiler_static=
9005fi
9006
9007
9008
9009
9010
9011
9012
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9014$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9015if ${lt_cv_prog_compiler_c_o+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017else
9018 lt_cv_prog_compiler_c_o=no
9019 $RM -r conftest 2>/dev/null
9020 mkdir conftest
9021 cd conftest
9022 mkdir out
9023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9024
9025 lt_compiler_flag="-o out/conftest2.$ac_objext"
9026 # Insert the option either (1) after the last *FLAGS variable, or
9027 # (2) before a word containing "conftest.", or (3) at the end.
9028 # Note that $ac_compile itself does not contain backslashes and begins
9029 # with a dollar sign (not a hyphen), so the echo should work correctly.
9030 lt_compile=`echo "$ac_compile" | $SED \
9031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9033 -e 's:$: $lt_compiler_flag:'`
9034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9035 (eval "$lt_compile" 2>out/conftest.err)
9036 ac_status=$?
9037 cat out/conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9040 then
9041 # The compiler can only warn and ignore the option if not recognized
9042 # So say no if there are warnings
9043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9046 lt_cv_prog_compiler_c_o=yes
9047 fi
9048 fi
9049 chmod u+w . 2>&5
9050 $RM conftest*
9051 # SGI C++ compiler will create directory out/ii_files/ for
9052 # template instantiation
9053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9054 $RM out/* && rmdir out
9055 cd ..
9056 $RM -r conftest
9057 $RM conftest*
9058
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9061$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9062
9063
9064
9065
9066
9067
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9069$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9070if ${lt_cv_prog_compiler_c_o+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072else
9073 lt_cv_prog_compiler_c_o=no
9074 $RM -r conftest 2>/dev/null
9075 mkdir conftest
9076 cd conftest
9077 mkdir out
9078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079
9080 lt_compiler_flag="-o out/conftest2.$ac_objext"
9081 # Insert the option either (1) after the last *FLAGS variable, or
9082 # (2) before a word containing "conftest.", or (3) at the end.
9083 # Note that $ac_compile itself does not contain backslashes and begins
9084 # with a dollar sign (not a hyphen), so the echo should work correctly.
9085 lt_compile=`echo "$ac_compile" | $SED \
9086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088 -e 's:$: $lt_compiler_flag:'`
9089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9090 (eval "$lt_compile" 2>out/conftest.err)
9091 ac_status=$?
9092 cat out/conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9095 then
9096 # The compiler can only warn and ignore the option if not recognized
9097 # So say no if there are warnings
9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9101 lt_cv_prog_compiler_c_o=yes
9102 fi
9103 fi
9104 chmod u+w . 2>&5
9105 $RM conftest*
9106 # SGI C++ compiler will create directory out/ii_files/ for
9107 # template instantiation
9108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9109 $RM out/* && rmdir out
9110 cd ..
9111 $RM -r conftest
9112 $RM conftest*
9113
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9116$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9117
9118
9119
9120
9121hard_links="nottested"
9122if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9123 # do not overwrite the value of need_locks provided by the user
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9125$as_echo_n "checking if we can lock with hard links... " >&6; }
9126 hard_links=yes
9127 $RM conftest*
9128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9129 touch conftest.a
9130 ln conftest.a conftest.b 2>&5 || hard_links=no
9131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9133$as_echo "$hard_links" >&6; }
9134 if test "$hard_links" = no; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9136$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9137 need_locks=warn
9138 fi
9139else
9140 need_locks=no
9141fi
9142
9143
9144
9145
9146
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9149$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9150
9151 runpath_var=
9152 allow_undefined_flag=
9153 always_export_symbols=no
9154 archive_cmds=
9155 archive_expsym_cmds=
9156 compiler_needs_object=no
9157 enable_shared_with_static_runtimes=no
9158 export_dynamic_flag_spec=
9159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9160 hardcode_automatic=no
9161 hardcode_direct=no
9162 hardcode_direct_absolute=no
9163 hardcode_libdir_flag_spec=
9164 hardcode_libdir_separator=
9165 hardcode_minus_L=no
9166 hardcode_shlibpath_var=unsupported
9167 inherit_rpath=no
9168 link_all_deplibs=unknown
9169 module_cmds=
9170 module_expsym_cmds=
9171 old_archive_from_new_cmds=
9172 old_archive_from_expsyms_cmds=
9173 thread_safe_flag_spec=
9174 whole_archive_flag_spec=
9175 # include_expsyms should be a list of space-separated symbols to be *always*
9176 # included in the symbol list
9177 include_expsyms=
9178 # exclude_expsyms can be an extended regexp of symbols to exclude
9179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9181 # as well as any symbol that contains `d'.
9182 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9184 # platforms (ab)use it in PIC code, but their linkers get confused if
9185 # the symbol is explicitly referenced. Since portable code cannot
9186 # rely on this symbol name, it's probably fine to never include it in
9187 # preloaded symbol tables.
9188 # Exclude shared library initialization/finalization symbols.
9189 extract_expsyms_cmds=
9190
9191 case $host_os in
9192 cygwin* | mingw* | pw32* | cegcc*)
9193 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9194 # When not using gcc, we currently assume that we are using
9195 # Microsoft Visual C++.
9196 if test "$GCC" != yes; then
9197 with_gnu_ld=no
9198 fi
9199 ;;
9200 interix*)
9201 # we just hope/assume this is gcc and not c89 (= MSVC++)
9202 with_gnu_ld=yes
9203 ;;
9204 openbsd*)
9205 with_gnu_ld=no
9206 ;;
9207 esac
9208
9209 ld_shlibs=yes
9210
9211 # On some targets, GNU ld is compatible enough with the native linker
9212 # that we're better off using the native interface for both.
9213 lt_use_gnu_ld_interface=no
9214 if test "$with_gnu_ld" = yes; then
9215 case $host_os in
9216 aix*)
9217 # The AIX port of GNU ld has always aspired to compatibility
9218 # with the native linker. However, as the warning in the GNU ld
9219 # block says, versions before 2.19.5* couldn't really create working
9220 # shared libraries, regardless of the interface used.
9221 case `$LD -v 2>&1` in
9222 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9223 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9224 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9225 *)
9226 lt_use_gnu_ld_interface=yes
9227 ;;
9228 esac
9229 ;;
9230 *)
9231 lt_use_gnu_ld_interface=yes
9232 ;;
9233 esac
9234 fi
9235
9236 if test "$lt_use_gnu_ld_interface" = yes; then
9237 # If archive_cmds runs LD, not CC, wlarc should be empty
9238 wlarc='${wl}'
9239
9240 # Set some defaults for GNU ld with shared library support. These
9241 # are reset later if shared libraries are not supported. Putting them
9242 # here allows them to be overridden if necessary.
9243 runpath_var=LD_RUN_PATH
9244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9245 export_dynamic_flag_spec='${wl}--export-dynamic'
9246 # ancient GNU ld didn't support --whole-archive et. al.
9247 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9248 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9249 else
9250 whole_archive_flag_spec=
9251 fi
9252 supports_anon_versioning=no
9253 case `$LD -v 2>&1` in
9254 *GNU\ gold*) supports_anon_versioning=yes ;;
9255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9258 *\ 2.11.*) ;; # other 2.11 versions
9259 *) supports_anon_versioning=yes ;;
9260 esac
9261
9262 # See if GNU ld supports shared libraries.
9263 case $host_os in
9264 aix[3-9]*)
9265 # On AIX/PPC, the GNU linker is very broken
9266 if test "$host_cpu" != ia64; then
9267 ld_shlibs=no
9268 cat <<_LT_EOF 1>&2
9269
9270*** Warning: the GNU linker, at least up to release 2.19, is reported
9271*** to be unable to reliably create shared libraries on AIX.
9272*** Therefore, libtool is disabling shared libraries support. If you
9273*** really care for shared libraries, you may want to install binutils
9274*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9275*** You will then need to restart the configuration process.
9276
9277_LT_EOF
9278 fi
9279 ;;
9280
9281 amigaos*)
9282 case $host_cpu in
9283 powerpc)
9284 # see comment about AmigaOS4 .so support
9285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 archive_expsym_cmds=''
9287 ;;
9288 m68k)
9289 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)'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 ;;
9293 esac
9294 ;;
9295
9296 beos*)
9297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298 allow_undefined_flag=unsupported
9299 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9300 # support --undefined. This deserves some investigation. FIXME
9301 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 else
9303 ld_shlibs=no
9304 fi
9305 ;;
9306
9307 cygwin* | mingw* | pw32* | cegcc*)
9308 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9309 # as there is no search path for DLLs.
9310 hardcode_libdir_flag_spec='-L$libdir'
9311 export_dynamic_flag_spec='${wl}--export-all-symbols'
9312 allow_undefined_flag=unsupported
9313 always_export_symbols=no
9314 enable_shared_with_static_runtimes=yes
9315 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'
9316 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9317
9318 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9320 # If the export-symbols file already is a .def file (1st line
9321 # is EXPORTS), use it as is; otherwise, prepend...
9322 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9323 cp $export_symbols $output_objdir/$soname.def;
9324 else
9325 echo EXPORTS > $output_objdir/$soname.def;
9326 cat $export_symbols >> $output_objdir/$soname.def;
9327 fi~
9328 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9329 else
9330 ld_shlibs=no
9331 fi
9332 ;;
9333
9334 haiku*)
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 link_all_deplibs=yes
9337 ;;
9338
9339 interix[3-9]*)
9340 hardcode_direct=no
9341 hardcode_shlibpath_var=no
9342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343 export_dynamic_flag_spec='${wl}-E'
9344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9345 # Instead, shared libraries are loaded at an image base (0x10000000 by
9346 # default) and relocated if they conflict, which is a slow very memory
9347 # consuming and fragmenting process. To avoid this, we pick a random,
9348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9349 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9350 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9351 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'
9352 ;;
9353
9354 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9355 tmp_diet=no
9356 if test "$host_os" = linux-dietlibc; then
9357 case $cc_basename in
9358 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9359 esac
9360 fi
9361 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9362 && test "$tmp_diet" = no
9363 then
9364 tmp_addflag=' $pic_flag'
9365 tmp_sharedflag='-shared'
9366 case $cc_basename,$host_cpu in
9367 pgcc*) # Portland Group C compiler
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'
9370 ;;
9371 pgf77* | pgf90* | pgf95* | pgfortran*)
9372 # Portland Group f77 and f90 compilers
9373 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'
9374 tmp_addflag=' $pic_flag -Mnomain' ;;
9375 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9376 tmp_addflag=' -i_dynamic' ;;
9377 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9378 tmp_addflag=' -i_dynamic -nofor_main' ;;
9379 ifc* | ifort*) # Intel Fortran compiler
9380 tmp_addflag=' -nofor_main' ;;
9381 lf95*) # Lahey Fortran 8.1
9382 whole_archive_flag_spec=
9383 tmp_sharedflag='--shared' ;;
9384 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9385 tmp_sharedflag='-qmkshrobj'
9386 tmp_addflag= ;;
9387 nvcc*) # Cuda Compiler Driver 2.2
9388 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'
9389 compiler_needs_object=yes
9390 ;;
9391 esac
9392 case `$CC -V 2>&1 | sed 5q` in
9393 *Sun\ C*) # Sun C 5.9
9394 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'
9395 compiler_needs_object=yes
9396 tmp_sharedflag='-G' ;;
9397 *Sun\ F*) # Sun Fortran 8.3
9398 tmp_sharedflag='-G' ;;
9399 esac
9400 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401
9402 if test "x$supports_anon_versioning" = xyes; then
9403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9405 echo "local: *; };" >> $output_objdir/$libname.ver~
9406 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9407 fi
9408
9409 case $cc_basename in
9410 xlf* | bgf* | bgxlf* | mpixlf*)
9411 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9412 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9415 if test "x$supports_anon_versioning" = xyes; then
9416 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9418 echo "local: *; };" >> $output_objdir/$libname.ver~
9419 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9420 fi
9421 ;;
9422 esac
9423 else
9424 ld_shlibs=no
9425 fi
9426 ;;
9427
9428 netbsd*)
9429 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9430 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9431 wlarc=
9432 else
9433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9435 fi
9436 ;;
9437
9438 solaris*)
9439 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9440 ld_shlibs=no
9441 cat <<_LT_EOF 1>&2
9442
9443*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9444*** create shared libraries on Solaris systems. Therefore, libtool
9445*** is disabling shared libraries support. We urge you to upgrade GNU
9446*** binutils to release 2.9.1 or newer. Another option is to modify
9447*** your PATH or compiler configuration so that the native linker is
9448*** used, and then restart.
9449
9450_LT_EOF
9451 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9454 else
9455 ld_shlibs=no
9456 fi
9457 ;;
9458
9459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9460 case `$LD -v 2>&1` in
9461 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9462 ld_shlibs=no
9463 cat <<_LT_EOF 1>&2
9464
9465*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9466*** reliably create shared libraries on SCO systems. Therefore, libtool
9467*** is disabling shared libraries support. We urge you to upgrade GNU
9468*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9469*** your PATH or compiler configuration so that the native linker is
9470*** used, and then restart.
9471
9472_LT_EOF
9473 ;;
9474 *)
9475 # For security reasons, it is highly recommended that you always
9476 # use absolute paths for naming shared libraries, and exclude the
9477 # DT_RUNPATH tag from executables and libraries. But doing so
9478 # requires that you compile everything twice, which is a pain.
9479 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 else
9484 ld_shlibs=no
9485 fi
9486 ;;
9487 esac
9488 ;;
9489
9490 sunos4*)
9491 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9492 wlarc=
9493 hardcode_direct=yes
9494 hardcode_shlibpath_var=no
9495 ;;
9496
9497 *)
9498 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9501 else
9502 ld_shlibs=no
9503 fi
9504 ;;
9505 esac
9506
9507 if test "$ld_shlibs" = no; then
9508 runpath_var=
9509 hardcode_libdir_flag_spec=
9510 export_dynamic_flag_spec=
9511 whole_archive_flag_spec=
9512 fi
9513 else
9514 # PORTME fill in a description of your system's linker (not GNU ld)
9515 case $host_os in
9516 aix3*)
9517 allow_undefined_flag=unsupported
9518 always_export_symbols=yes
9519 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'
9520 # Note: this linker hardcodes the directories in LIBPATH if there
9521 # are no directories specified by -L.
9522 hardcode_minus_L=yes
9523 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9524 # Neither direct hardcoding nor static linking is supported with a
9525 # broken collect2.
9526 hardcode_direct=unsupported
9527 fi
9528 ;;
9529
9530 aix[4-9]*)
9531 if test "$host_cpu" = ia64; then
9532 # On IA64, the linker does run time linking by default, so we don't
9533 # have to do anything special.
9534 aix_use_runtimelinking=no
9535 exp_sym_flag='-Bexport'
9536 no_entry_flag=""
9537 else
9538 # If we're using GNU nm, then we don't want the "-C" option.
9539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9540 # Also, AIX nm treats weak defined symbols like other global
9541 # defined symbols, whereas GNU nm marks them as "W".
9542 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9543 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'
9544 else
9545 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'
9546 fi
9547 aix_use_runtimelinking=no
9548
9549 # Test if we are trying to use run time linking or normal
9550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9551 # need to do runtime linking.
9552 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9553 for ld_flag in $LDFLAGS; do
9554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9555 aix_use_runtimelinking=yes
9556 break
9557 fi
9558 done
9559 ;;
9560 esac
9561
9562 exp_sym_flag='-bexport'
9563 no_entry_flag='-bnoentry'
9564 fi
9565
9566 # When large executables or shared objects are built, AIX ld can
9567 # have problems creating the table of contents. If linking a library
9568 # or program results in "error TOC overflow" add -mminimal-toc to
9569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9571
9572 archive_cmds=''
9573 hardcode_direct=yes
9574 hardcode_direct_absolute=yes
9575 hardcode_libdir_separator=':'
9576 link_all_deplibs=yes
9577 file_list_spec='${wl}-f,'
9578
9579 if test "$GCC" = yes; then
9580 case $host_os in aix4.[012]|aix4.[012].*)
9581 # We only want to do this on AIX 4.2 and lower, the check
9582 # below for broken collect2 doesn't work under 4.3+
9583 collect2name=`${CC} -print-prog-name=collect2`
9584 if test -f "$collect2name" &&
9585 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9586 then
9587 # We have reworked collect2
9588 :
9589 else
9590 # We have old collect2
9591 hardcode_direct=unsupported
9592 # It fails to find uninstalled libraries when the uninstalled
9593 # path is not listed in the libpath. Setting hardcode_minus_L
9594 # to unsupported forces relinking
9595 hardcode_minus_L=yes
9596 hardcode_libdir_flag_spec='-L$libdir'
9597 hardcode_libdir_separator=
9598 fi
9599 ;;
9600 esac
9601 shared_flag='-shared'
9602 if test "$aix_use_runtimelinking" = yes; then
9603 shared_flag="$shared_flag "'${wl}-G'
9604 fi
9605 else
9606 # not using gcc
9607 if test "$host_cpu" = ia64; then
9608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9609 # chokes on -Wl,-G. The following line is correct:
9610 shared_flag='-G'
9611 else
9612 if test "$aix_use_runtimelinking" = yes; then
9613 shared_flag='${wl}-G'
9614 else
9615 shared_flag='${wl}-bM:SRE'
9616 fi
9617 fi
9618 fi
9619
9620 export_dynamic_flag_spec='${wl}-bexpall'
9621 # It seems that -bexpall does not export symbols beginning with
9622 # underscore (_), so it is better to generate a list of symbols to export.
9623 always_export_symbols=yes
9624 if test "$aix_use_runtimelinking" = yes; then
9625 # Warning - without using the other runtime loading flags (-brtl),
9626 # -berok will link without error, but may produce a broken library.
9627 allow_undefined_flag='-berok'
9628 # Determine the default libpath from the value encoded in an
9629 # empty executable.
9630 if test "${lt_cv_aix_libpath+set}" = set; then
9631 aix_libpath=$lt_cv_aix_libpath
9632else
9633 if ${lt_cv_aix_libpath_+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637/* end confdefs.h. */
9638
9639int
9640main ()
9641{
9642
9643 ;
9644 return 0;
9645}
9646_ACEOF
9647if ac_fn_c_try_link "$LINENO"; then :
9648
9649 lt_aix_libpath_sed='
9650 /Import File Strings/,/^$/ {
9651 /^0/ {
9652 s/^0 *\([^ ]*\) *$/\1/
9653 p
9654 }
9655 }'
9656 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9657 # Check for a 64-bit object if we didn't find anything.
9658 if test -z "$lt_cv_aix_libpath_"; then
9659 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9660 fi
9661fi
9662rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 if test -z "$lt_cv_aix_libpath_"; then
9665 lt_cv_aix_libpath_="/usr/lib:/lib"
9666 fi
9667
9668fi
9669
9670 aix_libpath=$lt_cv_aix_libpath_
9671fi
9672
9673 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9674 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"
9675 else
9676 if test "$host_cpu" = ia64; then
9677 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9678 allow_undefined_flag="-z nodefs"
9679 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"
9680 else
9681 # Determine the default libpath from the value encoded in an
9682 # empty executable.
9683 if test "${lt_cv_aix_libpath+set}" = set; then
9684 aix_libpath=$lt_cv_aix_libpath
9685else
9686 if ${lt_cv_aix_libpath_+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688else
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690/* end confdefs.h. */
9691
9692int
9693main ()
9694{
9695
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700if ac_fn_c_try_link "$LINENO"; then :
9701
9702 lt_aix_libpath_sed='
9703 /Import File Strings/,/^$/ {
9704 /^0/ {
9705 s/^0 *\([^ ]*\) *$/\1/
9706 p
9707 }
9708 }'
9709 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9710 # Check for a 64-bit object if we didn't find anything.
9711 if test -z "$lt_cv_aix_libpath_"; then
9712 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9713 fi
9714fi
9715rm -f core conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 if test -z "$lt_cv_aix_libpath_"; then
9718 lt_cv_aix_libpath_="/usr/lib:/lib"
9719 fi
9720
9721fi
9722
9723 aix_libpath=$lt_cv_aix_libpath_
9724fi
9725
9726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9727 # Warning - without using the other run time loading flags,
9728 # -berok will link without error, but may produce a broken library.
9729 no_undefined_flag=' ${wl}-bernotok'
9730 allow_undefined_flag=' ${wl}-berok'
9731 if test "$with_gnu_ld" = yes; then
9732 # We only use this code for GNU lds that support --whole-archive.
9733 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9734 else
9735 # Exported symbols can be pulled into shared objects from archives
9736 whole_archive_flag_spec='$convenience'
9737 fi
9738 archive_cmds_need_lc=yes
9739 # This is similar to how AIX traditionally builds its shared libraries.
9740 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'
9741 fi
9742 fi
9743 ;;
9744
9745 amigaos*)
9746 case $host_cpu in
9747 powerpc)
9748 # see comment about AmigaOS4 .so support
9749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750 archive_expsym_cmds=''
9751 ;;
9752 m68k)
9753 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)'
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 hardcode_minus_L=yes
9756 ;;
9757 esac
9758 ;;
9759
9760 bsdi[45]*)
9761 export_dynamic_flag_spec=-rdynamic
9762 ;;
9763
9764 cygwin* | mingw* | pw32* | cegcc*)
9765 # When not using gcc, we currently assume that we are using
9766 # Microsoft Visual C++.
9767 # hardcode_libdir_flag_spec is actually meaningless, as there is
9768 # no search path for DLLs.
9769 case $cc_basename in
9770 cl*)
9771 # Native MSVC
9772 hardcode_libdir_flag_spec=' '
9773 allow_undefined_flag=unsupported
9774 always_export_symbols=yes
9775 file_list_spec='@'
9776 # Tell ltmain to make .lib files, not .a files.
9777 libext=lib
9778 # Tell ltmain to make .dll files, not .so files.
9779 shrext_cmds=".dll"
9780 # FIXME: Setting linknames here is a bad hack.
9781 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9782 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9783 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9784 else
9785 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9786 fi~
9787 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9788 linknames='
9789 # The linker will not automatically build a static lib if we build a DLL.
9790 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9791 enable_shared_with_static_runtimes=yes
9792 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9794 # Don't use ranlib
9795 old_postinstall_cmds='chmod 644 $oldlib'
9796 postlink_cmds='lt_outputfile="@OUTPUT@"~
9797 lt_tool_outputfile="@TOOL_OUTPUT@"~
9798 case $lt_outputfile in
9799 *.exe|*.EXE) ;;
9800 *)
9801 lt_outputfile="$lt_outputfile.exe"
9802 lt_tool_outputfile="$lt_tool_outputfile.exe"
9803 ;;
9804 esac~
9805 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9806 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9807 $RM "$lt_outputfile.manifest";
9808 fi'
9809 ;;
9810 *)
9811 # Assume MSVC wrapper
9812 hardcode_libdir_flag_spec=' '
9813 allow_undefined_flag=unsupported
9814 # Tell ltmain to make .lib files, not .a files.
9815 libext=lib
9816 # Tell ltmain to make .dll files, not .so files.
9817 shrext_cmds=".dll"
9818 # FIXME: Setting linknames here is a bad hack.
9819 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9820 # The linker will automatically build a .lib file if we build a DLL.
9821 old_archive_from_new_cmds='true'
9822 # FIXME: Should let the user specify the lib program.
9823 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9824 enable_shared_with_static_runtimes=yes
9825 ;;
9826 esac
9827 ;;
9828
9829 darwin* | rhapsody*)
9830
9831
9832 archive_cmds_need_lc=no
9833 hardcode_direct=no
9834 hardcode_automatic=yes
9835 hardcode_shlibpath_var=unsupported
9836 if test "$lt_cv_ld_force_load" = "yes"; then
9837 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\"`'
9838
9839 else
9840 whole_archive_flag_spec=''
9841 fi
9842 link_all_deplibs=yes
9843 allow_undefined_flag="$_lt_dar_allow_undefined"
9844 case $cc_basename in
9845 ifort*) _lt_dar_can_shared=yes ;;
9846 *) _lt_dar_can_shared=$GCC ;;
9847 esac
9848 if test "$_lt_dar_can_shared" = "yes"; then
9849 output_verbose_link_cmd=func_echo_all
9850 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9851 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9852 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}"
9853 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}"
9854
9855 else
9856 ld_shlibs=no
9857 fi
9858
9859 ;;
9860
9861 dgux*)
9862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863 hardcode_libdir_flag_spec='-L$libdir'
9864 hardcode_shlibpath_var=no
9865 ;;
9866
9867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9868 # support. Future versions do this automatically, but an explicit c++rt0.o
9869 # does not break anything, and helps significantly (at the cost of a little
9870 # extra space).
9871 freebsd2.2*)
9872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9873 hardcode_libdir_flag_spec='-R$libdir'
9874 hardcode_direct=yes
9875 hardcode_shlibpath_var=no
9876 ;;
9877
9878 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9879 freebsd2.*)
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_direct=yes
9882 hardcode_minus_L=yes
9883 hardcode_shlibpath_var=no
9884 ;;
9885
9886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9887 freebsd* | dragonfly*)
9888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9889 hardcode_libdir_flag_spec='-R$libdir'
9890 hardcode_direct=yes
9891 hardcode_shlibpath_var=no
9892 ;;
9893
9894 hpux9*)
9895 if test "$GCC" = yes; then
9896 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'
9897 else
9898 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'
9899 fi
9900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9901 hardcode_libdir_separator=:
9902 hardcode_direct=yes
9903
9904 # hardcode_minus_L: Not really in the search PATH,
9905 # but as the default location of the library.
9906 hardcode_minus_L=yes
9907 export_dynamic_flag_spec='${wl}-E'
9908 ;;
9909
9910 hpux10*)
9911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9912 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9913 else
9914 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9915 fi
9916 if test "$with_gnu_ld" = no; then
9917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9918 hardcode_libdir_separator=:
9919 hardcode_direct=yes
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='${wl}-E'
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L=yes
9925 fi
9926 ;;
9927
9928 hpux11*)
9929 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9930 case $host_cpu in
9931 hppa*64*)
9932 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 ;;
9934 ia64*)
9935 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9936 ;;
9937 *)
9938 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939 ;;
9940 esac
9941 else
9942 case $host_cpu in
9943 hppa*64*)
9944 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 ;;
9946 ia64*)
9947 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948 ;;
9949 *)
9950
9951 # Older versions of the 11.00 compiler do not understand -b yet
9952 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9954$as_echo_n "checking if $CC understands -b... " >&6; }
9955if ${lt_cv_prog_compiler__b+:} false; then :
9956 $as_echo_n "(cached) " >&6
9957else
9958 lt_cv_prog_compiler__b=no
9959 save_LDFLAGS="$LDFLAGS"
9960 LDFLAGS="$LDFLAGS -b"
9961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9963 # The linker can only warn and ignore the option if not recognized
9964 # So say no if there are warnings
9965 if test -s conftest.err; then
9966 # Append any errors to the config.log.
9967 cat conftest.err 1>&5
9968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9970 if diff conftest.exp conftest.er2 >/dev/null; then
9971 lt_cv_prog_compiler__b=yes
9972 fi
9973 else
9974 lt_cv_prog_compiler__b=yes
9975 fi
9976 fi
9977 $RM -r conftest*
9978 LDFLAGS="$save_LDFLAGS"
9979
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9982$as_echo "$lt_cv_prog_compiler__b" >&6; }
9983
9984if test x"$lt_cv_prog_compiler__b" = xyes; then
9985 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986else
9987 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988fi
9989
9990 ;;
9991 esac
9992 fi
9993 if test "$with_gnu_ld" = no; then
9994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995 hardcode_libdir_separator=:
9996
9997 case $host_cpu in
9998 hppa*64*|ia64*)
9999 hardcode_direct=no
10000 hardcode_shlibpath_var=no
10001 ;;
10002 *)
10003 hardcode_direct=yes
10004 hardcode_direct_absolute=yes
10005 export_dynamic_flag_spec='${wl}-E'
10006
10007 # hardcode_minus_L: Not really in the search PATH,
10008 # but as the default location of the library.
10009 hardcode_minus_L=yes
10010 ;;
10011 esac
10012 fi
10013 ;;
10014
10015 irix5* | irix6* | nonstopux*)
10016 if test "$GCC" = yes; then
10017 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'
10018 # Try to use the -exported_symbol ld option, if it does not
10019 # work, assume that -exports_file does not work either and
10020 # implicitly export all symbols.
10021 # This should be the same for all languages, so no per-tag cache variable.
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10023$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10024if ${lt_cv_irix_exported_symbol+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026else
10027 save_LDFLAGS="$LDFLAGS"
10028 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h. */
10031int foo (void) { return 0; }
10032_ACEOF
10033if ac_fn_c_try_link "$LINENO"; then :
10034 lt_cv_irix_exported_symbol=yes
10035else
10036 lt_cv_irix_exported_symbol=no
10037fi
10038rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 LDFLAGS="$save_LDFLAGS"
10041fi
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10043$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10044 if test "$lt_cv_irix_exported_symbol" = yes; then
10045 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'
10046 fi
10047 else
10048 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'
10049 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'
10050 fi
10051 archive_cmds_need_lc='no'
10052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10053 hardcode_libdir_separator=:
10054 inherit_rpath=yes
10055 link_all_deplibs=yes
10056 ;;
10057
10058 netbsd*)
10059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10061 else
10062 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10063 fi
10064 hardcode_libdir_flag_spec='-R$libdir'
10065 hardcode_direct=yes
10066 hardcode_shlibpath_var=no
10067 ;;
10068
10069 newsos6)
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_direct=yes
10072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073 hardcode_libdir_separator=:
10074 hardcode_shlibpath_var=no
10075 ;;
10076
10077 *nto* | *qnx*)
10078 ;;
10079
10080 openbsd*)
10081 if test -f /usr/libexec/ld.so; then
10082 hardcode_direct=yes
10083 hardcode_shlibpath_var=no
10084 hardcode_direct_absolute=yes
10085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10089 export_dynamic_flag_spec='${wl}-E'
10090 else
10091 case $host_os in
10092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_libdir_flag_spec='-R$libdir'
10095 ;;
10096 *)
10097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10098 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099 ;;
10100 esac
10101 fi
10102 else
10103 ld_shlibs=no
10104 fi
10105 ;;
10106
10107 os2*)
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 hardcode_minus_L=yes
10110 allow_undefined_flag=unsupported
10111 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'
10112 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10113 ;;
10114
10115 osf3*)
10116 if test "$GCC" = yes; then
10117 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10118 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'
10119 else
10120 allow_undefined_flag=' -expect_unresolved \*'
10121 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'
10122 fi
10123 archive_cmds_need_lc='no'
10124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125 hardcode_libdir_separator=:
10126 ;;
10127
10128 osf4* | osf5*) # as osf3* with the addition of -msym flag
10129 if test "$GCC" = yes; then
10130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10131 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'
10132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10133 else
10134 allow_undefined_flag=' -expect_unresolved \*'
10135 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'
10136 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~
10137 $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'
10138
10139 # Both c and cxx compiler support -rpath directly
10140 hardcode_libdir_flag_spec='-rpath $libdir'
10141 fi
10142 archive_cmds_need_lc='no'
10143 hardcode_libdir_separator=:
10144 ;;
10145
10146 solaris*)
10147 no_undefined_flag=' -z defs'
10148 if test "$GCC" = yes; then
10149 wlarc='${wl}'
10150 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152 $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'
10153 else
10154 case `$CC -V 2>&1` in
10155 *"Compilers 5.0"*)
10156 wlarc=''
10157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10160 ;;
10161 *)
10162 wlarc='${wl}'
10163 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10165 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10166 ;;
10167 esac
10168 fi
10169 hardcode_libdir_flag_spec='-R$libdir'
10170 hardcode_shlibpath_var=no
10171 case $host_os in
10172 solaris2.[0-5] | solaris2.[0-5].*) ;;
10173 *)
10174 # The compiler driver will combine and reorder linker options,
10175 # but understands `-z linker_flag'. GCC discards it without `$wl',
10176 # but is careful enough not to reorder.
10177 # Supported since Solaris 2.6 (maybe 2.5.1?)
10178 if test "$GCC" = yes; then
10179 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10180 else
10181 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10182 fi
10183 ;;
10184 esac
10185 link_all_deplibs=yes
10186 ;;
10187
10188 sunos4*)
10189 if test "x$host_vendor" = xsequent; then
10190 # Use $CC to link under sequent, because it throws in some extra .o
10191 # files that make .init and .fini sections work.
10192 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10195 fi
10196 hardcode_libdir_flag_spec='-L$libdir'
10197 hardcode_direct=yes
10198 hardcode_minus_L=yes
10199 hardcode_shlibpath_var=no
10200 ;;
10201
10202 sysv4)
10203 case $host_vendor in
10204 sni)
10205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_direct=yes # is this really true???
10207 ;;
10208 siemens)
10209 ## LD is ld it makes a PLAMLIB
10210 ## CC just makes a GrossModule.
10211 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10212 reload_cmds='$CC -r -o $output$reload_objs'
10213 hardcode_direct=no
10214 ;;
10215 motorola)
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10218 ;;
10219 esac
10220 runpath_var='LD_RUN_PATH'
10221 hardcode_shlibpath_var=no
10222 ;;
10223
10224 sysv4.3*)
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_shlibpath_var=no
10227 export_dynamic_flag_spec='-Bexport'
10228 ;;
10229
10230 sysv4*MP*)
10231 if test -d /usr/nec; then
10232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233 hardcode_shlibpath_var=no
10234 runpath_var=LD_RUN_PATH
10235 hardcode_runpath_var=yes
10236 ld_shlibs=yes
10237 fi
10238 ;;
10239
10240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10241 no_undefined_flag='${wl}-z,text'
10242 archive_cmds_need_lc=no
10243 hardcode_shlibpath_var=no
10244 runpath_var='LD_RUN_PATH'
10245
10246 if test "$GCC" = yes; then
10247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 else
10250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 fi
10253 ;;
10254
10255 sysv5* | sco3.2v5* | sco5v6*)
10256 # Note: We can NOT use -z defs as we might desire, because we do not
10257 # link with -lc, and that would cause any symbols used from libc to
10258 # always be unresolved, which means just about no library would
10259 # ever link correctly. If we're not using GNU ld we use -z text
10260 # though, which does catch some bad symbols but isn't as heavy-handed
10261 # as -z defs.
10262 no_undefined_flag='${wl}-z,text'
10263 allow_undefined_flag='${wl}-z,nodefs'
10264 archive_cmds_need_lc=no
10265 hardcode_shlibpath_var=no
10266 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10267 hardcode_libdir_separator=':'
10268 link_all_deplibs=yes
10269 export_dynamic_flag_spec='${wl}-Bexport'
10270 runpath_var='LD_RUN_PATH'
10271
10272 if test "$GCC" = yes; then
10273 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275 else
10276 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10278 fi
10279 ;;
10280
10281 uts4*)
10282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_shlibpath_var=no
10285 ;;
10286
10287 *)
10288 ld_shlibs=no
10289 ;;
10290 esac
10291
10292 if test x$host_vendor = xsni; then
10293 case $host in
10294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10295 export_dynamic_flag_spec='${wl}-Blargedynsym'
10296 ;;
10297 esac
10298 fi
10299 fi
10300
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10302$as_echo "$ld_shlibs" >&6; }
10303test "$ld_shlibs" = no && can_build_shared=no
10304
10305with_gnu_ld=$with_gnu_ld
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321#
10322# Do we need to explicitly link libc?
10323#
10324case "x$archive_cmds_need_lc" in
10325x|xyes)
10326 # Assume -lc should be added
10327 archive_cmds_need_lc=yes
10328
10329 if test "$enable_shared" = yes && test "$GCC" = yes; then
10330 case $archive_cmds in
10331 *'~'*)
10332 # FIXME: we may have to deal with multi-command sequences.
10333 ;;
10334 '$CC '*)
10335 # Test whether the compiler implicitly links with -lc since on some
10336 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10337 # to ld, don't add -lc before -lgcc.
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10339$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10340if ${lt_cv_archive_cmds_need_lc+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342else
10343 $RM conftest*
10344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10345
10346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10347 (eval $ac_compile) 2>&5
10348 ac_status=$?
10349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350 test $ac_status = 0; } 2>conftest.err; then
10351 soname=conftest
10352 lib=conftest
10353 libobjs=conftest.$ac_objext
10354 deplibs=
10355 wl=$lt_prog_compiler_wl
10356 pic_flag=$lt_prog_compiler_pic
10357 compiler_flags=-v
10358 linker_flags=-v
10359 verstring=
10360 output_objdir=.
10361 libname=conftest
10362 lt_save_allow_undefined_flag=$allow_undefined_flag
10363 allow_undefined_flag=
10364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10365 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; }
10369 then
10370 lt_cv_archive_cmds_need_lc=no
10371 else
10372 lt_cv_archive_cmds_need_lc=yes
10373 fi
10374 allow_undefined_flag=$lt_save_allow_undefined_flag
10375 else
10376 cat conftest.err 1>&5
10377 fi
10378 $RM conftest*
10379
10380fi
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10382$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10383 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10384 ;;
10385 esac
10386 fi
10387 ;;
10388esac
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
10537
10538
10539
10540
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10542$as_echo_n "checking dynamic linker characteristics... " >&6; }
10543
10544if test "$GCC" = yes; then
10545 case $host_os in
10546 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10547 *) lt_awk_arg="/^libraries:/" ;;
10548 esac
10549 case $host_os in
10550 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10551 *) lt_sed_strip_eq="s,=/,/,g" ;;
10552 esac
10553 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10554 case $lt_search_path_spec in
10555 *\;*)
10556 # if the path contains ";" then we assume it to be the separator
10557 # otherwise default to the standard path separator (i.e. ":") - it is
10558 # assumed that no part of a normal pathname contains ";" but that should
10559 # okay in the real world where ";" in dirpaths is itself problematic.
10560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10561 ;;
10562 *)
10563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10564 ;;
10565 esac
10566 # Ok, now we have the path, separated by spaces, we can step through it
10567 # and add multilib dir if necessary.
10568 lt_tmp_lt_search_path_spec=
10569 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10570 for lt_sys_path in $lt_search_path_spec; do
10571 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10573 else
10574 test -d "$lt_sys_path" && \
10575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10576 fi
10577 done
10578 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10579BEGIN {RS=" "; FS="/|\n";} {
10580 lt_foo="";
10581 lt_count=0;
10582 for (lt_i = NF; lt_i > 0; lt_i--) {
10583 if ($lt_i != "" && $lt_i != ".") {
10584 if ($lt_i == "..") {
10585 lt_count++;
10586 } else {
10587 if (lt_count == 0) {
10588 lt_foo="/" $lt_i lt_foo;
10589 } else {
10590 lt_count--;
10591 }
10592 }
10593 }
10594 }
10595 if (lt_foo != "") { lt_freq[lt_foo]++; }
10596 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10597}'`
10598 # AWK program above erroneously prepends '/' to C:/dos/paths
10599 # for these hosts.
10600 case $host_os in
10601 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10602 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10603 esac
10604 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10605else
10606 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10607fi
10608library_names_spec=
10609libname_spec='lib$name'
10610soname_spec=
10611shrext_cmds=".so"
10612postinstall_cmds=
10613postuninstall_cmds=
10614finish_cmds=
10615finish_eval=
10616shlibpath_var=
10617shlibpath_overrides_runpath=unknown
10618version_type=none
10619dynamic_linker="$host_os ld.so"
10620sys_lib_dlsearch_path_spec="/lib /usr/lib"
10621need_lib_prefix=unknown
10622hardcode_into_libs=no
10623
10624# when you set need_version to no, make sure it does not cause -set_version
10625# flags to be left without arguments
10626need_version=unknown
10627
10628case $host_os in
10629aix3*)
10630 version_type=linux # correct to gnu/linux during the next big refactor
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10632 shlibpath_var=LIBPATH
10633
10634 # AIX 3 has no versioning support, so we append a major version to the name.
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 ;;
10637
10638aix[4-9]*)
10639 version_type=linux # correct to gnu/linux during the next big refactor
10640 need_lib_prefix=no
10641 need_version=no
10642 hardcode_into_libs=yes
10643 if test "$host_cpu" = ia64; then
10644 # AIX 5 supports IA64
10645 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 else
10648 # With GCC up to 2.95.x, collect2 would create an import file
10649 # for dependence libraries. The import file would start with
10650 # the line `#! .'. This would cause the generated library to
10651 # depend on `.', always an invalid library. This was fixed in
10652 # development snapshots of GCC prior to 3.0.
10653 case $host_os in
10654 aix4 | aix4.[01] | aix4.[01].*)
10655 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10656 echo ' yes '
10657 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10658 :
10659 else
10660 can_build_shared=no
10661 fi
10662 ;;
10663 esac
10664 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10665 # soname into executable. Probably we can add versioning support to
10666 # collect2, so additional links can be useful in future.
10667 if test "$aix_use_runtimelinking" = yes; then
10668 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10669 # instead of lib<name>.a to let people know that these are not
10670 # typical AIX shared libraries.
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 else
10673 # We preserve .a as extension for shared libraries through AIX4.2
10674 # and later when we are not doing run time linking.
10675 library_names_spec='${libname}${release}.a $libname.a'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 fi
10678 shlibpath_var=LIBPATH
10679 fi
10680 ;;
10681
10682amigaos*)
10683 case $host_cpu in
10684 powerpc)
10685 # Since July 2007 AmigaOS4 officially supports .so libraries.
10686 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 ;;
10689 m68k)
10690 library_names_spec='$libname.ixlibrary $libname.a'
10691 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10692 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'
10693 ;;
10694 esac
10695 ;;
10696
10697beos*)
10698 library_names_spec='${libname}${shared_ext}'
10699 dynamic_linker="$host_os ld.so"
10700 shlibpath_var=LIBRARY_PATH
10701 ;;
10702
10703bsdi[45]*)
10704 version_type=linux # correct to gnu/linux during the next big refactor
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10712 # the default ld.so.conf also contains /usr/contrib/lib and
10713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10714 # libtool to hard-code these into programs
10715 ;;
10716
10717cygwin* | mingw* | pw32* | cegcc*)
10718 version_type=windows
10719 shrext_cmds=".dll"
10720 need_version=no
10721 need_lib_prefix=no
10722
10723 case $GCC,$cc_basename in
10724 yes,*)
10725 # gcc
10726 library_names_spec='$libname.dll.a'
10727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10728 postinstall_cmds='base_file=`basename \${file}`~
10729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10730 dldir=$destdir/`dirname \$dlpath`~
10731 test -d \$dldir || mkdir -p \$dldir~
10732 $install_prog $dir/$dlname \$dldir/$dlname~
10733 chmod a+x \$dldir/$dlname~
10734 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10735 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10736 fi'
10737 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10738 dlpath=$dir/\$dldll~
10739 $RM \$dlpath'
10740 shlibpath_overrides_runpath=yes
10741
10742 case $host_os in
10743 cygwin*)
10744 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10745 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10746
10747 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10748 ;;
10749 mingw* | cegcc*)
10750 # MinGW DLLs use traditional 'lib' prefix
10751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752 ;;
10753 pw32*)
10754 # pw32 DLLs use 'pw' prefix rather than 'lib'
10755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10756 ;;
10757 esac
10758 dynamic_linker='Win32 ld.exe'
10759 ;;
10760
10761 *,cl*)
10762 # Native MSVC
10763 libname_spec='$name'
10764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10765 library_names_spec='${libname}.dll.lib'
10766
10767 case $build_os in
10768 mingw*)
10769 sys_lib_search_path_spec=
10770 lt_save_ifs=$IFS
10771 IFS=';'
10772 for lt_path in $LIB
10773 do
10774 IFS=$lt_save_ifs
10775 # Let DOS variable expansion print the short 8.3 style file name.
10776 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10777 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10778 done
10779 IFS=$lt_save_ifs
10780 # Convert to MSYS style.
10781 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10782 ;;
10783 cygwin*)
10784 # Convert to unix form, then to dos form, then back to unix form
10785 # but this time dos style (no spaces!) so that the unix form looks
10786 # like /cygdrive/c/PROGRA~1:/cygdr...
10787 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10788 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10789 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10790 ;;
10791 *)
10792 sys_lib_search_path_spec="$LIB"
10793 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10794 # It is most probably a Windows format PATH.
10795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10796 else
10797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10798 fi
10799 # FIXME: find the short name or the path components, as spaces are
10800 # common. (e.g. "Program Files" -> "PROGRA~1")
10801 ;;
10802 esac
10803
10804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10805 postinstall_cmds='base_file=`basename \${file}`~
10806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10807 dldir=$destdir/`dirname \$dlpath`~
10808 test -d \$dldir || mkdir -p \$dldir~
10809 $install_prog $dir/$dlname \$dldir/$dlname'
10810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10811 dlpath=$dir/\$dldll~
10812 $RM \$dlpath'
10813 shlibpath_overrides_runpath=yes
10814 dynamic_linker='Win32 link.exe'
10815 ;;
10816
10817 *)
10818 # Assume MSVC wrapper
10819 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10820 dynamic_linker='Win32 ld.exe'
10821 ;;
10822 esac
10823 # FIXME: first we should search . and the directory the executable is in
10824 shlibpath_var=PATH
10825 ;;
10826
10827darwin* | rhapsody*)
10828 dynamic_linker="$host_os dyld"
10829 version_type=darwin
10830 need_lib_prefix=no
10831 need_version=no
10832 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10833 soname_spec='${libname}${release}${major}$shared_ext'
10834 shlibpath_overrides_runpath=yes
10835 shlibpath_var=DYLD_LIBRARY_PATH
10836 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10837
10838 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10840 ;;
10841
10842dgux*)
10843 version_type=linux # correct to gnu/linux during the next big refactor
10844 need_lib_prefix=no
10845 need_version=no
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 ;;
10850
10851freebsd* | dragonfly*)
10852 # DragonFly does not have aout. When/if they implement a new
10853 # versioning mechanism, adjust this.
10854 if test -x /usr/bin/objformat; then
10855 objformat=`/usr/bin/objformat`
10856 else
10857 case $host_os in
10858 freebsd[23].*) objformat=aout ;;
10859 *) objformat=elf ;;
10860 esac
10861 fi
10862 version_type=freebsd-$objformat
10863 case $version_type in
10864 freebsd-elf*)
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10866 need_version=no
10867 need_lib_prefix=no
10868 ;;
10869 freebsd-*)
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10871 need_version=yes
10872 ;;
10873 esac
10874 shlibpath_var=LD_LIBRARY_PATH
10875 case $host_os in
10876 freebsd2.*)
10877 shlibpath_overrides_runpath=yes
10878 ;;
10879 freebsd3.[01]* | freebsdelf3.[01]*)
10880 shlibpath_overrides_runpath=yes
10881 hardcode_into_libs=yes
10882 ;;
10883 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10884 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10885 shlibpath_overrides_runpath=no
10886 hardcode_into_libs=yes
10887 ;;
10888 *) # from 4.6 on, and DragonFly
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10891 ;;
10892 esac
10893 ;;
10894
10895gnu*)
10896 version_type=linux # correct to gnu/linux during the next big refactor
10897 need_lib_prefix=no
10898 need_version=no
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=no
10903 hardcode_into_libs=yes
10904 ;;
10905
10906haiku*)
10907 version_type=linux # correct to gnu/linux during the next big refactor
10908 need_lib_prefix=no
10909 need_version=no
10910 dynamic_linker="$host_os runtime_loader"
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 shlibpath_var=LIBRARY_PATH
10914 shlibpath_overrides_runpath=yes
10915 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10916 hardcode_into_libs=yes
10917 ;;
10918
10919hpux9* | hpux10* | hpux11*)
10920 # Give a soname corresponding to the major version so that dld.sl refuses to
10921 # link against other versions.
10922 version_type=sunos
10923 need_lib_prefix=no
10924 need_version=no
10925 case $host_cpu in
10926 ia64*)
10927 shrext_cmds='.so'
10928 hardcode_into_libs=yes
10929 dynamic_linker="$host_os dld.so"
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 if test "X$HPUX_IA64_MODE" = X32; then
10935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10936 else
10937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10938 fi
10939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10940 ;;
10941 hppa*64*)
10942 shrext_cmds='.sl'
10943 hardcode_into_libs=yes
10944 dynamic_linker="$host_os dld.sl"
10945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10951 ;;
10952 *)
10953 shrext_cmds='.sl'
10954 dynamic_linker="$host_os dld.sl"
10955 shlibpath_var=SHLIB_PATH
10956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 ;;
10960 esac
10961 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10962 postinstall_cmds='chmod 555 $lib'
10963 # or fails outright, so override atomically:
10964 install_override_mode=555
10965 ;;
10966
10967interix[3-9]*)
10968 version_type=linux # correct to gnu/linux during the next big refactor
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=no
10976 hardcode_into_libs=yes
10977 ;;
10978
10979irix5* | irix6* | nonstopux*)
10980 case $host_os in
10981 nonstopux*) version_type=nonstopux ;;
10982 *)
10983 if test "$lt_cv_prog_gnu_ld" = yes; then
10984 version_type=linux # correct to gnu/linux during the next big refactor
10985 else
10986 version_type=irix
10987 fi ;;
10988 esac
10989 need_lib_prefix=no
10990 need_version=no
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10993 case $host_os in
10994 irix5* | nonstopux*)
10995 libsuff= shlibsuff=
10996 ;;
10997 *)
10998 case $LD in # libtool.m4 will add one of these switches to LD
10999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11000 libsuff= shlibsuff= libmagic=32-bit;;
11001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11002 libsuff=32 shlibsuff=N32 libmagic=N32;;
11003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11005 *) libsuff= shlibsuff= libmagic=never-match;;
11006 esac
11007 ;;
11008 esac
11009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11010 shlibpath_overrides_runpath=no
11011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11013 hardcode_into_libs=yes
11014 ;;
11015
11016# No shared lib support for Linux oldld, aout, or coff.
11017linux*oldld* | linux*aout* | linux*coff*)
11018 dynamic_linker=no
11019 ;;
11020
11021# This must be glibc/ELF.
11022linux* | k*bsd*-gnu | kopensolaris*-gnu)
11023 version_type=linux # correct to gnu/linux during the next big refactor
11024 need_lib_prefix=no
11025 need_version=no
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=no
11031
11032 # Some binutils ld are patched to set DT_RUNPATH
11033 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11034 $as_echo_n "(cached) " >&6
11035else
11036 lt_cv_shlibpath_overrides_runpath=no
11037 save_LDFLAGS=$LDFLAGS
11038 save_libdir=$libdir
11039 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11040 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042/* end confdefs.h. */
11043
11044int
11045main ()
11046{
11047
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052if ac_fn_c_try_link "$LINENO"; then :
11053 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11054 lt_cv_shlibpath_overrides_runpath=yes
11055fi
11056fi
11057rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LDFLAGS=$save_LDFLAGS
11060 libdir=$save_libdir
11061
11062fi
11063
11064 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11065
11066 # This implies no fast_install, which is unacceptable.
11067 # Some rework will be needed to allow for fast_install
11068 # before this can be enabled.
11069 hardcode_into_libs=yes
11070
11071 # Append ld.so.conf contents to the search path
11072 if test -f /etc/ld.so.conf; then
11073 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' ' '`
11074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11075 fi
11076
11077 # We used to test for /lib/ld.so.1 and disable shared libraries on
11078 # powerpc, because MkLinux only supported shared libraries with the
11079 # GNU dynamic linker. Since this was broken with cross compilers,
11080 # most powerpc-linux boxes support dynamic linking these days and
11081 # people can always --disable-shared, the test was removed, and we
11082 # assume the GNU/Linux dynamic linker is in use.
11083 dynamic_linker='GNU/Linux ld.so'
11084 ;;
11085
11086netbsd*)
11087 version_type=sunos
11088 need_lib_prefix=no
11089 need_version=no
11090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11093 dynamic_linker='NetBSD (a.out) ld.so'
11094 else
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 dynamic_linker='NetBSD ld.elf_so'
11098 fi
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes
11101 hardcode_into_libs=yes
11102 ;;
11103
11104newsos6)
11105 version_type=linux # correct to gnu/linux during the next big refactor
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 ;;
11110
11111*nto* | *qnx*)
11112 version_type=qnx
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=no
11119 hardcode_into_libs=yes
11120 dynamic_linker='ldqnx.so'
11121 ;;
11122
11123openbsd*)
11124 version_type=sunos
11125 sys_lib_dlsearch_path_spec="/usr/lib"
11126 need_lib_prefix=no
11127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11128 case $host_os in
11129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11130 *) need_version=no ;;
11131 esac
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11136 case $host_os in
11137 openbsd2.[89] | openbsd2.[89].*)
11138 shlibpath_overrides_runpath=no
11139 ;;
11140 *)
11141 shlibpath_overrides_runpath=yes
11142 ;;
11143 esac
11144 else
11145 shlibpath_overrides_runpath=yes
11146 fi
11147 ;;
11148
11149os2*)
11150 libname_spec='$name'
11151 shrext_cmds=".dll"
11152 need_lib_prefix=no
11153 library_names_spec='$libname${shared_ext} $libname.a'
11154 dynamic_linker='OS/2 ld.exe'
11155 shlibpath_var=LIBPATH
11156 ;;
11157
11158osf3* | osf4* | osf5*)
11159 version_type=osf
11160 need_lib_prefix=no
11161 need_version=no
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11167 ;;
11168
11169rdos*)
11170 dynamic_linker=no
11171 ;;
11172
11173solaris*)
11174 version_type=linux # correct to gnu/linux during the next big refactor
11175 need_lib_prefix=no
11176 need_version=no
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11181 hardcode_into_libs=yes
11182 # ldd complains unless libraries are executable
11183 postinstall_cmds='chmod +x $lib'
11184 ;;
11185
11186sunos4*)
11187 version_type=sunos
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=yes
11192 if test "$with_gnu_ld" = yes; then
11193 need_lib_prefix=no
11194 fi
11195 need_version=yes
11196 ;;
11197
11198sysv4 | sysv4.3*)
11199 version_type=linux # correct to gnu/linux during the next big refactor
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 case $host_vendor in
11204 sni)
11205 shlibpath_overrides_runpath=no
11206 need_lib_prefix=no
11207 runpath_var=LD_RUN_PATH
11208 ;;
11209 siemens)
11210 need_lib_prefix=no
11211 ;;
11212 motorola)
11213 need_lib_prefix=no
11214 need_version=no
11215 shlibpath_overrides_runpath=no
11216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11217 ;;
11218 esac
11219 ;;
11220
11221sysv4*MP*)
11222 if test -d /usr/nec ;then
11223 version_type=linux # correct to gnu/linux during the next big refactor
11224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11225 soname_spec='$libname${shared_ext}.$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 fi
11228 ;;
11229
11230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11231 version_type=freebsd-elf
11232 need_lib_prefix=no
11233 need_version=no
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11239 if test "$with_gnu_ld" = yes; then
11240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11241 else
11242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11243 case $host_os in
11244 sco3.2v5*)
11245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11246 ;;
11247 esac
11248 fi
11249 sys_lib_dlsearch_path_spec='/usr/lib'
11250 ;;
11251
11252tpf*)
11253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11254 version_type=linux # correct to gnu/linux during the next big refactor
11255 need_lib_prefix=no
11256 need_version=no
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=no
11260 hardcode_into_libs=yes
11261 ;;
11262
11263uts4*)
11264 version_type=linux # correct to gnu/linux during the next big refactor
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 ;;
11269
11270*)
11271 dynamic_linker=no
11272 ;;
11273esac
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11275$as_echo "$dynamic_linker" >&6; }
11276test "$dynamic_linker" = no && can_build_shared=no
11277
11278variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11279if test "$GCC" = yes; then
11280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11281fi
11282
11283if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11284 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11285fi
11286if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11288fi
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
11377
11378
11379
11380
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11382$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11383hardcode_action=
11384if test -n "$hardcode_libdir_flag_spec" ||
11385 test -n "$runpath_var" ||
11386 test "X$hardcode_automatic" = "Xyes" ; then
11387
11388 # We can hardcode non-existent directories.
11389 if test "$hardcode_direct" != no &&
11390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11391 # have to relink, otherwise we might link with an installed library
11392 # when we should be linking with a yet-to-be-installed one
11393 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11394 test "$hardcode_minus_L" != no; then
11395 # Linking always hardcodes the temporary library directory.
11396 hardcode_action=relink
11397 else
11398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11399 hardcode_action=immediate
11400 fi
11401else
11402 # We cannot hardcode anything, or else we can only hardcode existing
11403 # directories.
11404 hardcode_action=unsupported
11405fi
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11407$as_echo "$hardcode_action" >&6; }
11408
11409if test "$hardcode_action" = relink ||
11410 test "$inherit_rpath" = yes; then
11411 # Fast installation is not supported
11412 enable_fast_install=no
11413elif test "$shlibpath_overrides_runpath" = yes ||
11414 test "$enable_shared" = no; then
11415 # Fast installation is not necessary
11416 enable_fast_install=needless
11417fi
11418
11419
11420
11421
11422
11423
11424 if test "x$enable_dlopen" != xyes; then
11425 enable_dlopen=unknown
11426 enable_dlopen_self=unknown
11427 enable_dlopen_self_static=unknown
11428else
11429 lt_cv_dlopen=no
11430 lt_cv_dlopen_libs=
11431
11432 case $host_os in
11433 beos*)
11434 lt_cv_dlopen="load_add_on"
11435 lt_cv_dlopen_libs=
11436 lt_cv_dlopen_self=yes
11437 ;;
11438
11439 mingw* | pw32* | cegcc*)
11440 lt_cv_dlopen="LoadLibrary"
11441 lt_cv_dlopen_libs=
11442 ;;
11443
11444 cygwin*)
11445 lt_cv_dlopen="dlopen"
11446 lt_cv_dlopen_libs=
11447 ;;
11448
11449 darwin*)
11450 # if libdl is installed we need to link against it
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11452$as_echo_n "checking for dlopen in -ldl... " >&6; }
11453if ${ac_cv_lib_dl_dlopen+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455else
11456 ac_check_lib_save_LIBS=$LIBS
11457LIBS="-ldl $LIBS"
11458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459/* end confdefs.h. */
11460
11461/* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11464#ifdef __cplusplus
11465extern "C"
11466#endif
11467char dlopen ();
11468int
11469main ()
11470{
11471return dlopen ();
11472 ;
11473 return 0;
11474}
11475_ACEOF
11476if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_lib_dl_dlopen=yes
11478else
11479 ac_cv_lib_dl_dlopen=no
11480fi
11481rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483LIBS=$ac_check_lib_save_LIBS
11484fi
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11486$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11487if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11489else
11490
11491 lt_cv_dlopen="dyld"
11492 lt_cv_dlopen_libs=
11493 lt_cv_dlopen_self=yes
11494
11495fi
11496
11497 ;;
11498
11499 *)
11500 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11501if test "x$ac_cv_func_shl_load" = xyes; then :
11502 lt_cv_dlopen="shl_load"
11503else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11505$as_echo_n "checking for shl_load in -ldld... " >&6; }
11506if ${ac_cv_lib_dld_shl_load+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508else
11509 ac_check_lib_save_LIBS=$LIBS
11510LIBS="-ldld $LIBS"
11511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h. */
11513
11514/* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517#ifdef __cplusplus
11518extern "C"
11519#endif
11520char shl_load ();
11521int
11522main ()
11523{
11524return shl_load ();
11525 ;
11526 return 0;
11527}
11528_ACEOF
11529if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_dld_shl_load=yes
11531else
11532 ac_cv_lib_dld_shl_load=no
11533fi
11534rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536LIBS=$ac_check_lib_save_LIBS
11537fi
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11539$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11540if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11541 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11542else
11543 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11544if test "x$ac_cv_func_dlopen" = xyes; then :
11545 lt_cv_dlopen="dlopen"
11546else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11548$as_echo_n "checking for dlopen in -ldl... " >&6; }
11549if ${ac_cv_lib_dl_dlopen+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551else
11552 ac_check_lib_save_LIBS=$LIBS
11553LIBS="-ldl $LIBS"
11554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h. */
11556
11557/* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560#ifdef __cplusplus
11561extern "C"
11562#endif
11563char dlopen ();
11564int
11565main ()
11566{
11567return dlopen ();
11568 ;
11569 return 0;
11570}
11571_ACEOF
11572if ac_fn_c_try_link "$LINENO"; then :
11573 ac_cv_lib_dl_dlopen=yes
11574else
11575 ac_cv_lib_dl_dlopen=no
11576fi
11577rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
11579LIBS=$ac_check_lib_save_LIBS
11580fi
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11582$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11583if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11585else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11587$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11588if ${ac_cv_lib_svld_dlopen+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590else
11591 ac_check_lib_save_LIBS=$LIBS
11592LIBS="-lsvld $LIBS"
11593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594/* end confdefs.h. */
11595
11596/* Override any GCC internal prototype to avoid an error.
11597 Use char because int might match the return type of a GCC
11598 builtin and then its argument prototype would still apply. */
11599#ifdef __cplusplus
11600extern "C"
11601#endif
11602char dlopen ();
11603int
11604main ()
11605{
11606return dlopen ();
11607 ;
11608 return 0;
11609}
11610_ACEOF
11611if ac_fn_c_try_link "$LINENO"; then :
11612 ac_cv_lib_svld_dlopen=yes
11613else
11614 ac_cv_lib_svld_dlopen=no
11615fi
11616rm -f core conftest.err conftest.$ac_objext \
11617 conftest$ac_exeext conftest.$ac_ext
11618LIBS=$ac_check_lib_save_LIBS
11619fi
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11621$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11622if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11624else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11626$as_echo_n "checking for dld_link in -ldld... " >&6; }
11627if ${ac_cv_lib_dld_dld_link+:} false; then :
11628 $as_echo_n "(cached) " >&6
11629else
11630 ac_check_lib_save_LIBS=$LIBS
11631LIBS="-ldld $LIBS"
11632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633/* end confdefs.h. */
11634
11635/* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11638#ifdef __cplusplus
11639extern "C"
11640#endif
11641char dld_link ();
11642int
11643main ()
11644{
11645return dld_link ();
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650if ac_fn_c_try_link "$LINENO"; then :
11651 ac_cv_lib_dld_dld_link=yes
11652else
11653 ac_cv_lib_dld_dld_link=no
11654fi
11655rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11657LIBS=$ac_check_lib_save_LIBS
11658fi
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11660$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11661if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11662 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11663fi
11664
11665
11666fi
11667
11668
11669fi
11670
11671
11672fi
11673
11674
11675fi
11676
11677
11678fi
11679
11680 ;;
11681 esac
11682
11683 if test "x$lt_cv_dlopen" != xno; then
11684 enable_dlopen=yes
11685 else
11686 enable_dlopen=no
11687 fi
11688
11689 case $lt_cv_dlopen in
11690 dlopen)
11691 save_CPPFLAGS="$CPPFLAGS"
11692 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11693
11694 save_LDFLAGS="$LDFLAGS"
11695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11696
11697 save_LIBS="$LIBS"
11698 LIBS="$lt_cv_dlopen_libs $LIBS"
11699
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11701$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11702if ${lt_cv_dlopen_self+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704else
11705 if test "$cross_compiling" = yes; then :
11706 lt_cv_dlopen_self=cross
11707else
11708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11709 lt_status=$lt_dlunknown
11710 cat > conftest.$ac_ext <<_LT_EOF
11711#line $LINENO "configure"
11712#include "confdefs.h"
11713
11714#if HAVE_DLFCN_H
11715#include <dlfcn.h>
11716#endif
11717
11718#include <stdio.h>
11719
11720#ifdef RTLD_GLOBAL
11721# define LT_DLGLOBAL RTLD_GLOBAL
11722#else
11723# ifdef DL_GLOBAL
11724# define LT_DLGLOBAL DL_GLOBAL
11725# else
11726# define LT_DLGLOBAL 0
11727# endif
11728#endif
11729
11730/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11731 find out it does not work in some platform. */
11732#ifndef LT_DLLAZY_OR_NOW
11733# ifdef RTLD_LAZY
11734# define LT_DLLAZY_OR_NOW RTLD_LAZY
11735# else
11736# ifdef DL_LAZY
11737# define LT_DLLAZY_OR_NOW DL_LAZY
11738# else
11739# ifdef RTLD_NOW
11740# define LT_DLLAZY_OR_NOW RTLD_NOW
11741# else
11742# ifdef DL_NOW
11743# define LT_DLLAZY_OR_NOW DL_NOW
11744# else
11745# define LT_DLLAZY_OR_NOW 0
11746# endif
11747# endif
11748# endif
11749# endif
11750#endif
11751
11752/* When -fvisbility=hidden is used, assume the code has been annotated
11753 correspondingly for the symbols needed. */
11754#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11755int fnord () __attribute__((visibility("default")));
11756#endif
11757
11758int fnord () { return 42; }
11759int main ()
11760{
11761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11762 int status = $lt_dlunknown;
11763
11764 if (self)
11765 {
11766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11767 else
11768 {
11769 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11770 else puts (dlerror ());
11771 }
11772 /* dlclose (self); */
11773 }
11774 else
11775 puts (dlerror ());
11776
11777 return status;
11778}
11779_LT_EOF
11780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11781 (eval $ac_link) 2>&5
11782 ac_status=$?
11783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11785 (./conftest; exit; ) >&5 2>/dev/null
11786 lt_status=$?
11787 case x$lt_status in
11788 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11789 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11790 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11791 esac
11792 else :
11793 # compilation failed
11794 lt_cv_dlopen_self=no
11795 fi
11796fi
11797rm -fr conftest*
11798
11799
11800fi
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11802$as_echo "$lt_cv_dlopen_self" >&6; }
11803
11804 if test "x$lt_cv_dlopen_self" = xyes; then
11805 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11807$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11808if ${lt_cv_dlopen_self_static+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810else
11811 if test "$cross_compiling" = yes; then :
11812 lt_cv_dlopen_self_static=cross
11813else
11814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11815 lt_status=$lt_dlunknown
11816 cat > conftest.$ac_ext <<_LT_EOF
11817#line $LINENO "configure"
11818#include "confdefs.h"
11819
11820#if HAVE_DLFCN_H
11821#include <dlfcn.h>
11822#endif
11823
11824#include <stdio.h>
11825
11826#ifdef RTLD_GLOBAL
11827# define LT_DLGLOBAL RTLD_GLOBAL
11828#else
11829# ifdef DL_GLOBAL
11830# define LT_DLGLOBAL DL_GLOBAL
11831# else
11832# define LT_DLGLOBAL 0
11833# endif
11834#endif
11835
11836/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11837 find out it does not work in some platform. */
11838#ifndef LT_DLLAZY_OR_NOW
11839# ifdef RTLD_LAZY
11840# define LT_DLLAZY_OR_NOW RTLD_LAZY
11841# else
11842# ifdef DL_LAZY
11843# define LT_DLLAZY_OR_NOW DL_LAZY
11844# else
11845# ifdef RTLD_NOW
11846# define LT_DLLAZY_OR_NOW RTLD_NOW
11847# else
11848# ifdef DL_NOW
11849# define LT_DLLAZY_OR_NOW DL_NOW
11850# else
11851# define LT_DLLAZY_OR_NOW 0
11852# endif
11853# endif
11854# endif
11855# endif
11856#endif
11857
11858/* When -fvisbility=hidden is used, assume the code has been annotated
11859 correspondingly for the symbols needed. */
11860#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11861int fnord () __attribute__((visibility("default")));
11862#endif
11863
11864int fnord () { return 42; }
11865int main ()
11866{
11867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11868 int status = $lt_dlunknown;
11869
11870 if (self)
11871 {
11872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11873 else
11874 {
11875 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11876 else puts (dlerror ());
11877 }
11878 /* dlclose (self); */
11879 }
11880 else
11881 puts (dlerror ());
11882
11883 return status;
11884}
11885_LT_EOF
11886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11887 (eval $ac_link) 2>&5
11888 ac_status=$?
11889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11890 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11891 (./conftest; exit; ) >&5 2>/dev/null
11892 lt_status=$?
11893 case x$lt_status in
11894 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11895 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11896 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11897 esac
11898 else :
11899 # compilation failed
11900 lt_cv_dlopen_self_static=no
11901 fi
11902fi
11903rm -fr conftest*
11904
11905
11906fi
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11908$as_echo "$lt_cv_dlopen_self_static" >&6; }
11909 fi
11910
11911 CPPFLAGS="$save_CPPFLAGS"
11912 LDFLAGS="$save_LDFLAGS"
11913 LIBS="$save_LIBS"
11914 ;;
11915 esac
11916
11917 case $lt_cv_dlopen_self in
11918 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11919 *) enable_dlopen_self=unknown ;;
11920 esac
11921
11922 case $lt_cv_dlopen_self_static in
11923 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11924 *) enable_dlopen_self_static=unknown ;;
11925 esac
11926fi
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944striplib=
11945old_striplib=
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11947$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11948if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11949 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11950 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952$as_echo "yes" >&6; }
11953else
11954# FIXME - insert some real tests, host_os isn't really good enough
11955 case $host_os in
11956 darwin*)
11957 if test -n "$STRIP" ; then
11958 striplib="$STRIP -x"
11959 old_striplib="$STRIP -S"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961$as_echo "yes" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
11965 fi
11966 ;;
11967 *)
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969$as_echo "no" >&6; }
11970 ;;
11971 esac
11972fi
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 # Report which library types will actually be built
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11987$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11989$as_echo "$can_build_shared" >&6; }
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11992$as_echo_n "checking whether to build shared libraries... " >&6; }
11993 test "$can_build_shared" = "no" && enable_shared=no
11994
11995 # On AIX, shared libraries and static libraries use the same namespace, and
11996 # are all built from PIC.
11997 case $host_os in
11998 aix3*)
11999 test "$enable_shared" = yes && enable_static=no
12000 if test -n "$RANLIB"; then
12001 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12002 postinstall_cmds='$RANLIB $lib'
12003 fi
12004 ;;
12005
12006 aix[4-9]*)
12007 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12008 test "$enable_shared" = yes && enable_static=no
12009 fi
12010 ;;
12011 esac
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12013$as_echo "$enable_shared" >&6; }
12014
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12016$as_echo_n "checking whether to build static libraries... " >&6; }
12017 # Make sure either enable_shared or enable_static is yes.
12018 test "$enable_shared" = yes || enable_static=yes
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12020$as_echo "$enable_static" >&6; }
12021
12022
12023
12024
12025fi
12026ac_ext=c
12027ac_cpp='$CPP $CPPFLAGS'
12028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032CC="$lt_save_CC"
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048 ac_config_commands="$ac_config_commands libtool"
12049
12050
12051
12052
12053# Only expand once:
12054
12055
Jeff Thompson23cb7422013-10-09 16:11:47 -070012056
12057
Jeff Thompson4f031642013-08-05 11:03:16 -070012058ac_ext=cpp
12059ac_cpp='$CXXCPP $CPPFLAGS'
12060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12063if test -z "$CXX"; then
12064 if test -n "$CCC"; then
12065 CXX=$CCC
12066 else
12067 if test -n "$ac_tool_prefix"; then
12068 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12069 do
12070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
12074if ${ac_cv_prog_CXX+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076else
12077 if test -n "$CXX"; then
12078 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091done
12092 done
12093IFS=$as_save_IFS
12094
12095fi
12096fi
12097CXX=$ac_cv_prog_CXX
12098if test -n "$CXX"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12100$as_echo "$CXX" >&6; }
12101else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104fi
12105
12106
12107 test -n "$CXX" && break
12108 done
12109fi
12110if test -z "$CXX"; then
12111 ac_ct_CXX=$CXX
12112 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12113do
12114 # Extract the first word of "$ac_prog", so it can be a program name with args.
12115set dummy $ac_prog; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120else
12121 if test -n "$ac_ct_CXX"; then
12122 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131 ac_cv_prog_ac_ct_CXX="$ac_prog"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135done
12136 done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12142if test -n "$ac_ct_CXX"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12144$as_echo "$ac_ct_CXX" >&6; }
12145else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150
12151 test -n "$ac_ct_CXX" && break
12152done
12153
12154 if test "x$ac_ct_CXX" = x; then
12155 CXX="g++"
12156 else
12157 case $cross_compiling:$ac_tool_warned in
12158yes:)
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12161ac_tool_warned=yes ;;
12162esac
12163 CXX=$ac_ct_CXX
12164 fi
12165fi
12166
12167 fi
12168fi
12169# Provide some information about the compiler.
12170$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12171set X $ac_compile
12172ac_compiler=$2
12173for ac_option in --version -v -V -qversion; do
12174 { { ac_try="$ac_compiler $ac_option >&5"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12180$as_echo "$ac_try_echo"; } >&5
12181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12182 ac_status=$?
12183 if test -s conftest.err; then
12184 sed '10a\
12185... rest of stderr output deleted ...
12186 10q' conftest.err >conftest.er1
12187 cat conftest.er1 >&5
12188 fi
12189 rm -f conftest.er1 conftest.err
12190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191 test $ac_status = 0; }
12192done
12193
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12195$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12196if ${ac_cv_cxx_compiler_gnu+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198else
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h. */
12201
12202int
12203main ()
12204{
12205#ifndef __GNUC__
12206 choke me
12207#endif
12208
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213if ac_fn_cxx_try_compile "$LINENO"; then :
12214 ac_compiler_gnu=yes
12215else
12216 ac_compiler_gnu=no
12217fi
12218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12220
12221fi
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12223$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12224if test $ac_compiler_gnu = yes; then
12225 GXX=yes
12226else
12227 GXX=
12228fi
12229ac_test_CXXFLAGS=${CXXFLAGS+set}
12230ac_save_CXXFLAGS=$CXXFLAGS
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12232$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12233if ${ac_cv_prog_cxx_g+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235else
12236 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12237 ac_cxx_werror_flag=yes
12238 ac_cv_prog_cxx_g=no
12239 CXXFLAGS="-g"
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241/* end confdefs.h. */
12242
12243int
12244main ()
12245{
12246
12247 ;
12248 return 0;
12249}
12250_ACEOF
12251if ac_fn_cxx_try_compile "$LINENO"; then :
12252 ac_cv_prog_cxx_g=yes
12253else
12254 CXXFLAGS=""
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256/* end confdefs.h. */
12257
12258int
12259main ()
12260{
12261
12262 ;
12263 return 0;
12264}
12265_ACEOF
12266if ac_fn_cxx_try_compile "$LINENO"; then :
12267
12268else
12269 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12270 CXXFLAGS="-g"
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272/* end confdefs.h. */
12273
12274int
12275main ()
12276{
12277
12278 ;
12279 return 0;
12280}
12281_ACEOF
12282if ac_fn_cxx_try_compile "$LINENO"; then :
12283 ac_cv_prog_cxx_g=yes
12284fi
12285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286fi
12287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288fi
12289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12291fi
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12293$as_echo "$ac_cv_prog_cxx_g" >&6; }
12294if test "$ac_test_CXXFLAGS" = set; then
12295 CXXFLAGS=$ac_save_CXXFLAGS
12296elif test $ac_cv_prog_cxx_g = yes; then
12297 if test "$GXX" = yes; then
12298 CXXFLAGS="-g -O2"
12299 else
12300 CXXFLAGS="-g"
12301 fi
12302else
12303 if test "$GXX" = yes; then
12304 CXXFLAGS="-O2"
12305 else
12306 CXXFLAGS=
12307 fi
12308fi
12309ac_ext=c
12310ac_cpp='$CPP $CPPFLAGS'
12311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12313ac_compiler_gnu=$ac_cv_c_compiler_gnu
12314
12315depcc="$CXX" am_compiler_list=
12316
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12318$as_echo_n "checking dependency style of $depcc... " >&6; }
12319if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321else
12322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12323 # We make a subdir and do the tests there. Otherwise we can end up
12324 # making bogus files that we don't know about and never remove. For
12325 # instance it was reported that on HP-UX the gcc test will end up
12326 # making a dummy file named 'D' -- because '-MD' means "put the output
12327 # in D".
12328 rm -rf conftest.dir
12329 mkdir conftest.dir
12330 # Copy depcomp to subdir because otherwise we won't find it if we're
12331 # using a relative directory.
12332 cp "$am_depcomp" conftest.dir
12333 cd conftest.dir
12334 # We will build objects and dependencies in a subdirectory because
12335 # it helps to detect inapplicable dependency modes. For instance
12336 # both Tru64's cc and ICC support -MD to output dependencies as a
12337 # side effect of compilation, but ICC will put the dependencies in
12338 # the current directory while Tru64 will put them in the object
12339 # directory.
12340 mkdir sub
12341
12342 am_cv_CXX_dependencies_compiler_type=none
12343 if test "$am_compiler_list" = ""; then
12344 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12345 fi
12346 am__universal=false
12347 case " $depcc " in #(
12348 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12349 esac
12350
12351 for depmode in $am_compiler_list; do
12352 # Setup a source with many dependencies, because some compilers
12353 # like to wrap large dependency lists on column 80 (with \), and
12354 # we should not choose a depcomp mode which is confused by this.
12355 #
12356 # We need to recreate these files for each test, as the compiler may
12357 # overwrite some of them when testing with obscure command lines.
12358 # This happens at least with the AIX C compiler.
12359 : > sub/conftest.c
12360 for i in 1 2 3 4 5 6; do
12361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12362 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12363 # Solaris 10 /bin/sh.
12364 echo '/* dummy */' > sub/conftst$i.h
12365 done
12366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12367
12368 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12369 # mode. It turns out that the SunPro C++ compiler does not properly
12370 # handle '-M -o', and we need to detect this. Also, some Intel
12371 # versions had trouble with output in subdirs.
12372 am__obj=sub/conftest.${OBJEXT-o}
12373 am__minus_obj="-o $am__obj"
12374 case $depmode in
12375 gcc)
12376 # This depmode causes a compiler race in universal mode.
12377 test "$am__universal" = false || continue
12378 ;;
12379 nosideeffect)
12380 # After this tag, mechanisms are not by side-effect, so they'll
12381 # only be used when explicitly requested.
12382 if test "x$enable_dependency_tracking" = xyes; then
12383 continue
12384 else
12385 break
12386 fi
12387 ;;
12388 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12389 # This compiler won't grok '-c -o', but also, the minuso test has
12390 # not run yet. These depmodes are late enough in the game, and
12391 # so weak that their functioning should not be impacted.
12392 am__obj=conftest.${OBJEXT-o}
12393 am__minus_obj=
12394 ;;
12395 none) break ;;
12396 esac
12397 if depmode=$depmode \
12398 source=sub/conftest.c object=$am__obj \
12399 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12400 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12401 >/dev/null 2>conftest.err &&
12402 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12403 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12404 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12405 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12406 # icc doesn't choke on unknown options, it will just issue warnings
12407 # or remarks (even with -Werror). So we grep stderr for any message
12408 # that says an option was ignored or not supported.
12409 # When given -MP, icc 7.0 and 7.1 complain thusly:
12410 # icc: Command line warning: ignoring option '-M'; no argument required
12411 # The diagnosis changed in icc 8.0:
12412 # icc: Command line remark: option '-MP' not supported
12413 if (grep 'ignoring option' conftest.err ||
12414 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12415 am_cv_CXX_dependencies_compiler_type=$depmode
12416 break
12417 fi
12418 fi
12419 done
12420
12421 cd ..
12422 rm -rf conftest.dir
12423else
12424 am_cv_CXX_dependencies_compiler_type=none
12425fi
12426
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12429$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12430CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12431
12432 if
12433 test "x$enable_dependency_tracking" != xno \
12434 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12435 am__fastdepCXX_TRUE=
12436 am__fastdepCXX_FALSE='#'
12437else
12438 am__fastdepCXX_TRUE='#'
12439 am__fastdepCXX_FALSE=
12440fi
12441
12442
12443
12444
12445func_stripname_cnf ()
12446{
12447 case ${2} in
12448 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12449 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12450 esac
12451} # func_stripname_cnf
12452
12453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12454 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12455 (test "X$CXX" != "Xg++"))) ; then
12456 ac_ext=cpp
12457ac_cpp='$CXXCPP $CPPFLAGS'
12458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12462$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12463if test -z "$CXXCPP"; then
12464 if ${ac_cv_prog_CXXCPP+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466else
12467 # Double quotes because CXXCPP needs to be expanded
12468 for CXXCPP in "$CXX -E" "/lib/cpp"
12469 do
12470 ac_preproc_ok=false
12471for ac_cxx_preproc_warn_flag in '' yes
12472do
12473 # Use a header file that comes with gcc, so configuring glibc
12474 # with a fresh cross-compiler works.
12475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12476 # <limits.h> exists even on freestanding compilers.
12477 # On the NeXT, cc -E runs the code through the compiler's parser,
12478 # not just through cpp. "Syntax error" is here to catch this case.
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h. */
12481#ifdef __STDC__
12482# include <limits.h>
12483#else
12484# include <assert.h>
12485#endif
12486 Syntax error
12487_ACEOF
12488if ac_fn_cxx_try_cpp "$LINENO"; then :
12489
12490else
12491 # Broken: fails on valid input.
12492continue
12493fi
12494rm -f conftest.err conftest.i conftest.$ac_ext
12495
12496 # OK, works on sane cases. Now check whether nonexistent headers
12497 # can be detected and how.
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499/* end confdefs.h. */
12500#include <ac_nonexistent.h>
12501_ACEOF
12502if ac_fn_cxx_try_cpp "$LINENO"; then :
12503 # Broken: success on invalid input.
12504continue
12505else
12506 # Passes both tests.
12507ac_preproc_ok=:
12508break
12509fi
12510rm -f conftest.err conftest.i conftest.$ac_ext
12511
12512done
12513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12514rm -f conftest.i conftest.err conftest.$ac_ext
12515if $ac_preproc_ok; then :
12516 break
12517fi
12518
12519 done
12520 ac_cv_prog_CXXCPP=$CXXCPP
12521
12522fi
12523 CXXCPP=$ac_cv_prog_CXXCPP
12524else
12525 ac_cv_prog_CXXCPP=$CXXCPP
12526fi
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12528$as_echo "$CXXCPP" >&6; }
12529ac_preproc_ok=false
12530for ac_cxx_preproc_warn_flag in '' yes
12531do
12532 # Use a header file that comes with gcc, so configuring glibc
12533 # with a fresh cross-compiler works.
12534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12535 # <limits.h> exists even on freestanding compilers.
12536 # On the NeXT, cc -E runs the code through the compiler's parser,
12537 # not just through cpp. "Syntax error" is here to catch this case.
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h. */
12540#ifdef __STDC__
12541# include <limits.h>
12542#else
12543# include <assert.h>
12544#endif
12545 Syntax error
12546_ACEOF
12547if ac_fn_cxx_try_cpp "$LINENO"; then :
12548
12549else
12550 # Broken: fails on valid input.
12551continue
12552fi
12553rm -f conftest.err conftest.i conftest.$ac_ext
12554
12555 # OK, works on sane cases. Now check whether nonexistent headers
12556 # can be detected and how.
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558/* end confdefs.h. */
12559#include <ac_nonexistent.h>
12560_ACEOF
12561if ac_fn_cxx_try_cpp "$LINENO"; then :
12562 # Broken: success on invalid input.
12563continue
12564else
12565 # Passes both tests.
12566ac_preproc_ok=:
12567break
12568fi
12569rm -f conftest.err conftest.i conftest.$ac_ext
12570
12571done
12572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12573rm -f conftest.i conftest.err conftest.$ac_ext
12574if $ac_preproc_ok; then :
12575
12576else
12577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12579as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12580See \`config.log' for more details" "$LINENO" 5; }
12581fi
12582
12583ac_ext=c
12584ac_cpp='$CPP $CPPFLAGS'
12585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588
12589else
12590 _lt_caught_CXX_error=yes
12591fi
12592
12593ac_ext=cpp
12594ac_cpp='$CXXCPP $CPPFLAGS'
12595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12598
12599archive_cmds_need_lc_CXX=no
12600allow_undefined_flag_CXX=
12601always_export_symbols_CXX=no
12602archive_expsym_cmds_CXX=
12603compiler_needs_object_CXX=no
12604export_dynamic_flag_spec_CXX=
12605hardcode_direct_CXX=no
12606hardcode_direct_absolute_CXX=no
12607hardcode_libdir_flag_spec_CXX=
12608hardcode_libdir_separator_CXX=
12609hardcode_minus_L_CXX=no
12610hardcode_shlibpath_var_CXX=unsupported
12611hardcode_automatic_CXX=no
12612inherit_rpath_CXX=no
12613module_cmds_CXX=
12614module_expsym_cmds_CXX=
12615link_all_deplibs_CXX=unknown
12616old_archive_cmds_CXX=$old_archive_cmds
12617reload_flag_CXX=$reload_flag
12618reload_cmds_CXX=$reload_cmds
12619no_undefined_flag_CXX=
12620whole_archive_flag_spec_CXX=
12621enable_shared_with_static_runtimes_CXX=no
12622
12623# Source file extension for C++ test sources.
12624ac_ext=cpp
12625
12626# Object file extension for compiled C++ test sources.
12627objext=o
12628objext_CXX=$objext
12629
12630# No sense in running all these tests if we already determined that
12631# the CXX compiler isn't working. Some variables (like enable_shared)
12632# are currently assumed to apply to all compilers on this platform,
12633# and will be corrupted by setting them based on a non-working compiler.
12634if test "$_lt_caught_CXX_error" != yes; then
12635 # Code to be used in simple compile tests
12636 lt_simple_compile_test_code="int some_variable = 0;"
12637
12638 # Code to be used in simple link tests
12639 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12640
12641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12642
12643
12644
12645
12646
12647
12648# If no C compiler was specified, use CC.
12649LTCC=${LTCC-"$CC"}
12650
12651# If no C compiler flags were specified, use CFLAGS.
12652LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12653
12654# Allow CC to be a program name with arguments.
12655compiler=$CC
12656
12657
12658 # save warnings/boilerplate of simple test code
12659 ac_outfile=conftest.$ac_objext
12660echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12661eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12662_lt_compiler_boilerplate=`cat conftest.err`
12663$RM conftest*
12664
12665 ac_outfile=conftest.$ac_objext
12666echo "$lt_simple_link_test_code" >conftest.$ac_ext
12667eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12668_lt_linker_boilerplate=`cat conftest.err`
12669$RM -r conftest*
12670
12671
12672 # Allow CC to be a program name with arguments.
12673 lt_save_CC=$CC
12674 lt_save_CFLAGS=$CFLAGS
12675 lt_save_LD=$LD
12676 lt_save_GCC=$GCC
12677 GCC=$GXX
12678 lt_save_with_gnu_ld=$with_gnu_ld
12679 lt_save_path_LD=$lt_cv_path_LD
12680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12682 else
12683 $as_unset lt_cv_prog_gnu_ld
12684 fi
12685 if test -n "${lt_cv_path_LDCXX+set}"; then
12686 lt_cv_path_LD=$lt_cv_path_LDCXX
12687 else
12688 $as_unset lt_cv_path_LD
12689 fi
12690 test -z "${LDCXX+set}" || LD=$LDCXX
12691 CC=${CXX-"c++"}
12692 CFLAGS=$CXXFLAGS
12693 compiler=$CC
12694 compiler_CXX=$CC
12695 for cc_temp in $compiler""; do
12696 case $cc_temp in
12697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12699 \-*) ;;
12700 *) break;;
12701 esac
12702done
12703cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12704
12705
12706 if test -n "$compiler"; then
12707 # We don't want -fno-exception when compiling C++ code, so set the
12708 # no_builtin_flag separately
12709 if test "$GXX" = yes; then
12710 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12711 else
12712 lt_prog_compiler_no_builtin_flag_CXX=
12713 fi
12714
12715 if test "$GXX" = yes; then
12716 # Set up default GNU C++ configuration
12717
12718
12719
12720# Check whether --with-gnu-ld was given.
12721if test "${with_gnu_ld+set}" = set; then :
12722 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12723else
12724 with_gnu_ld=no
12725fi
12726
12727ac_prog=ld
12728if test "$GCC" = yes; then
12729 # Check if gcc -print-prog-name=ld gives a path.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12731$as_echo_n "checking for ld used by $CC... " >&6; }
12732 case $host in
12733 *-*-mingw*)
12734 # gcc leaves a trailing carriage return which upsets mingw
12735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12736 *)
12737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12738 esac
12739 case $ac_prog in
12740 # Accept absolute paths.
12741 [\\/]* | ?:[\\/]*)
12742 re_direlt='/[^/][^/]*/\.\./'
12743 # Canonicalize the pathname of ld
12744 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12745 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12746 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12747 done
12748 test -z "$LD" && LD="$ac_prog"
12749 ;;
12750 "")
12751 # If it fails, then pretend we aren't using GCC.
12752 ac_prog=ld
12753 ;;
12754 *)
12755 # If it is relative, then search for the first ld in PATH.
12756 with_gnu_ld=unknown
12757 ;;
12758 esac
12759elif test "$with_gnu_ld" = yes; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12761$as_echo_n "checking for GNU ld... " >&6; }
12762else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12764$as_echo_n "checking for non-GNU ld... " >&6; }
12765fi
12766if ${lt_cv_path_LD+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768else
12769 if test -z "$LD"; then
12770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12771 for ac_dir in $PATH; do
12772 IFS="$lt_save_ifs"
12773 test -z "$ac_dir" && ac_dir=.
12774 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12775 lt_cv_path_LD="$ac_dir/$ac_prog"
12776 # Check to see if the program is GNU ld. I'd rather use --version,
12777 # but apparently some variants of GNU ld only accept -v.
12778 # Break only if it was the GNU/non-GNU ld that we prefer.
12779 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12780 *GNU* | *'with BFD'*)
12781 test "$with_gnu_ld" != no && break
12782 ;;
12783 *)
12784 test "$with_gnu_ld" != yes && break
12785 ;;
12786 esac
12787 fi
12788 done
12789 IFS="$lt_save_ifs"
12790else
12791 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12792fi
12793fi
12794
12795LD="$lt_cv_path_LD"
12796if test -n "$LD"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12798$as_echo "$LD" >&6; }
12799else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
12802fi
12803test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12805$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12806if ${lt_cv_prog_gnu_ld+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808else
12809 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12810case `$LD -v 2>&1 </dev/null` in
12811*GNU* | *'with BFD'*)
12812 lt_cv_prog_gnu_ld=yes
12813 ;;
12814*)
12815 lt_cv_prog_gnu_ld=no
12816 ;;
12817esac
12818fi
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12820$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12821with_gnu_ld=$lt_cv_prog_gnu_ld
12822
12823
12824
12825
12826
12827
12828
12829 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12830 # archiving commands below assume that GNU ld is being used.
12831 if test "$with_gnu_ld" = yes; then
12832 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 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'
12834
12835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12837
12838 # If archive_cmds runs LD, not CC, wlarc should be empty
12839 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12840 # investigate it a little bit more. (MM)
12841 wlarc='${wl}'
12842
12843 # ancient GNU ld didn't support --whole-archive et. al.
12844 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12845 $GREP 'no-whole-archive' > /dev/null; then
12846 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12847 else
12848 whole_archive_flag_spec_CXX=
12849 fi
12850 else
12851 with_gnu_ld=no
12852 wlarc=
12853
12854 # A generic and very simple default shared library creation
12855 # command for GNU C++ for the case where it uses the native
12856 # linker, instead of GNU ld. If possible, this setting should
12857 # overridden to take advantage of the native linker features on
12858 # the platform it is being used on.
12859 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12860 fi
12861
12862 # Commands to make compiler produce verbose output that lists
12863 # what "hidden" libraries, object files and flags are used when
12864 # linking a shared library.
12865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12866
12867 else
12868 GXX=no
12869 with_gnu_ld=no
12870 wlarc=
12871 fi
12872
12873 # PORTME: fill in a description of your system's C++ link characteristics
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12875$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12876 ld_shlibs_CXX=yes
12877 case $host_os in
12878 aix3*)
12879 # FIXME: insert proper C++ library support
12880 ld_shlibs_CXX=no
12881 ;;
12882 aix[4-9]*)
12883 if test "$host_cpu" = ia64; then
12884 # On IA64, the linker does run time linking by default, so we don't
12885 # have to do anything special.
12886 aix_use_runtimelinking=no
12887 exp_sym_flag='-Bexport'
12888 no_entry_flag=""
12889 else
12890 aix_use_runtimelinking=no
12891
12892 # Test if we are trying to use run time linking or normal
12893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12894 # need to do runtime linking.
12895 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12896 for ld_flag in $LDFLAGS; do
12897 case $ld_flag in
12898 *-brtl*)
12899 aix_use_runtimelinking=yes
12900 break
12901 ;;
12902 esac
12903 done
12904 ;;
12905 esac
12906
12907 exp_sym_flag='-bexport'
12908 no_entry_flag='-bnoentry'
12909 fi
12910
12911 # When large executables or shared objects are built, AIX ld can
12912 # have problems creating the table of contents. If linking a library
12913 # or program results in "error TOC overflow" add -mminimal-toc to
12914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12916
12917 archive_cmds_CXX=''
12918 hardcode_direct_CXX=yes
12919 hardcode_direct_absolute_CXX=yes
12920 hardcode_libdir_separator_CXX=':'
12921 link_all_deplibs_CXX=yes
12922 file_list_spec_CXX='${wl}-f,'
12923
12924 if test "$GXX" = yes; then
12925 case $host_os in aix4.[012]|aix4.[012].*)
12926 # We only want to do this on AIX 4.2 and lower, the check
12927 # below for broken collect2 doesn't work under 4.3+
12928 collect2name=`${CC} -print-prog-name=collect2`
12929 if test -f "$collect2name" &&
12930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12931 then
12932 # We have reworked collect2
12933 :
12934 else
12935 # We have old collect2
12936 hardcode_direct_CXX=unsupported
12937 # It fails to find uninstalled libraries when the uninstalled
12938 # path is not listed in the libpath. Setting hardcode_minus_L
12939 # to unsupported forces relinking
12940 hardcode_minus_L_CXX=yes
12941 hardcode_libdir_flag_spec_CXX='-L$libdir'
12942 hardcode_libdir_separator_CXX=
12943 fi
12944 esac
12945 shared_flag='-shared'
12946 if test "$aix_use_runtimelinking" = yes; then
12947 shared_flag="$shared_flag "'${wl}-G'
12948 fi
12949 else
12950 # not using gcc
12951 if test "$host_cpu" = ia64; then
12952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12953 # chokes on -Wl,-G. The following line is correct:
12954 shared_flag='-G'
12955 else
12956 if test "$aix_use_runtimelinking" = yes; then
12957 shared_flag='${wl}-G'
12958 else
12959 shared_flag='${wl}-bM:SRE'
12960 fi
12961 fi
12962 fi
12963
12964 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12965 # It seems that -bexpall does not export symbols beginning with
12966 # underscore (_), so it is better to generate a list of symbols to
12967 # export.
12968 always_export_symbols_CXX=yes
12969 if test "$aix_use_runtimelinking" = yes; then
12970 # Warning - without using the other runtime loading flags (-brtl),
12971 # -berok will link without error, but may produce a broken library.
12972 allow_undefined_flag_CXX='-berok'
12973 # Determine the default libpath from the value encoded in an empty
12974 # executable.
12975 if test "${lt_cv_aix_libpath+set}" = set; then
12976 aix_libpath=$lt_cv_aix_libpath
12977else
12978 if ${lt_cv_aix_libpath__CXX+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980else
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982/* end confdefs.h. */
12983
12984int
12985main ()
12986{
12987
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992if ac_fn_cxx_try_link "$LINENO"; then :
12993
12994 lt_aix_libpath_sed='
12995 /Import File Strings/,/^$/ {
12996 /^0/ {
12997 s/^0 *\([^ ]*\) *$/\1/
12998 p
12999 }
13000 }'
13001 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13002 # Check for a 64-bit object if we didn't find anything.
13003 if test -z "$lt_cv_aix_libpath__CXX"; then
13004 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13005 fi
13006fi
13007rm -f core conftest.err conftest.$ac_objext \
13008 conftest$ac_exeext conftest.$ac_ext
13009 if test -z "$lt_cv_aix_libpath__CXX"; then
13010 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13011 fi
13012
13013fi
13014
13015 aix_libpath=$lt_cv_aix_libpath__CXX
13016fi
13017
13018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13019
13020 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"
13021 else
13022 if test "$host_cpu" = ia64; then
13023 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13024 allow_undefined_flag_CXX="-z nodefs"
13025 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"
13026 else
13027 # Determine the default libpath from the value encoded in an
13028 # empty executable.
13029 if test "${lt_cv_aix_libpath+set}" = set; then
13030 aix_libpath=$lt_cv_aix_libpath
13031else
13032 if ${lt_cv_aix_libpath__CXX+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034else
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036/* end confdefs.h. */
13037
13038int
13039main ()
13040{
13041
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046if ac_fn_cxx_try_link "$LINENO"; then :
13047
13048 lt_aix_libpath_sed='
13049 /Import File Strings/,/^$/ {
13050 /^0/ {
13051 s/^0 *\([^ ]*\) *$/\1/
13052 p
13053 }
13054 }'
13055 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13056 # Check for a 64-bit object if we didn't find anything.
13057 if test -z "$lt_cv_aix_libpath__CXX"; then
13058 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13059 fi
13060fi
13061rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 if test -z "$lt_cv_aix_libpath__CXX"; then
13064 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13065 fi
13066
13067fi
13068
13069 aix_libpath=$lt_cv_aix_libpath__CXX
13070fi
13071
13072 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13073 # Warning - without using the other run time loading flags,
13074 # -berok will link without error, but may produce a broken library.
13075 no_undefined_flag_CXX=' ${wl}-bernotok'
13076 allow_undefined_flag_CXX=' ${wl}-berok'
13077 if test "$with_gnu_ld" = yes; then
13078 # We only use this code for GNU lds that support --whole-archive.
13079 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13080 else
13081 # Exported symbols can be pulled into shared objects from archives
13082 whole_archive_flag_spec_CXX='$convenience'
13083 fi
13084 archive_cmds_need_lc_CXX=yes
13085 # This is similar to how AIX traditionally builds its shared
13086 # libraries.
13087 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'
13088 fi
13089 fi
13090 ;;
13091
13092 beos*)
13093 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13094 allow_undefined_flag_CXX=unsupported
13095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13096 # support --undefined. This deserves some investigation. FIXME
13097 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 else
13099 ld_shlibs_CXX=no
13100 fi
13101 ;;
13102
13103 chorus*)
13104 case $cc_basename in
13105 *)
13106 # FIXME: insert proper C++ library support
13107 ld_shlibs_CXX=no
13108 ;;
13109 esac
13110 ;;
13111
13112 cygwin* | mingw* | pw32* | cegcc*)
13113 case $GXX,$cc_basename in
13114 ,cl* | no,cl*)
13115 # Native MSVC
13116 # hardcode_libdir_flag_spec is actually meaningless, as there is
13117 # no search path for DLLs.
13118 hardcode_libdir_flag_spec_CXX=' '
13119 allow_undefined_flag_CXX=unsupported
13120 always_export_symbols_CXX=yes
13121 file_list_spec_CXX='@'
13122 # Tell ltmain to make .lib files, not .a files.
13123 libext=lib
13124 # Tell ltmain to make .dll files, not .so files.
13125 shrext_cmds=".dll"
13126 # FIXME: Setting linknames here is a bad hack.
13127 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13128 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13129 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13130 else
13131 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13132 fi~
13133 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13134 linknames='
13135 # The linker will not automatically build a static lib if we build a DLL.
13136 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13137 enable_shared_with_static_runtimes_CXX=yes
13138 # Don't use ranlib
13139 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13140 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13141 lt_tool_outputfile="@TOOL_OUTPUT@"~
13142 case $lt_outputfile in
13143 *.exe|*.EXE) ;;
13144 *)
13145 lt_outputfile="$lt_outputfile.exe"
13146 lt_tool_outputfile="$lt_tool_outputfile.exe"
13147 ;;
13148 esac~
13149 func_to_tool_file "$lt_outputfile"~
13150 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13151 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13152 $RM "$lt_outputfile.manifest";
13153 fi'
13154 ;;
13155 *)
13156 # g++
13157 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13158 # as there is no search path for DLLs.
13159 hardcode_libdir_flag_spec_CXX='-L$libdir'
13160 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13161 allow_undefined_flag_CXX=unsupported
13162 always_export_symbols_CXX=no
13163 enable_shared_with_static_runtimes_CXX=yes
13164
13165 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13166 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'
13167 # If the export-symbols file already is a .def file (1st line
13168 # is EXPORTS), use it as is; otherwise, prepend...
13169 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13170 cp $export_symbols $output_objdir/$soname.def;
13171 else
13172 echo EXPORTS > $output_objdir/$soname.def;
13173 cat $export_symbols >> $output_objdir/$soname.def;
13174 fi~
13175 $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'
13176 else
13177 ld_shlibs_CXX=no
13178 fi
13179 ;;
13180 esac
13181 ;;
13182 darwin* | rhapsody*)
13183
13184
13185 archive_cmds_need_lc_CXX=no
13186 hardcode_direct_CXX=no
13187 hardcode_automatic_CXX=yes
13188 hardcode_shlibpath_var_CXX=unsupported
13189 if test "$lt_cv_ld_force_load" = "yes"; then
13190 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\"`'
13191
13192 else
13193 whole_archive_flag_spec_CXX=''
13194 fi
13195 link_all_deplibs_CXX=yes
13196 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13197 case $cc_basename in
13198 ifort*) _lt_dar_can_shared=yes ;;
13199 *) _lt_dar_can_shared=$GCC ;;
13200 esac
13201 if test "$_lt_dar_can_shared" = "yes"; then
13202 output_verbose_link_cmd=func_echo_all
13203 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}"
13204 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13205 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}"
13206 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}"
13207 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13208 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}"
13209 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}"
13210 fi
13211
13212 else
13213 ld_shlibs_CXX=no
13214 fi
13215
13216 ;;
13217
13218 dgux*)
13219 case $cc_basename in
13220 ec++*)
13221 # FIXME: insert proper C++ library support
13222 ld_shlibs_CXX=no
13223 ;;
13224 ghcx*)
13225 # Green Hills C++ Compiler
13226 # FIXME: insert proper C++ library support
13227 ld_shlibs_CXX=no
13228 ;;
13229 *)
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13232 ;;
13233 esac
13234 ;;
13235
13236 freebsd2.*)
13237 # C++ shared libraries reported to be fairly broken before
13238 # switch to ELF
13239 ld_shlibs_CXX=no
13240 ;;
13241
13242 freebsd-elf*)
13243 archive_cmds_need_lc_CXX=no
13244 ;;
13245
13246 freebsd* | dragonfly*)
13247 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13248 # conventions
13249 ld_shlibs_CXX=yes
13250 ;;
13251
13252 gnu*)
13253 ;;
13254
13255 haiku*)
13256 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257 link_all_deplibs_CXX=yes
13258 ;;
13259
13260 hpux9*)
13261 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13262 hardcode_libdir_separator_CXX=:
13263 export_dynamic_flag_spec_CXX='${wl}-E'
13264 hardcode_direct_CXX=yes
13265 hardcode_minus_L_CXX=yes # Not in the search PATH,
13266 # but as the default
13267 # location of the library.
13268
13269 case $cc_basename in
13270 CC*)
13271 # FIXME: insert proper C++ library support
13272 ld_shlibs_CXX=no
13273 ;;
13274 aCC*)
13275 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'
13276 # Commands to make compiler produce verbose output that lists
13277 # what "hidden" libraries, object files and flags are used when
13278 # linking a shared library.
13279 #
13280 # There doesn't appear to be a way to prevent this compiler from
13281 # explicitly linking system object files so we need to strip them
13282 # from the output so that they don't get included in the library
13283 # dependencies.
13284 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"'
13285 ;;
13286 *)
13287 if test "$GXX" = yes; then
13288 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'
13289 else
13290 # FIXME: insert proper C++ library support
13291 ld_shlibs_CXX=no
13292 fi
13293 ;;
13294 esac
13295 ;;
13296
13297 hpux10*|hpux11*)
13298 if test $with_gnu_ld = no; then
13299 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13300 hardcode_libdir_separator_CXX=:
13301
13302 case $host_cpu in
13303 hppa*64*|ia64*)
13304 ;;
13305 *)
13306 export_dynamic_flag_spec_CXX='${wl}-E'
13307 ;;
13308 esac
13309 fi
13310 case $host_cpu in
13311 hppa*64*|ia64*)
13312 hardcode_direct_CXX=no
13313 hardcode_shlibpath_var_CXX=no
13314 ;;
13315 *)
13316 hardcode_direct_CXX=yes
13317 hardcode_direct_absolute_CXX=yes
13318 hardcode_minus_L_CXX=yes # Not in the search PATH,
13319 # but as the default
13320 # location of the library.
13321 ;;
13322 esac
13323
13324 case $cc_basename in
13325 CC*)
13326 # FIXME: insert proper C++ library support
13327 ld_shlibs_CXX=no
13328 ;;
13329 aCC*)
13330 case $host_cpu in
13331 hppa*64*)
13332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13333 ;;
13334 ia64*)
13335 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13336 ;;
13337 *)
13338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13339 ;;
13340 esac
13341 # Commands to make compiler produce verbose output that lists
13342 # what "hidden" libraries, object files and flags are used when
13343 # linking a shared library.
13344 #
13345 # There doesn't appear to be a way to prevent this compiler from
13346 # explicitly linking system object files so we need to strip them
13347 # from the output so that they don't get included in the library
13348 # dependencies.
13349 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"'
13350 ;;
13351 *)
13352 if test "$GXX" = yes; then
13353 if test $with_gnu_ld = no; then
13354 case $host_cpu in
13355 hppa*64*)
13356 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357 ;;
13358 ia64*)
13359 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13360 ;;
13361 *)
13362 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'
13363 ;;
13364 esac
13365 fi
13366 else
13367 # FIXME: insert proper C++ library support
13368 ld_shlibs_CXX=no
13369 fi
13370 ;;
13371 esac
13372 ;;
13373
13374 interix[3-9]*)
13375 hardcode_direct_CXX=no
13376 hardcode_shlibpath_var_CXX=no
13377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_CXX='${wl}-E'
13379 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13380 # Instead, shared libraries are loaded at an image base (0x10000000 by
13381 # default) and relocated if they conflict, which is a slow very memory
13382 # consuming and fragmenting process. To avoid this, we pick a random,
13383 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13384 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13385 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'
13386 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'
13387 ;;
13388 irix5* | irix6*)
13389 case $cc_basename in
13390 CC*)
13391 # SGI C++
13392 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'
13393
13394 # Archives containing C++ object files must be created using
13395 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13396 # necessary to make sure instantiated templates are included
13397 # in the archive.
13398 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13399 ;;
13400 *)
13401 if test "$GXX" = yes; then
13402 if test "$with_gnu_ld" = no; then
13403 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'
13404 else
13405 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'
13406 fi
13407 fi
13408 link_all_deplibs_CXX=yes
13409 ;;
13410 esac
13411 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13412 hardcode_libdir_separator_CXX=:
13413 inherit_rpath_CXX=yes
13414 ;;
13415
13416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13417 case $cc_basename in
13418 KCC*)
13419 # Kuck and Associates, Inc. (KAI) C++ Compiler
13420
13421 # KCC will only create a shared library if the output file
13422 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13423 # to its proper name (with version) after linking.
13424 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'
13425 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'
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13429 #
13430 # There doesn't appear to be a way to prevent this compiler from
13431 # explicitly linking system object files so we need to strip them
13432 # from the output so that they don't get included in the library
13433 # dependencies.
13434 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"'
13435
13436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13438
13439 # Archives containing C++ object files must be created using
13440 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13441 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13442 ;;
13443 icpc* | ecpc* )
13444 # Intel C++
13445 with_gnu_ld=yes
13446 # version 8.0 and above of icpc choke on multiply defined symbols
13447 # if we add $predep_objects and $postdep_objects, however 7.1 and
13448 # earlier do not add the objects themselves.
13449 case `$CC -V 2>&1` in
13450 *"Version 7."*)
13451 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452 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'
13453 ;;
13454 *) # Version 8.0 or newer
13455 tmp_idyn=
13456 case $host_cpu in
13457 ia64*) tmp_idyn=' -i_dynamic';;
13458 esac
13459 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13460 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'
13461 ;;
13462 esac
13463 archive_cmds_need_lc_CXX=no
13464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13466 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13467 ;;
13468 pgCC* | pgcpp*)
13469 # Portland Group C++ compiler
13470 case `$CC -V` in
13471 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13472 prelink_cmds_CXX='tpldir=Template.dir~
13473 rm -rf $tpldir~
13474 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13475 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13476 old_archive_cmds_CXX='tpldir=Template.dir~
13477 rm -rf $tpldir~
13478 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13479 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13480 $RANLIB $oldlib'
13481 archive_cmds_CXX='tpldir=Template.dir~
13482 rm -rf $tpldir~
13483 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13484 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13485 archive_expsym_cmds_CXX='tpldir=Template.dir~
13486 rm -rf $tpldir~
13487 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13488 $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'
13489 ;;
13490 *) # Version 6 and above use weak symbols
13491 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13492 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'
13493 ;;
13494 esac
13495
13496 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13498 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'
13499 ;;
13500 cxx*)
13501 # Compaq C++
13502 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13503 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'
13504
13505 runpath_var=LD_RUN_PATH
13506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13507 hardcode_libdir_separator_CXX=:
13508
13509 # Commands to make compiler produce verbose output that lists
13510 # what "hidden" libraries, object files and flags are used when
13511 # linking a shared library.
13512 #
13513 # There doesn't appear to be a way to prevent this compiler from
13514 # explicitly linking system object files so we need to strip them
13515 # from the output so that they don't get included in the library
13516 # dependencies.
13517 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'
13518 ;;
13519 xl* | mpixl* | bgxl*)
13520 # IBM XL 8.0 on PPC, with GNU ld
13521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13522 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13523 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13524 if test "x$supports_anon_versioning" = xyes; then
13525 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13527 echo "local: *; };" >> $output_objdir/$libname.ver~
13528 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13529 fi
13530 ;;
13531 *)
13532 case `$CC -V 2>&1 | sed 5q` in
13533 *Sun\ C*)
13534 # Sun C++ 5.9
13535 no_undefined_flag_CXX=' -zdefs'
13536 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13537 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'
13538 hardcode_libdir_flag_spec_CXX='-R$libdir'
13539 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'
13540 compiler_needs_object_CXX=yes
13541
13542 # Not sure whether something based on
13543 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13544 # would be better.
13545 output_verbose_link_cmd='func_echo_all'
13546
13547 # Archives containing C++ object files must be created using
13548 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13549 # necessary to make sure instantiated templates are included
13550 # in the archive.
13551 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13552 ;;
13553 esac
13554 ;;
13555 esac
13556 ;;
13557
13558 lynxos*)
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13561 ;;
13562
13563 m88k*)
13564 # FIXME: insert proper C++ library support
13565 ld_shlibs_CXX=no
13566 ;;
13567
13568 mvs*)
13569 case $cc_basename in
13570 cxx*)
13571 # FIXME: insert proper C++ library support
13572 ld_shlibs_CXX=no
13573 ;;
13574 *)
13575 # FIXME: insert proper C++ library support
13576 ld_shlibs_CXX=no
13577 ;;
13578 esac
13579 ;;
13580
13581 netbsd*)
13582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13583 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13584 wlarc=
13585 hardcode_libdir_flag_spec_CXX='-R$libdir'
13586 hardcode_direct_CXX=yes
13587 hardcode_shlibpath_var_CXX=no
13588 fi
13589 # Workaround some broken pre-1.5 toolchains
13590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13591 ;;
13592
13593 *nto* | *qnx*)
13594 ld_shlibs_CXX=yes
13595 ;;
13596
13597 openbsd2*)
13598 # C++ shared libraries are fairly broken
13599 ld_shlibs_CXX=no
13600 ;;
13601
13602 openbsd*)
13603 if test -f /usr/libexec/ld.so; then
13604 hardcode_direct_CXX=yes
13605 hardcode_shlibpath_var_CXX=no
13606 hardcode_direct_absolute_CXX=yes
13607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13611 export_dynamic_flag_spec_CXX='${wl}-E'
13612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13613 fi
13614 output_verbose_link_cmd=func_echo_all
13615 else
13616 ld_shlibs_CXX=no
13617 fi
13618 ;;
13619
13620 osf3* | osf4* | osf5*)
13621 case $cc_basename in
13622 KCC*)
13623 # Kuck and Associates, Inc. (KAI) C++ Compiler
13624
13625 # KCC will only create a shared library if the output file
13626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13627 # to its proper name (with version) after linking.
13628 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'
13629
13630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13631 hardcode_libdir_separator_CXX=:
13632
13633 # Archives containing C++ object files must be created using
13634 # the KAI C++ compiler.
13635 case $host in
13636 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13637 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13638 esac
13639 ;;
13640 RCC*)
13641 # Rational C++ 2.4.1
13642 # FIXME: insert proper C++ library support
13643 ld_shlibs_CXX=no
13644 ;;
13645 cxx*)
13646 case $host in
13647 osf3*)
13648 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13649 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'
13650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13651 ;;
13652 *)
13653 allow_undefined_flag_CXX=' -expect_unresolved \*'
13654 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'
13655 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13656 echo "-hidden">> $lib.exp~
13657 $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~
13658 $RM $lib.exp'
13659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13660 ;;
13661 esac
13662
13663 hardcode_libdir_separator_CXX=:
13664
13665 # Commands to make compiler produce verbose output that lists
13666 # what "hidden" libraries, object files and flags are used when
13667 # linking a shared library.
13668 #
13669 # There doesn't appear to be a way to prevent this compiler from
13670 # explicitly linking system object files so we need to strip them
13671 # from the output so that they don't get included in the library
13672 # dependencies.
13673 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"'
13674 ;;
13675 *)
13676 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13678 case $host in
13679 osf3*)
13680 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'
13681 ;;
13682 *)
13683 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'
13684 ;;
13685 esac
13686
13687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13688 hardcode_libdir_separator_CXX=:
13689
13690 # Commands to make compiler produce verbose output that lists
13691 # what "hidden" libraries, object files and flags are used when
13692 # linking a shared library.
13693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13694
13695 else
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13698 fi
13699 ;;
13700 esac
13701 ;;
13702
13703 psos*)
13704 # FIXME: insert proper C++ library support
13705 ld_shlibs_CXX=no
13706 ;;
13707
13708 sunos4*)
13709 case $cc_basename in
13710 CC*)
13711 # Sun C++ 4.x
13712 # FIXME: insert proper C++ library support
13713 ld_shlibs_CXX=no
13714 ;;
13715 lcc*)
13716 # Lucid
13717 # FIXME: insert proper C++ library support
13718 ld_shlibs_CXX=no
13719 ;;
13720 *)
13721 # FIXME: insert proper C++ library support
13722 ld_shlibs_CXX=no
13723 ;;
13724 esac
13725 ;;
13726
13727 solaris*)
13728 case $cc_basename in
13729 CC* | sunCC*)
13730 # Sun C++ 4.2, 5.x and Centerline C++
13731 archive_cmds_need_lc_CXX=yes
13732 no_undefined_flag_CXX=' -zdefs'
13733 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13734 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13735 $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'
13736
13737 hardcode_libdir_flag_spec_CXX='-R$libdir'
13738 hardcode_shlibpath_var_CXX=no
13739 case $host_os in
13740 solaris2.[0-5] | solaris2.[0-5].*) ;;
13741 *)
13742 # The compiler driver will combine and reorder linker options,
13743 # but understands `-z linker_flag'.
13744 # Supported since Solaris 2.6 (maybe 2.5.1?)
13745 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13746 ;;
13747 esac
13748 link_all_deplibs_CXX=yes
13749
13750 output_verbose_link_cmd='func_echo_all'
13751
13752 # Archives containing C++ object files must be created using
13753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13754 # necessary to make sure instantiated templates are included
13755 # in the archive.
13756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13757 ;;
13758 gcx*)
13759 # Green Hills C++ Compiler
13760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13761
13762 # The C++ compiler must be used to create the archive.
13763 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13764 ;;
13765 *)
13766 # GNU C++ compiler with Solaris linker
13767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13768 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13769 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13770 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13771 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13772 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13773
13774 # Commands to make compiler produce verbose output that lists
13775 # what "hidden" libraries, object files and flags are used when
13776 # linking a shared library.
13777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13778 else
13779 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13780 # platform.
13781 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13782 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13783 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13784
13785 # Commands to make compiler produce verbose output that lists
13786 # what "hidden" libraries, object files and flags are used when
13787 # linking a shared library.
13788 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13789 fi
13790
13791 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13792 case $host_os in
13793 solaris2.[0-5] | solaris2.[0-5].*) ;;
13794 *)
13795 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13796 ;;
13797 esac
13798 fi
13799 ;;
13800 esac
13801 ;;
13802
13803 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13804 no_undefined_flag_CXX='${wl}-z,text'
13805 archive_cmds_need_lc_CXX=no
13806 hardcode_shlibpath_var_CXX=no
13807 runpath_var='LD_RUN_PATH'
13808
13809 case $cc_basename in
13810 CC*)
13811 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13812 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 ;;
13814 *)
13815 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13816 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817 ;;
13818 esac
13819 ;;
13820
13821 sysv5* | sco3.2v5* | sco5v6*)
13822 # Note: We can NOT use -z defs as we might desire, because we do not
13823 # link with -lc, and that would cause any symbols used from libc to
13824 # always be unresolved, which means just about no library would
13825 # ever link correctly. If we're not using GNU ld we use -z text
13826 # though, which does catch some bad symbols but isn't as heavy-handed
13827 # as -z defs.
13828 no_undefined_flag_CXX='${wl}-z,text'
13829 allow_undefined_flag_CXX='${wl}-z,nodefs'
13830 archive_cmds_need_lc_CXX=no
13831 hardcode_shlibpath_var_CXX=no
13832 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13833 hardcode_libdir_separator_CXX=':'
13834 link_all_deplibs_CXX=yes
13835 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13836 runpath_var='LD_RUN_PATH'
13837
13838 case $cc_basename in
13839 CC*)
13840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13843 '"$old_archive_cmds_CXX"
13844 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13845 '"$reload_cmds_CXX"
13846 ;;
13847 *)
13848 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13849 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850 ;;
13851 esac
13852 ;;
13853
13854 tandem*)
13855 case $cc_basename in
13856 NCC*)
13857 # NonStop-UX NCC 3.20
13858 # FIXME: insert proper C++ library support
13859 ld_shlibs_CXX=no
13860 ;;
13861 *)
13862 # FIXME: insert proper C++ library support
13863 ld_shlibs_CXX=no
13864 ;;
13865 esac
13866 ;;
13867
13868 vxworks*)
13869 # FIXME: insert proper C++ library support
13870 ld_shlibs_CXX=no
13871 ;;
13872
13873 *)
13874 # FIXME: insert proper C++ library support
13875 ld_shlibs_CXX=no
13876 ;;
13877 esac
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13880$as_echo "$ld_shlibs_CXX" >&6; }
13881 test "$ld_shlibs_CXX" = no && can_build_shared=no
13882
13883 GCC_CXX="$GXX"
13884 LD_CXX="$LD"
13885
13886 ## CAVEAT EMPTOR:
13887 ## There is no encapsulation within the following macros, do not change
13888 ## the running order or otherwise move them around unless you know exactly
13889 ## what you are doing...
13890 # Dependencies to place before and after the object being linked:
13891predep_objects_CXX=
13892postdep_objects_CXX=
13893predeps_CXX=
13894postdeps_CXX=
13895compiler_lib_search_path_CXX=
13896
13897cat > conftest.$ac_ext <<_LT_EOF
13898class Foo
13899{
13900public:
13901 Foo (void) { a = 0; }
13902private:
13903 int a;
13904};
13905_LT_EOF
13906
13907
13908_lt_libdeps_save_CFLAGS=$CFLAGS
13909case "$CC $CFLAGS " in #(
13910*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13911*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13912*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13913esac
13914
13915if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13916 (eval $ac_compile) 2>&5
13917 ac_status=$?
13918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; }; then
13920 # Parse the compiler output and extract the necessary
13921 # objects, libraries and library flags.
13922
13923 # Sentinel used to keep track of whether or not we are before
13924 # the conftest object file.
13925 pre_test_object_deps_done=no
13926
13927 for p in `eval "$output_verbose_link_cmd"`; do
13928 case ${prev}${p} in
13929
13930 -L* | -R* | -l*)
13931 # Some compilers place space between "-{L,R}" and the path.
13932 # Remove the space.
13933 if test $p = "-L" ||
13934 test $p = "-R"; then
13935 prev=$p
13936 continue
13937 fi
13938
13939 # Expand the sysroot to ease extracting the directories later.
13940 if test -z "$prev"; then
13941 case $p in
13942 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13943 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13944 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13945 esac
13946 fi
13947 case $p in
13948 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13949 esac
13950 if test "$pre_test_object_deps_done" = no; then
13951 case ${prev} in
13952 -L | -R)
13953 # Internal compiler library paths should come after those
13954 # provided the user. The postdeps already come after the
13955 # user supplied libs so there is no need to process them.
13956 if test -z "$compiler_lib_search_path_CXX"; then
13957 compiler_lib_search_path_CXX="${prev}${p}"
13958 else
13959 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13960 fi
13961 ;;
13962 # The "-l" case would never come before the object being
13963 # linked, so don't bother handling this case.
13964 esac
13965 else
13966 if test -z "$postdeps_CXX"; then
13967 postdeps_CXX="${prev}${p}"
13968 else
13969 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13970 fi
13971 fi
13972 prev=
13973 ;;
13974
13975 *.lto.$objext) ;; # Ignore GCC LTO objects
13976 *.$objext)
13977 # This assumes that the test object file only shows up
13978 # once in the compiler output.
13979 if test "$p" = "conftest.$objext"; then
13980 pre_test_object_deps_done=yes
13981 continue
13982 fi
13983
13984 if test "$pre_test_object_deps_done" = no; then
13985 if test -z "$predep_objects_CXX"; then
13986 predep_objects_CXX="$p"
13987 else
13988 predep_objects_CXX="$predep_objects_CXX $p"
13989 fi
13990 else
13991 if test -z "$postdep_objects_CXX"; then
13992 postdep_objects_CXX="$p"
13993 else
13994 postdep_objects_CXX="$postdep_objects_CXX $p"
13995 fi
13996 fi
13997 ;;
13998
13999 *) ;; # Ignore the rest.
14000
14001 esac
14002 done
14003
14004 # Clean up.
14005 rm -f a.out a.exe
14006else
14007 echo "libtool.m4: error: problem compiling CXX test program"
14008fi
14009
14010$RM -f confest.$objext
14011CFLAGS=$_lt_libdeps_save_CFLAGS
14012
14013# PORTME: override above test on systems where it is broken
14014case $host_os in
14015interix[3-9]*)
14016 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14017 # hack all around it, let's just trust "g++" to DTRT.
14018 predep_objects_CXX=
14019 postdep_objects_CXX=
14020 postdeps_CXX=
14021 ;;
14022
14023linux*)
14024 case `$CC -V 2>&1 | sed 5q` in
14025 *Sun\ C*)
14026 # Sun C++ 5.9
14027
14028 # The more standards-conforming stlport4 library is
14029 # incompatible with the Cstd library. Avoid specifying
14030 # it if it's in CXXFLAGS. Ignore libCrun as
14031 # -library=stlport4 depends on it.
14032 case " $CXX $CXXFLAGS " in
14033 *" -library=stlport4 "*)
14034 solaris_use_stlport4=yes
14035 ;;
14036 esac
14037
14038 if test "$solaris_use_stlport4" != yes; then
14039 postdeps_CXX='-library=Cstd -library=Crun'
14040 fi
14041 ;;
14042 esac
14043 ;;
14044
14045solaris*)
14046 case $cc_basename in
14047 CC* | sunCC*)
14048 # The more standards-conforming stlport4 library is
14049 # incompatible with the Cstd library. Avoid specifying
14050 # it if it's in CXXFLAGS. Ignore libCrun as
14051 # -library=stlport4 depends on it.
14052 case " $CXX $CXXFLAGS " in
14053 *" -library=stlport4 "*)
14054 solaris_use_stlport4=yes
14055 ;;
14056 esac
14057
14058 # Adding this requires a known-good setup of shared libraries for
14059 # Sun compiler versions before 5.6, else PIC objects from an old
14060 # archive will be linked into the output, leading to subtle bugs.
14061 if test "$solaris_use_stlport4" != yes; then
14062 postdeps_CXX='-library=Cstd -library=Crun'
14063 fi
14064 ;;
14065 esac
14066 ;;
14067esac
14068
14069
14070case " $postdeps_CXX " in
14071*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14072esac
14073 compiler_lib_search_dirs_CXX=
14074if test -n "${compiler_lib_search_path_CXX}"; then
14075 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14076fi
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108 lt_prog_compiler_wl_CXX=
14109lt_prog_compiler_pic_CXX=
14110lt_prog_compiler_static_CXX=
14111
14112
14113 # C++ specific cases for pic, static, wl, etc.
14114 if test "$GXX" = yes; then
14115 lt_prog_compiler_wl_CXX='-Wl,'
14116 lt_prog_compiler_static_CXX='-static'
14117
14118 case $host_os in
14119 aix*)
14120 # All AIX code is PIC.
14121 if test "$host_cpu" = ia64; then
14122 # AIX 5 now supports IA64 processor
14123 lt_prog_compiler_static_CXX='-Bstatic'
14124 fi
14125 ;;
14126
14127 amigaos*)
14128 case $host_cpu in
14129 powerpc)
14130 # see comment about AmigaOS4 .so support
14131 lt_prog_compiler_pic_CXX='-fPIC'
14132 ;;
14133 m68k)
14134 # FIXME: we need at least 68020 code to build shared libraries, but
14135 # adding the `-m68020' flag to GCC prevents building anything better,
14136 # like `-m68040'.
14137 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14138 ;;
14139 esac
14140 ;;
14141
14142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14143 # PIC is the default for these OSes.
14144 ;;
14145 mingw* | cygwin* | os2* | pw32* | cegcc*)
14146 # This hack is so that the source file can tell whether it is being
14147 # built for inclusion in a dll (and should export symbols for example).
14148 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14149 # (--disable-auto-import) libraries
14150 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14151 ;;
14152 darwin* | rhapsody*)
14153 # PIC is the default on this platform
14154 # Common symbols not allowed in MH_DYLIB files
14155 lt_prog_compiler_pic_CXX='-fno-common'
14156 ;;
14157 *djgpp*)
14158 # DJGPP does not support shared libraries at all
14159 lt_prog_compiler_pic_CXX=
14160 ;;
14161 haiku*)
14162 # PIC is the default for Haiku.
14163 # The "-static" flag exists, but is broken.
14164 lt_prog_compiler_static_CXX=
14165 ;;
14166 interix[3-9]*)
14167 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14168 # Instead, we relocate shared libraries at runtime.
14169 ;;
14170 sysv4*MP*)
14171 if test -d /usr/nec; then
14172 lt_prog_compiler_pic_CXX=-Kconform_pic
14173 fi
14174 ;;
14175 hpux*)
14176 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14177 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14178 # sets the default TLS model and affects inlining.
14179 case $host_cpu in
14180 hppa*64*)
14181 ;;
14182 *)
14183 lt_prog_compiler_pic_CXX='-fPIC'
14184 ;;
14185 esac
14186 ;;
14187 *qnx* | *nto*)
14188 # QNX uses GNU C++, but need to define -shared option too, otherwise
14189 # it will coredump.
14190 lt_prog_compiler_pic_CXX='-fPIC -shared'
14191 ;;
14192 *)
14193 lt_prog_compiler_pic_CXX='-fPIC'
14194 ;;
14195 esac
14196 else
14197 case $host_os in
14198 aix[4-9]*)
14199 # All AIX code is PIC.
14200 if test "$host_cpu" = ia64; then
14201 # AIX 5 now supports IA64 processor
14202 lt_prog_compiler_static_CXX='-Bstatic'
14203 else
14204 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14205 fi
14206 ;;
14207 chorus*)
14208 case $cc_basename in
14209 cxch68*)
14210 # Green Hills C++ Compiler
14211 # _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"
14212 ;;
14213 esac
14214 ;;
14215 mingw* | cygwin* | os2* | pw32* | cegcc*)
14216 # This hack is so that the source file can tell whether it is being
14217 # built for inclusion in a dll (and should export symbols for example).
14218 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14219 ;;
14220 dgux*)
14221 case $cc_basename in
14222 ec++*)
14223 lt_prog_compiler_pic_CXX='-KPIC'
14224 ;;
14225 ghcx*)
14226 # Green Hills C++ Compiler
14227 lt_prog_compiler_pic_CXX='-pic'
14228 ;;
14229 *)
14230 ;;
14231 esac
14232 ;;
14233 freebsd* | dragonfly*)
14234 # FreeBSD uses GNU C++
14235 ;;
14236 hpux9* | hpux10* | hpux11*)
14237 case $cc_basename in
14238 CC*)
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14241 if test "$host_cpu" != ia64; then
14242 lt_prog_compiler_pic_CXX='+Z'
14243 fi
14244 ;;
14245 aCC*)
14246 lt_prog_compiler_wl_CXX='-Wl,'
14247 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14248 case $host_cpu in
14249 hppa*64*|ia64*)
14250 # +Z the default
14251 ;;
14252 *)
14253 lt_prog_compiler_pic_CXX='+Z'
14254 ;;
14255 esac
14256 ;;
14257 *)
14258 ;;
14259 esac
14260 ;;
14261 interix*)
14262 # This is c89, which is MS Visual C++ (no shared libs)
14263 # Anyone wants to do a port?
14264 ;;
14265 irix5* | irix6* | nonstopux*)
14266 case $cc_basename in
14267 CC*)
14268 lt_prog_compiler_wl_CXX='-Wl,'
14269 lt_prog_compiler_static_CXX='-non_shared'
14270 # CC pic flag -KPIC is the default.
14271 ;;
14272 *)
14273 ;;
14274 esac
14275 ;;
14276 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14277 case $cc_basename in
14278 KCC*)
14279 # KAI C++ Compiler
14280 lt_prog_compiler_wl_CXX='--backend -Wl,'
14281 lt_prog_compiler_pic_CXX='-fPIC'
14282 ;;
14283 ecpc* )
14284 # old Intel C++ for x86_64 which still supported -KPIC.
14285 lt_prog_compiler_wl_CXX='-Wl,'
14286 lt_prog_compiler_pic_CXX='-KPIC'
14287 lt_prog_compiler_static_CXX='-static'
14288 ;;
14289 icpc* )
14290 # Intel C++, used to be incompatible with GCC.
14291 # ICC 10 doesn't accept -KPIC any more.
14292 lt_prog_compiler_wl_CXX='-Wl,'
14293 lt_prog_compiler_pic_CXX='-fPIC'
14294 lt_prog_compiler_static_CXX='-static'
14295 ;;
14296 pgCC* | pgcpp*)
14297 # Portland Group C++ compiler
14298 lt_prog_compiler_wl_CXX='-Wl,'
14299 lt_prog_compiler_pic_CXX='-fpic'
14300 lt_prog_compiler_static_CXX='-Bstatic'
14301 ;;
14302 cxx*)
14303 # Compaq C++
14304 # Make sure the PIC flag is empty. It appears that all Alpha
14305 # Linux and Compaq Tru64 Unix objects are PIC.
14306 lt_prog_compiler_pic_CXX=
14307 lt_prog_compiler_static_CXX='-non_shared'
14308 ;;
14309 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14310 # IBM XL 8.0, 9.0 on PPC and BlueGene
14311 lt_prog_compiler_wl_CXX='-Wl,'
14312 lt_prog_compiler_pic_CXX='-qpic'
14313 lt_prog_compiler_static_CXX='-qstaticlink'
14314 ;;
14315 *)
14316 case `$CC -V 2>&1 | sed 5q` in
14317 *Sun\ C*)
14318 # Sun C++ 5.9
14319 lt_prog_compiler_pic_CXX='-KPIC'
14320 lt_prog_compiler_static_CXX='-Bstatic'
14321 lt_prog_compiler_wl_CXX='-Qoption ld '
14322 ;;
14323 esac
14324 ;;
14325 esac
14326 ;;
14327 lynxos*)
14328 ;;
14329 m88k*)
14330 ;;
14331 mvs*)
14332 case $cc_basename in
14333 cxx*)
14334 lt_prog_compiler_pic_CXX='-W c,exportall'
14335 ;;
14336 *)
14337 ;;
14338 esac
14339 ;;
14340 netbsd*)
14341 ;;
14342 *qnx* | *nto*)
14343 # QNX uses GNU C++, but need to define -shared option too, otherwise
14344 # it will coredump.
14345 lt_prog_compiler_pic_CXX='-fPIC -shared'
14346 ;;
14347 osf3* | osf4* | osf5*)
14348 case $cc_basename in
14349 KCC*)
14350 lt_prog_compiler_wl_CXX='--backend -Wl,'
14351 ;;
14352 RCC*)
14353 # Rational C++ 2.4.1
14354 lt_prog_compiler_pic_CXX='-pic'
14355 ;;
14356 cxx*)
14357 # Digital/Compaq C++
14358 lt_prog_compiler_wl_CXX='-Wl,'
14359 # Make sure the PIC flag is empty. It appears that all Alpha
14360 # Linux and Compaq Tru64 Unix objects are PIC.
14361 lt_prog_compiler_pic_CXX=
14362 lt_prog_compiler_static_CXX='-non_shared'
14363 ;;
14364 *)
14365 ;;
14366 esac
14367 ;;
14368 psos*)
14369 ;;
14370 solaris*)
14371 case $cc_basename in
14372 CC* | sunCC*)
14373 # Sun C++ 4.2, 5.x and Centerline C++
14374 lt_prog_compiler_pic_CXX='-KPIC'
14375 lt_prog_compiler_static_CXX='-Bstatic'
14376 lt_prog_compiler_wl_CXX='-Qoption ld '
14377 ;;
14378 gcx*)
14379 # Green Hills C++ Compiler
14380 lt_prog_compiler_pic_CXX='-PIC'
14381 ;;
14382 *)
14383 ;;
14384 esac
14385 ;;
14386 sunos4*)
14387 case $cc_basename in
14388 CC*)
14389 # Sun C++ 4.x
14390 lt_prog_compiler_pic_CXX='-pic'
14391 lt_prog_compiler_static_CXX='-Bstatic'
14392 ;;
14393 lcc*)
14394 # Lucid
14395 lt_prog_compiler_pic_CXX='-pic'
14396 ;;
14397 *)
14398 ;;
14399 esac
14400 ;;
14401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14402 case $cc_basename in
14403 CC*)
14404 lt_prog_compiler_wl_CXX='-Wl,'
14405 lt_prog_compiler_pic_CXX='-KPIC'
14406 lt_prog_compiler_static_CXX='-Bstatic'
14407 ;;
14408 esac
14409 ;;
14410 tandem*)
14411 case $cc_basename in
14412 NCC*)
14413 # NonStop-UX NCC 3.20
14414 lt_prog_compiler_pic_CXX='-KPIC'
14415 ;;
14416 *)
14417 ;;
14418 esac
14419 ;;
14420 vxworks*)
14421 ;;
14422 *)
14423 lt_prog_compiler_can_build_shared_CXX=no
14424 ;;
14425 esac
14426 fi
14427
14428case $host_os in
14429 # For platforms which do not support PIC, -DPIC is meaningless:
14430 *djgpp*)
14431 lt_prog_compiler_pic_CXX=
14432 ;;
14433 *)
14434 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14435 ;;
14436esac
14437
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14439$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14440if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14441 $as_echo_n "(cached) " >&6
14442else
14443 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14444fi
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14446$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14447lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14448
14449#
14450# Check to make sure the PIC flag actually works.
14451#
14452if test -n "$lt_prog_compiler_pic_CXX"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14454$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14455if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14456 $as_echo_n "(cached) " >&6
14457else
14458 lt_cv_prog_compiler_pic_works_CXX=no
14459 ac_outfile=conftest.$ac_objext
14460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14461 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14462 # Insert the option either (1) after the last *FLAGS variable, or
14463 # (2) before a word containing "conftest.", or (3) at the end.
14464 # Note that $ac_compile itself does not contain backslashes and begins
14465 # with a dollar sign (not a hyphen), so the echo should work correctly.
14466 # The option is referenced via a variable to avoid confusing sed.
14467 lt_compile=`echo "$ac_compile" | $SED \
14468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14470 -e 's:$: $lt_compiler_flag:'`
14471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14472 (eval "$lt_compile" 2>conftest.err)
14473 ac_status=$?
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 if (exit $ac_status) && test -s "$ac_outfile"; then
14477 # The compiler can only warn and ignore the option if not recognized
14478 # So say no if there are warnings other than the usual output.
14479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14482 lt_cv_prog_compiler_pic_works_CXX=yes
14483 fi
14484 fi
14485 $RM conftest*
14486
14487fi
14488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14489$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14490
14491if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14492 case $lt_prog_compiler_pic_CXX in
14493 "" | " "*) ;;
14494 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14495 esac
14496else
14497 lt_prog_compiler_pic_CXX=
14498 lt_prog_compiler_can_build_shared_CXX=no
14499fi
14500
14501fi
14502
14503
14504
14505
14506
14507#
14508# Check to make sure the static flag actually works.
14509#
14510wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14512$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14513if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515else
14516 lt_cv_prog_compiler_static_works_CXX=no
14517 save_LDFLAGS="$LDFLAGS"
14518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14519 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14521 # The linker can only warn and ignore the option if not recognized
14522 # So say no if there are warnings
14523 if test -s conftest.err; then
14524 # Append any errors to the config.log.
14525 cat conftest.err 1>&5
14526 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14528 if diff conftest.exp conftest.er2 >/dev/null; then
14529 lt_cv_prog_compiler_static_works_CXX=yes
14530 fi
14531 else
14532 lt_cv_prog_compiler_static_works_CXX=yes
14533 fi
14534 fi
14535 $RM -r conftest*
14536 LDFLAGS="$save_LDFLAGS"
14537
14538fi
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14540$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14541
14542if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14543 :
14544else
14545 lt_prog_compiler_static_CXX=
14546fi
14547
14548
14549
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14552$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14553if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555else
14556 lt_cv_prog_compiler_c_o_CXX=no
14557 $RM -r conftest 2>/dev/null
14558 mkdir conftest
14559 cd conftest
14560 mkdir out
14561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14562
14563 lt_compiler_flag="-o out/conftest2.$ac_objext"
14564 # Insert the option either (1) after the last *FLAGS variable, or
14565 # (2) before a word containing "conftest.", or (3) at the end.
14566 # Note that $ac_compile itself does not contain backslashes and begins
14567 # with a dollar sign (not a hyphen), so the echo should work correctly.
14568 lt_compile=`echo "$ac_compile" | $SED \
14569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14571 -e 's:$: $lt_compiler_flag:'`
14572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14573 (eval "$lt_compile" 2>out/conftest.err)
14574 ac_status=$?
14575 cat out/conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14578 then
14579 # The compiler can only warn and ignore the option if not recognized
14580 # So say no if there are warnings
14581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14584 lt_cv_prog_compiler_c_o_CXX=yes
14585 fi
14586 fi
14587 chmod u+w . 2>&5
14588 $RM conftest*
14589 # SGI C++ compiler will create directory out/ii_files/ for
14590 # template instantiation
14591 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14592 $RM out/* && rmdir out
14593 cd ..
14594 $RM -r conftest
14595 $RM conftest*
14596
14597fi
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14599$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14600
14601
14602
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14604$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14605if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607else
14608 lt_cv_prog_compiler_c_o_CXX=no
14609 $RM -r conftest 2>/dev/null
14610 mkdir conftest
14611 cd conftest
14612 mkdir out
14613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14614
14615 lt_compiler_flag="-o out/conftest2.$ac_objext"
14616 # Insert the option either (1) after the last *FLAGS variable, or
14617 # (2) before a word containing "conftest.", or (3) at the end.
14618 # Note that $ac_compile itself does not contain backslashes and begins
14619 # with a dollar sign (not a hyphen), so the echo should work correctly.
14620 lt_compile=`echo "$ac_compile" | $SED \
14621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14623 -e 's:$: $lt_compiler_flag:'`
14624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14625 (eval "$lt_compile" 2>out/conftest.err)
14626 ac_status=$?
14627 cat out/conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14630 then
14631 # The compiler can only warn and ignore the option if not recognized
14632 # So say no if there are warnings
14633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14636 lt_cv_prog_compiler_c_o_CXX=yes
14637 fi
14638 fi
14639 chmod u+w . 2>&5
14640 $RM conftest*
14641 # SGI C++ compiler will create directory out/ii_files/ for
14642 # template instantiation
14643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14644 $RM out/* && rmdir out
14645 cd ..
14646 $RM -r conftest
14647 $RM conftest*
14648
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14651$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14652
14653
14654
14655
14656hard_links="nottested"
14657if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14658 # do not overwrite the value of need_locks provided by the user
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14660$as_echo_n "checking if we can lock with hard links... " >&6; }
14661 hard_links=yes
14662 $RM conftest*
14663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14664 touch conftest.a
14665 ln conftest.a conftest.b 2>&5 || hard_links=no
14666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14668$as_echo "$hard_links" >&6; }
14669 if test "$hard_links" = no; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14671$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14672 need_locks=warn
14673 fi
14674else
14675 need_locks=no
14676fi
14677
14678
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14681$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14682
14683 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14684 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14685 case $host_os in
14686 aix[4-9]*)
14687 # If we're using GNU nm, then we don't want the "-C" option.
14688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14689 # Also, AIX nm treats weak defined symbols like other global defined
14690 # symbols, whereas GNU nm marks them as "W".
14691 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14692 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'
14693 else
14694 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'
14695 fi
14696 ;;
14697 pw32*)
14698 export_symbols_cmds_CXX="$ltdll_cmds"
14699 ;;
14700 cygwin* | mingw* | cegcc*)
14701 case $cc_basename in
14702 cl*)
14703 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14704 ;;
14705 *)
14706 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'
14707 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14708 ;;
14709 esac
14710 ;;
14711 *)
14712 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14713 ;;
14714 esac
14715
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14717$as_echo "$ld_shlibs_CXX" >&6; }
14718test "$ld_shlibs_CXX" = no && can_build_shared=no
14719
14720with_gnu_ld_CXX=$with_gnu_ld
14721
14722
14723
14724
14725
14726
14727#
14728# Do we need to explicitly link libc?
14729#
14730case "x$archive_cmds_need_lc_CXX" in
14731x|xyes)
14732 # Assume -lc should be added
14733 archive_cmds_need_lc_CXX=yes
14734
14735 if test "$enable_shared" = yes && test "$GCC" = yes; then
14736 case $archive_cmds_CXX in
14737 *'~'*)
14738 # FIXME: we may have to deal with multi-command sequences.
14739 ;;
14740 '$CC '*)
14741 # Test whether the compiler implicitly links with -lc since on some
14742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14743 # to ld, don't add -lc before -lgcc.
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14745$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14746if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748else
14749 $RM conftest*
14750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751
14752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14753 (eval $ac_compile) 2>&5
14754 ac_status=$?
14755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14756 test $ac_status = 0; } 2>conftest.err; then
14757 soname=conftest
14758 lib=conftest
14759 libobjs=conftest.$ac_objext
14760 deplibs=
14761 wl=$lt_prog_compiler_wl_CXX
14762 pic_flag=$lt_prog_compiler_pic_CXX
14763 compiler_flags=-v
14764 linker_flags=-v
14765 verstring=
14766 output_objdir=.
14767 libname=conftest
14768 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14769 allow_undefined_flag_CXX=
14770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14771 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14772 ac_status=$?
14773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14774 test $ac_status = 0; }
14775 then
14776 lt_cv_archive_cmds_need_lc_CXX=no
14777 else
14778 lt_cv_archive_cmds_need_lc_CXX=yes
14779 fi
14780 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14781 else
14782 cat conftest.err 1>&5
14783 fi
14784 $RM conftest*
14785
14786fi
14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14788$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14789 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14790 ;;
14791 esac
14792 fi
14793 ;;
14794esac
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
14851
14852
14853
14854
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14858$as_echo_n "checking dynamic linker characteristics... " >&6; }
14859
14860library_names_spec=
14861libname_spec='lib$name'
14862soname_spec=
14863shrext_cmds=".so"
14864postinstall_cmds=
14865postuninstall_cmds=
14866finish_cmds=
14867finish_eval=
14868shlibpath_var=
14869shlibpath_overrides_runpath=unknown
14870version_type=none
14871dynamic_linker="$host_os ld.so"
14872sys_lib_dlsearch_path_spec="/lib /usr/lib"
14873need_lib_prefix=unknown
14874hardcode_into_libs=no
14875
14876# when you set need_version to no, make sure it does not cause -set_version
14877# flags to be left without arguments
14878need_version=unknown
14879
14880case $host_os in
14881aix3*)
14882 version_type=linux # correct to gnu/linux during the next big refactor
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14884 shlibpath_var=LIBPATH
14885
14886 # AIX 3 has no versioning support, so we append a major version to the name.
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 ;;
14889
14890aix[4-9]*)
14891 version_type=linux # correct to gnu/linux during the next big refactor
14892 need_lib_prefix=no
14893 need_version=no
14894 hardcode_into_libs=yes
14895 if test "$host_cpu" = ia64; then
14896 # AIX 5 supports IA64
14897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 else
14900 # With GCC up to 2.95.x, collect2 would create an import file
14901 # for dependence libraries. The import file would start with
14902 # the line `#! .'. This would cause the generated library to
14903 # depend on `.', always an invalid library. This was fixed in
14904 # development snapshots of GCC prior to 3.0.
14905 case $host_os in
14906 aix4 | aix4.[01] | aix4.[01].*)
14907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14908 echo ' yes '
14909 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14910 :
14911 else
14912 can_build_shared=no
14913 fi
14914 ;;
14915 esac
14916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14917 # soname into executable. Probably we can add versioning support to
14918 # collect2, so additional links can be useful in future.
14919 if test "$aix_use_runtimelinking" = yes; then
14920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14921 # instead of lib<name>.a to let people know that these are not
14922 # typical AIX shared libraries.
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 else
14925 # We preserve .a as extension for shared libraries through AIX4.2
14926 # and later when we are not doing run time linking.
14927 library_names_spec='${libname}${release}.a $libname.a'
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 fi
14930 shlibpath_var=LIBPATH
14931 fi
14932 ;;
14933
14934amigaos*)
14935 case $host_cpu in
14936 powerpc)
14937 # Since July 2007 AmigaOS4 officially supports .so libraries.
14938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 ;;
14941 m68k)
14942 library_names_spec='$libname.ixlibrary $libname.a'
14943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14944 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'
14945 ;;
14946 esac
14947 ;;
14948
14949beos*)
14950 library_names_spec='${libname}${shared_ext}'
14951 dynamic_linker="$host_os ld.so"
14952 shlibpath_var=LIBRARY_PATH
14953 ;;
14954
14955bsdi[45]*)
14956 version_type=linux # correct to gnu/linux during the next big refactor
14957 need_version=no
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14964 # the default ld.so.conf also contains /usr/contrib/lib and
14965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14966 # libtool to hard-code these into programs
14967 ;;
14968
14969cygwin* | mingw* | pw32* | cegcc*)
14970 version_type=windows
14971 shrext_cmds=".dll"
14972 need_version=no
14973 need_lib_prefix=no
14974
14975 case $GCC,$cc_basename in
14976 yes,*)
14977 # gcc
14978 library_names_spec='$libname.dll.a'
14979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14980 postinstall_cmds='base_file=`basename \${file}`~
14981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14982 dldir=$destdir/`dirname \$dlpath`~
14983 test -d \$dldir || mkdir -p \$dldir~
14984 $install_prog $dir/$dlname \$dldir/$dlname~
14985 chmod a+x \$dldir/$dlname~
14986 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14987 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14988 fi'
14989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14990 dlpath=$dir/\$dldll~
14991 $RM \$dlpath'
14992 shlibpath_overrides_runpath=yes
14993
14994 case $host_os in
14995 cygwin*)
14996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14998
14999 ;;
15000 mingw* | cegcc*)
15001 # MinGW DLLs use traditional 'lib' prefix
15002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15003 ;;
15004 pw32*)
15005 # pw32 DLLs use 'pw' prefix rather than 'lib'
15006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15007 ;;
15008 esac
15009 dynamic_linker='Win32 ld.exe'
15010 ;;
15011
15012 *,cl*)
15013 # Native MSVC
15014 libname_spec='$name'
15015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15016 library_names_spec='${libname}.dll.lib'
15017
15018 case $build_os in
15019 mingw*)
15020 sys_lib_search_path_spec=
15021 lt_save_ifs=$IFS
15022 IFS=';'
15023 for lt_path in $LIB
15024 do
15025 IFS=$lt_save_ifs
15026 # Let DOS variable expansion print the short 8.3 style file name.
15027 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15028 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15029 done
15030 IFS=$lt_save_ifs
15031 # Convert to MSYS style.
15032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15033 ;;
15034 cygwin*)
15035 # Convert to unix form, then to dos form, then back to unix form
15036 # but this time dos style (no spaces!) so that the unix form looks
15037 # like /cygdrive/c/PROGRA~1:/cygdr...
15038 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15039 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15040 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15041 ;;
15042 *)
15043 sys_lib_search_path_spec="$LIB"
15044 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15045 # It is most probably a Windows format PATH.
15046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15047 else
15048 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15049 fi
15050 # FIXME: find the short name or the path components, as spaces are
15051 # common. (e.g. "Program Files" -> "PROGRA~1")
15052 ;;
15053 esac
15054
15055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15056 postinstall_cmds='base_file=`basename \${file}`~
15057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15058 dldir=$destdir/`dirname \$dlpath`~
15059 test -d \$dldir || mkdir -p \$dldir~
15060 $install_prog $dir/$dlname \$dldir/$dlname'
15061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15062 dlpath=$dir/\$dldll~
15063 $RM \$dlpath'
15064 shlibpath_overrides_runpath=yes
15065 dynamic_linker='Win32 link.exe'
15066 ;;
15067
15068 *)
15069 # Assume MSVC wrapper
15070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15071 dynamic_linker='Win32 ld.exe'
15072 ;;
15073 esac
15074 # FIXME: first we should search . and the directory the executable is in
15075 shlibpath_var=PATH
15076 ;;
15077
15078darwin* | rhapsody*)
15079 dynamic_linker="$host_os dyld"
15080 version_type=darwin
15081 need_lib_prefix=no
15082 need_version=no
15083 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15084 soname_spec='${libname}${release}${major}$shared_ext'
15085 shlibpath_overrides_runpath=yes
15086 shlibpath_var=DYLD_LIBRARY_PATH
15087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15088
15089 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15090 ;;
15091
15092dgux*)
15093 version_type=linux # correct to gnu/linux during the next big refactor
15094 need_lib_prefix=no
15095 need_version=no
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 shlibpath_var=LD_LIBRARY_PATH
15099 ;;
15100
15101freebsd* | dragonfly*)
15102 # DragonFly does not have aout. When/if they implement a new
15103 # versioning mechanism, adjust this.
15104 if test -x /usr/bin/objformat; then
15105 objformat=`/usr/bin/objformat`
15106 else
15107 case $host_os in
15108 freebsd[23].*) objformat=aout ;;
15109 *) objformat=elf ;;
15110 esac
15111 fi
15112 version_type=freebsd-$objformat
15113 case $version_type in
15114 freebsd-elf*)
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15116 need_version=no
15117 need_lib_prefix=no
15118 ;;
15119 freebsd-*)
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15121 need_version=yes
15122 ;;
15123 esac
15124 shlibpath_var=LD_LIBRARY_PATH
15125 case $host_os in
15126 freebsd2.*)
15127 shlibpath_overrides_runpath=yes
15128 ;;
15129 freebsd3.[01]* | freebsdelf3.[01]*)
15130 shlibpath_overrides_runpath=yes
15131 hardcode_into_libs=yes
15132 ;;
15133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15135 shlibpath_overrides_runpath=no
15136 hardcode_into_libs=yes
15137 ;;
15138 *) # from 4.6 on, and DragonFly
15139 shlibpath_overrides_runpath=yes
15140 hardcode_into_libs=yes
15141 ;;
15142 esac
15143 ;;
15144
15145gnu*)
15146 version_type=linux # correct to gnu/linux during the next big refactor
15147 need_lib_prefix=no
15148 need_version=no
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=no
15153 hardcode_into_libs=yes
15154 ;;
15155
15156haiku*)
15157 version_type=linux # correct to gnu/linux during the next big refactor
15158 need_lib_prefix=no
15159 need_version=no
15160 dynamic_linker="$host_os runtime_loader"
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 shlibpath_var=LIBRARY_PATH
15164 shlibpath_overrides_runpath=yes
15165 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15166 hardcode_into_libs=yes
15167 ;;
15168
15169hpux9* | hpux10* | hpux11*)
15170 # Give a soname corresponding to the major version so that dld.sl refuses to
15171 # link against other versions.
15172 version_type=sunos
15173 need_lib_prefix=no
15174 need_version=no
15175 case $host_cpu in
15176 ia64*)
15177 shrext_cmds='.so'
15178 hardcode_into_libs=yes
15179 dynamic_linker="$host_os dld.so"
15180 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 if test "X$HPUX_IA64_MODE" = X32; then
15185 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15186 else
15187 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15188 fi
15189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15190 ;;
15191 hppa*64*)
15192 shrext_cmds='.sl'
15193 hardcode_into_libs=yes
15194 dynamic_linker="$host_os dld.sl"
15195 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15201 ;;
15202 *)
15203 shrext_cmds='.sl'
15204 dynamic_linker="$host_os dld.sl"
15205 shlibpath_var=SHLIB_PATH
15206 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 ;;
15210 esac
15211 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15212 postinstall_cmds='chmod 555 $lib'
15213 # or fails outright, so override atomically:
15214 install_override_mode=555
15215 ;;
15216
15217interix[3-9]*)
15218 version_type=linux # correct to gnu/linux during the next big refactor
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath=no
15226 hardcode_into_libs=yes
15227 ;;
15228
15229irix5* | irix6* | nonstopux*)
15230 case $host_os in
15231 nonstopux*) version_type=nonstopux ;;
15232 *)
15233 if test "$lt_cv_prog_gnu_ld" = yes; then
15234 version_type=linux # correct to gnu/linux during the next big refactor
15235 else
15236 version_type=irix
15237 fi ;;
15238 esac
15239 need_lib_prefix=no
15240 need_version=no
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15243 case $host_os in
15244 irix5* | nonstopux*)
15245 libsuff= shlibsuff=
15246 ;;
15247 *)
15248 case $LD in # libtool.m4 will add one of these switches to LD
15249 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15250 libsuff= shlibsuff= libmagic=32-bit;;
15251 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15252 libsuff=32 shlibsuff=N32 libmagic=N32;;
15253 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15254 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15255 *) libsuff= shlibsuff= libmagic=never-match;;
15256 esac
15257 ;;
15258 esac
15259 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15260 shlibpath_overrides_runpath=no
15261 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15262 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15263 hardcode_into_libs=yes
15264 ;;
15265
15266# No shared lib support for Linux oldld, aout, or coff.
15267linux*oldld* | linux*aout* | linux*coff*)
15268 dynamic_linker=no
15269 ;;
15270
15271# This must be glibc/ELF.
15272linux* | k*bsd*-gnu | kopensolaris*-gnu)
15273 version_type=linux # correct to gnu/linux during the next big refactor
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=no
15281
15282 # Some binutils ld are patched to set DT_RUNPATH
15283 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285else
15286 lt_cv_shlibpath_overrides_runpath=no
15287 save_LDFLAGS=$LDFLAGS
15288 save_libdir=$libdir
15289 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15290 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292/* end confdefs.h. */
15293
15294int
15295main ()
15296{
15297
15298 ;
15299 return 0;
15300}
15301_ACEOF
15302if ac_fn_cxx_try_link "$LINENO"; then :
15303 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15304 lt_cv_shlibpath_overrides_runpath=yes
15305fi
15306fi
15307rm -f core conftest.err conftest.$ac_objext \
15308 conftest$ac_exeext conftest.$ac_ext
15309 LDFLAGS=$save_LDFLAGS
15310 libdir=$save_libdir
15311
15312fi
15313
15314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15315
15316 # This implies no fast_install, which is unacceptable.
15317 # Some rework will be needed to allow for fast_install
15318 # before this can be enabled.
15319 hardcode_into_libs=yes
15320
15321 # Append ld.so.conf contents to the search path
15322 if test -f /etc/ld.so.conf; then
15323 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' ' '`
15324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15325 fi
15326
15327 # We used to test for /lib/ld.so.1 and disable shared libraries on
15328 # powerpc, because MkLinux only supported shared libraries with the
15329 # GNU dynamic linker. Since this was broken with cross compilers,
15330 # most powerpc-linux boxes support dynamic linking these days and
15331 # people can always --disable-shared, the test was removed, and we
15332 # assume the GNU/Linux dynamic linker is in use.
15333 dynamic_linker='GNU/Linux ld.so'
15334 ;;
15335
15336netbsd*)
15337 version_type=sunos
15338 need_lib_prefix=no
15339 need_version=no
15340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15343 dynamic_linker='NetBSD (a.out) ld.so'
15344 else
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 dynamic_linker='NetBSD ld.elf_so'
15348 fi
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes
15351 hardcode_into_libs=yes
15352 ;;
15353
15354newsos6)
15355 version_type=linux # correct to gnu/linux during the next big refactor
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 shlibpath_var=LD_LIBRARY_PATH
15358 shlibpath_overrides_runpath=yes
15359 ;;
15360
15361*nto* | *qnx*)
15362 version_type=qnx
15363 need_lib_prefix=no
15364 need_version=no
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 shlibpath_overrides_runpath=no
15369 hardcode_into_libs=yes
15370 dynamic_linker='ldqnx.so'
15371 ;;
15372
15373openbsd*)
15374 version_type=sunos
15375 sys_lib_dlsearch_path_spec="/usr/lib"
15376 need_lib_prefix=no
15377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15378 case $host_os in
15379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15380 *) need_version=no ;;
15381 esac
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15384 shlibpath_var=LD_LIBRARY_PATH
15385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15386 case $host_os in
15387 openbsd2.[89] | openbsd2.[89].*)
15388 shlibpath_overrides_runpath=no
15389 ;;
15390 *)
15391 shlibpath_overrides_runpath=yes
15392 ;;
15393 esac
15394 else
15395 shlibpath_overrides_runpath=yes
15396 fi
15397 ;;
15398
15399os2*)
15400 libname_spec='$name'
15401 shrext_cmds=".dll"
15402 need_lib_prefix=no
15403 library_names_spec='$libname${shared_ext} $libname.a'
15404 dynamic_linker='OS/2 ld.exe'
15405 shlibpath_var=LIBPATH
15406 ;;
15407
15408osf3* | osf4* | osf5*)
15409 version_type=osf
15410 need_lib_prefix=no
15411 need_version=no
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15417 ;;
15418
15419rdos*)
15420 dynamic_linker=no
15421 ;;
15422
15423solaris*)
15424 version_type=linux # correct to gnu/linux during the next big refactor
15425 need_lib_prefix=no
15426 need_version=no
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15431 hardcode_into_libs=yes
15432 # ldd complains unless libraries are executable
15433 postinstall_cmds='chmod +x $lib'
15434 ;;
15435
15436sunos4*)
15437 version_type=sunos
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes
15442 if test "$with_gnu_ld" = yes; then
15443 need_lib_prefix=no
15444 fi
15445 need_version=yes
15446 ;;
15447
15448sysv4 | sysv4.3*)
15449 version_type=linux # correct to gnu/linux during the next big refactor
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 case $host_vendor in
15454 sni)
15455 shlibpath_overrides_runpath=no
15456 need_lib_prefix=no
15457 runpath_var=LD_RUN_PATH
15458 ;;
15459 siemens)
15460 need_lib_prefix=no
15461 ;;
15462 motorola)
15463 need_lib_prefix=no
15464 need_version=no
15465 shlibpath_overrides_runpath=no
15466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15467 ;;
15468 esac
15469 ;;
15470
15471sysv4*MP*)
15472 if test -d /usr/nec ;then
15473 version_type=linux # correct to gnu/linux during the next big refactor
15474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15475 soname_spec='$libname${shared_ext}.$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 fi
15478 ;;
15479
15480sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15481 version_type=freebsd-elf
15482 need_lib_prefix=no
15483 need_version=no
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=yes
15488 hardcode_into_libs=yes
15489 if test "$with_gnu_ld" = yes; then
15490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15491 else
15492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15493 case $host_os in
15494 sco3.2v5*)
15495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15496 ;;
15497 esac
15498 fi
15499 sys_lib_dlsearch_path_spec='/usr/lib'
15500 ;;
15501
15502tpf*)
15503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15504 version_type=linux # correct to gnu/linux during the next big refactor
15505 need_lib_prefix=no
15506 need_version=no
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=no
15510 hardcode_into_libs=yes
15511 ;;
15512
15513uts4*)
15514 version_type=linux # correct to gnu/linux during the next big refactor
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 ;;
15519
15520*)
15521 dynamic_linker=no
15522 ;;
15523esac
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15525$as_echo "$dynamic_linker" >&6; }
15526test "$dynamic_linker" = no && can_build_shared=no
15527
15528variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15529if test "$GCC" = yes; then
15530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15531fi
15532
15533if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15534 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15535fi
15536if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15537 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15538fi
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
15571
15572
15573
15574
15575
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15578$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15579hardcode_action_CXX=
15580if test -n "$hardcode_libdir_flag_spec_CXX" ||
15581 test -n "$runpath_var_CXX" ||
15582 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15583
15584 # We can hardcode non-existent directories.
15585 if test "$hardcode_direct_CXX" != no &&
15586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15587 # have to relink, otherwise we might link with an installed library
15588 # when we should be linking with a yet-to-be-installed one
15589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15590 test "$hardcode_minus_L_CXX" != no; then
15591 # Linking always hardcodes the temporary library directory.
15592 hardcode_action_CXX=relink
15593 else
15594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15595 hardcode_action_CXX=immediate
15596 fi
15597else
15598 # We cannot hardcode anything, or else we can only hardcode existing
15599 # directories.
15600 hardcode_action_CXX=unsupported
15601fi
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15603$as_echo "$hardcode_action_CXX" >&6; }
15604
15605if test "$hardcode_action_CXX" = relink ||
15606 test "$inherit_rpath_CXX" = yes; then
15607 # Fast installation is not supported
15608 enable_fast_install=no
15609elif test "$shlibpath_overrides_runpath" = yes ||
15610 test "$enable_shared" = no; then
15611 # Fast installation is not necessary
15612 enable_fast_install=needless
15613fi
15614
15615
15616
15617
15618
15619
15620
15621 fi # test -n "$compiler"
15622
15623 CC=$lt_save_CC
15624 CFLAGS=$lt_save_CFLAGS
15625 LDCXX=$LD
15626 LD=$lt_save_LD
15627 GCC=$lt_save_GCC
15628 with_gnu_ld=$lt_save_with_gnu_ld
15629 lt_cv_path_LDCXX=$lt_cv_path_LD
15630 lt_cv_path_LD=$lt_save_path_LD
15631 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15632 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15633fi # test "$_lt_caught_CXX_error" != yes
15634
15635ac_ext=c
15636ac_cpp='$CPP $CPPFLAGS'
15637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15639ac_compiler_gnu=$ac_cv_c_compiler_gnu
15640
15641
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015642
Jeff Thompson965a3242013-10-02 09:59:35 -070015643ac_ext=mm
15644ac_cpp='$OBJCXXCPP $CPPFLAGS'
15645ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15646ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15647ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15648if test -n "$ac_tool_prefix"; then
15649 for ac_prog in g++ objc++ objcxx c++ CXX
15650 do
15651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15654$as_echo_n "checking for $ac_word... " >&6; }
15655if ${ac_cv_prog_OBJCXX+:} false; then :
15656 $as_echo_n "(cached) " >&6
15657else
15658 if test -n "$OBJCXX"; then
15659 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
15660else
15661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15662for as_dir in $PATH
15663do
15664 IFS=$as_save_IFS
15665 test -z "$as_dir" && as_dir=.
15666 for ac_exec_ext in '' $ac_executable_extensions; do
15667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15668 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15670 break 2
15671 fi
15672done
15673 done
15674IFS=$as_save_IFS
15675
15676fi
15677fi
15678OBJCXX=$ac_cv_prog_OBJCXX
15679if test -n "$OBJCXX"; then
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15681$as_echo "$OBJCXX" >&6; }
15682else
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15684$as_echo "no" >&6; }
15685fi
15686
15687
15688 test -n "$OBJCXX" && break
15689 done
15690fi
15691if test -z "$OBJCXX"; then
15692 ac_ct_OBJCXX=$OBJCXX
15693 for ac_prog in g++ objc++ objcxx c++ CXX
15694do
15695 # Extract the first word of "$ac_prog", so it can be a program name with args.
15696set dummy $ac_prog; ac_word=$2
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15698$as_echo_n "checking for $ac_word... " >&6; }
15699if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15700 $as_echo_n "(cached) " >&6
15701else
15702 if test -n "$ac_ct_OBJCXX"; then
15703 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15704else
15705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15706for as_dir in $PATH
15707do
15708 IFS=$as_save_IFS
15709 test -z "$as_dir" && as_dir=.
15710 for ac_exec_ext in '' $ac_executable_extensions; do
15711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15712 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15714 break 2
15715 fi
15716done
15717 done
15718IFS=$as_save_IFS
15719
15720fi
15721fi
15722ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15723if test -n "$ac_ct_OBJCXX"; then
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15725$as_echo "$ac_ct_OBJCXX" >&6; }
15726else
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15728$as_echo "no" >&6; }
15729fi
15730
15731
15732 test -n "$ac_ct_OBJCXX" && break
15733done
15734
15735 if test "x$ac_ct_OBJCXX" = x; then
15736 OBJCXX="g++"
15737 else
15738 case $cross_compiling:$ac_tool_warned in
15739yes:)
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15742ac_tool_warned=yes ;;
15743esac
15744 OBJCXX=$ac_ct_OBJCXX
15745 fi
15746fi
15747
15748# Provide some information about the compiler.
15749$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15750set X $ac_compile
15751ac_compiler=$2
15752for ac_option in --version -v -V -qversion; do
15753 { { ac_try="$ac_compiler $ac_option >&5"
15754case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757esac
15758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15759$as_echo "$ac_try_echo"; } >&5
15760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15761 ac_status=$?
15762 if test -s conftest.err; then
15763 sed '10a\
15764... rest of stderr output deleted ...
15765 10q' conftest.err >conftest.er1
15766 cat conftest.er1 >&5
15767 fi
15768 rm -f conftest.er1 conftest.err
15769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15770 test $ac_status = 0; }
15771done
15772
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15774$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15775if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777else
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779/* end confdefs.h. */
15780
15781int
15782main ()
15783{
15784#ifndef __GNUC__
15785 choke me
15786#endif
15787
15788 ;
15789 return 0;
15790}
15791_ACEOF
15792if ac_fn_objcxx_try_compile "$LINENO"; then :
15793 ac_compiler_gnu=yes
15794else
15795 ac_compiler_gnu=no
15796fi
15797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15799
15800fi
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15802$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15803if test $ac_compiler_gnu = yes; then
15804 GOBJCXX=yes
15805else
15806 GOBJCXX=
15807fi
15808ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15809ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15811$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15812if ${ac_cv_prog_objcxx_g+:} false; then :
15813 $as_echo_n "(cached) " >&6
15814else
15815 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15816 ac_objcxx_werror_flag=yes
15817 ac_cv_prog_objcxx_g=no
15818 OBJCXXFLAGS="-g"
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820/* end confdefs.h. */
15821
15822int
15823main ()
15824{
15825
15826 ;
15827 return 0;
15828}
15829_ACEOF
15830if ac_fn_objcxx_try_compile "$LINENO"; then :
15831 ac_cv_prog_objcxx_g=yes
15832else
15833 OBJCXXFLAGS=""
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835/* end confdefs.h. */
15836
15837int
15838main ()
15839{
15840
15841 ;
15842 return 0;
15843}
15844_ACEOF
15845if ac_fn_objcxx_try_compile "$LINENO"; then :
15846
15847else
15848 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15849 OBJCXXFLAGS="-g"
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851/* end confdefs.h. */
15852
15853int
15854main ()
15855{
15856
15857 ;
15858 return 0;
15859}
15860_ACEOF
15861if ac_fn_objcxx_try_compile "$LINENO"; then :
15862 ac_cv_prog_objcxx_g=yes
15863fi
15864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15865fi
15866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867fi
15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15870fi
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15872$as_echo "$ac_cv_prog_objcxx_g" >&6; }
15873if test "$ac_test_OBJCXXFLAGS" = set; then
15874 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15875elif test $ac_cv_prog_objcxx_g = yes; then
15876 if test "$GOBJCXX" = yes; then
15877 OBJCXXFLAGS="-g -O2"
15878 else
15879 OBJCXXFLAGS="-g"
15880 fi
15881else
15882 if test "$GOBJCXX" = yes; then
15883 OBJCXXFLAGS="-O2"
15884 else
15885 OBJCXXFLAGS=
15886 fi
15887fi
15888ac_ext=c
15889ac_cpp='$CPP $CPPFLAGS'
15890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15892ac_compiler_gnu=$ac_cv_c_compiler_gnu
15893
15894depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
15895
15896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15897$as_echo_n "checking dependency style of $depcc... " >&6; }
15898if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
15899 $as_echo_n "(cached) " >&6
15900else
15901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15902 # We make a subdir and do the tests there. Otherwise we can end up
15903 # making bogus files that we don't know about and never remove. For
15904 # instance it was reported that on HP-UX the gcc test will end up
15905 # making a dummy file named 'D' -- because '-MD' means "put the output
15906 # in D".
15907 rm -rf conftest.dir
15908 mkdir conftest.dir
15909 # Copy depcomp to subdir because otherwise we won't find it if we're
15910 # using a relative directory.
15911 cp "$am_depcomp" conftest.dir
15912 cd conftest.dir
15913 # We will build objects and dependencies in a subdirectory because
15914 # it helps to detect inapplicable dependency modes. For instance
15915 # both Tru64's cc and ICC support -MD to output dependencies as a
15916 # side effect of compilation, but ICC will put the dependencies in
15917 # the current directory while Tru64 will put them in the object
15918 # directory.
15919 mkdir sub
15920
15921 am_cv_OBJCXX_dependencies_compiler_type=none
15922 if test "$am_compiler_list" = ""; then
15923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15924 fi
15925 am__universal=false
15926
15927
15928 for depmode in $am_compiler_list; do
15929 # Setup a source with many dependencies, because some compilers
15930 # like to wrap large dependency lists on column 80 (with \), and
15931 # we should not choose a depcomp mode which is confused by this.
15932 #
15933 # We need to recreate these files for each test, as the compiler may
15934 # overwrite some of them when testing with obscure command lines.
15935 # This happens at least with the AIX C compiler.
15936 : > sub/conftest.c
15937 for i in 1 2 3 4 5 6; do
15938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15940 # Solaris 10 /bin/sh.
15941 echo '/* dummy */' > sub/conftst$i.h
15942 done
15943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15944
15945 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15946 # mode. It turns out that the SunPro C++ compiler does not properly
15947 # handle '-M -o', and we need to detect this. Also, some Intel
15948 # versions had trouble with output in subdirs.
15949 am__obj=sub/conftest.${OBJEXT-o}
15950 am__minus_obj="-o $am__obj"
15951 case $depmode in
15952 gcc)
15953 # This depmode causes a compiler race in universal mode.
15954 test "$am__universal" = false || continue
15955 ;;
15956 nosideeffect)
15957 # After this tag, mechanisms are not by side-effect, so they'll
15958 # only be used when explicitly requested.
15959 if test "x$enable_dependency_tracking" = xyes; then
15960 continue
15961 else
15962 break
15963 fi
15964 ;;
15965 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15966 # This compiler won't grok '-c -o', but also, the minuso test has
15967 # not run yet. These depmodes are late enough in the game, and
15968 # so weak that their functioning should not be impacted.
15969 am__obj=conftest.${OBJEXT-o}
15970 am__minus_obj=
15971 ;;
15972 none) break ;;
15973 esac
15974 if depmode=$depmode \
15975 source=sub/conftest.c object=$am__obj \
15976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15978 >/dev/null 2>conftest.err &&
15979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15983 # icc doesn't choke on unknown options, it will just issue warnings
15984 # or remarks (even with -Werror). So we grep stderr for any message
15985 # that says an option was ignored or not supported.
15986 # When given -MP, icc 7.0 and 7.1 complain thusly:
15987 # icc: Command line warning: ignoring option '-M'; no argument required
15988 # The diagnosis changed in icc 8.0:
15989 # icc: Command line remark: option '-MP' not supported
15990 if (grep 'ignoring option' conftest.err ||
15991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15992 am_cv_OBJCXX_dependencies_compiler_type=$depmode
15993 break
15994 fi
15995 fi
15996 done
15997
15998 cd ..
15999 rm -rf conftest.dir
16000else
16001 am_cv_OBJCXX_dependencies_compiler_type=none
16002fi
16003
16004fi
16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
16006$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
16007OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
16008
16009 if
16010 test "x$enable_dependency_tracking" != xno \
16011 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
16012 am__fastdepOBJCXX_TRUE=
16013 am__fastdepOBJCXX_FALSE='#'
16014else
16015 am__fastdepOBJCXX_TRUE='#'
16016 am__fastdepOBJCXX_FALSE=
16017fi
16018
16019
Jeff Thompson36174062013-06-21 16:03:44 -070016020ac_ext=cpp
16021ac_cpp='$CXXCPP $CPPFLAGS'
16022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16025
Jeff Thompson32a23332013-10-07 18:39:00 -070016026ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16027if test "x$ac_cv_type_size_t" = xyes; then :
16028
16029else
16030
16031cat >>confdefs.h <<_ACEOF
16032#define size_t unsigned int
16033_ACEOF
16034
16035fi
16036
16037ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
16038case $ac_cv_c_int8_t in #(
16039 no|yes) ;; #(
16040 *)
16041
16042cat >>confdefs.h <<_ACEOF
16043#define int8_t $ac_cv_c_int8_t
16044_ACEOF
16045;;
16046esac
16047
16048ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
16049case $ac_cv_c_int16_t in #(
16050 no|yes) ;; #(
16051 *)
16052
16053cat >>confdefs.h <<_ACEOF
16054#define int16_t $ac_cv_c_int16_t
16055_ACEOF
16056;;
16057esac
16058
16059ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
16060case $ac_cv_c_int32_t in #(
16061 no|yes) ;; #(
16062 *)
16063
16064cat >>confdefs.h <<_ACEOF
16065#define int32_t $ac_cv_c_int32_t
16066_ACEOF
16067;;
16068esac
16069
16070ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
16071case $ac_cv_c_int64_t in #(
16072 no|yes) ;; #(
16073 *)
16074
16075cat >>confdefs.h <<_ACEOF
16076#define int64_t $ac_cv_c_int64_t
16077_ACEOF
16078;;
16079esac
16080
16081ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
16082case $ac_cv_c_uint8_t in #(
16083 no|yes) ;; #(
16084 *)
16085
16086$as_echo "#define _UINT8_T 1" >>confdefs.h
16087
16088
16089cat >>confdefs.h <<_ACEOF
16090#define uint8_t $ac_cv_c_uint8_t
16091_ACEOF
16092;;
16093 esac
16094
16095ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
16096case $ac_cv_c_uint16_t in #(
16097 no|yes) ;; #(
16098 *)
16099
16100
16101cat >>confdefs.h <<_ACEOF
16102#define uint16_t $ac_cv_c_uint16_t
16103_ACEOF
16104;;
16105 esac
16106
16107ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16108case $ac_cv_c_uint32_t in #(
16109 no|yes) ;; #(
16110 *)
16111
16112$as_echo "#define _UINT32_T 1" >>confdefs.h
16113
16114
16115cat >>confdefs.h <<_ACEOF
16116#define uint32_t $ac_cv_c_uint32_t
16117_ACEOF
16118;;
16119 esac
16120
16121ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16122case $ac_cv_c_uint64_t in #(
16123 no|yes) ;; #(
16124 *)
16125
16126$as_echo "#define _UINT64_T 1" >>confdefs.h
16127
16128
16129cat >>confdefs.h <<_ACEOF
16130#define uint64_t $ac_cv_c_uint64_t
16131_ACEOF
16132;;
16133 esac
16134
16135for ac_func in memcmp
16136do :
16137 ac_fn_cxx_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
16138if test "x$ac_cv_func_memcmp" = xyes; then :
16139 cat >>confdefs.h <<_ACEOF
16140#define HAVE_MEMCMP 1
16141_ACEOF
16142
16143fi
16144done
16145
16146for ac_func in memcpy
16147do :
16148 ac_fn_cxx_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
16149if test "x$ac_cv_func_memcpy" = xyes; then :
16150 cat >>confdefs.h <<_ACEOF
16151#define HAVE_MEMCPY 1
16152_ACEOF
16153
16154fi
16155done
16156
16157for ac_func in memset
16158do :
16159 ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
16160if test "x$ac_cv_func_memset" = xyes; then :
16161 cat >>confdefs.h <<_ACEOF
16162#define HAVE_MEMSET 1
16163_ACEOF
16164
16165fi
16166done
16167
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070016168 ax_cxx_compile_cxx11_required=falsednl
16169 ac_ext=cpp
16170ac_cpp='$CXXCPP $CPPFLAGS'
16171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16174 ac_success=no
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16176$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16177if ${ax_cv_cxx_compile_cxx11+:} false; then :
16178 $as_echo_n "(cached) " >&6
16179else
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h. */
16182
16183 template <typename T>
16184 struct check
16185 {
16186 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16187 };
16188
16189 typedef check<check<bool>> right_angle_brackets;
16190
16191 int a;
16192 decltype(a) b;
16193
16194 typedef check<int> check_type;
16195 check_type c;
16196 check_type&& cr = static_cast<check_type&&>(c);
16197
16198 auto d = a;
16199
16200_ACEOF
16201if ac_fn_cxx_try_compile "$LINENO"; then :
16202 ax_cv_cxx_compile_cxx11=yes
16203else
16204 ax_cv_cxx_compile_cxx11=no
16205fi
16206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207fi
16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16209$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16210 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16211 ac_success=yes
16212 fi
16213
16214 if test x$ac_success = xno; then
16215 for switch in -std=gnu++11 -std=gnu++0x; do
16216 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16218$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16219if eval \${$cachevar+:} false; then :
16220 $as_echo_n "(cached) " >&6
16221else
16222 ac_save_CXXFLAGS="$CXXFLAGS"
16223 CXXFLAGS="$CXXFLAGS $switch"
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225/* end confdefs.h. */
16226
16227 template <typename T>
16228 struct check
16229 {
16230 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16231 };
16232
16233 typedef check<check<bool>> right_angle_brackets;
16234
16235 int a;
16236 decltype(a) b;
16237
16238 typedef check<int> check_type;
16239 check_type c;
16240 check_type&& cr = static_cast<check_type&&>(c);
16241
16242 auto d = a;
16243
16244_ACEOF
16245if ac_fn_cxx_try_compile "$LINENO"; then :
16246 eval $cachevar=yes
16247else
16248 eval $cachevar=no
16249fi
16250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 CXXFLAGS="$ac_save_CXXFLAGS"
16252fi
16253eval ac_res=\$$cachevar
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16255$as_echo "$ac_res" >&6; }
16256 if eval test x\$$cachevar = xyes; then
16257 CXXFLAGS="$CXXFLAGS $switch"
16258 ac_success=yes
16259 break
16260 fi
16261 done
16262 fi
16263
16264 if test x$ac_success = xno; then
16265 for switch in -std=c++11 -std=c++0x; do
16266 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16268$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16269if eval \${$cachevar+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271else
16272 ac_save_CXXFLAGS="$CXXFLAGS"
16273 CXXFLAGS="$CXXFLAGS $switch"
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275/* end confdefs.h. */
16276
16277 template <typename T>
16278 struct check
16279 {
16280 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16281 };
16282
16283 typedef check<check<bool>> right_angle_brackets;
16284
16285 int a;
16286 decltype(a) b;
16287
16288 typedef check<int> check_type;
16289 check_type c;
16290 check_type&& cr = static_cast<check_type&&>(c);
16291
16292 auto d = a;
16293
16294_ACEOF
16295if ac_fn_cxx_try_compile "$LINENO"; then :
16296 eval $cachevar=yes
16297else
16298 eval $cachevar=no
16299fi
16300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 CXXFLAGS="$ac_save_CXXFLAGS"
16302fi
16303eval ac_res=\$$cachevar
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16305$as_echo "$ac_res" >&6; }
16306 if eval test x\$$cachevar = xyes; then
16307 CXXFLAGS="$CXXFLAGS $switch"
16308 ac_success=yes
16309 break
16310 fi
16311 done
16312 fi
16313 ac_ext=cpp
16314ac_cpp='$CXXCPP $CPPFLAGS'
16315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16318
16319 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16320 if test x$ac_success = xno; then
16321 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16322 fi
16323 else
16324 if test x$ac_success = xno; then
16325 HAVE_CXX11=0
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16327$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16328 else
16329 HAVE_CXX11=1
16330
16331$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16332
16333 fi
16334
16335
16336 fi
16337
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016338
Jeff Thompson39128c62013-06-19 14:08:51 -070016339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
16340$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h. */
16343#include <memory>
16344 std::shared_ptr<int> have_shared_ptr;
16345int
16346main ()
16347{
16348
16349 ;
16350 return 0;
16351}
16352
16353_ACEOF
16354if ac_fn_cxx_try_compile "$LINENO"; then :
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16357$as_echo "yes" >&6; }
16358
16359cat >>confdefs.h <<_ACEOF
16360#define HAVE_STD_SHARED_PTR 1
16361_ACEOF
16362
16363
16364else
16365
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367$as_echo "no" >&6; }
16368
16369cat >>confdefs.h <<_ACEOF
16370#define HAVE_STD_SHARED_PTR 0
16371_ACEOF
16372
16373
16374fi
16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070016376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
16377$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379/* end confdefs.h. */
16380#include <boost/shared_ptr.hpp>
16381 boost::shared_ptr<int> have_shared_ptr;
16382int
16383main ()
16384{
16385
16386 ;
16387 return 0;
16388}
16389
16390_ACEOF
16391if ac_fn_cxx_try_compile "$LINENO"; then :
16392
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16394$as_echo "yes" >&6; }
16395
16396cat >>confdefs.h <<_ACEOF
16397#define HAVE_BOOST_SHARED_PTR 1
16398_ACEOF
16399
16400
16401else
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16404$as_echo "no" >&6; }
16405
16406cat >>confdefs.h <<_ACEOF
16407#define HAVE_BOOST_SHARED_PTR 0
16408_ACEOF
16409
16410
16411fi
16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413
Jeff Thompsona28eed82013-08-22 16:21:10 -070016414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5
16415$as_echo_n "checking for std::function... " >&6; }
16416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417/* end confdefs.h. */
16418#include <functional>
16419 std::function<int> have_function();
16420int
16421main ()
16422{
16423
16424 ;
16425 return 0;
16426}
16427
16428_ACEOF
16429if ac_fn_cxx_try_compile "$LINENO"; then :
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16432$as_echo "yes" >&6; }
16433
16434cat >>confdefs.h <<_ACEOF
16435#define HAVE_STD_FUNCTION 1
16436_ACEOF
16437
16438
16439else
16440
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442$as_echo "no" >&6; }
16443
16444cat >>confdefs.h <<_ACEOF
16445#define HAVE_STD_FUNCTION 0
16446_ACEOF
16447
16448
16449fi
16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5
16452$as_echo_n "checking for boost::function... " >&6; }
16453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454/* end confdefs.h. */
16455#include <boost/function.hpp>
16456 boost::function<int> have_function();
16457int
16458main ()
16459{
16460
16461 ;
16462 return 0;
16463}
16464
16465_ACEOF
16466if ac_fn_cxx_try_compile "$LINENO"; then :
16467
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16469$as_echo "yes" >&6; }
16470
16471cat >>confdefs.h <<_ACEOF
16472#define HAVE_BOOST_FUNCTION 1
16473_ACEOF
16474
16475
16476else
16477
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16479$as_echo "no" >&6; }
16480
16481cat >>confdefs.h <<_ACEOF
16482#define HAVE_BOOST_FUNCTION 0
16483_ACEOF
16484
16485
16486fi
16487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488
Jeff Thompsond0f62e12013-10-09 17:41:25 -070016489# Require libcrypto.
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
16491$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
16492if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
16493 $as_echo_n "(cached) " >&6
16494else
16495 ac_check_lib_save_LIBS=$LIBS
16496LIBS="-lcrypto $LIBS"
16497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498/* end confdefs.h. */
16499
16500/* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16503#ifdef __cplusplus
16504extern "C"
16505#endif
16506char EVP_EncryptInit ();
16507int
16508main ()
16509{
16510return EVP_EncryptInit ();
16511 ;
16512 return 0;
16513}
16514_ACEOF
16515if ac_fn_cxx_try_link "$LINENO"; then :
16516 ac_cv_lib_crypto_EVP_EncryptInit=yes
16517else
16518 ac_cv_lib_crypto_EVP_EncryptInit=no
16519fi
16520rm -f core conftest.err conftest.$ac_objext \
16521 conftest$ac_exeext conftest.$ac_ext
16522LIBS=$ac_check_lib_save_LIBS
16523fi
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
16525$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
16526if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
16527 cat >>confdefs.h <<_ACEOF
16528#define HAVE_LIBCRYPTO 1
16529_ACEOF
16530
16531 LIBS="-lcrypto $LIBS"
16532
16533else
16534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16536as_fn_error $? "can't find openssl crypto lib
16537See \`config.log' for more details" "$LINENO" 5; }
16538fi
16539
16540
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070016541# Conditionally use libsqlite3. AX_LIB_SQLITE3 defines HAVE_SQLITE3 in confdefs.h .
Jeff Thompsond0f62e12013-10-09 17:41:25 -070016542
16543
16544# Check whether --with-sqlite3 was given.
16545if test "${with_sqlite3+set}" = set; then :
16546 withval=$with_sqlite3;
16547 if test "$withval" = "no"; then
16548 WANT_SQLITE3="no"
16549 elif test "$withval" = "yes"; then
16550 WANT_SQLITE3="yes"
16551 ac_sqlite3_path=""
16552 else
16553 WANT_SQLITE3="yes"
16554 ac_sqlite3_path="$withval"
16555 fi
16556
16557else
16558 WANT_SQLITE3="yes"
16559
16560fi
16561
16562
16563 SQLITE3_CFLAGS=""
16564 SQLITE3_LDFLAGS=""
16565 SQLITE3_VERSION=""
16566
16567 if test "x$WANT_SQLITE3" = "xyes"; then
16568
16569 ac_sqlite3_header="sqlite3.h"
16570
16571 sqlite3_version_req=3.0.0
16572 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
16573 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
16574 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
16575 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16576 if test "x$sqlite3_version_req_micro" = "x" ; then
16577 sqlite3_version_req_micro="0"
16578 fi
16579
16580 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
16581 \+ $sqlite3_version_req_minor \* 1000 \
16582 \+ $sqlite3_version_req_micro`
16583
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
16585$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
16586
16587 if test "$ac_sqlite3_path" != ""; then
16588 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
16589 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
16590 else
16591 for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
16592 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
16593 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
16594 ac_sqlite3_path=$ac_sqlite3_path_tmp
16595 ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
16596 ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
16597 break;
16598 fi
16599 done
16600 fi
16601
16602 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
16603
16604 saved_CPPFLAGS="$CPPFLAGS"
16605 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
16606
16607 ac_ext=c
16608ac_cpp='$CPP $CPPFLAGS'
16609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611ac_compiler_gnu=$ac_cv_c_compiler_gnu
16612
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614/* end confdefs.h. */
16615
16616 #include <sqlite3.h>
16617int
16618main ()
16619{
16620
16621#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
16622/* Everything is okay */
16623#else
16624# error SQLite version is too old
16625#endif
16626
16627
16628 ;
16629 return 0;
16630}
16631
16632_ACEOF
16633if ac_fn_c_try_compile "$LINENO"; then :
16634
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16636$as_echo "yes" >&6; }
16637 success="yes"
16638
16639else
16640
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16642$as_echo "not found" >&6; }
16643 success="no"
16644
16645
16646fi
16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 ac_ext=cpp
16649ac_cpp='$CXXCPP $CPPFLAGS'
16650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16653
16654
16655 CPPFLAGS="$saved_CPPFLAGS"
16656
16657 if test "$success" = "yes"; then
16658
16659 SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
16660 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
16661
16662 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
16663
16664 if test "x$ac_sqlite3_header_path" != "x"; then
16665 ac_sqlite3_version=`cat $ac_sqlite3_header_path \
16666 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
16667 | sed -e 's/"//'`
16668 if test $ac_sqlite3_version != ""; then
16669 SQLITE3_VERSION=$ac_sqlite3_version
16670 else
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
16672$as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
16673 fi
16674 fi
16675
16676
16677
16678
16679
16680$as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h
16681
16682 fi
16683 fi
16684
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070016685if grep -q "#define HAVE_SQLITE3" confdefs.h ; then
Jeff Thompsond0f62e12013-10-09 17:41:25 -070016686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
16687$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
16688if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690else
16691 ac_check_lib_save_LIBS=$LIBS
16692LIBS="-lsqlite3 $LIBS"
16693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h. */
16695
16696/* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
16699#ifdef __cplusplus
16700extern "C"
16701#endif
16702char sqlite3_open ();
16703int
16704main ()
16705{
16706return sqlite3_open ();
16707 ;
16708 return 0;
16709}
16710_ACEOF
16711if ac_fn_cxx_try_link "$LINENO"; then :
16712 ac_cv_lib_sqlite3_sqlite3_open=yes
16713else
16714 ac_cv_lib_sqlite3_sqlite3_open=no
16715fi
16716rm -f core conftest.err conftest.$ac_objext \
16717 conftest$ac_exeext conftest.$ac_ext
16718LIBS=$ac_check_lib_save_LIBS
16719fi
16720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
16721$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
16722if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
16723 cat >>confdefs.h <<_ACEOF
16724#define HAVE_LIBSQLITE3 1
16725_ACEOF
16726
16727 LIBS="-lsqlite3 $LIBS"
16728
16729else
16730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16732as_fn_error $? "have sqlite2 headers but no libsqlite3
16733See \`config.log' for more details" "$LINENO" 5; }
16734fi
16735
16736fi
16737
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070016738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX SecKeychain" >&5
16739$as_echo_n "checking for OSX SecKeychain... " >&6; }
16740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h. */
16742#include <CoreFoundation/CoreFoundation.h>
16743 #include <Security/Security.h>
16744 #include <CoreServices/CoreServices.h>
16745 void test() { SecKeychainRef x; }
16746int
16747main ()
16748{
16749
16750 ;
16751 return 0;
16752}
16753
16754_ACEOF
16755if ac_fn_cxx_try_compile "$LINENO"; then :
16756
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16758$as_echo "yes" >&6; }
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070016759 HAVE_OSX_SECKEYCHAIN=1
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070016760
16761else
16762
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764$as_echo "no" >&6; }
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070016765 HAVE_OSX_SECKEYCHAIN=0
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070016766
16767fi
16768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16769
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070016770cat >>confdefs.h <<_ACEOF
16771#define HAVE_OSX_SECKEYCHAIN $HAVE_OSX_SECKEYCHAIN
16772_ACEOF
16773
16774
Jeff Thompsonca45e552013-06-26 17:40:06 -070016775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785# Files:
16786DX_PROJECT=$PACKAGE_NAME
16787
16788DX_CONFIG=Doxyfile
16789
16790DX_DOCDIR=doxygen-doc
16791
16792
16793# Environment variables used inside doxygen.cfg:
16794DX_ENV="$DX_ENV SRCDIR='$srcdir'"
16795
16796DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
16797
16798DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
16799
16800DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
16801
16802
16803# Doxygen itself:
16804
16805
16806
16807 # Check whether --enable-doxygen-doc was given.
16808if test "${enable_doxygen_doc+set}" = set; then :
16809 enableval=$enable_doxygen_doc;
16810case "$enableval" in
16811#(
16812y|Y|yes|Yes|YES)
16813 DX_FLAG_doc=1
16814
16815
16816;; #(
16817n|N|no|No|NO)
16818 DX_FLAG_doc=0
16819
16820;; #(
16821*)
16822 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16823;;
16824esac
16825
16826else
16827
16828DX_FLAG_doc=1
16829
16830
16831
16832fi
16833
16834if test "$DX_FLAG_doc" = 1; then
16835
16836if test -n "$ac_tool_prefix"; then
16837 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
16838set dummy ${ac_tool_prefix}doxygen; ac_word=$2
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16840$as_echo_n "checking for $ac_word... " >&6; }
16841if ${ac_cv_path_DX_DOXYGEN+:} false; then :
16842 $as_echo_n "(cached) " >&6
16843else
16844 case $DX_DOXYGEN in
16845 [\\/]* | ?:[\\/]*)
16846 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
16847 ;;
16848 *)
16849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16850for as_dir in $PATH
16851do
16852 IFS=$as_save_IFS
16853 test -z "$as_dir" && as_dir=.
16854 for ac_exec_ext in '' $ac_executable_extensions; do
16855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16856 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16858 break 2
16859 fi
16860done
16861 done
16862IFS=$as_save_IFS
16863
16864 ;;
16865esac
16866fi
16867DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
16868if test -n "$DX_DOXYGEN"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
16870$as_echo "$DX_DOXYGEN" >&6; }
16871else
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873$as_echo "no" >&6; }
16874fi
16875
16876
16877fi
16878if test -z "$ac_cv_path_DX_DOXYGEN"; then
16879 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
16880 # Extract the first word of "doxygen", so it can be a program name with args.
16881set dummy doxygen; ac_word=$2
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16883$as_echo_n "checking for $ac_word... " >&6; }
16884if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
16885 $as_echo_n "(cached) " >&6
16886else
16887 case $ac_pt_DX_DOXYGEN in
16888 [\\/]* | ?:[\\/]*)
16889 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
16890 ;;
16891 *)
16892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16893for as_dir in $PATH
16894do
16895 IFS=$as_save_IFS
16896 test -z "$as_dir" && as_dir=.
16897 for ac_exec_ext in '' $ac_executable_extensions; do
16898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16899 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16901 break 2
16902 fi
16903done
16904 done
16905IFS=$as_save_IFS
16906
16907 ;;
16908esac
16909fi
16910ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
16911if test -n "$ac_pt_DX_DOXYGEN"; then
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
16913$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
16914else
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16916$as_echo "no" >&6; }
16917fi
16918
16919 if test "x$ac_pt_DX_DOXYGEN" = x; then
16920 DX_DOXYGEN=""
16921 else
16922 case $cross_compiling:$ac_tool_warned in
16923yes:)
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16926ac_tool_warned=yes ;;
16927esac
16928 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16929 fi
16930else
16931 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16932fi
16933
16934if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16936$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16937 DX_FLAG_doc=0
16938
16939fi
16940
16941
16942if test -n "$ac_tool_prefix"; then
16943 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16944set dummy ${ac_tool_prefix}perl; ac_word=$2
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16946$as_echo_n "checking for $ac_word... " >&6; }
16947if ${ac_cv_path_DX_PERL+:} false; then :
16948 $as_echo_n "(cached) " >&6
16949else
16950 case $DX_PERL in
16951 [\\/]* | ?:[\\/]*)
16952 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16953 ;;
16954 *)
16955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16956for as_dir in $PATH
16957do
16958 IFS=$as_save_IFS
16959 test -z "$as_dir" && as_dir=.
16960 for ac_exec_ext in '' $ac_executable_extensions; do
16961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16962 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16964 break 2
16965 fi
16966done
16967 done
16968IFS=$as_save_IFS
16969
16970 ;;
16971esac
16972fi
16973DX_PERL=$ac_cv_path_DX_PERL
16974if test -n "$DX_PERL"; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16976$as_echo "$DX_PERL" >&6; }
16977else
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16979$as_echo "no" >&6; }
16980fi
16981
16982
16983fi
16984if test -z "$ac_cv_path_DX_PERL"; then
16985 ac_pt_DX_PERL=$DX_PERL
16986 # Extract the first word of "perl", so it can be a program name with args.
16987set dummy perl; ac_word=$2
16988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16989$as_echo_n "checking for $ac_word... " >&6; }
16990if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16991 $as_echo_n "(cached) " >&6
16992else
16993 case $ac_pt_DX_PERL in
16994 [\\/]* | ?:[\\/]*)
16995 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16996 ;;
16997 *)
16998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16999for as_dir in $PATH
17000do
17001 IFS=$as_save_IFS
17002 test -z "$as_dir" && as_dir=.
17003 for ac_exec_ext in '' $ac_executable_extensions; do
17004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17005 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
17006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17007 break 2
17008 fi
17009done
17010 done
17011IFS=$as_save_IFS
17012
17013 ;;
17014esac
17015fi
17016ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
17017if test -n "$ac_pt_DX_PERL"; then
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
17019$as_echo "$ac_pt_DX_PERL" >&6; }
17020else
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022$as_echo "no" >&6; }
17023fi
17024
17025 if test "x$ac_pt_DX_PERL" = x; then
17026 DX_PERL=""
17027 else
17028 case $cross_compiling:$ac_tool_warned in
17029yes:)
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17032ac_tool_warned=yes ;;
17033esac
17034 DX_PERL=$ac_pt_DX_PERL
17035 fi
17036else
17037 DX_PERL="$ac_cv_path_DX_PERL"
17038fi
17039
17040if test "$DX_FLAG_doc$DX_PERL" = 1; then
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
17042$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
17043 DX_FLAG_doc=0
17044
17045fi
17046
17047 :
17048fi
17049 if test "$DX_FLAG_doc" = 1; then
17050 DX_COND_doc_TRUE=
17051 DX_COND_doc_FALSE='#'
17052else
17053 DX_COND_doc_TRUE='#'
17054 DX_COND_doc_FALSE=
17055fi
17056
17057if test "$DX_FLAG_doc" = 1; then
17058 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
17059
17060 :
17061else
17062
17063 :
17064fi
17065
17066
17067# Dot for graphics:
17068
17069
17070
17071 # Check whether --enable-doxygen-dot was given.
17072if test "${enable_doxygen_dot+set}" = set; then :
17073 enableval=$enable_doxygen_dot;
17074case "$enableval" in
17075#(
17076y|Y|yes|Yes|YES)
17077 DX_FLAG_dot=1
17078
17079
17080test "$DX_FLAG_doc" = "1" \
17081|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
17082
17083;; #(
17084n|N|no|No|NO)
17085 DX_FLAG_dot=0
17086
17087;; #(
17088*)
17089 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
17090;;
17091esac
17092
17093else
17094
17095DX_FLAG_dot=0
17096
17097
17098test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
17099
17100
17101
17102fi
17103
17104if test "$DX_FLAG_dot" = 1; then
17105
17106if test -n "$ac_tool_prefix"; then
17107 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
17108set dummy ${ac_tool_prefix}dot; ac_word=$2
17109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110$as_echo_n "checking for $ac_word... " >&6; }
17111if ${ac_cv_path_DX_DOT+:} false; then :
17112 $as_echo_n "(cached) " >&6
17113else
17114 case $DX_DOT in
17115 [\\/]* | ?:[\\/]*)
17116 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
17117 ;;
17118 *)
17119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120for as_dir in $PATH
17121do
17122 IFS=$as_save_IFS
17123 test -z "$as_dir" && as_dir=.
17124 for ac_exec_ext in '' $ac_executable_extensions; do
17125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17126 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17128 break 2
17129 fi
17130done
17131 done
17132IFS=$as_save_IFS
17133
17134 ;;
17135esac
17136fi
17137DX_DOT=$ac_cv_path_DX_DOT
17138if test -n "$DX_DOT"; then
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
17140$as_echo "$DX_DOT" >&6; }
17141else
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143$as_echo "no" >&6; }
17144fi
17145
17146
17147fi
17148if test -z "$ac_cv_path_DX_DOT"; then
17149 ac_pt_DX_DOT=$DX_DOT
17150 # Extract the first word of "dot", so it can be a program name with args.
17151set dummy dot; ac_word=$2
17152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153$as_echo_n "checking for $ac_word... " >&6; }
17154if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
17155 $as_echo_n "(cached) " >&6
17156else
17157 case $ac_pt_DX_DOT in
17158 [\\/]* | ?:[\\/]*)
17159 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
17160 ;;
17161 *)
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163for as_dir in $PATH
17164do
17165 IFS=$as_save_IFS
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17169 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17171 break 2
17172 fi
17173done
17174 done
17175IFS=$as_save_IFS
17176
17177 ;;
17178esac
17179fi
17180ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
17181if test -n "$ac_pt_DX_DOT"; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
17183$as_echo "$ac_pt_DX_DOT" >&6; }
17184else
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186$as_echo "no" >&6; }
17187fi
17188
17189 if test "x$ac_pt_DX_DOT" = x; then
17190 DX_DOT=""
17191 else
17192 case $cross_compiling:$ac_tool_warned in
17193yes:)
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17196ac_tool_warned=yes ;;
17197esac
17198 DX_DOT=$ac_pt_DX_DOT
17199 fi
17200else
17201 DX_DOT="$ac_cv_path_DX_DOT"
17202fi
17203
17204if test "$DX_FLAG_dot$DX_DOT" = 1; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
17206$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
17207 DX_FLAG_dot=0
17208
17209fi
17210
17211 :
17212fi
17213 if test "$DX_FLAG_dot" = 1; then
17214 DX_COND_dot_TRUE=
17215 DX_COND_dot_FALSE='#'
17216else
17217 DX_COND_dot_TRUE='#'
17218 DX_COND_dot_FALSE=
17219fi
17220
17221if test "$DX_FLAG_dot" = 1; then
17222 DX_ENV="$DX_ENV HAVE_DOT='YES'"
17223
17224 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
17225
17226 :
17227else
17228 DX_ENV="$DX_ENV HAVE_DOT='NO'"
17229
17230 :
17231fi
17232
17233
17234# Man pages generation:
17235
17236
17237
17238 # Check whether --enable-doxygen-man was given.
17239if test "${enable_doxygen_man+set}" = set; then :
17240 enableval=$enable_doxygen_man;
17241case "$enableval" in
17242#(
17243y|Y|yes|Yes|YES)
17244 DX_FLAG_man=1
17245
17246
17247test "$DX_FLAG_doc" = "1" \
17248|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
17249
17250;; #(
17251n|N|no|No|NO)
17252 DX_FLAG_man=0
17253
17254;; #(
17255*)
17256 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
17257;;
17258esac
17259
17260else
17261
17262DX_FLAG_man=0
17263
17264
17265test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
17266
17267
17268
17269fi
17270
17271if test "$DX_FLAG_man" = 1; then
17272
17273 :
17274fi
17275 if test "$DX_FLAG_man" = 1; then
17276 DX_COND_man_TRUE=
17277 DX_COND_man_FALSE='#'
17278else
17279 DX_COND_man_TRUE='#'
17280 DX_COND_man_FALSE=
17281fi
17282
17283if test "$DX_FLAG_man" = 1; then
17284 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
17285
17286 :
17287else
17288 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
17289
17290 :
17291fi
17292
17293
17294# RTF file generation:
17295
17296
17297
17298 # Check whether --enable-doxygen-rtf was given.
17299if test "${enable_doxygen_rtf+set}" = set; then :
17300 enableval=$enable_doxygen_rtf;
17301case "$enableval" in
17302#(
17303y|Y|yes|Yes|YES)
17304 DX_FLAG_rtf=1
17305
17306
17307test "$DX_FLAG_doc" = "1" \
17308|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
17309
17310;; #(
17311n|N|no|No|NO)
17312 DX_FLAG_rtf=0
17313
17314;; #(
17315*)
17316 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
17317;;
17318esac
17319
17320else
17321
17322DX_FLAG_rtf=0
17323
17324
17325test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
17326
17327
17328
17329fi
17330
17331if test "$DX_FLAG_rtf" = 1; then
17332
17333 :
17334fi
17335 if test "$DX_FLAG_rtf" = 1; then
17336 DX_COND_rtf_TRUE=
17337 DX_COND_rtf_FALSE='#'
17338else
17339 DX_COND_rtf_TRUE='#'
17340 DX_COND_rtf_FALSE=
17341fi
17342
17343if test "$DX_FLAG_rtf" = 1; then
17344 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
17345
17346 :
17347else
17348 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17349
17350 :
17351fi
17352
17353
17354# XML file generation:
17355
17356
17357
17358 # Check whether --enable-doxygen-xml was given.
17359if test "${enable_doxygen_xml+set}" = set; then :
17360 enableval=$enable_doxygen_xml;
17361case "$enableval" in
17362#(
17363y|Y|yes|Yes|YES)
17364 DX_FLAG_xml=1
17365
17366
17367test "$DX_FLAG_doc" = "1" \
17368|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
17369
17370;; #(
17371n|N|no|No|NO)
17372 DX_FLAG_xml=0
17373
17374;; #(
17375*)
17376 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17377;;
17378esac
17379
17380else
17381
17382DX_FLAG_xml=0
17383
17384
17385test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17386
17387
17388
17389fi
17390
17391if test "$DX_FLAG_xml" = 1; then
17392
17393 :
17394fi
17395 if test "$DX_FLAG_xml" = 1; then
17396 DX_COND_xml_TRUE=
17397 DX_COND_xml_FALSE='#'
17398else
17399 DX_COND_xml_TRUE='#'
17400 DX_COND_xml_FALSE=
17401fi
17402
17403if test "$DX_FLAG_xml" = 1; then
17404 DX_ENV="$DX_ENV GENERATE_XML='YES'"
17405
17406 :
17407else
17408 DX_ENV="$DX_ENV GENERATE_XML='NO'"
17409
17410 :
17411fi
17412
17413
17414# (Compressed) HTML help generation:
17415
17416
17417
17418 # Check whether --enable-doxygen-chm was given.
17419if test "${enable_doxygen_chm+set}" = set; then :
17420 enableval=$enable_doxygen_chm;
17421case "$enableval" in
17422#(
17423y|Y|yes|Yes|YES)
17424 DX_FLAG_chm=1
17425
17426
17427test "$DX_FLAG_doc" = "1" \
17428|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
17429
17430;; #(
17431n|N|no|No|NO)
17432 DX_FLAG_chm=0
17433
17434;; #(
17435*)
17436 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17437;;
17438esac
17439
17440else
17441
17442DX_FLAG_chm=0
17443
17444
17445test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17446
17447
17448
17449fi
17450
17451if test "$DX_FLAG_chm" = 1; then
17452
17453if test -n "$ac_tool_prefix"; then
17454 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17455set dummy ${ac_tool_prefix}hhc; ac_word=$2
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17457$as_echo_n "checking for $ac_word... " >&6; }
17458if ${ac_cv_path_DX_HHC+:} false; then :
17459 $as_echo_n "(cached) " >&6
17460else
17461 case $DX_HHC in
17462 [\\/]* | ?:[\\/]*)
17463 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17464 ;;
17465 *)
17466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17467for as_dir in $PATH
17468do
17469 IFS=$as_save_IFS
17470 test -z "$as_dir" && as_dir=.
17471 for ac_exec_ext in '' $ac_executable_extensions; do
17472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17473 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17475 break 2
17476 fi
17477done
17478 done
17479IFS=$as_save_IFS
17480
17481 ;;
17482esac
17483fi
17484DX_HHC=$ac_cv_path_DX_HHC
17485if test -n "$DX_HHC"; then
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17487$as_echo "$DX_HHC" >&6; }
17488else
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17490$as_echo "no" >&6; }
17491fi
17492
17493
17494fi
17495if test -z "$ac_cv_path_DX_HHC"; then
17496 ac_pt_DX_HHC=$DX_HHC
17497 # Extract the first word of "hhc", so it can be a program name with args.
17498set dummy hhc; ac_word=$2
17499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17500$as_echo_n "checking for $ac_word... " >&6; }
17501if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17502 $as_echo_n "(cached) " >&6
17503else
17504 case $ac_pt_DX_HHC in
17505 [\\/]* | ?:[\\/]*)
17506 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17507 ;;
17508 *)
17509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17510for as_dir in $PATH
17511do
17512 IFS=$as_save_IFS
17513 test -z "$as_dir" && as_dir=.
17514 for ac_exec_ext in '' $ac_executable_extensions; do
17515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17516 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17518 break 2
17519 fi
17520done
17521 done
17522IFS=$as_save_IFS
17523
17524 ;;
17525esac
17526fi
17527ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17528if test -n "$ac_pt_DX_HHC"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17530$as_echo "$ac_pt_DX_HHC" >&6; }
17531else
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17533$as_echo "no" >&6; }
17534fi
17535
17536 if test "x$ac_pt_DX_HHC" = x; then
17537 DX_HHC=""
17538 else
17539 case $cross_compiling:$ac_tool_warned in
17540yes:)
17541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17543ac_tool_warned=yes ;;
17544esac
17545 DX_HHC=$ac_pt_DX_HHC
17546 fi
17547else
17548 DX_HHC="$ac_cv_path_DX_HHC"
17549fi
17550
17551if test "$DX_FLAG_chm$DX_HHC" = 1; then
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17553$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17554 DX_FLAG_chm=0
17555
17556fi
17557
17558 :
17559fi
17560 if test "$DX_FLAG_chm" = 1; then
17561 DX_COND_chm_TRUE=
17562 DX_COND_chm_FALSE='#'
17563else
17564 DX_COND_chm_TRUE='#'
17565 DX_COND_chm_FALSE=
17566fi
17567
17568if test "$DX_FLAG_chm" = 1; then
17569 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17570
17571 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17572
17573 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17574
17575 :
17576else
17577 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17578
17579 :
17580fi
17581
17582
17583# Seperate CHI file generation.
17584
17585
17586
17587 # Check whether --enable-doxygen-chi was given.
17588if test "${enable_doxygen_chi+set}" = set; then :
17589 enableval=$enable_doxygen_chi;
17590case "$enableval" in
17591#(
17592y|Y|yes|Yes|YES)
17593 DX_FLAG_chi=1
17594
17595
17596test "$DX_FLAG_chm" = "1" \
17597|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
17598
17599;; #(
17600n|N|no|No|NO)
17601 DX_FLAG_chi=0
17602
17603;; #(
17604*)
17605 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17606;;
17607esac
17608
17609else
17610
17611DX_FLAG_chi=0
17612
17613
17614test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17615
17616
17617
17618fi
17619
17620if test "$DX_FLAG_chi" = 1; then
17621
17622 :
17623fi
17624 if test "$DX_FLAG_chi" = 1; then
17625 DX_COND_chi_TRUE=
17626 DX_COND_chi_FALSE='#'
17627else
17628 DX_COND_chi_TRUE='#'
17629 DX_COND_chi_FALSE=
17630fi
17631
17632if test "$DX_FLAG_chi" = 1; then
17633 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17634
17635 :
17636else
17637 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17638
17639 :
17640fi
17641
17642
17643# Plain HTML pages generation:
17644
17645
17646
17647 # Check whether --enable-doxygen-html was given.
17648if test "${enable_doxygen_html+set}" = set; then :
17649 enableval=$enable_doxygen_html;
17650case "$enableval" in
17651#(
17652y|Y|yes|Yes|YES)
17653 DX_FLAG_html=1
17654
17655
17656test "$DX_FLAG_doc" = "1" \
17657|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
17658
17659test "$DX_FLAG_chm" = "0" \
17660|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
17661
17662;; #(
17663n|N|no|No|NO)
17664 DX_FLAG_html=0
17665
17666;; #(
17667*)
17668 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17669;;
17670esac
17671
17672else
17673
17674DX_FLAG_html=1
17675
17676
17677test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17678
17679
17680test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17681
17682
17683
17684fi
17685
17686if test "$DX_FLAG_html" = 1; then
17687
17688 :
17689fi
17690 if test "$DX_FLAG_html" = 1; then
17691 DX_COND_html_TRUE=
17692 DX_COND_html_FALSE='#'
17693else
17694 DX_COND_html_TRUE='#'
17695 DX_COND_html_FALSE=
17696fi
17697
17698if test "$DX_FLAG_html" = 1; then
17699 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17700
17701 :
17702else
17703 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17704
17705 :
17706fi
17707
17708
17709# PostScript file generation:
17710
17711
17712
17713 # Check whether --enable-doxygen-ps was given.
17714if test "${enable_doxygen_ps+set}" = set; then :
17715 enableval=$enable_doxygen_ps;
17716case "$enableval" in
17717#(
17718y|Y|yes|Yes|YES)
17719 DX_FLAG_ps=1
17720
17721
17722test "$DX_FLAG_doc" = "1" \
17723|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
17724
17725;; #(
17726n|N|no|No|NO)
17727 DX_FLAG_ps=0
17728
17729;; #(
17730*)
17731 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17732;;
17733esac
17734
17735else
17736
17737DX_FLAG_ps=0
17738
17739
17740test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17741
17742
17743
17744fi
17745
17746if test "$DX_FLAG_ps" = 1; then
17747
17748if test -n "$ac_tool_prefix"; then
17749 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17750set dummy ${ac_tool_prefix}latex; ac_word=$2
17751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17752$as_echo_n "checking for $ac_word... " >&6; }
17753if ${ac_cv_path_DX_LATEX+:} false; then :
17754 $as_echo_n "(cached) " >&6
17755else
17756 case $DX_LATEX in
17757 [\\/]* | ?:[\\/]*)
17758 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
17759 ;;
17760 *)
17761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17762for as_dir in $PATH
17763do
17764 IFS=$as_save_IFS
17765 test -z "$as_dir" && as_dir=.
17766 for ac_exec_ext in '' $ac_executable_extensions; do
17767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17768 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17770 break 2
17771 fi
17772done
17773 done
17774IFS=$as_save_IFS
17775
17776 ;;
17777esac
17778fi
17779DX_LATEX=$ac_cv_path_DX_LATEX
17780if test -n "$DX_LATEX"; then
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
17782$as_echo "$DX_LATEX" >&6; }
17783else
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785$as_echo "no" >&6; }
17786fi
17787
17788
17789fi
17790if test -z "$ac_cv_path_DX_LATEX"; then
17791 ac_pt_DX_LATEX=$DX_LATEX
17792 # Extract the first word of "latex", so it can be a program name with args.
17793set dummy latex; ac_word=$2
17794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17795$as_echo_n "checking for $ac_word... " >&6; }
17796if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
17797 $as_echo_n "(cached) " >&6
17798else
17799 case $ac_pt_DX_LATEX in
17800 [\\/]* | ?:[\\/]*)
17801 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
17802 ;;
17803 *)
17804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17805for as_dir in $PATH
17806do
17807 IFS=$as_save_IFS
17808 test -z "$as_dir" && as_dir=.
17809 for ac_exec_ext in '' $ac_executable_extensions; do
17810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17811 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17813 break 2
17814 fi
17815done
17816 done
17817IFS=$as_save_IFS
17818
17819 ;;
17820esac
17821fi
17822ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
17823if test -n "$ac_pt_DX_LATEX"; then
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
17825$as_echo "$ac_pt_DX_LATEX" >&6; }
17826else
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17828$as_echo "no" >&6; }
17829fi
17830
17831 if test "x$ac_pt_DX_LATEX" = x; then
17832 DX_LATEX=""
17833 else
17834 case $cross_compiling:$ac_tool_warned in
17835yes:)
17836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17838ac_tool_warned=yes ;;
17839esac
17840 DX_LATEX=$ac_pt_DX_LATEX
17841 fi
17842else
17843 DX_LATEX="$ac_cv_path_DX_LATEX"
17844fi
17845
17846if test "$DX_FLAG_ps$DX_LATEX" = 1; then
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
17848$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
17849 DX_FLAG_ps=0
17850
17851fi
17852
17853
17854if test -n "$ac_tool_prefix"; then
17855 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17856set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17858$as_echo_n "checking for $ac_word... " >&6; }
17859if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17860 $as_echo_n "(cached) " >&6
17861else
17862 case $DX_MAKEINDEX in
17863 [\\/]* | ?:[\\/]*)
17864 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17865 ;;
17866 *)
17867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17868for as_dir in $PATH
17869do
17870 IFS=$as_save_IFS
17871 test -z "$as_dir" && as_dir=.
17872 for ac_exec_ext in '' $ac_executable_extensions; do
17873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17874 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17876 break 2
17877 fi
17878done
17879 done
17880IFS=$as_save_IFS
17881
17882 ;;
17883esac
17884fi
17885DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17886if test -n "$DX_MAKEINDEX"; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17888$as_echo "$DX_MAKEINDEX" >&6; }
17889else
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891$as_echo "no" >&6; }
17892fi
17893
17894
17895fi
17896if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17897 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17898 # Extract the first word of "makeindex", so it can be a program name with args.
17899set dummy makeindex; ac_word=$2
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17901$as_echo_n "checking for $ac_word... " >&6; }
17902if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17903 $as_echo_n "(cached) " >&6
17904else
17905 case $ac_pt_DX_MAKEINDEX in
17906 [\\/]* | ?:[\\/]*)
17907 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17908 ;;
17909 *)
17910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17911for as_dir in $PATH
17912do
17913 IFS=$as_save_IFS
17914 test -z "$as_dir" && as_dir=.
17915 for ac_exec_ext in '' $ac_executable_extensions; do
17916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17917 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17919 break 2
17920 fi
17921done
17922 done
17923IFS=$as_save_IFS
17924
17925 ;;
17926esac
17927fi
17928ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17929if test -n "$ac_pt_DX_MAKEINDEX"; then
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17931$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17932else
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934$as_echo "no" >&6; }
17935fi
17936
17937 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17938 DX_MAKEINDEX=""
17939 else
17940 case $cross_compiling:$ac_tool_warned in
17941yes:)
17942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17944ac_tool_warned=yes ;;
17945esac
17946 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17947 fi
17948else
17949 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17950fi
17951
17952if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17954$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17955 DX_FLAG_ps=0
17956
17957fi
17958
17959
17960if test -n "$ac_tool_prefix"; then
17961 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17962set dummy ${ac_tool_prefix}dvips; ac_word=$2
17963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17964$as_echo_n "checking for $ac_word... " >&6; }
17965if ${ac_cv_path_DX_DVIPS+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967else
17968 case $DX_DVIPS in
17969 [\\/]* | ?:[\\/]*)
17970 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17971 ;;
17972 *)
17973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17974for as_dir in $PATH
17975do
17976 IFS=$as_save_IFS
17977 test -z "$as_dir" && as_dir=.
17978 for ac_exec_ext in '' $ac_executable_extensions; do
17979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17980 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17982 break 2
17983 fi
17984done
17985 done
17986IFS=$as_save_IFS
17987
17988 ;;
17989esac
17990fi
17991DX_DVIPS=$ac_cv_path_DX_DVIPS
17992if test -n "$DX_DVIPS"; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17994$as_echo "$DX_DVIPS" >&6; }
17995else
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17997$as_echo "no" >&6; }
17998fi
17999
18000
18001fi
18002if test -z "$ac_cv_path_DX_DVIPS"; then
18003 ac_pt_DX_DVIPS=$DX_DVIPS
18004 # Extract the first word of "dvips", so it can be a program name with args.
18005set dummy dvips; ac_word=$2
18006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18007$as_echo_n "checking for $ac_word... " >&6; }
18008if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
18009 $as_echo_n "(cached) " >&6
18010else
18011 case $ac_pt_DX_DVIPS in
18012 [\\/]* | ?:[\\/]*)
18013 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
18014 ;;
18015 *)
18016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18017for as_dir in $PATH
18018do
18019 IFS=$as_save_IFS
18020 test -z "$as_dir" && as_dir=.
18021 for ac_exec_ext in '' $ac_executable_extensions; do
18022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18023 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
18024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18025 break 2
18026 fi
18027done
18028 done
18029IFS=$as_save_IFS
18030
18031 ;;
18032esac
18033fi
18034ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
18035if test -n "$ac_pt_DX_DVIPS"; then
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
18037$as_echo "$ac_pt_DX_DVIPS" >&6; }
18038else
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040$as_echo "no" >&6; }
18041fi
18042
18043 if test "x$ac_pt_DX_DVIPS" = x; then
18044 DX_DVIPS=""
18045 else
18046 case $cross_compiling:$ac_tool_warned in
18047yes:)
18048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18050ac_tool_warned=yes ;;
18051esac
18052 DX_DVIPS=$ac_pt_DX_DVIPS
18053 fi
18054else
18055 DX_DVIPS="$ac_cv_path_DX_DVIPS"
18056fi
18057
18058if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
18060$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
18061 DX_FLAG_ps=0
18062
18063fi
18064
18065
18066if test -n "$ac_tool_prefix"; then
18067 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18068set dummy ${ac_tool_prefix}egrep; ac_word=$2
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18070$as_echo_n "checking for $ac_word... " >&6; }
18071if ${ac_cv_path_DX_EGREP+:} false; then :
18072 $as_echo_n "(cached) " >&6
18073else
18074 case $DX_EGREP in
18075 [\\/]* | ?:[\\/]*)
18076 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18077 ;;
18078 *)
18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080for as_dir in $PATH
18081do
18082 IFS=$as_save_IFS
18083 test -z "$as_dir" && as_dir=.
18084 for ac_exec_ext in '' $ac_executable_extensions; do
18085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18086 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18088 break 2
18089 fi
18090done
18091 done
18092IFS=$as_save_IFS
18093
18094 ;;
18095esac
18096fi
18097DX_EGREP=$ac_cv_path_DX_EGREP
18098if test -n "$DX_EGREP"; then
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18100$as_echo "$DX_EGREP" >&6; }
18101else
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103$as_echo "no" >&6; }
18104fi
18105
18106
18107fi
18108if test -z "$ac_cv_path_DX_EGREP"; then
18109 ac_pt_DX_EGREP=$DX_EGREP
18110 # Extract the first word of "egrep", so it can be a program name with args.
18111set dummy egrep; ac_word=$2
18112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113$as_echo_n "checking for $ac_word... " >&6; }
18114if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18115 $as_echo_n "(cached) " >&6
18116else
18117 case $ac_pt_DX_EGREP in
18118 [\\/]* | ?:[\\/]*)
18119 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18120 ;;
18121 *)
18122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123for as_dir in $PATH
18124do
18125 IFS=$as_save_IFS
18126 test -z "$as_dir" && as_dir=.
18127 for ac_exec_ext in '' $ac_executable_extensions; do
18128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18129 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18131 break 2
18132 fi
18133done
18134 done
18135IFS=$as_save_IFS
18136
18137 ;;
18138esac
18139fi
18140ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18141if test -n "$ac_pt_DX_EGREP"; then
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18143$as_echo "$ac_pt_DX_EGREP" >&6; }
18144else
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146$as_echo "no" >&6; }
18147fi
18148
18149 if test "x$ac_pt_DX_EGREP" = x; then
18150 DX_EGREP=""
18151 else
18152 case $cross_compiling:$ac_tool_warned in
18153yes:)
18154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18156ac_tool_warned=yes ;;
18157esac
18158 DX_EGREP=$ac_pt_DX_EGREP
18159 fi
18160else
18161 DX_EGREP="$ac_cv_path_DX_EGREP"
18162fi
18163
18164if test "$DX_FLAG_ps$DX_EGREP" = 1; then
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
18166$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
18167 DX_FLAG_ps=0
18168
18169fi
18170
18171 :
18172fi
18173 if test "$DX_FLAG_ps" = 1; then
18174 DX_COND_ps_TRUE=
18175 DX_COND_ps_FALSE='#'
18176else
18177 DX_COND_ps_TRUE='#'
18178 DX_COND_ps_FALSE=
18179fi
18180
18181if test "$DX_FLAG_ps" = 1; then
18182
18183 :
18184else
18185
18186 :
18187fi
18188
18189
18190# PDF file generation:
18191
18192
18193
18194 # Check whether --enable-doxygen-pdf was given.
18195if test "${enable_doxygen_pdf+set}" = set; then :
18196 enableval=$enable_doxygen_pdf;
18197case "$enableval" in
18198#(
18199y|Y|yes|Yes|YES)
18200 DX_FLAG_pdf=1
18201
18202
18203test "$DX_FLAG_doc" = "1" \
18204|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
18205
18206;; #(
18207n|N|no|No|NO)
18208 DX_FLAG_pdf=0
18209
18210;; #(
18211*)
18212 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
18213;;
18214esac
18215
18216else
18217
18218DX_FLAG_pdf=0
18219
18220
18221test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
18222
18223
18224
18225fi
18226
18227if test "$DX_FLAG_pdf" = 1; then
18228
18229if test -n "$ac_tool_prefix"; then
18230 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
18231set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
18232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18233$as_echo_n "checking for $ac_word... " >&6; }
18234if ${ac_cv_path_DX_PDFLATEX+:} false; then :
18235 $as_echo_n "(cached) " >&6
18236else
18237 case $DX_PDFLATEX in
18238 [\\/]* | ?:[\\/]*)
18239 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
18240 ;;
18241 *)
18242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18243for as_dir in $PATH
18244do
18245 IFS=$as_save_IFS
18246 test -z "$as_dir" && as_dir=.
18247 for ac_exec_ext in '' $ac_executable_extensions; do
18248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18249 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18251 break 2
18252 fi
18253done
18254 done
18255IFS=$as_save_IFS
18256
18257 ;;
18258esac
18259fi
18260DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
18261if test -n "$DX_PDFLATEX"; then
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
18263$as_echo "$DX_PDFLATEX" >&6; }
18264else
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18266$as_echo "no" >&6; }
18267fi
18268
18269
18270fi
18271if test -z "$ac_cv_path_DX_PDFLATEX"; then
18272 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
18273 # Extract the first word of "pdflatex", so it can be a program name with args.
18274set dummy pdflatex; ac_word=$2
18275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18276$as_echo_n "checking for $ac_word... " >&6; }
18277if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
18278 $as_echo_n "(cached) " >&6
18279else
18280 case $ac_pt_DX_PDFLATEX in
18281 [\\/]* | ?:[\\/]*)
18282 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
18283 ;;
18284 *)
18285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18286for as_dir in $PATH
18287do
18288 IFS=$as_save_IFS
18289 test -z "$as_dir" && as_dir=.
18290 for ac_exec_ext in '' $ac_executable_extensions; do
18291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18292 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18294 break 2
18295 fi
18296done
18297 done
18298IFS=$as_save_IFS
18299
18300 ;;
18301esac
18302fi
18303ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
18304if test -n "$ac_pt_DX_PDFLATEX"; then
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
18306$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
18307else
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309$as_echo "no" >&6; }
18310fi
18311
18312 if test "x$ac_pt_DX_PDFLATEX" = x; then
18313 DX_PDFLATEX=""
18314 else
18315 case $cross_compiling:$ac_tool_warned in
18316yes:)
18317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18319ac_tool_warned=yes ;;
18320esac
18321 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
18322 fi
18323else
18324 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
18325fi
18326
18327if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
18329$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
18330 DX_FLAG_pdf=0
18331
18332fi
18333
18334
18335if test -n "$ac_tool_prefix"; then
18336 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18337set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18339$as_echo_n "checking for $ac_word... " >&6; }
18340if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18341 $as_echo_n "(cached) " >&6
18342else
18343 case $DX_MAKEINDEX in
18344 [\\/]* | ?:[\\/]*)
18345 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18346 ;;
18347 *)
18348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18349for as_dir in $PATH
18350do
18351 IFS=$as_save_IFS
18352 test -z "$as_dir" && as_dir=.
18353 for ac_exec_ext in '' $ac_executable_extensions; do
18354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18355 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18357 break 2
18358 fi
18359done
18360 done
18361IFS=$as_save_IFS
18362
18363 ;;
18364esac
18365fi
18366DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18367if test -n "$DX_MAKEINDEX"; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18369$as_echo "$DX_MAKEINDEX" >&6; }
18370else
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372$as_echo "no" >&6; }
18373fi
18374
18375
18376fi
18377if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18378 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18379 # Extract the first word of "makeindex", so it can be a program name with args.
18380set dummy makeindex; ac_word=$2
18381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18382$as_echo_n "checking for $ac_word... " >&6; }
18383if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18384 $as_echo_n "(cached) " >&6
18385else
18386 case $ac_pt_DX_MAKEINDEX in
18387 [\\/]* | ?:[\\/]*)
18388 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18389 ;;
18390 *)
18391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18392for as_dir in $PATH
18393do
18394 IFS=$as_save_IFS
18395 test -z "$as_dir" && as_dir=.
18396 for ac_exec_ext in '' $ac_executable_extensions; do
18397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18398 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18400 break 2
18401 fi
18402done
18403 done
18404IFS=$as_save_IFS
18405
18406 ;;
18407esac
18408fi
18409ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18410if test -n "$ac_pt_DX_MAKEINDEX"; then
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18412$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18413else
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415$as_echo "no" >&6; }
18416fi
18417
18418 if test "x$ac_pt_DX_MAKEINDEX" = x; then
18419 DX_MAKEINDEX=""
18420 else
18421 case $cross_compiling:$ac_tool_warned in
18422yes:)
18423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18425ac_tool_warned=yes ;;
18426esac
18427 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18428 fi
18429else
18430 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18431fi
18432
18433if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18435$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18436 DX_FLAG_pdf=0
18437
18438fi
18439
18440
18441if test -n "$ac_tool_prefix"; then
18442 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18443set dummy ${ac_tool_prefix}egrep; ac_word=$2
18444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18445$as_echo_n "checking for $ac_word... " >&6; }
18446if ${ac_cv_path_DX_EGREP+:} false; then :
18447 $as_echo_n "(cached) " >&6
18448else
18449 case $DX_EGREP in
18450 [\\/]* | ?:[\\/]*)
18451 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18452 ;;
18453 *)
18454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455for as_dir in $PATH
18456do
18457 IFS=$as_save_IFS
18458 test -z "$as_dir" && as_dir=.
18459 for ac_exec_ext in '' $ac_executable_extensions; do
18460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18461 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18463 break 2
18464 fi
18465done
18466 done
18467IFS=$as_save_IFS
18468
18469 ;;
18470esac
18471fi
18472DX_EGREP=$ac_cv_path_DX_EGREP
18473if test -n "$DX_EGREP"; then
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18475$as_echo "$DX_EGREP" >&6; }
18476else
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18478$as_echo "no" >&6; }
18479fi
18480
18481
18482fi
18483if test -z "$ac_cv_path_DX_EGREP"; then
18484 ac_pt_DX_EGREP=$DX_EGREP
18485 # Extract the first word of "egrep", so it can be a program name with args.
18486set dummy egrep; ac_word=$2
18487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18488$as_echo_n "checking for $ac_word... " >&6; }
18489if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18490 $as_echo_n "(cached) " >&6
18491else
18492 case $ac_pt_DX_EGREP in
18493 [\\/]* | ?:[\\/]*)
18494 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18495 ;;
18496 *)
18497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498for as_dir in $PATH
18499do
18500 IFS=$as_save_IFS
18501 test -z "$as_dir" && as_dir=.
18502 for ac_exec_ext in '' $ac_executable_extensions; do
18503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18504 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18506 break 2
18507 fi
18508done
18509 done
18510IFS=$as_save_IFS
18511
18512 ;;
18513esac
18514fi
18515ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18516if test -n "$ac_pt_DX_EGREP"; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18518$as_echo "$ac_pt_DX_EGREP" >&6; }
18519else
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18521$as_echo "no" >&6; }
18522fi
18523
18524 if test "x$ac_pt_DX_EGREP" = x; then
18525 DX_EGREP=""
18526 else
18527 case $cross_compiling:$ac_tool_warned in
18528yes:)
18529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18531ac_tool_warned=yes ;;
18532esac
18533 DX_EGREP=$ac_pt_DX_EGREP
18534 fi
18535else
18536 DX_EGREP="$ac_cv_path_DX_EGREP"
18537fi
18538
18539if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18541$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18542 DX_FLAG_pdf=0
18543
18544fi
18545
18546 :
18547fi
18548 if test "$DX_FLAG_pdf" = 1; then
18549 DX_COND_pdf_TRUE=
18550 DX_COND_pdf_FALSE='#'
18551else
18552 DX_COND_pdf_TRUE='#'
18553 DX_COND_pdf_FALSE=
18554fi
18555
18556if test "$DX_FLAG_pdf" = 1; then
18557
18558 :
18559else
18560
18561 :
18562fi
18563
18564
18565# LaTeX generation for PS and/or PDF:
18566 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18567 DX_COND_latex_TRUE=
18568 DX_COND_latex_FALSE='#'
18569else
18570 DX_COND_latex_TRUE='#'
18571 DX_COND_latex_FALSE=
18572fi
18573
18574if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18575 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18576
18577else
18578 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18579
18580fi
18581
18582# Paper size for PS and/or PDF:
18583
18584case "$DOXYGEN_PAPER_SIZE" in
18585#(
18586"")
18587 DOXYGEN_PAPER_SIZE=""
18588
18589;; #(
18590a4wide|a4|letter|legal|executive)
18591 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18592
18593;; #(
18594*)
18595 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18596;;
18597esac
18598
18599#For debugging:
18600#echo DX_FLAG_doc=$DX_FLAG_doc
18601#echo DX_FLAG_dot=$DX_FLAG_dot
18602#echo DX_FLAG_man=$DX_FLAG_man
18603#echo DX_FLAG_html=$DX_FLAG_html
18604#echo DX_FLAG_chm=$DX_FLAG_chm
18605#echo DX_FLAG_chi=$DX_FLAG_chi
18606#echo DX_FLAG_rtf=$DX_FLAG_rtf
18607#echo DX_FLAG_xml=$DX_FLAG_xml
18608#echo DX_FLAG_pdf=$DX_FLAG_pdf
18609#echo DX_FLAG_ps=$DX_FLAG_ps
18610#echo DX_ENV=$DX_ENV
18611
18612
Jeff Thompson39128c62013-06-19 14:08:51 -070018613ac_config_files="$ac_config_files Makefile"
18614
18615cat >confcache <<\_ACEOF
18616# This file is a shell script that caches the results of configure
18617# tests run on this system so they can be shared between configure
18618# scripts and configure runs, see configure's option --config-cache.
18619# It is not useful on other systems. If it contains results you don't
18620# want to keep, you may remove or edit it.
18621#
18622# config.status only pays attention to the cache file if you give it
18623# the --recheck option to rerun configure.
18624#
18625# `ac_cv_env_foo' variables (set or unset) will be overridden when
18626# loading this file, other *unset* `ac_cv_foo' will be assigned the
18627# following values.
18628
18629_ACEOF
18630
18631# The following way of writing the cache mishandles newlines in values,
18632# but we know of no workaround that is simple, portable, and efficient.
18633# So, we kill variables containing newlines.
18634# Ultrix sh set writes to stderr and can't be redirected directly,
18635# and sets the high bit in the cache file unless we assign to the vars.
18636(
18637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18638 eval ac_val=\$$ac_var
18639 case $ac_val in #(
18640 *${as_nl}*)
18641 case $ac_var in #(
18642 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18643$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18644 esac
18645 case $ac_var in #(
18646 _ | IFS | as_nl) ;; #(
18647 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18648 *) { eval $ac_var=; unset $ac_var;} ;;
18649 esac ;;
18650 esac
18651 done
18652
18653 (set) 2>&1 |
18654 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18655 *${as_nl}ac_space=\ *)
18656 # `set' does not quote correctly, so add quotes: double-quote
18657 # substitution turns \\\\ into \\, and sed turns \\ into \.
18658 sed -n \
18659 "s/'/'\\\\''/g;
18660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18661 ;; #(
18662 *)
18663 # `set' quotes correctly as required by POSIX, so do not add quotes.
18664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18665 ;;
18666 esac |
18667 sort
18668) |
18669 sed '
18670 /^ac_cv_env_/b end
18671 t clear
18672 :clear
18673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18674 t end
18675 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18676 :end' >>confcache
18677if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18678 if test -w "$cache_file"; then
18679 if test "x$cache_file" != "x/dev/null"; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18681$as_echo "$as_me: updating cache $cache_file" >&6;}
18682 if test ! -f "$cache_file" || test -h "$cache_file"; then
18683 cat confcache >"$cache_file"
18684 else
18685 case $cache_file in #(
18686 */* | ?:*)
18687 mv -f confcache "$cache_file"$$ &&
18688 mv -f "$cache_file"$$ "$cache_file" ;; #(
18689 *)
18690 mv -f confcache "$cache_file" ;;
18691 esac
18692 fi
18693 fi
18694 else
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18696$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18697 fi
18698fi
18699rm -f confcache
18700
18701test "x$prefix" = xNONE && prefix=$ac_default_prefix
18702# Let make expand exec_prefix.
18703test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18704
18705DEFS=-DHAVE_CONFIG_H
18706
18707ac_libobjs=
18708ac_ltlibobjs=
18709U=
18710for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18711 # 1. Remove the extension, and $U if already installed.
18712 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18713 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18714 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18715 # will be set to the directory where LIBOBJS objects are built.
18716 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18717 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18718done
18719LIBOBJS=$ac_libobjs
18720
18721LTLIBOBJS=$ac_ltlibobjs
18722
18723
18724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18725$as_echo_n "checking that generated files are newer than configure... " >&6; }
18726 if test -n "$am_sleep_pid"; then
18727 # Hide warnings about reused PIDs.
18728 wait $am_sleep_pid 2>/dev/null
18729 fi
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18731$as_echo "done" >&6; }
18732 if test -n "$EXEEXT"; then
18733 am__EXEEXT_TRUE=
18734 am__EXEEXT_FALSE='#'
18735else
18736 am__EXEEXT_TRUE='#'
18737 am__EXEEXT_FALSE=
18738fi
18739
Jeff Thompson47053ad2013-08-05 10:36:53 -070018740if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18741 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18742Usually this means the macro was only invoked conditionally." "$LINENO" 5
18743fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018744if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18745 as_fn_error $? "conditional \"AMDEP\" was never defined.
18746Usually this means the macro was only invoked conditionally." "$LINENO" 5
18747fi
Jeff Thompson36174062013-06-21 16:03:44 -070018748if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18749 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18750Usually this means the macro was only invoked conditionally." "$LINENO" 5
18751fi
Jeff Thompson4f031642013-08-05 11:03:16 -070018752if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18753 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18754Usually this means the macro was only invoked conditionally." "$LINENO" 5
18755fi
Jeff Thompson965a3242013-10-02 09:59:35 -070018756if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
18757 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
18758Usually this means the macro was only invoked conditionally." "$LINENO" 5
18759fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070018760if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18761 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
18762Usually this means the macro was only invoked conditionally." "$LINENO" 5
18763fi
18764if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18765 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
18766Usually this means the macro was only invoked conditionally." "$LINENO" 5
18767fi
18768if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18769 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
18770Usually this means the macro was only invoked conditionally." "$LINENO" 5
18771fi
18772if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18773 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
18774Usually this means the macro was only invoked conditionally." "$LINENO" 5
18775fi
18776if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18777 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
18778Usually this means the macro was only invoked conditionally." "$LINENO" 5
18779fi
18780if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18781 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
18782Usually this means the macro was only invoked conditionally." "$LINENO" 5
18783fi
18784if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18785 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
18786Usually this means the macro was only invoked conditionally." "$LINENO" 5
18787fi
18788if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18789 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
18790Usually this means the macro was only invoked conditionally." "$LINENO" 5
18791fi
18792if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18793 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
18794Usually this means the macro was only invoked conditionally." "$LINENO" 5
18795fi
18796if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18797 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
18798Usually this means the macro was only invoked conditionally." "$LINENO" 5
18799fi
18800if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18801 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
18802Usually this means the macro was only invoked conditionally." "$LINENO" 5
18803fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018804
18805: "${CONFIG_STATUS=./config.status}"
18806ac_write_fail=0
18807ac_clean_files_save=$ac_clean_files
18808ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18810$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18811as_write_fail=0
18812cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18813#! $SHELL
18814# Generated by $as_me.
18815# Run this file to recreate the current configuration.
18816# Compiler output produced by configure, useful for debugging
18817# configure, is in config.log if it exists.
18818
18819debug=false
18820ac_cs_recheck=false
18821ac_cs_silent=false
18822
18823SHELL=\${CONFIG_SHELL-$SHELL}
18824export SHELL
18825_ASEOF
18826cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18827## -------------------- ##
18828## M4sh Initialization. ##
18829## -------------------- ##
18830
18831# Be more Bourne compatible
18832DUALCASE=1; export DUALCASE # for MKS sh
18833if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18834 emulate sh
18835 NULLCMD=:
18836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18837 # is contrary to our usage. Disable this feature.
18838 alias -g '${1+"$@"}'='"$@"'
18839 setopt NO_GLOB_SUBST
18840else
18841 case `(set -o) 2>/dev/null` in #(
18842 *posix*) :
18843 set -o posix ;; #(
18844 *) :
18845 ;;
18846esac
18847fi
18848
18849
18850as_nl='
18851'
18852export as_nl
18853# Printing a long string crashes Solaris 7 /usr/bin/printf.
18854as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18855as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18856as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18857# Prefer a ksh shell builtin over an external printf program on Solaris,
18858# but without wasting forks for bash or zsh.
18859if test -z "$BASH_VERSION$ZSH_VERSION" \
18860 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18861 as_echo='print -r --'
18862 as_echo_n='print -rn --'
18863elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18864 as_echo='printf %s\n'
18865 as_echo_n='printf %s'
18866else
18867 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18868 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18869 as_echo_n='/usr/ucb/echo -n'
18870 else
18871 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18872 as_echo_n_body='eval
18873 arg=$1;
18874 case $arg in #(
18875 *"$as_nl"*)
18876 expr "X$arg" : "X\\(.*\\)$as_nl";
18877 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18878 esac;
18879 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18880 '
18881 export as_echo_n_body
18882 as_echo_n='sh -c $as_echo_n_body as_echo'
18883 fi
18884 export as_echo_body
18885 as_echo='sh -c $as_echo_body as_echo'
18886fi
18887
18888# The user is always right.
18889if test "${PATH_SEPARATOR+set}" != set; then
18890 PATH_SEPARATOR=:
18891 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18892 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18893 PATH_SEPARATOR=';'
18894 }
18895fi
18896
18897
18898# IFS
18899# We need space, tab and new line, in precisely that order. Quoting is
18900# there to prevent editors from complaining about space-tab.
18901# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18902# splitting by setting IFS to empty value.)
18903IFS=" "" $as_nl"
18904
18905# Find who we are. Look in the path if we contain no directory separator.
18906as_myself=
18907case $0 in #((
18908 *[\\/]* ) as_myself=$0 ;;
18909 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18910for as_dir in $PATH
18911do
18912 IFS=$as_save_IFS
18913 test -z "$as_dir" && as_dir=.
18914 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18915 done
18916IFS=$as_save_IFS
18917
18918 ;;
18919esac
18920# We did not find ourselves, most probably we were run as `sh COMMAND'
18921# in which case we are not to be found in the path.
18922if test "x$as_myself" = x; then
18923 as_myself=$0
18924fi
18925if test ! -f "$as_myself"; then
18926 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18927 exit 1
18928fi
18929
18930# Unset variables that we do not need and which cause bugs (e.g. in
18931# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18932# suppresses any "Segmentation fault" message there. '((' could
18933# trigger a bug in pdksh 5.2.14.
18934for as_var in BASH_ENV ENV MAIL MAILPATH
18935do eval test x\${$as_var+set} = xset \
18936 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18937done
18938PS1='$ '
18939PS2='> '
18940PS4='+ '
18941
18942# NLS nuisances.
18943LC_ALL=C
18944export LC_ALL
18945LANGUAGE=C
18946export LANGUAGE
18947
18948# CDPATH.
18949(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18950
18951
18952# as_fn_error STATUS ERROR [LINENO LOG_FD]
18953# ----------------------------------------
18954# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18955# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18956# script with STATUS, using 1 if that was 0.
18957as_fn_error ()
18958{
18959 as_status=$1; test $as_status -eq 0 && as_status=1
18960 if test "$4"; then
18961 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18962 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18963 fi
18964 $as_echo "$as_me: error: $2" >&2
18965 as_fn_exit $as_status
18966} # as_fn_error
18967
18968
18969# as_fn_set_status STATUS
18970# -----------------------
18971# Set $? to STATUS, without forking.
18972as_fn_set_status ()
18973{
18974 return $1
18975} # as_fn_set_status
18976
18977# as_fn_exit STATUS
18978# -----------------
18979# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18980as_fn_exit ()
18981{
18982 set +e
18983 as_fn_set_status $1
18984 exit $1
18985} # as_fn_exit
18986
18987# as_fn_unset VAR
18988# ---------------
18989# Portably unset VAR.
18990as_fn_unset ()
18991{
18992 { eval $1=; unset $1;}
18993}
18994as_unset=as_fn_unset
18995# as_fn_append VAR VALUE
18996# ----------------------
18997# Append the text in VALUE to the end of the definition contained in VAR. Take
18998# advantage of any shell optimizations that allow amortized linear growth over
18999# repeated appends, instead of the typical quadratic growth present in naive
19000# implementations.
19001if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19002 eval 'as_fn_append ()
19003 {
19004 eval $1+=\$2
19005 }'
19006else
19007 as_fn_append ()
19008 {
19009 eval $1=\$$1\$2
19010 }
19011fi # as_fn_append
19012
19013# as_fn_arith ARG...
19014# ------------------
19015# Perform arithmetic evaluation on the ARGs, and store the result in the
19016# global $as_val. Take advantage of shells that can avoid forks. The arguments
19017# must be portable across $(()) and expr.
19018if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19019 eval 'as_fn_arith ()
19020 {
19021 as_val=$(( $* ))
19022 }'
19023else
19024 as_fn_arith ()
19025 {
19026 as_val=`expr "$@" || test $? -eq 1`
19027 }
19028fi # as_fn_arith
19029
19030
19031if expr a : '\(a\)' >/dev/null 2>&1 &&
19032 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19033 as_expr=expr
19034else
19035 as_expr=false
19036fi
19037
19038if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19039 as_basename=basename
19040else
19041 as_basename=false
19042fi
19043
19044if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19045 as_dirname=dirname
19046else
19047 as_dirname=false
19048fi
19049
19050as_me=`$as_basename -- "$0" ||
19051$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19052 X"$0" : 'X\(//\)$' \| \
19053 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19054$as_echo X/"$0" |
19055 sed '/^.*\/\([^/][^/]*\)\/*$/{
19056 s//\1/
19057 q
19058 }
19059 /^X\/\(\/\/\)$/{
19060 s//\1/
19061 q
19062 }
19063 /^X\/\(\/\).*/{
19064 s//\1/
19065 q
19066 }
19067 s/.*/./; q'`
19068
19069# Avoid depending upon Character Ranges.
19070as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19071as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19072as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19073as_cr_digits='0123456789'
19074as_cr_alnum=$as_cr_Letters$as_cr_digits
19075
19076ECHO_C= ECHO_N= ECHO_T=
19077case `echo -n x` in #(((((
19078-n*)
19079 case `echo 'xy\c'` in
19080 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19081 xy) ECHO_C='\c';;
19082 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19083 ECHO_T=' ';;
19084 esac;;
19085*)
19086 ECHO_N='-n';;
19087esac
19088
19089rm -f conf$$ conf$$.exe conf$$.file
19090if test -d conf$$.dir; then
19091 rm -f conf$$.dir/conf$$.file
19092else
19093 rm -f conf$$.dir
19094 mkdir conf$$.dir 2>/dev/null
19095fi
19096if (echo >conf$$.file) 2>/dev/null; then
19097 if ln -s conf$$.file conf$$ 2>/dev/null; then
19098 as_ln_s='ln -s'
19099 # ... but there are two gotchas:
19100 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19101 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19102 # In both cases, we have to default to `cp -pR'.
19103 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19104 as_ln_s='cp -pR'
19105 elif ln conf$$.file conf$$ 2>/dev/null; then
19106 as_ln_s=ln
19107 else
19108 as_ln_s='cp -pR'
19109 fi
19110else
19111 as_ln_s='cp -pR'
19112fi
19113rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19114rmdir conf$$.dir 2>/dev/null
19115
19116
19117# as_fn_mkdir_p
19118# -------------
19119# Create "$as_dir" as a directory, including parents if necessary.
19120as_fn_mkdir_p ()
19121{
19122
19123 case $as_dir in #(
19124 -*) as_dir=./$as_dir;;
19125 esac
19126 test -d "$as_dir" || eval $as_mkdir_p || {
19127 as_dirs=
19128 while :; do
19129 case $as_dir in #(
19130 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19131 *) as_qdir=$as_dir;;
19132 esac
19133 as_dirs="'$as_qdir' $as_dirs"
19134 as_dir=`$as_dirname -- "$as_dir" ||
19135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19136 X"$as_dir" : 'X\(//\)[^/]' \| \
19137 X"$as_dir" : 'X\(//\)$' \| \
19138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19139$as_echo X"$as_dir" |
19140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19141 s//\1/
19142 q
19143 }
19144 /^X\(\/\/\)[^/].*/{
19145 s//\1/
19146 q
19147 }
19148 /^X\(\/\/\)$/{
19149 s//\1/
19150 q
19151 }
19152 /^X\(\/\).*/{
19153 s//\1/
19154 q
19155 }
19156 s/.*/./; q'`
19157 test -d "$as_dir" && break
19158 done
19159 test -z "$as_dirs" || eval "mkdir $as_dirs"
19160 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19161
19162
19163} # as_fn_mkdir_p
19164if mkdir -p . 2>/dev/null; then
19165 as_mkdir_p='mkdir -p "$as_dir"'
19166else
19167 test -d ./-p && rmdir ./-p
19168 as_mkdir_p=false
19169fi
19170
19171
19172# as_fn_executable_p FILE
19173# -----------------------
19174# Test if FILE is an executable regular file.
19175as_fn_executable_p ()
19176{
19177 test -f "$1" && test -x "$1"
19178} # as_fn_executable_p
19179as_test_x='test -x'
19180as_executable_p=as_fn_executable_p
19181
19182# Sed expression to map a string onto a valid CPP name.
19183as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19184
19185# Sed expression to map a string onto a valid variable name.
19186as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19187
19188
19189exec 6>&1
19190## ----------------------------------- ##
19191## Main body of $CONFIG_STATUS script. ##
19192## ----------------------------------- ##
19193_ASEOF
19194test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19195
19196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19197# Save the log message, to keep $0 and so on meaningful, and to
19198# report actual input values of CONFIG_FILES etc. instead of their
19199# values after options handling.
19200ac_log="
Jeff Thompson93a24162013-09-27 13:28:13 -070019201This file was extended by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -070019202generated by GNU Autoconf 2.69. Invocation command line was
19203
19204 CONFIG_FILES = $CONFIG_FILES
19205 CONFIG_HEADERS = $CONFIG_HEADERS
19206 CONFIG_LINKS = $CONFIG_LINKS
19207 CONFIG_COMMANDS = $CONFIG_COMMANDS
19208 $ $0 $@
19209
19210on `(hostname || uname -n) 2>/dev/null | sed 1q`
19211"
19212
19213_ACEOF
19214
19215case $ac_config_files in *"
19216"*) set x $ac_config_files; shift; ac_config_files=$*;;
19217esac
19218
19219case $ac_config_headers in *"
19220"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19221esac
19222
19223
19224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19225# Files that config.status was made for.
19226config_files="$ac_config_files"
19227config_headers="$ac_config_headers"
19228config_commands="$ac_config_commands"
19229
19230_ACEOF
19231
19232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19233ac_cs_usage="\
19234\`$as_me' instantiates files and other configuration actions
19235from templates according to the current configuration. Unless the files
19236and actions are specified as TAGs, all are instantiated by default.
19237
19238Usage: $0 [OPTION]... [TAG]...
19239
19240 -h, --help print this help, then exit
19241 -V, --version print version number and configuration settings, then exit
19242 --config print configuration, then exit
19243 -q, --quiet, --silent
19244 do not print progress messages
19245 -d, --debug don't remove temporary files
19246 --recheck update $as_me by reconfiguring in the same conditions
19247 --file=FILE[:TEMPLATE]
19248 instantiate the configuration file FILE
19249 --header=FILE[:TEMPLATE]
19250 instantiate the configuration header FILE
19251
19252Configuration files:
19253$config_files
19254
19255Configuration headers:
19256$config_headers
19257
19258Configuration commands:
19259$config_commands
19260
Jeff Thompson93a24162013-09-27 13:28:13 -070019261Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -070019262ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
19263
19264_ACEOF
19265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19266ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19267ac_cs_version="\\
Jeff Thompson93a24162013-09-27 13:28:13 -070019268ndn-cpp config.status 0.2
Jeff Thompson39128c62013-06-19 14:08:51 -070019269configured by $0, generated by GNU Autoconf 2.69,
19270 with options \\"\$ac_cs_config\\"
19271
19272Copyright (C) 2012 Free Software Foundation, Inc.
19273This config.status script is free software; the Free Software Foundation
19274gives unlimited permission to copy, distribute and modify it."
19275
19276ac_pwd='$ac_pwd'
19277srcdir='$srcdir'
19278INSTALL='$INSTALL'
19279MKDIR_P='$MKDIR_P'
19280AWK='$AWK'
19281test -n "\$AWK" || AWK=awk
19282_ACEOF
19283
19284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19285# The default lists apply if the user does not specify any file.
19286ac_need_defaults=:
19287while test $# != 0
19288do
19289 case $1 in
19290 --*=?*)
19291 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19292 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19293 ac_shift=:
19294 ;;
19295 --*=)
19296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19297 ac_optarg=
19298 ac_shift=:
19299 ;;
19300 *)
19301 ac_option=$1
19302 ac_optarg=$2
19303 ac_shift=shift
19304 ;;
19305 esac
19306
19307 case $ac_option in
19308 # Handling of the options.
19309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19310 ac_cs_recheck=: ;;
19311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19312 $as_echo "$ac_cs_version"; exit ;;
19313 --config | --confi | --conf | --con | --co | --c )
19314 $as_echo "$ac_cs_config"; exit ;;
19315 --debug | --debu | --deb | --de | --d | -d )
19316 debug=: ;;
19317 --file | --fil | --fi | --f )
19318 $ac_shift
19319 case $ac_optarg in
19320 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19321 '') as_fn_error $? "missing file argument" ;;
19322 esac
19323 as_fn_append CONFIG_FILES " '$ac_optarg'"
19324 ac_need_defaults=false;;
19325 --header | --heade | --head | --hea )
19326 $ac_shift
19327 case $ac_optarg in
19328 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19329 esac
19330 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19331 ac_need_defaults=false;;
19332 --he | --h)
19333 # Conflict between --help and --header
19334 as_fn_error $? "ambiguous option: \`$1'
19335Try \`$0 --help' for more information.";;
19336 --help | --hel | -h )
19337 $as_echo "$ac_cs_usage"; exit ;;
19338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19339 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19340 ac_cs_silent=: ;;
19341
19342 # This is an error.
19343 -*) as_fn_error $? "unrecognized option: \`$1'
19344Try \`$0 --help' for more information." ;;
19345
19346 *) as_fn_append ac_config_targets " $1"
19347 ac_need_defaults=false ;;
19348
19349 esac
19350 shift
19351done
19352
19353ac_configure_extra_args=
19354
19355if $ac_cs_silent; then
19356 exec 6>/dev/null
19357 ac_configure_extra_args="$ac_configure_extra_args --silent"
19358fi
19359
19360_ACEOF
19361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19362if \$ac_cs_recheck; then
19363 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19364 shift
19365 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19366 CONFIG_SHELL='$SHELL'
19367 export CONFIG_SHELL
19368 exec "\$@"
19369fi
19370
19371_ACEOF
19372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19373exec 5>>config.log
19374{
19375 echo
19376 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19377## Running $as_me. ##
19378_ASBOX
19379 $as_echo "$ac_log"
19380} >&5
19381
19382_ACEOF
19383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19384#
19385# INIT-COMMANDS
19386#
Jeff Thompsonb7523002013-10-09 10:25:00 -070019387PACKAGE="$PACKAGE"
Jeff Thompson39128c62013-06-19 14:08:51 -070019388AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19389
Jeff Thompson4f031642013-08-05 11:03:16 -070019390
19391# The HP-UX ksh and POSIX shell print the target directory to stdout
19392# if CDPATH is set.
19393(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19394
19395sed_quote_subst='$sed_quote_subst'
19396double_quote_subst='$double_quote_subst'
19397delay_variable_subst='$delay_variable_subst'
19398macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19399macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19400enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19401enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19402pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19403enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19404SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19405ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19406PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19407host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19408host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19409host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19410build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19411build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19412build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19413SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19414Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19415GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19416EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19417FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19418LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19419NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19420LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19421max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19422ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19423exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19424lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19425lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19426lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19427lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19428lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19429reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19430reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19431OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19432deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19433file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19434file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19435want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19436DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19437sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19438AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19439AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19440archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19441STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19442RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19443old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19444old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19445old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19446lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19447CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19448CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19449compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19450GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19451lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19452lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19453lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19454lt_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"`'
19455nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19456lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19457objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19458MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19459lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19460lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19461lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19462lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19463lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19464need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19465MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19466DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19467NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19468LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19469OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19470OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19471libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19472shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19473extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19474archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19475enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19476export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19477whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19478compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19479old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19480old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19481archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19482archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19483module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19484module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19485with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19486allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19487no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19488hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19489hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19490hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19491hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19492hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19493hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19494hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19495inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19496link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19497always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19498export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19499exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19500include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19501prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19502postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19503file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19504variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19505need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19506need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19507version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19508runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19509shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19510shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19511libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19512library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19513soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19514install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19515postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19516postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19517finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19518finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19519hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19520sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19521sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19522hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19523enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19524enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19525enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19526old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19527striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19528compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19529predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19530postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19531predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19532postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19533compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19534LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19535reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19536reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19537old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19538compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19539GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19540lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19541lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19542lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19543lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19544lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19545archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19546enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19547export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19548whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19549compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19550old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19551old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19552archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19553archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19554module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19555module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19556with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19557allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19558no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19559hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19560hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19561hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19562hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19563hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19564hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19565hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19566inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19567link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19568always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19569export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19570exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19571include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19572prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19573postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19574file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19575hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19576compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19577predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19578postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19579predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19580postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19581compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19582
19583LTCC='$LTCC'
19584LTCFLAGS='$LTCFLAGS'
19585compiler='$compiler_DEFAULT'
19586
19587# A function that is used when there is no print builtin or printf.
19588func_fallback_echo ()
19589{
19590 eval 'cat <<_LTECHO_EOF
19591\$1
19592_LTECHO_EOF'
19593}
19594
19595# Quote evaled strings.
19596for var in SHELL \
19597ECHO \
19598PATH_SEPARATOR \
19599SED \
19600GREP \
19601EGREP \
19602FGREP \
19603LD \
19604NM \
19605LN_S \
19606lt_SP2NL \
19607lt_NL2SP \
19608reload_flag \
19609OBJDUMP \
19610deplibs_check_method \
19611file_magic_cmd \
19612file_magic_glob \
19613want_nocaseglob \
19614DLLTOOL \
19615sharedlib_from_linklib_cmd \
19616AR \
19617AR_FLAGS \
19618archiver_list_spec \
19619STRIP \
19620RANLIB \
19621CC \
19622CFLAGS \
19623compiler \
19624lt_cv_sys_global_symbol_pipe \
19625lt_cv_sys_global_symbol_to_cdecl \
19626lt_cv_sys_global_symbol_to_c_name_address \
19627lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19628nm_file_list_spec \
19629lt_prog_compiler_no_builtin_flag \
19630lt_prog_compiler_pic \
19631lt_prog_compiler_wl \
19632lt_prog_compiler_static \
19633lt_cv_prog_compiler_c_o \
19634need_locks \
19635MANIFEST_TOOL \
19636DSYMUTIL \
19637NMEDIT \
19638LIPO \
19639OTOOL \
19640OTOOL64 \
19641shrext_cmds \
19642export_dynamic_flag_spec \
19643whole_archive_flag_spec \
19644compiler_needs_object \
19645with_gnu_ld \
19646allow_undefined_flag \
19647no_undefined_flag \
19648hardcode_libdir_flag_spec \
19649hardcode_libdir_separator \
19650exclude_expsyms \
19651include_expsyms \
19652file_list_spec \
19653variables_saved_for_relink \
19654libname_spec \
19655library_names_spec \
19656soname_spec \
19657install_override_mode \
19658finish_eval \
19659old_striplib \
19660striplib \
19661compiler_lib_search_dirs \
19662predep_objects \
19663postdep_objects \
19664predeps \
19665postdeps \
19666compiler_lib_search_path \
19667LD_CXX \
19668reload_flag_CXX \
19669compiler_CXX \
19670lt_prog_compiler_no_builtin_flag_CXX \
19671lt_prog_compiler_pic_CXX \
19672lt_prog_compiler_wl_CXX \
19673lt_prog_compiler_static_CXX \
19674lt_cv_prog_compiler_c_o_CXX \
19675export_dynamic_flag_spec_CXX \
19676whole_archive_flag_spec_CXX \
19677compiler_needs_object_CXX \
19678with_gnu_ld_CXX \
19679allow_undefined_flag_CXX \
19680no_undefined_flag_CXX \
19681hardcode_libdir_flag_spec_CXX \
19682hardcode_libdir_separator_CXX \
19683exclude_expsyms_CXX \
19684include_expsyms_CXX \
19685file_list_spec_CXX \
19686compiler_lib_search_dirs_CXX \
19687predep_objects_CXX \
19688postdep_objects_CXX \
19689predeps_CXX \
19690postdeps_CXX \
19691compiler_lib_search_path_CXX; do
19692 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19693 *[\\\\\\\`\\"\\\$]*)
19694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19695 ;;
19696 *)
19697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19698 ;;
19699 esac
19700done
19701
19702# Double-quote double-evaled strings.
19703for var in reload_cmds \
19704old_postinstall_cmds \
19705old_postuninstall_cmds \
19706old_archive_cmds \
19707extract_expsyms_cmds \
19708old_archive_from_new_cmds \
19709old_archive_from_expsyms_cmds \
19710archive_cmds \
19711archive_expsym_cmds \
19712module_cmds \
19713module_expsym_cmds \
19714export_symbols_cmds \
19715prelink_cmds \
19716postlink_cmds \
19717postinstall_cmds \
19718postuninstall_cmds \
19719finish_cmds \
19720sys_lib_search_path_spec \
19721sys_lib_dlsearch_path_spec \
19722reload_cmds_CXX \
19723old_archive_cmds_CXX \
19724old_archive_from_new_cmds_CXX \
19725old_archive_from_expsyms_cmds_CXX \
19726archive_cmds_CXX \
19727archive_expsym_cmds_CXX \
19728module_cmds_CXX \
19729module_expsym_cmds_CXX \
19730export_symbols_cmds_CXX \
19731prelink_cmds_CXX \
19732postlink_cmds_CXX; do
19733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19734 *[\\\\\\\`\\"\\\$]*)
19735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19736 ;;
19737 *)
19738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19739 ;;
19740 esac
19741done
19742
19743ac_aux_dir='$ac_aux_dir'
19744xsi_shell='$xsi_shell'
19745lt_shell_append='$lt_shell_append'
19746
19747# See if we are running on zsh, and set the options which allow our
19748# commands through without removal of \ escapes INIT.
19749if test -n "\${ZSH_VERSION+set}" ; then
19750 setopt NO_GLOB_SUBST
19751fi
19752
19753
19754 PACKAGE='$PACKAGE'
19755 VERSION='$VERSION'
19756 TIMESTAMP='$TIMESTAMP'
19757 RM='$RM'
19758 ofile='$ofile'
19759
19760
19761
19762
19763
19764
Jeff Thompson39128c62013-06-19 14:08:51 -070019765_ACEOF
19766
19767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19768
19769# Handling of arguments.
19770for ac_config_target in $ac_config_targets
19771do
19772 case $ac_config_target in
Jeff Thompsonb7523002013-10-09 10:25:00 -070019773 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19774 "ndn-cpp/ndn-cpp-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS ndn-cpp/ndn-cpp-config.h" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070019775 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070019776 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070019777 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19778
19779 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19780 esac
19781done
19782
19783
19784# If the user did not use the arguments to specify the items to instantiate,
19785# then the envvar interface is used. Set only those that are not.
19786# We use the long form for the default assignment because of an extremely
19787# bizarre bug on SunOS 4.1.3.
19788if $ac_need_defaults; then
19789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19791 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19792fi
19793
19794# Have a temporary directory for convenience. Make it in the build tree
19795# simply because there is no reason against having it here, and in addition,
19796# creating and moving files from /tmp can sometimes cause problems.
19797# Hook for its removal unless debugging.
19798# Note that there is a small window in which the directory will not be cleaned:
19799# after its creation but before its name has been assigned to `$tmp'.
19800$debug ||
19801{
19802 tmp= ac_tmp=
19803 trap 'exit_status=$?
19804 : "${ac_tmp:=$tmp}"
19805 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19806' 0
19807 trap 'as_fn_exit 1' 1 2 13 15
19808}
19809# Create a (secure) tmp directory for tmp files.
19810
19811{
19812 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19813 test -d "$tmp"
19814} ||
19815{
19816 tmp=./conf$$-$RANDOM
19817 (umask 077 && mkdir "$tmp")
19818} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19819ac_tmp=$tmp
19820
19821# Set up the scripts for CONFIG_FILES section.
19822# No need to generate them if there are no CONFIG_FILES.
19823# This happens for instance with `./config.status config.h'.
19824if test -n "$CONFIG_FILES"; then
19825
19826
19827ac_cr=`echo X | tr X '\015'`
19828# On cygwin, bash can eat \r inside `` if the user requested igncr.
19829# But we know of no other shell where ac_cr would be empty at this
19830# point, so we can use a bashism as a fallback.
19831if test "x$ac_cr" = x; then
19832 eval ac_cr=\$\'\\r\'
19833fi
19834ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19835if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19836 ac_cs_awk_cr='\\r'
19837else
19838 ac_cs_awk_cr=$ac_cr
19839fi
19840
19841echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19842_ACEOF
19843
19844
19845{
19846 echo "cat >conf$$subs.awk <<_ACEOF" &&
19847 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19848 echo "_ACEOF"
19849} >conf$$subs.sh ||
19850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19851ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19852ac_delim='%!_!# '
19853for ac_last_try in false false false false false :; do
19854 . ./conf$$subs.sh ||
19855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19856
19857 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19858 if test $ac_delim_n = $ac_delim_num; then
19859 break
19860 elif $ac_last_try; then
19861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19862 else
19863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19864 fi
19865done
19866rm -f conf$$subs.sh
19867
19868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19869cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19870_ACEOF
19871sed -n '
19872h
19873s/^/S["/; s/!.*/"]=/
19874p
19875g
19876s/^[^!]*!//
19877:repl
19878t repl
19879s/'"$ac_delim"'$//
19880t delim
19881:nl
19882h
19883s/\(.\{148\}\)..*/\1/
19884t more1
19885s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19886p
19887n
19888b repl
19889:more1
19890s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19891p
19892g
19893s/.\{148\}//
19894t nl
19895:delim
19896h
19897s/\(.\{148\}\)..*/\1/
19898t more2
19899s/["\\]/\\&/g; s/^/"/; s/$/"/
19900p
19901b
19902:more2
19903s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19904p
19905g
19906s/.\{148\}//
19907t delim
19908' <conf$$subs.awk | sed '
19909/^[^""]/{
19910 N
19911 s/\n//
19912}
19913' >>$CONFIG_STATUS || ac_write_fail=1
19914rm -f conf$$subs.awk
19915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19916_ACAWK
19917cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19918 for (key in S) S_is_set[key] = 1
19919 FS = ""
19920
19921}
19922{
19923 line = $ 0
19924 nfields = split(line, field, "@")
19925 substed = 0
19926 len = length(field[1])
19927 for (i = 2; i < nfields; i++) {
19928 key = field[i]
19929 keylen = length(key)
19930 if (S_is_set[key]) {
19931 value = S[key]
19932 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19933 len += length(value) + length(field[++i])
19934 substed = 1
19935 } else
19936 len += 1 + keylen
19937 }
19938
19939 print line
19940}
19941
19942_ACAWK
19943_ACEOF
19944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19945if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19946 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19947else
19948 cat
19949fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19950 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19951_ACEOF
19952
19953# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19954# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19955# trailing colons and then remove the whole line if VPATH becomes empty
19956# (actually we leave an empty line to preserve line numbers).
19957if test "x$srcdir" = x.; then
19958 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19959h
19960s///
19961s/^/:/
19962s/[ ]*$/:/
19963s/:\$(srcdir):/:/g
19964s/:\${srcdir}:/:/g
19965s/:@srcdir@:/:/g
19966s/^:*//
19967s/:*$//
19968x
19969s/\(=[ ]*\).*/\1/
19970G
19971s/\n//
19972s/^[^=]*=[ ]*$//
19973}'
19974fi
19975
19976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19977fi # test -n "$CONFIG_FILES"
19978
19979# Set up the scripts for CONFIG_HEADERS section.
19980# No need to generate them if there are no CONFIG_HEADERS.
19981# This happens for instance with `./config.status Makefile'.
19982if test -n "$CONFIG_HEADERS"; then
19983cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19984BEGIN {
19985_ACEOF
19986
19987# Transform confdefs.h into an awk script `defines.awk', embedded as
19988# here-document in config.status, that substitutes the proper values into
19989# config.h.in to produce config.h.
19990
19991# Create a delimiter string that does not exist in confdefs.h, to ease
19992# handling of long lines.
19993ac_delim='%!_!# '
19994for ac_last_try in false false :; do
19995 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19996 if test -z "$ac_tt"; then
19997 break
19998 elif $ac_last_try; then
19999 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20000 else
20001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20002 fi
20003done
20004
20005# For the awk script, D is an array of macro values keyed by name,
20006# likewise P contains macro parameters if any. Preserve backslash
20007# newline sequences.
20008
20009ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20010sed -n '
20011s/.\{148\}/&'"$ac_delim"'/g
20012t rset
20013:rset
20014s/^[ ]*#[ ]*define[ ][ ]*/ /
20015t def
20016d
20017:def
20018s/\\$//
20019t bsnl
20020s/["\\]/\\&/g
20021s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20022D["\1"]=" \3"/p
20023s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20024d
20025:bsnl
20026s/["\\]/\\&/g
20027s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20028D["\1"]=" \3\\\\\\n"\\/p
20029t cont
20030s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20031t cont
20032d
20033:cont
20034n
20035s/.\{148\}/&'"$ac_delim"'/g
20036t clear
20037:clear
20038s/\\$//
20039t bsnlc
20040s/["\\]/\\&/g; s/^/"/; s/$/"/p
20041d
20042:bsnlc
20043s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20044b cont
20045' <confdefs.h | sed '
20046s/'"$ac_delim"'/"\\\
20047"/g' >>$CONFIG_STATUS || ac_write_fail=1
20048
20049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20050 for (key in D) D_is_set[key] = 1
20051 FS = ""
20052}
20053/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20054 line = \$ 0
20055 split(line, arg, " ")
20056 if (arg[1] == "#") {
20057 defundef = arg[2]
20058 mac1 = arg[3]
20059 } else {
20060 defundef = substr(arg[1], 2)
20061 mac1 = arg[2]
20062 }
20063 split(mac1, mac2, "(") #)
20064 macro = mac2[1]
20065 prefix = substr(line, 1, index(line, defundef) - 1)
20066 if (D_is_set[macro]) {
20067 # Preserve the white space surrounding the "#".
20068 print prefix "define", macro P[macro] D[macro]
20069 next
20070 } else {
20071 # Replace #undef with comments. This is necessary, for example,
20072 # in the case of _POSIX_SOURCE, which is predefined and required
20073 # on some systems where configure will not decide to define it.
20074 if (defundef == "undef") {
20075 print "/*", prefix defundef, macro, "*/"
20076 next
20077 }
20078 }
20079}
20080{ print }
20081_ACAWK
20082_ACEOF
20083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20085fi # test -n "$CONFIG_HEADERS"
20086
20087
20088eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20089shift
20090for ac_tag
20091do
20092 case $ac_tag in
20093 :[FHLC]) ac_mode=$ac_tag; continue;;
20094 esac
20095 case $ac_mode$ac_tag in
20096 :[FHL]*:*);;
20097 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20098 :[FH]-) ac_tag=-:-;;
20099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20100 esac
20101 ac_save_IFS=$IFS
20102 IFS=:
20103 set x $ac_tag
20104 IFS=$ac_save_IFS
20105 shift
20106 ac_file=$1
20107 shift
20108
20109 case $ac_mode in
20110 :L) ac_source=$1;;
20111 :[FH])
20112 ac_file_inputs=
20113 for ac_f
20114 do
20115 case $ac_f in
20116 -) ac_f="$ac_tmp/stdin";;
20117 *) # Look for the file first in the build tree, then in the source tree
20118 # (if the path is not absolute). The absolute path cannot be DOS-style,
20119 # because $ac_f cannot contain `:'.
20120 test -f "$ac_f" ||
20121 case $ac_f in
20122 [\\/$]*) false;;
20123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20124 esac ||
20125 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20126 esac
20127 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20128 as_fn_append ac_file_inputs " '$ac_f'"
20129 done
20130
20131 # Let's still pretend it is `configure' which instantiates (i.e., don't
20132 # use $as_me), people would be surprised to read:
20133 # /* config.h. Generated by config.status. */
20134 configure_input='Generated from '`
20135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20136 `' by configure.'
20137 if test x"$ac_file" != x-; then
20138 configure_input="$ac_file. $configure_input"
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20140$as_echo "$as_me: creating $ac_file" >&6;}
20141 fi
20142 # Neutralize special characters interpreted by sed in replacement strings.
20143 case $configure_input in #(
20144 *\&* | *\|* | *\\* )
20145 ac_sed_conf_input=`$as_echo "$configure_input" |
20146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20147 *) ac_sed_conf_input=$configure_input;;
20148 esac
20149
20150 case $ac_tag in
20151 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20153 esac
20154 ;;
20155 esac
20156
20157 ac_dir=`$as_dirname -- "$ac_file" ||
20158$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20159 X"$ac_file" : 'X\(//\)[^/]' \| \
20160 X"$ac_file" : 'X\(//\)$' \| \
20161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20162$as_echo X"$ac_file" |
20163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20164 s//\1/
20165 q
20166 }
20167 /^X\(\/\/\)[^/].*/{
20168 s//\1/
20169 q
20170 }
20171 /^X\(\/\/\)$/{
20172 s//\1/
20173 q
20174 }
20175 /^X\(\/\).*/{
20176 s//\1/
20177 q
20178 }
20179 s/.*/./; q'`
20180 as_dir="$ac_dir"; as_fn_mkdir_p
20181 ac_builddir=.
20182
20183case "$ac_dir" in
20184.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20185*)
20186 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20187 # A ".." for each directory in $ac_dir_suffix.
20188 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20189 case $ac_top_builddir_sub in
20190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20192 esac ;;
20193esac
20194ac_abs_top_builddir=$ac_pwd
20195ac_abs_builddir=$ac_pwd$ac_dir_suffix
20196# for backward compatibility:
20197ac_top_builddir=$ac_top_build_prefix
20198
20199case $srcdir in
20200 .) # We are building in place.
20201 ac_srcdir=.
20202 ac_top_srcdir=$ac_top_builddir_sub
20203 ac_abs_top_srcdir=$ac_pwd ;;
20204 [\\/]* | ?:[\\/]* ) # Absolute name.
20205 ac_srcdir=$srcdir$ac_dir_suffix;
20206 ac_top_srcdir=$srcdir
20207 ac_abs_top_srcdir=$srcdir ;;
20208 *) # Relative name.
20209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20210 ac_top_srcdir=$ac_top_build_prefix$srcdir
20211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20212esac
20213ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20214
20215
20216 case $ac_mode in
20217 :F)
20218 #
20219 # CONFIG_FILE
20220 #
20221
20222 case $INSTALL in
20223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20224 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20225 esac
20226 ac_MKDIR_P=$MKDIR_P
20227 case $MKDIR_P in
20228 [\\/$]* | ?:[\\/]* ) ;;
20229 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20230 esac
20231_ACEOF
20232
20233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20234# If the template does not know about datarootdir, expand it.
20235# FIXME: This hack should be removed a few years after 2.60.
20236ac_datarootdir_hack=; ac_datarootdir_seen=
20237ac_sed_dataroot='
20238/datarootdir/ {
20239 p
20240 q
20241}
20242/@datadir@/p
20243/@docdir@/p
20244/@infodir@/p
20245/@localedir@/p
20246/@mandir@/p'
20247case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20248*datarootdir*) ac_datarootdir_seen=yes;;
20249*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20251$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20252_ACEOF
20253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20254 ac_datarootdir_hack='
20255 s&@datadir@&$datadir&g
20256 s&@docdir@&$docdir&g
20257 s&@infodir@&$infodir&g
20258 s&@localedir@&$localedir&g
20259 s&@mandir@&$mandir&g
20260 s&\\\${datarootdir}&$datarootdir&g' ;;
20261esac
20262_ACEOF
20263
20264# Neutralize VPATH when `$srcdir' = `.'.
20265# Shell code in configure.ac might set extrasub.
20266# FIXME: do we really want to maintain this feature?
20267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20268ac_sed_extra="$ac_vpsub
20269$extrasub
20270_ACEOF
20271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20272:t
20273/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20274s|@configure_input@|$ac_sed_conf_input|;t t
20275s&@top_builddir@&$ac_top_builddir_sub&;t t
20276s&@top_build_prefix@&$ac_top_build_prefix&;t t
20277s&@srcdir@&$ac_srcdir&;t t
20278s&@abs_srcdir@&$ac_abs_srcdir&;t t
20279s&@top_srcdir@&$ac_top_srcdir&;t t
20280s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20281s&@builddir@&$ac_builddir&;t t
20282s&@abs_builddir@&$ac_abs_builddir&;t t
20283s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20284s&@INSTALL@&$ac_INSTALL&;t t
20285s&@MKDIR_P@&$ac_MKDIR_P&;t t
20286$ac_datarootdir_hack
20287"
20288eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20289 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20290
20291test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20292 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20293 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20294 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20296which seems to be undefined. Please make sure it is defined" >&5
20297$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20298which seems to be undefined. Please make sure it is defined" >&2;}
20299
20300 rm -f "$ac_tmp/stdin"
20301 case $ac_file in
20302 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20303 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20304 esac \
20305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20306 ;;
20307 :H)
20308 #
20309 # CONFIG_HEADER
20310 #
20311 if test x"$ac_file" != x-; then
20312 {
20313 $as_echo "/* $configure_input */" \
20314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20315 } >"$ac_tmp/config.h" \
20316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20317 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20319$as_echo "$as_me: $ac_file is unchanged" >&6;}
20320 else
20321 rm -f "$ac_file"
20322 mv "$ac_tmp/config.h" "$ac_file" \
20323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20324 fi
20325 else
20326 $as_echo "/* $configure_input */" \
20327 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20328 || as_fn_error $? "could not create -" "$LINENO" 5
20329 fi
20330# Compute "$ac_file"'s index in $config_headers.
20331_am_arg="$ac_file"
20332_am_stamp_count=1
20333for _am_header in $config_headers :; do
20334 case $_am_header in
20335 $_am_arg | $_am_arg:* )
20336 break ;;
20337 * )
20338 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20339 esac
20340done
20341echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20342$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20343 X"$_am_arg" : 'X\(//\)[^/]' \| \
20344 X"$_am_arg" : 'X\(//\)$' \| \
20345 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20346$as_echo X"$_am_arg" |
20347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20348 s//\1/
20349 q
20350 }
20351 /^X\(\/\/\)[^/].*/{
20352 s//\1/
20353 q
20354 }
20355 /^X\(\/\/\)$/{
20356 s//\1/
20357 q
20358 }
20359 /^X\(\/\).*/{
20360 s//\1/
20361 q
20362 }
20363 s/.*/./; q'`/stamp-h$_am_stamp_count
20364 ;;
20365
20366 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20367$as_echo "$as_me: executing $ac_file commands" >&6;}
20368 ;;
20369 esac
20370
20371
20372 case $ac_file$ac_mode in
Jeff Thompsonb7523002013-10-09 10:25:00 -070020373 "ndn-cpp/ndn-cpp-config.h":C) ac_prefix_conf_OUT=`echo ndn-cpp/ndn-cpp-config.h`
20374ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
20375ac_prefix_conf_PKG=`echo $PACKAGE`
20376ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
20377ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
20378ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
20379if test ".$ac_prefix_conf_INP" = "."; then
20380 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
20381 case "$ac_file" in
20382 *.h) ac_prefix_conf_INP=$ac_file ;;
20383 *)
20384 esac
20385 test ".$ac_prefix_conf_INP" != "." && break
20386 done
20387fi
20388if test ".$ac_prefix_conf_INP" = "."; then
20389 case "$ac_prefix_conf_OUT" in
20390 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
20391 ;;
20392 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
20393 ;;
20394 *) ac_prefix_conf_INP=config.h
20395 ;;
20396 esac
20397fi
20398if test -z "$ac_prefix_conf_PKG" ; then
20399 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
20400else
20401 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
20402 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
20403 fi fi
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
20405$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
20406 if test -f $ac_prefix_conf_INP ; then
20407 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
20408 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
20409 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
20410 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
20411 $as_echo "#endif/" >> conftest.prefix
20412 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
20413 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
20414 $as_echo "#endif/" >> conftest.prefix
20415 # now executing _script on _DEF input to create _OUT output file
20416 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
20417 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
20418 echo ' ' >>$tmp/pconfig.h
20419 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
20420
20421 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
20422 echo ' ' >>$tmp/pconfig.h
20423 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
20424 echo "#endif" >>$tmp/pconfig.h
20425 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
20427$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
20428 else
20429 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
20430$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
20432 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
20433 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
20434$as_echo X"$ac_prefix_conf_OUT" |
20435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20436 s//\1/
20437 q
20438 }
20439 /^X\(\/\/\)[^/].*/{
20440 s//\1/
20441 q
20442 }
20443 /^X\(\/\/\)$/{
20444 s//\1/
20445 q
20446 }
20447 /^X\(\/\).*/{
20448 s//\1/
20449 q
20450 }
20451 s/.*/./; q'`
20452 as_dir="$ac_dir"; as_fn_mkdir_p
20453 rm -f "$ac_prefix_conf_OUT"
20454 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
20455 fi
20456 cp conftest.prefix _configs.sed
20457 else
20458 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
20459 fi
20460 rm -f conftest.*
20461fi
20462 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020463 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20464 # Older Autoconf quotes --file arguments for eval, but not when files
20465 # are listed without --file. Let's play safe and only enable the eval
20466 # if we detect the quoting.
20467 case $CONFIG_FILES in
20468 *\'*) eval set x "$CONFIG_FILES" ;;
20469 *) set x $CONFIG_FILES ;;
20470 esac
20471 shift
20472 for mf
20473 do
20474 # Strip MF so we end up with the name of the file.
20475 mf=`echo "$mf" | sed -e 's/:.*$//'`
20476 # Check whether this is an Automake generated Makefile or not.
20477 # We used to match only the files named 'Makefile.in', but
20478 # some people rename them; so instead we look at the file content.
20479 # Grep'ing the first line is not enough: some people post-process
20480 # each Makefile.in and add a new line on top of each file to say so.
20481 # Grep'ing the whole file is not good either: AIX grep has a line
20482 # limit of 2048, but all sed's we know have understand at least 4000.
20483 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20484 dirpart=`$as_dirname -- "$mf" ||
20485$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20486 X"$mf" : 'X\(//\)[^/]' \| \
20487 X"$mf" : 'X\(//\)$' \| \
20488 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20489$as_echo X"$mf" |
20490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20491 s//\1/
20492 q
20493 }
20494 /^X\(\/\/\)[^/].*/{
20495 s//\1/
20496 q
20497 }
20498 /^X\(\/\/\)$/{
20499 s//\1/
20500 q
20501 }
20502 /^X\(\/\).*/{
20503 s//\1/
20504 q
20505 }
20506 s/.*/./; q'`
20507 else
20508 continue
20509 fi
20510 # Extract the definition of DEPDIR, am__include, and am__quote
20511 # from the Makefile without running 'make'.
20512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20513 test -z "$DEPDIR" && continue
20514 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20515 test -z "$am__include" && continue
20516 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20517 # Find all dependency output files, they are included files with
20518 # $(DEPDIR) in their names. We invoke sed twice because it is the
20519 # simplest approach to changing $(DEPDIR) to its actual value in the
20520 # expansion.
20521 for file in `sed -n "
20522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20524 # Make sure the directory exists.
20525 test -f "$dirpart/$file" && continue
20526 fdir=`$as_dirname -- "$file" ||
20527$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20528 X"$file" : 'X\(//\)[^/]' \| \
20529 X"$file" : 'X\(//\)$' \| \
20530 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20531$as_echo X"$file" |
20532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20533 s//\1/
20534 q
20535 }
20536 /^X\(\/\/\)[^/].*/{
20537 s//\1/
20538 q
20539 }
20540 /^X\(\/\/\)$/{
20541 s//\1/
20542 q
20543 }
20544 /^X\(\/\).*/{
20545 s//\1/
20546 q
20547 }
20548 s/.*/./; q'`
20549 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20550 # echo "creating $dirpart/$file"
20551 echo '# dummy' > "$dirpart/$file"
20552 done
20553 done
20554}
20555 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070020556 "libtool":C)
20557
20558 # See if we are running on zsh, and set the options which allow our
20559 # commands through without removal of \ escapes.
20560 if test -n "${ZSH_VERSION+set}" ; then
20561 setopt NO_GLOB_SUBST
20562 fi
20563
20564 cfgfile="${ofile}T"
20565 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20566 $RM "$cfgfile"
20567
20568 cat <<_LT_EOF >> "$cfgfile"
20569#! $SHELL
20570
20571# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20572# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20573# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20574# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20575#
20576# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20577# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20578# Foundation, Inc.
20579# Written by Gordon Matzigkeit, 1996
20580#
20581# This file is part of GNU Libtool.
20582#
20583# GNU Libtool is free software; you can redistribute it and/or
20584# modify it under the terms of the GNU General Public License as
20585# published by the Free Software Foundation; either version 2 of
20586# the License, or (at your option) any later version.
20587#
20588# As a special exception to the GNU General Public License,
20589# if you distribute this file as part of a program or library that
20590# is built using GNU Libtool, you may include this file under the
20591# same distribution terms that you use for the rest of that program.
20592#
20593# GNU Libtool is distributed in the hope that it will be useful,
20594# but WITHOUT ANY WARRANTY; without even the implied warranty of
20595# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20596# GNU General Public License for more details.
20597#
20598# You should have received a copy of the GNU General Public License
20599# along with GNU Libtool; see the file COPYING. If not, a copy
20600# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20601# obtained by writing to the Free Software Foundation, Inc.,
20602# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20603
20604
20605# The names of the tagged configurations supported by this script.
20606available_tags="CXX "
20607
20608# ### BEGIN LIBTOOL CONFIG
20609
20610# Which release of libtool.m4 was used?
20611macro_version=$macro_version
20612macro_revision=$macro_revision
20613
20614# Whether or not to build shared libraries.
20615build_libtool_libs=$enable_shared
20616
20617# Whether or not to build static libraries.
20618build_old_libs=$enable_static
20619
20620# What type of objects to build.
20621pic_mode=$pic_mode
20622
20623# Whether or not to optimize for fast installation.
20624fast_install=$enable_fast_install
20625
20626# Shell to use when invoking shell scripts.
20627SHELL=$lt_SHELL
20628
20629# An echo program that protects backslashes.
20630ECHO=$lt_ECHO
20631
20632# The PATH separator for the build system.
20633PATH_SEPARATOR=$lt_PATH_SEPARATOR
20634
20635# The host system.
20636host_alias=$host_alias
20637host=$host
20638host_os=$host_os
20639
20640# The build system.
20641build_alias=$build_alias
20642build=$build
20643build_os=$build_os
20644
20645# A sed program that does not truncate output.
20646SED=$lt_SED
20647
20648# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20649Xsed="\$SED -e 1s/^X//"
20650
20651# A grep program that handles long lines.
20652GREP=$lt_GREP
20653
20654# An ERE matcher.
20655EGREP=$lt_EGREP
20656
20657# A literal string matcher.
20658FGREP=$lt_FGREP
20659
20660# A BSD- or MS-compatible name lister.
20661NM=$lt_NM
20662
20663# Whether we need soft or hard links.
20664LN_S=$lt_LN_S
20665
20666# What is the maximum length of a command?
20667max_cmd_len=$max_cmd_len
20668
20669# Object file suffix (normally "o").
20670objext=$ac_objext
20671
20672# Executable file suffix (normally "").
20673exeext=$exeext
20674
20675# whether the shell understands "unset".
20676lt_unset=$lt_unset
20677
20678# turn spaces into newlines.
20679SP2NL=$lt_lt_SP2NL
20680
20681# turn newlines into spaces.
20682NL2SP=$lt_lt_NL2SP
20683
20684# convert \$build file names to \$host format.
20685to_host_file_cmd=$lt_cv_to_host_file_cmd
20686
20687# convert \$build files to toolchain format.
20688to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20689
20690# An object symbol dumper.
20691OBJDUMP=$lt_OBJDUMP
20692
20693# Method to check whether dependent libraries are shared objects.
20694deplibs_check_method=$lt_deplibs_check_method
20695
20696# Command to use when deplibs_check_method = "file_magic".
20697file_magic_cmd=$lt_file_magic_cmd
20698
20699# How to find potential files when deplibs_check_method = "file_magic".
20700file_magic_glob=$lt_file_magic_glob
20701
20702# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20703want_nocaseglob=$lt_want_nocaseglob
20704
20705# DLL creation program.
20706DLLTOOL=$lt_DLLTOOL
20707
20708# Command to associate shared and link libraries.
20709sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20710
20711# The archiver.
20712AR=$lt_AR
20713
20714# Flags to create an archive.
20715AR_FLAGS=$lt_AR_FLAGS
20716
20717# How to feed a file listing to the archiver.
20718archiver_list_spec=$lt_archiver_list_spec
20719
20720# A symbol stripping program.
20721STRIP=$lt_STRIP
20722
20723# Commands used to install an old-style archive.
20724RANLIB=$lt_RANLIB
20725old_postinstall_cmds=$lt_old_postinstall_cmds
20726old_postuninstall_cmds=$lt_old_postuninstall_cmds
20727
20728# Whether to use a lock for old archive extraction.
20729lock_old_archive_extraction=$lock_old_archive_extraction
20730
20731# A C compiler.
20732LTCC=$lt_CC
20733
20734# LTCC compiler flags.
20735LTCFLAGS=$lt_CFLAGS
20736
20737# Take the output of nm and produce a listing of raw symbols and C names.
20738global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20739
20740# Transform the output of nm in a proper C declaration.
20741global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20742
20743# Transform the output of nm in a C name address pair.
20744global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20745
20746# Transform the output of nm in a C name address pair when lib prefix is needed.
20747global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20748
20749# Specify filename containing input files for \$NM.
20750nm_file_list_spec=$lt_nm_file_list_spec
20751
20752# The root where to search for dependent libraries,and in which our libraries should be installed.
20753lt_sysroot=$lt_sysroot
20754
20755# The name of the directory that contains temporary libtool files.
20756objdir=$objdir
20757
20758# Used to examine libraries when file_magic_cmd begins with "file".
20759MAGIC_CMD=$MAGIC_CMD
20760
20761# Must we lock files when doing compilation?
20762need_locks=$lt_need_locks
20763
20764# Manifest tool.
20765MANIFEST_TOOL=$lt_MANIFEST_TOOL
20766
20767# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20768DSYMUTIL=$lt_DSYMUTIL
20769
20770# Tool to change global to local symbols on Mac OS X.
20771NMEDIT=$lt_NMEDIT
20772
20773# Tool to manipulate fat objects and archives on Mac OS X.
20774LIPO=$lt_LIPO
20775
20776# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20777OTOOL=$lt_OTOOL
20778
20779# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20780OTOOL64=$lt_OTOOL64
20781
20782# Old archive suffix (normally "a").
20783libext=$libext
20784
20785# Shared library suffix (normally ".so").
20786shrext_cmds=$lt_shrext_cmds
20787
20788# The commands to extract the exported symbol list from a shared archive.
20789extract_expsyms_cmds=$lt_extract_expsyms_cmds
20790
20791# Variables whose values should be saved in libtool wrapper scripts and
20792# restored at link time.
20793variables_saved_for_relink=$lt_variables_saved_for_relink
20794
20795# Do we need the "lib" prefix for modules?
20796need_lib_prefix=$need_lib_prefix
20797
20798# Do we need a version for libraries?
20799need_version=$need_version
20800
20801# Library versioning type.
20802version_type=$version_type
20803
20804# Shared library runtime path variable.
20805runpath_var=$runpath_var
20806
20807# Shared library path variable.
20808shlibpath_var=$shlibpath_var
20809
20810# Is shlibpath searched before the hard-coded library search path?
20811shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20812
20813# Format of library name prefix.
20814libname_spec=$lt_libname_spec
20815
20816# List of archive names. First name is the real one, the rest are links.
20817# The last name is the one that the linker finds with -lNAME
20818library_names_spec=$lt_library_names_spec
20819
20820# The coded name of the library, if different from the real name.
20821soname_spec=$lt_soname_spec
20822
20823# Permission mode override for installation of shared libraries.
20824install_override_mode=$lt_install_override_mode
20825
20826# Command to use after installation of a shared archive.
20827postinstall_cmds=$lt_postinstall_cmds
20828
20829# Command to use after uninstallation of a shared archive.
20830postuninstall_cmds=$lt_postuninstall_cmds
20831
20832# Commands used to finish a libtool library installation in a directory.
20833finish_cmds=$lt_finish_cmds
20834
20835# As "finish_cmds", except a single script fragment to be evaled but
20836# not shown.
20837finish_eval=$lt_finish_eval
20838
20839# Whether we should hardcode library paths into libraries.
20840hardcode_into_libs=$hardcode_into_libs
20841
20842# Compile-time system search path for libraries.
20843sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20844
20845# Run-time system search path for libraries.
20846sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20847
20848# Whether dlopen is supported.
20849dlopen_support=$enable_dlopen
20850
20851# Whether dlopen of programs is supported.
20852dlopen_self=$enable_dlopen_self
20853
20854# Whether dlopen of statically linked programs is supported.
20855dlopen_self_static=$enable_dlopen_self_static
20856
20857# Commands to strip libraries.
20858old_striplib=$lt_old_striplib
20859striplib=$lt_striplib
20860
20861
20862# The linker used to build libraries.
20863LD=$lt_LD
20864
20865# How to create reloadable object files.
20866reload_flag=$lt_reload_flag
20867reload_cmds=$lt_reload_cmds
20868
20869# Commands used to build an old-style archive.
20870old_archive_cmds=$lt_old_archive_cmds
20871
20872# A language specific compiler.
20873CC=$lt_compiler
20874
20875# Is the compiler the GNU compiler?
20876with_gcc=$GCC
20877
20878# Compiler flag to turn off builtin functions.
20879no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20880
20881# Additional compiler flags for building library objects.
20882pic_flag=$lt_lt_prog_compiler_pic
20883
20884# How to pass a linker flag through the compiler.
20885wl=$lt_lt_prog_compiler_wl
20886
20887# Compiler flag to prevent dynamic linking.
20888link_static_flag=$lt_lt_prog_compiler_static
20889
20890# Does compiler simultaneously support -c and -o options?
20891compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20892
20893# Whether or not to add -lc for building shared libraries.
20894build_libtool_need_lc=$archive_cmds_need_lc
20895
20896# Whether or not to disallow shared libs when runtime libs are static.
20897allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20898
20899# Compiler flag to allow reflexive dlopens.
20900export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20901
20902# Compiler flag to generate shared objects directly from archives.
20903whole_archive_flag_spec=$lt_whole_archive_flag_spec
20904
20905# Whether the compiler copes with passing no objects directly.
20906compiler_needs_object=$lt_compiler_needs_object
20907
20908# Create an old-style archive from a shared archive.
20909old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20910
20911# Create a temporary old-style archive to link instead of a shared archive.
20912old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20913
20914# Commands used to build a shared archive.
20915archive_cmds=$lt_archive_cmds
20916archive_expsym_cmds=$lt_archive_expsym_cmds
20917
20918# Commands used to build a loadable module if different from building
20919# a shared archive.
20920module_cmds=$lt_module_cmds
20921module_expsym_cmds=$lt_module_expsym_cmds
20922
20923# Whether we are building with GNU ld or not.
20924with_gnu_ld=$lt_with_gnu_ld
20925
20926# Flag that allows shared libraries with undefined symbols to be built.
20927allow_undefined_flag=$lt_allow_undefined_flag
20928
20929# Flag that enforces no undefined symbols.
20930no_undefined_flag=$lt_no_undefined_flag
20931
20932# Flag to hardcode \$libdir into a binary during linking.
20933# This must work even if \$libdir does not exist
20934hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20935
20936# Whether we need a single "-rpath" flag with a separated argument.
20937hardcode_libdir_separator=$lt_hardcode_libdir_separator
20938
20939# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20940# DIR into the resulting binary.
20941hardcode_direct=$hardcode_direct
20942
20943# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20944# DIR into the resulting binary and the resulting library dependency is
20945# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20946# library is relocated.
20947hardcode_direct_absolute=$hardcode_direct_absolute
20948
20949# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20950# into the resulting binary.
20951hardcode_minus_L=$hardcode_minus_L
20952
20953# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20954# into the resulting binary.
20955hardcode_shlibpath_var=$hardcode_shlibpath_var
20956
20957# Set to "yes" if building a shared library automatically hardcodes DIR
20958# into the library and all subsequent libraries and executables linked
20959# against it.
20960hardcode_automatic=$hardcode_automatic
20961
20962# Set to yes if linker adds runtime paths of dependent libraries
20963# to runtime path list.
20964inherit_rpath=$inherit_rpath
20965
20966# Whether libtool must link a program against all its dependency libraries.
20967link_all_deplibs=$link_all_deplibs
20968
20969# Set to "yes" if exported symbols are required.
20970always_export_symbols=$always_export_symbols
20971
20972# The commands to list exported symbols.
20973export_symbols_cmds=$lt_export_symbols_cmds
20974
20975# Symbols that should not be listed in the preloaded symbols.
20976exclude_expsyms=$lt_exclude_expsyms
20977
20978# Symbols that must always be exported.
20979include_expsyms=$lt_include_expsyms
20980
20981# Commands necessary for linking programs (against libraries) with templates.
20982prelink_cmds=$lt_prelink_cmds
20983
20984# Commands necessary for finishing linking programs.
20985postlink_cmds=$lt_postlink_cmds
20986
20987# Specify filename containing input files.
20988file_list_spec=$lt_file_list_spec
20989
20990# How to hardcode a shared library path into an executable.
20991hardcode_action=$hardcode_action
20992
20993# The directories searched by this compiler when creating a shared library.
20994compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20995
20996# Dependencies to place before and after the objects being linked to
20997# create a shared library.
20998predep_objects=$lt_predep_objects
20999postdep_objects=$lt_postdep_objects
21000predeps=$lt_predeps
21001postdeps=$lt_postdeps
21002
21003# The library search path used internally by the compiler when linking
21004# a shared library.
21005compiler_lib_search_path=$lt_compiler_lib_search_path
21006
21007# ### END LIBTOOL CONFIG
21008
21009_LT_EOF
21010
21011 case $host_os in
21012 aix3*)
21013 cat <<\_LT_EOF >> "$cfgfile"
21014# AIX sometimes has problems with the GCC collect2 program. For some
21015# reason, if we set the COLLECT_NAMES environment variable, the problems
21016# vanish in a puff of smoke.
21017if test "X${COLLECT_NAMES+set}" != Xset; then
21018 COLLECT_NAMES=
21019 export COLLECT_NAMES
21020fi
21021_LT_EOF
21022 ;;
21023 esac
21024
21025
21026ltmain="$ac_aux_dir/ltmain.sh"
21027
21028
21029 # We use sed instead of cat because bash on DJGPP gets confused if
21030 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21031 # text mode, it properly converts lines to CR/LF. This bash problem
21032 # is reportedly fixed, but why not run on old versions too?
21033 sed '$q' "$ltmain" >> "$cfgfile" \
21034 || (rm -f "$cfgfile"; exit 1)
21035
21036 if test x"$xsi_shell" = xyes; then
21037 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21038func_dirname ()\
21039{\
21040\ case ${1} in\
21041\ */*) func_dirname_result="${1%/*}${2}" ;;\
21042\ * ) func_dirname_result="${3}" ;;\
21043\ esac\
21044} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21045 && mv -f "$cfgfile.tmp" "$cfgfile" \
21046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21047test 0 -eq $? || _lt_function_replace_fail=:
21048
21049
21050 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21051func_basename ()\
21052{\
21053\ func_basename_result="${1##*/}"\
21054} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21055 && mv -f "$cfgfile.tmp" "$cfgfile" \
21056 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21057test 0 -eq $? || _lt_function_replace_fail=:
21058
21059
21060 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21061func_dirname_and_basename ()\
21062{\
21063\ case ${1} in\
21064\ */*) func_dirname_result="${1%/*}${2}" ;;\
21065\ * ) func_dirname_result="${3}" ;;\
21066\ esac\
21067\ func_basename_result="${1##*/}"\
21068} # Extended-shell func_dirname_and_basename 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_stripname ()$/,/^} # func_stripname /c\
21075func_stripname ()\
21076{\
21077\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21078\ # positional parameters, so assign one to ordinary parameter first.\
21079\ func_stripname_result=${3}\
21080\ func_stripname_result=${func_stripname_result#"${1}"}\
21081\ func_stripname_result=${func_stripname_result%"${2}"}\
21082} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21083 && mv -f "$cfgfile.tmp" "$cfgfile" \
21084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21085test 0 -eq $? || _lt_function_replace_fail=:
21086
21087
21088 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21089func_split_long_opt ()\
21090{\
21091\ func_split_long_opt_name=${1%%=*}\
21092\ func_split_long_opt_arg=${1#*=}\
21093} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21094 && mv -f "$cfgfile.tmp" "$cfgfile" \
21095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21096test 0 -eq $? || _lt_function_replace_fail=:
21097
21098
21099 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21100func_split_short_opt ()\
21101{\
21102\ func_split_short_opt_arg=${1#??}\
21103\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21104} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21105 && mv -f "$cfgfile.tmp" "$cfgfile" \
21106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21107test 0 -eq $? || _lt_function_replace_fail=:
21108
21109
21110 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21111func_lo2o ()\
21112{\
21113\ case ${1} in\
21114\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21115\ *) func_lo2o_result=${1} ;;\
21116\ esac\
21117} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21118 && mv -f "$cfgfile.tmp" "$cfgfile" \
21119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21120test 0 -eq $? || _lt_function_replace_fail=:
21121
21122
21123 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21124func_xform ()\
21125{\
21126 func_xform_result=${1%.*}.lo\
21127} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21128 && mv -f "$cfgfile.tmp" "$cfgfile" \
21129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21130test 0 -eq $? || _lt_function_replace_fail=:
21131
21132
21133 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21134func_arith ()\
21135{\
21136 func_arith_result=$(( $* ))\
21137} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21138 && mv -f "$cfgfile.tmp" "$cfgfile" \
21139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21140test 0 -eq $? || _lt_function_replace_fail=:
21141
21142
21143 sed -e '/^func_len ()$/,/^} # func_len /c\
21144func_len ()\
21145{\
21146 func_len_result=${#1}\
21147} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21148 && mv -f "$cfgfile.tmp" "$cfgfile" \
21149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21150test 0 -eq $? || _lt_function_replace_fail=:
21151
21152fi
21153
21154if test x"$lt_shell_append" = xyes; then
21155 sed -e '/^func_append ()$/,/^} # func_append /c\
21156func_append ()\
21157{\
21158 eval "${1}+=\\${2}"\
21159} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21160 && mv -f "$cfgfile.tmp" "$cfgfile" \
21161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21162test 0 -eq $? || _lt_function_replace_fail=:
21163
21164
21165 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21166func_append_quoted ()\
21167{\
21168\ func_quote_for_eval "${2}"\
21169\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21170} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21171 && mv -f "$cfgfile.tmp" "$cfgfile" \
21172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21173test 0 -eq $? || _lt_function_replace_fail=:
21174
21175
21176 # Save a `func_append' function call where possible by direct use of '+='
21177 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21178 && mv -f "$cfgfile.tmp" "$cfgfile" \
21179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21180 test 0 -eq $? || _lt_function_replace_fail=:
21181else
21182 # Save a `func_append' function call even when '+=' is not available
21183 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21184 && mv -f "$cfgfile.tmp" "$cfgfile" \
21185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21186 test 0 -eq $? || _lt_function_replace_fail=:
21187fi
21188
21189if test x"$_lt_function_replace_fail" = x":"; then
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21191$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21192fi
21193
21194
21195 mv -f "$cfgfile" "$ofile" ||
21196 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21197 chmod +x "$ofile"
21198
21199
21200 cat <<_LT_EOF >> "$ofile"
21201
21202# ### BEGIN LIBTOOL TAG CONFIG: CXX
21203
21204# The linker used to build libraries.
21205LD=$lt_LD_CXX
21206
21207# How to create reloadable object files.
21208reload_flag=$lt_reload_flag_CXX
21209reload_cmds=$lt_reload_cmds_CXX
21210
21211# Commands used to build an old-style archive.
21212old_archive_cmds=$lt_old_archive_cmds_CXX
21213
21214# A language specific compiler.
21215CC=$lt_compiler_CXX
21216
21217# Is the compiler the GNU compiler?
21218with_gcc=$GCC_CXX
21219
21220# Compiler flag to turn off builtin functions.
21221no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21222
21223# Additional compiler flags for building library objects.
21224pic_flag=$lt_lt_prog_compiler_pic_CXX
21225
21226# How to pass a linker flag through the compiler.
21227wl=$lt_lt_prog_compiler_wl_CXX
21228
21229# Compiler flag to prevent dynamic linking.
21230link_static_flag=$lt_lt_prog_compiler_static_CXX
21231
21232# Does compiler simultaneously support -c and -o options?
21233compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21234
21235# Whether or not to add -lc for building shared libraries.
21236build_libtool_need_lc=$archive_cmds_need_lc_CXX
21237
21238# Whether or not to disallow shared libs when runtime libs are static.
21239allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21240
21241# Compiler flag to allow reflexive dlopens.
21242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21243
21244# Compiler flag to generate shared objects directly from archives.
21245whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21246
21247# Whether the compiler copes with passing no objects directly.
21248compiler_needs_object=$lt_compiler_needs_object_CXX
21249
21250# Create an old-style archive from a shared archive.
21251old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21252
21253# Create a temporary old-style archive to link instead of a shared archive.
21254old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21255
21256# Commands used to build a shared archive.
21257archive_cmds=$lt_archive_cmds_CXX
21258archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21259
21260# Commands used to build a loadable module if different from building
21261# a shared archive.
21262module_cmds=$lt_module_cmds_CXX
21263module_expsym_cmds=$lt_module_expsym_cmds_CXX
21264
21265# Whether we are building with GNU ld or not.
21266with_gnu_ld=$lt_with_gnu_ld_CXX
21267
21268# Flag that allows shared libraries with undefined symbols to be built.
21269allow_undefined_flag=$lt_allow_undefined_flag_CXX
21270
21271# Flag that enforces no undefined symbols.
21272no_undefined_flag=$lt_no_undefined_flag_CXX
21273
21274# Flag to hardcode \$libdir into a binary during linking.
21275# This must work even if \$libdir does not exist
21276hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21277
21278# Whether we need a single "-rpath" flag with a separated argument.
21279hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21280
21281# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21282# DIR into the resulting binary.
21283hardcode_direct=$hardcode_direct_CXX
21284
21285# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21286# DIR into the resulting binary and the resulting library dependency is
21287# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21288# library is relocated.
21289hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21290
21291# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21292# into the resulting binary.
21293hardcode_minus_L=$hardcode_minus_L_CXX
21294
21295# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21296# into the resulting binary.
21297hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21298
21299# Set to "yes" if building a shared library automatically hardcodes DIR
21300# into the library and all subsequent libraries and executables linked
21301# against it.
21302hardcode_automatic=$hardcode_automatic_CXX
21303
21304# Set to yes if linker adds runtime paths of dependent libraries
21305# to runtime path list.
21306inherit_rpath=$inherit_rpath_CXX
21307
21308# Whether libtool must link a program against all its dependency libraries.
21309link_all_deplibs=$link_all_deplibs_CXX
21310
21311# Set to "yes" if exported symbols are required.
21312always_export_symbols=$always_export_symbols_CXX
21313
21314# The commands to list exported symbols.
21315export_symbols_cmds=$lt_export_symbols_cmds_CXX
21316
21317# Symbols that should not be listed in the preloaded symbols.
21318exclude_expsyms=$lt_exclude_expsyms_CXX
21319
21320# Symbols that must always be exported.
21321include_expsyms=$lt_include_expsyms_CXX
21322
21323# Commands necessary for linking programs (against libraries) with templates.
21324prelink_cmds=$lt_prelink_cmds_CXX
21325
21326# Commands necessary for finishing linking programs.
21327postlink_cmds=$lt_postlink_cmds_CXX
21328
21329# Specify filename containing input files.
21330file_list_spec=$lt_file_list_spec_CXX
21331
21332# How to hardcode a shared library path into an executable.
21333hardcode_action=$hardcode_action_CXX
21334
21335# The directories searched by this compiler when creating a shared library.
21336compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21337
21338# Dependencies to place before and after the objects being linked to
21339# create a shared library.
21340predep_objects=$lt_predep_objects_CXX
21341postdep_objects=$lt_postdep_objects_CXX
21342predeps=$lt_predeps_CXX
21343postdeps=$lt_postdeps_CXX
21344
21345# The library search path used internally by the compiler when linking
21346# a shared library.
21347compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21348
21349# ### END LIBTOOL TAG CONFIG: CXX
21350_LT_EOF
21351
21352 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070021353
21354 esac
21355done # for ac_tag
21356
21357
21358as_fn_exit 0
21359_ACEOF
21360ac_clean_files=$ac_clean_files_save
21361
21362test $ac_write_fail = 0 ||
21363 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21364
21365
21366# configure is writing to config.log, and then calls config.status.
21367# config.status does its own redirection, appending to config.log.
21368# Unfortunately, on DOS this fails, as config.log is still kept open
21369# by configure, so config.status won't be able to write to it; its
21370# output is simply discarded. So we exec the FD to /dev/null,
21371# effectively closing config.log, so it can be properly (re)opened and
21372# appended to by config.status. When coming back to configure, we
21373# need to make the FD available again.
21374if test "$no_create" != yes; then
21375 ac_cs_success=:
21376 ac_config_status_args=
21377 test "$silent" = yes &&
21378 ac_config_status_args="$ac_config_status_args --quiet"
21379 exec 5>/dev/null
21380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21381 exec 5>>config.log
21382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21383 # would make configure fail if this is the last instruction.
21384 $ac_cs_success || as_fn_exit 1
21385fi
21386if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21388$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21389fi
21390