blob: a7f08c4519e22674ebe590e3c4b4ff3a873f95bc [file] [log] [blame]
Brian Silverman70325d62015-09-20 17:00:43 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ctemplate 2.3.
4#
5# Report bugs to <google-ctemplate@googlegroups.com>.
6#
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'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: google-ctemplate@googlegroups.com about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561# Check that we are running under the correct shell.
562SHELL=${CONFIG_SHELL-/bin/sh}
563
564case X$lt_ECHO in
565X*--fallback-echo)
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 ;;
569esac
570
571ECHO=${lt_ECHO-echo}
572if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
574 shift
575elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
577 :
578elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $ECHO works!
580 :
581else
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
584fi
585
586if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
588 shift
589 cat <<_LT_EOF
590$*
591_LT_EOF
592 exit 0
593fi
594
595# The HP-UX ksh and POSIX shell print the target directory to stdout
596# if CDPATH is set.
597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599if test -z "$lt_ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
605 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
606 then
607 break
608 fi
609 done
610 fi
611
612 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
613 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
614 test "X$echo_testing_string" = "X$echo_test_string"; then
615 :
616 else
617 # The Solaris, AIX, and Digital Unix default echo programs unquote
618 # backslashes. This makes it impossible to quote backslashes using
619 # echo "$something" | sed 's/\\/\\\\/g'
620 #
621 # So, first we look for a working echo in the user's PATH.
622
623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
624 for dir in $PATH /usr/ucb; do
625 IFS="$lt_save_ifs"
626 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
627 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 ECHO="$dir/echo"
631 break
632 fi
633 done
634 IFS="$lt_save_ifs"
635
636 if test "X$ECHO" = Xecho; then
637 # We didn't find a better echo, so look for alternatives.
638 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
639 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 # This shell has a builtin print -r that does the trick.
642 ECHO='print -r'
643 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
644 test "X$CONFIG_SHELL" != X/bin/ksh; then
645 # If we have ksh, try running configure again with it.
646 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
647 export ORIGINAL_CONFIG_SHELL
648 CONFIG_SHELL=/bin/ksh
649 export CONFIG_SHELL
650 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 else
652 # Try using printf.
653 ECHO='printf %s\n'
654 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # Cool, printf works
658 :
659 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660 test "X$echo_testing_string" = 'X\t' &&
661 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662 test "X$echo_testing_string" = "X$echo_test_string"; then
663 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
664 export CONFIG_SHELL
665 SHELL="$CONFIG_SHELL"
666 export SHELL
667 ECHO="$CONFIG_SHELL $0 --fallback-echo"
668 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
669 test "X$echo_testing_string" = 'X\t' &&
670 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
672 ECHO="$CONFIG_SHELL $0 --fallback-echo"
673 else
674 # maybe with a smaller string...
675 prev=:
676
677 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
678 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
679 then
680 break
681 fi
682 prev="$cmd"
683 done
684
685 if test "$prev" != 'sed 50q "$0"'; then
686 echo_test_string=`eval $prev`
687 export echo_test_string
688 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
689 else
690 # Oops. We lost completely, so just stick with echo.
691 ECHO=echo
692 fi
693 fi
694 fi
695 fi
696 fi
697fi
698
699# Copy echo and quote the copy suitably for passing to libtool from
700# the Makefile, instead of quoting the original, which is used later.
701lt_ECHO=$ECHO
702if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
703 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704fi
705
706
707
708
709test -n "$DJDIR" || exec 7<&0 </dev/null
710exec 6>&1
711
712# Name of the host.
713# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
714# so uname gets run too.
715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717#
718# Initializations.
719#
720ac_default_prefix=/usr/local
721ac_clean_files=
722ac_config_libobj_dir=.
723LIBOBJS=
724cross_compiling=no
725subdirs=
726MFLAGS=
727MAKEFLAGS=
728
729# Identity of this package.
730PACKAGE_NAME='ctemplate'
731PACKAGE_TARNAME='ctemplate'
732PACKAGE_VERSION='2.3'
733PACKAGE_STRING='ctemplate 2.3'
734PACKAGE_BUGREPORT='google-ctemplate@googlegroups.com'
735PACKAGE_URL=''
736
737ac_unique_file="README"
738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
741#ifdef HAVE_SYS_TYPES_H
742# include <sys/types.h>
743#endif
744#ifdef HAVE_SYS_STAT_H
745# include <sys/stat.h>
746#endif
747#ifdef STDC_HEADERS
748# include <stdlib.h>
749# include <stddef.h>
750#else
751# ifdef HAVE_STDLIB_H
752# include <stdlib.h>
753# endif
754#endif
755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757# include <memory.h>
758# endif
759# include <string.h>
760#endif
761#ifdef HAVE_STRINGS_H
762# include <strings.h>
763#endif
764#ifdef HAVE_INTTYPES_H
765# include <inttypes.h>
766#endif
767#ifdef HAVE_STDINT_H
768# include <stdint.h>
769#endif
770#ifdef HAVE_UNISTD_H
771# include <unistd.h>
772#endif"
773
774ac_subst_vars='am__EXEEXT_FALSE
775am__EXEEXT_TRUE
776LTLIBOBJS
777LIBOBJS
778ac_htmlparser_namespace
779ac_windows_dllexport
780ac_windows_dllexport_defines
781ac_have_attribute_weak
782ac_cv_have_inttypes_h
783ac_cv_have_stdint_h
784ac_cv_uint64
785ac_google_attribute
786ac_cv_cxx_hash_set_class
787ac_cv_cxx_hash_map_class
788ac_cv_cxx_hash_set
789ac_cv_cxx_hash_map
790ac_google_end_namespace
791ac_google_start_namespace
792ac_google_namespace
793PTHREAD_CFLAGS
794PTHREAD_LIBS
795PTHREAD_CC
796acx_pthread_config
797SO_VERSION
798LIBTOOL_DEPS
799CXXCPP
800OTOOL64
801OTOOL
802LIPO
803NMEDIT
804DSYMUTIL
805lt_ECHO
806RANLIB
807AR
808OBJDUMP
809LN_S
810NM
811ac_ct_DUMPBIN
812DUMPBIN
813LD
814FGREP
815EGREP
816GREP
817SED
818LIBTOOL
819MINGW_FALSE
820MINGW_TRUE
821GCC_FALSE
822GCC_TRUE
823CPP
824am__fastdepCC_FALSE
825am__fastdepCC_TRUE
826CCDEPMODE
827ac_ct_CC
828CFLAGS
829CC
830am__fastdepCXX_FALSE
831am__fastdepCXX_TRUE
832CXXDEPMODE
833am__nodep
834AMDEPBACKSLASH
835AMDEP_FALSE
836AMDEP_TRUE
837am__quote
838am__include
839DEPDIR
840OBJEXT
841EXEEXT
842ac_ct_CXX
843CPPFLAGS
844LDFLAGS
845CXXFLAGS
846CXX
847am__untar
848am__tar
849AMTAR
850am__leading_dot
851SET_MAKE
852AWK
853mkdir_p
854MKDIR_P
855INSTALL_STRIP_PROGRAM
856STRIP
857install_sh
858MAKEINFO
859AUTOHEADER
860AUTOMAKE
861AUTOCONF
862ACLOCAL
863VERSION
864PACKAGE
865CYGPATH_W
866am__isrc
867INSTALL_DATA
868INSTALL_SCRIPT
869INSTALL_PROGRAM
870host_os
871host_vendor
872host_cpu
873host
874build_os
875build_vendor
876build_cpu
877build
878AM_BACKSLASH
879AM_DEFAULT_VERBOSITY
880AM_DEFAULT_V
881AM_V
882target_alias
883host_alias
884build_alias
885LIBS
886ECHO_T
887ECHO_N
888ECHO_C
889DEFS
890mandir
891localedir
892libdir
893psdir
894pdfdir
895dvidir
896htmldir
897infodir
898docdir
899oldincludedir
900includedir
901localstatedir
902sharedstatedir
903sysconfdir
904datadir
905datarootdir
906libexecdir
907sbindir
908bindir
909program_transform_name
910prefix
911exec_prefix
912PACKAGE_URL
913PACKAGE_BUGREPORT
914PACKAGE_STRING
915PACKAGE_VERSION
916PACKAGE_TARNAME
917PACKAGE_NAME
918PATH_SEPARATOR
919SHELL'
920ac_subst_files=''
921ac_user_opts='
922enable_option_checking
923enable_silent_rules
924enable_dependency_tracking
925enable_fast_install
926enable_shared
927enable_static
928with_pic
929with_gnu_ld
930enable_libtool_lock
931enable_namespace
932'
933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CXX
937CXXFLAGS
938LDFLAGS
939LIBS
940CPPFLAGS
941CCC
942CC
943CFLAGS
944CPP
945CXXCPP'
946
947
948# Initialize some variables set by options.
949ac_init_help=
950ac_init_version=false
951ac_unrecognized_opts=
952ac_unrecognized_sep=
953# The variables have the same names as the options, with
954# dashes changed to underlines.
955cache_file=/dev/null
956exec_prefix=NONE
957no_create=
958no_recursion=
959prefix=NONE
960program_prefix=NONE
961program_suffix=NONE
962program_transform_name=s,x,x,
963silent=
964site=
965srcdir=
966verbose=
967x_includes=NONE
968x_libraries=NONE
969
970# Installation directory options.
971# These are left unexpanded so users can "make install exec_prefix=/foo"
972# and all the variables that are supposed to be based on exec_prefix
973# by default will actually change.
974# Use braces instead of parens because sh, perl, etc. also accept them.
975# (The list follows the same order as the GNU Coding Standards.)
976bindir='${exec_prefix}/bin'
977sbindir='${exec_prefix}/sbin'
978libexecdir='${exec_prefix}/libexec'
979datarootdir='${prefix}/share'
980datadir='${datarootdir}'
981sysconfdir='${prefix}/etc'
982sharedstatedir='${prefix}/com'
983localstatedir='${prefix}/var'
984includedir='${prefix}/include'
985oldincludedir='/usr/include'
986docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987infodir='${datarootdir}/info'
988htmldir='${docdir}'
989dvidir='${docdir}'
990pdfdir='${docdir}'
991psdir='${docdir}'
992libdir='${exec_prefix}/lib'
993localedir='${datarootdir}/locale'
994mandir='${datarootdir}/man'
995
996ac_prev=
997ac_dashdash=
998for ac_option
999do
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1003 ac_prev=
1004 continue
1005 fi
1006
1007 case $ac_option in
1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 *=) ac_optarg= ;;
1010 *) ac_optarg=yes ;;
1011 esac
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1043
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1076
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"enable_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1296
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"with_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332Try \`$0 --help' for more information"
1333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error $? "missing argument to $ac_option"
1359fi
1360
1361if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1367fi
1368
1369# Check all directory arguments for consistency.
1370for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1374do
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1388done
1389
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
1410
1411
1412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error $? "working directory cannot be determined"
1416test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error $? "pwd does not report name of working directory"
1418
1419
1420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429$as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1450 fi
1451else
1452 ac_srcdir_defaulted=no
1453fi
1454if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457fi
1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461 pwd)`
1462# When building in place, set srcdir=.
1463if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465fi
1466# Remove unnecessary trailing slashes from srcdir.
1467# Double slashes in file names in object file debugging info
1468# mess up M-x gdb in Emacs.
1469case $srcdir in
1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471esac
1472for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477done
1478
1479#
1480# Report the --help message.
1481#
1482if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486\`configure' configures ctemplate 2.3 to adapt to many kinds of systems.
1487
1488Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493Defaults for the options are specified in brackets.
1494
1495Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking ...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512By default, \`make install' will install all the files in
1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515for instance \`--prefix=\$HOME'.
1516
1517For better control, use the options below.
1518
1519Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/ctemplate]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539_ACEOF
1540
1541 cat <<\_ACEOF
1542
1543Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551_ACEOF
1552fi
1553
1554if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of ctemplate 2.3:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-silent-rules less verbose build output (undo: "make V=1")
1565 --disable-silent-rules verbose build output (undo: "make V=0")
1566 --enable-dependency-tracking
1567 do not reject slow dependency extractors
1568 --disable-dependency-tracking
1569 speeds up one-time build
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=no]
1572 --enable-shared[=PKGS] build shared libraries [default=yes]
1573 --enable-static[=PKGS] build static libraries [default=yes]
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1575 --enable-namespace=FOO to define these Google
1576 classes in the FOO namespace. --disable-namespace
1577 to define them in the global namespace. Default
1578 is to define them in namespace ctemplate.
1579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586
1587Some influential environment variables:
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
1592 LIBS libraries to pass to the linker, e.g. -l<library>
1593 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 CPP C preprocessor
1598 CXXCPP C++ preprocessor
1599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603Report bugs to <google-ctemplate@googlegroups.com>.
1604_ACEOF
1605ac_status=$?
1606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613 continue
1614 ac_builddir=.
1615
1616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
1619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
1631
1632case $srcdir in
1633 .) # We are building in place.
1634 ac_srcdir=.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1641 *) # Relative name.
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645esac
1646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1656 else
1657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 fi || ac_status=$?
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1660 done
1661fi
1662
1663test -n "$ac_init_help" && exit $ac_status
1664if $ac_init_version; then
1665 cat <<\_ACEOF
1666ctemplate configure 2.3
1667generated by GNU Autoconf 2.69
1668
1669Copyright (C) 2012 Free Software Foundation, Inc.
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
1673 exit
1674fi
1675
1676## ------------------------ ##
1677## Autoconf initialization. ##
1678## ------------------------ ##
1679
1680# ac_fn_cxx_try_compile LINENO
1681# ----------------------------
1682# Try to compile conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_cxx_try_compile ()
1684{
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_cxx_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716} # ac_fn_cxx_try_compile
1717
1718# ac_fn_c_try_compile LINENO
1719# --------------------------
1720# Try to compile conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_compile ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_compile
1755
1756# ac_fn_c_try_cpp LINENO
1757# ----------------------
1758# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759ac_fn_c_try_cpp ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } > conftest.i && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }; then :
1781 ac_retval=0
1782else
1783 $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=1
1787fi
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1790
1791} # ac_fn_c_try_cpp
1792
1793# ac_fn_c_try_link LINENO
1794# -----------------------
1795# Try to link conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_link ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823else
1824 $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828fi
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_link
1838
1839# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1840# -------------------------------------------------------
1841# Tests whether HEADER exists and can be compiled using the include files in
1842# INCLUDES, setting the cache variable VAR accordingly.
1843ac_fn_c_check_header_compile ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853$4
1854#include <$2>
1855_ACEOF
1856if ac_fn_c_try_compile "$LINENO"; then :
1857 eval "$3=yes"
1858else
1859 eval "$3=no"
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_header_compile
1869
1870# ac_fn_c_try_run LINENO
1871# ----------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1873# that executables *can* be run.
1874ac_fn_c_try_run ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1888 { { case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_try") 2>&5
1895 ac_status=$?
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; }; }; then :
1898 ac_retval=0
1899else
1900 $as_echo "$as_me: program exited with status $ac_status" >&5
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=$ac_status
1905fi
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1909
1910} # ac_fn_c_try_run
1911
1912# ac_fn_c_check_func LINENO FUNC VAR
1913# ----------------------------------
1914# Tests whether FUNC exists, setting the cache variable VAR accordingly
1915ac_fn_c_check_func ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927#define $2 innocuous_$2
1928
1929/* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1933
1934#ifdef __STDC__
1935# include <limits.h>
1936#else
1937# include <assert.h>
1938#endif
1939
1940#undef $2
1941
1942/* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1945#ifdef __cplusplus
1946extern "C"
1947#endif
1948char $2 ();
1949/* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952#if defined __stub_$2 || defined __stub___$2
1953choke me
1954#endif
1955
1956int
1957main ()
1958{
1959return $2 ();
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_link "$LINENO"; then :
1965 eval "$3=yes"
1966else
1967 eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
1977} # ac_fn_c_check_func
1978
1979# ac_fn_cxx_try_cpp LINENO
1980# ------------------------
1981# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_cxx_try_cpp ()
1983{
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_cpp conftest.$ac_ext"
1986case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1998 fi
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } > conftest.i && {
2001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 }; then :
2004 ac_retval=0
2005else
2006 $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1
2010fi
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2013
2014} # ac_fn_cxx_try_cpp
2015
2016# ac_fn_cxx_try_link LINENO
2017# -------------------------
2018# Try to link conftest.$ac_ext, and return whether this succeeded.
2019ac_fn_cxx_try_link ()
2020{
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext conftest$ac_exeext
2023 if { { ac_try="$ac_link"
2024case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2036 fi
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
2043 test -x conftest$ac_exeext
2044 }; then :
2045 ac_retval=0
2046else
2047 $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_retval=1
2051fi
2052 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054 # interfere with the next link command; also delete a directory that is
2055 # left behind by Apple's compiler. We do this before executing the actions.
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2059
2060} # ac_fn_cxx_try_link
2061
2062# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# -------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_c_check_header_mongrel ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if eval \${$3+:} false; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
2073if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080 # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090else
2091 ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102#include <$2>
2103_ACEOF
2104if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2106else
2107 ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.i conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So? What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115 yes:no: )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132( $as_echo "## ------------------------------------------------ ##
2133## Report this to google-ctemplate@googlegroups.com ##
2134## ------------------------------------------------ ##"
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
2140if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2154# -------------------------------------------
2155# Tests whether TYPE exists after having included INCLUDES, setting cache
2156# variable VAR accordingly.
2157ac_fn_c_check_type ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161$as_echo_n "checking for $2... " >&6; }
2162if eval \${$3+:} false; then :
2163 $as_echo_n "(cached) " >&6
2164else
2165 eval "$3=no"
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h. */
2168$4
2169int
2170main ()
2171{
2172if (sizeof ($2))
2173 return 0;
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182int
2183main ()
2184{
2185if (sizeof (($2)))
2186 return 0;
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192
2193else
2194 eval "$3=yes"
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200eval ac_res=\$$3
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204
2205} # ac_fn_c_check_type
2206cat >config.log <<_ACEOF
2207This file contains any messages produced by compilers while
2208running configure, to aid debugging if configure makes a mistake.
2209
2210It was created by ctemplate $as_me 2.3, which was
2211generated by GNU Autoconf 2.69. Invocation command line was
2212
2213 $ $0 $@
2214
2215_ACEOF
2216exec 5>>config.log
2217{
2218cat <<_ASUNAME
2219## --------- ##
2220## Platform. ##
2221## --------- ##
2222
2223hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2224uname -m = `(uname -m) 2>/dev/null || echo unknown`
2225uname -r = `(uname -r) 2>/dev/null || echo unknown`
2226uname -s = `(uname -s) 2>/dev/null || echo unknown`
2227uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228
2229/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2230/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2231
2232/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2233/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2234/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2235/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2236/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2237/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2238/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2239
2240_ASUNAME
2241
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 $as_echo "PATH: $as_dir"
2248 done
2249IFS=$as_save_IFS
2250
2251} >&5
2252
2253cat >&5 <<_ACEOF
2254
2255
2256## ----------- ##
2257## Core tests. ##
2258## ----------- ##
2259
2260_ACEOF
2261
2262
2263# Keep a trace of the command line.
2264# Strip out --no-create and --no-recursion so they do not pile up.
2265# Strip out --silent because we don't want to record it for future runs.
2266# Also quote any args containing shell meta-characters.
2267# Make two passes to allow for proper duplicate-argument suppression.
2268ac_configure_args=
2269ac_configure_args0=
2270ac_configure_args1=
2271ac_must_keep_next=false
2272for ac_pass in 1 2
2273do
2274 for ac_arg
2275 do
2276 case $ac_arg in
2277 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2279 | -silent | --silent | --silen | --sile | --sil)
2280 continue ;;
2281 *\'*)
2282 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2283 esac
2284 case $ac_pass in
2285 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286 2)
2287 as_fn_append ac_configure_args1 " '$ac_arg'"
2288 if test $ac_must_keep_next = true; then
2289 ac_must_keep_next=false # Got value, back to normal.
2290 else
2291 case $ac_arg in
2292 *=* | --config-cache | -C | -disable-* | --disable-* \
2293 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2294 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2295 | -with-* | --with-* | -without-* | --without-* | --x)
2296 case "$ac_configure_args0 " in
2297 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2298 esac
2299 ;;
2300 -* ) ac_must_keep_next=true ;;
2301 esac
2302 fi
2303 as_fn_append ac_configure_args " '$ac_arg'"
2304 ;;
2305 esac
2306 done
2307done
2308{ ac_configure_args0=; unset ac_configure_args0;}
2309{ ac_configure_args1=; unset ac_configure_args1;}
2310
2311# When interrupted or exit'd, cleanup temporary files, and complete
2312# config.log. We remove comments because anyway the quotes in there
2313# would cause problems or look ugly.
2314# WARNING: Use '\'' to represent an apostrophe within the trap.
2315# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2316trap 'exit_status=$?
2317 # Save into config.log some information that might help in debugging.
2318 {
2319 echo
2320
2321 $as_echo "## ---------------- ##
2322## Cache variables. ##
2323## ---------------- ##"
2324 echo
2325 # The following way of writing the cache mishandles newlines in values,
2326(
2327 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in #(
2330 *${as_nl}*)
2331 case $ac_var in #(
2332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2334 esac
2335 case $ac_var in #(
2336 _ | IFS | as_nl) ;; #(
2337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2338 *) { eval $ac_var=; unset $ac_var;} ;;
2339 esac ;;
2340 esac
2341 done
2342 (set) 2>&1 |
2343 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2344 *${as_nl}ac_space=\ *)
2345 sed -n \
2346 "s/'\''/'\''\\\\'\'''\''/g;
2347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2348 ;; #(
2349 *)
2350 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2351 ;;
2352 esac |
2353 sort
2354)
2355 echo
2356
2357 $as_echo "## ----------------- ##
2358## Output variables. ##
2359## ----------------- ##"
2360 echo
2361 for ac_var in $ac_subst_vars
2362 do
2363 eval ac_val=\$$ac_var
2364 case $ac_val in
2365 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366 esac
2367 $as_echo "$ac_var='\''$ac_val'\''"
2368 done | sort
2369 echo
2370
2371 if test -n "$ac_subst_files"; then
2372 $as_echo "## ------------------- ##
2373## File substitutions. ##
2374## ------------------- ##"
2375 echo
2376 for ac_var in $ac_subst_files
2377 do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in
2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 esac
2382 $as_echo "$ac_var='\''$ac_val'\''"
2383 done | sort
2384 echo
2385 fi
2386
2387 if test -s confdefs.h; then
2388 $as_echo "## ----------- ##
2389## confdefs.h. ##
2390## ----------- ##"
2391 echo
2392 cat confdefs.h
2393 echo
2394 fi
2395 test "$ac_signal" != 0 &&
2396 $as_echo "$as_me: caught signal $ac_signal"
2397 $as_echo "$as_me: exit $exit_status"
2398 } >&5
2399 rm -f core *.core core.conftest.* &&
2400 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2401 exit $exit_status
2402' 0
2403for ac_signal in 1 2 13 15; do
2404 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2405done
2406ac_signal=0
2407
2408# confdefs.h avoids OS command line length limits that DEFS can exceed.
2409rm -f -r conftest* confdefs.h
2410
2411$as_echo "/* confdefs.h */" > confdefs.h
2412
2413# Predefined preprocessor variables.
2414
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_NAME "$PACKAGE_NAME"
2417_ACEOF
2418
2419cat >>confdefs.h <<_ACEOF
2420#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2421_ACEOF
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_VERSION "$PACKAGE_VERSION"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_STRING "$PACKAGE_STRING"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_URL "$PACKAGE_URL"
2437_ACEOF
2438
2439
2440# Let the site file select an alternate cache file if it wants to.
2441# Prefer an explicitly selected file to automatically selected ones.
2442ac_site_file1=NONE
2443ac_site_file2=NONE
2444if test -n "$CONFIG_SITE"; then
2445 # We do not want a PATH search for config.site.
2446 case $CONFIG_SITE in #((
2447 -*) ac_site_file1=./$CONFIG_SITE;;
2448 */*) ac_site_file1=$CONFIG_SITE;;
2449 *) ac_site_file1=./$CONFIG_SITE;;
2450 esac
2451elif test "x$prefix" != xNONE; then
2452 ac_site_file1=$prefix/share/config.site
2453 ac_site_file2=$prefix/etc/config.site
2454else
2455 ac_site_file1=$ac_default_prefix/share/config.site
2456 ac_site_file2=$ac_default_prefix/etc/config.site
2457fi
2458for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459do
2460 test "x$ac_site_file" = xNONE && continue
2461 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464 sed 's/^/| /' "$ac_site_file" >&5
2465 . "$ac_site_file" \
2466 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468as_fn_error $? "failed to load site script $ac_site_file
2469See \`config.log' for more details" "$LINENO" 5; }
2470 fi
2471done
2472
2473if test -r "$cache_file"; then
2474 # Some versions of bash will fail to source /dev/null (special files
2475 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2476 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2478$as_echo "$as_me: loading cache $cache_file" >&6;}
2479 case $cache_file in
2480 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2481 *) . "./$cache_file";;
2482 esac
2483 fi
2484else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2486$as_echo "$as_me: creating cache $cache_file" >&6;}
2487 >$cache_file
2488fi
2489
2490# Check that the precious variables saved in the cache have kept the same
2491# value.
2492ac_cache_corrupted=false
2493for ac_var in $ac_precious_vars; do
2494 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2495 eval ac_new_set=\$ac_env_${ac_var}_set
2496 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2497 eval ac_new_val=\$ac_env_${ac_var}_value
2498 case $ac_old_set,$ac_new_set in
2499 set,)
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2501$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2502 ac_cache_corrupted=: ;;
2503 ,set)
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2505$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2506 ac_cache_corrupted=: ;;
2507 ,);;
2508 *)
2509 if test "x$ac_old_val" != "x$ac_new_val"; then
2510 # differences in whitespace do not lead to failure.
2511 ac_old_val_w=`echo x $ac_old_val`
2512 ac_new_val_w=`echo x $ac_new_val`
2513 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2515$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2516 ac_cache_corrupted=:
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2519$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2520 eval $ac_var=\$ac_old_val
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2523$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2525$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2526 fi;;
2527 esac
2528 # Pass precious variables to config.status.
2529 if test "$ac_new_set" = set; then
2530 case $ac_new_val in
2531 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2532 *) ac_arg=$ac_var=$ac_new_val ;;
2533 esac
2534 case " $ac_configure_args " in
2535 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2536 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2537 esac
2538 fi
2539done
2540if $ac_cache_corrupted; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2544$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2545 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2546fi
2547## -------------------- ##
2548## Main body of script. ##
2549## -------------------- ##
2550
2551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556
2557
2558# Check whether --enable-silent-rules was given.
2559if test "${enable_silent_rules+set}" = set; then :
2560 enableval=$enable_silent_rules;
2561fi
2562
2563case $enable_silent_rules in # (((
2564 yes) AM_DEFAULT_VERBOSITY=0;;
2565 no) AM_DEFAULT_VERBOSITY=1;;
2566 *) AM_DEFAULT_VERBOSITY=0;;
2567esac
2568am_make=${MAKE-make}
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2570$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2571if ${am_cv_make_support_nested_variables+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573else
2574 if $as_echo 'TRUE=$(BAR$(V))
2575BAR0=false
2576BAR1=true
2577V=1
2578am__doit:
2579 @$(TRUE)
2580.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2581 am_cv_make_support_nested_variables=yes
2582else
2583 am_cv_make_support_nested_variables=no
2584fi
2585fi
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2587$as_echo "$am_cv_make_support_nested_variables" >&6; }
2588if test $am_cv_make_support_nested_variables = yes; then
2589 AM_V='$(V)'
2590 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2591else
2592 AM_V=$AM_DEFAULT_VERBOSITY
2593 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2594fi
2595AM_BACKSLASH='\'
2596
2597
2598# Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
2599# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2600SO_VERSION=3:0:0
2601
2602# The argument here is just something that should be in the current directory
2603# (for sanity checking)
2604
2605
2606ac_aux_dir=
2607for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2608 if test -f "$ac_dir/install-sh"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/install-sh -c"
2611 break
2612 elif test -f "$ac_dir/install.sh"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/install.sh -c"
2615 break
2616 elif test -f "$ac_dir/shtool"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/shtool install -c"
2619 break
2620 fi
2621done
2622if test -z "$ac_aux_dir"; then
2623 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2624fi
2625
2626# These three variables are undocumented and unsupported,
2627# and are intended to be withdrawn in a future Autoconf release.
2628# They can cause serious problems if a builder's source tree is in a directory
2629# whose full name contains unusual characters.
2630ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2631ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2632ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633
2634
2635# Make sure we can run config.sub.
2636$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2637 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2640$as_echo_n "checking build system type... " >&6; }
2641if ${ac_cv_build+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643else
2644 ac_build_alias=$build_alias
2645test "x$ac_build_alias" = x &&
2646 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2647test "x$ac_build_alias" = x &&
2648 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2649ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2650 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2651
2652fi
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2654$as_echo "$ac_cv_build" >&6; }
2655case $ac_cv_build in
2656*-*-*) ;;
2657*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2658esac
2659build=$ac_cv_build
2660ac_save_IFS=$IFS; IFS='-'
2661set x $ac_cv_build
2662shift
2663build_cpu=$1
2664build_vendor=$2
2665shift; shift
2666# Remember, the first character of IFS is used to create $*,
2667# except with old shells:
2668build_os=$*
2669IFS=$ac_save_IFS
2670case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2671
2672
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2674$as_echo_n "checking host system type... " >&6; }
2675if ${ac_cv_host+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test "x$host_alias" = x; then
2679 ac_cv_host=$ac_cv_build
2680else
2681 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2683fi
2684
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2687$as_echo "$ac_cv_host" >&6; }
2688case $ac_cv_host in
2689*-*-*) ;;
2690*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2691esac
2692host=$ac_cv_host
2693ac_save_IFS=$IFS; IFS='-'
2694set x $ac_cv_host
2695shift
2696host_cpu=$1
2697host_vendor=$2
2698shift; shift
2699# Remember, the first character of IFS is used to create $*,
2700# except with old shells:
2701host_os=$*
2702IFS=$ac_save_IFS
2703case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2704
2705
2706am__api_version='1.14'
2707
2708# Find a good install program. We prefer a C program (faster),
2709# so one script is as good as another. But avoid the broken or
2710# incompatible versions:
2711# SysV /etc/install, /usr/sbin/install
2712# SunOS /usr/etc/install
2713# IRIX /sbin/install
2714# AIX /bin/install
2715# AmigaOS /C/install, which installs bootblocks on floppy discs
2716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2717# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2719# OS/2's system install, which has a completely different semantic
2720# ./install, which can be erroneously created by make from ./install.sh.
2721# Reject install programs that cannot install multiple files.
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2723$as_echo_n "checking for a BSD-compatible install... " >&6; }
2724if test -z "$INSTALL"; then
2725if ${ac_cv_path_install+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 # Account for people who put trailing slashes in PATH elements.
2734case $as_dir/ in #((
2735 ./ | .// | /[cC]/* | \
2736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2738 /usr/ucb/* ) ;;
2739 *)
2740 # OSF1 and SCO ODT 3.0 have their own names for install.
2741 # Don't use installbsd from OSF since it installs stuff as root
2742 # by default.
2743 for ac_prog in ginstall scoinst install; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2746 if test $ac_prog = install &&
2747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # AIX install. It has an incompatible calling convention.
2749 :
2750 elif test $ac_prog = install &&
2751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2752 # program-specific install script used by HP pwplus--don't use.
2753 :
2754 else
2755 rm -rf conftest.one conftest.two conftest.dir
2756 echo one > conftest.one
2757 echo two > conftest.two
2758 mkdir conftest.dir
2759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2760 test -s conftest.one && test -s conftest.two &&
2761 test -s conftest.dir/conftest.one &&
2762 test -s conftest.dir/conftest.two
2763 then
2764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2765 break 3
2766 fi
2767 fi
2768 fi
2769 done
2770 done
2771 ;;
2772esac
2773
2774 done
2775IFS=$as_save_IFS
2776
2777rm -rf conftest.one conftest.two conftest.dir
2778
2779fi
2780 if test "${ac_cv_path_install+set}" = set; then
2781 INSTALL=$ac_cv_path_install
2782 else
2783 # As a last resort, use the slow shell script. Don't cache a
2784 # value for INSTALL within a source directory, because that will
2785 # break other packages using the cache if that directory is
2786 # removed, or if the value is a relative name.
2787 INSTALL=$ac_install_sh
2788 fi
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2791$as_echo "$INSTALL" >&6; }
2792
2793# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2794# It thinks the first close brace ends the variable substitution.
2795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2796
2797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2798
2799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2800
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2802$as_echo_n "checking whether build environment is sane... " >&6; }
2803# Reject unsafe characters in $srcdir or the absolute working directory
2804# name. Accept space and tab only in the latter.
2805am_lf='
2806'
2807case `pwd` in
2808 *[\\\"\#\$\&\'\`$am_lf]*)
2809 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2810esac
2811case $srcdir in
2812 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2813 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2814esac
2815
2816# Do 'set' in a subshell so we don't clobber the current shell's
2817# arguments. Must try -L first in case configure is actually a
2818# symlink; some systems play weird games with the mod time of symlinks
2819# (eg FreeBSD returns the mod time of the symlink's containing
2820# directory).
2821if (
2822 am_has_slept=no
2823 for am_try in 1 2; do
2824 echo "timestamp, slept: $am_has_slept" > conftest.file
2825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2826 if test "$*" = "X"; then
2827 # -L didn't work.
2828 set X `ls -t "$srcdir/configure" conftest.file`
2829 fi
2830 if test "$*" != "X $srcdir/configure conftest.file" \
2831 && test "$*" != "X conftest.file $srcdir/configure"; then
2832
2833 # If neither matched, then we have a broken ls. This can happen
2834 # if, for instance, CONFIG_SHELL is bash and it inherits a
2835 # broken ls alias from the environment. This has actually
2836 # happened. Such a system could not be considered "sane".
2837 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2838 alias in your environment" "$LINENO" 5
2839 fi
2840 if test "$2" = conftest.file || test $am_try -eq 2; then
2841 break
2842 fi
2843 # Just in case.
2844 sleep 1
2845 am_has_slept=yes
2846 done
2847 test "$2" = conftest.file
2848 )
2849then
2850 # Ok.
2851 :
2852else
2853 as_fn_error $? "newly created file is older than distributed files!
2854Check your system clock" "$LINENO" 5
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857$as_echo "yes" >&6; }
2858# If we didn't sleep, we still need to ensure time stamps of config.status and
2859# generated files are strictly newer.
2860am_sleep_pid=
2861if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2862 ( sleep 1 ) &
2863 am_sleep_pid=$!
2864fi
2865
2866rm -f conftest.file
2867
2868test "$program_prefix" != NONE &&
2869 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2870# Use a double $ so make ignores it.
2871test "$program_suffix" != NONE &&
2872 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2873# Double any \ or $.
2874# By default was `s,x,x', remove it if useless.
2875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2877
2878# Expand $ac_aux_dir to an absolute path.
2879am_aux_dir=`cd "$ac_aux_dir" && pwd`
2880
2881if test x"${MISSING+set}" != xset; then
2882 case $am_aux_dir in
2883 *\ * | *\ *)
2884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2885 *)
2886 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2887 esac
2888fi
2889# Use eval to expand $SHELL
2890if eval "$MISSING --is-lightweight"; then
2891 am_missing_run="$MISSING "
2892else
2893 am_missing_run=
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2896fi
2897
2898if test x"${install_sh}" != xset; then
2899 case $am_aux_dir in
2900 *\ * | *\ *)
2901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2902 *)
2903 install_sh="\${SHELL} $am_aux_dir/install-sh"
2904 esac
2905fi
2906
2907# Installed binaries are usually stripped using 'strip' when the user
2908# run "make install-strip". However 'strip' might not be the right
2909# tool to use in cross-compilation environments, therefore Automake
2910# will honor the 'STRIP' environment variable to overrule this program.
2911if test "$cross_compiling" != no; then
2912 if test -n "$ac_tool_prefix"; then
2913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2914set dummy ${ac_tool_prefix}strip; ac_word=$2
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916$as_echo_n "checking for $ac_word... " >&6; }
2917if ${ac_cv_prog_STRIP+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919else
2920 if test -n "$STRIP"; then
2921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934done
2935 done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940STRIP=$ac_cv_prog_STRIP
2941if test -n "$STRIP"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2943$as_echo "$STRIP" >&6; }
2944else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949
2950fi
2951if test -z "$ac_cv_prog_STRIP"; then
2952 ac_ct_STRIP=$STRIP
2953 # Extract the first word of "strip", so it can be a program name with args.
2954set dummy strip; ac_word=$2
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test -n "$ac_ct_STRIP"; then
2961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_STRIP="strip"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974done
2975 done
2976IFS=$as_save_IFS
2977
2978fi
2979fi
2980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2981if test -n "$ac_ct_STRIP"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2983$as_echo "$ac_ct_STRIP" >&6; }
2984else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986$as_echo "no" >&6; }
2987fi
2988
2989 if test "x$ac_ct_STRIP" = x; then
2990 STRIP=":"
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993yes:)
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996ac_tool_warned=yes ;;
2997esac
2998 STRIP=$ac_ct_STRIP
2999 fi
3000else
3001 STRIP="$ac_cv_prog_STRIP"
3002fi
3003
3004fi
3005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3006
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3009if test -z "$MKDIR_P"; then
3010 if ${ac_cv_path_mkdir+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_prog in mkdir gmkdir; do
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3022 'mkdir (GNU coreutils) '* | \
3023 'mkdir (coreutils) '* | \
3024 'mkdir (fileutils) '4.1*)
3025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3026 break 3;;
3027 esac
3028 done
3029 done
3030 done
3031IFS=$as_save_IFS
3032
3033fi
3034
3035 test -d ./--version && rmdir ./--version
3036 if test "${ac_cv_path_mkdir+set}" = set; then
3037 MKDIR_P="$ac_cv_path_mkdir -p"
3038 else
3039 # As a last resort, use the slow shell script. Don't cache a
3040 # value for MKDIR_P within a source directory, because that will
3041 # break other packages using the cache if that directory is
3042 # removed, or if the value is a relative name.
3043 MKDIR_P="$ac_install_sh -d"
3044 fi
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3047$as_echo "$MKDIR_P" >&6; }
3048
3049for ac_prog in gawk mawk nawk awk
3050do
3051 # Extract the first word of "$ac_prog", so it can be a program name with args.
3052set dummy $ac_prog; ac_word=$2
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054$as_echo_n "checking for $ac_word... " >&6; }
3055if ${ac_cv_prog_AWK+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057else
3058 if test -n "$AWK"; then
3059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_AWK="$ac_prog"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072done
3073 done
3074IFS=$as_save_IFS
3075
3076fi
3077fi
3078AWK=$ac_cv_prog_AWK
3079if test -n "$AWK"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3081$as_echo "$AWK" >&6; }
3082else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
3085fi
3086
3087
3088 test -n "$AWK" && break
3089done
3090
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3093set x ${MAKE-make}
3094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097else
3098 cat >conftest.make <<\_ACEOF
3099SHELL = /bin/sh
3100all:
3101 @echo '@@@%%%=$(MAKE)=@@@%%%'
3102_ACEOF
3103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3104case `${MAKE-make} -f conftest.make 2>/dev/null` in
3105 *@@@%%%=?*=@@@%%%*)
3106 eval ac_cv_prog_make_${ac_make}_set=yes;;
3107 *)
3108 eval ac_cv_prog_make_${ac_make}_set=no;;
3109esac
3110rm -f conftest.make
3111fi
3112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114$as_echo "yes" >&6; }
3115 SET_MAKE=
3116else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119 SET_MAKE="MAKE=${MAKE-make}"
3120fi
3121
3122rm -rf .tst 2>/dev/null
3123mkdir .tst 2>/dev/null
3124if test -d .tst; then
3125 am__leading_dot=.
3126else
3127 am__leading_dot=_
3128fi
3129rmdir .tst 2>/dev/null
3130
3131if test "`cd $srcdir && pwd`" != "`pwd`"; then
3132 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3133 # is not polluted with repeated "-I."
3134 am__isrc=' -I$(srcdir)'
3135 # test to see if srcdir already configured
3136 if test -f $srcdir/config.status; then
3137 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3138 fi
3139fi
3140
3141# test whether we have cygpath
3142if test -z "$CYGPATH_W"; then
3143 if (cygpath --version) >/dev/null 2>/dev/null; then
3144 CYGPATH_W='cygpath -w'
3145 else
3146 CYGPATH_W=echo
3147 fi
3148fi
3149
3150
3151# Define the identity of the package.
3152 PACKAGE='ctemplate'
3153 VERSION='2.3'
3154
3155
3156cat >>confdefs.h <<_ACEOF
3157#define PACKAGE "$PACKAGE"
3158_ACEOF
3159
3160
3161cat >>confdefs.h <<_ACEOF
3162#define VERSION "$VERSION"
3163_ACEOF
3164
3165# Some tools Automake needs.
3166
3167ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3168
3169
3170AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3171
3172
3173AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3174
3175
3176AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3177
3178
3179MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3180
3181# For better backward compatibility. To be removed once Automake 1.9.x
3182# dies out for good. For more background, see:
3183# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3184# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3185mkdir_p='$(MKDIR_P)'
3186
3187# We need awk for the "check" target. The system "awk" is bad on
3188# some platforms.
3189# Always define AMTAR for backward compatibility. Yes, it's still used
3190# in the wild :-( We should find a proper way to deprecate it ...
3191AMTAR='$${TAR-tar}'
3192
3193
3194# We'll loop over all known methods to create a tar archive until one works.
3195_am_tools='gnutar pax cpio none'
3196
3197am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3198
3199
3200
3201
3202
3203
3204# POSIX will say in a future version that running "rm -f" with no argument
3205# is OK; and we want to be able to make that assumption in our Makefile
3206# recipes. So use an aggressive probe to check that the usage we want is
3207# actually supported "in the wild" to an acceptable degree.
3208# See automake bug#10828.
3209# To make any issue more visible, cause the running configure to be aborted
3210# by default if the 'rm' program in use doesn't match our expectations; the
3211# user can still override this though.
3212if rm -f && rm -fr && rm -rf; then : OK; else
3213 cat >&2 <<'END'
3214Oops!
3215
3216Your 'rm' program seems unable to run without file operands specified
3217on the command line, even when the '-f' option is present. This is contrary
3218to the behaviour of most rm programs out there, and not conforming with
3219the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3220
3221Please tell bug-automake@gnu.org about your system, including the value
3222of your $PATH and any error possibly output before this message. This
3223can help us improve future automake versions.
3224
3225END
3226 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3227 echo 'Configuration will proceed anyway, since you have set the' >&2
3228 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3229 echo >&2
3230 else
3231 cat >&2 <<'END'
3232Aborting the configuration process, to ensure you take notice of the issue.
3233
3234You can download and install GNU coreutils to get an 'rm' implementation
3235that behaves properly: <http://www.gnu.org/software/coreutils/>.
3236
3237If you want to complete the configuration process using your problematic
3238'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3239to "yes", and re-run configure.
3240
3241END
3242 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3243 fi
3244fi
3245
3246ac_config_headers="$ac_config_headers src/config.h"
3247
3248
3249# Checks for programs.
3250ac_ext=cpp
3251ac_cpp='$CXXCPP $CPPFLAGS'
3252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255if test -z "$CXX"; then
3256 if test -n "$CCC"; then
3257 CXX=$CCC
3258 else
3259 if test -n "$ac_tool_prefix"; then
3260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3261 do
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
3266if ${ac_cv_prog_CXX+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268else
3269 if test -n "$CXX"; then
3270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283done
3284 done
3285IFS=$as_save_IFS
3286
3287fi
3288fi
3289CXX=$ac_cv_prog_CXX
3290if test -n "$CXX"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3292$as_echo "$CXX" >&6; }
3293else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298
3299 test -n "$CXX" && break
3300 done
3301fi
3302if test -z "$CXX"; then
3303 ac_ct_CXX=$CXX
3304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3305do
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307set dummy $ac_prog; ac_word=$2
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309$as_echo_n "checking for $ac_word... " >&6; }
3310if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312else
3313 if test -n "$ac_ct_CXX"; then
3314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_CXX="$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327done
3328 done
3329IFS=$as_save_IFS
3330
3331fi
3332fi
3333ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3334if test -n "$ac_ct_CXX"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3336$as_echo "$ac_ct_CXX" >&6; }
3337else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340fi
3341
3342
3343 test -n "$ac_ct_CXX" && break
3344done
3345
3346 if test "x$ac_ct_CXX" = x; then
3347 CXX="g++"
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350yes:)
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3353ac_tool_warned=yes ;;
3354esac
3355 CXX=$ac_ct_CXX
3356 fi
3357fi
3358
3359 fi
3360fi
3361# Provide some information about the compiler.
3362$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3363set X $ac_compile
3364ac_compiler=$2
3365for ac_option in --version -v -V -qversion; do
3366 { { ac_try="$ac_compiler $ac_option >&5"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3374 ac_status=$?
3375 if test -s conftest.err; then
3376 sed '10a\
3377... rest of stderr output deleted ...
3378 10q' conftest.err >conftest.er1
3379 cat conftest.er1 >&5
3380 fi
3381 rm -f conftest.er1 conftest.err
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }
3384done
3385
3386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h. */
3388
3389int
3390main ()
3391{
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397ac_clean_files_save=$ac_clean_files
3398ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3399# Try to create an executable without -o first, disregard a.out.
3400# It will help us diagnose broken compilers, and finding out an intuition
3401# of exeext.
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3403$as_echo_n "checking whether the C++ compiler works... " >&6; }
3404ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3405
3406# The possible output files:
3407ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3408
3409ac_rmfiles=
3410for ac_file in $ac_files
3411do
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415 esac
3416done
3417rm -f $ac_rmfiles
3418
3419if { { ac_try="$ac_link_default"
3420case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425$as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_link_default") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3431# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3432# in a Makefile. We should not override ac_cv_exeext if it was cached,
3433# so that the user can short-circuit this test for compilers unknown to
3434# Autoconf.
3435for ac_file in $ac_files ''
3436do
3437 test -f "$ac_file" || continue
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3440 ;;
3441 [ab].out )
3442 # We found the default executable, but exeext='' is most
3443 # certainly right.
3444 break;;
3445 *.* )
3446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3447 then :; else
3448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 fi
3450 # We set ac_cv_exeext here because the later test for it is not
3451 # safe: cross compilers may not add the suffix if given an `-o'
3452 # argument, so we may need to know it at that point already.
3453 # Even if this section looks crufty: it has the advantage of
3454 # actually working.
3455 break;;
3456 * )
3457 break;;
3458 esac
3459done
3460test "$ac_cv_exeext" = no && ac_cv_exeext=
3461
3462else
3463 ac_file=''
3464fi
3465if test -z "$ac_file"; then :
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468$as_echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error 77 "C++ compiler cannot create executables
3474See \`config.log' for more details" "$LINENO" 5; }
3475else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477$as_echo "yes" >&6; }
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3480$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3482$as_echo "$ac_file" >&6; }
3483ac_exeext=$ac_cv_exeext
3484
3485rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3486ac_clean_files=$ac_clean_files_save
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3488$as_echo_n "checking for suffix of executables... " >&6; }
3489if { { ac_try="$ac_link"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
3500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3501# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3502# work properly (i.e., refer to `conftest.exe'), while it won't with
3503# `rm'.
3504for ac_file in conftest.exe conftest conftest.*; do
3505 test -f "$ac_file" || continue
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 break;;
3510 * ) break;;
3511 esac
3512done
3513else
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3517See \`config.log' for more details" "$LINENO" 5; }
3518fi
3519rm -f conftest conftest$ac_cv_exeext
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3521$as_echo "$ac_cv_exeext" >&6; }
3522
3523rm -f conftest.$ac_ext
3524EXEEXT=$ac_cv_exeext
3525ac_exeext=$EXEEXT
3526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h. */
3528#include <stdio.h>
3529int
3530main ()
3531{
3532FILE *f = fopen ("conftest.out", "w");
3533 return ferror (f) || fclose (f) != 0;
3534
3535 ;
3536 return 0;
3537}
3538_ACEOF
3539ac_clean_files="$ac_clean_files conftest.out"
3540# Check that the compiler produces executables we can run. If not, either
3541# the compiler is broken, or we cross compile.
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3543$as_echo_n "checking whether we are cross compiling... " >&6; }
3544if test "$cross_compiling" != yes; then
3545 { { ac_try="$ac_link"
3546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_link") 2>&5
3553 ac_status=$?
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3556 if { ac_try='./conftest$ac_cv_exeext'
3557 { { case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562$as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_try") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; }; then
3567 cross_compiling=no
3568 else
3569 if test "$cross_compiling" = maybe; then
3570 cross_compiling=yes
3571 else
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574as_fn_error $? "cannot run C++ compiled programs.
3575If you meant to cross compile, use \`--host'.
3576See \`config.log' for more details" "$LINENO" 5; }
3577 fi
3578 fi
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3581$as_echo "$cross_compiling" >&6; }
3582
3583rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3584ac_clean_files=$ac_clean_files_save
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3586$as_echo_n "checking for suffix of object files... " >&6; }
3587if ${ac_cv_objext+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589else
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h. */
3592
3593int
3594main ()
3595{
3596
3597 ;
3598 return 0;
3599}
3600_ACEOF
3601rm -f conftest.o conftest.obj
3602if { { ac_try="$ac_compile"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608$as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compile") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 for ac_file in conftest.o conftest.obj conftest.*; do
3614 test -f "$ac_file" || continue;
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618 break;;
3619 esac
3620done
3621else
3622 $as_echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625{ { $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 $? "cannot compute suffix of object files: cannot compile
3628See \`config.log' for more details" "$LINENO" 5; }
3629fi
3630rm -f conftest.$ac_cv_objext conftest.$ac_ext
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3633$as_echo "$ac_cv_objext" >&6; }
3634OBJEXT=$ac_cv_objext
3635ac_objext=$OBJEXT
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3637$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3638if ${ac_cv_cxx_compiler_gnu+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643
3644int
3645main ()
3646{
3647#ifndef __GNUC__
3648 choke me
3649#endif
3650
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655if ac_fn_cxx_try_compile "$LINENO"; then :
3656 ac_compiler_gnu=yes
3657else
3658 ac_compiler_gnu=no
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3662
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3665$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3666if test $ac_compiler_gnu = yes; then
3667 GXX=yes
3668else
3669 GXX=
3670fi
3671ac_test_CXXFLAGS=${CXXFLAGS+set}
3672ac_save_CXXFLAGS=$CXXFLAGS
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3674$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3675if ${ac_cv_prog_cxx_g+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677else
3678 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3679 ac_cxx_werror_flag=yes
3680 ac_cv_prog_cxx_g=no
3681 CXXFLAGS="-g"
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h. */
3684
3685int
3686main ()
3687{
3688
3689 ;
3690 return 0;
3691}
3692_ACEOF
3693if ac_fn_cxx_try_compile "$LINENO"; then :
3694 ac_cv_prog_cxx_g=yes
3695else
3696 CXXFLAGS=""
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h. */
3699
3700int
3701main ()
3702{
3703
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708if ac_fn_cxx_try_compile "$LINENO"; then :
3709
3710else
3711 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3712 CXXFLAGS="-g"
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h. */
3715
3716int
3717main ()
3718{
3719
3720 ;
3721 return 0;
3722}
3723_ACEOF
3724if ac_fn_cxx_try_compile "$LINENO"; then :
3725 ac_cv_prog_cxx_g=yes
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730fi
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3735$as_echo "$ac_cv_prog_cxx_g" >&6; }
3736if test "$ac_test_CXXFLAGS" = set; then
3737 CXXFLAGS=$ac_save_CXXFLAGS
3738elif test $ac_cv_prog_cxx_g = yes; then
3739 if test "$GXX" = yes; then
3740 CXXFLAGS="-g -O2"
3741 else
3742 CXXFLAGS="-g"
3743 fi
3744else
3745 if test "$GXX" = yes; then
3746 CXXFLAGS="-O2"
3747 else
3748 CXXFLAGS=
3749 fi
3750fi
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756DEPDIR="${am__leading_dot}deps"
3757
3758ac_config_commands="$ac_config_commands depfiles"
3759
3760
3761am_make=${MAKE-make}
3762cat > confinc << 'END'
3763am__doit:
3764 @echo this is the am__doit target
3765.PHONY: am__doit
3766END
3767# If we don't find an include directive, just comment out the code.
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3769$as_echo_n "checking for style of include used by $am_make... " >&6; }
3770am__include="#"
3771am__quote=
3772_am_result=none
3773# First try GNU make style include.
3774echo "include confinc" > confmf
3775# Ignore all kinds of additional output from 'make'.
3776case `$am_make -s -f confmf 2> /dev/null` in #(
3777*the\ am__doit\ target*)
3778 am__include=include
3779 am__quote=
3780 _am_result=GNU
3781 ;;
3782esac
3783# Now try BSD make style include.
3784if test "$am__include" = "#"; then
3785 echo '.include "confinc"' > confmf
3786 case `$am_make -s -f confmf 2> /dev/null` in #(
3787 *the\ am__doit\ target*)
3788 am__include=.include
3789 am__quote="\""
3790 _am_result=BSD
3791 ;;
3792 esac
3793fi
3794
3795
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3797$as_echo "$_am_result" >&6; }
3798rm -f confinc confmf
3799
3800# Check whether --enable-dependency-tracking was given.
3801if test "${enable_dependency_tracking+set}" = set; then :
3802 enableval=$enable_dependency_tracking;
3803fi
3804
3805if test "x$enable_dependency_tracking" != xno; then
3806 am_depcomp="$ac_aux_dir/depcomp"
3807 AMDEPBACKSLASH='\'
3808 am__nodep='_no'
3809fi
3810 if test "x$enable_dependency_tracking" != xno; then
3811 AMDEP_TRUE=
3812 AMDEP_FALSE='#'
3813else
3814 AMDEP_TRUE='#'
3815 AMDEP_FALSE=
3816fi
3817
3818
3819
3820depcc="$CXX" am_compiler_list=
3821
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3823$as_echo_n "checking dependency style of $depcc... " >&6; }
3824if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826else
3827 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3828 # We make a subdir and do the tests there. Otherwise we can end up
3829 # making bogus files that we don't know about and never remove. For
3830 # instance it was reported that on HP-UX the gcc test will end up
3831 # making a dummy file named 'D' -- because '-MD' means "put the output
3832 # in D".
3833 rm -rf conftest.dir
3834 mkdir conftest.dir
3835 # Copy depcomp to subdir because otherwise we won't find it if we're
3836 # using a relative directory.
3837 cp "$am_depcomp" conftest.dir
3838 cd conftest.dir
3839 # We will build objects and dependencies in a subdirectory because
3840 # it helps to detect inapplicable dependency modes. For instance
3841 # both Tru64's cc and ICC support -MD to output dependencies as a
3842 # side effect of compilation, but ICC will put the dependencies in
3843 # the current directory while Tru64 will put them in the object
3844 # directory.
3845 mkdir sub
3846
3847 am_cv_CXX_dependencies_compiler_type=none
3848 if test "$am_compiler_list" = ""; then
3849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3850 fi
3851 am__universal=false
3852 case " $depcc " in #(
3853 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3854 esac
3855
3856 for depmode in $am_compiler_list; do
3857 # Setup a source with many dependencies, because some compilers
3858 # like to wrap large dependency lists on column 80 (with \), and
3859 # we should not choose a depcomp mode which is confused by this.
3860 #
3861 # We need to recreate these files for each test, as the compiler may
3862 # overwrite some of them when testing with obscure command lines.
3863 # This happens at least with the AIX C compiler.
3864 : > sub/conftest.c
3865 for i in 1 2 3 4 5 6; do
3866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3867 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3868 # Solaris 10 /bin/sh.
3869 echo '/* dummy */' > sub/conftst$i.h
3870 done
3871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3872
3873 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3874 # mode. It turns out that the SunPro C++ compiler does not properly
3875 # handle '-M -o', and we need to detect this. Also, some Intel
3876 # versions had trouble with output in subdirs.
3877 am__obj=sub/conftest.${OBJEXT-o}
3878 am__minus_obj="-o $am__obj"
3879 case $depmode in
3880 gcc)
3881 # This depmode causes a compiler race in universal mode.
3882 test "$am__universal" = false || continue
3883 ;;
3884 nosideeffect)
3885 # After this tag, mechanisms are not by side-effect, so they'll
3886 # only be used when explicitly requested.
3887 if test "x$enable_dependency_tracking" = xyes; then
3888 continue
3889 else
3890 break
3891 fi
3892 ;;
3893 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3894 # This compiler won't grok '-c -o', but also, the minuso test has
3895 # not run yet. These depmodes are late enough in the game, and
3896 # so weak that their functioning should not be impacted.
3897 am__obj=conftest.${OBJEXT-o}
3898 am__minus_obj=
3899 ;;
3900 none) break ;;
3901 esac
3902 if depmode=$depmode \
3903 source=sub/conftest.c object=$am__obj \
3904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3906 >/dev/null 2>conftest.err &&
3907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3911 # icc doesn't choke on unknown options, it will just issue warnings
3912 # or remarks (even with -Werror). So we grep stderr for any message
3913 # that says an option was ignored or not supported.
3914 # When given -MP, icc 7.0 and 7.1 complain thusly:
3915 # icc: Command line warning: ignoring option '-M'; no argument required
3916 # The diagnosis changed in icc 8.0:
3917 # icc: Command line remark: option '-MP' not supported
3918 if (grep 'ignoring option' conftest.err ||
3919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3920 am_cv_CXX_dependencies_compiler_type=$depmode
3921 break
3922 fi
3923 fi
3924 done
3925
3926 cd ..
3927 rm -rf conftest.dir
3928else
3929 am_cv_CXX_dependencies_compiler_type=none
3930fi
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3934$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3935CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3936
3937 if
3938 test "x$enable_dependency_tracking" != xno \
3939 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3940 am__fastdepCXX_TRUE=
3941 am__fastdepCXX_FALSE='#'
3942else
3943 am__fastdepCXX_TRUE='#'
3944 am__fastdepCXX_FALSE=
3945fi
3946
3947
3948ac_ext=c
3949ac_cpp='$CPP $CPPFLAGS'
3950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953if test -n "$ac_tool_prefix"; then
3954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3955set dummy ${ac_tool_prefix}gcc; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if ${ac_cv_prog_CC+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 if test -n "$CC"; then
3962 ac_cv_prog_CC="$CC" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976 done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981CC=$ac_cv_prog_CC
3982if test -n "$CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3984$as_echo "$CC" >&6; }
3985else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990
3991fi
3992if test -z "$ac_cv_prog_CC"; then
3993 ac_ct_CC=$CC
3994 # Extract the first word of "gcc", so it can be a program name with args.
3995set dummy gcc; ac_word=$2
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997$as_echo_n "checking for $ac_word... " >&6; }
3998if ${ac_cv_prog_ac_ct_CC+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000else
4001 if test -n "$ac_ct_CC"; then
4002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_ac_ct_CC="gcc"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016 done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021ac_ct_CC=$ac_cv_prog_ac_ct_CC
4022if test -n "$ac_ct_CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4024$as_echo "$ac_ct_CC" >&6; }
4025else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028fi
4029
4030 if test "x$ac_ct_CC" = x; then
4031 CC=""
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034yes:)
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037ac_tool_warned=yes ;;
4038esac
4039 CC=$ac_ct_CC
4040 fi
4041else
4042 CC="$ac_cv_prog_CC"
4043fi
4044
4045if test -z "$CC"; then
4046 if test -n "$ac_tool_prefix"; then
4047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4048set dummy ${ac_tool_prefix}cc; ac_word=$2
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if ${ac_cv_prog_CC+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 if test -n "$CC"; then
4055 ac_cv_prog_CC="$CC" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_CC="${ac_tool_prefix}cc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068done
4069 done
4070IFS=$as_save_IFS
4071
4072fi
4073fi
4074CC=$ac_cv_prog_CC
4075if test -n "$CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4077$as_echo "$CC" >&6; }
4078else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
4081fi
4082
4083
4084 fi
4085fi
4086if test -z "$CC"; then
4087 # Extract the first word of "cc", so it can be a program name with args.
4088set dummy cc; ac_word=$2
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090$as_echo_n "checking for $ac_word... " >&6; }
4091if ${ac_cv_prog_CC+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093else
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096else
4097 ac_prog_rejected=no
4098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099for as_dir in $PATH
4100do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4106 ac_prog_rejected=yes
4107 continue
4108 fi
4109 ac_cv_prog_CC="cc"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113done
4114 done
4115IFS=$as_save_IFS
4116
4117if test $ac_prog_rejected = yes; then
4118 # We found a bogon in the path, so make sure we never use it.
4119 set dummy $ac_cv_prog_CC
4120 shift
4121 if test $# != 0; then
4122 # We chose a different compiler from the bogus one.
4123 # However, it has the same basename, so the bogon will be chosen
4124 # first if we set CC to just the basename; use the full file name.
4125 shift
4126 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4127 fi
4128fi
4129fi
4130fi
4131CC=$ac_cv_prog_CC
4132if test -n "$CC"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4134$as_echo "$CC" >&6; }
4135else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137$as_echo "no" >&6; }
4138fi
4139
4140
4141fi
4142if test -z "$CC"; then
4143 if test -n "$ac_tool_prefix"; then
4144 for ac_prog in cl.exe
4145 do
4146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4147set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
4150if ${ac_cv_prog_CC+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152else
4153 if test -n "$CC"; then
4154 ac_cv_prog_CC="$CC" # Let the user override the test.
4155else
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167done
4168 done
4169IFS=$as_save_IFS
4170
4171fi
4172fi
4173CC=$ac_cv_prog_CC
4174if test -n "$CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176$as_echo "$CC" >&6; }
4177else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
4180fi
4181
4182
4183 test -n "$CC" && break
4184 done
4185fi
4186if test -z "$CC"; then
4187 ac_ct_CC=$CC
4188 for ac_prog in cl.exe
4189do
4190 # Extract the first word of "$ac_prog", so it can be a program name with args.
4191set dummy $ac_prog; ac_word=$2
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193$as_echo_n "checking for $ac_word... " >&6; }
4194if ${ac_cv_prog_ac_ct_CC+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 if test -n "$ac_ct_CC"; then
4198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_ac_ct_CC="$ac_prog"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4210 fi
4211done
4212 done
4213IFS=$as_save_IFS
4214
4215fi
4216fi
4217ac_ct_CC=$ac_cv_prog_ac_ct_CC
4218if test -n "$ac_ct_CC"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4220$as_echo "$ac_ct_CC" >&6; }
4221else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
4224fi
4225
4226
4227 test -n "$ac_ct_CC" && break
4228done
4229
4230 if test "x$ac_ct_CC" = x; then
4231 CC=""
4232 else
4233 case $cross_compiling:$ac_tool_warned in
4234yes:)
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4237ac_tool_warned=yes ;;
4238esac
4239 CC=$ac_ct_CC
4240 fi
4241fi
4242
4243fi
4244
4245
4246test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248as_fn_error $? "no acceptable C compiler found in \$PATH
4249See \`config.log' for more details" "$LINENO" 5; }
4250
4251# Provide some information about the compiler.
4252$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4253set X $ac_compile
4254ac_compiler=$2
4255for ac_option in --version -v -V -qversion; do
4256 { { ac_try="$ac_compiler $ac_option >&5"
4257case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262$as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4264 ac_status=$?
4265 if test -s conftest.err; then
4266 sed '10a\
4267... rest of stderr output deleted ...
4268 10q' conftest.err >conftest.er1
4269 cat conftest.er1 >&5
4270 fi
4271 rm -f conftest.er1 conftest.err
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }
4274done
4275
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4277$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4278if ${ac_cv_c_compiler_gnu+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280else
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283
4284int
4285main ()
4286{
4287#ifndef __GNUC__
4288 choke me
4289#endif
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_compiler_gnu=yes
4297else
4298 ac_compiler_gnu=no
4299fi
4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301ac_cv_c_compiler_gnu=$ac_compiler_gnu
4302
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4305$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4306if test $ac_compiler_gnu = yes; then
4307 GCC=yes
4308else
4309 GCC=
4310fi
4311ac_test_CFLAGS=${CFLAGS+set}
4312ac_save_CFLAGS=$CFLAGS
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4314$as_echo_n "checking whether $CC accepts -g... " >&6; }
4315if ${ac_cv_prog_cc_g+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317else
4318 ac_save_c_werror_flag=$ac_c_werror_flag
4319 ac_c_werror_flag=yes
4320 ac_cv_prog_cc_g=no
4321 CFLAGS="-g"
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h. */
4324
4325int
4326main ()
4327{
4328
4329 ;
4330 return 0;
4331}
4332_ACEOF
4333if ac_fn_c_try_compile "$LINENO"; then :
4334 ac_cv_prog_cc_g=yes
4335else
4336 CFLAGS=""
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h. */
4339
4340int
4341main ()
4342{
4343
4344 ;
4345 return 0;
4346}
4347_ACEOF
4348if ac_fn_c_try_compile "$LINENO"; then :
4349
4350else
4351 ac_c_werror_flag=$ac_save_c_werror_flag
4352 CFLAGS="-g"
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h. */
4355
4356int
4357main ()
4358{
4359
4360 ;
4361 return 0;
4362}
4363_ACEOF
4364if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_cv_prog_cc_g=yes
4366fi
4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368fi
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 ac_c_werror_flag=$ac_save_c_werror_flag
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4375$as_echo "$ac_cv_prog_cc_g" >&6; }
4376if test "$ac_test_CFLAGS" = set; then
4377 CFLAGS=$ac_save_CFLAGS
4378elif test $ac_cv_prog_cc_g = yes; then
4379 if test "$GCC" = yes; then
4380 CFLAGS="-g -O2"
4381 else
4382 CFLAGS="-g"
4383 fi
4384else
4385 if test "$GCC" = yes; then
4386 CFLAGS="-O2"
4387 else
4388 CFLAGS=
4389 fi
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4392$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4393if ${ac_cv_prog_cc_c89+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395else
4396 ac_cv_prog_cc_c89=no
4397ac_save_CC=$CC
4398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h. */
4400#include <stdarg.h>
4401#include <stdio.h>
4402struct stat;
4403/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4404struct buf { int x; };
4405FILE * (*rcsopen) (struct buf *, struct stat *, int);
4406static char *e (p, i)
4407 char **p;
4408 int i;
4409{
4410 return p[i];
4411}
4412static char *f (char * (*g) (char **, int), char **p, ...)
4413{
4414 char *s;
4415 va_list v;
4416 va_start (v,p);
4417 s = g (p, va_arg (v,int));
4418 va_end (v);
4419 return s;
4420}
4421
4422/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4423 function prototypes and stuff, but not '\xHH' hex character constants.
4424 These don't provoke an error unfortunately, instead are silently treated
4425 as 'x'. The following induces an error, until -std is added to get
4426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4427 array size at least. It's necessary to write '\x00'==0 to get something
4428 that's true only with -std. */
4429int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4430
4431/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4432 inside strings and character constants. */
4433#define FOO(x) 'x'
4434int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4435
4436int test (int i, double x);
4437struct s1 {int (*f) (int a);};
4438struct s2 {int (*f) (double a);};
4439int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4440int argc;
4441char **argv;
4442int
4443main ()
4444{
4445return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4446 ;
4447 return 0;
4448}
4449_ACEOF
4450for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4452do
4453 CC="$ac_save_CC $ac_arg"
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 ac_cv_prog_cc_c89=$ac_arg
4456fi
4457rm -f core conftest.err conftest.$ac_objext
4458 test "x$ac_cv_prog_cc_c89" != "xno" && break
4459done
4460rm -f conftest.$ac_ext
4461CC=$ac_save_CC
4462
4463fi
4464# AC_CACHE_VAL
4465case "x$ac_cv_prog_cc_c89" in
4466 x)
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4468$as_echo "none needed" >&6; } ;;
4469 xno)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4471$as_echo "unsupported" >&6; } ;;
4472 *)
4473 CC="$CC $ac_cv_prog_cc_c89"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4475$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4476esac
4477if test "x$ac_cv_prog_cc_c89" != xno; then :
4478
4479fi
4480
4481ac_ext=c
4482ac_cpp='$CPP $CPPFLAGS'
4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486
4487ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4493$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4494if ${am_cv_prog_cc_c_o+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496else
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h. */
4499
4500int
4501main ()
4502{
4503
4504 ;
4505 return 0;
4506}
4507_ACEOF
4508 # Make sure it works both with $CC and with simple cc.
4509 # Following AC_PROG_CC_C_O, we do the test twice because some
4510 # compilers refuse to overwrite an existing .o file with -o,
4511 # though they will create one.
4512 am_cv_prog_cc_c_o=yes
4513 for am_i in 1 2; do
4514 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4515 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } \
4519 && test -f conftest2.$ac_objext; then
4520 : OK
4521 else
4522 am_cv_prog_cc_c_o=no
4523 break
4524 fi
4525 done
4526 rm -f core conftest*
4527 unset am_i
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4530$as_echo "$am_cv_prog_cc_c_o" >&6; }
4531if test "$am_cv_prog_cc_c_o" != yes; then
4532 # Losing compiler, so override with the script.
4533 # FIXME: It is wrong to rewrite CC.
4534 # But if we don't then we get into trouble of one sort or another.
4535 # A longer-term fix would be to have automake use am__CC in this case,
4536 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4537 CC="$am_aux_dir/compile $CC"
4538fi
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
4545
4546depcc="$CC" am_compiler_list=
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4549$as_echo_n "checking dependency style of $depcc... " >&6; }
4550if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552else
4553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4554 # We make a subdir and do the tests there. Otherwise we can end up
4555 # making bogus files that we don't know about and never remove. For
4556 # instance it was reported that on HP-UX the gcc test will end up
4557 # making a dummy file named 'D' -- because '-MD' means "put the output
4558 # in D".
4559 rm -rf conftest.dir
4560 mkdir conftest.dir
4561 # Copy depcomp to subdir because otherwise we won't find it if we're
4562 # using a relative directory.
4563 cp "$am_depcomp" conftest.dir
4564 cd conftest.dir
4565 # We will build objects and dependencies in a subdirectory because
4566 # it helps to detect inapplicable dependency modes. For instance
4567 # both Tru64's cc and ICC support -MD to output dependencies as a
4568 # side effect of compilation, but ICC will put the dependencies in
4569 # the current directory while Tru64 will put them in the object
4570 # directory.
4571 mkdir sub
4572
4573 am_cv_CC_dependencies_compiler_type=none
4574 if test "$am_compiler_list" = ""; then
4575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4576 fi
4577 am__universal=false
4578 case " $depcc " in #(
4579 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4580 esac
4581
4582 for depmode in $am_compiler_list; do
4583 # Setup a source with many dependencies, because some compilers
4584 # like to wrap large dependency lists on column 80 (with \), and
4585 # we should not choose a depcomp mode which is confused by this.
4586 #
4587 # We need to recreate these files for each test, as the compiler may
4588 # overwrite some of them when testing with obscure command lines.
4589 # This happens at least with the AIX C compiler.
4590 : > sub/conftest.c
4591 for i in 1 2 3 4 5 6; do
4592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4593 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4594 # Solaris 10 /bin/sh.
4595 echo '/* dummy */' > sub/conftst$i.h
4596 done
4597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4598
4599 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4600 # mode. It turns out that the SunPro C++ compiler does not properly
4601 # handle '-M -o', and we need to detect this. Also, some Intel
4602 # versions had trouble with output in subdirs.
4603 am__obj=sub/conftest.${OBJEXT-o}
4604 am__minus_obj="-o $am__obj"
4605 case $depmode in
4606 gcc)
4607 # This depmode causes a compiler race in universal mode.
4608 test "$am__universal" = false || continue
4609 ;;
4610 nosideeffect)
4611 # After this tag, mechanisms are not by side-effect, so they'll
4612 # only be used when explicitly requested.
4613 if test "x$enable_dependency_tracking" = xyes; then
4614 continue
4615 else
4616 break
4617 fi
4618 ;;
4619 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4620 # This compiler won't grok '-c -o', but also, the minuso test has
4621 # not run yet. These depmodes are late enough in the game, and
4622 # so weak that their functioning should not be impacted.
4623 am__obj=conftest.${OBJEXT-o}
4624 am__minus_obj=
4625 ;;
4626 none) break ;;
4627 esac
4628 if depmode=$depmode \
4629 source=sub/conftest.c object=$am__obj \
4630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4631 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4632 >/dev/null 2>conftest.err &&
4633 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4634 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4635 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4636 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4637 # icc doesn't choke on unknown options, it will just issue warnings
4638 # or remarks (even with -Werror). So we grep stderr for any message
4639 # that says an option was ignored or not supported.
4640 # When given -MP, icc 7.0 and 7.1 complain thusly:
4641 # icc: Command line warning: ignoring option '-M'; no argument required
4642 # The diagnosis changed in icc 8.0:
4643 # icc: Command line remark: option '-MP' not supported
4644 if (grep 'ignoring option' conftest.err ||
4645 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4646 am_cv_CC_dependencies_compiler_type=$depmode
4647 break
4648 fi
4649 fi
4650 done
4651
4652 cd ..
4653 rm -rf conftest.dir
4654else
4655 am_cv_CC_dependencies_compiler_type=none
4656fi
4657
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4660$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4661CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4662
4663 if
4664 test "x$enable_dependency_tracking" != xno \
4665 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4666 am__fastdepCC_TRUE=
4667 am__fastdepCC_FALSE='#'
4668else
4669 am__fastdepCC_TRUE='#'
4670 am__fastdepCC_FALSE=
4671fi
4672
4673
4674
4675ac_ext=c
4676ac_cpp='$CPP $CPPFLAGS'
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4681$as_echo_n "checking how to run the C preprocessor... " >&6; }
4682# On Suns, sometimes $CPP names a directory.
4683if test -n "$CPP" && test -d "$CPP"; then
4684 CPP=
4685fi
4686if test -z "$CPP"; then
4687 if ${ac_cv_prog_CPP+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 # Double quotes because CPP needs to be expanded
4691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4692 do
4693 ac_preproc_ok=false
4694for ac_c_preproc_warn_flag in '' yes
4695do
4696 # Use a header file that comes with gcc, so configuring glibc
4697 # with a fresh cross-compiler works.
4698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699 # <limits.h> exists even on freestanding compilers.
4700 # On the NeXT, cc -E runs the code through the compiler's parser,
4701 # not just through cpp. "Syntax error" is here to catch this case.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h. */
4704#ifdef __STDC__
4705# include <limits.h>
4706#else
4707# include <assert.h>
4708#endif
4709 Syntax error
4710_ACEOF
4711if ac_fn_c_try_cpp "$LINENO"; then :
4712
4713else
4714 # Broken: fails on valid input.
4715continue
4716fi
4717rm -f conftest.err conftest.i conftest.$ac_ext
4718
4719 # OK, works on sane cases. Now check whether nonexistent headers
4720 # can be detected and how.
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
4723#include <ac_nonexistent.h>
4724_ACEOF
4725if ac_fn_c_try_cpp "$LINENO"; then :
4726 # Broken: success on invalid input.
4727continue
4728else
4729 # Passes both tests.
4730ac_preproc_ok=:
4731break
4732fi
4733rm -f conftest.err conftest.i conftest.$ac_ext
4734
4735done
4736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4737rm -f conftest.i conftest.err conftest.$ac_ext
4738if $ac_preproc_ok; then :
4739 break
4740fi
4741
4742 done
4743 ac_cv_prog_CPP=$CPP
4744
4745fi
4746 CPP=$ac_cv_prog_CPP
4747else
4748 ac_cv_prog_CPP=$CPP
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4751$as_echo "$CPP" >&6; }
4752ac_preproc_ok=false
4753for ac_c_preproc_warn_flag in '' yes
4754do
4755 # Use a header file that comes with gcc, so configuring glibc
4756 # with a fresh cross-compiler works.
4757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4758 # <limits.h> exists even on freestanding compilers.
4759 # On the NeXT, cc -E runs the code through the compiler's parser,
4760 # not just through cpp. "Syntax error" is here to catch this case.
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h. */
4763#ifdef __STDC__
4764# include <limits.h>
4765#else
4766# include <assert.h>
4767#endif
4768 Syntax error
4769_ACEOF
4770if ac_fn_c_try_cpp "$LINENO"; then :
4771
4772else
4773 # Broken: fails on valid input.
4774continue
4775fi
4776rm -f conftest.err conftest.i conftest.$ac_ext
4777
4778 # OK, works on sane cases. Now check whether nonexistent headers
4779 # can be detected and how.
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h. */
4782#include <ac_nonexistent.h>
4783_ACEOF
4784if ac_fn_c_try_cpp "$LINENO"; then :
4785 # Broken: success on invalid input.
4786continue
4787else
4788 # Passes both tests.
4789ac_preproc_ok=:
4790break
4791fi
4792rm -f conftest.err conftest.i conftest.$ac_ext
4793
4794done
4795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4796rm -f conftest.i conftest.err conftest.$ac_ext
4797if $ac_preproc_ok; then :
4798
4799else
4800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4802as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4803See \`config.log' for more details" "$LINENO" 5; }
4804fi
4805
4806ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812 if test "$GCC" = yes; then
4813 GCC_TRUE=
4814 GCC_FALSE='#'
4815else
4816 GCC_TRUE='#'
4817 GCC_FALSE=
4818fi
4819 # let the Makefile know if we're gcc
4820
4821# MinGW uses autoconf, but also needs the windows shim routines
4822# (since it doesn't have its own support for, say, pthreads).
4823# This requires us to #include a special header file, and also to
4824# link in some windows versions of .o's instead of the unix versions.
4825
4826case $host_os in
4827 *mingw*)
4828 # Disabling fast install keeps libtool from creating wrapper scripts
4829 # around the executables it builds. Such scripts have caused failures on
4830 # MinGW. Using this option means an extra link step is executed during
4831 # "make install".
4832 # Check whether --enable-fast-install was given.
4833if test "${enable_fast_install+set}" = set; then :
4834 enableval=$enable_fast_install; p=${PACKAGE-default}
4835 case $enableval in
4836 yes) enable_fast_install=yes ;;
4837 no) enable_fast_install=no ;;
4838 *)
4839 enable_fast_install=no
4840 # Look at the argument we got. We use all the common list separators.
4841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4842 for pkg in $enableval; do
4843 IFS="$lt_save_ifs"
4844 if test "X$pkg" = "X$p"; then
4845 enable_fast_install=yes
4846 fi
4847 done
4848 IFS="$lt_save_ifs"
4849 ;;
4850 esac
4851else
4852 enable_fast_install=no
4853fi
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 ;;
4864 *)
4865 # Check whether --enable-fast-install was given.
4866if test "${enable_fast_install+set}" = set; then :
4867 enableval=$enable_fast_install; p=${PACKAGE-default}
4868 case $enableval in
4869 yes) enable_fast_install=yes ;;
4870 no) enable_fast_install=no ;;
4871 *)
4872 enable_fast_install=no
4873 # Look at the argument we got. We use all the common list separators.
4874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4875 for pkg in $enableval; do
4876 IFS="$lt_save_ifs"
4877 if test "X$pkg" = "X$p"; then
4878 enable_fast_install=yes
4879 fi
4880 done
4881 IFS="$lt_save_ifs"
4882 ;;
4883 esac
4884else
4885 enable_fast_install=yes
4886fi
4887
4888
4889
4890
4891
4892
4893 ;;
4894esac
4895 if expr $host : '.*-mingw' >/dev/null 2>&1; then
4896 MINGW_TRUE=
4897 MINGW_FALSE='#'
4898else
4899 MINGW_TRUE='#'
4900 MINGW_FALSE=
4901fi
4902
4903
4904# Uncomment this if you'll be exporting libraries (.so's)
4905case `pwd` in
4906 *\ * | *\ *)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4908$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4909esac
4910
4911
4912
4913macro_version='2.2.6b'
4914macro_revision='1.3017'
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928ltmain="$ac_aux_dir/ltmain.sh"
4929
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4931$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4932if ${ac_cv_path_SED+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934else
4935 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4936 for ac_i in 1 2 3 4 5 6 7; do
4937 ac_script="$ac_script$as_nl$ac_script"
4938 done
4939 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4940 { ac_script=; unset ac_script;}
4941 if test -z "$SED"; then
4942 ac_path_SED_found=false
4943 # Loop through the user's path and test for each of PROGNAME-LIST
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_prog in sed gsed; do
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4952 as_fn_executable_p "$ac_path_SED" || continue
4953# Check for GNU ac_path_SED and select it if it is found.
4954 # Check for GNU $ac_path_SED
4955case `"$ac_path_SED" --version 2>&1` in
4956*GNU*)
4957 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4958*)
4959 ac_count=0
4960 $as_echo_n 0123456789 >"conftest.in"
4961 while :
4962 do
4963 cat "conftest.in" "conftest.in" >"conftest.tmp"
4964 mv "conftest.tmp" "conftest.in"
4965 cp "conftest.in" "conftest.nl"
4966 $as_echo '' >> "conftest.nl"
4967 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4969 as_fn_arith $ac_count + 1 && ac_count=$as_val
4970 if test $ac_count -gt ${ac_path_SED_max-0}; then
4971 # Best one so far, save it but keep looking for a better one
4972 ac_cv_path_SED="$ac_path_SED"
4973 ac_path_SED_max=$ac_count
4974 fi
4975 # 10*(2^10) chars as input seems more than enough
4976 test $ac_count -gt 10 && break
4977 done
4978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979esac
4980
4981 $ac_path_SED_found && break 3
4982 done
4983 done
4984 done
4985IFS=$as_save_IFS
4986 if test -z "$ac_cv_path_SED"; then
4987 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4988 fi
4989else
4990 ac_cv_path_SED=$SED
4991fi
4992
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4995$as_echo "$ac_cv_path_SED" >&6; }
4996 SED="$ac_cv_path_SED"
4997 rm -f conftest.sed
4998
4999test -z "$SED" && SED=sed
5000Xsed="$SED -e 1s/^X//"
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5013$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5014if ${ac_cv_path_GREP+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016else
5017 if test -z "$GREP"; then
5018 ac_path_GREP_found=false
5019 # Loop through the user's path and test for each of PROGNAME-LIST
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_prog in grep ggrep; do
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5028 as_fn_executable_p "$ac_path_GREP" || continue
5029# Check for GNU ac_path_GREP and select it if it is found.
5030 # Check for GNU $ac_path_GREP
5031case `"$ac_path_GREP" --version 2>&1` in
5032*GNU*)
5033 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5034*)
5035 ac_count=0
5036 $as_echo_n 0123456789 >"conftest.in"
5037 while :
5038 do
5039 cat "conftest.in" "conftest.in" >"conftest.tmp"
5040 mv "conftest.tmp" "conftest.in"
5041 cp "conftest.in" "conftest.nl"
5042 $as_echo 'GREP' >> "conftest.nl"
5043 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045 as_fn_arith $ac_count + 1 && ac_count=$as_val
5046 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5047 # Best one so far, save it but keep looking for a better one
5048 ac_cv_path_GREP="$ac_path_GREP"
5049 ac_path_GREP_max=$ac_count
5050 fi
5051 # 10*(2^10) chars as input seems more than enough
5052 test $ac_count -gt 10 && break
5053 done
5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055esac
5056
5057 $ac_path_GREP_found && break 3
5058 done
5059 done
5060 done
5061IFS=$as_save_IFS
5062 if test -z "$ac_cv_path_GREP"; then
5063 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064 fi
5065else
5066 ac_cv_path_GREP=$GREP
5067fi
5068
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5071$as_echo "$ac_cv_path_GREP" >&6; }
5072 GREP="$ac_cv_path_GREP"
5073
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5076$as_echo_n "checking for egrep... " >&6; }
5077if ${ac_cv_path_EGREP+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079else
5080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5081 then ac_cv_path_EGREP="$GREP -E"
5082 else
5083 if test -z "$EGREP"; then
5084 ac_path_EGREP_found=false
5085 # Loop through the user's path and test for each of PROGNAME-LIST
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_prog in egrep; do
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5094 as_fn_executable_p "$ac_path_EGREP" || continue
5095# Check for GNU ac_path_EGREP and select it if it is found.
5096 # Check for GNU $ac_path_EGREP
5097case `"$ac_path_EGREP" --version 2>&1` in
5098*GNU*)
5099 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5100*)
5101 ac_count=0
5102 $as_echo_n 0123456789 >"conftest.in"
5103 while :
5104 do
5105 cat "conftest.in" "conftest.in" >"conftest.tmp"
5106 mv "conftest.tmp" "conftest.in"
5107 cp "conftest.in" "conftest.nl"
5108 $as_echo 'EGREP' >> "conftest.nl"
5109 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5111 as_fn_arith $ac_count + 1 && ac_count=$as_val
5112 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5113 # Best one so far, save it but keep looking for a better one
5114 ac_cv_path_EGREP="$ac_path_EGREP"
5115 ac_path_EGREP_max=$ac_count
5116 fi
5117 # 10*(2^10) chars as input seems more than enough
5118 test $ac_count -gt 10 && break
5119 done
5120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5121esac
5122
5123 $ac_path_EGREP_found && break 3
5124 done
5125 done
5126 done
5127IFS=$as_save_IFS
5128 if test -z "$ac_cv_path_EGREP"; then
5129 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5130 fi
5131else
5132 ac_cv_path_EGREP=$EGREP
5133fi
5134
5135 fi
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5138$as_echo "$ac_cv_path_EGREP" >&6; }
5139 EGREP="$ac_cv_path_EGREP"
5140
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5143$as_echo_n "checking for fgrep... " >&6; }
5144if ${ac_cv_path_FGREP+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146else
5147 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5148 then ac_cv_path_FGREP="$GREP -F"
5149 else
5150 if test -z "$FGREP"; then
5151 ac_path_FGREP_found=false
5152 # Loop through the user's path and test for each of PROGNAME-LIST
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_prog in fgrep; do
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5161 as_fn_executable_p "$ac_path_FGREP" || continue
5162# Check for GNU ac_path_FGREP and select it if it is found.
5163 # Check for GNU $ac_path_FGREP
5164case `"$ac_path_FGREP" --version 2>&1` in
5165*GNU*)
5166 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5167*)
5168 ac_count=0
5169 $as_echo_n 0123456789 >"conftest.in"
5170 while :
5171 do
5172 cat "conftest.in" "conftest.in" >"conftest.tmp"
5173 mv "conftest.tmp" "conftest.in"
5174 cp "conftest.in" "conftest.nl"
5175 $as_echo 'FGREP' >> "conftest.nl"
5176 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5178 as_fn_arith $ac_count + 1 && ac_count=$as_val
5179 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5180 # Best one so far, save it but keep looking for a better one
5181 ac_cv_path_FGREP="$ac_path_FGREP"
5182 ac_path_FGREP_max=$ac_count
5183 fi
5184 # 10*(2^10) chars as input seems more than enough
5185 test $ac_count -gt 10 && break
5186 done
5187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5188esac
5189
5190 $ac_path_FGREP_found && break 3
5191 done
5192 done
5193 done
5194IFS=$as_save_IFS
5195 if test -z "$ac_cv_path_FGREP"; then
5196 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5197 fi
5198else
5199 ac_cv_path_FGREP=$FGREP
5200fi
5201
5202 fi
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5205$as_echo "$ac_cv_path_FGREP" >&6; }
5206 FGREP="$ac_cv_path_FGREP"
5207
5208
5209test -z "$GREP" && GREP=grep
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229# Check whether --with-gnu-ld was given.
5230if test "${with_gnu_ld+set}" = set; then :
5231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5232else
5233 with_gnu_ld=no
5234fi
5235
5236ac_prog=ld
5237if test "$GCC" = yes; then
5238 # Check if gcc -print-prog-name=ld gives a path.
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5240$as_echo_n "checking for ld used by $CC... " >&6; }
5241 case $host in
5242 *-*-mingw*)
5243 # gcc leaves a trailing carriage return which upsets mingw
5244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5245 *)
5246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5247 esac
5248 case $ac_prog in
5249 # Accept absolute paths.
5250 [\\/]* | ?:[\\/]*)
5251 re_direlt='/[^/][^/]*/\.\./'
5252 # Canonicalize the pathname of ld
5253 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5254 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5255 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5256 done
5257 test -z "$LD" && LD="$ac_prog"
5258 ;;
5259 "")
5260 # If it fails, then pretend we aren't using GCC.
5261 ac_prog=ld
5262 ;;
5263 *)
5264 # If it is relative, then search for the first ld in PATH.
5265 with_gnu_ld=unknown
5266 ;;
5267 esac
5268elif test "$with_gnu_ld" = yes; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5270$as_echo_n "checking for GNU ld... " >&6; }
5271else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5273$as_echo_n "checking for non-GNU ld... " >&6; }
5274fi
5275if ${lt_cv_path_LD+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277else
5278 if test -z "$LD"; then
5279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5280 for ac_dir in $PATH; do
5281 IFS="$lt_save_ifs"
5282 test -z "$ac_dir" && ac_dir=.
5283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5284 lt_cv_path_LD="$ac_dir/$ac_prog"
5285 # Check to see if the program is GNU ld. I'd rather use --version,
5286 # but apparently some variants of GNU ld only accept -v.
5287 # Break only if it was the GNU/non-GNU ld that we prefer.
5288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5289 *GNU* | *'with BFD'*)
5290 test "$with_gnu_ld" != no && break
5291 ;;
5292 *)
5293 test "$with_gnu_ld" != yes && break
5294 ;;
5295 esac
5296 fi
5297 done
5298 IFS="$lt_save_ifs"
5299else
5300 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5301fi
5302fi
5303
5304LD="$lt_cv_path_LD"
5305if test -n "$LD"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5307$as_echo "$LD" >&6; }
5308else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310$as_echo "no" >&6; }
5311fi
5312test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5314$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5315if ${lt_cv_prog_gnu_ld+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317else
5318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5319case `$LD -v 2>&1 </dev/null` in
5320*GNU* | *'with BFD'*)
5321 lt_cv_prog_gnu_ld=yes
5322 ;;
5323*)
5324 lt_cv_prog_gnu_ld=no
5325 ;;
5326esac
5327fi
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5329$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5330with_gnu_ld=$lt_cv_prog_gnu_ld
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5341$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5342if ${lt_cv_path_NM+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344else
5345 if test -n "$NM"; then
5346 # Let the user override the test.
5347 lt_cv_path_NM="$NM"
5348else
5349 lt_nm_to_check="${ac_tool_prefix}nm"
5350 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5351 lt_nm_to_check="$lt_nm_to_check nm"
5352 fi
5353 for lt_tmp_nm in $lt_nm_to_check; do
5354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5355 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5356 IFS="$lt_save_ifs"
5357 test -z "$ac_dir" && ac_dir=.
5358 tmp_nm="$ac_dir/$lt_tmp_nm"
5359 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5360 # Check to see if the nm accepts a BSD-compat flag.
5361 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5362 # nm: unknown option "B" ignored
5363 # Tru64's nm complains that /dev/null is an invalid object file
5364 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5365 */dev/null* | *'Invalid file or object type'*)
5366 lt_cv_path_NM="$tmp_nm -B"
5367 break
5368 ;;
5369 *)
5370 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5371 */dev/null*)
5372 lt_cv_path_NM="$tmp_nm -p"
5373 break
5374 ;;
5375 *)
5376 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5377 continue # so that we can try to find one that supports BSD flags
5378 ;;
5379 esac
5380 ;;
5381 esac
5382 fi
5383 done
5384 IFS="$lt_save_ifs"
5385 done
5386 : ${lt_cv_path_NM=no}
5387fi
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5390$as_echo "$lt_cv_path_NM" >&6; }
5391if test "$lt_cv_path_NM" != "no"; then
5392 NM="$lt_cv_path_NM"
5393else
5394 # Didn't find any BSD compatible name lister, look for dumpbin.
5395 if test -n "$ac_tool_prefix"; then
5396 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5397 do
5398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401$as_echo_n "checking for $ac_word... " >&6; }
5402if ${ac_cv_prog_DUMPBIN+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404else
5405 if test -n "$DUMPBIN"; then
5406 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419done
5420 done
5421IFS=$as_save_IFS
5422
5423fi
5424fi
5425DUMPBIN=$ac_cv_prog_DUMPBIN
5426if test -n "$DUMPBIN"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5428$as_echo "$DUMPBIN" >&6; }
5429else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432fi
5433
5434
5435 test -n "$DUMPBIN" && break
5436 done
5437fi
5438if test -z "$DUMPBIN"; then
5439 ac_ct_DUMPBIN=$DUMPBIN
5440 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5441do
5442 # Extract the first word of "$ac_prog", so it can be a program name with args.
5443set dummy $ac_prog; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448else
5449 if test -n "$ac_ct_DUMPBIN"; then
5450 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463done
5464 done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5470if test -n "$ac_ct_DUMPBIN"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5472$as_echo "$ac_ct_DUMPBIN" >&6; }
5473else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477
5478
5479 test -n "$ac_ct_DUMPBIN" && break
5480done
5481
5482 if test "x$ac_ct_DUMPBIN" = x; then
5483 DUMPBIN=":"
5484 else
5485 case $cross_compiling:$ac_tool_warned in
5486yes:)
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489ac_tool_warned=yes ;;
5490esac
5491 DUMPBIN=$ac_ct_DUMPBIN
5492 fi
5493fi
5494
5495
5496 if test "$DUMPBIN" != ":"; then
5497 NM="$DUMPBIN"
5498 fi
5499fi
5500test -z "$NM" && NM=nm
5501
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5508$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5509if ${lt_cv_nm_interface+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 lt_cv_nm_interface="BSD nm"
5513 echo "int some_variable = 0;" > conftest.$ac_ext
5514 (eval echo "\"\$as_me:5514: $ac_compile\"" >&5)
5515 (eval "$ac_compile" 2>conftest.err)
5516 cat conftest.err >&5
5517 (eval echo "\"\$as_me:5517: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5518 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5519 cat conftest.err >&5
5520 (eval echo "\"\$as_me:5520: output\"" >&5)
5521 cat conftest.out >&5
5522 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5523 lt_cv_nm_interface="MS dumpbin"
5524 fi
5525 rm -f conftest*
5526fi
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5528$as_echo "$lt_cv_nm_interface" >&6; }
5529
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5531$as_echo_n "checking whether ln -s works... " >&6; }
5532LN_S=$as_ln_s
5533if test "$LN_S" = "ln -s"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5535$as_echo "yes" >&6; }
5536else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5538$as_echo "no, using $LN_S" >&6; }
5539fi
5540
5541# find the maximum length of command line arguments
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5543$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5544if ${lt_cv_sys_max_cmd_len+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546else
5547 i=0
5548 teststring="ABCD"
5549
5550 case $build_os in
5551 msdosdjgpp*)
5552 # On DJGPP, this test can blow up pretty badly due to problems in libc
5553 # (any single argument exceeding 2000 bytes causes a buffer overrun
5554 # during glob expansion). Even if it were fixed, the result of this
5555 # check would be larger than it should be.
5556 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5557 ;;
5558
5559 gnu*)
5560 # Under GNU Hurd, this test is not required because there is
5561 # no limit to the length of command line arguments.
5562 # Libtool will interpret -1 as no limit whatsoever
5563 lt_cv_sys_max_cmd_len=-1;
5564 ;;
5565
5566 cygwin* | mingw* | cegcc*)
5567 # On Win9x/ME, this test blows up -- it succeeds, but takes
5568 # about 5 minutes as the teststring grows exponentially.
5569 # Worse, since 9x/ME are not pre-emptively multitasking,
5570 # you end up with a "frozen" computer, even though with patience
5571 # the test eventually succeeds (with a max line length of 256k).
5572 # Instead, let's just punt: use the minimum linelength reported by
5573 # all of the supported platforms: 8192 (on NT/2K/XP).
5574 lt_cv_sys_max_cmd_len=8192;
5575 ;;
5576
5577 amigaos*)
5578 # On AmigaOS with pdksh, this test takes hours, literally.
5579 # So we just punt and use a minimum line length of 8192.
5580 lt_cv_sys_max_cmd_len=8192;
5581 ;;
5582
5583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5584 # This has been around since 386BSD, at least. Likely further.
5585 if test -x /sbin/sysctl; then
5586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5587 elif test -x /usr/sbin/sysctl; then
5588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5589 else
5590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5591 fi
5592 # And add a safety zone
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5595 ;;
5596
5597 interix*)
5598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5599 lt_cv_sys_max_cmd_len=196608
5600 ;;
5601
5602 osf*)
5603 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5604 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5605 # nice to cause kernel panics so lets avoid the loop below.
5606 # First set a reasonable default.
5607 lt_cv_sys_max_cmd_len=16384
5608 #
5609 if test -x /sbin/sysconfig; then
5610 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5611 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5612 esac
5613 fi
5614 ;;
5615 sco3.2v5*)
5616 lt_cv_sys_max_cmd_len=102400
5617 ;;
5618 sysv5* | sco5v6* | sysv4.2uw2*)
5619 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5620 if test -n "$kargmax"; then
5621 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5622 else
5623 lt_cv_sys_max_cmd_len=32768
5624 fi
5625 ;;
5626 *)
5627 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5628 if test -n "$lt_cv_sys_max_cmd_len"; then
5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5631 else
5632 # Make teststring a little bigger before we do anything with it.
5633 # a 1K string should be a reasonable start.
5634 for i in 1 2 3 4 5 6 7 8 ; do
5635 teststring=$teststring$teststring
5636 done
5637 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5638 # If test is not a shell built-in, we'll probably end up computing a
5639 # maximum length that is only half of the actual maximum length, but
5640 # we can't tell.
5641 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5642 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5643 test $i != 17 # 1/2 MB should be enough
5644 do
5645 i=`expr $i + 1`
5646 teststring=$teststring$teststring
5647 done
5648 # Only check the string length outside the loop.
5649 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5650 teststring=
5651 # Add a significant safety factor because C++ compilers can tack on
5652 # massive amounts of additional arguments before passing them to the
5653 # linker. It appears as though 1/2 is a usable value.
5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5655 fi
5656 ;;
5657 esac
5658
5659fi
5660
5661if test -n $lt_cv_sys_max_cmd_len ; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5663$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5664else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5666$as_echo "none" >&6; }
5667fi
5668max_cmd_len=$lt_cv_sys_max_cmd_len
5669
5670
5671
5672
5673
5674
5675: ${CP="cp -f"}
5676: ${MV="mv -f"}
5677: ${RM="rm -f"}
5678
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5680$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5681# Try some XSI features
5682xsi_shell=no
5683( _lt_dummy="a/b/c"
5684 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5685 = c,a/b,, \
5686 && eval 'test $(( 1 + 1 )) -eq 2 \
5687 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5688 && xsi_shell=yes
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5690$as_echo "$xsi_shell" >&6; }
5691
5692
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5694$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5695lt_shell_append=no
5696( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5697 >/dev/null 2>&1 \
5698 && lt_shell_append=yes
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5700$as_echo "$lt_shell_append" >&6; }
5701
5702
5703if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5704 lt_unset=unset
5705else
5706 lt_unset=false
5707fi
5708
5709
5710
5711
5712
5713# test EBCDIC or ASCII
5714case `echo X|tr X '\101'` in
5715 A) # ASCII based system
5716 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5717 lt_SP2NL='tr \040 \012'
5718 lt_NL2SP='tr \015\012 \040\040'
5719 ;;
5720 *) # EBCDIC based system
5721 lt_SP2NL='tr \100 \n'
5722 lt_NL2SP='tr \r\n \100\100'
5723 ;;
5724esac
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5735$as_echo_n "checking for $LD option to reload object files... " >&6; }
5736if ${lt_cv_ld_reload_flag+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738else
5739 lt_cv_ld_reload_flag='-r'
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5742$as_echo "$lt_cv_ld_reload_flag" >&6; }
5743reload_flag=$lt_cv_ld_reload_flag
5744case $reload_flag in
5745"" | " "*) ;;
5746*) reload_flag=" $reload_flag" ;;
5747esac
5748reload_cmds='$LD$reload_flag -o $output$reload_objs'
5749case $host_os in
5750 darwin*)
5751 if test "$GCC" = yes; then
5752 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5753 else
5754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5755 fi
5756 ;;
5757esac
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767if test -n "$ac_tool_prefix"; then
5768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5769set dummy ${ac_tool_prefix}objdump; ac_word=$2
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771$as_echo_n "checking for $ac_word... " >&6; }
5772if ${ac_cv_prog_OBJDUMP+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774else
5775 if test -n "$OBJDUMP"; then
5776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5777else
5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789done
5790 done
5791IFS=$as_save_IFS
5792
5793fi
5794fi
5795OBJDUMP=$ac_cv_prog_OBJDUMP
5796if test -n "$OBJDUMP"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5798$as_echo "$OBJDUMP" >&6; }
5799else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }
5802fi
5803
5804
5805fi
5806if test -z "$ac_cv_prog_OBJDUMP"; then
5807 ac_ct_OBJDUMP=$OBJDUMP
5808 # Extract the first word of "objdump", so it can be a program name with args.
5809set dummy objdump; ac_word=$2
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814else
5815 if test -n "$ac_ct_OBJDUMP"; then
5816 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829done
5830 done
5831IFS=$as_save_IFS
5832
5833fi
5834fi
5835ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5836if test -n "$ac_ct_OBJDUMP"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5838$as_echo "$ac_ct_OBJDUMP" >&6; }
5839else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842fi
5843
5844 if test "x$ac_ct_OBJDUMP" = x; then
5845 OBJDUMP="false"
5846 else
5847 case $cross_compiling:$ac_tool_warned in
5848yes:)
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5851ac_tool_warned=yes ;;
5852esac
5853 OBJDUMP=$ac_ct_OBJDUMP
5854 fi
5855else
5856 OBJDUMP="$ac_cv_prog_OBJDUMP"
5857fi
5858
5859test -z "$OBJDUMP" && OBJDUMP=objdump
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5870$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5871if ${lt_cv_deplibs_check_method+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873else
5874 lt_cv_file_magic_cmd='$MAGIC_CMD'
5875lt_cv_file_magic_test_file=
5876lt_cv_deplibs_check_method='unknown'
5877# Need to set the preceding variable on all platforms that support
5878# interlibrary dependencies.
5879# 'none' -- dependencies not supported.
5880# `unknown' -- same as none, but documents that we really don't know.
5881# 'pass_all' -- all dependencies passed with no checks.
5882# 'test_compile' -- check by making test program.
5883# 'file_magic [[regex]]' -- check by looking for files in library path
5884# which responds to the $file_magic_cmd with a given extended regex.
5885# If you have `file' or equivalent on your system and you're not sure
5886# whether `pass_all' will *always* work, you probably want this one.
5887
5888case $host_os in
5889aix[4-9]*)
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892
5893beos*)
5894 lt_cv_deplibs_check_method=pass_all
5895 ;;
5896
5897bsdi[45]*)
5898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5899 lt_cv_file_magic_cmd='/usr/bin/file -L'
5900 lt_cv_file_magic_test_file=/shlib/libc.so
5901 ;;
5902
5903cygwin*)
5904 # func_win32_libid is a shell function defined in ltmain.sh
5905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5906 lt_cv_file_magic_cmd='func_win32_libid'
5907 ;;
5908
5909mingw* | pw32*)
5910 # Base MSYS/MinGW do not provide the 'file' command needed by
5911 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5912 # unless we find 'file', for example because we are cross-compiling.
5913 if ( file / ) >/dev/null 2>&1; then
5914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5915 lt_cv_file_magic_cmd='func_win32_libid'
5916 else
5917 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5918 lt_cv_file_magic_cmd='$OBJDUMP -f'
5919 fi
5920 ;;
5921
5922cegcc)
5923 # use the weaker test based on 'objdump'. See mingw*.
5924 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5925 lt_cv_file_magic_cmd='$OBJDUMP -f'
5926 ;;
5927
5928darwin* | rhapsody*)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931
5932freebsd* | dragonfly*)
5933 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5934 case $host_cpu in
5935 i*86 )
5936 # Not sure whether the presence of OpenBSD here was a mistake.
5937 # Let's accept both of them until this is cleared up.
5938 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5939 lt_cv_file_magic_cmd=/usr/bin/file
5940 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5941 ;;
5942 esac
5943 else
5944 lt_cv_deplibs_check_method=pass_all
5945 fi
5946 ;;
5947
5948gnu*)
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952hpux10.20* | hpux11*)
5953 lt_cv_file_magic_cmd=/usr/bin/file
5954 case $host_cpu in
5955 ia64*)
5956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5957 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5958 ;;
5959 hppa*64*)
5960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5961 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5962 ;;
5963 *)
5964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5965 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5966 ;;
5967 esac
5968 ;;
5969
5970interix[3-9]*)
5971 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5973 ;;
5974
5975irix5* | irix6* | nonstopux*)
5976 case $LD in
5977 *-32|*"-32 ") libmagic=32-bit;;
5978 *-n32|*"-n32 ") libmagic=N32;;
5979 *-64|*"-64 ") libmagic=64-bit;;
5980 *) libmagic=never-match;;
5981 esac
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985# This must be Linux ELF.
5986linux* | k*bsd*-gnu | kopensolaris*-gnu)
5987 lt_cv_deplibs_check_method=pass_all
5988 ;;
5989
5990netbsd* | netbsdelf*-gnu)
5991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5993 else
5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5995 fi
5996 ;;
5997
5998newos6*)
5999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6000 lt_cv_file_magic_cmd=/usr/bin/file
6001 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6002 ;;
6003
6004*nto* | *qnx*)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007
6008openbsd*)
6009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6011 else
6012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6013 fi
6014 ;;
6015
6016osf3* | osf4* | osf5*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020rdos*)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023
6024solaris*)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027
6028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032sysv4 | sysv4.3*)
6033 case $host_vendor in
6034 motorola)
6035 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]'
6036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6037 ;;
6038 ncr)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041 sequent)
6042 lt_cv_file_magic_cmd='/bin/file'
6043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6044 ;;
6045 sni)
6046 lt_cv_file_magic_cmd='/bin/file'
6047 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6048 lt_cv_file_magic_test_file=/lib/libc.so
6049 ;;
6050 siemens)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053 pc)
6054 lt_cv_deplibs_check_method=pass_all
6055 ;;
6056 esac
6057 ;;
6058
6059tpf*)
6060 lt_cv_deplibs_check_method=pass_all
6061 ;;
6062esac
6063
6064fi
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6066$as_echo "$lt_cv_deplibs_check_method" >&6; }
6067file_magic_cmd=$lt_cv_file_magic_cmd
6068deplibs_check_method=$lt_cv_deplibs_check_method
6069test -z "$deplibs_check_method" && deplibs_check_method=unknown
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6084set dummy ${ac_tool_prefix}ar; ac_word=$2
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086$as_echo_n "checking for $ac_word... " >&6; }
6087if ${ac_cv_prog_AR+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089else
6090 if test -n "$AR"; then
6091 ac_cv_prog_AR="$AR" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_AR="${ac_tool_prefix}ar"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104done
6105 done
6106IFS=$as_save_IFS
6107
6108fi
6109fi
6110AR=$ac_cv_prog_AR
6111if test -n "$AR"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6113$as_echo "$AR" >&6; }
6114else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116$as_echo "no" >&6; }
6117fi
6118
6119
6120fi
6121if test -z "$ac_cv_prog_AR"; then
6122 ac_ct_AR=$AR
6123 # Extract the first word of "ar", so it can be a program name with args.
6124set dummy ar; ac_word=$2
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126$as_echo_n "checking for $ac_word... " >&6; }
6127if ${ac_cv_prog_ac_ct_AR+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129else
6130 if test -n "$ac_ct_AR"; then
6131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 ac_cv_prog_ac_ct_AR="ar"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144done
6145 done
6146IFS=$as_save_IFS
6147
6148fi
6149fi
6150ac_ct_AR=$ac_cv_prog_ac_ct_AR
6151if test -n "$ac_ct_AR"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6153$as_echo "$ac_ct_AR" >&6; }
6154else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156$as_echo "no" >&6; }
6157fi
6158
6159 if test "x$ac_ct_AR" = x; then
6160 AR="false"
6161 else
6162 case $cross_compiling:$ac_tool_warned in
6163yes:)
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166ac_tool_warned=yes ;;
6167esac
6168 AR=$ac_ct_AR
6169 fi
6170else
6171 AR="$ac_cv_prog_AR"
6172fi
6173
6174test -z "$AR" && AR=ar
6175test -z "$AR_FLAGS" && AR_FLAGS=cru
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}strip; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if ${ac_cv_prog_STRIP+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194else
6195 if test -n "$STRIP"; then
6196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210 done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215STRIP=$ac_cv_prog_STRIP
6216if test -n "$STRIP"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6218$as_echo "$STRIP" >&6; }
6219else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_STRIP"; then
6227 ac_ct_STRIP=$STRIP
6228 # Extract the first word of "strip", so it can be a program name with args.
6229set dummy strip; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234else
6235 if test -n "$ac_ct_STRIP"; then
6236 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_STRIP="strip"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249done
6250 done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6256if test -n "$ac_ct_STRIP"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6258$as_echo "$ac_ct_STRIP" >&6; }
6259else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264 if test "x$ac_ct_STRIP" = x; then
6265 STRIP=":"
6266 else
6267 case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273 STRIP=$ac_ct_STRIP
6274 fi
6275else
6276 STRIP="$ac_cv_prog_STRIP"
6277fi
6278
6279test -z "$STRIP" && STRIP=:
6280
6281
6282
6283
6284
6285
6286if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if ${ac_cv_prog_RANLIB+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293else
6294 if test -n "$RANLIB"; then
6295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308done
6309 done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314RANLIB=$ac_cv_prog_RANLIB
6315if test -n "$RANLIB"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6317$as_echo "$RANLIB" >&6; }
6318else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
6321fi
6322
6323
6324fi
6325if test -z "$ac_cv_prog_RANLIB"; then
6326 ac_ct_RANLIB=$RANLIB
6327 # Extract the first word of "ranlib", so it can be a program name with args.
6328set dummy ranlib; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333else
6334 if test -n "$ac_ct_RANLIB"; then
6335 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_RANLIB="ranlib"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349 done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6355if test -n "$ac_ct_RANLIB"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6357$as_echo "$ac_ct_RANLIB" >&6; }
6358else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363 if test "x$ac_ct_RANLIB" = x; then
6364 RANLIB=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367yes:)
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370ac_tool_warned=yes ;;
6371esac
6372 RANLIB=$ac_ct_RANLIB
6373 fi
6374else
6375 RANLIB="$ac_cv_prog_RANLIB"
6376fi
6377
6378test -z "$RANLIB" && RANLIB=:
6379
6380
6381
6382
6383
6384
6385# Determine commands to create old-style static archives.
6386old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6387old_postinstall_cmds='chmod 644 $oldlib'
6388old_postuninstall_cmds=
6389
6390if test -n "$RANLIB"; then
6391 case $host_os in
6392 openbsd*)
6393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6394 ;;
6395 *)
6396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6397 ;;
6398 esac
6399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6400fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435# If no C compiler was specified, use CC.
6436LTCC=${LTCC-"$CC"}
6437
6438# If no C compiler flags were specified, use CFLAGS.
6439LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6440
6441# Allow CC to be a program name with arguments.
6442compiler=$CC
6443
6444
6445# Check for command to grab the raw symbol name followed by C symbol from nm.
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6447$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6448if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450else
6451
6452# These are sane defaults that work on at least a few old systems.
6453# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6454
6455# Character class describing NM global symbol codes.
6456symcode='[BCDEGRST]'
6457
6458# Regexp to match symbols that can be accessed directly from C.
6459sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6460
6461# Define system-specific variables.
6462case $host_os in
6463aix*)
6464 symcode='[BCDT]'
6465 ;;
6466cygwin* | mingw* | pw32* | cegcc*)
6467 symcode='[ABCDGISTW]'
6468 ;;
6469hpux*)
6470 if test "$host_cpu" = ia64; then
6471 symcode='[ABCDEGRST]'
6472 fi
6473 ;;
6474irix* | nonstopux*)
6475 symcode='[BCDEGRST]'
6476 ;;
6477osf*)
6478 symcode='[BCDEGQRST]'
6479 ;;
6480solaris*)
6481 symcode='[BDRT]'
6482 ;;
6483sco3.2v5*)
6484 symcode='[DT]'
6485 ;;
6486sysv4.2uw2*)
6487 symcode='[DT]'
6488 ;;
6489sysv5* | sco5v6* | unixware* | OpenUNIX*)
6490 symcode='[ABDT]'
6491 ;;
6492sysv4)
6493 symcode='[DFNSTU]'
6494 ;;
6495esac
6496
6497# If we're using GNU nm, then use its standard symbol codes.
6498case `$NM -V 2>&1` in
6499*GNU* | *'with BFD'*)
6500 symcode='[ABCDGIRSTW]' ;;
6501esac
6502
6503# Transform an extracted symbol line into a proper C declaration.
6504# Some systems (esp. on ia64) link data and code symbols differently,
6505# so use this general approach.
6506lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6507
6508# Transform an extracted symbol line into symbol name and symbol address
6509lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6510lt_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'"
6511
6512# Handle CRLF in mingw tool chain
6513opt_cr=
6514case $build_os in
6515mingw*)
6516 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6517 ;;
6518esac
6519
6520# Try without a prefix underscore, then with it.
6521for ac_symprfx in "" "_"; do
6522
6523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6524 symxfrm="\\1 $ac_symprfx\\2 \\2"
6525
6526 # Write the raw and C identifiers.
6527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6528 # Fake it for dumpbin and say T for any non-static function
6529 # and D for any global variable.
6530 # Also find C++ and __fastcall symbols from MSVC++,
6531 # which start with @ or ?.
6532 lt_cv_sys_global_symbol_pipe="$AWK '"\
6533" {last_section=section; section=\$ 3};"\
6534" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6535" \$ 0!~/External *\|/{next};"\
6536" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6537" {if(hide[section]) next};"\
6538" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6539" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6540" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6541" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6542" ' prfx=^$ac_symprfx"
6543 else
6544 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6545 fi
6546
6547 # Check to see that the pipe works correctly.
6548 pipe_works=no
6549
6550 rm -f conftest*
6551 cat > conftest.$ac_ext <<_LT_EOF
6552#ifdef __cplusplus
6553extern "C" {
6554#endif
6555char nm_test_var;
6556void nm_test_func(void);
6557void nm_test_func(void){}
6558#ifdef __cplusplus
6559}
6560#endif
6561int main(){nm_test_var='a';nm_test_func();return(0);}
6562_LT_EOF
6563
6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6565 (eval $ac_compile) 2>&5
6566 ac_status=$?
6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6568 test $ac_status = 0; }; then
6569 # Now try to grab the symbols.
6570 nlist=conftest.nm
6571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6573 ac_status=$?
6574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6575 test $ac_status = 0; } && test -s "$nlist"; then
6576 # Try sorting and uniquifying the output.
6577 if sort "$nlist" | uniq > "$nlist"T; then
6578 mv -f "$nlist"T "$nlist"
6579 else
6580 rm -f "$nlist"T
6581 fi
6582
6583 # Make sure that we snagged all the symbols we need.
6584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6586 cat <<_LT_EOF > conftest.$ac_ext
6587#ifdef __cplusplus
6588extern "C" {
6589#endif
6590
6591_LT_EOF
6592 # Now generate the symbol file.
6593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6594
6595 cat <<_LT_EOF >> conftest.$ac_ext
6596
6597/* The mapping between symbol names and symbols. */
6598const struct {
6599 const char *name;
6600 void *address;
6601}
6602lt__PROGRAM__LTX_preloaded_symbols[] =
6603{
6604 { "@PROGRAM@", (void *) 0 },
6605_LT_EOF
6606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6607 cat <<\_LT_EOF >> conftest.$ac_ext
6608 {0, (void *) 0}
6609};
6610
6611/* This works around a problem in FreeBSD linker */
6612#ifdef FREEBSD_WORKAROUND
6613static const void *lt_preloaded_setup() {
6614 return lt__PROGRAM__LTX_preloaded_symbols;
6615}
6616#endif
6617
6618#ifdef __cplusplus
6619}
6620#endif
6621_LT_EOF
6622 # Now try linking the two files.
6623 mv conftest.$ac_objext conftstm.$ac_objext
6624 lt_save_LIBS="$LIBS"
6625 lt_save_CFLAGS="$CFLAGS"
6626 LIBS="conftstm.$ac_objext"
6627 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6629 (eval $ac_link) 2>&5
6630 ac_status=$?
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6633 pipe_works=yes
6634 fi
6635 LIBS="$lt_save_LIBS"
6636 CFLAGS="$lt_save_CFLAGS"
6637 else
6638 echo "cannot find nm_test_func in $nlist" >&5
6639 fi
6640 else
6641 echo "cannot find nm_test_var in $nlist" >&5
6642 fi
6643 else
6644 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6645 fi
6646 else
6647 echo "$progname: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 fi
6650 rm -rf conftest* conftst*
6651
6652 # Do not use the global_symbol_pipe unless it works.
6653 if test "$pipe_works" = yes; then
6654 break
6655 else
6656 lt_cv_sys_global_symbol_pipe=
6657 fi
6658done
6659
6660fi
6661
6662if test -z "$lt_cv_sys_global_symbol_pipe"; then
6663 lt_cv_sys_global_symbol_to_cdecl=
6664fi
6665if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6667$as_echo "failed" >&6; }
6668else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6670$as_echo "ok" >&6; }
6671fi
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695# Check whether --enable-libtool-lock was given.
6696if test "${enable_libtool_lock+set}" = set; then :
6697 enableval=$enable_libtool_lock;
6698fi
6699
6700test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6701
6702# Some flags need to be propagated to the compiler or linker for good
6703# libtool support.
6704case $host in
6705ia64-*-hpux*)
6706 # Find out which ABI we are using.
6707 echo 'int i;' > conftest.$ac_ext
6708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6709 (eval $ac_compile) 2>&5
6710 ac_status=$?
6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712 test $ac_status = 0; }; then
6713 case `/usr/bin/file conftest.$ac_objext` in
6714 *ELF-32*)
6715 HPUX_IA64_MODE="32"
6716 ;;
6717 *ELF-64*)
6718 HPUX_IA64_MODE="64"
6719 ;;
6720 esac
6721 fi
6722 rm -rf conftest*
6723 ;;
6724*-*-irix6*)
6725 # Find out which ABI we are using.
6726 echo '#line 6726 "configure"' > conftest.$ac_ext
6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6728 (eval $ac_compile) 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; }; then
6732 if test "$lt_cv_prog_gnu_ld" = yes; then
6733 case `/usr/bin/file conftest.$ac_objext` in
6734 *32-bit*)
6735 LD="${LD-ld} -melf32bsmip"
6736 ;;
6737 *N32*)
6738 LD="${LD-ld} -melf32bmipn32"
6739 ;;
6740 *64-bit*)
6741 LD="${LD-ld} -melf64bmip"
6742 ;;
6743 esac
6744 else
6745 case `/usr/bin/file conftest.$ac_objext` in
6746 *32-bit*)
6747 LD="${LD-ld} -32"
6748 ;;
6749 *N32*)
6750 LD="${LD-ld} -n32"
6751 ;;
6752 *64-bit*)
6753 LD="${LD-ld} -64"
6754 ;;
6755 esac
6756 fi
6757 fi
6758 rm -rf conftest*
6759 ;;
6760
6761x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6762s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6763 # Find out which ABI we are using.
6764 echo 'int i;' > conftest.$ac_ext
6765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6766 (eval $ac_compile) 2>&5
6767 ac_status=$?
6768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6769 test $ac_status = 0; }; then
6770 case `/usr/bin/file conftest.o` in
6771 *32-bit*)
6772 case $host in
6773 x86_64-*kfreebsd*-gnu)
6774 LD="${LD-ld} -m elf_i386_fbsd"
6775 ;;
6776 x86_64-*linux*)
6777 LD="${LD-ld} -m elf_i386"
6778 ;;
6779 ppc64-*linux*|powerpc64-*linux*)
6780 LD="${LD-ld} -m elf32ppclinux"
6781 ;;
6782 s390x-*linux*)
6783 LD="${LD-ld} -m elf_s390"
6784 ;;
6785 sparc64-*linux*)
6786 LD="${LD-ld} -m elf32_sparc"
6787 ;;
6788 esac
6789 ;;
6790 *64-bit*)
6791 case $host in
6792 x86_64-*kfreebsd*-gnu)
6793 LD="${LD-ld} -m elf_x86_64_fbsd"
6794 ;;
6795 x86_64-*linux*)
6796 LD="${LD-ld} -m elf_x86_64"
6797 ;;
6798 ppc*-*linux*|powerpc*-*linux*)
6799 LD="${LD-ld} -m elf64ppc"
6800 ;;
6801 s390*-*linux*|s390*-*tpf*)
6802 LD="${LD-ld} -m elf64_s390"
6803 ;;
6804 sparc*-*linux*)
6805 LD="${LD-ld} -m elf64_sparc"
6806 ;;
6807 esac
6808 ;;
6809 esac
6810 fi
6811 rm -rf conftest*
6812 ;;
6813
6814*-*-sco3.2v5*)
6815 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6816 SAVE_CFLAGS="$CFLAGS"
6817 CFLAGS="$CFLAGS -belf"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6819$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6820if ${lt_cv_cc_needs_belf+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822else
6823 ac_ext=c
6824ac_cpp='$CPP $CPPFLAGS'
6825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h. */
6831
6832int
6833main ()
6834{
6835
6836 ;
6837 return 0;
6838}
6839_ACEOF
6840if ac_fn_c_try_link "$LINENO"; then :
6841 lt_cv_cc_needs_belf=yes
6842else
6843 lt_cv_cc_needs_belf=no
6844fi
6845rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 ac_ext=c
6848ac_cpp='$CPP $CPPFLAGS'
6849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852
6853fi
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6855$as_echo "$lt_cv_cc_needs_belf" >&6; }
6856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6858 CFLAGS="$SAVE_CFLAGS"
6859 fi
6860 ;;
6861sparc*-*solaris*)
6862 # Find out which ABI we are using.
6863 echo 'int i;' > conftest.$ac_ext
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 case `/usr/bin/file conftest.o` in
6870 *64-bit*)
6871 case $lt_cv_prog_gnu_ld in
6872 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6873 *)
6874 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6875 LD="${LD-ld} -64"
6876 fi
6877 ;;
6878 esac
6879 ;;
6880 esac
6881 fi
6882 rm -rf conftest*
6883 ;;
6884esac
6885
6886need_locks="$enable_libtool_lock"
6887
6888
6889 case $host_os in
6890 rhapsody* | darwin*)
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6893set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895$as_echo_n "checking for $ac_word... " >&6; }
6896if ${ac_cv_prog_DSYMUTIL+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898else
6899 if test -n "$DSYMUTIL"; then
6900 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913done
6914 done
6915IFS=$as_save_IFS
6916
6917fi
6918fi
6919DSYMUTIL=$ac_cv_prog_DSYMUTIL
6920if test -n "$DSYMUTIL"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6922$as_echo "$DSYMUTIL" >&6; }
6923else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925$as_echo "no" >&6; }
6926fi
6927
6928
6929fi
6930if test -z "$ac_cv_prog_DSYMUTIL"; then
6931 ac_ct_DSYMUTIL=$DSYMUTIL
6932 # Extract the first word of "dsymutil", so it can be a program name with args.
6933set dummy dsymutil; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938else
6939 if test -n "$ac_ct_DSYMUTIL"; then
6940 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954 done
6955IFS=$as_save_IFS
6956
6957fi
6958fi
6959ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6960if test -n "$ac_ct_DSYMUTIL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6962$as_echo "$ac_ct_DSYMUTIL" >&6; }
6963else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968 if test "x$ac_ct_DSYMUTIL" = x; then
6969 DSYMUTIL=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972yes:)
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975ac_tool_warned=yes ;;
6976esac
6977 DSYMUTIL=$ac_ct_DSYMUTIL
6978 fi
6979else
6980 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6981fi
6982
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6985set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987$as_echo_n "checking for $ac_word... " >&6; }
6988if ${ac_cv_prog_NMEDIT+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990else
6991 if test -n "$NMEDIT"; then
6992 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006 done
7007IFS=$as_save_IFS
7008
7009fi
7010fi
7011NMEDIT=$ac_cv_prog_NMEDIT
7012if test -n "$NMEDIT"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7014$as_echo "$NMEDIT" >&6; }
7015else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
7018fi
7019
7020
7021fi
7022if test -z "$ac_cv_prog_NMEDIT"; then
7023 ac_ct_NMEDIT=$NMEDIT
7024 # Extract the first word of "nmedit", so it can be a program name with args.
7025set dummy nmedit; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027$as_echo_n "checking for $ac_word... " >&6; }
7028if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030else
7031 if test -n "$ac_ct_NMEDIT"; then
7032 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046 done
7047IFS=$as_save_IFS
7048
7049fi
7050fi
7051ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7052if test -n "$ac_ct_NMEDIT"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7054$as_echo "$ac_ct_NMEDIT" >&6; }
7055else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060 if test "x$ac_ct_NMEDIT" = x; then
7061 NMEDIT=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064yes:)
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067ac_tool_warned=yes ;;
7068esac
7069 NMEDIT=$ac_ct_NMEDIT
7070 fi
7071else
7072 NMEDIT="$ac_cv_prog_NMEDIT"
7073fi
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7077set dummy ${ac_tool_prefix}lipo; ac_word=$2
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079$as_echo_n "checking for $ac_word... " >&6; }
7080if ${ac_cv_prog_LIPO+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082else
7083 if test -n "$LIPO"; then
7084 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097done
7098 done
7099IFS=$as_save_IFS
7100
7101fi
7102fi
7103LIPO=$ac_cv_prog_LIPO
7104if test -n "$LIPO"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7106$as_echo "$LIPO" >&6; }
7107else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109$as_echo "no" >&6; }
7110fi
7111
7112
7113fi
7114if test -z "$ac_cv_prog_LIPO"; then
7115 ac_ct_LIPO=$LIPO
7116 # Extract the first word of "lipo", so it can be a program name with args.
7117set dummy lipo; ac_word=$2
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119$as_echo_n "checking for $ac_word... " >&6; }
7120if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122else
7123 if test -n "$ac_ct_LIPO"; then
7124 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_LIPO="lipo"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138 done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7144if test -n "$ac_ct_LIPO"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7146$as_echo "$ac_ct_LIPO" >&6; }
7147else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
7150fi
7151
7152 if test "x$ac_ct_LIPO" = x; then
7153 LIPO=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156yes:)
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159ac_tool_warned=yes ;;
7160esac
7161 LIPO=$ac_ct_LIPO
7162 fi
7163else
7164 LIPO="$ac_cv_prog_LIPO"
7165fi
7166
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7169set dummy ${ac_tool_prefix}otool; ac_word=$2
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171$as_echo_n "checking for $ac_word... " >&6; }
7172if ${ac_cv_prog_OTOOL+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174else
7175 if test -n "$OTOOL"; then
7176 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190 done
7191IFS=$as_save_IFS
7192
7193fi
7194fi
7195OTOOL=$ac_cv_prog_OTOOL
7196if test -n "$OTOOL"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7198$as_echo "$OTOOL" >&6; }
7199else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201$as_echo "no" >&6; }
7202fi
7203
7204
7205fi
7206if test -z "$ac_cv_prog_OTOOL"; then
7207 ac_ct_OTOOL=$OTOOL
7208 # Extract the first word of "otool", so it can be a program name with args.
7209set dummy otool; ac_word=$2
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211$as_echo_n "checking for $ac_word... " >&6; }
7212if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214else
7215 if test -n "$ac_ct_OTOOL"; then
7216 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_OTOOL="otool"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230 done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7236if test -n "$ac_ct_OTOOL"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7238$as_echo "$ac_ct_OTOOL" >&6; }
7239else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241$as_echo "no" >&6; }
7242fi
7243
7244 if test "x$ac_ct_OTOOL" = x; then
7245 OTOOL=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248yes:)
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251ac_tool_warned=yes ;;
7252esac
7253 OTOOL=$ac_ct_OTOOL
7254 fi
7255else
7256 OTOOL="$ac_cv_prog_OTOOL"
7257fi
7258
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}otool64; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if ${ac_cv_prog_OTOOL64+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266else
7267 if test -n "$OTOOL64"; then
7268 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282 done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287OTOOL64=$ac_cv_prog_OTOOL64
7288if test -n "$OTOOL64"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7290$as_echo "$OTOOL64" >&6; }
7291else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296
7297fi
7298if test -z "$ac_cv_prog_OTOOL64"; then
7299 ac_ct_OTOOL64=$OTOOL64
7300 # Extract the first word of "otool64", so it can be a program name with args.
7301set dummy otool64; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306else
7307 if test -n "$ac_ct_OTOOL64"; then
7308 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_OTOOL64="otool64"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322 done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7328if test -n "$ac_ct_OTOOL64"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7330$as_echo "$ac_ct_OTOOL64" >&6; }
7331else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336 if test "x$ac_ct_OTOOL64" = x; then
7337 OTOOL64=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340yes:)
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343ac_tool_warned=yes ;;
7344esac
7345 OTOOL64=$ac_ct_OTOOL64
7346 fi
7347else
7348 OTOOL64="$ac_cv_prog_OTOOL64"
7349fi
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7378$as_echo_n "checking for -single_module linker flag... " >&6; }
7379if ${lt_cv_apple_cc_single_mod+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381else
7382 lt_cv_apple_cc_single_mod=no
7383 if test -z "${LT_MULTI_MODULE}"; then
7384 # By default we will add the -single_module flag. You can override
7385 # by either setting the environment variable LT_MULTI_MODULE
7386 # non-empty at configure time, or by adding -multi_module to the
7387 # link flags.
7388 rm -rf libconftest.dylib*
7389 echo "int foo(void){return 1;}" > conftest.c
7390 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7391-dynamiclib -Wl,-single_module conftest.c" >&5
7392 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7393 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7394 _lt_result=$?
7395 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7396 lt_cv_apple_cc_single_mod=yes
7397 else
7398 cat conftest.err >&5
7399 fi
7400 rm -rf libconftest.dylib*
7401 rm -f conftest.*
7402 fi
7403fi
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7405$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7407$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7408if ${lt_cv_ld_exported_symbols_list+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410else
7411 lt_cv_ld_exported_symbols_list=no
7412 save_LDFLAGS=$LDFLAGS
7413 echo "_main" > conftest.sym
7414 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h. */
7417
7418int
7419main ()
7420{
7421
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426if ac_fn_c_try_link "$LINENO"; then :
7427 lt_cv_ld_exported_symbols_list=yes
7428else
7429 lt_cv_ld_exported_symbols_list=no
7430fi
7431rm -f core conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7433 LDFLAGS="$save_LDFLAGS"
7434
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7437$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7438 case $host_os in
7439 rhapsody* | darwin1.[012])
7440 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7441 darwin1.*)
7442 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7443 darwin*) # darwin 5.x on
7444 # if running on 10.5 or later, the deployment target defaults
7445 # to the OS version, if on x86, and 10.4, the deployment
7446 # target defaults to 10.4. Don't you love it?
7447 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7448 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7449 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7450 10.[012]*)
7451 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7452 10.*)
7453 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7454 esac
7455 ;;
7456 esac
7457 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7458 _lt_dar_single_mod='$single_module'
7459 fi
7460 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7461 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7462 else
7463 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7464 fi
7465 if test "$DSYMUTIL" != ":"; then
7466 _lt_dsymutil='~$DSYMUTIL $lib || :'
7467 else
7468 _lt_dsymutil=
7469 fi
7470 ;;
7471 esac
7472
7473
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7475$as_echo_n "checking for ANSI C header files... " >&6; }
7476if ${ac_cv_header_stdc+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478else
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480/* end confdefs.h. */
7481#include <stdlib.h>
7482#include <stdarg.h>
7483#include <string.h>
7484#include <float.h>
7485
7486int
7487main ()
7488{
7489
7490 ;
7491 return 0;
7492}
7493_ACEOF
7494if ac_fn_c_try_compile "$LINENO"; then :
7495 ac_cv_header_stdc=yes
7496else
7497 ac_cv_header_stdc=no
7498fi
7499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500
7501if test $ac_cv_header_stdc = yes; then
7502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h. */
7505#include <string.h>
7506
7507_ACEOF
7508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509 $EGREP "memchr" >/dev/null 2>&1; then :
7510
7511else
7512 ac_cv_header_stdc=no
7513fi
7514rm -f conftest*
7515
7516fi
7517
7518if test $ac_cv_header_stdc = yes; then
7519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h. */
7522#include <stdlib.h>
7523
7524_ACEOF
7525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526 $EGREP "free" >/dev/null 2>&1; then :
7527
7528else
7529 ac_cv_header_stdc=no
7530fi
7531rm -f conftest*
7532
7533fi
7534
7535if test $ac_cv_header_stdc = yes; then
7536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7537 if test "$cross_compiling" = yes; then :
7538 :
7539else
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h. */
7542#include <ctype.h>
7543#include <stdlib.h>
7544#if ((' ' & 0x0FF) == 0x020)
7545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7547#else
7548# define ISLOWER(c) \
7549 (('a' <= (c) && (c) <= 'i') \
7550 || ('j' <= (c) && (c) <= 'r') \
7551 || ('s' <= (c) && (c) <= 'z'))
7552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7553#endif
7554
7555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7556int
7557main ()
7558{
7559 int i;
7560 for (i = 0; i < 256; i++)
7561 if (XOR (islower (i), ISLOWER (i))
7562 || toupper (i) != TOUPPER (i))
7563 return 2;
7564 return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_run "$LINENO"; then :
7568
7569else
7570 ac_cv_header_stdc=no
7571fi
7572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7573 conftest.$ac_objext conftest.beam conftest.$ac_ext
7574fi
7575
7576fi
7577fi
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7579$as_echo "$ac_cv_header_stdc" >&6; }
7580if test $ac_cv_header_stdc = yes; then
7581
7582$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7583
7584fi
7585
7586# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7588 inttypes.h stdint.h unistd.h
7589do :
7590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7592"
7593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7594 cat >>confdefs.h <<_ACEOF
7595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7596_ACEOF
7597
7598fi
7599
7600done
7601
7602
7603for ac_header in dlfcn.h
7604do :
7605 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7606"
7607if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7608 cat >>confdefs.h <<_ACEOF
7609#define HAVE_DLFCN_H 1
7610_ACEOF
7611
7612fi
7613
7614done
7615
7616
7617
7618ac_ext=cpp
7619ac_cpp='$CXXCPP $CPPFLAGS'
7620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7623if test -z "$CXX"; then
7624 if test -n "$CCC"; then
7625 CXX=$CCC
7626 else
7627 if test -n "$ac_tool_prefix"; then
7628 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7629 do
7630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633$as_echo_n "checking for $ac_word... " >&6; }
7634if ${ac_cv_prog_CXX+:} false; then :
7635 $as_echo_n "(cached) " >&6
7636else
7637 if test -n "$CXX"; then
7638 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7639else
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7650 fi
7651done
7652 done
7653IFS=$as_save_IFS
7654
7655fi
7656fi
7657CXX=$ac_cv_prog_CXX
7658if test -n "$CXX"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7660$as_echo "$CXX" >&6; }
7661else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
7664fi
7665
7666
7667 test -n "$CXX" && break
7668 done
7669fi
7670if test -z "$CXX"; then
7671 ac_ct_CXX=$CXX
7672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7673do
7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
7675set dummy $ac_prog; ac_word=$2
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680else
7681 if test -n "$ac_ct_CXX"; then
7682 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7683else
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_CXX="$ac_prog"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695done
7696 done
7697IFS=$as_save_IFS
7698
7699fi
7700fi
7701ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7702if test -n "$ac_ct_CXX"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7704$as_echo "$ac_ct_CXX" >&6; }
7705else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708fi
7709
7710
7711 test -n "$ac_ct_CXX" && break
7712done
7713
7714 if test "x$ac_ct_CXX" = x; then
7715 CXX="g++"
7716 else
7717 case $cross_compiling:$ac_tool_warned in
7718yes:)
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721ac_tool_warned=yes ;;
7722esac
7723 CXX=$ac_ct_CXX
7724 fi
7725fi
7726
7727 fi
7728fi
7729# Provide some information about the compiler.
7730$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7731set X $ac_compile
7732ac_compiler=$2
7733for ac_option in --version -v -V -qversion; do
7734 { { ac_try="$ac_compiler $ac_option >&5"
7735case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738esac
7739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7740$as_echo "$ac_try_echo"; } >&5
7741 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7742 ac_status=$?
7743 if test -s conftest.err; then
7744 sed '10a\
7745... rest of stderr output deleted ...
7746 10q' conftest.err >conftest.er1
7747 cat conftest.er1 >&5
7748 fi
7749 rm -f conftest.er1 conftest.err
7750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7751 test $ac_status = 0; }
7752done
7753
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7755$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7756if ${ac_cv_cxx_compiler_gnu+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758else
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760/* end confdefs.h. */
7761
7762int
7763main ()
7764{
7765#ifndef __GNUC__
7766 choke me
7767#endif
7768
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773if ac_fn_cxx_try_compile "$LINENO"; then :
7774 ac_compiler_gnu=yes
7775else
7776 ac_compiler_gnu=no
7777fi
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7780
7781fi
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7783$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7784if test $ac_compiler_gnu = yes; then
7785 GXX=yes
7786else
7787 GXX=
7788fi
7789ac_test_CXXFLAGS=${CXXFLAGS+set}
7790ac_save_CXXFLAGS=$CXXFLAGS
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7792$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7793if ${ac_cv_prog_cxx_g+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795else
7796 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7797 ac_cxx_werror_flag=yes
7798 ac_cv_prog_cxx_g=no
7799 CXXFLAGS="-g"
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h. */
7802
7803int
7804main ()
7805{
7806
7807 ;
7808 return 0;
7809}
7810_ACEOF
7811if ac_fn_cxx_try_compile "$LINENO"; then :
7812 ac_cv_prog_cxx_g=yes
7813else
7814 CXXFLAGS=""
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h. */
7817
7818int
7819main ()
7820{
7821
7822 ;
7823 return 0;
7824}
7825_ACEOF
7826if ac_fn_cxx_try_compile "$LINENO"; then :
7827
7828else
7829 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7830 CXXFLAGS="-g"
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h. */
7833
7834int
7835main ()
7836{
7837
7838 ;
7839 return 0;
7840}
7841_ACEOF
7842if ac_fn_cxx_try_compile "$LINENO"; then :
7843 ac_cv_prog_cxx_g=yes
7844fi
7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846fi
7847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848fi
7849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7853$as_echo "$ac_cv_prog_cxx_g" >&6; }
7854if test "$ac_test_CXXFLAGS" = set; then
7855 CXXFLAGS=$ac_save_CXXFLAGS
7856elif test $ac_cv_prog_cxx_g = yes; then
7857 if test "$GXX" = yes; then
7858 CXXFLAGS="-g -O2"
7859 else
7860 CXXFLAGS="-g"
7861 fi
7862else
7863 if test "$GXX" = yes; then
7864 CXXFLAGS="-O2"
7865 else
7866 CXXFLAGS=
7867 fi
7868fi
7869ac_ext=c
7870ac_cpp='$CPP $CPPFLAGS'
7871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7873ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874
7875depcc="$CXX" am_compiler_list=
7876
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7878$as_echo_n "checking dependency style of $depcc... " >&6; }
7879if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881else
7882 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7883 # We make a subdir and do the tests there. Otherwise we can end up
7884 # making bogus files that we don't know about and never remove. For
7885 # instance it was reported that on HP-UX the gcc test will end up
7886 # making a dummy file named 'D' -- because '-MD' means "put the output
7887 # in D".
7888 rm -rf conftest.dir
7889 mkdir conftest.dir
7890 # Copy depcomp to subdir because otherwise we won't find it if we're
7891 # using a relative directory.
7892 cp "$am_depcomp" conftest.dir
7893 cd conftest.dir
7894 # We will build objects and dependencies in a subdirectory because
7895 # it helps to detect inapplicable dependency modes. For instance
7896 # both Tru64's cc and ICC support -MD to output dependencies as a
7897 # side effect of compilation, but ICC will put the dependencies in
7898 # the current directory while Tru64 will put them in the object
7899 # directory.
7900 mkdir sub
7901
7902 am_cv_CXX_dependencies_compiler_type=none
7903 if test "$am_compiler_list" = ""; then
7904 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7905 fi
7906 am__universal=false
7907 case " $depcc " in #(
7908 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7909 esac
7910
7911 for depmode in $am_compiler_list; do
7912 # Setup a source with many dependencies, because some compilers
7913 # like to wrap large dependency lists on column 80 (with \), and
7914 # we should not choose a depcomp mode which is confused by this.
7915 #
7916 # We need to recreate these files for each test, as the compiler may
7917 # overwrite some of them when testing with obscure command lines.
7918 # This happens at least with the AIX C compiler.
7919 : > sub/conftest.c
7920 for i in 1 2 3 4 5 6; do
7921 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7922 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7923 # Solaris 10 /bin/sh.
7924 echo '/* dummy */' > sub/conftst$i.h
7925 done
7926 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7927
7928 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7929 # mode. It turns out that the SunPro C++ compiler does not properly
7930 # handle '-M -o', and we need to detect this. Also, some Intel
7931 # versions had trouble with output in subdirs.
7932 am__obj=sub/conftest.${OBJEXT-o}
7933 am__minus_obj="-o $am__obj"
7934 case $depmode in
7935 gcc)
7936 # This depmode causes a compiler race in universal mode.
7937 test "$am__universal" = false || continue
7938 ;;
7939 nosideeffect)
7940 # After this tag, mechanisms are not by side-effect, so they'll
7941 # only be used when explicitly requested.
7942 if test "x$enable_dependency_tracking" = xyes; then
7943 continue
7944 else
7945 break
7946 fi
7947 ;;
7948 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7949 # This compiler won't grok '-c -o', but also, the minuso test has
7950 # not run yet. These depmodes are late enough in the game, and
7951 # so weak that their functioning should not be impacted.
7952 am__obj=conftest.${OBJEXT-o}
7953 am__minus_obj=
7954 ;;
7955 none) break ;;
7956 esac
7957 if depmode=$depmode \
7958 source=sub/conftest.c object=$am__obj \
7959 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7960 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7961 >/dev/null 2>conftest.err &&
7962 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7963 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7964 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7965 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7966 # icc doesn't choke on unknown options, it will just issue warnings
7967 # or remarks (even with -Werror). So we grep stderr for any message
7968 # that says an option was ignored or not supported.
7969 # When given -MP, icc 7.0 and 7.1 complain thusly:
7970 # icc: Command line warning: ignoring option '-M'; no argument required
7971 # The diagnosis changed in icc 8.0:
7972 # icc: Command line remark: option '-MP' not supported
7973 if (grep 'ignoring option' conftest.err ||
7974 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7975 am_cv_CXX_dependencies_compiler_type=$depmode
7976 break
7977 fi
7978 fi
7979 done
7980
7981 cd ..
7982 rm -rf conftest.dir
7983else
7984 am_cv_CXX_dependencies_compiler_type=none
7985fi
7986
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7989$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7990CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7991
7992 if
7993 test "x$enable_dependency_tracking" != xno \
7994 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7995 am__fastdepCXX_TRUE=
7996 am__fastdepCXX_FALSE='#'
7997else
7998 am__fastdepCXX_TRUE='#'
7999 am__fastdepCXX_FALSE=
8000fi
8001
8002
8003if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8004 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8005 (test "X$CXX" != "Xg++"))) ; then
8006 ac_ext=cpp
8007ac_cpp='$CXXCPP $CPPFLAGS'
8008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8012$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8013if test -z "$CXXCPP"; then
8014 if ${ac_cv_prog_CXXCPP+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016else
8017 # Double quotes because CXXCPP needs to be expanded
8018 for CXXCPP in "$CXX -E" "/lib/cpp"
8019 do
8020 ac_preproc_ok=false
8021for ac_cxx_preproc_warn_flag in '' yes
8022do
8023 # Use a header file that comes with gcc, so configuring glibc
8024 # with a fresh cross-compiler works.
8025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8026 # <limits.h> exists even on freestanding compilers.
8027 # On the NeXT, cc -E runs the code through the compiler's parser,
8028 # not just through cpp. "Syntax error" is here to catch this case.
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h. */
8031#ifdef __STDC__
8032# include <limits.h>
8033#else
8034# include <assert.h>
8035#endif
8036 Syntax error
8037_ACEOF
8038if ac_fn_cxx_try_cpp "$LINENO"; then :
8039
8040else
8041 # Broken: fails on valid input.
8042continue
8043fi
8044rm -f conftest.err conftest.i conftest.$ac_ext
8045
8046 # OK, works on sane cases. Now check whether nonexistent headers
8047 # can be detected and how.
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h. */
8050#include <ac_nonexistent.h>
8051_ACEOF
8052if ac_fn_cxx_try_cpp "$LINENO"; then :
8053 # Broken: success on invalid input.
8054continue
8055else
8056 # Passes both tests.
8057ac_preproc_ok=:
8058break
8059fi
8060rm -f conftest.err conftest.i conftest.$ac_ext
8061
8062done
8063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8064rm -f conftest.i conftest.err conftest.$ac_ext
8065if $ac_preproc_ok; then :
8066 break
8067fi
8068
8069 done
8070 ac_cv_prog_CXXCPP=$CXXCPP
8071
8072fi
8073 CXXCPP=$ac_cv_prog_CXXCPP
8074else
8075 ac_cv_prog_CXXCPP=$CXXCPP
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8078$as_echo "$CXXCPP" >&6; }
8079ac_preproc_ok=false
8080for ac_cxx_preproc_warn_flag in '' yes
8081do
8082 # Use a header file that comes with gcc, so configuring glibc
8083 # with a fresh cross-compiler works.
8084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085 # <limits.h> exists even on freestanding compilers.
8086 # On the NeXT, cc -E runs the code through the compiler's parser,
8087 # not just through cpp. "Syntax error" is here to catch this case.
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089/* end confdefs.h. */
8090#ifdef __STDC__
8091# include <limits.h>
8092#else
8093# include <assert.h>
8094#endif
8095 Syntax error
8096_ACEOF
8097if ac_fn_cxx_try_cpp "$LINENO"; then :
8098
8099else
8100 # Broken: fails on valid input.
8101continue
8102fi
8103rm -f conftest.err conftest.i conftest.$ac_ext
8104
8105 # OK, works on sane cases. Now check whether nonexistent headers
8106 # can be detected and how.
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h. */
8109#include <ac_nonexistent.h>
8110_ACEOF
8111if ac_fn_cxx_try_cpp "$LINENO"; then :
8112 # Broken: success on invalid input.
8113continue
8114else
8115 # Passes both tests.
8116ac_preproc_ok=:
8117break
8118fi
8119rm -f conftest.err conftest.i conftest.$ac_ext
8120
8121done
8122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8123rm -f conftest.i conftest.err conftest.$ac_ext
8124if $ac_preproc_ok; then :
8125
8126else
8127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8129_lt_caught_CXX_error=yes; }
8130fi
8131
8132ac_ext=c
8133ac_cpp='$CPP $CPPFLAGS'
8134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137
8138else
8139 _lt_caught_CXX_error=yes
8140fi
8141
8142
8143
8144
8145
8146# Set options
8147
8148
8149
8150 enable_dlopen=no
8151
8152
8153 enable_win32_dll=no
8154
8155
8156 # Check whether --enable-shared was given.
8157if test "${enable_shared+set}" = set; then :
8158 enableval=$enable_shared; p=${PACKAGE-default}
8159 case $enableval in
8160 yes) enable_shared=yes ;;
8161 no) enable_shared=no ;;
8162 *)
8163 enable_shared=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_shared=yes
8170 fi
8171 done
8172 IFS="$lt_save_ifs"
8173 ;;
8174 esac
8175else
8176 enable_shared=yes
8177fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187 # Check whether --enable-static was given.
8188if test "${enable_static+set}" = set; then :
8189 enableval=$enable_static; p=${PACKAGE-default}
8190 case $enableval in
8191 yes) enable_static=yes ;;
8192 no) enable_static=no ;;
8193 *)
8194 enable_static=no
8195 # Look at the argument we got. We use all the common list separators.
8196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8197 for pkg in $enableval; do
8198 IFS="$lt_save_ifs"
8199 if test "X$pkg" = "X$p"; then
8200 enable_static=yes
8201 fi
8202 done
8203 IFS="$lt_save_ifs"
8204 ;;
8205 esac
8206else
8207 enable_static=yes
8208fi
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219# Check whether --with-pic was given.
8220if test "${with_pic+set}" = set; then :
8221 withval=$with_pic; pic_mode="$withval"
8222else
8223 pic_mode=default
8224fi
8225
8226
8227test -z "$pic_mode" && pic_mode=default
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239# This can be used to rebuild libtool when needed
8240LIBTOOL_DEPS="$ltmain"
8241
8242# Always use our own libtool.
8243LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269test -z "$LN_S" && LN_S="ln -s"
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284if test -n "${ZSH_VERSION+set}" ; then
8285 setopt NO_GLOB_SUBST
8286fi
8287
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8289$as_echo_n "checking for objdir... " >&6; }
8290if ${lt_cv_objdir+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292else
8293 rm -f .libs 2>/dev/null
8294mkdir .libs 2>/dev/null
8295if test -d .libs; then
8296 lt_cv_objdir=.libs
8297else
8298 # MS-DOS does not allow filenames that begin with a dot.
8299 lt_cv_objdir=_libs
8300fi
8301rmdir .libs 2>/dev/null
8302fi
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8304$as_echo "$lt_cv_objdir" >&6; }
8305objdir=$lt_cv_objdir
8306
8307
8308
8309
8310
8311cat >>confdefs.h <<_ACEOF
8312#define LT_OBJDIR "$lt_cv_objdir/"
8313_ACEOF
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331case $host_os in
8332aix3*)
8333 # AIX sometimes has problems with the GCC collect2 program. For some
8334 # reason, if we set the COLLECT_NAMES environment variable, the problems
8335 # vanish in a puff of smoke.
8336 if test "X${COLLECT_NAMES+set}" != Xset; then
8337 COLLECT_NAMES=
8338 export COLLECT_NAMES
8339 fi
8340 ;;
8341esac
8342
8343# Sed substitution that helps us do robust quoting. It backslashifies
8344# metacharacters that are still active within double-quoted strings.
8345sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8346
8347# Same as above, but do not quote variable references.
8348double_quote_subst='s/\(["`\\]\)/\\\1/g'
8349
8350# Sed substitution to delay expansion of an escaped shell variable in a
8351# double_quote_subst'ed string.
8352delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8353
8354# Sed substitution to delay expansion of an escaped single quote.
8355delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8356
8357# Sed substitution to avoid accidental globbing in evaled expressions
8358no_glob_subst='s/\*/\\\*/g'
8359
8360# Global variables:
8361ofile=libtool
8362can_build_shared=yes
8363
8364# All known linkers require a `.a' archive for static linking (except MSVC,
8365# which needs '.lib').
8366libext=a
8367
8368with_gnu_ld="$lt_cv_prog_gnu_ld"
8369
8370old_CC="$CC"
8371old_CFLAGS="$CFLAGS"
8372
8373# Set sane defaults for various variables
8374test -z "$CC" && CC=cc
8375test -z "$LTCC" && LTCC=$CC
8376test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8377test -z "$LD" && LD=ld
8378test -z "$ac_objext" && ac_objext=o
8379
8380for cc_temp in $compiler""; do
8381 case $cc_temp in
8382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8384 \-*) ;;
8385 *) break;;
8386 esac
8387done
8388cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8389
8390
8391# Only perform the check for file, if the check method requires it
8392test -z "$MAGIC_CMD" && MAGIC_CMD=file
8393case $deplibs_check_method in
8394file_magic*)
8395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8397$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8398if ${lt_cv_path_MAGIC_CMD+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400else
8401 case $MAGIC_CMD in
8402[\\/*] | ?:[\\/]*)
8403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8404 ;;
8405*)
8406 lt_save_MAGIC_CMD="$MAGIC_CMD"
8407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8409 for ac_dir in $ac_dummy; do
8410 IFS="$lt_save_ifs"
8411 test -z "$ac_dir" && ac_dir=.
8412 if test -f $ac_dir/${ac_tool_prefix}file; then
8413 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8414 if test -n "$file_magic_test_file"; then
8415 case $deplibs_check_method in
8416 "file_magic "*)
8417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8420 $EGREP "$file_magic_regex" > /dev/null; then
8421 :
8422 else
8423 cat <<_LT_EOF 1>&2
8424
8425*** Warning: the command libtool uses to detect shared libraries,
8426*** $file_magic_cmd, produces output that libtool cannot recognize.
8427*** The result is that libtool may fail to recognize shared libraries
8428*** as such. This will affect the creation of libtool libraries that
8429*** depend on shared libraries, but programs linked with such libtool
8430*** libraries will work regardless of this problem. Nevertheless, you
8431*** may want to report the problem to your system manager and/or to
8432*** bug-libtool@gnu.org
8433
8434_LT_EOF
8435 fi ;;
8436 esac
8437 fi
8438 break
8439 fi
8440 done
8441 IFS="$lt_save_ifs"
8442 MAGIC_CMD="$lt_save_MAGIC_CMD"
8443 ;;
8444esac
8445fi
8446
8447MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448if test -n "$MAGIC_CMD"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8450$as_echo "$MAGIC_CMD" >&6; }
8451else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453$as_echo "no" >&6; }
8454fi
8455
8456
8457
8458
8459
8460if test -z "$lt_cv_path_MAGIC_CMD"; then
8461 if test -n "$ac_tool_prefix"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8463$as_echo_n "checking for file... " >&6; }
8464if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466else
8467 case $MAGIC_CMD in
8468[\\/*] | ?:[\\/]*)
8469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470 ;;
8471*)
8472 lt_save_MAGIC_CMD="$MAGIC_CMD"
8473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475 for ac_dir in $ac_dummy; do
8476 IFS="$lt_save_ifs"
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f $ac_dir/file; then
8479 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8480 if test -n "$file_magic_test_file"; then
8481 case $deplibs_check_method in
8482 "file_magic "*)
8483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486 $EGREP "$file_magic_regex" > /dev/null; then
8487 :
8488 else
8489 cat <<_LT_EOF 1>&2
8490
8491*** Warning: the command libtool uses to detect shared libraries,
8492*** $file_magic_cmd, produces output that libtool cannot recognize.
8493*** The result is that libtool may fail to recognize shared libraries
8494*** as such. This will affect the creation of libtool libraries that
8495*** depend on shared libraries, but programs linked with such libtool
8496*** libraries will work regardless of this problem. Nevertheless, you
8497*** may want to report the problem to your system manager and/or to
8498*** bug-libtool@gnu.org
8499
8500_LT_EOF
8501 fi ;;
8502 esac
8503 fi
8504 break
8505 fi
8506 done
8507 IFS="$lt_save_ifs"
8508 MAGIC_CMD="$lt_save_MAGIC_CMD"
8509 ;;
8510esac
8511fi
8512
8513MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514if test -n "$MAGIC_CMD"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516$as_echo "$MAGIC_CMD" >&6; }
8517else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519$as_echo "no" >&6; }
8520fi
8521
8522
8523 else
8524 MAGIC_CMD=:
8525 fi
8526fi
8527
8528 fi
8529 ;;
8530esac
8531
8532# Use C for the default configuration in the libtool script
8533
8534lt_save_CC="$CC"
8535ac_ext=c
8536ac_cpp='$CPP $CPPFLAGS'
8537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539ac_compiler_gnu=$ac_cv_c_compiler_gnu
8540
8541
8542# Source file extension for C test sources.
8543ac_ext=c
8544
8545# Object file extension for compiled C test sources.
8546objext=o
8547objext=$objext
8548
8549# Code to be used in simple compile tests
8550lt_simple_compile_test_code="int some_variable = 0;"
8551
8552# Code to be used in simple link tests
8553lt_simple_link_test_code='int main(){return(0);}'
8554
8555
8556
8557
8558
8559
8560
8561# If no C compiler was specified, use CC.
8562LTCC=${LTCC-"$CC"}
8563
8564# If no C compiler flags were specified, use CFLAGS.
8565LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8566
8567# Allow CC to be a program name with arguments.
8568compiler=$CC
8569
8570# Save the default compiler, since it gets overwritten when the other
8571# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8572compiler_DEFAULT=$CC
8573
8574# save warnings/boilerplate of simple test code
8575ac_outfile=conftest.$ac_objext
8576echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8577eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8578_lt_compiler_boilerplate=`cat conftest.err`
8579$RM conftest*
8580
8581ac_outfile=conftest.$ac_objext
8582echo "$lt_simple_link_test_code" >conftest.$ac_ext
8583eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584_lt_linker_boilerplate=`cat conftest.err`
8585$RM -r conftest*
8586
8587
8588## CAVEAT EMPTOR:
8589## There is no encapsulation within the following macros, do not change
8590## the running order or otherwise move them around unless you know exactly
8591## what you are doing...
8592if test -n "$compiler"; then
8593
8594lt_prog_compiler_no_builtin_flag=
8595
8596if test "$GCC" = yes; then
8597 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8598
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8600$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8601if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603else
8604 lt_cv_prog_compiler_rtti_exceptions=no
8605 ac_outfile=conftest.$ac_objext
8606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8607 lt_compiler_flag="-fno-rtti -fno-exceptions"
8608 # Insert the option either (1) after the last *FLAGS variable, or
8609 # (2) before a word containing "conftest.", or (3) at the end.
8610 # Note that $ac_compile itself does not contain backslashes and begins
8611 # with a dollar sign (not a hyphen), so the echo should work correctly.
8612 # The option is referenced via a variable to avoid confusing sed.
8613 lt_compile=`echo "$ac_compile" | $SED \
8614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616 -e 's:$: $lt_compiler_flag:'`
8617 (eval echo "\"\$as_me:8617: $lt_compile\"" >&5)
8618 (eval "$lt_compile" 2>conftest.err)
8619 ac_status=$?
8620 cat conftest.err >&5
8621 echo "$as_me:8621: \$? = $ac_status" >&5
8622 if (exit $ac_status) && test -s "$ac_outfile"; then
8623 # The compiler can only warn and ignore the option if not recognized
8624 # So say no if there are warnings other than the usual output.
8625 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8627 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8628 lt_cv_prog_compiler_rtti_exceptions=yes
8629 fi
8630 fi
8631 $RM conftest*
8632
8633fi
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8635$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8636
8637if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8638 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8639else
8640 :
8641fi
8642
8643fi
8644
8645
8646
8647
8648
8649
8650 lt_prog_compiler_wl=
8651lt_prog_compiler_pic=
8652lt_prog_compiler_static=
8653
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8655$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8656
8657 if test "$GCC" = yes; then
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_static='-static'
8660
8661 case $host_os in
8662 aix*)
8663 # All AIX code is PIC.
8664 if test "$host_cpu" = ia64; then
8665 # AIX 5 now supports IA64 processor
8666 lt_prog_compiler_static='-Bstatic'
8667 fi
8668 ;;
8669
8670 amigaos*)
8671 case $host_cpu in
8672 powerpc)
8673 # see comment about AmigaOS4 .so support
8674 lt_prog_compiler_pic='-fPIC'
8675 ;;
8676 m68k)
8677 # FIXME: we need at least 68020 code to build shared libraries, but
8678 # adding the `-m68020' flag to GCC prevents building anything better,
8679 # like `-m68040'.
8680 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8681 ;;
8682 esac
8683 ;;
8684
8685 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8686 # PIC is the default for these OSes.
8687 ;;
8688
8689 mingw* | cygwin* | pw32* | os2* | cegcc*)
8690 # This hack is so that the source file can tell whether it is being
8691 # built for inclusion in a dll (and should export symbols for example).
8692 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8693 # (--disable-auto-import) libraries
8694 lt_prog_compiler_pic='-DDLL_EXPORT'
8695 ;;
8696
8697 darwin* | rhapsody*)
8698 # PIC is the default on this platform
8699 # Common symbols not allowed in MH_DYLIB files
8700 lt_prog_compiler_pic='-fno-common'
8701 ;;
8702
8703 hpux*)
8704 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8705 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8706 # sets the default TLS model and affects inlining.
8707 case $host_cpu in
8708 hppa*64*)
8709 # +Z the default
8710 ;;
8711 *)
8712 lt_prog_compiler_pic='-fPIC'
8713 ;;
8714 esac
8715 ;;
8716
8717 interix[3-9]*)
8718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8719 # Instead, we relocate shared libraries at runtime.
8720 ;;
8721
8722 msdosdjgpp*)
8723 # Just because we use GCC doesn't mean we suddenly get shared libraries
8724 # on systems that don't support them.
8725 lt_prog_compiler_can_build_shared=no
8726 enable_shared=no
8727 ;;
8728
8729 *nto* | *qnx*)
8730 # QNX uses GNU C++, but need to define -shared option too, otherwise
8731 # it will coredump.
8732 lt_prog_compiler_pic='-fPIC -shared'
8733 ;;
8734
8735 sysv4*MP*)
8736 if test -d /usr/nec; then
8737 lt_prog_compiler_pic=-Kconform_pic
8738 fi
8739 ;;
8740
8741 *)
8742 lt_prog_compiler_pic='-fPIC'
8743 ;;
8744 esac
8745 else
8746 # PORTME Check for flag to pass linker flags through the system compiler.
8747 case $host_os in
8748 aix*)
8749 lt_prog_compiler_wl='-Wl,'
8750 if test "$host_cpu" = ia64; then
8751 # AIX 5 now supports IA64 processor
8752 lt_prog_compiler_static='-Bstatic'
8753 else
8754 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8755 fi
8756 ;;
8757
8758 mingw* | cygwin* | pw32* | os2* | cegcc*)
8759 # This hack is so that the source file can tell whether it is being
8760 # built for inclusion in a dll (and should export symbols for example).
8761 lt_prog_compiler_pic='-DDLL_EXPORT'
8762 ;;
8763
8764 hpux9* | hpux10* | hpux11*)
8765 lt_prog_compiler_wl='-Wl,'
8766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8767 # not for PA HP-UX.
8768 case $host_cpu in
8769 hppa*64*|ia64*)
8770 # +Z the default
8771 ;;
8772 *)
8773 lt_prog_compiler_pic='+Z'
8774 ;;
8775 esac
8776 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8777 lt_prog_compiler_static='${wl}-a ${wl}archive'
8778 ;;
8779
8780 irix5* | irix6* | nonstopux*)
8781 lt_prog_compiler_wl='-Wl,'
8782 # PIC (with -KPIC) is the default.
8783 lt_prog_compiler_static='-non_shared'
8784 ;;
8785
8786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8787 case $cc_basename in
8788 # old Intel for x86_64 which still supported -KPIC.
8789 ecc*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-static'
8793 ;;
8794 # icc used to be incompatible with GCC.
8795 # ICC 10 doesn't accept -KPIC any more.
8796 icc* | ifort*)
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_pic='-fPIC'
8799 lt_prog_compiler_static='-static'
8800 ;;
8801 # Lahey Fortran 8.1.
8802 lf95*)
8803 lt_prog_compiler_wl='-Wl,'
8804 lt_prog_compiler_pic='--shared'
8805 lt_prog_compiler_static='--static'
8806 ;;
8807 pgcc* | pgf77* | pgf90* | pgf95*)
8808 # Portland Group compilers (*not* the Pentium gcc compiler,
8809 # which looks to be a dead project)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-fpic'
8812 lt_prog_compiler_static='-Bstatic'
8813 ;;
8814 ccc*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # All Alpha code is PIC.
8817 lt_prog_compiler_static='-non_shared'
8818 ;;
8819 xl*)
8820 # IBM XL C 8.0/Fortran 10.1 on PPC
8821 lt_prog_compiler_wl='-Wl,'
8822 lt_prog_compiler_pic='-qpic'
8823 lt_prog_compiler_static='-qstaticlink'
8824 ;;
8825 *)
8826 case `$CC -V 2>&1 | sed 5q` in
8827 *Sun\ C*)
8828 # Sun C 5.9
8829 lt_prog_compiler_pic='-KPIC'
8830 lt_prog_compiler_static='-Bstatic'
8831 lt_prog_compiler_wl='-Wl,'
8832 ;;
8833 *Sun\ F*)
8834 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8835 lt_prog_compiler_pic='-KPIC'
8836 lt_prog_compiler_static='-Bstatic'
8837 lt_prog_compiler_wl=''
8838 ;;
8839 esac
8840 ;;
8841 esac
8842 ;;
8843
8844 newsos6)
8845 lt_prog_compiler_pic='-KPIC'
8846 lt_prog_compiler_static='-Bstatic'
8847 ;;
8848
8849 *nto* | *qnx*)
8850 # QNX uses GNU C++, but need to define -shared option too, otherwise
8851 # it will coredump.
8852 lt_prog_compiler_pic='-fPIC -shared'
8853 ;;
8854
8855 osf3* | osf4* | osf5*)
8856 lt_prog_compiler_wl='-Wl,'
8857 # All OSF/1 code is PIC.
8858 lt_prog_compiler_static='-non_shared'
8859 ;;
8860
8861 rdos*)
8862 lt_prog_compiler_static='-non_shared'
8863 ;;
8864
8865 solaris*)
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 case $cc_basename in
8869 f77* | f90* | f95*)
8870 lt_prog_compiler_wl='-Qoption ld ';;
8871 *)
8872 lt_prog_compiler_wl='-Wl,';;
8873 esac
8874 ;;
8875
8876 sunos4*)
8877 lt_prog_compiler_wl='-Qoption ld '
8878 lt_prog_compiler_pic='-PIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
8881
8882 sysv4 | sysv4.2uw2* | sysv4.3*)
8883 lt_prog_compiler_wl='-Wl,'
8884 lt_prog_compiler_pic='-KPIC'
8885 lt_prog_compiler_static='-Bstatic'
8886 ;;
8887
8888 sysv4*MP*)
8889 if test -d /usr/nec ;then
8890 lt_prog_compiler_pic='-Kconform_pic'
8891 lt_prog_compiler_static='-Bstatic'
8892 fi
8893 ;;
8894
8895 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8896 lt_prog_compiler_wl='-Wl,'
8897 lt_prog_compiler_pic='-KPIC'
8898 lt_prog_compiler_static='-Bstatic'
8899 ;;
8900
8901 unicos*)
8902 lt_prog_compiler_wl='-Wl,'
8903 lt_prog_compiler_can_build_shared=no
8904 ;;
8905
8906 uts4*)
8907 lt_prog_compiler_pic='-pic'
8908 lt_prog_compiler_static='-Bstatic'
8909 ;;
8910
8911 *)
8912 lt_prog_compiler_can_build_shared=no
8913 ;;
8914 esac
8915 fi
8916
8917case $host_os in
8918 # For platforms which do not support PIC, -DPIC is meaningless:
8919 *djgpp*)
8920 lt_prog_compiler_pic=
8921 ;;
8922 *)
8923 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8924 ;;
8925esac
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8927$as_echo "$lt_prog_compiler_pic" >&6; }
8928
8929
8930
8931
8932
8933
8934#
8935# Check to make sure the PIC flag actually works.
8936#
8937if test -n "$lt_prog_compiler_pic"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8939$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8940if ${lt_cv_prog_compiler_pic_works+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942else
8943 lt_cv_prog_compiler_pic_works=no
8944 ac_outfile=conftest.$ac_objext
8945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8946 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8947 # Insert the option either (1) after the last *FLAGS variable, or
8948 # (2) before a word containing "conftest.", or (3) at the end.
8949 # Note that $ac_compile itself does not contain backslashes and begins
8950 # with a dollar sign (not a hyphen), so the echo should work correctly.
8951 # The option is referenced via a variable to avoid confusing sed.
8952 lt_compile=`echo "$ac_compile" | $SED \
8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8955 -e 's:$: $lt_compiler_flag:'`
8956 (eval echo "\"\$as_me:8956: $lt_compile\"" >&5)
8957 (eval "$lt_compile" 2>conftest.err)
8958 ac_status=$?
8959 cat conftest.err >&5
8960 echo "$as_me:8960: \$? = $ac_status" >&5
8961 if (exit $ac_status) && test -s "$ac_outfile"; then
8962 # The compiler can only warn and ignore the option if not recognized
8963 # So say no if there are warnings other than the usual output.
8964 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8967 lt_cv_prog_compiler_pic_works=yes
8968 fi
8969 fi
8970 $RM conftest*
8971
8972fi
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8974$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8975
8976if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8977 case $lt_prog_compiler_pic in
8978 "" | " "*) ;;
8979 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8980 esac
8981else
8982 lt_prog_compiler_pic=
8983 lt_prog_compiler_can_build_shared=no
8984fi
8985
8986fi
8987
8988
8989
8990
8991
8992
8993#
8994# Check to make sure the static flag actually works.
8995#
8996wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8998$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8999if ${lt_cv_prog_compiler_static_works+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001else
9002 lt_cv_prog_compiler_static_works=no
9003 save_LDFLAGS="$LDFLAGS"
9004 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9005 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9006 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9007 # The linker can only warn and ignore the option if not recognized
9008 # So say no if there are warnings
9009 if test -s conftest.err; then
9010 # Append any errors to the config.log.
9011 cat conftest.err 1>&5
9012 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9014 if diff conftest.exp conftest.er2 >/dev/null; then
9015 lt_cv_prog_compiler_static_works=yes
9016 fi
9017 else
9018 lt_cv_prog_compiler_static_works=yes
9019 fi
9020 fi
9021 $RM -r conftest*
9022 LDFLAGS="$save_LDFLAGS"
9023
9024fi
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9026$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9027
9028if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9029 :
9030else
9031 lt_prog_compiler_static=
9032fi
9033
9034
9035
9036
9037
9038
9039
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9041$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9042if ${lt_cv_prog_compiler_c_o+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044else
9045 lt_cv_prog_compiler_c_o=no
9046 $RM -r conftest 2>/dev/null
9047 mkdir conftest
9048 cd conftest
9049 mkdir out
9050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9051
9052 lt_compiler_flag="-o out/conftest2.$ac_objext"
9053 # Insert the option either (1) after the last *FLAGS variable, or
9054 # (2) before a word containing "conftest.", or (3) at the end.
9055 # Note that $ac_compile itself does not contain backslashes and begins
9056 # with a dollar sign (not a hyphen), so the echo should work correctly.
9057 lt_compile=`echo "$ac_compile" | $SED \
9058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9060 -e 's:$: $lt_compiler_flag:'`
9061 (eval echo "\"\$as_me:9061: $lt_compile\"" >&5)
9062 (eval "$lt_compile" 2>out/conftest.err)
9063 ac_status=$?
9064 cat out/conftest.err >&5
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9067 then
9068 # The compiler can only warn and ignore the option if not recognized
9069 # So say no if there are warnings
9070 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9073 lt_cv_prog_compiler_c_o=yes
9074 fi
9075 fi
9076 chmod u+w . 2>&5
9077 $RM conftest*
9078 # SGI C++ compiler will create directory out/ii_files/ for
9079 # template instantiation
9080 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9081 $RM out/* && rmdir out
9082 cd ..
9083 $RM -r conftest
9084 $RM conftest*
9085
9086fi
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9088$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9089
9090
9091
9092
9093
9094
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9097if ${lt_cv_prog_compiler_c_o+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099else
9100 lt_cv_prog_compiler_c_o=no
9101 $RM -r conftest 2>/dev/null
9102 mkdir conftest
9103 cd conftest
9104 mkdir out
9105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9106
9107 lt_compiler_flag="-o out/conftest2.$ac_objext"
9108 # Insert the option either (1) after the last *FLAGS variable, or
9109 # (2) before a word containing "conftest.", or (3) at the end.
9110 # Note that $ac_compile itself does not contain backslashes and begins
9111 # with a dollar sign (not a hyphen), so the echo should work correctly.
9112 lt_compile=`echo "$ac_compile" | $SED \
9113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9115 -e 's:$: $lt_compiler_flag:'`
9116 (eval echo "\"\$as_me:9116: $lt_compile\"" >&5)
9117 (eval "$lt_compile" 2>out/conftest.err)
9118 ac_status=$?
9119 cat out/conftest.err >&5
9120 echo "$as_me:9120: \$? = $ac_status" >&5
9121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9122 then
9123 # The compiler can only warn and ignore the option if not recognized
9124 # So say no if there are warnings
9125 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9128 lt_cv_prog_compiler_c_o=yes
9129 fi
9130 fi
9131 chmod u+w . 2>&5
9132 $RM conftest*
9133 # SGI C++ compiler will create directory out/ii_files/ for
9134 # template instantiation
9135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9136 $RM out/* && rmdir out
9137 cd ..
9138 $RM -r conftest
9139 $RM conftest*
9140
9141fi
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9143$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9144
9145
9146
9147
9148hard_links="nottested"
9149if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9150 # do not overwrite the value of need_locks provided by the user
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9152$as_echo_n "checking if we can lock with hard links... " >&6; }
9153 hard_links=yes
9154 $RM conftest*
9155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9156 touch conftest.a
9157 ln conftest.a conftest.b 2>&5 || hard_links=no
9158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9160$as_echo "$hard_links" >&6; }
9161 if test "$hard_links" = no; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9163$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9164 need_locks=warn
9165 fi
9166else
9167 need_locks=no
9168fi
9169
9170
9171
9172
9173
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9176$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9177
9178 runpath_var=
9179 allow_undefined_flag=
9180 always_export_symbols=no
9181 archive_cmds=
9182 archive_expsym_cmds=
9183 compiler_needs_object=no
9184 enable_shared_with_static_runtimes=no
9185 export_dynamic_flag_spec=
9186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9187 hardcode_automatic=no
9188 hardcode_direct=no
9189 hardcode_direct_absolute=no
9190 hardcode_libdir_flag_spec=
9191 hardcode_libdir_flag_spec_ld=
9192 hardcode_libdir_separator=
9193 hardcode_minus_L=no
9194 hardcode_shlibpath_var=unsupported
9195 inherit_rpath=no
9196 link_all_deplibs=unknown
9197 module_cmds=
9198 module_expsym_cmds=
9199 old_archive_from_new_cmds=
9200 old_archive_from_expsyms_cmds=
9201 thread_safe_flag_spec=
9202 whole_archive_flag_spec=
9203 # include_expsyms should be a list of space-separated symbols to be *always*
9204 # included in the symbol list
9205 include_expsyms=
9206 # exclude_expsyms can be an extended regexp of symbols to exclude
9207 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9209 # as well as any symbol that contains `d'.
9210 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9212 # platforms (ab)use it in PIC code, but their linkers get confused if
9213 # the symbol is explicitly referenced. Since portable code cannot
9214 # rely on this symbol name, it's probably fine to never include it in
9215 # preloaded symbol tables.
9216 # Exclude shared library initialization/finalization symbols.
9217 extract_expsyms_cmds=
9218
9219 case $host_os in
9220 cygwin* | mingw* | pw32* | cegcc*)
9221 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9222 # When not using gcc, we currently assume that we are using
9223 # Microsoft Visual C++.
9224 if test "$GCC" != yes; then
9225 with_gnu_ld=no
9226 fi
9227 ;;
9228 interix*)
9229 # we just hope/assume this is gcc and not c89 (= MSVC++)
9230 with_gnu_ld=yes
9231 ;;
9232 openbsd*)
9233 with_gnu_ld=no
9234 ;;
9235 linux* | k*bsd*-gnu)
9236 link_all_deplibs=no
9237 ;;
9238 esac
9239
9240 ld_shlibs=yes
9241 if test "$with_gnu_ld" = yes; then
9242 # If archive_cmds runs LD, not CC, wlarc should be empty
9243 wlarc='${wl}'
9244
9245 # Set some defaults for GNU ld with shared library support. These
9246 # are reset later if shared libraries are not supported. Putting them
9247 # here allows them to be overridden if necessary.
9248 runpath_var=LD_RUN_PATH
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 export_dynamic_flag_spec='${wl}--export-dynamic'
9251 # ancient GNU ld didn't support --whole-archive et. al.
9252 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9253 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9254 else
9255 whole_archive_flag_spec=
9256 fi
9257 supports_anon_versioning=no
9258 case `$LD -v 2>&1` in
9259 *GNU\ gold*) supports_anon_versioning=yes ;;
9260 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9263 *\ 2.11.*) ;; # other 2.11 versions
9264 *) supports_anon_versioning=yes ;;
9265 esac
9266
9267 # See if GNU ld supports shared libraries.
9268 case $host_os in
9269 aix[3-9]*)
9270 # On AIX/PPC, the GNU linker is very broken
9271 if test "$host_cpu" != ia64; then
9272 ld_shlibs=no
9273 cat <<_LT_EOF 1>&2
9274
9275*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9276*** to be unable to reliably create shared libraries on AIX.
9277*** Therefore, libtool is disabling shared libraries support. If you
9278*** really care for shared libraries, you may want to modify your PATH
9279*** so that a non-GNU linker is found, and then restart.
9280
9281_LT_EOF
9282 fi
9283 ;;
9284
9285 amigaos*)
9286 case $host_cpu in
9287 powerpc)
9288 # see comment about AmigaOS4 .so support
9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 archive_expsym_cmds=''
9291 ;;
9292 m68k)
9293 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)'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_minus_L=yes
9296 ;;
9297 esac
9298 ;;
9299
9300 beos*)
9301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 allow_undefined_flag=unsupported
9303 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9304 # support --undefined. This deserves some investigation. FIXME
9305 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 else
9307 ld_shlibs=no
9308 fi
9309 ;;
9310
9311 cygwin* | mingw* | pw32* | cegcc*)
9312 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9313 # as there is no search path for DLLs.
9314 hardcode_libdir_flag_spec='-L$libdir'
9315 allow_undefined_flag=unsupported
9316 always_export_symbols=no
9317 enable_shared_with_static_runtimes=yes
9318 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9319
9320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9322 # If the export-symbols file already is a .def file (1st line
9323 # is EXPORTS), use it as is; otherwise, prepend...
9324 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9325 cp $export_symbols $output_objdir/$soname.def;
9326 else
9327 echo EXPORTS > $output_objdir/$soname.def;
9328 cat $export_symbols >> $output_objdir/$soname.def;
9329 fi~
9330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9331 else
9332 ld_shlibs=no
9333 fi
9334 ;;
9335
9336 interix[3-9]*)
9337 hardcode_direct=no
9338 hardcode_shlibpath_var=no
9339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9340 export_dynamic_flag_spec='${wl}-E'
9341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9342 # Instead, shared libraries are loaded at an image base (0x10000000 by
9343 # default) and relocated if they conflict, which is a slow very memory
9344 # consuming and fragmenting process. To avoid this, we pick a random,
9345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9346 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9348 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'
9349 ;;
9350
9351 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9352 tmp_diet=no
9353 if test "$host_os" = linux-dietlibc; then
9354 case $cc_basename in
9355 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9356 esac
9357 fi
9358 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9359 && test "$tmp_diet" = no
9360 then
9361 tmp_addflag=
9362 tmp_sharedflag='-shared'
9363 case $cc_basename,$host_cpu in
9364 pgcc*) # Portland Group C compiler
9365 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9366 tmp_addflag=' $pic_flag'
9367 ;;
9368 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9369 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9370 tmp_addflag=' $pic_flag -Mnomain' ;;
9371 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9372 tmp_addflag=' -i_dynamic' ;;
9373 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9374 tmp_addflag=' -i_dynamic -nofor_main' ;;
9375 ifc* | ifort*) # Intel Fortran compiler
9376 tmp_addflag=' -nofor_main' ;;
9377 lf95*) # Lahey Fortran 8.1
9378 whole_archive_flag_spec=
9379 tmp_sharedflag='--shared' ;;
9380 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9381 tmp_sharedflag='-qmkshrobj'
9382 tmp_addflag= ;;
9383 esac
9384 case `$CC -V 2>&1 | sed 5q` in
9385 *Sun\ C*) # Sun C 5.9
9386 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9387 compiler_needs_object=yes
9388 tmp_sharedflag='-G' ;;
9389 *Sun\ F*) # Sun Fortran 8.3
9390 tmp_sharedflag='-G' ;;
9391 esac
9392 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393
9394 if test "x$supports_anon_versioning" = xyes; then
9395 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9397 echo "local: *; };" >> $output_objdir/$libname.ver~
9398 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9399 fi
9400
9401 case $cc_basename in
9402 xlf*)
9403 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9404 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9405 hardcode_libdir_flag_spec=
9406 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9407 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9408 if test "x$supports_anon_versioning" = xyes; then
9409 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9410 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9411 echo "local: *; };" >> $output_objdir/$libname.ver~
9412 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9413 fi
9414 ;;
9415 esac
9416 else
9417 ld_shlibs=no
9418 fi
9419 ;;
9420
9421 netbsd* | netbsdelf*-gnu)
9422 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9423 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9424 wlarc=
9425 else
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428 fi
9429 ;;
9430
9431 solaris*)
9432 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9433 ld_shlibs=no
9434 cat <<_LT_EOF 1>&2
9435
9436*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9437*** create shared libraries on Solaris systems. Therefore, libtool
9438*** is disabling shared libraries support. We urge you to upgrade GNU
9439*** binutils to release 2.9.1 or newer. Another option is to modify
9440*** your PATH or compiler configuration so that the native linker is
9441*** used, and then restart.
9442
9443_LT_EOF
9444 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9447 else
9448 ld_shlibs=no
9449 fi
9450 ;;
9451
9452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9453 case `$LD -v 2>&1` in
9454 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9455 ld_shlibs=no
9456 cat <<_LT_EOF 1>&2
9457
9458*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9459*** reliably create shared libraries on SCO systems. Therefore, libtool
9460*** is disabling shared libraries support. We urge you to upgrade GNU
9461*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9462*** your PATH or compiler configuration so that the native linker is
9463*** used, and then restart.
9464
9465_LT_EOF
9466 ;;
9467 *)
9468 # For security reasons, it is highly recommended that you always
9469 # use absolute paths for naming shared libraries, and exclude the
9470 # DT_RUNPATH tag from executables and libraries. But doing so
9471 # requires that you compile everything twice, which is a pain.
9472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9476 else
9477 ld_shlibs=no
9478 fi
9479 ;;
9480 esac
9481 ;;
9482
9483 sunos4*)
9484 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9485 wlarc=
9486 hardcode_direct=yes
9487 hardcode_shlibpath_var=no
9488 ;;
9489
9490 *)
9491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9494 else
9495 ld_shlibs=no
9496 fi
9497 ;;
9498 esac
9499
9500 if test "$ld_shlibs" = no; then
9501 runpath_var=
9502 hardcode_libdir_flag_spec=
9503 export_dynamic_flag_spec=
9504 whole_archive_flag_spec=
9505 fi
9506 else
9507 # PORTME fill in a description of your system's linker (not GNU ld)
9508 case $host_os in
9509 aix3*)
9510 allow_undefined_flag=unsupported
9511 always_export_symbols=yes
9512 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'
9513 # Note: this linker hardcodes the directories in LIBPATH if there
9514 # are no directories specified by -L.
9515 hardcode_minus_L=yes
9516 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9517 # Neither direct hardcoding nor static linking is supported with a
9518 # broken collect2.
9519 hardcode_direct=unsupported
9520 fi
9521 ;;
9522
9523 aix[4-9]*)
9524 if test "$host_cpu" = ia64; then
9525 # On IA64, the linker does run time linking by default, so we don't
9526 # have to do anything special.
9527 aix_use_runtimelinking=no
9528 exp_sym_flag='-Bexport'
9529 no_entry_flag=""
9530 else
9531 # If we're using GNU nm, then we don't want the "-C" option.
9532 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9533 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9534 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9535 else
9536 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'
9537 fi
9538 aix_use_runtimelinking=no
9539
9540 # Test if we are trying to use run time linking or normal
9541 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9542 # need to do runtime linking.
9543 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9544 for ld_flag in $LDFLAGS; do
9545 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9546 aix_use_runtimelinking=yes
9547 break
9548 fi
9549 done
9550 ;;
9551 esac
9552
9553 exp_sym_flag='-bexport'
9554 no_entry_flag='-bnoentry'
9555 fi
9556
9557 # When large executables or shared objects are built, AIX ld can
9558 # have problems creating the table of contents. If linking a library
9559 # or program results in "error TOC overflow" add -mminimal-toc to
9560 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9561 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9562
9563 archive_cmds=''
9564 hardcode_direct=yes
9565 hardcode_direct_absolute=yes
9566 hardcode_libdir_separator=':'
9567 link_all_deplibs=yes
9568 file_list_spec='${wl}-f,'
9569
9570 if test "$GCC" = yes; then
9571 case $host_os in aix4.[012]|aix4.[012].*)
9572 # We only want to do this on AIX 4.2 and lower, the check
9573 # below for broken collect2 doesn't work under 4.3+
9574 collect2name=`${CC} -print-prog-name=collect2`
9575 if test -f "$collect2name" &&
9576 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9577 then
9578 # We have reworked collect2
9579 :
9580 else
9581 # We have old collect2
9582 hardcode_direct=unsupported
9583 # It fails to find uninstalled libraries when the uninstalled
9584 # path is not listed in the libpath. Setting hardcode_minus_L
9585 # to unsupported forces relinking
9586 hardcode_minus_L=yes
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_libdir_separator=
9589 fi
9590 ;;
9591 esac
9592 shared_flag='-shared'
9593 if test "$aix_use_runtimelinking" = yes; then
9594 shared_flag="$shared_flag "'${wl}-G'
9595 fi
9596 link_all_deplibs=no
9597 else
9598 # not using gcc
9599 if test "$host_cpu" = ia64; then
9600 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9601 # chokes on -Wl,-G. The following line is correct:
9602 shared_flag='-G'
9603 else
9604 if test "$aix_use_runtimelinking" = yes; then
9605 shared_flag='${wl}-G'
9606 else
9607 shared_flag='${wl}-bM:SRE'
9608 fi
9609 fi
9610 fi
9611
9612 export_dynamic_flag_spec='${wl}-bexpall'
9613 # It seems that -bexpall does not export symbols beginning with
9614 # underscore (_), so it is better to generate a list of symbols to export.
9615 always_export_symbols=yes
9616 if test "$aix_use_runtimelinking" = yes; then
9617 # Warning - without using the other runtime loading flags (-brtl),
9618 # -berok will link without error, but may produce a broken library.
9619 allow_undefined_flag='-berok'
9620 # Determine the default libpath from the value encoded in an
9621 # empty executable.
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h. */
9624
9625int
9626main ()
9627{
9628
9629 ;
9630 return 0;
9631}
9632_ACEOF
9633if ac_fn_c_try_link "$LINENO"; then :
9634
9635lt_aix_libpath_sed='
9636 /Import File Strings/,/^$/ {
9637 /^0/ {
9638 s/^0 *\(.*\)$/\1/
9639 p
9640 }
9641 }'
9642aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9643# Check for a 64-bit object if we didn't find anything.
9644if test -z "$aix_libpath"; then
9645 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646fi
9647fi
9648rm -f core conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9651
9652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9653 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9654 else
9655 if test "$host_cpu" = ia64; then
9656 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9657 allow_undefined_flag="-z nodefs"
9658 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"
9659 else
9660 # Determine the default libpath from the value encoded in an
9661 # empty executable.
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663/* end confdefs.h. */
9664
9665int
9666main ()
9667{
9668
9669 ;
9670 return 0;
9671}
9672_ACEOF
9673if ac_fn_c_try_link "$LINENO"; then :
9674
9675lt_aix_libpath_sed='
9676 /Import File Strings/,/^$/ {
9677 /^0/ {
9678 s/^0 *\(.*\)$/\1/
9679 p
9680 }
9681 }'
9682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9683# Check for a 64-bit object if we didn't find anything.
9684if test -z "$aix_libpath"; then
9685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9686fi
9687fi
9688rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9691
9692 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9693 # Warning - without using the other run time loading flags,
9694 # -berok will link without error, but may produce a broken library.
9695 no_undefined_flag=' ${wl}-bernotok'
9696 allow_undefined_flag=' ${wl}-berok'
9697 # Exported symbols can be pulled into shared objects from archives
9698 whole_archive_flag_spec='$convenience'
9699 archive_cmds_need_lc=yes
9700 # This is similar to how AIX traditionally builds its shared libraries.
9701 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'
9702 fi
9703 fi
9704 ;;
9705
9706 amigaos*)
9707 case $host_cpu in
9708 powerpc)
9709 # see comment about AmigaOS4 .so support
9710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711 archive_expsym_cmds=''
9712 ;;
9713 m68k)
9714 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)'
9715 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_minus_L=yes
9717 ;;
9718 esac
9719 ;;
9720
9721 bsdi[45]*)
9722 export_dynamic_flag_spec=-rdynamic
9723 ;;
9724
9725 cygwin* | mingw* | pw32* | cegcc*)
9726 # When not using gcc, we currently assume that we are using
9727 # Microsoft Visual C++.
9728 # hardcode_libdir_flag_spec is actually meaningless, as there is
9729 # no search path for DLLs.
9730 hardcode_libdir_flag_spec=' '
9731 allow_undefined_flag=unsupported
9732 # Tell ltmain to make .lib files, not .a files.
9733 libext=lib
9734 # Tell ltmain to make .dll files, not .so files.
9735 shrext_cmds=".dll"
9736 # FIXME: Setting linknames here is a bad hack.
9737 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9738 # The linker will automatically build a .lib file if we build a DLL.
9739 old_archive_from_new_cmds='true'
9740 # FIXME: Should let the user specify the lib program.
9741 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9742 fix_srcfile_path='`cygpath -w "$srcfile"`'
9743 enable_shared_with_static_runtimes=yes
9744 ;;
9745
9746 darwin* | rhapsody*)
9747
9748
9749 archive_cmds_need_lc=no
9750 hardcode_direct=no
9751 hardcode_automatic=yes
9752 hardcode_shlibpath_var=unsupported
9753 whole_archive_flag_spec=''
9754 link_all_deplibs=yes
9755 allow_undefined_flag="$_lt_dar_allow_undefined"
9756 case $cc_basename in
9757 ifort*) _lt_dar_can_shared=yes ;;
9758 *) _lt_dar_can_shared=$GCC ;;
9759 esac
9760 if test "$_lt_dar_can_shared" = "yes"; then
9761 output_verbose_link_cmd=echo
9762 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9763 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9764 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}"
9765 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}"
9766
9767 else
9768 ld_shlibs=no
9769 fi
9770
9771 ;;
9772
9773 dgux*)
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_shlibpath_var=no
9777 ;;
9778
9779 freebsd1*)
9780 ld_shlibs=no
9781 ;;
9782
9783 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784 # support. Future versions do this automatically, but an explicit c++rt0.o
9785 # does not break anything, and helps significantly (at the cost of a little
9786 # extra space).
9787 freebsd2.2*)
9788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789 hardcode_libdir_flag_spec='-R$libdir'
9790 hardcode_direct=yes
9791 hardcode_shlibpath_var=no
9792 ;;
9793
9794 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9795 freebsd2*)
9796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9797 hardcode_direct=yes
9798 hardcode_minus_L=yes
9799 hardcode_shlibpath_var=no
9800 ;;
9801
9802 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803 freebsd* | dragonfly*)
9804 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 hardcode_direct=yes
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 hpux9*)
9811 if test "$GCC" = yes; then
9812 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9813 else
9814 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'
9815 fi
9816 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817 hardcode_libdir_separator=:
9818 hardcode_direct=yes
9819
9820 # hardcode_minus_L: Not really in the search PATH,
9821 # but as the default location of the library.
9822 hardcode_minus_L=yes
9823 export_dynamic_flag_spec='${wl}-E'
9824 ;;
9825
9826 hpux10*)
9827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9828 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829 else
9830 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831 fi
9832 if test "$with_gnu_ld" = no; then
9833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834 hardcode_libdir_flag_spec_ld='+b $libdir'
9835 hardcode_libdir_separator=:
9836 hardcode_direct=yes
9837 hardcode_direct_absolute=yes
9838 export_dynamic_flag_spec='${wl}-E'
9839 # hardcode_minus_L: Not really in the search PATH,
9840 # but as the default location of the library.
9841 hardcode_minus_L=yes
9842 fi
9843 ;;
9844
9845 hpux11*)
9846 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9847 case $host_cpu in
9848 hppa*64*)
9849 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 ;;
9851 ia64*)
9852 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9853 ;;
9854 *)
9855 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9856 ;;
9857 esac
9858 else
9859 case $host_cpu in
9860 hppa*64*)
9861 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 ;;
9863 ia64*)
9864 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9865 ;;
9866 *)
9867 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9868 ;;
9869 esac
9870 fi
9871 if test "$with_gnu_ld" = no; then
9872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9873 hardcode_libdir_separator=:
9874
9875 case $host_cpu in
9876 hppa*64*|ia64*)
9877 hardcode_direct=no
9878 hardcode_shlibpath_var=no
9879 ;;
9880 *)
9881 hardcode_direct=yes
9882 hardcode_direct_absolute=yes
9883 export_dynamic_flag_spec='${wl}-E'
9884
9885 # hardcode_minus_L: Not really in the search PATH,
9886 # but as the default location of the library.
9887 hardcode_minus_L=yes
9888 ;;
9889 esac
9890 fi
9891 ;;
9892
9893 irix5* | irix6* | nonstopux*)
9894 if test "$GCC" = yes; then
9895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9896 # Try to use the -exported_symbol ld option, if it does not
9897 # work, assume that -exports_file does not work either and
9898 # implicitly export all symbols.
9899 save_LDFLAGS="$LDFLAGS"
9900 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h. */
9903int foo(void) {}
9904_ACEOF
9905if ac_fn_c_try_link "$LINENO"; then :
9906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9907
9908fi
9909rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LDFLAGS="$save_LDFLAGS"
9912 else
9913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9915 fi
9916 archive_cmds_need_lc='no'
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 hardcode_libdir_separator=:
9919 inherit_rpath=yes
9920 link_all_deplibs=yes
9921 ;;
9922
9923 netbsd* | netbsdelf*-gnu)
9924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9926 else
9927 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9928 fi
9929 hardcode_libdir_flag_spec='-R$libdir'
9930 hardcode_direct=yes
9931 hardcode_shlibpath_var=no
9932 ;;
9933
9934 newsos6)
9935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_direct=yes
9937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938 hardcode_libdir_separator=:
9939 hardcode_shlibpath_var=no
9940 ;;
9941
9942 *nto* | *qnx*)
9943 ;;
9944
9945 openbsd*)
9946 if test -f /usr/libexec/ld.so; then
9947 hardcode_direct=yes
9948 hardcode_shlibpath_var=no
9949 hardcode_direct_absolute=yes
9950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9954 export_dynamic_flag_spec='${wl}-E'
9955 else
9956 case $host_os in
9957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9959 hardcode_libdir_flag_spec='-R$libdir'
9960 ;;
9961 *)
9962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964 ;;
9965 esac
9966 fi
9967 else
9968 ld_shlibs=no
9969 fi
9970 ;;
9971
9972 os2*)
9973 hardcode_libdir_flag_spec='-L$libdir'
9974 hardcode_minus_L=yes
9975 allow_undefined_flag=unsupported
9976 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'
9977 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9978 ;;
9979
9980 osf3*)
9981 if test "$GCC" = yes; then
9982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9983 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9984 else
9985 allow_undefined_flag=' -expect_unresolved \*'
9986 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9987 fi
9988 archive_cmds_need_lc='no'
9989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990 hardcode_libdir_separator=:
9991 ;;
9992
9993 osf4* | osf5*) # as osf3* with the addition of -msym flag
9994 if test "$GCC" = yes; then
9995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9996 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9998 else
9999 allow_undefined_flag=' -expect_unresolved \*'
10000 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10001 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~
10002 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10003
10004 # Both c and cxx compiler support -rpath directly
10005 hardcode_libdir_flag_spec='-rpath $libdir'
10006 fi
10007 archive_cmds_need_lc='no'
10008 hardcode_libdir_separator=:
10009 ;;
10010
10011 solaris*)
10012 no_undefined_flag=' -z defs'
10013 if test "$GCC" = yes; then
10014 wlarc='${wl}'
10015 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10017 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10018 else
10019 case `$CC -V 2>&1` in
10020 *"Compilers 5.0"*)
10021 wlarc=''
10022 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10024 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10025 ;;
10026 *)
10027 wlarc='${wl}'
10028 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10030 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10031 ;;
10032 esac
10033 fi
10034 hardcode_libdir_flag_spec='-R$libdir'
10035 hardcode_shlibpath_var=no
10036 case $host_os in
10037 solaris2.[0-5] | solaris2.[0-5].*) ;;
10038 *)
10039 # The compiler driver will combine and reorder linker options,
10040 # but understands `-z linker_flag'. GCC discards it without `$wl',
10041 # but is careful enough not to reorder.
10042 # Supported since Solaris 2.6 (maybe 2.5.1?)
10043 if test "$GCC" = yes; then
10044 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10045 else
10046 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10047 fi
10048 ;;
10049 esac
10050 link_all_deplibs=yes
10051 ;;
10052
10053 sunos4*)
10054 if test "x$host_vendor" = xsequent; then
10055 # Use $CC to link under sequent, because it throws in some extra .o
10056 # files that make .init and .fini sections work.
10057 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10060 fi
10061 hardcode_libdir_flag_spec='-L$libdir'
10062 hardcode_direct=yes
10063 hardcode_minus_L=yes
10064 hardcode_shlibpath_var=no
10065 ;;
10066
10067 sysv4)
10068 case $host_vendor in
10069 sni)
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_direct=yes # is this really true???
10072 ;;
10073 siemens)
10074 ## LD is ld it makes a PLAMLIB
10075 ## CC just makes a GrossModule.
10076 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10077 reload_cmds='$CC -r -o $output$reload_objs'
10078 hardcode_direct=no
10079 ;;
10080 motorola)
10081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10083 ;;
10084 esac
10085 runpath_var='LD_RUN_PATH'
10086 hardcode_shlibpath_var=no
10087 ;;
10088
10089 sysv4.3*)
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_shlibpath_var=no
10092 export_dynamic_flag_spec='-Bexport'
10093 ;;
10094
10095 sysv4*MP*)
10096 if test -d /usr/nec; then
10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_shlibpath_var=no
10099 runpath_var=LD_RUN_PATH
10100 hardcode_runpath_var=yes
10101 ld_shlibs=yes
10102 fi
10103 ;;
10104
10105 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10106 no_undefined_flag='${wl}-z,text'
10107 archive_cmds_need_lc=no
10108 hardcode_shlibpath_var=no
10109 runpath_var='LD_RUN_PATH'
10110
10111 if test "$GCC" = yes; then
10112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 else
10115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 fi
10118 ;;
10119
10120 sysv5* | sco3.2v5* | sco5v6*)
10121 # Note: We can NOT use -z defs as we might desire, because we do not
10122 # link with -lc, and that would cause any symbols used from libc to
10123 # always be unresolved, which means just about no library would
10124 # ever link correctly. If we're not using GNU ld we use -z text
10125 # though, which does catch some bad symbols but isn't as heavy-handed
10126 # as -z defs.
10127 no_undefined_flag='${wl}-z,text'
10128 allow_undefined_flag='${wl}-z,nodefs'
10129 archive_cmds_need_lc=no
10130 hardcode_shlibpath_var=no
10131 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10132 hardcode_libdir_separator=':'
10133 link_all_deplibs=yes
10134 export_dynamic_flag_spec='${wl}-Bexport'
10135 runpath_var='LD_RUN_PATH'
10136
10137 if test "$GCC" = yes; then
10138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 else
10141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 fi
10144 ;;
10145
10146 uts4*)
10147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148 hardcode_libdir_flag_spec='-L$libdir'
10149 hardcode_shlibpath_var=no
10150 ;;
10151
10152 *)
10153 ld_shlibs=no
10154 ;;
10155 esac
10156
10157 if test x$host_vendor = xsni; then
10158 case $host in
10159 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10160 export_dynamic_flag_spec='${wl}-Blargedynsym'
10161 ;;
10162 esac
10163 fi
10164 fi
10165
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10167$as_echo "$ld_shlibs" >&6; }
10168test "$ld_shlibs" = no && can_build_shared=no
10169
10170with_gnu_ld=$with_gnu_ld
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186#
10187# Do we need to explicitly link libc?
10188#
10189case "x$archive_cmds_need_lc" in
10190x|xyes)
10191 # Assume -lc should be added
10192 archive_cmds_need_lc=yes
10193
10194 if test "$enable_shared" = yes && test "$GCC" = yes; then
10195 case $archive_cmds in
10196 *'~'*)
10197 # FIXME: we may have to deal with multi-command sequences.
10198 ;;
10199 '$CC '*)
10200 # Test whether the compiler implicitly links with -lc since on some
10201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10202 # to ld, don't add -lc before -lgcc.
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10204$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10205 $RM conftest*
10206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10207
10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10209 (eval $ac_compile) 2>&5
10210 ac_status=$?
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; } 2>conftest.err; then
10213 soname=conftest
10214 lib=conftest
10215 libobjs=conftest.$ac_objext
10216 deplibs=
10217 wl=$lt_prog_compiler_wl
10218 pic_flag=$lt_prog_compiler_pic
10219 compiler_flags=-v
10220 linker_flags=-v
10221 verstring=
10222 output_objdir=.
10223 libname=conftest
10224 lt_save_allow_undefined_flag=$allow_undefined_flag
10225 allow_undefined_flag=
10226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10227 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10228 ac_status=$?
10229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10230 test $ac_status = 0; }
10231 then
10232 archive_cmds_need_lc=no
10233 else
10234 archive_cmds_need_lc=yes
10235 fi
10236 allow_undefined_flag=$lt_save_allow_undefined_flag
10237 else
10238 cat conftest.err 1>&5
10239 fi
10240 $RM conftest*
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10242$as_echo "$archive_cmds_need_lc" >&6; }
10243 ;;
10244 esac
10245 fi
10246 ;;
10247esac
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10406$as_echo_n "checking dynamic linker characteristics... " >&6; }
10407
10408if test "$GCC" = yes; then
10409 case $host_os in
10410 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10411 *) lt_awk_arg="/^libraries:/" ;;
10412 esac
10413 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10414 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10415 # if the path contains ";" then we assume it to be the separator
10416 # otherwise default to the standard path separator (i.e. ":") - it is
10417 # assumed that no part of a normal pathname contains ";" but that should
10418 # okay in the real world where ";" in dirpaths is itself problematic.
10419 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10420 else
10421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10422 fi
10423 # Ok, now we have the path, separated by spaces, we can step through it
10424 # and add multilib dir if necessary.
10425 lt_tmp_lt_search_path_spec=
10426 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10427 for lt_sys_path in $lt_search_path_spec; do
10428 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10430 else
10431 test -d "$lt_sys_path" && \
10432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10433 fi
10434 done
10435 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10436BEGIN {RS=" "; FS="/|\n";} {
10437 lt_foo="";
10438 lt_count=0;
10439 for (lt_i = NF; lt_i > 0; lt_i--) {
10440 if ($lt_i != "" && $lt_i != ".") {
10441 if ($lt_i == "..") {
10442 lt_count++;
10443 } else {
10444 if (lt_count == 0) {
10445 lt_foo="/" $lt_i lt_foo;
10446 } else {
10447 lt_count--;
10448 }
10449 }
10450 }
10451 }
10452 if (lt_foo != "") { lt_freq[lt_foo]++; }
10453 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10454}'`
10455 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10456else
10457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10458fi
10459library_names_spec=
10460libname_spec='lib$name'
10461soname_spec=
10462shrext_cmds=".so"
10463postinstall_cmds=
10464postuninstall_cmds=
10465finish_cmds=
10466finish_eval=
10467shlibpath_var=
10468shlibpath_overrides_runpath=unknown
10469version_type=none
10470dynamic_linker="$host_os ld.so"
10471sys_lib_dlsearch_path_spec="/lib /usr/lib"
10472need_lib_prefix=unknown
10473hardcode_into_libs=no
10474
10475# when you set need_version to no, make sure it does not cause -set_version
10476# flags to be left without arguments
10477need_version=unknown
10478
10479case $host_os in
10480aix3*)
10481 version_type=linux
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10483 shlibpath_var=LIBPATH
10484
10485 # AIX 3 has no versioning support, so we append a major version to the name.
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 ;;
10488
10489aix[4-9]*)
10490 version_type=linux
10491 need_lib_prefix=no
10492 need_version=no
10493 hardcode_into_libs=yes
10494 if test "$host_cpu" = ia64; then
10495 # AIX 5 supports IA64
10496 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 else
10499 # With GCC up to 2.95.x, collect2 would create an import file
10500 # for dependence libraries. The import file would start with
10501 # the line `#! .'. This would cause the generated library to
10502 # depend on `.', always an invalid library. This was fixed in
10503 # development snapshots of GCC prior to 3.0.
10504 case $host_os in
10505 aix4 | aix4.[01] | aix4.[01].*)
10506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10507 echo ' yes '
10508 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10509 :
10510 else
10511 can_build_shared=no
10512 fi
10513 ;;
10514 esac
10515 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10516 # soname into executable. Probably we can add versioning support to
10517 # collect2, so additional links can be useful in future.
10518 if test "$aix_use_runtimelinking" = yes; then
10519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10520 # instead of lib<name>.a to let people know that these are not
10521 # typical AIX shared libraries.
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 else
10524 # We preserve .a as extension for shared libraries through AIX4.2
10525 # and later when we are not doing run time linking.
10526 library_names_spec='${libname}${release}.a $libname.a'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 fi
10529 shlibpath_var=LIBPATH
10530 fi
10531 ;;
10532
10533amigaos*)
10534 case $host_cpu in
10535 powerpc)
10536 # Since July 2007 AmigaOS4 officially supports .so libraries.
10537 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 ;;
10540 m68k)
10541 library_names_spec='$libname.ixlibrary $libname.a'
10542 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10543 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10544 ;;
10545 esac
10546 ;;
10547
10548beos*)
10549 library_names_spec='${libname}${shared_ext}'
10550 dynamic_linker="$host_os ld.so"
10551 shlibpath_var=LIBRARY_PATH
10552 ;;
10553
10554bsdi[45]*)
10555 version_type=linux
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10563 # the default ld.so.conf also contains /usr/contrib/lib and
10564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10565 # libtool to hard-code these into programs
10566 ;;
10567
10568cygwin* | mingw* | pw32* | cegcc*)
10569 version_type=windows
10570 shrext_cmds=".dll"
10571 need_version=no
10572 need_lib_prefix=no
10573
10574 case $GCC,$host_os in
10575 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10576 library_names_spec='$libname.dll.a'
10577 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10578 postinstall_cmds='base_file=`basename \${file}`~
10579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10580 dldir=$destdir/`dirname \$dlpath`~
10581 test -d \$dldir || mkdir -p \$dldir~
10582 $install_prog $dir/$dlname \$dldir/$dlname~
10583 chmod a+x \$dldir/$dlname~
10584 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10585 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10586 fi'
10587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10588 dlpath=$dir/\$dldll~
10589 $RM \$dlpath'
10590 shlibpath_overrides_runpath=yes
10591
10592 case $host_os in
10593 cygwin*)
10594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10597 ;;
10598 mingw* | cegcc*)
10599 # MinGW DLLs use traditional 'lib' prefix
10600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10601 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10602 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10603 # It is most probably a Windows format PATH printed by
10604 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10605 # path with ; separators, and with drive letters. We can handle the
10606 # drive letters (cygwin fileutils understands them), so leave them,
10607 # especially as we might pass files found there to a mingw objdump,
10608 # which wouldn't understand a cygwinified path. Ahh.
10609 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10610 else
10611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10612 fi
10613 ;;
10614 pw32*)
10615 # pw32 DLLs use 'pw' prefix rather than 'lib'
10616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10617 ;;
10618 esac
10619 ;;
10620
10621 *)
10622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10623 ;;
10624 esac
10625 dynamic_linker='Win32 ld.exe'
10626 # FIXME: first we should search . and the directory the executable is in
10627 shlibpath_var=PATH
10628 ;;
10629
10630darwin* | rhapsody*)
10631 dynamic_linker="$host_os dyld"
10632 version_type=darwin
10633 need_lib_prefix=no
10634 need_version=no
10635 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10636 soname_spec='${libname}${release}${major}$shared_ext'
10637 shlibpath_overrides_runpath=yes
10638 shlibpath_var=DYLD_LIBRARY_PATH
10639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10640
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10643 ;;
10644
10645dgux*)
10646 version_type=linux
10647 need_lib_prefix=no
10648 need_version=no
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 ;;
10653
10654freebsd1*)
10655 dynamic_linker=no
10656 ;;
10657
10658freebsd* | dragonfly*)
10659 # DragonFly does not have aout. When/if they implement a new
10660 # versioning mechanism, adjust this.
10661 if test -x /usr/bin/objformat; then
10662 objformat=`/usr/bin/objformat`
10663 else
10664 case $host_os in
10665 freebsd[123]*) objformat=aout ;;
10666 *) objformat=elf ;;
10667 esac
10668 fi
10669 version_type=freebsd-$objformat
10670 case $version_type in
10671 freebsd-elf*)
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10673 need_version=no
10674 need_lib_prefix=no
10675 ;;
10676 freebsd-*)
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10678 need_version=yes
10679 ;;
10680 esac
10681 shlibpath_var=LD_LIBRARY_PATH
10682 case $host_os in
10683 freebsd2*)
10684 shlibpath_overrides_runpath=yes
10685 ;;
10686 freebsd3.[01]* | freebsdelf3.[01]*)
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 ;;
10690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10692 shlibpath_overrides_runpath=no
10693 hardcode_into_libs=yes
10694 ;;
10695 *) # from 4.6 on, and DragonFly
10696 shlibpath_overrides_runpath=yes
10697 hardcode_into_libs=yes
10698 ;;
10699 esac
10700 ;;
10701
10702gnu*)
10703 version_type=linux
10704 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
10709 hardcode_into_libs=yes
10710 ;;
10711
10712hpux9* | hpux10* | hpux11*)
10713 # Give a soname corresponding to the major version so that dld.sl refuses to
10714 # link against other versions.
10715 version_type=sunos
10716 need_lib_prefix=no
10717 need_version=no
10718 case $host_cpu in
10719 ia64*)
10720 shrext_cmds='.so'
10721 hardcode_into_libs=yes
10722 dynamic_linker="$host_os dld.so"
10723 shlibpath_var=LD_LIBRARY_PATH
10724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 if test "X$HPUX_IA64_MODE" = X32; then
10728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10729 else
10730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10731 fi
10732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10733 ;;
10734 hppa*64*)
10735 shrext_cmds='.sl'
10736 hardcode_into_libs=yes
10737 dynamic_linker="$host_os dld.sl"
10738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
10742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10744 ;;
10745 *)
10746 shrext_cmds='.sl'
10747 dynamic_linker="$host_os dld.sl"
10748 shlibpath_var=SHLIB_PATH
10749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 ;;
10753 esac
10754 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10755 postinstall_cmds='chmod 555 $lib'
10756 ;;
10757
10758interix[3-9]*)
10759 version_type=linux
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10768 ;;
10769
10770irix5* | irix6* | nonstopux*)
10771 case $host_os in
10772 nonstopux*) version_type=nonstopux ;;
10773 *)
10774 if test "$lt_cv_prog_gnu_ld" = yes; then
10775 version_type=linux
10776 else
10777 version_type=irix
10778 fi ;;
10779 esac
10780 need_lib_prefix=no
10781 need_version=no
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10784 case $host_os in
10785 irix5* | nonstopux*)
10786 libsuff= shlibsuff=
10787 ;;
10788 *)
10789 case $LD in # libtool.m4 will add one of these switches to LD
10790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10791 libsuff= shlibsuff= libmagic=32-bit;;
10792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10793 libsuff=32 shlibsuff=N32 libmagic=N32;;
10794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10796 *) libsuff= shlibsuff= libmagic=never-match;;
10797 esac
10798 ;;
10799 esac
10800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10801 shlibpath_overrides_runpath=no
10802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10804 hardcode_into_libs=yes
10805 ;;
10806
10807# No shared lib support for Linux oldld, aout, or coff.
10808linux*oldld* | linux*aout* | linux*coff*)
10809 dynamic_linker=no
10810 ;;
10811
10812# This must be Linux ELF.
10813linux* | k*bsd*-gnu | kopensolaris*-gnu)
10814 version_type=linux
10815 need_lib_prefix=no
10816 need_version=no
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10822 # Some binutils ld are patched to set DT_RUNPATH
10823 save_LDFLAGS=$LDFLAGS
10824 save_libdir=$libdir
10825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h. */
10829
10830int
10831main ()
10832{
10833
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_link "$LINENO"; then :
10839 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10840 shlibpath_overrides_runpath=yes
10841fi
10842fi
10843rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LDFLAGS=$save_LDFLAGS
10846 libdir=$save_libdir
10847
10848 # This implies no fast_install, which is unacceptable.
10849 # Some rework will be needed to allow for fast_install
10850 # before this can be enabled.
10851 hardcode_into_libs=yes
10852
10853 # Append ld.so.conf contents to the search path
10854 if test -f /etc/ld.so.conf; then
10855 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;/^$/d' | tr '\n' ' '`
10856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10857 fi
10858
10859 # We used to test for /lib/ld.so.1 and disable shared libraries on
10860 # powerpc, because MkLinux only supported shared libraries with the
10861 # GNU dynamic linker. Since this was broken with cross compilers,
10862 # most powerpc-linux boxes support dynamic linking these days and
10863 # people can always --disable-shared, the test was removed, and we
10864 # assume the GNU/Linux dynamic linker is in use.
10865 dynamic_linker='GNU/Linux ld.so'
10866 ;;
10867
10868netbsdelf*-gnu)
10869 version_type=linux
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=no
10876 hardcode_into_libs=yes
10877 dynamic_linker='NetBSD ld.elf_so'
10878 ;;
10879
10880netbsd*)
10881 version_type=sunos
10882 need_lib_prefix=no
10883 need_version=no
10884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10887 dynamic_linker='NetBSD (a.out) ld.so'
10888 else
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 dynamic_linker='NetBSD ld.elf_so'
10892 fi
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=yes
10895 hardcode_into_libs=yes
10896 ;;
10897
10898newsos6)
10899 version_type=linux
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=yes
10903 ;;
10904
10905*nto* | *qnx*)
10906 version_type=qnx
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=no
10913 hardcode_into_libs=yes
10914 dynamic_linker='ldqnx.so'
10915 ;;
10916
10917openbsd*)
10918 version_type=sunos
10919 sys_lib_dlsearch_path_spec="/usr/lib"
10920 need_lib_prefix=no
10921 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10922 case $host_os in
10923 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10924 *) need_version=no ;;
10925 esac
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10930 case $host_os in
10931 openbsd2.[89] | openbsd2.[89].*)
10932 shlibpath_overrides_runpath=no
10933 ;;
10934 *)
10935 shlibpath_overrides_runpath=yes
10936 ;;
10937 esac
10938 else
10939 shlibpath_overrides_runpath=yes
10940 fi
10941 ;;
10942
10943os2*)
10944 libname_spec='$name'
10945 shrext_cmds=".dll"
10946 need_lib_prefix=no
10947 library_names_spec='$libname${shared_ext} $libname.a'
10948 dynamic_linker='OS/2 ld.exe'
10949 shlibpath_var=LIBPATH
10950 ;;
10951
10952osf3* | osf4* | osf5*)
10953 version_type=osf
10954 need_lib_prefix=no
10955 need_version=no
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10960 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10961 ;;
10962
10963rdos*)
10964 dynamic_linker=no
10965 ;;
10966
10967solaris*)
10968 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes
10975 hardcode_into_libs=yes
10976 # ldd complains unless libraries are executable
10977 postinstall_cmds='chmod +x $lib'
10978 ;;
10979
10980sunos4*)
10981 version_type=sunos
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 if test "$with_gnu_ld" = yes; then
10987 need_lib_prefix=no
10988 fi
10989 need_version=yes
10990 ;;
10991
10992sysv4 | sysv4.3*)
10993 version_type=linux
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 case $host_vendor in
10998 sni)
10999 shlibpath_overrides_runpath=no
11000 need_lib_prefix=no
11001 runpath_var=LD_RUN_PATH
11002 ;;
11003 siemens)
11004 need_lib_prefix=no
11005 ;;
11006 motorola)
11007 need_lib_prefix=no
11008 need_version=no
11009 shlibpath_overrides_runpath=no
11010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11011 ;;
11012 esac
11013 ;;
11014
11015sysv4*MP*)
11016 if test -d /usr/nec ;then
11017 version_type=linux
11018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11019 soname_spec='$libname${shared_ext}.$major'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 fi
11022 ;;
11023
11024sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11025 version_type=freebsd-elf
11026 need_lib_prefix=no
11027 need_version=no
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=yes
11032 hardcode_into_libs=yes
11033 if test "$with_gnu_ld" = yes; then
11034 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11035 else
11036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11037 case $host_os in
11038 sco3.2v5*)
11039 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11040 ;;
11041 esac
11042 fi
11043 sys_lib_dlsearch_path_spec='/usr/lib'
11044 ;;
11045
11046tpf*)
11047 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11048 version_type=linux
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=no
11054 hardcode_into_libs=yes
11055 ;;
11056
11057uts4*)
11058 version_type=linux
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 ;;
11063
11064*)
11065 dynamic_linker=no
11066 ;;
11067esac
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11069$as_echo "$dynamic_linker" >&6; }
11070test "$dynamic_linker" = no && can_build_shared=no
11071
11072variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11073if test "$GCC" = yes; then
11074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11075fi
11076
11077if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11078 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11079fi
11080if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11081 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11082fi
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11172hardcode_action=
11173if test -n "$hardcode_libdir_flag_spec" ||
11174 test -n "$runpath_var" ||
11175 test "X$hardcode_automatic" = "Xyes" ; then
11176
11177 # We can hardcode non-existent directories.
11178 if test "$hardcode_direct" != no &&
11179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11180 # have to relink, otherwise we might link with an installed library
11181 # when we should be linking with a yet-to-be-installed one
11182 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11183 test "$hardcode_minus_L" != no; then
11184 # Linking always hardcodes the temporary library directory.
11185 hardcode_action=relink
11186 else
11187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11188 hardcode_action=immediate
11189 fi
11190else
11191 # We cannot hardcode anything, or else we can only hardcode existing
11192 # directories.
11193 hardcode_action=unsupported
11194fi
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11196$as_echo "$hardcode_action" >&6; }
11197
11198if test "$hardcode_action" = relink ||
11199 test "$inherit_rpath" = yes; then
11200 # Fast installation is not supported
11201 enable_fast_install=no
11202elif test "$shlibpath_overrides_runpath" = yes ||
11203 test "$enable_shared" = no; then
11204 # Fast installation is not necessary
11205 enable_fast_install=needless
11206fi
11207
11208
11209
11210
11211
11212
11213 if test "x$enable_dlopen" != xyes; then
11214 enable_dlopen=unknown
11215 enable_dlopen_self=unknown
11216 enable_dlopen_self_static=unknown
11217else
11218 lt_cv_dlopen=no
11219 lt_cv_dlopen_libs=
11220
11221 case $host_os in
11222 beos*)
11223 lt_cv_dlopen="load_add_on"
11224 lt_cv_dlopen_libs=
11225 lt_cv_dlopen_self=yes
11226 ;;
11227
11228 mingw* | pw32* | cegcc*)
11229 lt_cv_dlopen="LoadLibrary"
11230 lt_cv_dlopen_libs=
11231 ;;
11232
11233 cygwin*)
11234 lt_cv_dlopen="dlopen"
11235 lt_cv_dlopen_libs=
11236 ;;
11237
11238 darwin*)
11239 # if libdl is installed we need to link against it
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11241$as_echo_n "checking for dlopen in -ldl... " >&6; }
11242if ${ac_cv_lib_dl_dlopen+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244else
11245 ac_check_lib_save_LIBS=$LIBS
11246LIBS="-ldl $LIBS"
11247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h. */
11249
11250/* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11253#ifdef __cplusplus
11254extern "C"
11255#endif
11256char dlopen ();
11257int
11258main ()
11259{
11260return dlopen ();
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265if ac_fn_c_try_link "$LINENO"; then :
11266 ac_cv_lib_dl_dlopen=yes
11267else
11268 ac_cv_lib_dl_dlopen=no
11269fi
11270rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272LIBS=$ac_check_lib_save_LIBS
11273fi
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11276if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11278else
11279
11280 lt_cv_dlopen="dyld"
11281 lt_cv_dlopen_libs=
11282 lt_cv_dlopen_self=yes
11283
11284fi
11285
11286 ;;
11287
11288 *)
11289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11290if test "x$ac_cv_func_shl_load" = xyes; then :
11291 lt_cv_dlopen="shl_load"
11292else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11294$as_echo_n "checking for shl_load in -ldld... " >&6; }
11295if ${ac_cv_lib_dld_shl_load+:} false; then :
11296 $as_echo_n "(cached) " >&6
11297else
11298 ac_check_lib_save_LIBS=$LIBS
11299LIBS="-ldld $LIBS"
11300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h. */
11302
11303/* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char shl_load ();
11310int
11311main ()
11312{
11313return shl_load ();
11314 ;
11315 return 0;
11316}
11317_ACEOF
11318if ac_fn_c_try_link "$LINENO"; then :
11319 ac_cv_lib_dld_shl_load=yes
11320else
11321 ac_cv_lib_dld_shl_load=no
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325LIBS=$ac_check_lib_save_LIBS
11326fi
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11328$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11329if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11331else
11332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11333if test "x$ac_cv_func_dlopen" = xyes; then :
11334 lt_cv_dlopen="dlopen"
11335else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337$as_echo_n "checking for dlopen in -ldl... " >&6; }
11338if ${ac_cv_lib_dl_dlopen+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340else
11341 ac_check_lib_save_LIBS=$LIBS
11342LIBS="-ldl $LIBS"
11343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h. */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char dlopen ();
11353int
11354main ()
11355{
11356return dlopen ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dl_dlopen=yes
11363else
11364 ac_cv_lib_dl_dlopen=no
11365fi
11366rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368LIBS=$ac_check_lib_save_LIBS
11369fi
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11376$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11377if ${ac_cv_lib_svld_dlopen+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379else
11380 ac_check_lib_save_LIBS=$LIBS
11381LIBS="-lsvld $LIBS"
11382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383/* end confdefs.h. */
11384
11385/* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388#ifdef __cplusplus
11389extern "C"
11390#endif
11391char dlopen ();
11392int
11393main ()
11394{
11395return dlopen ();
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_svld_dlopen=yes
11402else
11403 ac_cv_lib_svld_dlopen=no
11404fi
11405rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407LIBS=$ac_check_lib_save_LIBS
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11410$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11411if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11413else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11415$as_echo_n "checking for dld_link in -ldld... " >&6; }
11416if ${ac_cv_lib_dld_dld_link+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418else
11419 ac_check_lib_save_LIBS=$LIBS
11420LIBS="-ldld $LIBS"
11421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422/* end confdefs.h. */
11423
11424/* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427#ifdef __cplusplus
11428extern "C"
11429#endif
11430char dld_link ();
11431int
11432main ()
11433{
11434return dld_link ();
11435 ;
11436 return 0;
11437}
11438_ACEOF
11439if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dld_dld_link=yes
11441else
11442 ac_cv_lib_dld_dld_link=no
11443fi
11444rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446LIBS=$ac_check_lib_save_LIBS
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11449$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11450if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11452fi
11453
11454
11455fi
11456
11457
11458fi
11459
11460
11461fi
11462
11463
11464fi
11465
11466
11467fi
11468
11469 ;;
11470 esac
11471
11472 if test "x$lt_cv_dlopen" != xno; then
11473 enable_dlopen=yes
11474 else
11475 enable_dlopen=no
11476 fi
11477
11478 case $lt_cv_dlopen in
11479 dlopen)
11480 save_CPPFLAGS="$CPPFLAGS"
11481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11482
11483 save_LDFLAGS="$LDFLAGS"
11484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11485
11486 save_LIBS="$LIBS"
11487 LIBS="$lt_cv_dlopen_libs $LIBS"
11488
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11490$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11491if ${lt_cv_dlopen_self+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493else
11494 if test "$cross_compiling" = yes; then :
11495 lt_cv_dlopen_self=cross
11496else
11497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11498 lt_status=$lt_dlunknown
11499 cat > conftest.$ac_ext <<_LT_EOF
11500#line 11500 "configure"
11501#include "confdefs.h"
11502
11503#if HAVE_DLFCN_H
11504#include <dlfcn.h>
11505#endif
11506
11507#include <stdio.h>
11508
11509#ifdef RTLD_GLOBAL
11510# define LT_DLGLOBAL RTLD_GLOBAL
11511#else
11512# ifdef DL_GLOBAL
11513# define LT_DLGLOBAL DL_GLOBAL
11514# else
11515# define LT_DLGLOBAL 0
11516# endif
11517#endif
11518
11519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11520 find out it does not work in some platform. */
11521#ifndef LT_DLLAZY_OR_NOW
11522# ifdef RTLD_LAZY
11523# define LT_DLLAZY_OR_NOW RTLD_LAZY
11524# else
11525# ifdef DL_LAZY
11526# define LT_DLLAZY_OR_NOW DL_LAZY
11527# else
11528# ifdef RTLD_NOW
11529# define LT_DLLAZY_OR_NOW RTLD_NOW
11530# else
11531# ifdef DL_NOW
11532# define LT_DLLAZY_OR_NOW DL_NOW
11533# else
11534# define LT_DLLAZY_OR_NOW 0
11535# endif
11536# endif
11537# endif
11538# endif
11539#endif
11540
11541void fnord() { int i=42;}
11542int main ()
11543{
11544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11545 int status = $lt_dlunknown;
11546
11547 if (self)
11548 {
11549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11550 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11551 /* dlclose (self); */
11552 }
11553 else
11554 puts (dlerror ());
11555
11556 return status;
11557}
11558_LT_EOF
11559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11560 (eval $ac_link) 2>&5
11561 ac_status=$?
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11564 (./conftest; exit; ) >&5 2>/dev/null
11565 lt_status=$?
11566 case x$lt_status in
11567 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11568 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11569 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11570 esac
11571 else :
11572 # compilation failed
11573 lt_cv_dlopen_self=no
11574 fi
11575fi
11576rm -fr conftest*
11577
11578
11579fi
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11581$as_echo "$lt_cv_dlopen_self" >&6; }
11582
11583 if test "x$lt_cv_dlopen_self" = xyes; then
11584 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11586$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11587if ${lt_cv_dlopen_self_static+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589else
11590 if test "$cross_compiling" = yes; then :
11591 lt_cv_dlopen_self_static=cross
11592else
11593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11594 lt_status=$lt_dlunknown
11595 cat > conftest.$ac_ext <<_LT_EOF
11596#line 11596 "configure"
11597#include "confdefs.h"
11598
11599#if HAVE_DLFCN_H
11600#include <dlfcn.h>
11601#endif
11602
11603#include <stdio.h>
11604
11605#ifdef RTLD_GLOBAL
11606# define LT_DLGLOBAL RTLD_GLOBAL
11607#else
11608# ifdef DL_GLOBAL
11609# define LT_DLGLOBAL DL_GLOBAL
11610# else
11611# define LT_DLGLOBAL 0
11612# endif
11613#endif
11614
11615/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11616 find out it does not work in some platform. */
11617#ifndef LT_DLLAZY_OR_NOW
11618# ifdef RTLD_LAZY
11619# define LT_DLLAZY_OR_NOW RTLD_LAZY
11620# else
11621# ifdef DL_LAZY
11622# define LT_DLLAZY_OR_NOW DL_LAZY
11623# else
11624# ifdef RTLD_NOW
11625# define LT_DLLAZY_OR_NOW RTLD_NOW
11626# else
11627# ifdef DL_NOW
11628# define LT_DLLAZY_OR_NOW DL_NOW
11629# else
11630# define LT_DLLAZY_OR_NOW 0
11631# endif
11632# endif
11633# endif
11634# endif
11635#endif
11636
11637void fnord() { int i=42;}
11638int main ()
11639{
11640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641 int status = $lt_dlunknown;
11642
11643 if (self)
11644 {
11645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11646 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11647 /* dlclose (self); */
11648 }
11649 else
11650 puts (dlerror ());
11651
11652 return status;
11653}
11654_LT_EOF
11655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11656 (eval $ac_link) 2>&5
11657 ac_status=$?
11658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11659 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11660 (./conftest; exit; ) >&5 2>/dev/null
11661 lt_status=$?
11662 case x$lt_status in
11663 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11664 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11665 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11666 esac
11667 else :
11668 # compilation failed
11669 lt_cv_dlopen_self_static=no
11670 fi
11671fi
11672rm -fr conftest*
11673
11674
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11677$as_echo "$lt_cv_dlopen_self_static" >&6; }
11678 fi
11679
11680 CPPFLAGS="$save_CPPFLAGS"
11681 LDFLAGS="$save_LDFLAGS"
11682 LIBS="$save_LIBS"
11683 ;;
11684 esac
11685
11686 case $lt_cv_dlopen_self in
11687 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11688 *) enable_dlopen_self=unknown ;;
11689 esac
11690
11691 case $lt_cv_dlopen_self_static in
11692 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11693 *) enable_dlopen_self_static=unknown ;;
11694 esac
11695fi
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713striplib=
11714old_striplib=
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11716$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11717if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11718 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11719 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11721$as_echo "yes" >&6; }
11722else
11723# FIXME - insert some real tests, host_os isn't really good enough
11724 case $host_os in
11725 darwin*)
11726 if test -n "$STRIP" ; then
11727 striplib="$STRIP -x"
11728 old_striplib="$STRIP -S"
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11730$as_echo "yes" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
11734 fi
11735 ;;
11736 *)
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739 ;;
11740 esac
11741fi
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754 # Report which library types will actually be built
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11756$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11758$as_echo "$can_build_shared" >&6; }
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11761$as_echo_n "checking whether to build shared libraries... " >&6; }
11762 test "$can_build_shared" = "no" && enable_shared=no
11763
11764 # On AIX, shared libraries and static libraries use the same namespace, and
11765 # are all built from PIC.
11766 case $host_os in
11767 aix3*)
11768 test "$enable_shared" = yes && enable_static=no
11769 if test -n "$RANLIB"; then
11770 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11771 postinstall_cmds='$RANLIB $lib'
11772 fi
11773 ;;
11774
11775 aix[4-9]*)
11776 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11777 test "$enable_shared" = yes && enable_static=no
11778 fi
11779 ;;
11780 esac
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11782$as_echo "$enable_shared" >&6; }
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11785$as_echo_n "checking whether to build static libraries... " >&6; }
11786 # Make sure either enable_shared or enable_static is yes.
11787 test "$enable_shared" = yes || enable_static=yes
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11789$as_echo "$enable_static" >&6; }
11790
11791
11792
11793
11794fi
11795ac_ext=c
11796ac_cpp='$CPP $CPPFLAGS'
11797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799ac_compiler_gnu=$ac_cv_c_compiler_gnu
11800
11801CC="$lt_save_CC"
11802
11803
11804ac_ext=cpp
11805ac_cpp='$CXXCPP $CPPFLAGS'
11806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11809
11810archive_cmds_need_lc_CXX=no
11811allow_undefined_flag_CXX=
11812always_export_symbols_CXX=no
11813archive_expsym_cmds_CXX=
11814compiler_needs_object_CXX=no
11815export_dynamic_flag_spec_CXX=
11816hardcode_direct_CXX=no
11817hardcode_direct_absolute_CXX=no
11818hardcode_libdir_flag_spec_CXX=
11819hardcode_libdir_flag_spec_ld_CXX=
11820hardcode_libdir_separator_CXX=
11821hardcode_minus_L_CXX=no
11822hardcode_shlibpath_var_CXX=unsupported
11823hardcode_automatic_CXX=no
11824inherit_rpath_CXX=no
11825module_cmds_CXX=
11826module_expsym_cmds_CXX=
11827link_all_deplibs_CXX=unknown
11828old_archive_cmds_CXX=$old_archive_cmds
11829no_undefined_flag_CXX=
11830whole_archive_flag_spec_CXX=
11831enable_shared_with_static_runtimes_CXX=no
11832
11833# Source file extension for C++ test sources.
11834ac_ext=cpp
11835
11836# Object file extension for compiled C++ test sources.
11837objext=o
11838objext_CXX=$objext
11839
11840# No sense in running all these tests if we already determined that
11841# the CXX compiler isn't working. Some variables (like enable_shared)
11842# are currently assumed to apply to all compilers on this platform,
11843# and will be corrupted by setting them based on a non-working compiler.
11844if test "$_lt_caught_CXX_error" != yes; then
11845 # Code to be used in simple compile tests
11846 lt_simple_compile_test_code="int some_variable = 0;"
11847
11848 # Code to be used in simple link tests
11849 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11850
11851 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11852
11853
11854
11855
11856
11857
11858# If no C compiler was specified, use CC.
11859LTCC=${LTCC-"$CC"}
11860
11861# If no C compiler flags were specified, use CFLAGS.
11862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11863
11864# Allow CC to be a program name with arguments.
11865compiler=$CC
11866
11867
11868 # save warnings/boilerplate of simple test code
11869 ac_outfile=conftest.$ac_objext
11870echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11872_lt_compiler_boilerplate=`cat conftest.err`
11873$RM conftest*
11874
11875 ac_outfile=conftest.$ac_objext
11876echo "$lt_simple_link_test_code" >conftest.$ac_ext
11877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11878_lt_linker_boilerplate=`cat conftest.err`
11879$RM -r conftest*
11880
11881
11882 # Allow CC to be a program name with arguments.
11883 lt_save_CC=$CC
11884 lt_save_LD=$LD
11885 lt_save_GCC=$GCC
11886 GCC=$GXX
11887 lt_save_with_gnu_ld=$with_gnu_ld
11888 lt_save_path_LD=$lt_cv_path_LD
11889 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11890 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11891 else
11892 $as_unset lt_cv_prog_gnu_ld
11893 fi
11894 if test -n "${lt_cv_path_LDCXX+set}"; then
11895 lt_cv_path_LD=$lt_cv_path_LDCXX
11896 else
11897 $as_unset lt_cv_path_LD
11898 fi
11899 test -z "${LDCXX+set}" || LD=$LDCXX
11900 CC=${CXX-"c++"}
11901 compiler=$CC
11902 compiler_CXX=$CC
11903 for cc_temp in $compiler""; do
11904 case $cc_temp in
11905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11907 \-*) ;;
11908 *) break;;
11909 esac
11910done
11911cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11912
11913
11914 if test -n "$compiler"; then
11915 # We don't want -fno-exception when compiling C++ code, so set the
11916 # no_builtin_flag separately
11917 if test "$GXX" = yes; then
11918 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11919 else
11920 lt_prog_compiler_no_builtin_flag_CXX=
11921 fi
11922
11923 if test "$GXX" = yes; then
11924 # Set up default GNU C++ configuration
11925
11926
11927
11928# Check whether --with-gnu-ld was given.
11929if test "${with_gnu_ld+set}" = set; then :
11930 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11931else
11932 with_gnu_ld=no
11933fi
11934
11935ac_prog=ld
11936if test "$GCC" = yes; then
11937 # Check if gcc -print-prog-name=ld gives a path.
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11939$as_echo_n "checking for ld used by $CC... " >&6; }
11940 case $host in
11941 *-*-mingw*)
11942 # gcc leaves a trailing carriage return which upsets mingw
11943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11944 *)
11945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11946 esac
11947 case $ac_prog in
11948 # Accept absolute paths.
11949 [\\/]* | ?:[\\/]*)
11950 re_direlt='/[^/][^/]*/\.\./'
11951 # Canonicalize the pathname of ld
11952 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11953 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11954 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11955 done
11956 test -z "$LD" && LD="$ac_prog"
11957 ;;
11958 "")
11959 # If it fails, then pretend we aren't using GCC.
11960 ac_prog=ld
11961 ;;
11962 *)
11963 # If it is relative, then search for the first ld in PATH.
11964 with_gnu_ld=unknown
11965 ;;
11966 esac
11967elif test "$with_gnu_ld" = yes; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11969$as_echo_n "checking for GNU ld... " >&6; }
11970else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11972$as_echo_n "checking for non-GNU ld... " >&6; }
11973fi
11974if ${lt_cv_path_LD+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976else
11977 if test -z "$LD"; then
11978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11979 for ac_dir in $PATH; do
11980 IFS="$lt_save_ifs"
11981 test -z "$ac_dir" && ac_dir=.
11982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11983 lt_cv_path_LD="$ac_dir/$ac_prog"
11984 # Check to see if the program is GNU ld. I'd rather use --version,
11985 # but apparently some variants of GNU ld only accept -v.
11986 # Break only if it was the GNU/non-GNU ld that we prefer.
11987 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11988 *GNU* | *'with BFD'*)
11989 test "$with_gnu_ld" != no && break
11990 ;;
11991 *)
11992 test "$with_gnu_ld" != yes && break
11993 ;;
11994 esac
11995 fi
11996 done
11997 IFS="$lt_save_ifs"
11998else
11999 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12000fi
12001fi
12002
12003LD="$lt_cv_path_LD"
12004if test -n "$LD"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12006$as_echo "$LD" >&6; }
12007else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009$as_echo "no" >&6; }
12010fi
12011test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12013$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12014if ${lt_cv_prog_gnu_ld+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016else
12017 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12018case `$LD -v 2>&1 </dev/null` in
12019*GNU* | *'with BFD'*)
12020 lt_cv_prog_gnu_ld=yes
12021 ;;
12022*)
12023 lt_cv_prog_gnu_ld=no
12024 ;;
12025esac
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12028$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12029with_gnu_ld=$lt_cv_prog_gnu_ld
12030
12031
12032
12033
12034
12035
12036
12037 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12038 # archiving commands below assume that GNU ld is being used.
12039 if test "$with_gnu_ld" = yes; then
12040 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12041 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12042
12043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12045
12046 # If archive_cmds runs LD, not CC, wlarc should be empty
12047 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12048 # investigate it a little bit more. (MM)
12049 wlarc='${wl}'
12050
12051 # ancient GNU ld didn't support --whole-archive et. al.
12052 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12053 $GREP 'no-whole-archive' > /dev/null; then
12054 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12055 else
12056 whole_archive_flag_spec_CXX=
12057 fi
12058 else
12059 with_gnu_ld=no
12060 wlarc=
12061
12062 # A generic and very simple default shared library creation
12063 # command for GNU C++ for the case where it uses the native
12064 # linker, instead of GNU ld. If possible, this setting should
12065 # overridden to take advantage of the native linker features on
12066 # the platform it is being used on.
12067 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12068 fi
12069
12070 # Commands to make compiler produce verbose output that lists
12071 # what "hidden" libraries, object files and flags are used when
12072 # linking a shared library.
12073 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12074
12075 else
12076 GXX=no
12077 with_gnu_ld=no
12078 wlarc=
12079 fi
12080
12081 # PORTME: fill in a description of your system's C++ link characteristics
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12083$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12084 ld_shlibs_CXX=yes
12085 case $host_os in
12086 aix3*)
12087 # FIXME: insert proper C++ library support
12088 ld_shlibs_CXX=no
12089 ;;
12090 aix[4-9]*)
12091 if test "$host_cpu" = ia64; then
12092 # On IA64, the linker does run time linking by default, so we don't
12093 # have to do anything special.
12094 aix_use_runtimelinking=no
12095 exp_sym_flag='-Bexport'
12096 no_entry_flag=""
12097 else
12098 aix_use_runtimelinking=no
12099
12100 # Test if we are trying to use run time linking or normal
12101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12102 # need to do runtime linking.
12103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12104 for ld_flag in $LDFLAGS; do
12105 case $ld_flag in
12106 *-brtl*)
12107 aix_use_runtimelinking=yes
12108 break
12109 ;;
12110 esac
12111 done
12112 ;;
12113 esac
12114
12115 exp_sym_flag='-bexport'
12116 no_entry_flag='-bnoentry'
12117 fi
12118
12119 # When large executables or shared objects are built, AIX ld can
12120 # have problems creating the table of contents. If linking a library
12121 # or program results in "error TOC overflow" add -mminimal-toc to
12122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12124
12125 archive_cmds_CXX=''
12126 hardcode_direct_CXX=yes
12127 hardcode_direct_absolute_CXX=yes
12128 hardcode_libdir_separator_CXX=':'
12129 link_all_deplibs_CXX=yes
12130 file_list_spec_CXX='${wl}-f,'
12131
12132 if test "$GXX" = yes; then
12133 case $host_os in aix4.[012]|aix4.[012].*)
12134 # We only want to do this on AIX 4.2 and lower, the check
12135 # below for broken collect2 doesn't work under 4.3+
12136 collect2name=`${CC} -print-prog-name=collect2`
12137 if test -f "$collect2name" &&
12138 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12139 then
12140 # We have reworked collect2
12141 :
12142 else
12143 # We have old collect2
12144 hardcode_direct_CXX=unsupported
12145 # It fails to find uninstalled libraries when the uninstalled
12146 # path is not listed in the libpath. Setting hardcode_minus_L
12147 # to unsupported forces relinking
12148 hardcode_minus_L_CXX=yes
12149 hardcode_libdir_flag_spec_CXX='-L$libdir'
12150 hardcode_libdir_separator_CXX=
12151 fi
12152 esac
12153 shared_flag='-shared'
12154 if test "$aix_use_runtimelinking" = yes; then
12155 shared_flag="$shared_flag "'${wl}-G'
12156 fi
12157 else
12158 # not using gcc
12159 if test "$host_cpu" = ia64; then
12160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12161 # chokes on -Wl,-G. The following line is correct:
12162 shared_flag='-G'
12163 else
12164 if test "$aix_use_runtimelinking" = yes; then
12165 shared_flag='${wl}-G'
12166 else
12167 shared_flag='${wl}-bM:SRE'
12168 fi
12169 fi
12170 fi
12171
12172 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12173 # It seems that -bexpall does not export symbols beginning with
12174 # underscore (_), so it is better to generate a list of symbols to
12175 # export.
12176 always_export_symbols_CXX=yes
12177 if test "$aix_use_runtimelinking" = yes; then
12178 # Warning - without using the other runtime loading flags (-brtl),
12179 # -berok will link without error, but may produce a broken library.
12180 allow_undefined_flag_CXX='-berok'
12181 # Determine the default libpath from the value encoded in an empty
12182 # executable.
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184/* end confdefs.h. */
12185
12186int
12187main ()
12188{
12189
12190 ;
12191 return 0;
12192}
12193_ACEOF
12194if ac_fn_cxx_try_link "$LINENO"; then :
12195
12196lt_aix_libpath_sed='
12197 /Import File Strings/,/^$/ {
12198 /^0/ {
12199 s/^0 *\(.*\)$/\1/
12200 p
12201 }
12202 }'
12203aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12204# Check for a 64-bit object if we didn't find anything.
12205if test -z "$aix_libpath"; then
12206 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12207fi
12208fi
12209rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12212
12213 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12214
12215 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12216 else
12217 if test "$host_cpu" = ia64; then
12218 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12219 allow_undefined_flag_CXX="-z nodefs"
12220 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"
12221 else
12222 # Determine the default libpath from the value encoded in an
12223 # empty executable.
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h. */
12226
12227int
12228main ()
12229{
12230
12231 ;
12232 return 0;
12233}
12234_ACEOF
12235if ac_fn_cxx_try_link "$LINENO"; then :
12236
12237lt_aix_libpath_sed='
12238 /Import File Strings/,/^$/ {
12239 /^0/ {
12240 s/^0 *\(.*\)$/\1/
12241 p
12242 }
12243 }'
12244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12245# Check for a 64-bit object if we didn't find anything.
12246if test -z "$aix_libpath"; then
12247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12248fi
12249fi
12250rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12253
12254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12255 # Warning - without using the other run time loading flags,
12256 # -berok will link without error, but may produce a broken library.
12257 no_undefined_flag_CXX=' ${wl}-bernotok'
12258 allow_undefined_flag_CXX=' ${wl}-berok'
12259 # Exported symbols can be pulled into shared objects from archives
12260 whole_archive_flag_spec_CXX='$convenience'
12261 archive_cmds_need_lc_CXX=yes
12262 # This is similar to how AIX traditionally builds its shared
12263 # libraries.
12264 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'
12265 fi
12266 fi
12267 ;;
12268
12269 beos*)
12270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12271 allow_undefined_flag_CXX=unsupported
12272 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12273 # support --undefined. This deserves some investigation. FIXME
12274 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12275 else
12276 ld_shlibs_CXX=no
12277 fi
12278 ;;
12279
12280 chorus*)
12281 case $cc_basename in
12282 *)
12283 # FIXME: insert proper C++ library support
12284 ld_shlibs_CXX=no
12285 ;;
12286 esac
12287 ;;
12288
12289 cygwin* | mingw* | pw32* | cegcc*)
12290 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12291 # as there is no search path for DLLs.
12292 hardcode_libdir_flag_spec_CXX='-L$libdir'
12293 allow_undefined_flag_CXX=unsupported
12294 always_export_symbols_CXX=no
12295 enable_shared_with_static_runtimes_CXX=yes
12296
12297 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12298 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'
12299 # If the export-symbols file already is a .def file (1st line
12300 # is EXPORTS), use it as is; otherwise, prepend...
12301 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12302 cp $export_symbols $output_objdir/$soname.def;
12303 else
12304 echo EXPORTS > $output_objdir/$soname.def;
12305 cat $export_symbols >> $output_objdir/$soname.def;
12306 fi~
12307 $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'
12308 else
12309 ld_shlibs_CXX=no
12310 fi
12311 ;;
12312 darwin* | rhapsody*)
12313
12314
12315 archive_cmds_need_lc_CXX=no
12316 hardcode_direct_CXX=no
12317 hardcode_automatic_CXX=yes
12318 hardcode_shlibpath_var_CXX=unsupported
12319 whole_archive_flag_spec_CXX=''
12320 link_all_deplibs_CXX=yes
12321 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12322 case $cc_basename in
12323 ifort*) _lt_dar_can_shared=yes ;;
12324 *) _lt_dar_can_shared=$GCC ;;
12325 esac
12326 if test "$_lt_dar_can_shared" = "yes"; then
12327 output_verbose_link_cmd=echo
12328 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}"
12329 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12330 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}"
12331 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}"
12332 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12333 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}"
12334 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}"
12335 fi
12336
12337 else
12338 ld_shlibs_CXX=no
12339 fi
12340
12341 ;;
12342
12343 dgux*)
12344 case $cc_basename in
12345 ec++*)
12346 # FIXME: insert proper C++ library support
12347 ld_shlibs_CXX=no
12348 ;;
12349 ghcx*)
12350 # Green Hills C++ Compiler
12351 # FIXME: insert proper C++ library support
12352 ld_shlibs_CXX=no
12353 ;;
12354 *)
12355 # FIXME: insert proper C++ library support
12356 ld_shlibs_CXX=no
12357 ;;
12358 esac
12359 ;;
12360
12361 freebsd[12]*)
12362 # C++ shared libraries reported to be fairly broken before
12363 # switch to ELF
12364 ld_shlibs_CXX=no
12365 ;;
12366
12367 freebsd-elf*)
12368 archive_cmds_need_lc_CXX=no
12369 ;;
12370
12371 freebsd* | dragonfly*)
12372 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12373 # conventions
12374 ld_shlibs_CXX=yes
12375 ;;
12376
12377 gnu*)
12378 ;;
12379
12380 hpux9*)
12381 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12382 hardcode_libdir_separator_CXX=:
12383 export_dynamic_flag_spec_CXX='${wl}-E'
12384 hardcode_direct_CXX=yes
12385 hardcode_minus_L_CXX=yes # Not in the search PATH,
12386 # but as the default
12387 # location of the library.
12388
12389 case $cc_basename in
12390 CC*)
12391 # FIXME: insert proper C++ library support
12392 ld_shlibs_CXX=no
12393 ;;
12394 aCC*)
12395 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'
12396 # Commands to make compiler produce verbose output that lists
12397 # what "hidden" libraries, object files and flags are used when
12398 # linking a shared library.
12399 #
12400 # There doesn't appear to be a way to prevent this compiler from
12401 # explicitly linking system object files so we need to strip them
12402 # from the output so that they don't get included in the library
12403 # dependencies.
12404 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; $ECHO "X$list" | $Xsed'
12405 ;;
12406 *)
12407 if test "$GXX" = yes; then
12408 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12409 else
12410 # FIXME: insert proper C++ library support
12411 ld_shlibs_CXX=no
12412 fi
12413 ;;
12414 esac
12415 ;;
12416
12417 hpux10*|hpux11*)
12418 if test $with_gnu_ld = no; then
12419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12420 hardcode_libdir_separator_CXX=:
12421
12422 case $host_cpu in
12423 hppa*64*|ia64*)
12424 ;;
12425 *)
12426 export_dynamic_flag_spec_CXX='${wl}-E'
12427 ;;
12428 esac
12429 fi
12430 case $host_cpu in
12431 hppa*64*|ia64*)
12432 hardcode_direct_CXX=no
12433 hardcode_shlibpath_var_CXX=no
12434 ;;
12435 *)
12436 hardcode_direct_CXX=yes
12437 hardcode_direct_absolute_CXX=yes
12438 hardcode_minus_L_CXX=yes # Not in the search PATH,
12439 # but as the default
12440 # location of the library.
12441 ;;
12442 esac
12443
12444 case $cc_basename in
12445 CC*)
12446 # FIXME: insert proper C++ library support
12447 ld_shlibs_CXX=no
12448 ;;
12449 aCC*)
12450 case $host_cpu in
12451 hppa*64*)
12452 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12453 ;;
12454 ia64*)
12455 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12456 ;;
12457 *)
12458 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12459 ;;
12460 esac
12461 # Commands to make compiler produce verbose output that lists
12462 # what "hidden" libraries, object files and flags are used when
12463 # linking a shared library.
12464 #
12465 # There doesn't appear to be a way to prevent this compiler from
12466 # explicitly linking system object files so we need to strip them
12467 # from the output so that they don't get included in the library
12468 # dependencies.
12469 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; $ECHO "X$list" | $Xsed'
12470 ;;
12471 *)
12472 if test "$GXX" = yes; then
12473 if test $with_gnu_ld = no; then
12474 case $host_cpu in
12475 hppa*64*)
12476 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12477 ;;
12478 ia64*)
12479 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12480 ;;
12481 *)
12482 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483 ;;
12484 esac
12485 fi
12486 else
12487 # FIXME: insert proper C++ library support
12488 ld_shlibs_CXX=no
12489 fi
12490 ;;
12491 esac
12492 ;;
12493
12494 interix[3-9]*)
12495 hardcode_direct_CXX=no
12496 hardcode_shlibpath_var_CXX=no
12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12498 export_dynamic_flag_spec_CXX='${wl}-E'
12499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12500 # Instead, shared libraries are loaded at an image base (0x10000000 by
12501 # default) and relocated if they conflict, which is a slow very memory
12502 # consuming and fragmenting process. To avoid this, we pick a random,
12503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12505 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'
12506 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'
12507 ;;
12508 irix5* | irix6*)
12509 case $cc_basename in
12510 CC*)
12511 # SGI C++
12512 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12513
12514 # Archives containing C++ object files must be created using
12515 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12516 # necessary to make sure instantiated templates are included
12517 # in the archive.
12518 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12519 ;;
12520 *)
12521 if test "$GXX" = yes; then
12522 if test "$with_gnu_ld" = no; then
12523 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12524 else
12525 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12526 fi
12527 fi
12528 link_all_deplibs_CXX=yes
12529 ;;
12530 esac
12531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12532 hardcode_libdir_separator_CXX=:
12533 inherit_rpath_CXX=yes
12534 ;;
12535
12536 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12537 case $cc_basename in
12538 KCC*)
12539 # Kuck and Associates, Inc. (KAI) C++ Compiler
12540
12541 # KCC will only create a shared library if the output file
12542 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12543 # to its proper name (with version) after linking.
12544 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'
12545 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'
12546 # Commands to make compiler produce verbose output that lists
12547 # what "hidden" libraries, object files and flags are used when
12548 # linking a shared library.
12549 #
12550 # There doesn't appear to be a way to prevent this compiler from
12551 # explicitly linking system object files so we need to strip them
12552 # from the output so that they don't get included in the library
12553 # dependencies.
12554 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; $ECHO "X$list" | $Xsed'
12555
12556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12558
12559 # Archives containing C++ object files must be created using
12560 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12561 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12562 ;;
12563 icpc* | ecpc* )
12564 # Intel C++
12565 with_gnu_ld=yes
12566 # version 8.0 and above of icpc choke on multiply defined symbols
12567 # if we add $predep_objects and $postdep_objects, however 7.1 and
12568 # earlier do not add the objects themselves.
12569 case `$CC -V 2>&1` in
12570 *"Version 7."*)
12571 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12572 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'
12573 ;;
12574 *) # Version 8.0 or newer
12575 tmp_idyn=
12576 case $host_cpu in
12577 ia64*) tmp_idyn=' -i_dynamic';;
12578 esac
12579 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12580 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'
12581 ;;
12582 esac
12583 archive_cmds_need_lc_CXX=no
12584 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12585 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12586 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12587 ;;
12588 pgCC* | pgcpp*)
12589 # Portland Group C++ compiler
12590 case `$CC -V` in
12591 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12592 prelink_cmds_CXX='tpldir=Template.dir~
12593 rm -rf $tpldir~
12594 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12595 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12596 old_archive_cmds_CXX='tpldir=Template.dir~
12597 rm -rf $tpldir~
12598 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12599 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12600 $RANLIB $oldlib'
12601 archive_cmds_CXX='tpldir=Template.dir~
12602 rm -rf $tpldir~
12603 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12604 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12605 archive_expsym_cmds_CXX='tpldir=Template.dir~
12606 rm -rf $tpldir~
12607 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12608 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12609 ;;
12610 *) # Version 6 will use weak symbols
12611 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12612 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'
12613 ;;
12614 esac
12615
12616 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12618 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12619 ;;
12620 cxx*)
12621 # Compaq C++
12622 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12623 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'
12624
12625 runpath_var=LD_RUN_PATH
12626 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12627 hardcode_libdir_separator_CXX=:
12628
12629 # Commands to make compiler produce verbose output that lists
12630 # what "hidden" libraries, object files and flags are used when
12631 # linking a shared library.
12632 #
12633 # There doesn't appear to be a way to prevent this compiler from
12634 # explicitly linking system object files so we need to strip them
12635 # from the output so that they don't get included in the library
12636 # dependencies.
12637 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12638 ;;
12639 xl*)
12640 # IBM XL 8.0 on PPC, with GNU ld
12641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12643 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12644 if test "x$supports_anon_versioning" = xyes; then
12645 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12647 echo "local: *; };" >> $output_objdir/$libname.ver~
12648 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12649 fi
12650 ;;
12651 *)
12652 case `$CC -V 2>&1 | sed 5q` in
12653 *Sun\ C*)
12654 # Sun C++ 5.9
12655 no_undefined_flag_CXX=' -zdefs'
12656 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12657 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'
12658 hardcode_libdir_flag_spec_CXX='-R$libdir'
12659 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12660 compiler_needs_object_CXX=yes
12661
12662 # Not sure whether something based on
12663 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12664 # would be better.
12665 output_verbose_link_cmd='echo'
12666
12667 # Archives containing C++ object files must be created using
12668 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12669 # necessary to make sure instantiated templates are included
12670 # in the archive.
12671 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12672 ;;
12673 esac
12674 ;;
12675 esac
12676 ;;
12677
12678 lynxos*)
12679 # FIXME: insert proper C++ library support
12680 ld_shlibs_CXX=no
12681 ;;
12682
12683 m88k*)
12684 # FIXME: insert proper C++ library support
12685 ld_shlibs_CXX=no
12686 ;;
12687
12688 mvs*)
12689 case $cc_basename in
12690 cxx*)
12691 # FIXME: insert proper C++ library support
12692 ld_shlibs_CXX=no
12693 ;;
12694 *)
12695 # FIXME: insert proper C++ library support
12696 ld_shlibs_CXX=no
12697 ;;
12698 esac
12699 ;;
12700
12701 netbsd*)
12702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12703 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12704 wlarc=
12705 hardcode_libdir_flag_spec_CXX='-R$libdir'
12706 hardcode_direct_CXX=yes
12707 hardcode_shlibpath_var_CXX=no
12708 fi
12709 # Workaround some broken pre-1.5 toolchains
12710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12711 ;;
12712
12713 *nto* | *qnx*)
12714 ld_shlibs_CXX=yes
12715 ;;
12716
12717 openbsd2*)
12718 # C++ shared libraries are fairly broken
12719 ld_shlibs_CXX=no
12720 ;;
12721
12722 openbsd*)
12723 if test -f /usr/libexec/ld.so; then
12724 hardcode_direct_CXX=yes
12725 hardcode_shlibpath_var_CXX=no
12726 hardcode_direct_absolute_CXX=yes
12727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12730 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12731 export_dynamic_flag_spec_CXX='${wl}-E'
12732 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12733 fi
12734 output_verbose_link_cmd=echo
12735 else
12736 ld_shlibs_CXX=no
12737 fi
12738 ;;
12739
12740 osf3* | osf4* | osf5*)
12741 case $cc_basename in
12742 KCC*)
12743 # Kuck and Associates, Inc. (KAI) C++ Compiler
12744
12745 # KCC will only create a shared library if the output file
12746 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12747 # to its proper name (with version) after linking.
12748 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'
12749
12750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12751 hardcode_libdir_separator_CXX=:
12752
12753 # Archives containing C++ object files must be created using
12754 # the KAI C++ compiler.
12755 case $host in
12756 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12757 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12758 esac
12759 ;;
12760 RCC*)
12761 # Rational C++ 2.4.1
12762 # FIXME: insert proper C++ library support
12763 ld_shlibs_CXX=no
12764 ;;
12765 cxx*)
12766 case $host in
12767 osf3*)
12768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12769 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12771 ;;
12772 *)
12773 allow_undefined_flag_CXX=' -expect_unresolved \*'
12774 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12775 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12776 echo "-hidden">> $lib.exp~
12777 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12778 $RM $lib.exp'
12779 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12780 ;;
12781 esac
12782
12783 hardcode_libdir_separator_CXX=:
12784
12785 # Commands to make compiler produce verbose output that lists
12786 # what "hidden" libraries, object files and flags are used when
12787 # linking a shared library.
12788 #
12789 # There doesn't appear to be a way to prevent this compiler from
12790 # explicitly linking system object files so we need to strip them
12791 # from the output so that they don't get included in the library
12792 # dependencies.
12793 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12794 ;;
12795 *)
12796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12797 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12798 case $host in
12799 osf3*)
12800 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12801 ;;
12802 *)
12803 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12804 ;;
12805 esac
12806
12807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12808 hardcode_libdir_separator_CXX=:
12809
12810 # Commands to make compiler produce verbose output that lists
12811 # what "hidden" libraries, object files and flags are used when
12812 # linking a shared library.
12813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12814
12815 else
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12818 fi
12819 ;;
12820 esac
12821 ;;
12822
12823 psos*)
12824 # FIXME: insert proper C++ library support
12825 ld_shlibs_CXX=no
12826 ;;
12827
12828 sunos4*)
12829 case $cc_basename in
12830 CC*)
12831 # Sun C++ 4.x
12832 # FIXME: insert proper C++ library support
12833 ld_shlibs_CXX=no
12834 ;;
12835 lcc*)
12836 # Lucid
12837 # FIXME: insert proper C++ library support
12838 ld_shlibs_CXX=no
12839 ;;
12840 *)
12841 # FIXME: insert proper C++ library support
12842 ld_shlibs_CXX=no
12843 ;;
12844 esac
12845 ;;
12846
12847 solaris*)
12848 case $cc_basename in
12849 CC*)
12850 # Sun C++ 4.2, 5.x and Centerline C++
12851 archive_cmds_need_lc_CXX=yes
12852 no_undefined_flag_CXX=' -zdefs'
12853 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12854 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12855 $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'
12856
12857 hardcode_libdir_flag_spec_CXX='-R$libdir'
12858 hardcode_shlibpath_var_CXX=no
12859 case $host_os in
12860 solaris2.[0-5] | solaris2.[0-5].*) ;;
12861 *)
12862 # The compiler driver will combine and reorder linker options,
12863 # but understands `-z linker_flag'.
12864 # Supported since Solaris 2.6 (maybe 2.5.1?)
12865 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12866 ;;
12867 esac
12868 link_all_deplibs_CXX=yes
12869
12870 output_verbose_link_cmd='echo'
12871
12872 # Archives containing C++ object files must be created using
12873 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12874 # necessary to make sure instantiated templates are included
12875 # in the archive.
12876 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12877 ;;
12878 gcx*)
12879 # Green Hills C++ Compiler
12880 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12881
12882 # The C++ compiler must be used to create the archive.
12883 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12884 ;;
12885 *)
12886 # GNU C++ compiler with Solaris linker
12887 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12888 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12889 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12890 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12891 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12892 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12893
12894 # Commands to make compiler produce verbose output that lists
12895 # what "hidden" libraries, object files and flags are used when
12896 # linking a shared library.
12897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12898 else
12899 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12900 # platform.
12901 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12902 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12903 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12904
12905 # Commands to make compiler produce verbose output that lists
12906 # what "hidden" libraries, object files and flags are used when
12907 # linking a shared library.
12908 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12909 fi
12910
12911 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12912 case $host_os in
12913 solaris2.[0-5] | solaris2.[0-5].*) ;;
12914 *)
12915 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12916 ;;
12917 esac
12918 fi
12919 ;;
12920 esac
12921 ;;
12922
12923 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12924 no_undefined_flag_CXX='${wl}-z,text'
12925 archive_cmds_need_lc_CXX=no
12926 hardcode_shlibpath_var_CXX=no
12927 runpath_var='LD_RUN_PATH'
12928
12929 case $cc_basename in
12930 CC*)
12931 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12933 ;;
12934 *)
12935 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12936 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12937 ;;
12938 esac
12939 ;;
12940
12941 sysv5* | sco3.2v5* | sco5v6*)
12942 # Note: We can NOT use -z defs as we might desire, because we do not
12943 # link with -lc, and that would cause any symbols used from libc to
12944 # always be unresolved, which means just about no library would
12945 # ever link correctly. If we're not using GNU ld we use -z text
12946 # though, which does catch some bad symbols but isn't as heavy-handed
12947 # as -z defs.
12948 no_undefined_flag_CXX='${wl}-z,text'
12949 allow_undefined_flag_CXX='${wl}-z,nodefs'
12950 archive_cmds_need_lc_CXX=no
12951 hardcode_shlibpath_var_CXX=no
12952 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12953 hardcode_libdir_separator_CXX=':'
12954 link_all_deplibs_CXX=yes
12955 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12956 runpath_var='LD_RUN_PATH'
12957
12958 case $cc_basename in
12959 CC*)
12960 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12961 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12962 ;;
12963 *)
12964 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12965 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12966 ;;
12967 esac
12968 ;;
12969
12970 tandem*)
12971 case $cc_basename in
12972 NCC*)
12973 # NonStop-UX NCC 3.20
12974 # FIXME: insert proper C++ library support
12975 ld_shlibs_CXX=no
12976 ;;
12977 *)
12978 # FIXME: insert proper C++ library support
12979 ld_shlibs_CXX=no
12980 ;;
12981 esac
12982 ;;
12983
12984 vxworks*)
12985 # FIXME: insert proper C++ library support
12986 ld_shlibs_CXX=no
12987 ;;
12988
12989 *)
12990 # FIXME: insert proper C++ library support
12991 ld_shlibs_CXX=no
12992 ;;
12993 esac
12994
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12996$as_echo "$ld_shlibs_CXX" >&6; }
12997 test "$ld_shlibs_CXX" = no && can_build_shared=no
12998
12999 GCC_CXX="$GXX"
13000 LD_CXX="$LD"
13001
13002 ## CAVEAT EMPTOR:
13003 ## There is no encapsulation within the following macros, do not change
13004 ## the running order or otherwise move them around unless you know exactly
13005 ## what you are doing...
13006 # Dependencies to place before and after the object being linked:
13007predep_objects_CXX=
13008postdep_objects_CXX=
13009predeps_CXX=
13010postdeps_CXX=
13011compiler_lib_search_path_CXX=
13012
13013cat > conftest.$ac_ext <<_LT_EOF
13014class Foo
13015{
13016public:
13017 Foo (void) { a = 0; }
13018private:
13019 int a;
13020};
13021_LT_EOF
13022
13023if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13024 (eval $ac_compile) 2>&5
13025 ac_status=$?
13026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027 test $ac_status = 0; }; then
13028 # Parse the compiler output and extract the necessary
13029 # objects, libraries and library flags.
13030
13031 # Sentinel used to keep track of whether or not we are before
13032 # the conftest object file.
13033 pre_test_object_deps_done=no
13034
13035 for p in `eval "$output_verbose_link_cmd"`; do
13036 case $p in
13037
13038 -L* | -R* | -l*)
13039 # Some compilers place space between "-{L,R}" and the path.
13040 # Remove the space.
13041 if test $p = "-L" ||
13042 test $p = "-R"; then
13043 prev=$p
13044 continue
13045 else
13046 prev=
13047 fi
13048
13049 if test "$pre_test_object_deps_done" = no; then
13050 case $p in
13051 -L* | -R*)
13052 # Internal compiler library paths should come after those
13053 # provided the user. The postdeps already come after the
13054 # user supplied libs so there is no need to process them.
13055 if test -z "$compiler_lib_search_path_CXX"; then
13056 compiler_lib_search_path_CXX="${prev}${p}"
13057 else
13058 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13059 fi
13060 ;;
13061 # The "-l" case would never come before the object being
13062 # linked, so don't bother handling this case.
13063 esac
13064 else
13065 if test -z "$postdeps_CXX"; then
13066 postdeps_CXX="${prev}${p}"
13067 else
13068 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13069 fi
13070 fi
13071 ;;
13072
13073 *.$objext)
13074 # This assumes that the test object file only shows up
13075 # once in the compiler output.
13076 if test "$p" = "conftest.$objext"; then
13077 pre_test_object_deps_done=yes
13078 continue
13079 fi
13080
13081 if test "$pre_test_object_deps_done" = no; then
13082 if test -z "$predep_objects_CXX"; then
13083 predep_objects_CXX="$p"
13084 else
13085 predep_objects_CXX="$predep_objects_CXX $p"
13086 fi
13087 else
13088 if test -z "$postdep_objects_CXX"; then
13089 postdep_objects_CXX="$p"
13090 else
13091 postdep_objects_CXX="$postdep_objects_CXX $p"
13092 fi
13093 fi
13094 ;;
13095
13096 *) ;; # Ignore the rest.
13097
13098 esac
13099 done
13100
13101 # Clean up.
13102 rm -f a.out a.exe
13103else
13104 echo "libtool.m4: error: problem compiling CXX test program"
13105fi
13106
13107$RM -f confest.$objext
13108
13109# PORTME: override above test on systems where it is broken
13110case $host_os in
13111interix[3-9]*)
13112 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13113 # hack all around it, let's just trust "g++" to DTRT.
13114 predep_objects_CXX=
13115 postdep_objects_CXX=
13116 postdeps_CXX=
13117 ;;
13118
13119linux*)
13120 case `$CC -V 2>&1 | sed 5q` in
13121 *Sun\ C*)
13122 # Sun C++ 5.9
13123
13124 # The more standards-conforming stlport4 library is
13125 # incompatible with the Cstd library. Avoid specifying
13126 # it if it's in CXXFLAGS. Ignore libCrun as
13127 # -library=stlport4 depends on it.
13128 case " $CXX $CXXFLAGS " in
13129 *" -library=stlport4 "*)
13130 solaris_use_stlport4=yes
13131 ;;
13132 esac
13133
13134 if test "$solaris_use_stlport4" != yes; then
13135 postdeps_CXX='-library=Cstd -library=Crun'
13136 fi
13137 ;;
13138 esac
13139 ;;
13140
13141solaris*)
13142 case $cc_basename in
13143 CC*)
13144 # The more standards-conforming stlport4 library is
13145 # incompatible with the Cstd library. Avoid specifying
13146 # it if it's in CXXFLAGS. Ignore libCrun as
13147 # -library=stlport4 depends on it.
13148 case " $CXX $CXXFLAGS " in
13149 *" -library=stlport4 "*)
13150 solaris_use_stlport4=yes
13151 ;;
13152 esac
13153
13154 # Adding this requires a known-good setup of shared libraries for
13155 # Sun compiler versions before 5.6, else PIC objects from an old
13156 # archive will be linked into the output, leading to subtle bugs.
13157 if test "$solaris_use_stlport4" != yes; then
13158 postdeps_CXX='-library=Cstd -library=Crun'
13159 fi
13160 ;;
13161 esac
13162 ;;
13163esac
13164
13165
13166case " $postdeps_CXX " in
13167*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13168esac
13169 compiler_lib_search_dirs_CXX=
13170if test -n "${compiler_lib_search_path_CXX}"; then
13171 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13172fi
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204 lt_prog_compiler_wl_CXX=
13205lt_prog_compiler_pic_CXX=
13206lt_prog_compiler_static_CXX=
13207
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13209$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13210
13211 # C++ specific cases for pic, static, wl, etc.
13212 if test "$GXX" = yes; then
13213 lt_prog_compiler_wl_CXX='-Wl,'
13214 lt_prog_compiler_static_CXX='-static'
13215
13216 case $host_os in
13217 aix*)
13218 # All AIX code is PIC.
13219 if test "$host_cpu" = ia64; then
13220 # AIX 5 now supports IA64 processor
13221 lt_prog_compiler_static_CXX='-Bstatic'
13222 fi
13223 ;;
13224
13225 amigaos*)
13226 case $host_cpu in
13227 powerpc)
13228 # see comment about AmigaOS4 .so support
13229 lt_prog_compiler_pic_CXX='-fPIC'
13230 ;;
13231 m68k)
13232 # FIXME: we need at least 68020 code to build shared libraries, but
13233 # adding the `-m68020' flag to GCC prevents building anything better,
13234 # like `-m68040'.
13235 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13236 ;;
13237 esac
13238 ;;
13239
13240 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13241 # PIC is the default for these OSes.
13242 ;;
13243 mingw* | cygwin* | os2* | pw32* | cegcc*)
13244 # This hack is so that the source file can tell whether it is being
13245 # built for inclusion in a dll (and should export symbols for example).
13246 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13247 # (--disable-auto-import) libraries
13248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13249 ;;
13250 darwin* | rhapsody*)
13251 # PIC is the default on this platform
13252 # Common symbols not allowed in MH_DYLIB files
13253 lt_prog_compiler_pic_CXX='-fno-common'
13254 ;;
13255 *djgpp*)
13256 # DJGPP does not support shared libraries at all
13257 lt_prog_compiler_pic_CXX=
13258 ;;
13259 interix[3-9]*)
13260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13261 # Instead, we relocate shared libraries at runtime.
13262 ;;
13263 sysv4*MP*)
13264 if test -d /usr/nec; then
13265 lt_prog_compiler_pic_CXX=-Kconform_pic
13266 fi
13267 ;;
13268 hpux*)
13269 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13270 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13271 # sets the default TLS model and affects inlining.
13272 case $host_cpu in
13273 hppa*64*)
13274 ;;
13275 *)
13276 lt_prog_compiler_pic_CXX='-fPIC'
13277 ;;
13278 esac
13279 ;;
13280 *qnx* | *nto*)
13281 # QNX uses GNU C++, but need to define -shared option too, otherwise
13282 # it will coredump.
13283 lt_prog_compiler_pic_CXX='-fPIC -shared'
13284 ;;
13285 *)
13286 lt_prog_compiler_pic_CXX='-fPIC'
13287 ;;
13288 esac
13289 else
13290 case $host_os in
13291 aix[4-9]*)
13292 # All AIX code is PIC.
13293 if test "$host_cpu" = ia64; then
13294 # AIX 5 now supports IA64 processor
13295 lt_prog_compiler_static_CXX='-Bstatic'
13296 else
13297 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13298 fi
13299 ;;
13300 chorus*)
13301 case $cc_basename in
13302 cxch68*)
13303 # Green Hills C++ Compiler
13304 # _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"
13305 ;;
13306 esac
13307 ;;
13308 dgux*)
13309 case $cc_basename in
13310 ec++*)
13311 lt_prog_compiler_pic_CXX='-KPIC'
13312 ;;
13313 ghcx*)
13314 # Green Hills C++ Compiler
13315 lt_prog_compiler_pic_CXX='-pic'
13316 ;;
13317 *)
13318 ;;
13319 esac
13320 ;;
13321 freebsd* | dragonfly*)
13322 # FreeBSD uses GNU C++
13323 ;;
13324 hpux9* | hpux10* | hpux11*)
13325 case $cc_basename in
13326 CC*)
13327 lt_prog_compiler_wl_CXX='-Wl,'
13328 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13329 if test "$host_cpu" != ia64; then
13330 lt_prog_compiler_pic_CXX='+Z'
13331 fi
13332 ;;
13333 aCC*)
13334 lt_prog_compiler_wl_CXX='-Wl,'
13335 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13336 case $host_cpu in
13337 hppa*64*|ia64*)
13338 # +Z the default
13339 ;;
13340 *)
13341 lt_prog_compiler_pic_CXX='+Z'
13342 ;;
13343 esac
13344 ;;
13345 *)
13346 ;;
13347 esac
13348 ;;
13349 interix*)
13350 # This is c89, which is MS Visual C++ (no shared libs)
13351 # Anyone wants to do a port?
13352 ;;
13353 irix5* | irix6* | nonstopux*)
13354 case $cc_basename in
13355 CC*)
13356 lt_prog_compiler_wl_CXX='-Wl,'
13357 lt_prog_compiler_static_CXX='-non_shared'
13358 # CC pic flag -KPIC is the default.
13359 ;;
13360 *)
13361 ;;
13362 esac
13363 ;;
13364 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13365 case $cc_basename in
13366 KCC*)
13367 # KAI C++ Compiler
13368 lt_prog_compiler_wl_CXX='--backend -Wl,'
13369 lt_prog_compiler_pic_CXX='-fPIC'
13370 ;;
13371 ecpc* )
13372 # old Intel C++ for x86_64 which still supported -KPIC.
13373 lt_prog_compiler_wl_CXX='-Wl,'
13374 lt_prog_compiler_pic_CXX='-KPIC'
13375 lt_prog_compiler_static_CXX='-static'
13376 ;;
13377 icpc* )
13378 # Intel C++, used to be incompatible with GCC.
13379 # ICC 10 doesn't accept -KPIC any more.
13380 lt_prog_compiler_wl_CXX='-Wl,'
13381 lt_prog_compiler_pic_CXX='-fPIC'
13382 lt_prog_compiler_static_CXX='-static'
13383 ;;
13384 pgCC* | pgcpp*)
13385 # Portland Group C++ compiler
13386 lt_prog_compiler_wl_CXX='-Wl,'
13387 lt_prog_compiler_pic_CXX='-fpic'
13388 lt_prog_compiler_static_CXX='-Bstatic'
13389 ;;
13390 cxx*)
13391 # Compaq C++
13392 # Make sure the PIC flag is empty. It appears that all Alpha
13393 # Linux and Compaq Tru64 Unix objects are PIC.
13394 lt_prog_compiler_pic_CXX=
13395 lt_prog_compiler_static_CXX='-non_shared'
13396 ;;
13397 xlc* | xlC*)
13398 # IBM XL 8.0 on PPC
13399 lt_prog_compiler_wl_CXX='-Wl,'
13400 lt_prog_compiler_pic_CXX='-qpic'
13401 lt_prog_compiler_static_CXX='-qstaticlink'
13402 ;;
13403 *)
13404 case `$CC -V 2>&1 | sed 5q` in
13405 *Sun\ C*)
13406 # Sun C++ 5.9
13407 lt_prog_compiler_pic_CXX='-KPIC'
13408 lt_prog_compiler_static_CXX='-Bstatic'
13409 lt_prog_compiler_wl_CXX='-Qoption ld '
13410 ;;
13411 esac
13412 ;;
13413 esac
13414 ;;
13415 lynxos*)
13416 ;;
13417 m88k*)
13418 ;;
13419 mvs*)
13420 case $cc_basename in
13421 cxx*)
13422 lt_prog_compiler_pic_CXX='-W c,exportall'
13423 ;;
13424 *)
13425 ;;
13426 esac
13427 ;;
13428 netbsd* | netbsdelf*-gnu)
13429 ;;
13430 *qnx* | *nto*)
13431 # QNX uses GNU C++, but need to define -shared option too, otherwise
13432 # it will coredump.
13433 lt_prog_compiler_pic_CXX='-fPIC -shared'
13434 ;;
13435 osf3* | osf4* | osf5*)
13436 case $cc_basename in
13437 KCC*)
13438 lt_prog_compiler_wl_CXX='--backend -Wl,'
13439 ;;
13440 RCC*)
13441 # Rational C++ 2.4.1
13442 lt_prog_compiler_pic_CXX='-pic'
13443 ;;
13444 cxx*)
13445 # Digital/Compaq C++
13446 lt_prog_compiler_wl_CXX='-Wl,'
13447 # Make sure the PIC flag is empty. It appears that all Alpha
13448 # Linux and Compaq Tru64 Unix objects are PIC.
13449 lt_prog_compiler_pic_CXX=
13450 lt_prog_compiler_static_CXX='-non_shared'
13451 ;;
13452 *)
13453 ;;
13454 esac
13455 ;;
13456 psos*)
13457 ;;
13458 solaris*)
13459 case $cc_basename in
13460 CC*)
13461 # Sun C++ 4.2, 5.x and Centerline C++
13462 lt_prog_compiler_pic_CXX='-KPIC'
13463 lt_prog_compiler_static_CXX='-Bstatic'
13464 lt_prog_compiler_wl_CXX='-Qoption ld '
13465 ;;
13466 gcx*)
13467 # Green Hills C++ Compiler
13468 lt_prog_compiler_pic_CXX='-PIC'
13469 ;;
13470 *)
13471 ;;
13472 esac
13473 ;;
13474 sunos4*)
13475 case $cc_basename in
13476 CC*)
13477 # Sun C++ 4.x
13478 lt_prog_compiler_pic_CXX='-pic'
13479 lt_prog_compiler_static_CXX='-Bstatic'
13480 ;;
13481 lcc*)
13482 # Lucid
13483 lt_prog_compiler_pic_CXX='-pic'
13484 ;;
13485 *)
13486 ;;
13487 esac
13488 ;;
13489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13490 case $cc_basename in
13491 CC*)
13492 lt_prog_compiler_wl_CXX='-Wl,'
13493 lt_prog_compiler_pic_CXX='-KPIC'
13494 lt_prog_compiler_static_CXX='-Bstatic'
13495 ;;
13496 esac
13497 ;;
13498 tandem*)
13499 case $cc_basename in
13500 NCC*)
13501 # NonStop-UX NCC 3.20
13502 lt_prog_compiler_pic_CXX='-KPIC'
13503 ;;
13504 *)
13505 ;;
13506 esac
13507 ;;
13508 vxworks*)
13509 ;;
13510 *)
13511 lt_prog_compiler_can_build_shared_CXX=no
13512 ;;
13513 esac
13514 fi
13515
13516case $host_os in
13517 # For platforms which do not support PIC, -DPIC is meaningless:
13518 *djgpp*)
13519 lt_prog_compiler_pic_CXX=
13520 ;;
13521 *)
13522 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13523 ;;
13524esac
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13526$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13527
13528
13529
13530#
13531# Check to make sure the PIC flag actually works.
13532#
13533if test -n "$lt_prog_compiler_pic_CXX"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13535$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13536if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13537 $as_echo_n "(cached) " >&6
13538else
13539 lt_cv_prog_compiler_pic_works_CXX=no
13540 ac_outfile=conftest.$ac_objext
13541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13542 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13543 # Insert the option either (1) after the last *FLAGS variable, or
13544 # (2) before a word containing "conftest.", or (3) at the end.
13545 # Note that $ac_compile itself does not contain backslashes and begins
13546 # with a dollar sign (not a hyphen), so the echo should work correctly.
13547 # The option is referenced via a variable to avoid confusing sed.
13548 lt_compile=`echo "$ac_compile" | $SED \
13549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13551 -e 's:$: $lt_compiler_flag:'`
13552 (eval echo "\"\$as_me:13552: $lt_compile\"" >&5)
13553 (eval "$lt_compile" 2>conftest.err)
13554 ac_status=$?
13555 cat conftest.err >&5
13556 echo "$as_me:13556: \$? = $ac_status" >&5
13557 if (exit $ac_status) && test -s "$ac_outfile"; then
13558 # The compiler can only warn and ignore the option if not recognized
13559 # So say no if there are warnings other than the usual output.
13560 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13563 lt_cv_prog_compiler_pic_works_CXX=yes
13564 fi
13565 fi
13566 $RM conftest*
13567
13568fi
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13570$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13571
13572if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13573 case $lt_prog_compiler_pic_CXX in
13574 "" | " "*) ;;
13575 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13576 esac
13577else
13578 lt_prog_compiler_pic_CXX=
13579 lt_prog_compiler_can_build_shared_CXX=no
13580fi
13581
13582fi
13583
13584
13585
13586#
13587# Check to make sure the static flag actually works.
13588#
13589wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13591$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13592if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13593 $as_echo_n "(cached) " >&6
13594else
13595 lt_cv_prog_compiler_static_works_CXX=no
13596 save_LDFLAGS="$LDFLAGS"
13597 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13598 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13599 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13600 # The linker can only warn and ignore the option if not recognized
13601 # So say no if there are warnings
13602 if test -s conftest.err; then
13603 # Append any errors to the config.log.
13604 cat conftest.err 1>&5
13605 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13607 if diff conftest.exp conftest.er2 >/dev/null; then
13608 lt_cv_prog_compiler_static_works_CXX=yes
13609 fi
13610 else
13611 lt_cv_prog_compiler_static_works_CXX=yes
13612 fi
13613 fi
13614 $RM -r conftest*
13615 LDFLAGS="$save_LDFLAGS"
13616
13617fi
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13619$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13620
13621if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13622 :
13623else
13624 lt_prog_compiler_static_CXX=
13625fi
13626
13627
13628
13629
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13631$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13632if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634else
13635 lt_cv_prog_compiler_c_o_CXX=no
13636 $RM -r conftest 2>/dev/null
13637 mkdir conftest
13638 cd conftest
13639 mkdir out
13640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13641
13642 lt_compiler_flag="-o out/conftest2.$ac_objext"
13643 # Insert the option either (1) after the last *FLAGS variable, or
13644 # (2) before a word containing "conftest.", or (3) at the end.
13645 # Note that $ac_compile itself does not contain backslashes and begins
13646 # with a dollar sign (not a hyphen), so the echo should work correctly.
13647 lt_compile=`echo "$ac_compile" | $SED \
13648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13650 -e 's:$: $lt_compiler_flag:'`
13651 (eval echo "\"\$as_me:13651: $lt_compile\"" >&5)
13652 (eval "$lt_compile" 2>out/conftest.err)
13653 ac_status=$?
13654 cat out/conftest.err >&5
13655 echo "$as_me:13655: \$? = $ac_status" >&5
13656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13657 then
13658 # The compiler can only warn and ignore the option if not recognized
13659 # So say no if there are warnings
13660 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13661 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13662 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13663 lt_cv_prog_compiler_c_o_CXX=yes
13664 fi
13665 fi
13666 chmod u+w . 2>&5
13667 $RM conftest*
13668 # SGI C++ compiler will create directory out/ii_files/ for
13669 # template instantiation
13670 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13671 $RM out/* && rmdir out
13672 cd ..
13673 $RM -r conftest
13674 $RM conftest*
13675
13676fi
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13678$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13679
13680
13681
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13683$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13684if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686else
13687 lt_cv_prog_compiler_c_o_CXX=no
13688 $RM -r conftest 2>/dev/null
13689 mkdir conftest
13690 cd conftest
13691 mkdir out
13692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13693
13694 lt_compiler_flag="-o out/conftest2.$ac_objext"
13695 # Insert the option either (1) after the last *FLAGS variable, or
13696 # (2) before a word containing "conftest.", or (3) at the end.
13697 # Note that $ac_compile itself does not contain backslashes and begins
13698 # with a dollar sign (not a hyphen), so the echo should work correctly.
13699 lt_compile=`echo "$ac_compile" | $SED \
13700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13702 -e 's:$: $lt_compiler_flag:'`
13703 (eval echo "\"\$as_me:13703: $lt_compile\"" >&5)
13704 (eval "$lt_compile" 2>out/conftest.err)
13705 ac_status=$?
13706 cat out/conftest.err >&5
13707 echo "$as_me:13707: \$? = $ac_status" >&5
13708 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13709 then
13710 # The compiler can only warn and ignore the option if not recognized
13711 # So say no if there are warnings
13712 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13713 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13714 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13715 lt_cv_prog_compiler_c_o_CXX=yes
13716 fi
13717 fi
13718 chmod u+w . 2>&5
13719 $RM conftest*
13720 # SGI C++ compiler will create directory out/ii_files/ for
13721 # template instantiation
13722 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13723 $RM out/* && rmdir out
13724 cd ..
13725 $RM -r conftest
13726 $RM conftest*
13727
13728fi
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13730$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13731
13732
13733
13734
13735hard_links="nottested"
13736if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13737 # do not overwrite the value of need_locks provided by the user
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13739$as_echo_n "checking if we can lock with hard links... " >&6; }
13740 hard_links=yes
13741 $RM conftest*
13742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13743 touch conftest.a
13744 ln conftest.a conftest.b 2>&5 || hard_links=no
13745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13747$as_echo "$hard_links" >&6; }
13748 if test "$hard_links" = no; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13750$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13751 need_locks=warn
13752 fi
13753else
13754 need_locks=no
13755fi
13756
13757
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13760$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13761
13762 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13763 case $host_os in
13764 aix[4-9]*)
13765 # If we're using GNU nm, then we don't want the "-C" option.
13766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13767 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13768 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13769 else
13770 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'
13771 fi
13772 ;;
13773 pw32*)
13774 export_symbols_cmds_CXX="$ltdll_cmds"
13775 ;;
13776 cygwin* | mingw* | cegcc*)
13777 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13778 ;;
13779 linux* | k*bsd*-gnu)
13780 link_all_deplibs_CXX=no
13781 ;;
13782 *)
13783 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13784 ;;
13785 esac
13786 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13787
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13789$as_echo "$ld_shlibs_CXX" >&6; }
13790test "$ld_shlibs_CXX" = no && can_build_shared=no
13791
13792with_gnu_ld_CXX=$with_gnu_ld
13793
13794
13795
13796
13797
13798
13799#
13800# Do we need to explicitly link libc?
13801#
13802case "x$archive_cmds_need_lc_CXX" in
13803x|xyes)
13804 # Assume -lc should be added
13805 archive_cmds_need_lc_CXX=yes
13806
13807 if test "$enable_shared" = yes && test "$GCC" = yes; then
13808 case $archive_cmds_CXX in
13809 *'~'*)
13810 # FIXME: we may have to deal with multi-command sequences.
13811 ;;
13812 '$CC '*)
13813 # Test whether the compiler implicitly links with -lc since on some
13814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13815 # to ld, don't add -lc before -lgcc.
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13817$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13818 $RM conftest*
13819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13820
13821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13823 ac_status=$?
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825 test $ac_status = 0; } 2>conftest.err; then
13826 soname=conftest
13827 lib=conftest
13828 libobjs=conftest.$ac_objext
13829 deplibs=
13830 wl=$lt_prog_compiler_wl_CXX
13831 pic_flag=$lt_prog_compiler_pic_CXX
13832 compiler_flags=-v
13833 linker_flags=-v
13834 verstring=
13835 output_objdir=.
13836 libname=conftest
13837 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13838 allow_undefined_flag_CXX=
13839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13840 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13841 ac_status=$?
13842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13843 test $ac_status = 0; }
13844 then
13845 archive_cmds_need_lc_CXX=no
13846 else
13847 archive_cmds_need_lc_CXX=yes
13848 fi
13849 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13850 else
13851 cat conftest.err 1>&5
13852 fi
13853 $RM conftest*
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13855$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13856 ;;
13857 esac
13858 fi
13859 ;;
13860esac
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13926$as_echo_n "checking dynamic linker characteristics... " >&6; }
13927
13928library_names_spec=
13929libname_spec='lib$name'
13930soname_spec=
13931shrext_cmds=".so"
13932postinstall_cmds=
13933postuninstall_cmds=
13934finish_cmds=
13935finish_eval=
13936shlibpath_var=
13937shlibpath_overrides_runpath=unknown
13938version_type=none
13939dynamic_linker="$host_os ld.so"
13940sys_lib_dlsearch_path_spec="/lib /usr/lib"
13941need_lib_prefix=unknown
13942hardcode_into_libs=no
13943
13944# when you set need_version to no, make sure it does not cause -set_version
13945# flags to be left without arguments
13946need_version=unknown
13947
13948case $host_os in
13949aix3*)
13950 version_type=linux
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13952 shlibpath_var=LIBPATH
13953
13954 # AIX 3 has no versioning support, so we append a major version to the name.
13955 soname_spec='${libname}${release}${shared_ext}$major'
13956 ;;
13957
13958aix[4-9]*)
13959 version_type=linux
13960 need_lib_prefix=no
13961 need_version=no
13962 hardcode_into_libs=yes
13963 if test "$host_cpu" = ia64; then
13964 # AIX 5 supports IA64
13965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13966 shlibpath_var=LD_LIBRARY_PATH
13967 else
13968 # With GCC up to 2.95.x, collect2 would create an import file
13969 # for dependence libraries. The import file would start with
13970 # the line `#! .'. This would cause the generated library to
13971 # depend on `.', always an invalid library. This was fixed in
13972 # development snapshots of GCC prior to 3.0.
13973 case $host_os in
13974 aix4 | aix4.[01] | aix4.[01].*)
13975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13976 echo ' yes '
13977 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13978 :
13979 else
13980 can_build_shared=no
13981 fi
13982 ;;
13983 esac
13984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13985 # soname into executable. Probably we can add versioning support to
13986 # collect2, so additional links can be useful in future.
13987 if test "$aix_use_runtimelinking" = yes; then
13988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13989 # instead of lib<name>.a to let people know that these are not
13990 # typical AIX shared libraries.
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992 else
13993 # We preserve .a as extension for shared libraries through AIX4.2
13994 # and later when we are not doing run time linking.
13995 library_names_spec='${libname}${release}.a $libname.a'
13996 soname_spec='${libname}${release}${shared_ext}$major'
13997 fi
13998 shlibpath_var=LIBPATH
13999 fi
14000 ;;
14001
14002amigaos*)
14003 case $host_cpu in
14004 powerpc)
14005 # Since July 2007 AmigaOS4 officially supports .so libraries.
14006 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 ;;
14009 m68k)
14010 library_names_spec='$libname.ixlibrary $libname.a'
14011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14012 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14013 ;;
14014 esac
14015 ;;
14016
14017beos*)
14018 library_names_spec='${libname}${shared_ext}'
14019 dynamic_linker="$host_os ld.so"
14020 shlibpath_var=LIBRARY_PATH
14021 ;;
14022
14023bsdi[45]*)
14024 version_type=linux
14025 need_version=no
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14032 # the default ld.so.conf also contains /usr/contrib/lib and
14033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14034 # libtool to hard-code these into programs
14035 ;;
14036
14037cygwin* | mingw* | pw32* | cegcc*)
14038 version_type=windows
14039 shrext_cmds=".dll"
14040 need_version=no
14041 need_lib_prefix=no
14042
14043 case $GCC,$host_os in
14044 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14045 library_names_spec='$libname.dll.a'
14046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14047 postinstall_cmds='base_file=`basename \${file}`~
14048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14049 dldir=$destdir/`dirname \$dlpath`~
14050 test -d \$dldir || mkdir -p \$dldir~
14051 $install_prog $dir/$dlname \$dldir/$dlname~
14052 chmod a+x \$dldir/$dlname~
14053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14055 fi'
14056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14057 dlpath=$dir/\$dldll~
14058 $RM \$dlpath'
14059 shlibpath_overrides_runpath=yes
14060
14061 case $host_os in
14062 cygwin*)
14063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14065 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14066 ;;
14067 mingw* | cegcc*)
14068 # MinGW DLLs use traditional 'lib' prefix
14069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14070 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14071 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14072 # It is most probably a Windows format PATH printed by
14073 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14074 # path with ; separators, and with drive letters. We can handle the
14075 # drive letters (cygwin fileutils understands them), so leave them,
14076 # especially as we might pass files found there to a mingw objdump,
14077 # which wouldn't understand a cygwinified path. Ahh.
14078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14079 else
14080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14081 fi
14082 ;;
14083 pw32*)
14084 # pw32 DLLs use 'pw' prefix rather than 'lib'
14085 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14086 ;;
14087 esac
14088 ;;
14089
14090 *)
14091 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14092 ;;
14093 esac
14094 dynamic_linker='Win32 ld.exe'
14095 # FIXME: first we should search . and the directory the executable is in
14096 shlibpath_var=PATH
14097 ;;
14098
14099darwin* | rhapsody*)
14100 dynamic_linker="$host_os dyld"
14101 version_type=darwin
14102 need_lib_prefix=no
14103 need_version=no
14104 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14105 soname_spec='${libname}${release}${major}$shared_ext'
14106 shlibpath_overrides_runpath=yes
14107 shlibpath_var=DYLD_LIBRARY_PATH
14108 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14109
14110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14111 ;;
14112
14113dgux*)
14114 version_type=linux
14115 need_lib_prefix=no
14116 need_version=no
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14118 soname_spec='${libname}${release}${shared_ext}$major'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 ;;
14121
14122freebsd1*)
14123 dynamic_linker=no
14124 ;;
14125
14126freebsd* | dragonfly*)
14127 # DragonFly does not have aout. When/if they implement a new
14128 # versioning mechanism, adjust this.
14129 if test -x /usr/bin/objformat; then
14130 objformat=`/usr/bin/objformat`
14131 else
14132 case $host_os in
14133 freebsd[123]*) objformat=aout ;;
14134 *) objformat=elf ;;
14135 esac
14136 fi
14137 version_type=freebsd-$objformat
14138 case $version_type in
14139 freebsd-elf*)
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14141 need_version=no
14142 need_lib_prefix=no
14143 ;;
14144 freebsd-*)
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14146 need_version=yes
14147 ;;
14148 esac
14149 shlibpath_var=LD_LIBRARY_PATH
14150 case $host_os in
14151 freebsd2*)
14152 shlibpath_overrides_runpath=yes
14153 ;;
14154 freebsd3.[01]* | freebsdelf3.[01]*)
14155 shlibpath_overrides_runpath=yes
14156 hardcode_into_libs=yes
14157 ;;
14158 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14159 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14160 shlibpath_overrides_runpath=no
14161 hardcode_into_libs=yes
14162 ;;
14163 *) # from 4.6 on, and DragonFly
14164 shlibpath_overrides_runpath=yes
14165 hardcode_into_libs=yes
14166 ;;
14167 esac
14168 ;;
14169
14170gnu*)
14171 version_type=linux
14172 need_lib_prefix=no
14173 need_version=no
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14175 soname_spec='${libname}${release}${shared_ext}$major'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 hardcode_into_libs=yes
14178 ;;
14179
14180hpux9* | hpux10* | hpux11*)
14181 # Give a soname corresponding to the major version so that dld.sl refuses to
14182 # link against other versions.
14183 version_type=sunos
14184 need_lib_prefix=no
14185 need_version=no
14186 case $host_cpu in
14187 ia64*)
14188 shrext_cmds='.so'
14189 hardcode_into_libs=yes
14190 dynamic_linker="$host_os dld.so"
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 if test "X$HPUX_IA64_MODE" = X32; then
14196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14197 else
14198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14199 fi
14200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14201 ;;
14202 hppa*64*)
14203 shrext_cmds='.sl'
14204 hardcode_into_libs=yes
14205 dynamic_linker="$host_os dld.sl"
14206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14212 ;;
14213 *)
14214 shrext_cmds='.sl'
14215 dynamic_linker="$host_os dld.sl"
14216 shlibpath_var=SHLIB_PATH
14217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 ;;
14221 esac
14222 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14223 postinstall_cmds='chmod 555 $lib'
14224 ;;
14225
14226interix[3-9]*)
14227 version_type=linux
14228 need_lib_prefix=no
14229 need_version=no
14230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14231 soname_spec='${libname}${release}${shared_ext}$major'
14232 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14233 shlibpath_var=LD_LIBRARY_PATH
14234 shlibpath_overrides_runpath=no
14235 hardcode_into_libs=yes
14236 ;;
14237
14238irix5* | irix6* | nonstopux*)
14239 case $host_os in
14240 nonstopux*) version_type=nonstopux ;;
14241 *)
14242 if test "$lt_cv_prog_gnu_ld" = yes; then
14243 version_type=linux
14244 else
14245 version_type=irix
14246 fi ;;
14247 esac
14248 need_lib_prefix=no
14249 need_version=no
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14252 case $host_os in
14253 irix5* | nonstopux*)
14254 libsuff= shlibsuff=
14255 ;;
14256 *)
14257 case $LD in # libtool.m4 will add one of these switches to LD
14258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14259 libsuff= shlibsuff= libmagic=32-bit;;
14260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14261 libsuff=32 shlibsuff=N32 libmagic=N32;;
14262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14264 *) libsuff= shlibsuff= libmagic=never-match;;
14265 esac
14266 ;;
14267 esac
14268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14269 shlibpath_overrides_runpath=no
14270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14272 hardcode_into_libs=yes
14273 ;;
14274
14275# No shared lib support for Linux oldld, aout, or coff.
14276linux*oldld* | linux*aout* | linux*coff*)
14277 dynamic_linker=no
14278 ;;
14279
14280# This must be Linux ELF.
14281linux* | k*bsd*-gnu | kopensolaris*-gnu)
14282 version_type=linux
14283 need_lib_prefix=no
14284 need_version=no
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14286 soname_spec='${libname}${release}${shared_ext}$major'
14287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14288 shlibpath_var=LD_LIBRARY_PATH
14289 shlibpath_overrides_runpath=no
14290 # Some binutils ld are patched to set DT_RUNPATH
14291 save_LDFLAGS=$LDFLAGS
14292 save_libdir=$libdir
14293 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14294 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296/* end confdefs.h. */
14297
14298int
14299main ()
14300{
14301
14302 ;
14303 return 0;
14304}
14305_ACEOF
14306if ac_fn_cxx_try_link "$LINENO"; then :
14307 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14308 shlibpath_overrides_runpath=yes
14309fi
14310fi
14311rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LDFLAGS=$save_LDFLAGS
14314 libdir=$save_libdir
14315
14316 # This implies no fast_install, which is unacceptable.
14317 # Some rework will be needed to allow for fast_install
14318 # before this can be enabled.
14319 hardcode_into_libs=yes
14320
14321 # Append ld.so.conf contents to the search path
14322 if test -f /etc/ld.so.conf; then
14323 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;/^$/d' | tr '\n' ' '`
14324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14325 fi
14326
14327 # We used to test for /lib/ld.so.1 and disable shared libraries on
14328 # powerpc, because MkLinux only supported shared libraries with the
14329 # GNU dynamic linker. Since this was broken with cross compilers,
14330 # most powerpc-linux boxes support dynamic linking these days and
14331 # people can always --disable-shared, the test was removed, and we
14332 # assume the GNU/Linux dynamic linker is in use.
14333 dynamic_linker='GNU/Linux ld.so'
14334 ;;
14335
14336netbsdelf*-gnu)
14337 version_type=linux
14338 need_lib_prefix=no
14339 need_version=no
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 shlibpath_overrides_runpath=no
14344 hardcode_into_libs=yes
14345 dynamic_linker='NetBSD ld.elf_so'
14346 ;;
14347
14348netbsd*)
14349 version_type=sunos
14350 need_lib_prefix=no
14351 need_version=no
14352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14355 dynamic_linker='NetBSD (a.out) ld.so'
14356 else
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14359 dynamic_linker='NetBSD ld.elf_so'
14360 fi
14361 shlibpath_var=LD_LIBRARY_PATH
14362 shlibpath_overrides_runpath=yes
14363 hardcode_into_libs=yes
14364 ;;
14365
14366newsos6)
14367 version_type=linux
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 shlibpath_var=LD_LIBRARY_PATH
14370 shlibpath_overrides_runpath=yes
14371 ;;
14372
14373*nto* | *qnx*)
14374 version_type=qnx
14375 need_lib_prefix=no
14376 need_version=no
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=no
14381 hardcode_into_libs=yes
14382 dynamic_linker='ldqnx.so'
14383 ;;
14384
14385openbsd*)
14386 version_type=sunos
14387 sys_lib_dlsearch_path_spec="/usr/lib"
14388 need_lib_prefix=no
14389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14390 case $host_os in
14391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14392 *) need_version=no ;;
14393 esac
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14396 shlibpath_var=LD_LIBRARY_PATH
14397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14398 case $host_os in
14399 openbsd2.[89] | openbsd2.[89].*)
14400 shlibpath_overrides_runpath=no
14401 ;;
14402 *)
14403 shlibpath_overrides_runpath=yes
14404 ;;
14405 esac
14406 else
14407 shlibpath_overrides_runpath=yes
14408 fi
14409 ;;
14410
14411os2*)
14412 libname_spec='$name'
14413 shrext_cmds=".dll"
14414 need_lib_prefix=no
14415 library_names_spec='$libname${shared_ext} $libname.a'
14416 dynamic_linker='OS/2 ld.exe'
14417 shlibpath_var=LIBPATH
14418 ;;
14419
14420osf3* | osf4* | osf5*)
14421 version_type=osf
14422 need_lib_prefix=no
14423 need_version=no
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14429 ;;
14430
14431rdos*)
14432 dynamic_linker=no
14433 ;;
14434
14435solaris*)
14436 version_type=linux
14437 need_lib_prefix=no
14438 need_version=no
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=yes
14443 hardcode_into_libs=yes
14444 # ldd complains unless libraries are executable
14445 postinstall_cmds='chmod +x $lib'
14446 ;;
14447
14448sunos4*)
14449 version_type=sunos
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=yes
14454 if test "$with_gnu_ld" = yes; then
14455 need_lib_prefix=no
14456 fi
14457 need_version=yes
14458 ;;
14459
14460sysv4 | sysv4.3*)
14461 version_type=linux
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 case $host_vendor in
14466 sni)
14467 shlibpath_overrides_runpath=no
14468 need_lib_prefix=no
14469 runpath_var=LD_RUN_PATH
14470 ;;
14471 siemens)
14472 need_lib_prefix=no
14473 ;;
14474 motorola)
14475 need_lib_prefix=no
14476 need_version=no
14477 shlibpath_overrides_runpath=no
14478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14479 ;;
14480 esac
14481 ;;
14482
14483sysv4*MP*)
14484 if test -d /usr/nec ;then
14485 version_type=linux
14486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14487 soname_spec='$libname${shared_ext}.$major'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 fi
14490 ;;
14491
14492sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14493 version_type=freebsd-elf
14494 need_lib_prefix=no
14495 need_version=no
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 shlibpath_var=LD_LIBRARY_PATH
14499 shlibpath_overrides_runpath=yes
14500 hardcode_into_libs=yes
14501 if test "$with_gnu_ld" = yes; then
14502 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14503 else
14504 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14505 case $host_os in
14506 sco3.2v5*)
14507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14508 ;;
14509 esac
14510 fi
14511 sys_lib_dlsearch_path_spec='/usr/lib'
14512 ;;
14513
14514tpf*)
14515 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14516 version_type=linux
14517 need_lib_prefix=no
14518 need_version=no
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=no
14522 hardcode_into_libs=yes
14523 ;;
14524
14525uts4*)
14526 version_type=linux
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 ;;
14531
14532*)
14533 dynamic_linker=no
14534 ;;
14535esac
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14537$as_echo "$dynamic_linker" >&6; }
14538test "$dynamic_linker" = no && can_build_shared=no
14539
14540variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14541if test "$GCC" = yes; then
14542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14543fi
14544
14545if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14547fi
14548if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14550fi
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14588$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14589hardcode_action_CXX=
14590if test -n "$hardcode_libdir_flag_spec_CXX" ||
14591 test -n "$runpath_var_CXX" ||
14592 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14593
14594 # We can hardcode non-existent directories.
14595 if test "$hardcode_direct_CXX" != no &&
14596 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14597 # have to relink, otherwise we might link with an installed library
14598 # when we should be linking with a yet-to-be-installed one
14599 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14600 test "$hardcode_minus_L_CXX" != no; then
14601 # Linking always hardcodes the temporary library directory.
14602 hardcode_action_CXX=relink
14603 else
14604 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14605 hardcode_action_CXX=immediate
14606 fi
14607else
14608 # We cannot hardcode anything, or else we can only hardcode existing
14609 # directories.
14610 hardcode_action_CXX=unsupported
14611fi
14612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14613$as_echo "$hardcode_action_CXX" >&6; }
14614
14615if test "$hardcode_action_CXX" = relink ||
14616 test "$inherit_rpath_CXX" = yes; then
14617 # Fast installation is not supported
14618 enable_fast_install=no
14619elif test "$shlibpath_overrides_runpath" = yes ||
14620 test "$enable_shared" = no; then
14621 # Fast installation is not necessary
14622 enable_fast_install=needless
14623fi
14624
14625
14626
14627
14628
14629
14630
14631 fi # test -n "$compiler"
14632
14633 CC=$lt_save_CC
14634 LDCXX=$LD
14635 LD=$lt_save_LD
14636 GCC=$lt_save_GCC
14637 with_gnu_ld=$lt_save_with_gnu_ld
14638 lt_cv_path_LDCXX=$lt_cv_path_LD
14639 lt_cv_path_LD=$lt_save_path_LD
14640 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14641 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14642fi # test "$_lt_caught_CXX_error" != yes
14643
14644ac_ext=c
14645ac_cpp='$CPP $CPPFLAGS'
14646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14648ac_compiler_gnu=$ac_cv_c_compiler_gnu
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662 ac_config_commands="$ac_config_commands libtool"
14663
14664
14665
14666
14667# Only expand once:
14668
14669
14670
14671
14672
14673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14674$as_echo_n "checking whether ln -s works... " >&6; }
14675LN_S=$as_ln_s
14676if test "$LN_S" = "ln -s"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14678$as_echo "yes" >&6; }
14679else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14681$as_echo "no, using $LN_S" >&6; }
14682fi
14683
14684
14685
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
14687$as_echo_n "checking for __attribute__... " >&6; }
14688 if ${ac_cv___attribute__+:} false; then :
14689 $as_echo_n "(cached) " >&6
14690else
14691
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693/* end confdefs.h. */
14694#include <stdlib.h>
14695 static void foo(void) __attribute__ ((unused));
14696 void foo(void) { exit(1); }
14697int
14698main ()
14699{
14700
14701 ;
14702 return 0;
14703}
14704_ACEOF
14705if ac_fn_c_try_compile "$LINENO"; then :
14706 ac_cv___attribute__=yes
14707else
14708 ac_cv___attribute__=no
14709
14710fi
14711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712fi
14713
14714 if test "$ac_cv___attribute__" = "yes"; then
14715
14716$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
14717
14718 fi
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
14720$as_echo "$ac_cv___attribute__" >&6; }
14721
14722
14723# Check whether some low-level functions/files are available
14724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14725$as_echo_n "checking for ANSI C header files... " >&6; }
14726if ${ac_cv_header_stdc+:} false; then :
14727 $as_echo_n "(cached) " >&6
14728else
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730/* end confdefs.h. */
14731#include <stdlib.h>
14732#include <stdarg.h>
14733#include <string.h>
14734#include <float.h>
14735
14736int
14737main ()
14738{
14739
14740 ;
14741 return 0;
14742}
14743_ACEOF
14744if ac_fn_c_try_compile "$LINENO"; then :
14745 ac_cv_header_stdc=yes
14746else
14747 ac_cv_header_stdc=no
14748fi
14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750
14751if test $ac_cv_header_stdc = yes; then
14752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754/* end confdefs.h. */
14755#include <string.h>
14756
14757_ACEOF
14758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14759 $EGREP "memchr" >/dev/null 2>&1; then :
14760
14761else
14762 ac_cv_header_stdc=no
14763fi
14764rm -f conftest*
14765
14766fi
14767
14768if test $ac_cv_header_stdc = yes; then
14769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771/* end confdefs.h. */
14772#include <stdlib.h>
14773
14774_ACEOF
14775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14776 $EGREP "free" >/dev/null 2>&1; then :
14777
14778else
14779 ac_cv_header_stdc=no
14780fi
14781rm -f conftest*
14782
14783fi
14784
14785if test $ac_cv_header_stdc = yes; then
14786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14787 if test "$cross_compiling" = yes; then :
14788 :
14789else
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791/* end confdefs.h. */
14792#include <ctype.h>
14793#include <stdlib.h>
14794#if ((' ' & 0x0FF) == 0x020)
14795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14797#else
14798# define ISLOWER(c) \
14799 (('a' <= (c) && (c) <= 'i') \
14800 || ('j' <= (c) && (c) <= 'r') \
14801 || ('s' <= (c) && (c) <= 'z'))
14802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14803#endif
14804
14805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14806int
14807main ()
14808{
14809 int i;
14810 for (i = 0; i < 256; i++)
14811 if (XOR (islower (i), ISLOWER (i))
14812 || toupper (i) != TOUPPER (i))
14813 return 2;
14814 return 0;
14815}
14816_ACEOF
14817if ac_fn_c_try_run "$LINENO"; then :
14818
14819else
14820 ac_cv_header_stdc=no
14821fi
14822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14823 conftest.$ac_objext conftest.beam conftest.$ac_ext
14824fi
14825
14826fi
14827fi
14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14829$as_echo "$ac_cv_header_stdc" >&6; }
14830if test $ac_cv_header_stdc = yes; then
14831
14832$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14833
14834fi
14835
14836
14837# Defines PRIuS
14838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format code for printing a size_t and ssize_t" >&5
14839$as_echo_n "checking printf format code for printing a size_t and ssize_t... " >&6; }
14840if ${ac_cv_formatting_prius_prefix+:} false; then :
14841 $as_echo_n "(cached) " >&6
14842else
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h. */
14845#include <stddef.h>
14846int
14847main ()
14848{
14849unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2)
14850 ;
14851 return 0;
14852}
14853_ACEOF
14854if ac_fn_c_try_compile "$LINENO"; then :
14855 ac_cv_formatting_prius_prefix=; ac_cv_prius_defined=1
14856fi
14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h. */
14860#include <stddef.h>
14861int
14862main ()
14863{
14864unsigned long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
14865 ;
14866 return 0;
14867}
14868_ACEOF
14869if ac_fn_c_try_compile "$LINENO"; then :
14870 ac_cv_formatting_prius_prefix=l; ac_cv_prius_defined=1
14871fi
14872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874/* end confdefs.h. */
14875#include <stddef.h>
14876int
14877main ()
14878{
14879unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
14880 ;
14881 return 0;
14882}
14883_ACEOF
14884if ac_fn_c_try_compile "$LINENO"; then :
14885 ac_cv_formatting_prius_prefix=ll; ac_cv_prius_defined=1
14886
14887fi
14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889fi
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_formatting_prius_prefix" >&5
14891$as_echo "$ac_cv_formatting_prius_prefix" >&6; }
14892 if test -z "$ac_cv_prius_defined"; then
14893 ac_cv_formatting_prius_prefix=z;
14894 fi
14895
14896cat >>confdefs.h <<_ACEOF
14897#define PRIuS "${ac_cv_formatting_prius_prefix}u"
14898_ACEOF
14899
14900
14901cat >>confdefs.h <<_ACEOF
14902#define PRIxS "${ac_cv_formatting_prius_prefix}x"
14903_ACEOF
14904
14905
14906cat >>confdefs.h <<_ACEOF
14907#define PRIdS "${ac_cv_formatting_prius_prefix}d"
14908_ACEOF
14909
14910
14911
14912# Here are some examples of how to check for the existence of a fn or file
14913for ac_func in getopt_long getopt
14914do :
14915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14916ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14917if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14918 cat >>confdefs.h <<_ACEOF
14919#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14920_ACEOF
14921
14922fi
14923done
14924
14925for ac_header in getopt.h
14926do :
14927 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14928if test "x$ac_cv_header_getopt_h" = xyes; then :
14929 cat >>confdefs.h <<_ACEOF
14930#define HAVE_GETOPT_H 1
14931_ACEOF
14932
14933fi
14934
14935done
14936
14937for ac_header in utime.h
14938do :
14939 ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
14940if test "x$ac_cv_header_utime_h" = xyes; then :
14941 cat >>confdefs.h <<_ACEOF
14942#define HAVE_UTIME_H 1
14943_ACEOF
14944
14945fi
14946
14947done
14948 # used by unittests to mock file-times
14949
14950# These are the types I need. We look for them in either stdint.h,
14951# sys/types.h, or inttypes.h, all of which are part of the default-includes.
14952ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14953if test "x$ac_cv_type_uint32_t" = xyes; then :
14954
14955cat >>confdefs.h <<_ACEOF
14956#define HAVE_UINT32_T 1
14957_ACEOF
14958
14959
14960fi
14961
14962ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
14963if test "x$ac_cv_type_u_int32_t" = xyes; then :
14964
14965cat >>confdefs.h <<_ACEOF
14966#define HAVE_U_INT32_T 1
14967_ACEOF
14968
14969
14970fi
14971
14972ac_fn_c_check_type "$LINENO" "__int32" "ac_cv_type___int32" "$ac_includes_default"
14973if test "x$ac_cv_type___int32" = xyes; then :
14974
14975cat >>confdefs.h <<_ACEOF
14976#define HAVE___INT32 1
14977_ACEOF
14978
14979
14980fi
14981
14982ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14983if test "x$ac_cv_type_uint64_t" = xyes; then :
14984
14985cat >>confdefs.h <<_ACEOF
14986#define HAVE_UINT64_T 1
14987_ACEOF
14988
14989
14990fi
14991
14992ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
14993if test "x$ac_cv_type_u_int64_t" = xyes; then :
14994
14995cat >>confdefs.h <<_ACEOF
14996#define HAVE_U_INT64_T 1
14997_ACEOF
14998
14999
15000fi
15001
15002ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
15003if test "x$ac_cv_type___int64" = xyes; then :
15004
15005cat >>confdefs.h <<_ACEOF
15006#define HAVE___INT64 1
15007_ACEOF
15008
15009
15010fi
15011
15012
15013ac_header_dirent=no
15014for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15015 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15017$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15018if eval \${$as_ac_Header+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020else
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022/* end confdefs.h. */
15023#include <sys/types.h>
15024#include <$ac_hdr>
15025
15026int
15027main ()
15028{
15029if ((DIR *) 0)
15030return 0;
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035if ac_fn_c_try_compile "$LINENO"; then :
15036 eval "$as_ac_Header=yes"
15037else
15038 eval "$as_ac_Header=no"
15039fi
15040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041fi
15042eval ac_res=\$$as_ac_Header
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15044$as_echo "$ac_res" >&6; }
15045if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15046 cat >>confdefs.h <<_ACEOF
15047#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15048_ACEOF
15049
15050ac_header_dirent=$ac_hdr; break
15051fi
15052
15053done
15054# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15055if test $ac_header_dirent = dirent.h; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15057$as_echo_n "checking for library containing opendir... " >&6; }
15058if ${ac_cv_search_opendir+:} false; then :
15059 $as_echo_n "(cached) " >&6
15060else
15061 ac_func_search_save_LIBS=$LIBS
15062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063/* end confdefs.h. */
15064
15065/* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
15068#ifdef __cplusplus
15069extern "C"
15070#endif
15071char opendir ();
15072int
15073main ()
15074{
15075return opendir ();
15076 ;
15077 return 0;
15078}
15079_ACEOF
15080for ac_lib in '' dir; do
15081 if test -z "$ac_lib"; then
15082 ac_res="none required"
15083 else
15084 ac_res=-l$ac_lib
15085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15086 fi
15087 if ac_fn_c_try_link "$LINENO"; then :
15088 ac_cv_search_opendir=$ac_res
15089fi
15090rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext
15092 if ${ac_cv_search_opendir+:} false; then :
15093 break
15094fi
15095done
15096if ${ac_cv_search_opendir+:} false; then :
15097
15098else
15099 ac_cv_search_opendir=no
15100fi
15101rm conftest.$ac_ext
15102LIBS=$ac_func_search_save_LIBS
15103fi
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15105$as_echo "$ac_cv_search_opendir" >&6; }
15106ac_res=$ac_cv_search_opendir
15107if test "$ac_res" != no; then :
15108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15109
15110fi
15111
15112else
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15114$as_echo_n "checking for library containing opendir... " >&6; }
15115if ${ac_cv_search_opendir+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117else
15118 ac_func_search_save_LIBS=$LIBS
15119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120/* end confdefs.h. */
15121
15122/* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15125#ifdef __cplusplus
15126extern "C"
15127#endif
15128char opendir ();
15129int
15130main ()
15131{
15132return opendir ();
15133 ;
15134 return 0;
15135}
15136_ACEOF
15137for ac_lib in '' x; do
15138 if test -z "$ac_lib"; then
15139 ac_res="none required"
15140 else
15141 ac_res=-l$ac_lib
15142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15143 fi
15144 if ac_fn_c_try_link "$LINENO"; then :
15145 ac_cv_search_opendir=$ac_res
15146fi
15147rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext
15149 if ${ac_cv_search_opendir+:} false; then :
15150 break
15151fi
15152done
15153if ${ac_cv_search_opendir+:} false; then :
15154
15155else
15156 ac_cv_search_opendir=no
15157fi
15158rm conftest.$ac_ext
15159LIBS=$ac_func_search_save_LIBS
15160fi
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15162$as_echo "$ac_cv_search_opendir" >&6; }
15163ac_res=$ac_cv_search_opendir
15164if test "$ac_res" != no; then :
15165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15166
15167fi
15168
15169fi
15170 # for template_unittest.cc, template_regtest.cc
15171
15172# We need to do byte-swapping efficiently to hash efficiently in
15173# template_string.cc. Different architectures do this differently.
15174for ac_header in byteswap.h
15175do :
15176 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
15177if test "x$ac_cv_header_byteswap_h" = xyes; then :
15178 cat >>confdefs.h <<_ACEOF
15179#define HAVE_BYTESWAP_H 1
15180_ACEOF
15181
15182fi
15183
15184done
15185 # Linux (GNU in general)
15186for ac_header in libkern/OSByteOrder.h
15187do :
15188 ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default"
15189if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes; then :
15190 cat >>confdefs.h <<_ACEOF
15191#define HAVE_LIBKERN_OSBYTEORDER_H 1
15192_ACEOF
15193
15194fi
15195
15196done
15197 # OS X
15198for ac_header in sys/byteorder.h
15199do :
15200 ac_fn_c_check_header_mongrel "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default"
15201if test "x$ac_cv_header_sys_byteorder_h" = xyes; then :
15202 cat >>confdefs.h <<_ACEOF
15203#define HAVE_SYS_BYTEORDER_H 1
15204_ACEOF
15205
15206fi
15207
15208done
15209 # Solaris 10
15210for ac_header in endian.h
15211do :
15212 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
15213if test "x$ac_cv_header_endian_h" = xyes; then :
15214 cat >>confdefs.h <<_ACEOF
15215#define HAVE_ENDIAN_H 1
15216_ACEOF
15217
15218fi
15219
15220done
15221 # Linux
15222for ac_header in machine/endian.h
15223do :
15224 ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
15225if test "x$ac_cv_header_machine_endian_h" = xyes; then :
15226 cat >>confdefs.h <<_ACEOF
15227#define HAVE_MACHINE_ENDIAN_H 1
15228_ACEOF
15229
15230fi
15231
15232done
15233 # OS X
15234for ac_header in sys/endian.h
15235do :
15236 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
15237if test "x$ac_cv_header_sys_endian_h" = xyes; then :
15238 cat >>confdefs.h <<_ACEOF
15239#define HAVE_SYS_ENDIAN_H 1
15240_ACEOF
15241
15242fi
15243
15244done
15245 # FreeBSD
15246for ac_header in sys/isa_defs.h
15247do :
15248 ac_fn_c_check_header_mongrel "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
15249if test "x$ac_cv_header_sys_isa_defs_h" = xyes; then :
15250 cat >>confdefs.h <<_ACEOF
15251#define HAVE_SYS_ISA_DEFS_H 1
15252_ACEOF
15253
15254fi
15255
15256done
15257 # Solaris 10
15258
15259# A lot of the code in this directory depends on pthreads
15260
15261
15262
15263ac_ext=c
15264ac_cpp='$CPP $CPPFLAGS'
15265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15267ac_compiler_gnu=$ac_cv_c_compiler_gnu
15268
15269acx_pthread_ok=no
15270
15271# We used to check for pthread.h first, but this fails if pthread.h
15272# requires special compiler flags (e.g. on True64 or Sequent).
15273# It gets checked for in the link test anyway.
15274
15275# First of all, check if the user has set any of the PTHREAD_LIBS,
15276# etcetera environment variables, and if threads linking works using
15277# them:
15278if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15279 save_CFLAGS="$CFLAGS"
15280 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15281 save_LIBS="$LIBS"
15282 LIBS="$PTHREAD_LIBS $LIBS"
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15284$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h. */
15287
15288/* Override any GCC internal prototype to avoid an error.
15289 Use char because int might match the return type of a GCC
15290 builtin and then its argument prototype would still apply. */
15291#ifdef __cplusplus
15292extern "C"
15293#endif
15294char pthread_join ();
15295int
15296main ()
15297{
15298return pthread_join ();
15299 ;
15300 return 0;
15301}
15302_ACEOF
15303if ac_fn_c_try_link "$LINENO"; then :
15304 acx_pthread_ok=yes
15305fi
15306rm -f core conftest.err conftest.$ac_objext \
15307 conftest$ac_exeext conftest.$ac_ext
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15309$as_echo "$acx_pthread_ok" >&6; }
15310 if test x"$acx_pthread_ok" = xno; then
15311 PTHREAD_LIBS=""
15312 PTHREAD_CFLAGS=""
15313 fi
15314 LIBS="$save_LIBS"
15315 CFLAGS="$save_CFLAGS"
15316fi
15317
15318# We must check for the threads library under a number of different
15319# names; the ordering is very important because some systems
15320# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15321# libraries is broken (non-POSIX).
15322
15323# Create a list of thread flags to try. Items starting with a "-" are
15324# C compiler flags, and other items are library names, except for "none"
15325# which indicates that we try without any flags at all, and "pthread-config"
15326# which is a program returning the flags for the Pth emulation library.
15327
15328acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15329
15330# The ordering *is* (sometimes) important. Some notes on the
15331# individual items follow:
15332
15333# pthreads: AIX (must check this before -lpthread)
15334# none: in case threads are in libc; should be tried before -Kthread and
15335# other compiler flags to prevent continual compiler warnings
15336# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15337# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15338# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15339# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15340# -pthreads: Solaris/gcc
15341# -mthreads: Mingw32/gcc, Lynx/gcc
15342# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15343# doesn't hurt to check since this sometimes defines pthreads too;
15344# also defines -D_REENTRANT)
15345# ... -mt is also the pthreads flag for HP/aCC
15346# pthread: Linux, etcetera
15347# --thread-safe: KAI C++
15348# pthread-config: use pthread-config program (for GNU Pth library)
15349
15350case "${host_cpu}-${host_os}" in
15351 *solaris*)
15352
15353 # On Solaris (at least, for some versions), libc contains stubbed
15354 # (non-functional) versions of the pthreads routines, so link-based
15355 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15356 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15357 # a function called by this macro, so we could check for that, but
15358 # who knows whether they'll stub that too in a future libc.) So,
15359 # we'll just look for -pthreads and -lpthread first:
15360
15361 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15362 ;;
15363esac
15364
15365if test x"$acx_pthread_ok" = xno; then
15366for flag in $acx_pthread_flags; do
15367
15368 case $flag in
15369 none)
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15371$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15372 ;;
15373
15374 -*)
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15376$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15377 PTHREAD_CFLAGS="$flag"
15378 ;;
15379
15380 pthread-config)
15381 # Extract the first word of "pthread-config", so it can be a program name with args.
15382set dummy pthread-config; ac_word=$2
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15384$as_echo_n "checking for $ac_word... " >&6; }
15385if ${ac_cv_prog_acx_pthread_config+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387else
15388 if test -n "$acx_pthread_config"; then
15389 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15390else
15391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392for as_dir in $PATH
15393do
15394 IFS=$as_save_IFS
15395 test -z "$as_dir" && as_dir=.
15396 for ac_exec_ext in '' $ac_executable_extensions; do
15397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15398 ac_cv_prog_acx_pthread_config="yes"
15399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15400 break 2
15401 fi
15402done
15403 done
15404IFS=$as_save_IFS
15405
15406 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15407fi
15408fi
15409acx_pthread_config=$ac_cv_prog_acx_pthread_config
15410if test -n "$acx_pthread_config"; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15412$as_echo "$acx_pthread_config" >&6; }
15413else
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415$as_echo "no" >&6; }
15416fi
15417
15418
15419 if test x"$acx_pthread_config" = xno; then continue; fi
15420 PTHREAD_CFLAGS="`pthread-config --cflags`"
15421 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15422 ;;
15423
15424 *)
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15426$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15427 PTHREAD_LIBS="-l$flag"
15428 ;;
15429 esac
15430
15431 save_LIBS="$LIBS"
15432 save_CFLAGS="$CFLAGS"
15433 LIBS="$PTHREAD_LIBS $LIBS"
15434 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15435
15436 # Check for various functions. We must include pthread.h,
15437 # since some functions may be macros. (On the Sequent, we
15438 # need a special flag -Kthread to make this header compile.)
15439 # We check for pthread_join because it is in -lpthread on IRIX
15440 # while pthread_create is in libc. We check for pthread_attr_init
15441 # due to DEC craziness with -lpthreads. We check for
15442 # pthread_cleanup_push because it is one of the few pthread
15443 # functions on Solaris that doesn't have a non-functional libc stub.
15444 # We try pthread_create on general principles.
15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446/* end confdefs.h. */
15447#include <pthread.h>
15448int
15449main ()
15450{
15451pthread_t th; pthread_join(th, 0);
15452 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15453 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15454 ;
15455 return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_link "$LINENO"; then :
15459 acx_pthread_ok=yes
15460fi
15461rm -f core conftest.err conftest.$ac_objext \
15462 conftest$ac_exeext conftest.$ac_ext
15463
15464 LIBS="$save_LIBS"
15465 CFLAGS="$save_CFLAGS"
15466
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15468$as_echo "$acx_pthread_ok" >&6; }
15469 if test "x$acx_pthread_ok" = xyes; then
15470 break;
15471 fi
15472
15473 PTHREAD_LIBS=""
15474 PTHREAD_CFLAGS=""
15475done
15476fi
15477
15478# Various other checks:
15479if test "x$acx_pthread_ok" = xyes; then
15480 save_LIBS="$LIBS"
15481 LIBS="$PTHREAD_LIBS $LIBS"
15482 save_CFLAGS="$CFLAGS"
15483 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15484
15485 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15487$as_echo_n "checking for joinable pthread attribute... " >&6; }
15488 attr_name=unknown
15489 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491/* end confdefs.h. */
15492#include <pthread.h>
15493int
15494main ()
15495{
15496int attr=$attr; return attr;
15497 ;
15498 return 0;
15499}
15500_ACEOF
15501if ac_fn_c_try_link "$LINENO"; then :
15502 attr_name=$attr; break
15503fi
15504rm -f core conftest.err conftest.$ac_objext \
15505 conftest$ac_exeext conftest.$ac_ext
15506 done
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15508$as_echo "$attr_name" >&6; }
15509 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15510
15511cat >>confdefs.h <<_ACEOF
15512#define PTHREAD_CREATE_JOINABLE $attr_name
15513_ACEOF
15514
15515 fi
15516
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15518$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15519 flag=no
15520 case "${host_cpu}-${host_os}" in
15521 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15522 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15523 esac
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15525$as_echo "${flag}" >&6; }
15526 if test "x$flag" != xno; then
15527 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15528 fi
15529
15530 LIBS="$save_LIBS"
15531 CFLAGS="$save_CFLAGS"
15532 # More AIX lossage: must compile with xlc_r or cc_r
15533 if test x"$GCC" != xyes; then
15534 for ac_prog in xlc_r cc_r
15535do
15536 # Extract the first word of "$ac_prog", so it can be a program name with args.
15537set dummy $ac_prog; ac_word=$2
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15539$as_echo_n "checking for $ac_word... " >&6; }
15540if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15541 $as_echo_n "(cached) " >&6
15542else
15543 if test -n "$PTHREAD_CC"; then
15544 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15545else
15546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547for as_dir in $PATH
15548do
15549 IFS=$as_save_IFS
15550 test -z "$as_dir" && as_dir=.
15551 for ac_exec_ext in '' $ac_executable_extensions; do
15552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15553 ac_cv_prog_PTHREAD_CC="$ac_prog"
15554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15555 break 2
15556 fi
15557done
15558 done
15559IFS=$as_save_IFS
15560
15561fi
15562fi
15563PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15564if test -n "$PTHREAD_CC"; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15566$as_echo "$PTHREAD_CC" >&6; }
15567else
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15569$as_echo "no" >&6; }
15570fi
15571
15572
15573 test -n "$PTHREAD_CC" && break
15574done
15575test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15576
15577 else
15578 PTHREAD_CC=$CC
15579 fi
15580
15581 # The next part tries to detect GCC inconsistency with -shared on some
15582 # architectures and systems. The problem is that in certain
15583 # configurations, when -shared is specified, GCC "forgets" to
15584 # internally use various flags which are still necessary.
15585
15586 #
15587 # Prepare the flags
15588 #
15589 save_CFLAGS="$CFLAGS"
15590 save_LIBS="$LIBS"
15591 save_CC="$CC"
15592
15593 # Try with the flags determined by the earlier checks.
15594 #
15595 # -Wl,-z,defs forces link-time symbol resolution, so that the
15596 # linking checks with -shared actually have any value
15597 #
15598 # FIXME: -fPIC is required for -shared on many architectures,
15599 # so we specify it here, but the right way would probably be to
15600 # properly detect whether it is actually required.
15601 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15602 LIBS="$PTHREAD_LIBS $LIBS"
15603 CC="$PTHREAD_CC"
15604
15605 # In order not to create several levels of indentation, we test
15606 # the value of "$done" until we find the cure or run out of ideas.
15607 done="no"
15608
15609 # First, make sure the CFLAGS we added are actually accepted by our
15610 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15611 # then we can't do this test.
15612 if test x"$done" = xno; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15614$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616/* end confdefs.h. */
15617
15618int
15619main ()
15620{
15621
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626if ac_fn_c_try_link "$LINENO"; then :
15627
15628else
15629 done=yes
15630fi
15631rm -f core conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15633
15634 if test "x$done" = xyes ; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636$as_echo "no" >&6; }
15637 else
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15639$as_echo "yes" >&6; }
15640 fi
15641 fi
15642
15643 if test x"$done" = xno; then
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15645$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647/* end confdefs.h. */
15648#include <pthread.h>
15649int
15650main ()
15651{
15652pthread_t th; pthread_join(th, 0);
15653 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15654 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15655 ;
15656 return 0;
15657}
15658_ACEOF
15659if ac_fn_c_try_link "$LINENO"; then :
15660 done=yes
15661fi
15662rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664
15665 if test "x$done" = xyes; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15667$as_echo "yes" >&6; }
15668 else
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670$as_echo "no" >&6; }
15671 fi
15672 fi
15673
15674 #
15675 # Linux gcc on some architectures such as mips/mipsel forgets
15676 # about -lpthread
15677 #
15678 if test x"$done" = xno; then
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15680$as_echo_n "checking whether -lpthread fixes that... " >&6; }
15681 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h. */
15684#include <pthread.h>
15685int
15686main ()
15687{
15688pthread_t th; pthread_join(th, 0);
15689 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15690 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695if ac_fn_c_try_link "$LINENO"; then :
15696 done=yes
15697fi
15698rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700
15701 if test "x$done" = xyes; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15703$as_echo "yes" >&6; }
15704 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15705 else
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707$as_echo "no" >&6; }
15708 fi
15709 fi
15710 #
15711 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15712 #
15713 if test x"$done" = xno; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15715$as_echo_n "checking whether -lc_r fixes that... " >&6; }
15716 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h. */
15719#include <pthread.h>
15720int
15721main ()
15722{
15723pthread_t th; pthread_join(th, 0);
15724 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15725 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15726 ;
15727 return 0;
15728}
15729_ACEOF
15730if ac_fn_c_try_link "$LINENO"; then :
15731 done=yes
15732fi
15733rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735
15736 if test "x$done" = xyes; then
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15738$as_echo "yes" >&6; }
15739 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15740 else
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15742$as_echo "no" >&6; }
15743 fi
15744 fi
15745 if test x"$done" = xno; then
15746 # OK, we have run out of ideas
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15748$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15749
15750 # so it's not safe to assume that we may use pthreads
15751 acx_pthread_ok=no
15752 fi
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
15755$as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
15756 CFLAGS="-nostdlib $CFLAGS"
15757 # we need c with nostdlib
15758 LIBS="$LIBS -lc"
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760/* end confdefs.h. */
15761#include <pthread.h>
15762int
15763main ()
15764{
15765pthread_t th; pthread_join(th, 0);
15766 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15767 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772if ac_fn_c_try_link "$LINENO"; then :
15773 done=yes
15774else
15775 done=no
15776fi
15777rm -f core conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779
15780 if test "x$done" = xyes; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15782$as_echo "yes" >&6; }
15783 else
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785$as_echo "no" >&6; }
15786 fi
15787
15788 if test x"$done" = xno; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
15790$as_echo_n "checking whether -lpthread saves the day... " >&6; }
15791 LIBS="-lpthread $LIBS"
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h. */
15794#include <pthread.h>
15795int
15796main ()
15797{
15798pthread_t th; pthread_join(th, 0);
15799 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15800 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15801 ;
15802 return 0;
15803}
15804_ACEOF
15805if ac_fn_c_try_link "$LINENO"; then :
15806 done=yes
15807else
15808 done=no
15809fi
15810rm -f core conftest.err conftest.$ac_objext \
15811 conftest$ac_exeext conftest.$ac_ext
15812
15813 if test "x$done" = xyes; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15815$as_echo "yes" >&6; }
15816 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
15817 else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15819$as_echo "no" >&6; }
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
15821$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
15822 fi
15823 fi
15824
15825 CFLAGS="$save_CFLAGS"
15826 LIBS="$save_LIBS"
15827 CC="$save_CC"
15828else
15829 PTHREAD_CC="$CC"
15830fi
15831
15832
15833
15834
15835
15836# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15837if test x"$acx_pthread_ok" = xyes; then
15838
15839$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15840
15841 :
15842else
15843 acx_pthread_ok=no
15844
15845fi
15846ac_ext=c
15847ac_cpp='$CPP $CPPFLAGS'
15848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15850ac_compiler_gnu=$ac_cv_c_compiler_gnu
15851
15852
15853
15854# We'd like to use read/write locks in several places in the code.
15855# See if our pthreads support extends to that. Note: for linux, it
15856# does as long as you define _XOPEN_SOURCE appropriately.
15857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
15858$as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
15859if ${ac_cv_rwlock+:} false; then :
15860 $as_echo_n "(cached) " >&6
15861else
15862
15863 ac_ext=c
15864ac_cpp='$CPP $CPPFLAGS'
15865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15867ac_compiler_gnu=$ac_cv_c_compiler_gnu
15868
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870/* end confdefs.h. */
15871#define _XOPEN_SOURCE 500
15872 #include <pthread.h>
15873 #ifdef __CYGWIN32__
15874 # error Cygwin has a bug in pthread_rwlock; disabling
15875 #endif
15876int
15877main ()
15878{
15879pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
15880 pthread_rwlock_rdlock(&l);
15881 return 0;
15882 ;
15883 return 0;
15884}
15885_ACEOF
15886if ac_fn_c_try_compile "$LINENO"; then :
15887 ac_cv_rwlock=yes
15888else
15889 ac_cv_rwlock=no
15890fi
15891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 ac_ext=c
15893ac_cpp='$CPP $CPPFLAGS'
15894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896ac_compiler_gnu=$ac_cv_c_compiler_gnu
15897
15898
15899fi
15900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
15901$as_echo "$ac_cv_rwlock" >&6; }
15902if test "$ac_cv_rwlock" = yes; then
15903
15904$as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
15905
15906fi
15907
15908
15909# For mingw/cygwin, figure out if the mutex code needs to use
15910# 'volatile' in some places. They differ from MSVC, and the API is
15911# unclear, so it's best just to check.
15912
15913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether first argument to InterlockedExchange omits volatile" >&5
15914$as_echo_n "checking whether first argument to InterlockedExchange omits volatile... " >&6; }
15915if ${ac_cv_interlocked_exchange_nonvolatile+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917else
15918
15919 ac_ext=cpp
15920ac_cpp='$CXXCPP $CPPFLAGS'
15921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15924
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926/* end confdefs.h. */
15927#include <windows.h>
15928int
15929main ()
15930{
15931volatile LONG once; InterlockedExchange(&once, 1);
15932 ;
15933 return 0;
15934}
15935_ACEOF
15936if ac_fn_cxx_try_compile "$LINENO"; then :
15937 ac_cv_interlocked_exchange_nonvolatile="no"
15938else
15939 ac_cv_interlocked_exchange_nonvolatile="yes"
15940fi
15941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942 ac_ext=c
15943ac_cpp='$CPP $CPPFLAGS'
15944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15946ac_compiler_gnu=$ac_cv_c_compiler_gnu
15947
15948
15949fi
15950
15951if test "$ac_cv_interlocked_exchange_nonvolatile" = "yes"; then
15952
15953$as_echo "#define INTERLOCKED_EXCHANGE_NONVOLATILE 1" >>confdefs.h
15954
15955fi
15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_interlocked_exchange_nonvolatile" >&5
15957$as_echo "$ac_cv_interlocked_exchange_nonvolatile" >&6; }
15958
15959
15960# Find out what namespace 'normal' STL code lives in, and also what namespace
15961# the user wants our classes to be defined in
15962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
15963$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
15964if ${ac_cv_cxx_namespaces+:} false; then :
15965 $as_echo_n "(cached) " >&6
15966else
15967
15968 ac_ext=cpp
15969ac_cpp='$CXXCPP $CPPFLAGS'
15970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15973
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975/* end confdefs.h. */
15976namespace Outer {
15977 namespace Inner { int i = 0; }}
15978int
15979main ()
15980{
15981using namespace Outer::Inner; return i;
15982 ;
15983 return 0;
15984}
15985_ACEOF
15986if ac_fn_cxx_try_compile "$LINENO"; then :
15987 ac_cv_cxx_namespaces=yes
15988else
15989 ac_cv_cxx_namespaces=no
15990fi
15991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 ac_ext=c
15993ac_cpp='$CPP $CPPFLAGS'
15994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15996ac_compiler_gnu=$ac_cv_c_compiler_gnu
15997
15998fi
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16000$as_echo "$ac_cv_cxx_namespaces" >&6; }
16001 if test "$ac_cv_cxx_namespaces" = yes; then
16002
16003$as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16004
16005 fi
16006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16007$as_echo_n "checking what namespace STL code is in... " >&6; }
16008if ${ac_cv_cxx_stl_namespace+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010else
16011
16012
16013 ac_ext=cpp
16014ac_cpp='$CXXCPP $CPPFLAGS'
16015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16018
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020/* end confdefs.h. */
16021#include <vector>
16022int
16023main ()
16024{
16025vector<int> t; return 0;
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030if ac_fn_cxx_try_compile "$LINENO"; then :
16031 ac_cv_cxx_stl_namespace=none
16032fi
16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h. */
16036#include <vector>
16037int
16038main ()
16039{
16040std::vector<int> t; return 0;
16041 ;
16042 return 0;
16043}
16044_ACEOF
16045if ac_fn_cxx_try_compile "$LINENO"; then :
16046 ac_cv_cxx_stl_namespace=std
16047fi
16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 ac_ext=c
16050ac_cpp='$CPP $CPPFLAGS'
16051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16053ac_compiler_gnu=$ac_cv_c_compiler_gnu
16054
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16057$as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16058 if test "$ac_cv_cxx_stl_namespace" = none; then
16059
16060$as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16061
16062 fi
16063 if test "$ac_cv_cxx_stl_namespace" = std; then
16064
16065$as_echo "#define STL_NAMESPACE std" >>confdefs.h
16066
16067 fi
16068
16069google_namespace_default=ctemplate
16070 # Check whether --enable-namespace was given.
16071if test "${enable_namespace+set}" = set; then :
16072 enableval=$enable_namespace; case "$enableval" in
16073 yes) google_namespace="$google_namespace_default" ;;
16074 no) google_namespace="" ;;
16075 *) google_namespace="$enableval" ;;
16076 esac
16077else
16078 google_namespace="$google_namespace_default"
16079fi
16080
16081 if test -n "$google_namespace"; then
16082 ac_google_namespace="::$google_namespace"
16083 ac_google_start_namespace="namespace $google_namespace {"
16084 ac_google_end_namespace="}"
16085 else
16086 ac_google_namespace=""
16087 ac_google_start_namespace=""
16088 ac_google_end_namespace=""
16089 fi
16090
16091cat >>confdefs.h <<_ACEOF
16092#define GOOGLE_NAMESPACE $ac_google_namespace
16093_ACEOF
16094
16095
16096cat >>confdefs.h <<_ACEOF
16097#define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16098_ACEOF
16099
16100
16101cat >>confdefs.h <<_ACEOF
16102#define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16103_ACEOF
16104
16105
16106
16107# Figures out where hash_map and hash_set live, and what namespace they use
16108
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the location of hash_map" >&5
16110$as_echo_n "checking the location of hash_map... " >&6; }
16111
16112 ac_ext=cpp
16113ac_cpp='$CXXCPP $CPPFLAGS'
16114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16117
16118 ac_cv_cxx_hash_map=""
16119 # First try unordered_map, but not on gcc's before 4.2 -- I've
16120 # seen unexplainable unordered_map bugs with -O2 on older gcc's.
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h. */
16123#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
16124 # error GCC too old for unordered_map
16125 #endif
16126
16127int
16128main ()
16129{
16130/* no program body necessary */
16131 ;
16132 return 0;
16133}
16134_ACEOF
16135if ac_fn_cxx_try_compile "$LINENO"; then :
16136 stl_hash_old_gcc=no
16137else
16138 stl_hash_old_gcc=yes
16139fi
16140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 for location in unordered_map tr1/unordered_map; do
16142 for namespace in std std::tr1; do
16143 if test -z "$ac_cv_cxx_hash_map" -a "$stl_hash_old_gcc" != yes; then
16144 # Some older gcc's have a buggy tr1, so test a bit of code.
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146/* end confdefs.h. */
16147#include <$location>
16148int
16149main ()
16150{
16151const ${namespace}::unordered_map<int, int> t;
16152 return t.find(5) == t.end();
16153 ;
16154 return 0;
16155}
16156_ACEOF
16157if ac_fn_cxx_try_compile "$LINENO"; then :
16158 ac_cv_cxx_hash_map="<$location>";
16159 ac_cv_cxx_hash_namespace="$namespace";
16160 ac_cv_cxx_have_unordered_map="yes";
16161fi
16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 done
16165 done
16166 # Now try hash_map
16167 for location in ext/hash_map hash_map; do
16168 for namespace in __gnu_cxx "" std stdext; do
16169 if test -z "$ac_cv_cxx_hash_map"; then
16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171/* end confdefs.h. */
16172#include <$location>
16173int
16174main ()
16175{
16176${namespace}::hash_map<int, int> t
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181if ac_fn_cxx_try_compile "$LINENO"; then :
16182 ac_cv_cxx_hash_map="<$location>";
16183 ac_cv_cxx_hash_namespace="$namespace";
16184 ac_cv_cxx_have_unordered_map="no";
16185fi
16186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 fi
16188 done
16189 done
16190 ac_cv_cxx_hash_set=`echo "$ac_cv_cxx_hash_map" | sed s/map/set/`;
16191 if test -n "$ac_cv_cxx_hash_map"; then
16192
16193$as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h
16194
16195
16196$as_echo "#define HAVE_HASH_SET 1" >>confdefs.h
16197
16198
16199cat >>confdefs.h <<_ACEOF
16200#define HASH_MAP_H $ac_cv_cxx_hash_map
16201_ACEOF
16202
16203
16204cat >>confdefs.h <<_ACEOF
16205#define HASH_SET_H $ac_cv_cxx_hash_set
16206_ACEOF
16207
16208
16209cat >>confdefs.h <<_ACEOF
16210#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
16211_ACEOF
16212
16213 if test "$ac_cv_cxx_have_unordered_map" = yes; then
16214
16215$as_echo "#define HAVE_UNORDERED_MAP 1" >>confdefs.h
16216
16217 fi
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_hash_map" >&5
16219$as_echo "$ac_cv_cxx_hash_map" >&6; }
16220 else
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16222$as_echo "" >&6; }
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find an STL hash_map" >&5
16224$as_echo "$as_me: WARNING: could not find an STL hash_map" >&2;}
16225 fi
16226
16227
16228# If we found tr1/unordered_map, prefer unordered_map/unordered_set to
16229# hash_map/hash_set.
16230if test "$ac_cv_cxx_have_unordered_map" = yes; then
16231 ac_cv_cxx_hash_map_class="$ac_cv_cxx_hash_namespace::unordered_map"
16232 ac_cv_cxx_hash_set_class="$ac_cv_cxx_hash_namespace::unordered_set"
16233else
16234 ac_cv_cxx_hash_map_class="$ac_cv_cxx_hash_namespace::hash_map"
16235 ac_cv_cxx_hash_set_class="$ac_cv_cxx_hash_namespace::hash_set"
16236fi
16237
16238
16239
16240
16241
16242
16243
16244
16245if test "$ac_cv___attribute__" = "yes"; then
16246 ac_google_attribute=1
16247
16248else
16249 ac_google_attribute=0
16250
16251fi
16252if test "$ac_cv_type_u_int64_t" = "yes"; then
16253 ac_cv_uint64=u_int64_t
16254
16255elif test "$ac_cv_type_uint64_t" = "yes"; then
16256 ac_cv_uint64=uint64_t
16257
16258elif test "$ac_cv_type___int64" = "yes"; then
16259 ac_cv_uint64=unsigned __int64
16260
16261else
16262 ac_cv_uint64=unsigned long long
16263 # best we can do
16264fi
16265# These are used by template_string.h.in
16266if test "$ac_cv_header_stdint_h" = "yes"; then
16267 ac_cv_have_stdint_h=1
16268
16269else
16270 ac_cv_have_stdint_h=0
16271
16272fi
16273if test "$ac_cv_header_inttypes_h" = "yes"; then
16274 ac_cv_have_inttypes_h=1
16275
16276else
16277 ac_cv_have_inttypes_h=0
16278
16279fi
16280
16281
16282# One some systems (eg gnu/linux), the linker defines _start and
16283# data_start to indicate the extent of the .text section. We can use
16284# this to know strings are immutable. In the code, we make the
16285# variables weak, just in case, but for this check, we only want to
16286# say "yes" if the linker supports the vars, *and* the compiler supports
16287# attribute-weak.
16288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289/* end confdefs.h. */
16290
16291int
16292main ()
16293{
16294 extern char _start[];
16295 extern char data_start[];
16296 extern char dummy[] __attribute__((weak));
16297 return (_start && data_start && dummy);
16298 ;
16299 return 0;
16300}
16301_ACEOF
16302if ac_fn_cxx_try_link "$LINENO"; then :
16303 ac_have_attribute_weak=1
16304else
16305 ac_have_attribute_weak=0
16306fi
16307rm -f core conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16309
16310
16311# In unix (that is, using this script), this dll-export stuff will always
16312# be the empty string. In windows, we'll replace it with windows-specific
16313# text.
16314ac_windows_dllexport_defines=
16315ac_windows_dllexport=
16316
16317
16318
16319# This will (should) never change, but we put it here so if we do need
16320# to change it, to avoid naming conflicts or something, it's easy to
16321# do in one place.
16322ac_htmlparser_namespace=ctemplate_htmlparser
16323
16324
16325cat >>confdefs.h <<_ACEOF
16326#define HTMLPARSER_NAMESPACE $ac_htmlparser_namespace
16327_ACEOF
16328
16329
16330# Write generated configuration file, and also .h files
16331ac_config_files="$ac_config_files Makefile src/ctemplate/template_string.h src/ctemplate/template_enums.h src/ctemplate/template.h src/ctemplate/template_cache.h src/ctemplate/template_modifiers.h src/ctemplate/template_emitter.h src/ctemplate/template_annotator.h src/ctemplate/template_dictionary.h src/ctemplate/template_pathops.h src/ctemplate/template_namelist.h src/ctemplate/find_ptr.h src/ctemplate/per_expand_data.h src/ctemplate/str_ref.h src/ctemplate/template_dictionary_interface.h"
16332
16333cat >confcache <<\_ACEOF
16334# This file is a shell script that caches the results of configure
16335# tests run on this system so they can be shared between configure
16336# scripts and configure runs, see configure's option --config-cache.
16337# It is not useful on other systems. If it contains results you don't
16338# want to keep, you may remove or edit it.
16339#
16340# config.status only pays attention to the cache file if you give it
16341# the --recheck option to rerun configure.
16342#
16343# `ac_cv_env_foo' variables (set or unset) will be overridden when
16344# loading this file, other *unset* `ac_cv_foo' will be assigned the
16345# following values.
16346
16347_ACEOF
16348
16349# The following way of writing the cache mishandles newlines in values,
16350# but we know of no workaround that is simple, portable, and efficient.
16351# So, we kill variables containing newlines.
16352# Ultrix sh set writes to stderr and can't be redirected directly,
16353# and sets the high bit in the cache file unless we assign to the vars.
16354(
16355 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16356 eval ac_val=\$$ac_var
16357 case $ac_val in #(
16358 *${as_nl}*)
16359 case $ac_var in #(
16360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16361$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16362 esac
16363 case $ac_var in #(
16364 _ | IFS | as_nl) ;; #(
16365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16366 *) { eval $ac_var=; unset $ac_var;} ;;
16367 esac ;;
16368 esac
16369 done
16370
16371 (set) 2>&1 |
16372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16373 *${as_nl}ac_space=\ *)
16374 # `set' does not quote correctly, so add quotes: double-quote
16375 # substitution turns \\\\ into \\, and sed turns \\ into \.
16376 sed -n \
16377 "s/'/'\\\\''/g;
16378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16379 ;; #(
16380 *)
16381 # `set' quotes correctly as required by POSIX, so do not add quotes.
16382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16383 ;;
16384 esac |
16385 sort
16386) |
16387 sed '
16388 /^ac_cv_env_/b end
16389 t clear
16390 :clear
16391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16392 t end
16393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16394 :end' >>confcache
16395if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16396 if test -w "$cache_file"; then
16397 if test "x$cache_file" != "x/dev/null"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16399$as_echo "$as_me: updating cache $cache_file" >&6;}
16400 if test ! -f "$cache_file" || test -h "$cache_file"; then
16401 cat confcache >"$cache_file"
16402 else
16403 case $cache_file in #(
16404 */* | ?:*)
16405 mv -f confcache "$cache_file"$$ &&
16406 mv -f "$cache_file"$$ "$cache_file" ;; #(
16407 *)
16408 mv -f confcache "$cache_file" ;;
16409 esac
16410 fi
16411 fi
16412 else
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16414$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16415 fi
16416fi
16417rm -f confcache
16418
16419test "x$prefix" = xNONE && prefix=$ac_default_prefix
16420# Let make expand exec_prefix.
16421test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16422
16423DEFS=-DHAVE_CONFIG_H
16424
16425ac_libobjs=
16426ac_ltlibobjs=
16427for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16428 # 1. Remove the extension, and $U if already installed.
16429 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16430 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16431 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16432 # will be set to the directory where LIBOBJS objects are built.
16433 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16434 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16435done
16436LIBOBJS=$ac_libobjs
16437
16438LTLIBOBJS=$ac_ltlibobjs
16439
16440
16441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16442$as_echo_n "checking that generated files are newer than configure... " >&6; }
16443 if test -n "$am_sleep_pid"; then
16444 # Hide warnings about reused PIDs.
16445 wait $am_sleep_pid 2>/dev/null
16446 fi
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16448$as_echo "done" >&6; }
16449 if test -n "$EXEEXT"; then
16450 am__EXEEXT_TRUE=
16451 am__EXEEXT_FALSE='#'
16452else
16453 am__EXEEXT_TRUE='#'
16454 am__EXEEXT_FALSE=
16455fi
16456
16457if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16458 as_fn_error $? "conditional \"AMDEP\" was never defined.
16459Usually this means the macro was only invoked conditionally." "$LINENO" 5
16460fi
16461if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16462 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16463Usually this means the macro was only invoked conditionally." "$LINENO" 5
16464fi
16465if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16466 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16467Usually this means the macro was only invoked conditionally." "$LINENO" 5
16468fi
16469if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
16470 as_fn_error $? "conditional \"GCC\" was never defined.
16471Usually this means the macro was only invoked conditionally." "$LINENO" 5
16472fi
16473if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16474 as_fn_error $? "conditional \"MINGW\" was never defined.
16475Usually this means the macro was only invoked conditionally." "$LINENO" 5
16476fi
16477if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16478 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16479Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480fi
16481
16482: "${CONFIG_STATUS=./config.status}"
16483ac_write_fail=0
16484ac_clean_files_save=$ac_clean_files
16485ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16486{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16487$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16488as_write_fail=0
16489cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16490#! $SHELL
16491# Generated by $as_me.
16492# Run this file to recreate the current configuration.
16493# Compiler output produced by configure, useful for debugging
16494# configure, is in config.log if it exists.
16495
16496debug=false
16497ac_cs_recheck=false
16498ac_cs_silent=false
16499
16500SHELL=\${CONFIG_SHELL-$SHELL}
16501export SHELL
16502_ASEOF
16503cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16504## -------------------- ##
16505## M4sh Initialization. ##
16506## -------------------- ##
16507
16508# Be more Bourne compatible
16509DUALCASE=1; export DUALCASE # for MKS sh
16510if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16511 emulate sh
16512 NULLCMD=:
16513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16514 # is contrary to our usage. Disable this feature.
16515 alias -g '${1+"$@"}'='"$@"'
16516 setopt NO_GLOB_SUBST
16517else
16518 case `(set -o) 2>/dev/null` in #(
16519 *posix*) :
16520 set -o posix ;; #(
16521 *) :
16522 ;;
16523esac
16524fi
16525
16526
16527as_nl='
16528'
16529export as_nl
16530# Printing a long string crashes Solaris 7 /usr/bin/printf.
16531as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16532as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16533as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16534# Prefer a ksh shell builtin over an external printf program on Solaris,
16535# but without wasting forks for bash or zsh.
16536if test -z "$BASH_VERSION$ZSH_VERSION" \
16537 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16538 as_echo='print -r --'
16539 as_echo_n='print -rn --'
16540elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16541 as_echo='printf %s\n'
16542 as_echo_n='printf %s'
16543else
16544 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16545 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16546 as_echo_n='/usr/ucb/echo -n'
16547 else
16548 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16549 as_echo_n_body='eval
16550 arg=$1;
16551 case $arg in #(
16552 *"$as_nl"*)
16553 expr "X$arg" : "X\\(.*\\)$as_nl";
16554 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16555 esac;
16556 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16557 '
16558 export as_echo_n_body
16559 as_echo_n='sh -c $as_echo_n_body as_echo'
16560 fi
16561 export as_echo_body
16562 as_echo='sh -c $as_echo_body as_echo'
16563fi
16564
16565# The user is always right.
16566if test "${PATH_SEPARATOR+set}" != set; then
16567 PATH_SEPARATOR=:
16568 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16569 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16570 PATH_SEPARATOR=';'
16571 }
16572fi
16573
16574
16575# IFS
16576# We need space, tab and new line, in precisely that order. Quoting is
16577# there to prevent editors from complaining about space-tab.
16578# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16579# splitting by setting IFS to empty value.)
16580IFS=" "" $as_nl"
16581
16582# Find who we are. Look in the path if we contain no directory separator.
16583as_myself=
16584case $0 in #((
16585 *[\\/]* ) as_myself=$0 ;;
16586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16587for as_dir in $PATH
16588do
16589 IFS=$as_save_IFS
16590 test -z "$as_dir" && as_dir=.
16591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16592 done
16593IFS=$as_save_IFS
16594
16595 ;;
16596esac
16597# We did not find ourselves, most probably we were run as `sh COMMAND'
16598# in which case we are not to be found in the path.
16599if test "x$as_myself" = x; then
16600 as_myself=$0
16601fi
16602if test ! -f "$as_myself"; then
16603 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16604 exit 1
16605fi
16606
16607# Unset variables that we do not need and which cause bugs (e.g. in
16608# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16609# suppresses any "Segmentation fault" message there. '((' could
16610# trigger a bug in pdksh 5.2.14.
16611for as_var in BASH_ENV ENV MAIL MAILPATH
16612do eval test x\${$as_var+set} = xset \
16613 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16614done
16615PS1='$ '
16616PS2='> '
16617PS4='+ '
16618
16619# NLS nuisances.
16620LC_ALL=C
16621export LC_ALL
16622LANGUAGE=C
16623export LANGUAGE
16624
16625# CDPATH.
16626(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16627
16628
16629# as_fn_error STATUS ERROR [LINENO LOG_FD]
16630# ----------------------------------------
16631# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16632# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16633# script with STATUS, using 1 if that was 0.
16634as_fn_error ()
16635{
16636 as_status=$1; test $as_status -eq 0 && as_status=1
16637 if test "$4"; then
16638 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16639 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16640 fi
16641 $as_echo "$as_me: error: $2" >&2
16642 as_fn_exit $as_status
16643} # as_fn_error
16644
16645
16646# as_fn_set_status STATUS
16647# -----------------------
16648# Set $? to STATUS, without forking.
16649as_fn_set_status ()
16650{
16651 return $1
16652} # as_fn_set_status
16653
16654# as_fn_exit STATUS
16655# -----------------
16656# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16657as_fn_exit ()
16658{
16659 set +e
16660 as_fn_set_status $1
16661 exit $1
16662} # as_fn_exit
16663
16664# as_fn_unset VAR
16665# ---------------
16666# Portably unset VAR.
16667as_fn_unset ()
16668{
16669 { eval $1=; unset $1;}
16670}
16671as_unset=as_fn_unset
16672# as_fn_append VAR VALUE
16673# ----------------------
16674# Append the text in VALUE to the end of the definition contained in VAR. Take
16675# advantage of any shell optimizations that allow amortized linear growth over
16676# repeated appends, instead of the typical quadratic growth present in naive
16677# implementations.
16678if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16679 eval 'as_fn_append ()
16680 {
16681 eval $1+=\$2
16682 }'
16683else
16684 as_fn_append ()
16685 {
16686 eval $1=\$$1\$2
16687 }
16688fi # as_fn_append
16689
16690# as_fn_arith ARG...
16691# ------------------
16692# Perform arithmetic evaluation on the ARGs, and store the result in the
16693# global $as_val. Take advantage of shells that can avoid forks. The arguments
16694# must be portable across $(()) and expr.
16695if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16696 eval 'as_fn_arith ()
16697 {
16698 as_val=$(( $* ))
16699 }'
16700else
16701 as_fn_arith ()
16702 {
16703 as_val=`expr "$@" || test $? -eq 1`
16704 }
16705fi # as_fn_arith
16706
16707
16708if expr a : '\(a\)' >/dev/null 2>&1 &&
16709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16710 as_expr=expr
16711else
16712 as_expr=false
16713fi
16714
16715if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16716 as_basename=basename
16717else
16718 as_basename=false
16719fi
16720
16721if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16722 as_dirname=dirname
16723else
16724 as_dirname=false
16725fi
16726
16727as_me=`$as_basename -- "$0" ||
16728$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16729 X"$0" : 'X\(//\)$' \| \
16730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16731$as_echo X/"$0" |
16732 sed '/^.*\/\([^/][^/]*\)\/*$/{
16733 s//\1/
16734 q
16735 }
16736 /^X\/\(\/\/\)$/{
16737 s//\1/
16738 q
16739 }
16740 /^X\/\(\/\).*/{
16741 s//\1/
16742 q
16743 }
16744 s/.*/./; q'`
16745
16746# Avoid depending upon Character Ranges.
16747as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16748as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16749as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16750as_cr_digits='0123456789'
16751as_cr_alnum=$as_cr_Letters$as_cr_digits
16752
16753ECHO_C= ECHO_N= ECHO_T=
16754case `echo -n x` in #(((((
16755-n*)
16756 case `echo 'xy\c'` in
16757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16758 xy) ECHO_C='\c';;
16759 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16760 ECHO_T=' ';;
16761 esac;;
16762*)
16763 ECHO_N='-n';;
16764esac
16765
16766rm -f conf$$ conf$$.exe conf$$.file
16767if test -d conf$$.dir; then
16768 rm -f conf$$.dir/conf$$.file
16769else
16770 rm -f conf$$.dir
16771 mkdir conf$$.dir 2>/dev/null
16772fi
16773if (echo >conf$$.file) 2>/dev/null; then
16774 if ln -s conf$$.file conf$$ 2>/dev/null; then
16775 as_ln_s='ln -s'
16776 # ... but there are two gotchas:
16777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16779 # In both cases, we have to default to `cp -pR'.
16780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16781 as_ln_s='cp -pR'
16782 elif ln conf$$.file conf$$ 2>/dev/null; then
16783 as_ln_s=ln
16784 else
16785 as_ln_s='cp -pR'
16786 fi
16787else
16788 as_ln_s='cp -pR'
16789fi
16790rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16791rmdir conf$$.dir 2>/dev/null
16792
16793
16794# as_fn_mkdir_p
16795# -------------
16796# Create "$as_dir" as a directory, including parents if necessary.
16797as_fn_mkdir_p ()
16798{
16799
16800 case $as_dir in #(
16801 -*) as_dir=./$as_dir;;
16802 esac
16803 test -d "$as_dir" || eval $as_mkdir_p || {
16804 as_dirs=
16805 while :; do
16806 case $as_dir in #(
16807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16808 *) as_qdir=$as_dir;;
16809 esac
16810 as_dirs="'$as_qdir' $as_dirs"
16811 as_dir=`$as_dirname -- "$as_dir" ||
16812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16813 X"$as_dir" : 'X\(//\)[^/]' \| \
16814 X"$as_dir" : 'X\(//\)$' \| \
16815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16816$as_echo X"$as_dir" |
16817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16818 s//\1/
16819 q
16820 }
16821 /^X\(\/\/\)[^/].*/{
16822 s//\1/
16823 q
16824 }
16825 /^X\(\/\/\)$/{
16826 s//\1/
16827 q
16828 }
16829 /^X\(\/\).*/{
16830 s//\1/
16831 q
16832 }
16833 s/.*/./; q'`
16834 test -d "$as_dir" && break
16835 done
16836 test -z "$as_dirs" || eval "mkdir $as_dirs"
16837 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16838
16839
16840} # as_fn_mkdir_p
16841if mkdir -p . 2>/dev/null; then
16842 as_mkdir_p='mkdir -p "$as_dir"'
16843else
16844 test -d ./-p && rmdir ./-p
16845 as_mkdir_p=false
16846fi
16847
16848
16849# as_fn_executable_p FILE
16850# -----------------------
16851# Test if FILE is an executable regular file.
16852as_fn_executable_p ()
16853{
16854 test -f "$1" && test -x "$1"
16855} # as_fn_executable_p
16856as_test_x='test -x'
16857as_executable_p=as_fn_executable_p
16858
16859# Sed expression to map a string onto a valid CPP name.
16860as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16861
16862# Sed expression to map a string onto a valid variable name.
16863as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16864
16865
16866exec 6>&1
16867## ----------------------------------- ##
16868## Main body of $CONFIG_STATUS script. ##
16869## ----------------------------------- ##
16870_ASEOF
16871test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16872
16873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16874# Save the log message, to keep $0 and so on meaningful, and to
16875# report actual input values of CONFIG_FILES etc. instead of their
16876# values after options handling.
16877ac_log="
16878This file was extended by ctemplate $as_me 2.3, which was
16879generated by GNU Autoconf 2.69. Invocation command line was
16880
16881 CONFIG_FILES = $CONFIG_FILES
16882 CONFIG_HEADERS = $CONFIG_HEADERS
16883 CONFIG_LINKS = $CONFIG_LINKS
16884 CONFIG_COMMANDS = $CONFIG_COMMANDS
16885 $ $0 $@
16886
16887on `(hostname || uname -n) 2>/dev/null | sed 1q`
16888"
16889
16890_ACEOF
16891
16892case $ac_config_files in *"
16893"*) set x $ac_config_files; shift; ac_config_files=$*;;
16894esac
16895
16896case $ac_config_headers in *"
16897"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16898esac
16899
16900
16901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16902# Files that config.status was made for.
16903config_files="$ac_config_files"
16904config_headers="$ac_config_headers"
16905config_commands="$ac_config_commands"
16906
16907_ACEOF
16908
16909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910ac_cs_usage="\
16911\`$as_me' instantiates files and other configuration actions
16912from templates according to the current configuration. Unless the files
16913and actions are specified as TAGs, all are instantiated by default.
16914
16915Usage: $0 [OPTION]... [TAG]...
16916
16917 -h, --help print this help, then exit
16918 -V, --version print version number and configuration settings, then exit
16919 --config print configuration, then exit
16920 -q, --quiet, --silent
16921 do not print progress messages
16922 -d, --debug don't remove temporary files
16923 --recheck update $as_me by reconfiguring in the same conditions
16924 --file=FILE[:TEMPLATE]
16925 instantiate the configuration file FILE
16926 --header=FILE[:TEMPLATE]
16927 instantiate the configuration header FILE
16928
16929Configuration files:
16930$config_files
16931
16932Configuration headers:
16933$config_headers
16934
16935Configuration commands:
16936$config_commands
16937
16938Report bugs to <google-ctemplate@googlegroups.com>."
16939
16940_ACEOF
16941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16942ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16943ac_cs_version="\\
16944ctemplate config.status 2.3
16945configured by $0, generated by GNU Autoconf 2.69,
16946 with options \\"\$ac_cs_config\\"
16947
16948Copyright (C) 2012 Free Software Foundation, Inc.
16949This config.status script is free software; the Free Software Foundation
16950gives unlimited permission to copy, distribute and modify it."
16951
16952ac_pwd='$ac_pwd'
16953srcdir='$srcdir'
16954INSTALL='$INSTALL'
16955MKDIR_P='$MKDIR_P'
16956AWK='$AWK'
16957test -n "\$AWK" || AWK=awk
16958_ACEOF
16959
16960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16961# The default lists apply if the user does not specify any file.
16962ac_need_defaults=:
16963while test $# != 0
16964do
16965 case $1 in
16966 --*=?*)
16967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16969 ac_shift=:
16970 ;;
16971 --*=)
16972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16973 ac_optarg=
16974 ac_shift=:
16975 ;;
16976 *)
16977 ac_option=$1
16978 ac_optarg=$2
16979 ac_shift=shift
16980 ;;
16981 esac
16982
16983 case $ac_option in
16984 # Handling of the options.
16985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16986 ac_cs_recheck=: ;;
16987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16988 $as_echo "$ac_cs_version"; exit ;;
16989 --config | --confi | --conf | --con | --co | --c )
16990 $as_echo "$ac_cs_config"; exit ;;
16991 --debug | --debu | --deb | --de | --d | -d )
16992 debug=: ;;
16993 --file | --fil | --fi | --f )
16994 $ac_shift
16995 case $ac_optarg in
16996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16997 '') as_fn_error $? "missing file argument" ;;
16998 esac
16999 as_fn_append CONFIG_FILES " '$ac_optarg'"
17000 ac_need_defaults=false;;
17001 --header | --heade | --head | --hea )
17002 $ac_shift
17003 case $ac_optarg in
17004 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17005 esac
17006 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17007 ac_need_defaults=false;;
17008 --he | --h)
17009 # Conflict between --help and --header
17010 as_fn_error $? "ambiguous option: \`$1'
17011Try \`$0 --help' for more information.";;
17012 --help | --hel | -h )
17013 $as_echo "$ac_cs_usage"; exit ;;
17014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17016 ac_cs_silent=: ;;
17017
17018 # This is an error.
17019 -*) as_fn_error $? "unrecognized option: \`$1'
17020Try \`$0 --help' for more information." ;;
17021
17022 *) as_fn_append ac_config_targets " $1"
17023 ac_need_defaults=false ;;
17024
17025 esac
17026 shift
17027done
17028
17029ac_configure_extra_args=
17030
17031if $ac_cs_silent; then
17032 exec 6>/dev/null
17033 ac_configure_extra_args="$ac_configure_extra_args --silent"
17034fi
17035
17036_ACEOF
17037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17038if \$ac_cs_recheck; then
17039 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17040 shift
17041 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17042 CONFIG_SHELL='$SHELL'
17043 export CONFIG_SHELL
17044 exec "\$@"
17045fi
17046
17047_ACEOF
17048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17049exec 5>>config.log
17050{
17051 echo
17052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17053## Running $as_me. ##
17054_ASBOX
17055 $as_echo "$ac_log"
17056} >&5
17057
17058_ACEOF
17059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17060#
17061# INIT-COMMANDS
17062#
17063AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17064
17065
17066# The HP-UX ksh and POSIX shell print the target directory to stdout
17067# if CDPATH is set.
17068(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17069
17070sed_quote_subst='$sed_quote_subst'
17071double_quote_subst='$double_quote_subst'
17072delay_variable_subst='$delay_variable_subst'
17073enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17074macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17075macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17076enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17077enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17078pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17079host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17080host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17081host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17082build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17083build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17084build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17085SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17086Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17087GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17088EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17089FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17090LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17091NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17092LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17093max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17094ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17095exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17096lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17097lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17098lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17099reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17100reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17101OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17102deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17103file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17104AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17105AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17106STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17107RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17108old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17109old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17110old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17111CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17112CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17113compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17114GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17115lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17116lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17117lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17118lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17119objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17120SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17121ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17122MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17123lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17124lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17125lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17126lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17127lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17128need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17129DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17130NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17131LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17132OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17133OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17134libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17135shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17136extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17137archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17138enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17139export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17140whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17141compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17142old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17143old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17144archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17145archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17146module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17147module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17148with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17149allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17150no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17151hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17152hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17153hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17154hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17155hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17156hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17157hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17158hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17159inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17160link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17161fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17162always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17163export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17164exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17165include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17166prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17167file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17168variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17169need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17170need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17171version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17172runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17173shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17174shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17175libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17176library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17177soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17178postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17179postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17180finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17181finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17182hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17183sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17184sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17185hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17186enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17187enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17188enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17189old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17190striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17191compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17192predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17193postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17194predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17195postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17196compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17197LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17198old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17199compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17200GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17201lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17202lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17203lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17204lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17205lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17206archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17207enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17208export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17209whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17210compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17211old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17212old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17213archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17214archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17215module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17216module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17217with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17218allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17219no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17220hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17221hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17222hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17223hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17224hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17225hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17226hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17227hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17228inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17229link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17230fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17231always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17232export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17233exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17234include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17235prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17236file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17237hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17238compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17239predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17240postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17241predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17242postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17243compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17244
17245LTCC='$LTCC'
17246LTCFLAGS='$LTCFLAGS'
17247compiler='$compiler_DEFAULT'
17248
17249# Quote evaled strings.
17250for var in SED \
17251GREP \
17252EGREP \
17253FGREP \
17254LD \
17255NM \
17256LN_S \
17257lt_SP2NL \
17258lt_NL2SP \
17259reload_flag \
17260OBJDUMP \
17261deplibs_check_method \
17262file_magic_cmd \
17263AR \
17264AR_FLAGS \
17265STRIP \
17266RANLIB \
17267CC \
17268CFLAGS \
17269compiler \
17270lt_cv_sys_global_symbol_pipe \
17271lt_cv_sys_global_symbol_to_cdecl \
17272lt_cv_sys_global_symbol_to_c_name_address \
17273lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17274SHELL \
17275ECHO \
17276lt_prog_compiler_no_builtin_flag \
17277lt_prog_compiler_wl \
17278lt_prog_compiler_pic \
17279lt_prog_compiler_static \
17280lt_cv_prog_compiler_c_o \
17281need_locks \
17282DSYMUTIL \
17283NMEDIT \
17284LIPO \
17285OTOOL \
17286OTOOL64 \
17287shrext_cmds \
17288export_dynamic_flag_spec \
17289whole_archive_flag_spec \
17290compiler_needs_object \
17291with_gnu_ld \
17292allow_undefined_flag \
17293no_undefined_flag \
17294hardcode_libdir_flag_spec \
17295hardcode_libdir_flag_spec_ld \
17296hardcode_libdir_separator \
17297fix_srcfile_path \
17298exclude_expsyms \
17299include_expsyms \
17300file_list_spec \
17301variables_saved_for_relink \
17302libname_spec \
17303library_names_spec \
17304soname_spec \
17305finish_eval \
17306old_striplib \
17307striplib \
17308compiler_lib_search_dirs \
17309predep_objects \
17310postdep_objects \
17311predeps \
17312postdeps \
17313compiler_lib_search_path \
17314LD_CXX \
17315compiler_CXX \
17316lt_prog_compiler_no_builtin_flag_CXX \
17317lt_prog_compiler_wl_CXX \
17318lt_prog_compiler_pic_CXX \
17319lt_prog_compiler_static_CXX \
17320lt_cv_prog_compiler_c_o_CXX \
17321export_dynamic_flag_spec_CXX \
17322whole_archive_flag_spec_CXX \
17323compiler_needs_object_CXX \
17324with_gnu_ld_CXX \
17325allow_undefined_flag_CXX \
17326no_undefined_flag_CXX \
17327hardcode_libdir_flag_spec_CXX \
17328hardcode_libdir_flag_spec_ld_CXX \
17329hardcode_libdir_separator_CXX \
17330fix_srcfile_path_CXX \
17331exclude_expsyms_CXX \
17332include_expsyms_CXX \
17333file_list_spec_CXX \
17334compiler_lib_search_dirs_CXX \
17335predep_objects_CXX \
17336postdep_objects_CXX \
17337predeps_CXX \
17338postdeps_CXX \
17339compiler_lib_search_path_CXX; do
17340 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17341 *[\\\\\\\`\\"\\\$]*)
17342 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17343 ;;
17344 *)
17345 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17346 ;;
17347 esac
17348done
17349
17350# Double-quote double-evaled strings.
17351for var in reload_cmds \
17352old_postinstall_cmds \
17353old_postuninstall_cmds \
17354old_archive_cmds \
17355extract_expsyms_cmds \
17356old_archive_from_new_cmds \
17357old_archive_from_expsyms_cmds \
17358archive_cmds \
17359archive_expsym_cmds \
17360module_cmds \
17361module_expsym_cmds \
17362export_symbols_cmds \
17363prelink_cmds \
17364postinstall_cmds \
17365postuninstall_cmds \
17366finish_cmds \
17367sys_lib_search_path_spec \
17368sys_lib_dlsearch_path_spec \
17369old_archive_cmds_CXX \
17370old_archive_from_new_cmds_CXX \
17371old_archive_from_expsyms_cmds_CXX \
17372archive_cmds_CXX \
17373archive_expsym_cmds_CXX \
17374module_cmds_CXX \
17375module_expsym_cmds_CXX \
17376export_symbols_cmds_CXX \
17377prelink_cmds_CXX; do
17378 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17379 *[\\\\\\\`\\"\\\$]*)
17380 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17381 ;;
17382 *)
17383 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17384 ;;
17385 esac
17386done
17387
17388# Fix-up fallback echo if it was mangled by the above quoting rules.
17389case \$lt_ECHO in
17390*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17391 ;;
17392esac
17393
17394ac_aux_dir='$ac_aux_dir'
17395xsi_shell='$xsi_shell'
17396lt_shell_append='$lt_shell_append'
17397
17398# See if we are running on zsh, and set the options which allow our
17399# commands through without removal of \ escapes INIT.
17400if test -n "\${ZSH_VERSION+set}" ; then
17401 setopt NO_GLOB_SUBST
17402fi
17403
17404
17405 PACKAGE='$PACKAGE'
17406 VERSION='$VERSION'
17407 TIMESTAMP='$TIMESTAMP'
17408 RM='$RM'
17409 ofile='$ofile'
17410
17411
17412
17413
17414
17415
17416_ACEOF
17417
17418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17419
17420# Handling of arguments.
17421for ac_config_target in $ac_config_targets
17422do
17423 case $ac_config_target in
17424 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17425 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17426 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17427 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17428 "src/ctemplate/template_string.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_string.h" ;;
17429 "src/ctemplate/template_enums.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_enums.h" ;;
17430 "src/ctemplate/template.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template.h" ;;
17431 "src/ctemplate/template_cache.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_cache.h" ;;
17432 "src/ctemplate/template_modifiers.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_modifiers.h" ;;
17433 "src/ctemplate/template_emitter.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_emitter.h" ;;
17434 "src/ctemplate/template_annotator.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_annotator.h" ;;
17435 "src/ctemplate/template_dictionary.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_dictionary.h" ;;
17436 "src/ctemplate/template_pathops.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_pathops.h" ;;
17437 "src/ctemplate/template_namelist.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_namelist.h" ;;
17438 "src/ctemplate/find_ptr.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/find_ptr.h" ;;
17439 "src/ctemplate/per_expand_data.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/per_expand_data.h" ;;
17440 "src/ctemplate/str_ref.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/str_ref.h" ;;
17441 "src/ctemplate/template_dictionary_interface.h") CONFIG_FILES="$CONFIG_FILES src/ctemplate/template_dictionary_interface.h" ;;
17442
17443 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17444 esac
17445done
17446
17447
17448# If the user did not use the arguments to specify the items to instantiate,
17449# then the envvar interface is used. Set only those that are not.
17450# We use the long form for the default assignment because of an extremely
17451# bizarre bug on SunOS 4.1.3.
17452if $ac_need_defaults; then
17453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17455 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17456fi
17457
17458# Have a temporary directory for convenience. Make it in the build tree
17459# simply because there is no reason against having it here, and in addition,
17460# creating and moving files from /tmp can sometimes cause problems.
17461# Hook for its removal unless debugging.
17462# Note that there is a small window in which the directory will not be cleaned:
17463# after its creation but before its name has been assigned to `$tmp'.
17464$debug ||
17465{
17466 tmp= ac_tmp=
17467 trap 'exit_status=$?
17468 : "${ac_tmp:=$tmp}"
17469 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17470' 0
17471 trap 'as_fn_exit 1' 1 2 13 15
17472}
17473# Create a (secure) tmp directory for tmp files.
17474
17475{
17476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17477 test -d "$tmp"
17478} ||
17479{
17480 tmp=./conf$$-$RANDOM
17481 (umask 077 && mkdir "$tmp")
17482} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17483ac_tmp=$tmp
17484
17485# Set up the scripts for CONFIG_FILES section.
17486# No need to generate them if there are no CONFIG_FILES.
17487# This happens for instance with `./config.status config.h'.
17488if test -n "$CONFIG_FILES"; then
17489
17490
17491ac_cr=`echo X | tr X '\015'`
17492# On cygwin, bash can eat \r inside `` if the user requested igncr.
17493# But we know of no other shell where ac_cr would be empty at this
17494# point, so we can use a bashism as a fallback.
17495if test "x$ac_cr" = x; then
17496 eval ac_cr=\$\'\\r\'
17497fi
17498ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17499if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17500 ac_cs_awk_cr='\\r'
17501else
17502 ac_cs_awk_cr=$ac_cr
17503fi
17504
17505echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17506_ACEOF
17507
17508
17509{
17510 echo "cat >conf$$subs.awk <<_ACEOF" &&
17511 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17512 echo "_ACEOF"
17513} >conf$$subs.sh ||
17514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17515ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17516ac_delim='%!_!# '
17517for ac_last_try in false false false false false :; do
17518 . ./conf$$subs.sh ||
17519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17520
17521 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17522 if test $ac_delim_n = $ac_delim_num; then
17523 break
17524 elif $ac_last_try; then
17525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17526 else
17527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17528 fi
17529done
17530rm -f conf$$subs.sh
17531
17532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17533cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17534_ACEOF
17535sed -n '
17536h
17537s/^/S["/; s/!.*/"]=/
17538p
17539g
17540s/^[^!]*!//
17541:repl
17542t repl
17543s/'"$ac_delim"'$//
17544t delim
17545:nl
17546h
17547s/\(.\{148\}\)..*/\1/
17548t more1
17549s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17550p
17551n
17552b repl
17553:more1
17554s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17555p
17556g
17557s/.\{148\}//
17558t nl
17559:delim
17560h
17561s/\(.\{148\}\)..*/\1/
17562t more2
17563s/["\\]/\\&/g; s/^/"/; s/$/"/
17564p
17565b
17566:more2
17567s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17568p
17569g
17570s/.\{148\}//
17571t delim
17572' <conf$$subs.awk | sed '
17573/^[^""]/{
17574 N
17575 s/\n//
17576}
17577' >>$CONFIG_STATUS || ac_write_fail=1
17578rm -f conf$$subs.awk
17579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17580_ACAWK
17581cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17582 for (key in S) S_is_set[key] = 1
17583 FS = ""
17584
17585}
17586{
17587 line = $ 0
17588 nfields = split(line, field, "@")
17589 substed = 0
17590 len = length(field[1])
17591 for (i = 2; i < nfields; i++) {
17592 key = field[i]
17593 keylen = length(key)
17594 if (S_is_set[key]) {
17595 value = S[key]
17596 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17597 len += length(value) + length(field[++i])
17598 substed = 1
17599 } else
17600 len += 1 + keylen
17601 }
17602
17603 print line
17604}
17605
17606_ACAWK
17607_ACEOF
17608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17609if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17610 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17611else
17612 cat
17613fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17614 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17615_ACEOF
17616
17617# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17618# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17619# trailing colons and then remove the whole line if VPATH becomes empty
17620# (actually we leave an empty line to preserve line numbers).
17621if test "x$srcdir" = x.; then
17622 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17623h
17624s///
17625s/^/:/
17626s/[ ]*$/:/
17627s/:\$(srcdir):/:/g
17628s/:\${srcdir}:/:/g
17629s/:@srcdir@:/:/g
17630s/^:*//
17631s/:*$//
17632x
17633s/\(=[ ]*\).*/\1/
17634G
17635s/\n//
17636s/^[^=]*=[ ]*$//
17637}'
17638fi
17639
17640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17641fi # test -n "$CONFIG_FILES"
17642
17643# Set up the scripts for CONFIG_HEADERS section.
17644# No need to generate them if there are no CONFIG_HEADERS.
17645# This happens for instance with `./config.status Makefile'.
17646if test -n "$CONFIG_HEADERS"; then
17647cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17648BEGIN {
17649_ACEOF
17650
17651# Transform confdefs.h into an awk script `defines.awk', embedded as
17652# here-document in config.status, that substitutes the proper values into
17653# config.h.in to produce config.h.
17654
17655# Create a delimiter string that does not exist in confdefs.h, to ease
17656# handling of long lines.
17657ac_delim='%!_!# '
17658for ac_last_try in false false :; do
17659 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17660 if test -z "$ac_tt"; then
17661 break
17662 elif $ac_last_try; then
17663 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17664 else
17665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17666 fi
17667done
17668
17669# For the awk script, D is an array of macro values keyed by name,
17670# likewise P contains macro parameters if any. Preserve backslash
17671# newline sequences.
17672
17673ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17674sed -n '
17675s/.\{148\}/&'"$ac_delim"'/g
17676t rset
17677:rset
17678s/^[ ]*#[ ]*define[ ][ ]*/ /
17679t def
17680d
17681:def
17682s/\\$//
17683t bsnl
17684s/["\\]/\\&/g
17685s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17686D["\1"]=" \3"/p
17687s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17688d
17689:bsnl
17690s/["\\]/\\&/g
17691s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17692D["\1"]=" \3\\\\\\n"\\/p
17693t cont
17694s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17695t cont
17696d
17697:cont
17698n
17699s/.\{148\}/&'"$ac_delim"'/g
17700t clear
17701:clear
17702s/\\$//
17703t bsnlc
17704s/["\\]/\\&/g; s/^/"/; s/$/"/p
17705d
17706:bsnlc
17707s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17708b cont
17709' <confdefs.h | sed '
17710s/'"$ac_delim"'/"\\\
17711"/g' >>$CONFIG_STATUS || ac_write_fail=1
17712
17713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 for (key in D) D_is_set[key] = 1
17715 FS = ""
17716}
17717/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17718 line = \$ 0
17719 split(line, arg, " ")
17720 if (arg[1] == "#") {
17721 defundef = arg[2]
17722 mac1 = arg[3]
17723 } else {
17724 defundef = substr(arg[1], 2)
17725 mac1 = arg[2]
17726 }
17727 split(mac1, mac2, "(") #)
17728 macro = mac2[1]
17729 prefix = substr(line, 1, index(line, defundef) - 1)
17730 if (D_is_set[macro]) {
17731 # Preserve the white space surrounding the "#".
17732 print prefix "define", macro P[macro] D[macro]
17733 next
17734 } else {
17735 # Replace #undef with comments. This is necessary, for example,
17736 # in the case of _POSIX_SOURCE, which is predefined and required
17737 # on some systems where configure will not decide to define it.
17738 if (defundef == "undef") {
17739 print "/*", prefix defundef, macro, "*/"
17740 next
17741 }
17742 }
17743}
17744{ print }
17745_ACAWK
17746_ACEOF
17747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17748 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17749fi # test -n "$CONFIG_HEADERS"
17750
17751
17752eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17753shift
17754for ac_tag
17755do
17756 case $ac_tag in
17757 :[FHLC]) ac_mode=$ac_tag; continue;;
17758 esac
17759 case $ac_mode$ac_tag in
17760 :[FHL]*:*);;
17761 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17762 :[FH]-) ac_tag=-:-;;
17763 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17764 esac
17765 ac_save_IFS=$IFS
17766 IFS=:
17767 set x $ac_tag
17768 IFS=$ac_save_IFS
17769 shift
17770 ac_file=$1
17771 shift
17772
17773 case $ac_mode in
17774 :L) ac_source=$1;;
17775 :[FH])
17776 ac_file_inputs=
17777 for ac_f
17778 do
17779 case $ac_f in
17780 -) ac_f="$ac_tmp/stdin";;
17781 *) # Look for the file first in the build tree, then in the source tree
17782 # (if the path is not absolute). The absolute path cannot be DOS-style,
17783 # because $ac_f cannot contain `:'.
17784 test -f "$ac_f" ||
17785 case $ac_f in
17786 [\\/$]*) false;;
17787 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17788 esac ||
17789 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17790 esac
17791 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17792 as_fn_append ac_file_inputs " '$ac_f'"
17793 done
17794
17795 # Let's still pretend it is `configure' which instantiates (i.e., don't
17796 # use $as_me), people would be surprised to read:
17797 # /* config.h. Generated by config.status. */
17798 configure_input='Generated from '`
17799 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17800 `' by configure.'
17801 if test x"$ac_file" != x-; then
17802 configure_input="$ac_file. $configure_input"
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17804$as_echo "$as_me: creating $ac_file" >&6;}
17805 fi
17806 # Neutralize special characters interpreted by sed in replacement strings.
17807 case $configure_input in #(
17808 *\&* | *\|* | *\\* )
17809 ac_sed_conf_input=`$as_echo "$configure_input" |
17810 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17811 *) ac_sed_conf_input=$configure_input;;
17812 esac
17813
17814 case $ac_tag in
17815 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17817 esac
17818 ;;
17819 esac
17820
17821 ac_dir=`$as_dirname -- "$ac_file" ||
17822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17823 X"$ac_file" : 'X\(//\)[^/]' \| \
17824 X"$ac_file" : 'X\(//\)$' \| \
17825 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17826$as_echo X"$ac_file" |
17827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17828 s//\1/
17829 q
17830 }
17831 /^X\(\/\/\)[^/].*/{
17832 s//\1/
17833 q
17834 }
17835 /^X\(\/\/\)$/{
17836 s//\1/
17837 q
17838 }
17839 /^X\(\/\).*/{
17840 s//\1/
17841 q
17842 }
17843 s/.*/./; q'`
17844 as_dir="$ac_dir"; as_fn_mkdir_p
17845 ac_builddir=.
17846
17847case "$ac_dir" in
17848.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17849*)
17850 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17851 # A ".." for each directory in $ac_dir_suffix.
17852 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17853 case $ac_top_builddir_sub in
17854 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17855 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17856 esac ;;
17857esac
17858ac_abs_top_builddir=$ac_pwd
17859ac_abs_builddir=$ac_pwd$ac_dir_suffix
17860# for backward compatibility:
17861ac_top_builddir=$ac_top_build_prefix
17862
17863case $srcdir in
17864 .) # We are building in place.
17865 ac_srcdir=.
17866 ac_top_srcdir=$ac_top_builddir_sub
17867 ac_abs_top_srcdir=$ac_pwd ;;
17868 [\\/]* | ?:[\\/]* ) # Absolute name.
17869 ac_srcdir=$srcdir$ac_dir_suffix;
17870 ac_top_srcdir=$srcdir
17871 ac_abs_top_srcdir=$srcdir ;;
17872 *) # Relative name.
17873 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17874 ac_top_srcdir=$ac_top_build_prefix$srcdir
17875 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17876esac
17877ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17878
17879
17880 case $ac_mode in
17881 :F)
17882 #
17883 # CONFIG_FILE
17884 #
17885
17886 case $INSTALL in
17887 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17888 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17889 esac
17890 ac_MKDIR_P=$MKDIR_P
17891 case $MKDIR_P in
17892 [\\/$]* | ?:[\\/]* ) ;;
17893 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17894 esac
17895_ACEOF
17896
17897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17898# If the template does not know about datarootdir, expand it.
17899# FIXME: This hack should be removed a few years after 2.60.
17900ac_datarootdir_hack=; ac_datarootdir_seen=
17901ac_sed_dataroot='
17902/datarootdir/ {
17903 p
17904 q
17905}
17906/@datadir@/p
17907/@docdir@/p
17908/@infodir@/p
17909/@localedir@/p
17910/@mandir@/p'
17911case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17912*datarootdir*) ac_datarootdir_seen=yes;;
17913*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17915$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17916_ACEOF
17917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17918 ac_datarootdir_hack='
17919 s&@datadir@&$datadir&g
17920 s&@docdir@&$docdir&g
17921 s&@infodir@&$infodir&g
17922 s&@localedir@&$localedir&g
17923 s&@mandir@&$mandir&g
17924 s&\\\${datarootdir}&$datarootdir&g' ;;
17925esac
17926_ACEOF
17927
17928# Neutralize VPATH when `$srcdir' = `.'.
17929# Shell code in configure.ac might set extrasub.
17930# FIXME: do we really want to maintain this feature?
17931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17932ac_sed_extra="$ac_vpsub
17933$extrasub
17934_ACEOF
17935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17936:t
17937/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17938s|@configure_input@|$ac_sed_conf_input|;t t
17939s&@top_builddir@&$ac_top_builddir_sub&;t t
17940s&@top_build_prefix@&$ac_top_build_prefix&;t t
17941s&@srcdir@&$ac_srcdir&;t t
17942s&@abs_srcdir@&$ac_abs_srcdir&;t t
17943s&@top_srcdir@&$ac_top_srcdir&;t t
17944s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17945s&@builddir@&$ac_builddir&;t t
17946s&@abs_builddir@&$ac_abs_builddir&;t t
17947s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17948s&@INSTALL@&$ac_INSTALL&;t t
17949s&@MKDIR_P@&$ac_MKDIR_P&;t t
17950$ac_datarootdir_hack
17951"
17952eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17953 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17954
17955test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17956 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17957 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17958 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17960which seems to be undefined. Please make sure it is defined" >&5
17961$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17962which seems to be undefined. Please make sure it is defined" >&2;}
17963
17964 rm -f "$ac_tmp/stdin"
17965 case $ac_file in
17966 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17967 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17968 esac \
17969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17970 ;;
17971 :H)
17972 #
17973 # CONFIG_HEADER
17974 #
17975 if test x"$ac_file" != x-; then
17976 {
17977 $as_echo "/* $configure_input */" \
17978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17979 } >"$ac_tmp/config.h" \
17980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17981 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17983$as_echo "$as_me: $ac_file is unchanged" >&6;}
17984 else
17985 rm -f "$ac_file"
17986 mv "$ac_tmp/config.h" "$ac_file" \
17987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17988 fi
17989 else
17990 $as_echo "/* $configure_input */" \
17991 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17992 || as_fn_error $? "could not create -" "$LINENO" 5
17993 fi
17994# Compute "$ac_file"'s index in $config_headers.
17995_am_arg="$ac_file"
17996_am_stamp_count=1
17997for _am_header in $config_headers :; do
17998 case $_am_header in
17999 $_am_arg | $_am_arg:* )
18000 break ;;
18001 * )
18002 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18003 esac
18004done
18005echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18006$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18007 X"$_am_arg" : 'X\(//\)[^/]' \| \
18008 X"$_am_arg" : 'X\(//\)$' \| \
18009 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18010$as_echo X"$_am_arg" |
18011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18012 s//\1/
18013 q
18014 }
18015 /^X\(\/\/\)[^/].*/{
18016 s//\1/
18017 q
18018 }
18019 /^X\(\/\/\)$/{
18020 s//\1/
18021 q
18022 }
18023 /^X\(\/\).*/{
18024 s//\1/
18025 q
18026 }
18027 s/.*/./; q'`/stamp-h$_am_stamp_count
18028 ;;
18029
18030 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18031$as_echo "$as_me: executing $ac_file commands" >&6;}
18032 ;;
18033 esac
18034
18035
18036 case $ac_file$ac_mode in
18037 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18038 # Older Autoconf quotes --file arguments for eval, but not when files
18039 # are listed without --file. Let's play safe and only enable the eval
18040 # if we detect the quoting.
18041 case $CONFIG_FILES in
18042 *\'*) eval set x "$CONFIG_FILES" ;;
18043 *) set x $CONFIG_FILES ;;
18044 esac
18045 shift
18046 for mf
18047 do
18048 # Strip MF so we end up with the name of the file.
18049 mf=`echo "$mf" | sed -e 's/:.*$//'`
18050 # Check whether this is an Automake generated Makefile or not.
18051 # We used to match only the files named 'Makefile.in', but
18052 # some people rename them; so instead we look at the file content.
18053 # Grep'ing the first line is not enough: some people post-process
18054 # each Makefile.in and add a new line on top of each file to say so.
18055 # Grep'ing the whole file is not good either: AIX grep has a line
18056 # limit of 2048, but all sed's we know have understand at least 4000.
18057 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18058 dirpart=`$as_dirname -- "$mf" ||
18059$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18060 X"$mf" : 'X\(//\)[^/]' \| \
18061 X"$mf" : 'X\(//\)$' \| \
18062 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18063$as_echo X"$mf" |
18064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18065 s//\1/
18066 q
18067 }
18068 /^X\(\/\/\)[^/].*/{
18069 s//\1/
18070 q
18071 }
18072 /^X\(\/\/\)$/{
18073 s//\1/
18074 q
18075 }
18076 /^X\(\/\).*/{
18077 s//\1/
18078 q
18079 }
18080 s/.*/./; q'`
18081 else
18082 continue
18083 fi
18084 # Extract the definition of DEPDIR, am__include, and am__quote
18085 # from the Makefile without running 'make'.
18086 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18087 test -z "$DEPDIR" && continue
18088 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18089 test -z "$am__include" && continue
18090 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18091 # Find all dependency output files, they are included files with
18092 # $(DEPDIR) in their names. We invoke sed twice because it is the
18093 # simplest approach to changing $(DEPDIR) to its actual value in the
18094 # expansion.
18095 for file in `sed -n "
18096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18098 # Make sure the directory exists.
18099 test -f "$dirpart/$file" && continue
18100 fdir=`$as_dirname -- "$file" ||
18101$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18102 X"$file" : 'X\(//\)[^/]' \| \
18103 X"$file" : 'X\(//\)$' \| \
18104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18105$as_echo X"$file" |
18106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18107 s//\1/
18108 q
18109 }
18110 /^X\(\/\/\)[^/].*/{
18111 s//\1/
18112 q
18113 }
18114 /^X\(\/\/\)$/{
18115 s//\1/
18116 q
18117 }
18118 /^X\(\/\).*/{
18119 s//\1/
18120 q
18121 }
18122 s/.*/./; q'`
18123 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18124 # echo "creating $dirpart/$file"
18125 echo '# dummy' > "$dirpart/$file"
18126 done
18127 done
18128}
18129 ;;
18130 "libtool":C)
18131
18132 # See if we are running on zsh, and set the options which allow our
18133 # commands through without removal of \ escapes.
18134 if test -n "${ZSH_VERSION+set}" ; then
18135 setopt NO_GLOB_SUBST
18136 fi
18137
18138 cfgfile="${ofile}T"
18139 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18140 $RM "$cfgfile"
18141
18142 cat <<_LT_EOF >> "$cfgfile"
18143#! $SHELL
18144
18145# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18146# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18147# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18148# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18149#
18150# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18151# 2006, 2007, 2008 Free Software Foundation, Inc.
18152# Written by Gordon Matzigkeit, 1996
18153#
18154# This file is part of GNU Libtool.
18155#
18156# GNU Libtool is free software; you can redistribute it and/or
18157# modify it under the terms of the GNU General Public License as
18158# published by the Free Software Foundation; either version 2 of
18159# the License, or (at your option) any later version.
18160#
18161# As a special exception to the GNU General Public License,
18162# if you distribute this file as part of a program or library that
18163# is built using GNU Libtool, you may include this file under the
18164# same distribution terms that you use for the rest of that program.
18165#
18166# GNU Libtool is distributed in the hope that it will be useful,
18167# but WITHOUT ANY WARRANTY; without even the implied warranty of
18168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18169# GNU General Public License for more details.
18170#
18171# You should have received a copy of the GNU General Public License
18172# along with GNU Libtool; see the file COPYING. If not, a copy
18173# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18174# obtained by writing to the Free Software Foundation, Inc.,
18175# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18176
18177
18178# The names of the tagged configurations supported by this script.
18179available_tags="CXX "
18180
18181# ### BEGIN LIBTOOL CONFIG
18182
18183# Whether or not to optimize for fast installation.
18184fast_install=$enable_fast_install
18185
18186# Which release of libtool.m4 was used?
18187macro_version=$macro_version
18188macro_revision=$macro_revision
18189
18190# Whether or not to build shared libraries.
18191build_libtool_libs=$enable_shared
18192
18193# Whether or not to build static libraries.
18194build_old_libs=$enable_static
18195
18196# What type of objects to build.
18197pic_mode=$pic_mode
18198
18199# The host system.
18200host_alias=$host_alias
18201host=$host
18202host_os=$host_os
18203
18204# The build system.
18205build_alias=$build_alias
18206build=$build
18207build_os=$build_os
18208
18209# A sed program that does not truncate output.
18210SED=$lt_SED
18211
18212# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18213Xsed="\$SED -e 1s/^X//"
18214
18215# A grep program that handles long lines.
18216GREP=$lt_GREP
18217
18218# An ERE matcher.
18219EGREP=$lt_EGREP
18220
18221# A literal string matcher.
18222FGREP=$lt_FGREP
18223
18224# A BSD- or MS-compatible name lister.
18225NM=$lt_NM
18226
18227# Whether we need soft or hard links.
18228LN_S=$lt_LN_S
18229
18230# What is the maximum length of a command?
18231max_cmd_len=$max_cmd_len
18232
18233# Object file suffix (normally "o").
18234objext=$ac_objext
18235
18236# Executable file suffix (normally "").
18237exeext=$exeext
18238
18239# whether the shell understands "unset".
18240lt_unset=$lt_unset
18241
18242# turn spaces into newlines.
18243SP2NL=$lt_lt_SP2NL
18244
18245# turn newlines into spaces.
18246NL2SP=$lt_lt_NL2SP
18247
18248# How to create reloadable object files.
18249reload_flag=$lt_reload_flag
18250reload_cmds=$lt_reload_cmds
18251
18252# An object symbol dumper.
18253OBJDUMP=$lt_OBJDUMP
18254
18255# Method to check whether dependent libraries are shared objects.
18256deplibs_check_method=$lt_deplibs_check_method
18257
18258# Command to use when deplibs_check_method == "file_magic".
18259file_magic_cmd=$lt_file_magic_cmd
18260
18261# The archiver.
18262AR=$lt_AR
18263AR_FLAGS=$lt_AR_FLAGS
18264
18265# A symbol stripping program.
18266STRIP=$lt_STRIP
18267
18268# Commands used to install an old-style archive.
18269RANLIB=$lt_RANLIB
18270old_postinstall_cmds=$lt_old_postinstall_cmds
18271old_postuninstall_cmds=$lt_old_postuninstall_cmds
18272
18273# A C compiler.
18274LTCC=$lt_CC
18275
18276# LTCC compiler flags.
18277LTCFLAGS=$lt_CFLAGS
18278
18279# Take the output of nm and produce a listing of raw symbols and C names.
18280global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18281
18282# Transform the output of nm in a proper C declaration.
18283global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18284
18285# Transform the output of nm in a C name address pair.
18286global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18287
18288# Transform the output of nm in a C name address pair when lib prefix is needed.
18289global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18290
18291# The name of the directory that contains temporary libtool files.
18292objdir=$objdir
18293
18294# Shell to use when invoking shell scripts.
18295SHELL=$lt_SHELL
18296
18297# An echo program that does not interpret backslashes.
18298ECHO=$lt_ECHO
18299
18300# Used to examine libraries when file_magic_cmd begins with "file".
18301MAGIC_CMD=$MAGIC_CMD
18302
18303# Must we lock files when doing compilation?
18304need_locks=$lt_need_locks
18305
18306# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18307DSYMUTIL=$lt_DSYMUTIL
18308
18309# Tool to change global to local symbols on Mac OS X.
18310NMEDIT=$lt_NMEDIT
18311
18312# Tool to manipulate fat objects and archives on Mac OS X.
18313LIPO=$lt_LIPO
18314
18315# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18316OTOOL=$lt_OTOOL
18317
18318# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18319OTOOL64=$lt_OTOOL64
18320
18321# Old archive suffix (normally "a").
18322libext=$libext
18323
18324# Shared library suffix (normally ".so").
18325shrext_cmds=$lt_shrext_cmds
18326
18327# The commands to extract the exported symbol list from a shared archive.
18328extract_expsyms_cmds=$lt_extract_expsyms_cmds
18329
18330# Variables whose values should be saved in libtool wrapper scripts and
18331# restored at link time.
18332variables_saved_for_relink=$lt_variables_saved_for_relink
18333
18334# Do we need the "lib" prefix for modules?
18335need_lib_prefix=$need_lib_prefix
18336
18337# Do we need a version for libraries?
18338need_version=$need_version
18339
18340# Library versioning type.
18341version_type=$version_type
18342
18343# Shared library runtime path variable.
18344runpath_var=$runpath_var
18345
18346# Shared library path variable.
18347shlibpath_var=$shlibpath_var
18348
18349# Is shlibpath searched before the hard-coded library search path?
18350shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18351
18352# Format of library name prefix.
18353libname_spec=$lt_libname_spec
18354
18355# List of archive names. First name is the real one, the rest are links.
18356# The last name is the one that the linker finds with -lNAME
18357library_names_spec=$lt_library_names_spec
18358
18359# The coded name of the library, if different from the real name.
18360soname_spec=$lt_soname_spec
18361
18362# Command to use after installation of a shared archive.
18363postinstall_cmds=$lt_postinstall_cmds
18364
18365# Command to use after uninstallation of a shared archive.
18366postuninstall_cmds=$lt_postuninstall_cmds
18367
18368# Commands used to finish a libtool library installation in a directory.
18369finish_cmds=$lt_finish_cmds
18370
18371# As "finish_cmds", except a single script fragment to be evaled but
18372# not shown.
18373finish_eval=$lt_finish_eval
18374
18375# Whether we should hardcode library paths into libraries.
18376hardcode_into_libs=$hardcode_into_libs
18377
18378# Compile-time system search path for libraries.
18379sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18380
18381# Run-time system search path for libraries.
18382sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18383
18384# Whether dlopen is supported.
18385dlopen_support=$enable_dlopen
18386
18387# Whether dlopen of programs is supported.
18388dlopen_self=$enable_dlopen_self
18389
18390# Whether dlopen of statically linked programs is supported.
18391dlopen_self_static=$enable_dlopen_self_static
18392
18393# Commands to strip libraries.
18394old_striplib=$lt_old_striplib
18395striplib=$lt_striplib
18396
18397
18398# The linker used to build libraries.
18399LD=$lt_LD
18400
18401# Commands used to build an old-style archive.
18402old_archive_cmds=$lt_old_archive_cmds
18403
18404# A language specific compiler.
18405CC=$lt_compiler
18406
18407# Is the compiler the GNU compiler?
18408with_gcc=$GCC
18409
18410# Compiler flag to turn off builtin functions.
18411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18412
18413# How to pass a linker flag through the compiler.
18414wl=$lt_lt_prog_compiler_wl
18415
18416# Additional compiler flags for building library objects.
18417pic_flag=$lt_lt_prog_compiler_pic
18418
18419# Compiler flag to prevent dynamic linking.
18420link_static_flag=$lt_lt_prog_compiler_static
18421
18422# Does compiler simultaneously support -c and -o options?
18423compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18424
18425# Whether or not to add -lc for building shared libraries.
18426build_libtool_need_lc=$archive_cmds_need_lc
18427
18428# Whether or not to disallow shared libs when runtime libs are static.
18429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18430
18431# Compiler flag to allow reflexive dlopens.
18432export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18433
18434# Compiler flag to generate shared objects directly from archives.
18435whole_archive_flag_spec=$lt_whole_archive_flag_spec
18436
18437# Whether the compiler copes with passing no objects directly.
18438compiler_needs_object=$lt_compiler_needs_object
18439
18440# Create an old-style archive from a shared archive.
18441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18442
18443# Create a temporary old-style archive to link instead of a shared archive.
18444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18445
18446# Commands used to build a shared archive.
18447archive_cmds=$lt_archive_cmds
18448archive_expsym_cmds=$lt_archive_expsym_cmds
18449
18450# Commands used to build a loadable module if different from building
18451# a shared archive.
18452module_cmds=$lt_module_cmds
18453module_expsym_cmds=$lt_module_expsym_cmds
18454
18455# Whether we are building with GNU ld or not.
18456with_gnu_ld=$lt_with_gnu_ld
18457
18458# Flag that allows shared libraries with undefined symbols to be built.
18459allow_undefined_flag=$lt_allow_undefined_flag
18460
18461# Flag that enforces no undefined symbols.
18462no_undefined_flag=$lt_no_undefined_flag
18463
18464# Flag to hardcode \$libdir into a binary during linking.
18465# This must work even if \$libdir does not exist
18466hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18467
18468# If ld is used when linking, flag to hardcode \$libdir into a binary
18469# during linking. This must work even if \$libdir does not exist.
18470hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18471
18472# Whether we need a single "-rpath" flag with a separated argument.
18473hardcode_libdir_separator=$lt_hardcode_libdir_separator
18474
18475# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18476# DIR into the resulting binary.
18477hardcode_direct=$hardcode_direct
18478
18479# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18480# DIR into the resulting binary and the resulting library dependency is
18481# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18482# library is relocated.
18483hardcode_direct_absolute=$hardcode_direct_absolute
18484
18485# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18486# into the resulting binary.
18487hardcode_minus_L=$hardcode_minus_L
18488
18489# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18490# into the resulting binary.
18491hardcode_shlibpath_var=$hardcode_shlibpath_var
18492
18493# Set to "yes" if building a shared library automatically hardcodes DIR
18494# into the library and all subsequent libraries and executables linked
18495# against it.
18496hardcode_automatic=$hardcode_automatic
18497
18498# Set to yes if linker adds runtime paths of dependent libraries
18499# to runtime path list.
18500inherit_rpath=$inherit_rpath
18501
18502# Whether libtool must link a program against all its dependency libraries.
18503link_all_deplibs=$link_all_deplibs
18504
18505# Fix the shell variable \$srcfile for the compiler.
18506fix_srcfile_path=$lt_fix_srcfile_path
18507
18508# Set to "yes" if exported symbols are required.
18509always_export_symbols=$always_export_symbols
18510
18511# The commands to list exported symbols.
18512export_symbols_cmds=$lt_export_symbols_cmds
18513
18514# Symbols that should not be listed in the preloaded symbols.
18515exclude_expsyms=$lt_exclude_expsyms
18516
18517# Symbols that must always be exported.
18518include_expsyms=$lt_include_expsyms
18519
18520# Commands necessary for linking programs (against libraries) with templates.
18521prelink_cmds=$lt_prelink_cmds
18522
18523# Specify filename containing input files.
18524file_list_spec=$lt_file_list_spec
18525
18526# How to hardcode a shared library path into an executable.
18527hardcode_action=$hardcode_action
18528
18529# The directories searched by this compiler when creating a shared library.
18530compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18531
18532# Dependencies to place before and after the objects being linked to
18533# create a shared library.
18534predep_objects=$lt_predep_objects
18535postdep_objects=$lt_postdep_objects
18536predeps=$lt_predeps
18537postdeps=$lt_postdeps
18538
18539# The library search path used internally by the compiler when linking
18540# a shared library.
18541compiler_lib_search_path=$lt_compiler_lib_search_path
18542
18543# ### END LIBTOOL CONFIG
18544
18545_LT_EOF
18546
18547 case $host_os in
18548 aix3*)
18549 cat <<\_LT_EOF >> "$cfgfile"
18550# AIX sometimes has problems with the GCC collect2 program. For some
18551# reason, if we set the COLLECT_NAMES environment variable, the problems
18552# vanish in a puff of smoke.
18553if test "X${COLLECT_NAMES+set}" != Xset; then
18554 COLLECT_NAMES=
18555 export COLLECT_NAMES
18556fi
18557_LT_EOF
18558 ;;
18559 esac
18560
18561
18562ltmain="$ac_aux_dir/ltmain.sh"
18563
18564
18565 # We use sed instead of cat because bash on DJGPP gets confused if
18566 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18567 # text mode, it properly converts lines to CR/LF. This bash problem
18568 # is reportedly fixed, but why not run on old versions too?
18569 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18570 || (rm -f "$cfgfile"; exit 1)
18571
18572 case $xsi_shell in
18573 yes)
18574 cat << \_LT_EOF >> "$cfgfile"
18575
18576# func_dirname file append nondir_replacement
18577# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18578# otherwise set result to NONDIR_REPLACEMENT.
18579func_dirname ()
18580{
18581 case ${1} in
18582 */*) func_dirname_result="${1%/*}${2}" ;;
18583 * ) func_dirname_result="${3}" ;;
18584 esac
18585}
18586
18587# func_basename file
18588func_basename ()
18589{
18590 func_basename_result="${1##*/}"
18591}
18592
18593# func_dirname_and_basename file append nondir_replacement
18594# perform func_basename and func_dirname in a single function
18595# call:
18596# dirname: Compute the dirname of FILE. If nonempty,
18597# add APPEND to the result, otherwise set result
18598# to NONDIR_REPLACEMENT.
18599# value returned in "$func_dirname_result"
18600# basename: Compute filename of FILE.
18601# value retuned in "$func_basename_result"
18602# Implementation must be kept synchronized with func_dirname
18603# and func_basename. For efficiency, we do not delegate to
18604# those functions but instead duplicate the functionality here.
18605func_dirname_and_basename ()
18606{
18607 case ${1} in
18608 */*) func_dirname_result="${1%/*}${2}" ;;
18609 * ) func_dirname_result="${3}" ;;
18610 esac
18611 func_basename_result="${1##*/}"
18612}
18613
18614# func_stripname prefix suffix name
18615# strip PREFIX and SUFFIX off of NAME.
18616# PREFIX and SUFFIX must not contain globbing or regex special
18617# characters, hashes, percent signs, but SUFFIX may contain a leading
18618# dot (in which case that matches only a dot).
18619func_stripname ()
18620{
18621 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18622 # positional parameters, so assign one to ordinary parameter first.
18623 func_stripname_result=${3}
18624 func_stripname_result=${func_stripname_result#"${1}"}
18625 func_stripname_result=${func_stripname_result%"${2}"}
18626}
18627
18628# func_opt_split
18629func_opt_split ()
18630{
18631 func_opt_split_opt=${1%%=*}
18632 func_opt_split_arg=${1#*=}
18633}
18634
18635# func_lo2o object
18636func_lo2o ()
18637{
18638 case ${1} in
18639 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18640 *) func_lo2o_result=${1} ;;
18641 esac
18642}
18643
18644# func_xform libobj-or-source
18645func_xform ()
18646{
18647 func_xform_result=${1%.*}.lo
18648}
18649
18650# func_arith arithmetic-term...
18651func_arith ()
18652{
18653 func_arith_result=$(( $* ))
18654}
18655
18656# func_len string
18657# STRING may not start with a hyphen.
18658func_len ()
18659{
18660 func_len_result=${#1}
18661}
18662
18663_LT_EOF
18664 ;;
18665 *) # Bourne compatible functions.
18666 cat << \_LT_EOF >> "$cfgfile"
18667
18668# func_dirname file append nondir_replacement
18669# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18670# otherwise set result to NONDIR_REPLACEMENT.
18671func_dirname ()
18672{
18673 # Extract subdirectory from the argument.
18674 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18675 if test "X$func_dirname_result" = "X${1}"; then
18676 func_dirname_result="${3}"
18677 else
18678 func_dirname_result="$func_dirname_result${2}"
18679 fi
18680}
18681
18682# func_basename file
18683func_basename ()
18684{
18685 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18686}
18687
18688
18689# func_stripname prefix suffix name
18690# strip PREFIX and SUFFIX off of NAME.
18691# PREFIX and SUFFIX must not contain globbing or regex special
18692# characters, hashes, percent signs, but SUFFIX may contain a leading
18693# dot (in which case that matches only a dot).
18694# func_strip_suffix prefix name
18695func_stripname ()
18696{
18697 case ${2} in
18698 .*) func_stripname_result=`$ECHO "X${3}" \
18699 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18700 *) func_stripname_result=`$ECHO "X${3}" \
18701 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18702 esac
18703}
18704
18705# sed scripts:
18706my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18707my_sed_long_arg='1s/^-[^=]*=//'
18708
18709# func_opt_split
18710func_opt_split ()
18711{
18712 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18713 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18714}
18715
18716# func_lo2o object
18717func_lo2o ()
18718{
18719 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18720}
18721
18722# func_xform libobj-or-source
18723func_xform ()
18724{
18725 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18726}
18727
18728# func_arith arithmetic-term...
18729func_arith ()
18730{
18731 func_arith_result=`expr "$@"`
18732}
18733
18734# func_len string
18735# STRING may not start with a hyphen.
18736func_len ()
18737{
18738 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18739}
18740
18741_LT_EOF
18742esac
18743
18744case $lt_shell_append in
18745 yes)
18746 cat << \_LT_EOF >> "$cfgfile"
18747
18748# func_append var value
18749# Append VALUE to the end of shell variable VAR.
18750func_append ()
18751{
18752 eval "$1+=\$2"
18753}
18754_LT_EOF
18755 ;;
18756 *)
18757 cat << \_LT_EOF >> "$cfgfile"
18758
18759# func_append var value
18760# Append VALUE to the end of shell variable VAR.
18761func_append ()
18762{
18763 eval "$1=\$$1\$2"
18764}
18765
18766_LT_EOF
18767 ;;
18768 esac
18769
18770
18771 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18772 || (rm -f "$cfgfile"; exit 1)
18773
18774 mv -f "$cfgfile" "$ofile" ||
18775 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18776 chmod +x "$ofile"
18777
18778
18779 cat <<_LT_EOF >> "$ofile"
18780
18781# ### BEGIN LIBTOOL TAG CONFIG: CXX
18782
18783# The linker used to build libraries.
18784LD=$lt_LD_CXX
18785
18786# Commands used to build an old-style archive.
18787old_archive_cmds=$lt_old_archive_cmds_CXX
18788
18789# A language specific compiler.
18790CC=$lt_compiler_CXX
18791
18792# Is the compiler the GNU compiler?
18793with_gcc=$GCC_CXX
18794
18795# Compiler flag to turn off builtin functions.
18796no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18797
18798# How to pass a linker flag through the compiler.
18799wl=$lt_lt_prog_compiler_wl_CXX
18800
18801# Additional compiler flags for building library objects.
18802pic_flag=$lt_lt_prog_compiler_pic_CXX
18803
18804# Compiler flag to prevent dynamic linking.
18805link_static_flag=$lt_lt_prog_compiler_static_CXX
18806
18807# Does compiler simultaneously support -c and -o options?
18808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18809
18810# Whether or not to add -lc for building shared libraries.
18811build_libtool_need_lc=$archive_cmds_need_lc_CXX
18812
18813# Whether or not to disallow shared libs when runtime libs are static.
18814allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18815
18816# Compiler flag to allow reflexive dlopens.
18817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18818
18819# Compiler flag to generate shared objects directly from archives.
18820whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18821
18822# Whether the compiler copes with passing no objects directly.
18823compiler_needs_object=$lt_compiler_needs_object_CXX
18824
18825# Create an old-style archive from a shared archive.
18826old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18827
18828# Create a temporary old-style archive to link instead of a shared archive.
18829old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18830
18831# Commands used to build a shared archive.
18832archive_cmds=$lt_archive_cmds_CXX
18833archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18834
18835# Commands used to build a loadable module if different from building
18836# a shared archive.
18837module_cmds=$lt_module_cmds_CXX
18838module_expsym_cmds=$lt_module_expsym_cmds_CXX
18839
18840# Whether we are building with GNU ld or not.
18841with_gnu_ld=$lt_with_gnu_ld_CXX
18842
18843# Flag that allows shared libraries with undefined symbols to be built.
18844allow_undefined_flag=$lt_allow_undefined_flag_CXX
18845
18846# Flag that enforces no undefined symbols.
18847no_undefined_flag=$lt_no_undefined_flag_CXX
18848
18849# Flag to hardcode \$libdir into a binary during linking.
18850# This must work even if \$libdir does not exist
18851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18852
18853# If ld is used when linking, flag to hardcode \$libdir into a binary
18854# during linking. This must work even if \$libdir does not exist.
18855hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18856
18857# Whether we need a single "-rpath" flag with a separated argument.
18858hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18859
18860# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18861# DIR into the resulting binary.
18862hardcode_direct=$hardcode_direct_CXX
18863
18864# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18865# DIR into the resulting binary and the resulting library dependency is
18866# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18867# library is relocated.
18868hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18869
18870# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18871# into the resulting binary.
18872hardcode_minus_L=$hardcode_minus_L_CXX
18873
18874# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18875# into the resulting binary.
18876hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18877
18878# Set to "yes" if building a shared library automatically hardcodes DIR
18879# into the library and all subsequent libraries and executables linked
18880# against it.
18881hardcode_automatic=$hardcode_automatic_CXX
18882
18883# Set to yes if linker adds runtime paths of dependent libraries
18884# to runtime path list.
18885inherit_rpath=$inherit_rpath_CXX
18886
18887# Whether libtool must link a program against all its dependency libraries.
18888link_all_deplibs=$link_all_deplibs_CXX
18889
18890# Fix the shell variable \$srcfile for the compiler.
18891fix_srcfile_path=$lt_fix_srcfile_path_CXX
18892
18893# Set to "yes" if exported symbols are required.
18894always_export_symbols=$always_export_symbols_CXX
18895
18896# The commands to list exported symbols.
18897export_symbols_cmds=$lt_export_symbols_cmds_CXX
18898
18899# Symbols that should not be listed in the preloaded symbols.
18900exclude_expsyms=$lt_exclude_expsyms_CXX
18901
18902# Symbols that must always be exported.
18903include_expsyms=$lt_include_expsyms_CXX
18904
18905# Commands necessary for linking programs (against libraries) with templates.
18906prelink_cmds=$lt_prelink_cmds_CXX
18907
18908# Specify filename containing input files.
18909file_list_spec=$lt_file_list_spec_CXX
18910
18911# How to hardcode a shared library path into an executable.
18912hardcode_action=$hardcode_action_CXX
18913
18914# The directories searched by this compiler when creating a shared library.
18915compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18916
18917# Dependencies to place before and after the objects being linked to
18918# create a shared library.
18919predep_objects=$lt_predep_objects_CXX
18920postdep_objects=$lt_postdep_objects_CXX
18921predeps=$lt_predeps_CXX
18922postdeps=$lt_postdeps_CXX
18923
18924# The library search path used internally by the compiler when linking
18925# a shared library.
18926compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18927
18928# ### END LIBTOOL TAG CONFIG: CXX
18929_LT_EOF
18930
18931 ;;
18932
18933 esac
18934done # for ac_tag
18935
18936
18937as_fn_exit 0
18938_ACEOF
18939ac_clean_files=$ac_clean_files_save
18940
18941test $ac_write_fail = 0 ||
18942 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18943
18944
18945# configure is writing to config.log, and then calls config.status.
18946# config.status does its own redirection, appending to config.log.
18947# Unfortunately, on DOS this fails, as config.log is still kept open
18948# by configure, so config.status won't be able to write to it; its
18949# output is simply discarded. So we exec the FD to /dev/null,
18950# effectively closing config.log, so it can be properly (re)opened and
18951# appended to by config.status. When coming back to configure, we
18952# need to make the FD available again.
18953if test "$no_create" != yes; then
18954 ac_cs_success=:
18955 ac_config_status_args=
18956 test "$silent" = yes &&
18957 ac_config_status_args="$ac_config_status_args --quiet"
18958 exec 5>/dev/null
18959 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18960 exec 5>>config.log
18961 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18962 # would make configure fail if this is the last instruction.
18963 $ac_cs_success || as_fn_exit 1
18964fi
18965if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18967$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18968fi
18969