blob: 293d1d8115ec7bbfcf39dc26520d7c67669c66d5 [file] [log] [blame]
Jerome Poichet7c997852014-05-20 10:50:05 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for polo 0.1.
4#
5# Report bugs to <opensource@google.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='polo'
703PACKAGE_TARNAME='polo'
704PACKAGE_VERSION='0.1'
705PACKAGE_STRING='polo 0.1'
706PACKAGE_BUGREPORT='opensource@google.com'
707PACKAGE_URL=''
708
709ac_unique_file="README"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724# include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729# include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750SO_VERSION
751LIBTOOL_DEPS
752CXXCPP
753OTOOL64
754OTOOL
755LIPO
756NMEDIT
757DSYMUTIL
758lt_ECHO
759RANLIB
760AR
761OBJDUMP
762LN_S
763NM
764ac_ct_DUMPBIN
765DUMPBIN
766LD
767FGREP
768EGREP
769GREP
770SED
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779LIBTOOL
780PROTOC
781CRYPTO_LIBS
782CRYPTO_CFLAGS
783SSL_LIBS
784SSL_CFLAGS
785GLOG_LIBS
786GLOG_CFLAGS
787PROTOBUF_LIBS
788PROTOBUF_CFLAGS
789PKG_CONFIG
790GCC_FALSE
791GCC_TRUE
792am__fastdepCXX_FALSE
793am__fastdepCXX_TRUE
794CXXDEPMODE
795ac_ct_CXX
796CXXFLAGS
797CXX
798CPP
799am__fastdepCC_FALSE
800am__fastdepCC_TRUE
801CCDEPMODE
802AMDEPBACKSLASH
803AMDEP_FALSE
804AMDEP_TRUE
805am__quote
806am__include
807DEPDIR
808OBJEXT
809EXEEXT
810ac_ct_CC
811CPPFLAGS
812LDFLAGS
813CFLAGS
814CC
815am__untar
816am__tar
817AMTAR
818am__leading_dot
819SET_MAKE
820AWK
821mkdir_p
822MKDIR_P
823INSTALL_STRIP_PROGRAM
824STRIP
825install_sh
826MAKEINFO
827AUTOHEADER
828AUTOMAKE
829AUTOCONF
830ACLOCAL
831VERSION
832PACKAGE
833CYGPATH_W
834am__isrc
835INSTALL_DATA
836INSTALL_SCRIPT
837INSTALL_PROGRAM
838GMOCK_DIR
839GTEST_DIR
840target_alias
841host_alias
842build_alias
843LIBS
844ECHO_T
845ECHO_N
846ECHO_C
847DEFS
848mandir
849localedir
850libdir
851psdir
852pdfdir
853dvidir
854htmldir
855infodir
856docdir
857oldincludedir
858includedir
859localstatedir
860sharedstatedir
861sysconfdir
862datadir
863datarootdir
864libexecdir
865sbindir
866bindir
867program_transform_name
868prefix
869exec_prefix
870PACKAGE_URL
871PACKAGE_BUGREPORT
872PACKAGE_STRING
873PACKAGE_VERSION
874PACKAGE_TARNAME
875PACKAGE_NAME
876PATH_SEPARATOR
877SHELL'
878ac_subst_files=''
879ac_user_opts='
880enable_option_checking
881with_gtest
882with_gmock
883enable_dependency_tracking
884enable_shared
885enable_static
886with_pic
887enable_fast_install
888with_gnu_ld
889enable_libtool_lock
890'
891 ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
897LIBS
898CPPFLAGS
899CPP
900CXX
901CXXFLAGS
902CCC
903PKG_CONFIG
904PROTOBUF_CFLAGS
905PROTOBUF_LIBS
906GLOG_CFLAGS
907GLOG_LIBS
908SSL_CFLAGS
909SSL_LIBS
910CRYPTO_CFLAGS
911CRYPTO_LIBS
912CXXCPP'
913
914
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918ac_unrecognized_opts=
919ac_unrecognized_sep=
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_libraries=NONE
936
937# Installation directory options.
938# These are left unexpanded so users can "make install exec_prefix=/foo"
939# and all the variables that are supposed to be based on exec_prefix
940# by default will actually change.
941# Use braces instead of parens because sh, perl, etc. also accept them.
942# (The list follows the same order as the GNU Coding Standards.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
962
963ac_prev=
964ac_dashdash=
965for ac_option
966do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *) ac_optarg=yes ;;
977 esac
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 bindir=$ac_optarg ;;
989
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1004
1005 -datadir | --datadir | --datadi | --datad)
1006 ac_prev=datadir ;;
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1009
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
1017 -disable-* | --disable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=\$ac_optarg ;;
1058
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
1066 exec_prefix=$ac_optarg ;;
1067
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1071
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
1078
1079 -host | --host | --hos | --ho)
1080 ac_prev=host_alias ;;
1081 -host=* | --host=* | --hos=* | --ho=*)
1082 host_alias=$ac_optarg ;;
1083
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1089
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
1095 includedir=$ac_optarg ;;
1096
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100 infodir=$ac_optarg ;;
1101
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1105 libdir=$ac_optarg ;;
1106
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
1112 libexecdir=$ac_optarg ;;
1113
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1118
1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
1120 | --localstate | --localstat | --localsta | --localst | --locals)
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124 localstatedir=$ac_optarg ;;
1125
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129 mandir=$ac_optarg ;;
1130
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1134
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136 | --no-cr | --no-c | -n)
1137 no_create=yes ;;
1138
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1142
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150 oldincludedir=$ac_optarg ;;
1151
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155 prefix=$ac_optarg ;;
1156
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162 program_prefix=$ac_optarg ;;
1163
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169 program_suffix=$ac_optarg ;;
1170
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
1186 program_transform_name=$ac_optarg ;;
1187
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1192
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1197
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256"with_$ac_useropt"
1257"*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error "unrecognized option: \`$ac_option'
1298Try \`$0 --help' for more information."
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317 ;;
1318
1319 esac
1320done
1321
1322if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error "missing argument to $ac_option"
1325fi
1326
1327if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333fi
1334
1335# Check all directory arguments for consistency.
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1340do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1354done
1355
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
1362
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368 If a cross compiler is detected then cross compile mode will be used." >&2
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1371 fi
1372fi
1373
1374ac_tool_prefix=
1375test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377test "$silent" = yes && exec 6>/dev/null
1378
1379
1380ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381ac_ls_di=`ls -di .` &&
1382ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error "working directory cannot be determined"
1384test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error "pwd does not report name of working directory"
1386
1387
1388# Find the source files, if location was not specified.
1389if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397$as_echo X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1418 fi
1419else
1420 ac_srcdir_defaulted=no
1421fi
1422if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1425fi
1426ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1429 pwd)`
1430# When building in place, set srcdir=.
1431if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1433fi
1434# Remove unnecessary trailing slashes from srcdir.
1435# Double slashes in file names in object file debugging info
1436# mess up M-x gdb in Emacs.
1437case $srcdir in
1438*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439esac
1440for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445done
1446
1447#
1448# Report the --help message.
1449#
1450if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454\`configure' configures polo 0.1 to adapt to many kinds of systems.
1455
1456Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459VAR=VALUE. See below for descriptions of some of the useful variables.
1460
1461Defaults for the options are specified in brackets.
1462
1463Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
1474Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1479
1480By default, \`make install' will install all the files in
1481\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483for instance \`--prefix=\$HOME'.
1484
1485For better control, use the options below.
1486
1487Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/polo]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507_ACEOF
1508
1509 cat <<\_ACEOF
1510
1511Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515
1516System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519_ACEOF
1520fi
1521
1522if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of polo 0.1:";;
1525 esac
1526 cat <<\_ACEOF
1527
1528Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --disable-dependency-tracking speeds up one-time build
1533 --enable-dependency-tracking do not reject slow dependency extractors
1534 --enable-shared[=PKGS] build shared libraries [default=yes]
1535 --enable-static[=PKGS] build static libraries [default=yes]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
1538 --disable-libtool-lock avoid locking (might break parallel builds)
1539
1540Optional Packages:
1541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1543 --with-gtest location of Google Test source
1544 --with-gmock location of Google Mock source
1545 --with-pic try to use only PIC/non-PIC objects [default=use
1546 both]
1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548
1549Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 PKG_CONFIG path to pkg-config utility
1561 PROTOBUF_CFLAGS
1562 C compiler flags for PROTOBUF, overriding pkg-config
1563 PROTOBUF_LIBS
1564 linker flags for PROTOBUF, overriding pkg-config
1565 GLOG_CFLAGS C compiler flags for GLOG, overriding pkg-config
1566 GLOG_LIBS linker flags for GLOG, overriding pkg-config
1567 SSL_CFLAGS C compiler flags for SSL, overriding pkg-config
1568 SSL_LIBS linker flags for SSL, overriding pkg-config
1569 CRYPTO_CFLAGS
1570 C compiler flags for CRYPTO, overriding pkg-config
1571 CRYPTO_LIBS linker flags for CRYPTO, overriding pkg-config
1572 CXXCPP C++ preprocessor
1573
1574Use these variables to override the choices made by `configure' or to help
1575it to find libraries and programs with nonstandard names/locations.
1576
1577Report bugs to <opensource@google.com>.
1578_ACEOF
1579ac_status=$?
1580fi
1581
1582if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 continue
1588 ac_builddir=.
1589
1590case "$ac_dir" in
1591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592*)
1593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600esac
1601ac_abs_top_builddir=$ac_pwd
1602ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603# for backward compatibility:
1604ac_top_builddir=$ac_top_build_prefix
1605
1606case $srcdir in
1607 .) # We are building in place.
1608 ac_srcdir=.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619esac
1620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1630 else
1631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 fi || ac_status=$?
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1634 done
1635fi
1636
1637test -n "$ac_init_help" && exit $ac_status
1638if $ac_init_version; then
1639 cat <<\_ACEOF
1640polo configure 0.1
1641generated by GNU Autoconf 2.65
1642
1643Copyright (C) 2009 Free Software Foundation, Inc.
1644This configure script is free software; the Free Software Foundation
1645gives unlimited permission to copy, distribute and modify it.
1646_ACEOF
1647 exit
1648fi
1649
1650## ------------------------ ##
1651## Autoconf initialization. ##
1652## ------------------------ ##
1653
1654# ac_fn_c_try_compile LINENO
1655# --------------------------
1656# Try to compile conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_compile ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext
1661 if { { ac_try="$ac_compile"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_compile") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest.$ac_objext; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686fi
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_compile
1691
1692# ac_fn_c_try_cpp LINENO
1693# ----------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_cpp ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_cpp
1728
1729# ac_fn_cxx_try_compile LINENO
1730# ----------------------------
1731# Try to compile conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_cxx_try_compile ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_cxx_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1755 ac_retval=0
1756else
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761fi
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 as_fn_set_status $ac_retval
1764
1765} # ac_fn_cxx_try_compile
1766
1767# ac_fn_c_try_link LINENO
1768# -----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_link ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797else
1798 $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802fi
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_link
1812
1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists and can be compiled using the include files in
1816# INCLUDES, setting the cache variable VAR accordingly.
1817ac_fn_c_check_header_compile ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1824else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831 eval "$3=yes"
1832else
1833 eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841
1842} # ac_fn_c_check_header_compile
1843
1844# ac_fn_c_try_run LINENO
1845# ----------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847# that executables *can* be run.
1848ac_fn_c_try_run ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1872 ac_retval=0
1873else
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=$ac_status
1879fi
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 as_fn_set_status $ac_retval
1883
1884} # ac_fn_c_try_run
1885
1886# ac_fn_c_check_func LINENO FUNC VAR
1887# ----------------------------------
1888# Tests whether FUNC exists, setting the cache variable VAR accordingly
1889ac_fn_c_check_func ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 $as_echo_n "(cached) " >&6
1896else
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h. */
1899/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1901#define $2 innocuous_$2
1902
1903/* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $2 (); below.
1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906 <limits.h> exists even on freestanding compilers. */
1907
1908#ifdef __STDC__
1909# include <limits.h>
1910#else
1911# include <assert.h>
1912#endif
1913
1914#undef $2
1915
1916/* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1919#ifdef __cplusplus
1920extern "C"
1921#endif
1922char $2 ();
1923/* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926#if defined __stub_$2 || defined __stub___$2
1927choke me
1928#endif
1929
1930int
1931main ()
1932{
1933return $2 ();
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_link "$LINENO"; then :
1939 eval "$3=yes"
1940else
1941 eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext \
1944 conftest$ac_exeext conftest.$ac_ext
1945fi
1946eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
1951} # ac_fn_c_check_func
1952
1953# ac_fn_cxx_try_cpp LINENO
1954# ------------------------
1955# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1956ac_fn_cxx_try_cpp ()
1957{
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_cpp conftest.$ac_ext"
1960case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1972 fi
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } >/dev/null && {
1975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 }; then :
1978 ac_retval=0
1979else
1980 $as_echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=1
1984fi
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 as_fn_set_status $ac_retval
1987
1988} # ac_fn_cxx_try_cpp
1989
1990# ac_fn_cxx_try_link LINENO
1991# -------------------------
1992# Try to link conftest.$ac_ext, and return whether this succeeded.
1993ac_fn_cxx_try_link ()
1994{
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 rm -f conftest.$ac_objext conftest$ac_exeext
1997 if { { ac_try="$ac_link"
1998case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001esac
2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003$as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>conftest.err
2005 ac_status=$?
2006 if test -s conftest.err; then
2007 grep -v '^ *+' conftest.err >conftest.er1
2008 cat conftest.er1 >&5
2009 mv -f conftest.er1 conftest.err
2010 fi
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && {
2013 test -z "$ac_cxx_werror_flag" ||
2014 test ! -s conftest.err
2015 } && test -s conftest$ac_exeext && {
2016 test "$cross_compiling" = yes ||
2017 $as_test_x conftest$ac_exeext
2018 }; then :
2019 ac_retval=0
2020else
2021 $as_echo "$as_me: failed program was:" >&5
2022sed 's/^/| /' conftest.$ac_ext >&5
2023
2024 ac_retval=1
2025fi
2026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2028 # interfere with the next link command; also delete a directory that is
2029 # left behind by Apple's compiler. We do this before executing the actions.
2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032 as_fn_set_status $ac_retval
2033
2034} # ac_fn_cxx_try_link
2035
2036# ac_fn_cxx_try_run LINENO
2037# ------------------------
2038# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039# that executables *can* be run.
2040ac_fn_cxx_try_run ()
2041{
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2044case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047esac
2048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049$as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057esac
2058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059$as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2061 ac_status=$?
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2064 ac_retval=0
2065else
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_retval=$ac_status
2071fi
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 as_fn_set_status $ac_retval
2075
2076} # ac_fn_cxx_try_run
2077cat >config.log <<_ACEOF
2078This file contains any messages produced by compilers while
2079running configure, to aid debugging if configure makes a mistake.
2080
2081It was created by polo $as_me 0.1, which was
2082generated by GNU Autoconf 2.65. Invocation command line was
2083
2084 $ $0 $@
2085
2086_ACEOF
2087exec 5>>config.log
2088{
2089cat <<_ASUNAME
2090## --------- ##
2091## Platform. ##
2092## --------- ##
2093
2094hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2095uname -m = `(uname -m) 2>/dev/null || echo unknown`
2096uname -r = `(uname -r) 2>/dev/null || echo unknown`
2097uname -s = `(uname -s) 2>/dev/null || echo unknown`
2098uname -v = `(uname -v) 2>/dev/null || echo unknown`
2099
2100/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2101/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2102
2103/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2104/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2105/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2106/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2107/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2108/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2109/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2110
2111_ASUNAME
2112
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 $as_echo "PATH: $as_dir"
2119 done
2120IFS=$as_save_IFS
2121
2122} >&5
2123
2124cat >&5 <<_ACEOF
2125
2126
2127## ----------- ##
2128## Core tests. ##
2129## ----------- ##
2130
2131_ACEOF
2132
2133
2134# Keep a trace of the command line.
2135# Strip out --no-create and --no-recursion so they do not pile up.
2136# Strip out --silent because we don't want to record it for future runs.
2137# Also quote any args containing shell meta-characters.
2138# Make two passes to allow for proper duplicate-argument suppression.
2139ac_configure_args=
2140ac_configure_args0=
2141ac_configure_args1=
2142ac_must_keep_next=false
2143for ac_pass in 1 2
2144do
2145 for ac_arg
2146 do
2147 case $ac_arg in
2148 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2150 | -silent | --silent | --silen | --sile | --sil)
2151 continue ;;
2152 *\'*)
2153 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 esac
2155 case $ac_pass in
2156 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2157 2)
2158 as_fn_append ac_configure_args1 " '$ac_arg'"
2159 if test $ac_must_keep_next = true; then
2160 ac_must_keep_next=false # Got value, back to normal.
2161 else
2162 case $ac_arg in
2163 *=* | --config-cache | -C | -disable-* | --disable-* \
2164 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2165 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2166 | -with-* | --with-* | -without-* | --without-* | --x)
2167 case "$ac_configure_args0 " in
2168 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169 esac
2170 ;;
2171 -* ) ac_must_keep_next=true ;;
2172 esac
2173 fi
2174 as_fn_append ac_configure_args " '$ac_arg'"
2175 ;;
2176 esac
2177 done
2178done
2179{ ac_configure_args0=; unset ac_configure_args0;}
2180{ ac_configure_args1=; unset ac_configure_args1;}
2181
2182# When interrupted or exit'd, cleanup temporary files, and complete
2183# config.log. We remove comments because anyway the quotes in there
2184# would cause problems or look ugly.
2185# WARNING: Use '\'' to represent an apostrophe within the trap.
2186# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2187trap 'exit_status=$?
2188 # Save into config.log some information that might help in debugging.
2189 {
2190 echo
2191
2192 cat <<\_ASBOX
2193## ---------------- ##
2194## Cache variables. ##
2195## ---------------- ##
2196_ASBOX
2197 echo
2198 # The following way of writing the cache mishandles newlines in values,
2199(
2200 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201 eval ac_val=\$$ac_var
2202 case $ac_val in #(
2203 *${as_nl}*)
2204 case $ac_var in #(
2205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2207 esac
2208 case $ac_var in #(
2209 _ | IFS | as_nl) ;; #(
2210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2211 *) { eval $ac_var=; unset $ac_var;} ;;
2212 esac ;;
2213 esac
2214 done
2215 (set) 2>&1 |
2216 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217 *${as_nl}ac_space=\ *)
2218 sed -n \
2219 "s/'\''/'\''\\\\'\'''\''/g;
2220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221 ;; #(
2222 *)
2223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224 ;;
2225 esac |
2226 sort
2227)
2228 echo
2229
2230 cat <<\_ASBOX
2231## ----------------- ##
2232## Output variables. ##
2233## ----------------- ##
2234_ASBOX
2235 echo
2236 for ac_var in $ac_subst_vars
2237 do
2238 eval ac_val=\$$ac_var
2239 case $ac_val in
2240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 esac
2242 $as_echo "$ac_var='\''$ac_val'\''"
2243 done | sort
2244 echo
2245
2246 if test -n "$ac_subst_files"; then
2247 cat <<\_ASBOX
2248## ------------------- ##
2249## File substitutions. ##
2250## ------------------- ##
2251_ASBOX
2252 echo
2253 for ac_var in $ac_subst_files
2254 do
2255 eval ac_val=\$$ac_var
2256 case $ac_val in
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258 esac
2259 $as_echo "$ac_var='\''$ac_val'\''"
2260 done | sort
2261 echo
2262 fi
2263
2264 if test -s confdefs.h; then
2265 cat <<\_ASBOX
2266## ----------- ##
2267## confdefs.h. ##
2268## ----------- ##
2269_ASBOX
2270 echo
2271 cat confdefs.h
2272 echo
2273 fi
2274 test "$ac_signal" != 0 &&
2275 $as_echo "$as_me: caught signal $ac_signal"
2276 $as_echo "$as_me: exit $exit_status"
2277 } >&5
2278 rm -f core *.core core.conftest.* &&
2279 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280 exit $exit_status
2281' 0
2282for ac_signal in 1 2 13 15; do
2283 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2284done
2285ac_signal=0
2286
2287# confdefs.h avoids OS command line length limits that DEFS can exceed.
2288rm -f -r conftest* confdefs.h
2289
2290$as_echo "/* confdefs.h */" > confdefs.h
2291
2292# Predefined preprocessor variables.
2293
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_NAME "$PACKAGE_NAME"
2296_ACEOF
2297
2298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300_ACEOF
2301
2302cat >>confdefs.h <<_ACEOF
2303#define PACKAGE_VERSION "$PACKAGE_VERSION"
2304_ACEOF
2305
2306cat >>confdefs.h <<_ACEOF
2307#define PACKAGE_STRING "$PACKAGE_STRING"
2308_ACEOF
2309
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312_ACEOF
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_URL "$PACKAGE_URL"
2316_ACEOF
2317
2318
2319# Let the site file select an alternate cache file if it wants to.
2320# Prefer an explicitly selected file to automatically selected ones.
2321ac_site_file1=NONE
2322ac_site_file2=NONE
2323if test -n "$CONFIG_SITE"; then
2324 ac_site_file1=$CONFIG_SITE
2325elif test "x$prefix" != xNONE; then
2326 ac_site_file1=$prefix/share/config.site
2327 ac_site_file2=$prefix/etc/config.site
2328else
2329 ac_site_file1=$ac_default_prefix/share/config.site
2330 ac_site_file2=$ac_default_prefix/etc/config.site
2331fi
2332for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2333do
2334 test "x$ac_site_file" = xNONE && continue
2335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338 sed 's/^/| /' "$ac_site_file" >&5
2339 . "$ac_site_file"
2340 fi
2341done
2342
2343if test -r "$cache_file"; then
2344 # Some versions of bash will fail to source /dev/null (special files
2345 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2348$as_echo "$as_me: loading cache $cache_file" >&6;}
2349 case $cache_file in
2350 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2351 *) . "./$cache_file";;
2352 esac
2353 fi
2354else
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2356$as_echo "$as_me: creating cache $cache_file" >&6;}
2357 >$cache_file
2358fi
2359
2360# Check that the precious variables saved in the cache have kept the same
2361# value.
2362ac_cache_corrupted=false
2363for ac_var in $ac_precious_vars; do
2364 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2365 eval ac_new_set=\$ac_env_${ac_var}_set
2366 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2367 eval ac_new_val=\$ac_env_${ac_var}_value
2368 case $ac_old_set,$ac_new_set in
2369 set,)
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2371$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2372 ac_cache_corrupted=: ;;
2373 ,set)
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2375$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2376 ac_cache_corrupted=: ;;
2377 ,);;
2378 *)
2379 if test "x$ac_old_val" != "x$ac_new_val"; then
2380 # differences in whitespace do not lead to failure.
2381 ac_old_val_w=`echo x $ac_old_val`
2382 ac_new_val_w=`echo x $ac_new_val`
2383 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2385$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2386 ac_cache_corrupted=:
2387 else
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2389$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2390 eval $ac_var=\$ac_old_val
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2393$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2395$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2396 fi;;
2397 esac
2398 # Pass precious variables to config.status.
2399 if test "$ac_new_set" = set; then
2400 case $ac_new_val in
2401 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2402 *) ac_arg=$ac_var=$ac_new_val ;;
2403 esac
2404 case " $ac_configure_args " in
2405 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2406 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2407 esac
2408 fi
2409done
2410if $ac_cache_corrupted; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2414$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2415 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2416fi
2417## -------------------- ##
2418## Main body of script. ##
2419## -------------------- ##
2420
2421ac_ext=c
2422ac_cpp='$CPP $CPPFLAGS'
2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426
2427
2428
2429SO_VERSION=0:0:0
2430
2431
2432# Check whether --with-gtest was given.
2433if test "${with_gtest+set}" = set; then :
2434 withval=$with_gtest; GTEST_DIR=$withval
2435fi
2436
2437
2438
2439
2440# Check whether --with-gmock was given.
2441if test "${with_gmock+set}" = set; then :
2442 withval=$with_gmock; GMOCK_DIR=$withval
2443fi
2444
2445
2446
2447# The argument here is just something that should be in the current directory
2448# (for sanity checking)
2449
2450
2451am__api_version='1.11'
2452
2453ac_aux_dir=
2454for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2455 for ac_t in install-sh install.sh shtool; do
2456 if test -f "$ac_dir/$ac_t"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/$ac_t -c"
2459 break 2
2460 fi
2461 done
2462done
2463if test -z "$ac_aux_dir"; then
2464 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2465fi
2466
2467# These three variables are undocumented and unsupported,
2468# and are intended to be withdrawn in a future Autoconf release.
2469# They can cause serious problems if a builder's source tree is in a directory
2470# whose full name contains unusual characters.
2471ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2472ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2473ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2474
2475
2476# Find a good install program. We prefer a C program (faster),
2477# so one script is as good as another. But avoid the broken or
2478# incompatible versions:
2479# SysV /etc/install, /usr/sbin/install
2480# SunOS /usr/etc/install
2481# IRIX /sbin/install
2482# AIX /bin/install
2483# AmigaOS /C/install, which installs bootblocks on floppy discs
2484# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2485# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2486# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2487# OS/2's system install, which has a completely different semantic
2488# ./install, which can be erroneously created by make from ./install.sh.
2489# Reject install programs that cannot install multiple files.
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2491$as_echo_n "checking for a BSD-compatible install... " >&6; }
2492if test -z "$INSTALL"; then
2493if test "${ac_cv_path_install+set}" = set; then :
2494 $as_echo_n "(cached) " >&6
2495else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 # Account for people who put trailing slashes in PATH elements.
2502case $as_dir/ in #((
2503 ./ | .// | /[cC]/* | \
2504 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2505 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2506 /usr/ucb/* ) ;;
2507 *)
2508 # OSF1 and SCO ODT 3.0 have their own names for install.
2509 # Don't use installbsd from OSF since it installs stuff as root
2510 # by default.
2511 for ac_prog in ginstall scoinst install; do
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2514 if test $ac_prog = install &&
2515 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # AIX install. It has an incompatible calling convention.
2517 :
2518 elif test $ac_prog = install &&
2519 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # program-specific install script used by HP pwplus--don't use.
2521 :
2522 else
2523 rm -rf conftest.one conftest.two conftest.dir
2524 echo one > conftest.one
2525 echo two > conftest.two
2526 mkdir conftest.dir
2527 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2528 test -s conftest.one && test -s conftest.two &&
2529 test -s conftest.dir/conftest.one &&
2530 test -s conftest.dir/conftest.two
2531 then
2532 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2533 break 3
2534 fi
2535 fi
2536 fi
2537 done
2538 done
2539 ;;
2540esac
2541
2542 done
2543IFS=$as_save_IFS
2544
2545rm -rf conftest.one conftest.two conftest.dir
2546
2547fi
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2550 else
2551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
2555 INSTALL=$ac_install_sh
2556 fi
2557fi
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2559$as_echo "$INSTALL" >&6; }
2560
2561# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562# It thinks the first close brace ends the variable substitution.
2563test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564
2565test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566
2567test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2570$as_echo_n "checking whether build environment is sane... " >&6; }
2571# Just in case
2572sleep 1
2573echo timestamp > conftest.file
2574# Reject unsafe characters in $srcdir or the absolute working directory
2575# name. Accept space and tab only in the latter.
2576am_lf='
2577'
2578case `pwd` in
2579 *[\\\"\#\$\&\'\`$am_lf]*)
2580 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2581esac
2582case $srcdir in
2583 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2584 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2585esac
2586
2587# Do `set' in a subshell so we don't clobber the current shell's
2588# arguments. Must try -L first in case configure is actually a
2589# symlink; some systems play weird games with the mod time of symlinks
2590# (eg FreeBSD returns the mod time of the symlink's containing
2591# directory).
2592if (
2593 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2594 if test "$*" = "X"; then
2595 # -L didn't work.
2596 set X `ls -t "$srcdir/configure" conftest.file`
2597 fi
2598 rm -f conftest.file
2599 if test "$*" != "X $srcdir/configure conftest.file" \
2600 && test "$*" != "X conftest.file $srcdir/configure"; then
2601
2602 # If neither matched, then we have a broken ls. This can happen
2603 # if, for instance, CONFIG_SHELL is bash and it inherits a
2604 # broken ls alias from the environment. This has actually
2605 # happened. Such a system could not be considered "sane".
2606 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2607alias in your environment" "$LINENO" 5
2608 fi
2609
2610 test "$2" = conftest.file
2611 )
2612then
2613 # Ok.
2614 :
2615else
2616 as_fn_error "newly created file is older than distributed files!
2617Check your system clock" "$LINENO" 5
2618fi
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620$as_echo "yes" >&6; }
2621test "$program_prefix" != NONE &&
2622 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2623# Use a double $ so make ignores it.
2624test "$program_suffix" != NONE &&
2625 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2626# Double any \ or $.
2627# By default was `s,x,x', remove it if useless.
2628ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2629program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2630
2631# expand $ac_aux_dir to an absolute path
2632am_aux_dir=`cd $ac_aux_dir && pwd`
2633
2634if test x"${MISSING+set}" != xset; then
2635 case $am_aux_dir in
2636 *\ * | *\ *)
2637 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2638 *)
2639 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2640 esac
2641fi
2642# Use eval to expand $SHELL
2643if eval "$MISSING --run true"; then
2644 am_missing_run="$MISSING --run "
2645else
2646 am_missing_run=
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2648$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2649fi
2650
2651if test x"${install_sh}" != xset; then
2652 case $am_aux_dir in
2653 *\ * | *\ *)
2654 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2655 *)
2656 install_sh="\${SHELL} $am_aux_dir/install-sh"
2657 esac
2658fi
2659
2660# Installed binaries are usually stripped using `strip' when the user
2661# run `make install-strip'. However `strip' might not be the right
2662# tool to use in cross-compilation environments, therefore Automake
2663# will honor the `STRIP' environment variable to overrule this program.
2664if test "$cross_compiling" != no; then
2665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2667set dummy ${ac_tool_prefix}strip; ac_word=$2
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
2670if test "${ac_cv_prog_STRIP+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2672else
2673 if test -n "$STRIP"; then
2674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687done
2688 done
2689IFS=$as_save_IFS
2690
2691fi
2692fi
2693STRIP=$ac_cv_prog_STRIP
2694if test -n "$STRIP"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2696$as_echo "$STRIP" >&6; }
2697else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702
2703fi
2704if test -z "$ac_cv_prog_STRIP"; then
2705 ac_ct_STRIP=$STRIP
2706 # Extract the first word of "strip", so it can be a program name with args.
2707set dummy strip; ac_word=$2
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
2710if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712else
2713 if test -n "$ac_ct_STRIP"; then
2714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_ac_ct_STRIP="strip"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727done
2728 done
2729IFS=$as_save_IFS
2730
2731fi
2732fi
2733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2734if test -n "$ac_ct_STRIP"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2736$as_echo "$ac_ct_STRIP" >&6; }
2737else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740fi
2741
2742 if test "x$ac_ct_STRIP" = x; then
2743 STRIP=":"
2744 else
2745 case $cross_compiling:$ac_tool_warned in
2746yes:)
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2749ac_tool_warned=yes ;;
2750esac
2751 STRIP=$ac_ct_STRIP
2752 fi
2753else
2754 STRIP="$ac_cv_prog_STRIP"
2755fi
2756
2757fi
2758INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2759
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2761$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2762if test -z "$MKDIR_P"; then
2763 if test "${ac_cv_path_mkdir+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_prog in mkdir gmkdir; do
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2774 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2775 'mkdir (GNU coreutils) '* | \
2776 'mkdir (coreutils) '* | \
2777 'mkdir (fileutils) '4.1*)
2778 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2779 break 3;;
2780 esac
2781 done
2782 done
2783 done
2784IFS=$as_save_IFS
2785
2786fi
2787
2788 test -d ./--version && rmdir ./--version
2789 if test "${ac_cv_path_mkdir+set}" = set; then
2790 MKDIR_P="$ac_cv_path_mkdir -p"
2791 else
2792 # As a last resort, use the slow shell script. Don't cache a
2793 # value for MKDIR_P within a source directory, because that will
2794 # break other packages using the cache if that directory is
2795 # removed, or if the value is a relative name.
2796 MKDIR_P="$ac_install_sh -d"
2797 fi
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2800$as_echo "$MKDIR_P" >&6; }
2801
2802mkdir_p="$MKDIR_P"
2803case $mkdir_p in
2804 [\\/$]* | ?:[\\/]*) ;;
2805 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2806esac
2807
2808for ac_prog in gawk mawk nawk awk
2809do
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811set dummy $ac_prog; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if test "${ac_cv_prog_AWK+set}" = set; then :
2815 $as_echo_n "(cached) " >&6
2816else
2817 if test -n "$AWK"; then
2818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_AWK="$ac_prog"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831done
2832 done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837AWK=$ac_cv_prog_AWK
2838if test -n "$AWK"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2840$as_echo "$AWK" >&6; }
2841else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847 test -n "$AWK" && break
2848done
2849
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2851$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2852set x ${MAKE-make}
2853ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2854if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2855 $as_echo_n "(cached) " >&6
2856else
2857 cat >conftest.make <<\_ACEOF
2858SHELL = /bin/sh
2859all:
2860 @echo '@@@%%%=$(MAKE)=@@@%%%'
2861_ACEOF
2862# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2863case `${MAKE-make} -f conftest.make 2>/dev/null` in
2864 *@@@%%%=?*=@@@%%%*)
2865 eval ac_cv_prog_make_${ac_make}_set=yes;;
2866 *)
2867 eval ac_cv_prog_make_${ac_make}_set=no;;
2868esac
2869rm -f conftest.make
2870fi
2871if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873$as_echo "yes" >&6; }
2874 SET_MAKE=
2875else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877$as_echo "no" >&6; }
2878 SET_MAKE="MAKE=${MAKE-make}"
2879fi
2880
2881rm -rf .tst 2>/dev/null
2882mkdir .tst 2>/dev/null
2883if test -d .tst; then
2884 am__leading_dot=.
2885else
2886 am__leading_dot=_
2887fi
2888rmdir .tst 2>/dev/null
2889
2890if test "`cd $srcdir && pwd`" != "`pwd`"; then
2891 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2892 # is not polluted with repeated "-I."
2893 am__isrc=' -I$(srcdir)'
2894 # test to see if srcdir already configured
2895 if test -f $srcdir/config.status; then
2896 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2897 fi
2898fi
2899
2900# test whether we have cygpath
2901if test -z "$CYGPATH_W"; then
2902 if (cygpath --version) >/dev/null 2>/dev/null; then
2903 CYGPATH_W='cygpath -w'
2904 else
2905 CYGPATH_W=echo
2906 fi
2907fi
2908
2909
2910# Define the identity of the package.
2911 PACKAGE='polo'
2912 VERSION='0.1'
2913
2914
2915cat >>confdefs.h <<_ACEOF
2916#define PACKAGE "$PACKAGE"
2917_ACEOF
2918
2919
2920cat >>confdefs.h <<_ACEOF
2921#define VERSION "$VERSION"
2922_ACEOF
2923
2924# Some tools Automake needs.
2925
2926ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2927
2928
2929AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2930
2931
2932AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2933
2934
2935AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2936
2937
2938MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2939
2940# We need awk for the "check" target. The system "awk" is bad on
2941# some platforms.
2942# Always define AMTAR for backward compatibility.
2943
2944AMTAR=${AMTAR-"${am_missing_run}tar"}
2945
2946am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2947
2948
2949
2950
2951
2952ac_config_headers="$ac_config_headers src/config.h"
2953
2954
2955ac_ext=cpp
2956ac_cpp='$CXXCPP $CPPFLAGS'
2957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2960
2961
2962# Checks for programs.
2963ac_ext=c
2964ac_cpp='$CPP $CPPFLAGS'
2965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2970set dummy ${ac_tool_prefix}gcc; ac_word=$2
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if test "${ac_cv_prog_CC+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2975else
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991 done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996CC=$ac_cv_prog_CC
2997if test -n "$CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999$as_echo "$CC" >&6; }
3000else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005
3006fi
3007if test -z "$ac_cv_prog_CC"; then
3008 ac_ct_CC=$CC
3009 # Extract the first word of "gcc", so it can be a program name with args.
3010set dummy gcc; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3014 $as_echo_n "(cached) " >&6
3015else
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_ac_ct_CC="gcc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030done
3031 done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037if test -n "$ac_ct_CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3039$as_echo "$ac_ct_CC" >&6; }
3040else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045 if test "x$ac_ct_CC" = x; then
3046 CC=""
3047 else
3048 case $cross_compiling:$ac_tool_warned in
3049yes:)
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052ac_tool_warned=yes ;;
3053esac
3054 CC=$ac_ct_CC
3055 fi
3056else
3057 CC="$ac_cv_prog_CC"
3058fi
3059
3060if test -z "$CC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3063set dummy ${ac_tool_prefix}cc; ac_word=$2
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if test "${ac_cv_prog_CC+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3068else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_CC="${ac_tool_prefix}cc"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083done
3084 done
3085IFS=$as_save_IFS
3086
3087fi
3088fi
3089CC=$ac_cv_prog_CC
3090if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092$as_echo "$CC" >&6; }
3093else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098
3099 fi
3100fi
3101if test -z "$CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103set dummy cc; ac_word=$2
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
3106if test "${ac_cv_prog_CC+set}" = set; then :
3107 $as_echo_n "(cached) " >&6
3108else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111else
3112 ac_prog_rejected=no
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3121 ac_prog_rejected=yes
3122 continue
3123 fi
3124 ac_cv_prog_CC="cc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128done
3129 done
3130IFS=$as_save_IFS
3131
3132if test $ac_prog_rejected = yes; then
3133 # We found a bogon in the path, so make sure we never use it.
3134 set dummy $ac_cv_prog_CC
3135 shift
3136 if test $# != 0; then
3137 # We chose a different compiler from the bogus one.
3138 # However, it has the same basename, so the bogon will be chosen
3139 # first if we set CC to just the basename; use the full file name.
3140 shift
3141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3142 fi
3143fi
3144fi
3145fi
3146CC=$ac_cv_prog_CC
3147if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149$as_echo "$CC" >&6; }
3150else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155
3156fi
3157if test -z "$CC"; then
3158 if test -n "$ac_tool_prefix"; then
3159 for ac_prog in cl.exe
3160 do
3161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if test "${ac_cv_prog_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182done
3183 done
3184IFS=$as_save_IFS
3185
3186fi
3187fi
3188CC=$ac_cv_prog_CC
3189if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191$as_echo "$CC" >&6; }
3192else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195fi
3196
3197
3198 test -n "$CC" && break
3199 done
3200fi
3201if test -z "$CC"; then
3202 ac_ct_CC=$CC
3203 for ac_prog in cl.exe
3204do
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206set dummy $ac_prog; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3210 $as_echo_n "(cached) " >&6
3211else
3212 if test -n "$ac_ct_CC"; then
3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 ac_cv_prog_ac_ct_CC="$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226done
3227 done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233if test -n "$ac_ct_CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235$as_echo "$ac_ct_CC" >&6; }
3236else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241
3242 test -n "$ac_ct_CC" && break
3243done
3244
3245 if test "x$ac_ct_CC" = x; then
3246 CC=""
3247 else
3248 case $cross_compiling:$ac_tool_warned in
3249yes:)
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252ac_tool_warned=yes ;;
3253esac
3254 CC=$ac_ct_CC
3255 fi
3256fi
3257
3258fi
3259
3260
3261test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263as_fn_error "no acceptable C compiler found in \$PATH
3264See \`config.log' for more details." "$LINENO" 5; }
3265
3266# Provide some information about the compiler.
3267$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3268set X $ac_compile
3269ac_compiler=$2
3270for ac_option in --version -v -V -qversion; do
3271 { { ac_try="$ac_compiler $ac_option >&5"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3279 ac_status=$?
3280 if test -s conftest.err; then
3281 sed '10a\
3282... rest of stderr output deleted ...
3283 10q' conftest.err >conftest.er1
3284 cat conftest.er1 >&5
3285 fi
3286 rm -f conftest.er1 conftest.err
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }
3289done
3290
3291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292/* end confdefs.h. */
3293
3294int
3295main ()
3296{
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302ac_clean_files_save=$ac_clean_files
3303ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3304# Try to create an executable without -o first, disregard a.out.
3305# It will help us diagnose broken compilers, and finding out an intuition
3306# of exeext.
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3308$as_echo_n "checking whether the C compiler works... " >&6; }
3309ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3310
3311# The possible output files:
3312ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3313
3314ac_rmfiles=
3315for ac_file in $ac_files
3316do
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3319 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3320 esac
3321done
3322rm -f $ac_rmfiles
3323
3324if { { ac_try="$ac_link_default"
3325case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330$as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_link_default") 2>&5
3332 ac_status=$?
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3336# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3337# in a Makefile. We should not override ac_cv_exeext if it was cached,
3338# so that the user can short-circuit this test for compilers unknown to
3339# Autoconf.
3340for ac_file in $ac_files ''
3341do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3345 ;;
3346 [ab].out )
3347 # We found the default executable, but exeext='' is most
3348 # certainly right.
3349 break;;
3350 *.* )
3351 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3352 then :; else
3353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 fi
3355 # We set ac_cv_exeext here because the later test for it is not
3356 # safe: cross compilers may not add the suffix if given an `-o'
3357 # argument, so we may need to know it at that point already.
3358 # Even if this section looks crufty: it has the advantage of
3359 # actually working.
3360 break;;
3361 * )
3362 break;;
3363 esac
3364done
3365test "$ac_cv_exeext" = no && ac_cv_exeext=
3366
3367else
3368 ac_file=''
3369fi
3370if test -z "$ac_file"; then :
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373$as_echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378{ as_fn_set_status 77
3379as_fn_error "C compiler cannot create executables
3380See \`config.log' for more details." "$LINENO" 5; }; }
3381else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383$as_echo "yes" >&6; }
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3386$as_echo_n "checking for C compiler default output file name... " >&6; }
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3388$as_echo "$ac_file" >&6; }
3389ac_exeext=$ac_cv_exeext
3390
3391rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3392ac_clean_files=$ac_clean_files_save
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3394$as_echo_n "checking for suffix of executables... " >&6; }
3395if { { ac_try="$ac_link"
3396case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401$as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_link") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; then :
3406 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3407# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3408# work properly (i.e., refer to `conftest.exe'), while it won't with
3409# `rm'.
3410for ac_file in conftest.exe conftest conftest.*; do
3411 test -f "$ac_file" || continue
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3415 break;;
3416 * ) break;;
3417 esac
3418done
3419else
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error "cannot compute suffix of executables: cannot compile and link
3423See \`config.log' for more details." "$LINENO" 5; }
3424fi
3425rm -f conftest conftest$ac_cv_exeext
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3427$as_echo "$ac_cv_exeext" >&6; }
3428
3429rm -f conftest.$ac_ext
3430EXEEXT=$ac_cv_exeext
3431ac_exeext=$EXEEXT
3432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h. */
3434#include <stdio.h>
3435int
3436main ()
3437{
3438FILE *f = fopen ("conftest.out", "w");
3439 return ferror (f) || fclose (f) != 0;
3440
3441 ;
3442 return 0;
3443}
3444_ACEOF
3445ac_clean_files="$ac_clean_files conftest.out"
3446# Check that the compiler produces executables we can run. If not, either
3447# the compiler is broken, or we cross compile.
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3449$as_echo_n "checking whether we are cross compiling... " >&6; }
3450if test "$cross_compiling" != yes; then
3451 { { ac_try="$ac_link"
3452case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455esac
3456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457$as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link") 2>&5
3459 ac_status=$?
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }
3462 if { ac_try='./conftest$ac_cv_exeext'
3463 { { case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466esac
3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468$as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_try") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; }; then
3473 cross_compiling=no
3474 else
3475 if test "$cross_compiling" = maybe; then
3476 cross_compiling=yes
3477 else
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error "cannot run C compiled programs.
3481If you meant to cross compile, use \`--host'.
3482See \`config.log' for more details." "$LINENO" 5; }
3483 fi
3484 fi
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3487$as_echo "$cross_compiling" >&6; }
3488
3489rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3490ac_clean_files=$ac_clean_files_save
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3492$as_echo_n "checking for suffix of object files... " >&6; }
3493if test "${ac_cv_objext+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495else
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497/* end confdefs.h. */
3498
3499int
3500main ()
3501{
3502
3503 ;
3504 return 0;
3505}
3506_ACEOF
3507rm -f conftest.o conftest.obj
3508if { { ac_try="$ac_compile"
3509case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_compile") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }; then :
3519 for ac_file in conftest.o conftest.obj conftest.*; do
3520 test -f "$ac_file" || continue;
3521 case $ac_file in
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3523 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3524 break;;
3525 esac
3526done
3527else
3528 $as_echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error "cannot compute suffix of object files: cannot compile
3534See \`config.log' for more details." "$LINENO" 5; }
3535fi
3536rm -f conftest.$ac_cv_objext conftest.$ac_ext
3537fi
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3539$as_echo "$ac_cv_objext" >&6; }
3540OBJEXT=$ac_cv_objext
3541ac_objext=$OBJEXT
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3543$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3544if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546else
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h. */
3549
3550int
3551main ()
3552{
3553#ifndef __GNUC__
3554 choke me
3555#endif
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_compiler_gnu=yes
3563else
3564 ac_compiler_gnu=no
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567ac_cv_c_compiler_gnu=$ac_compiler_gnu
3568
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3571$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3572if test $ac_compiler_gnu = yes; then
3573 GCC=yes
3574else
3575 GCC=
3576fi
3577ac_test_CFLAGS=${CFLAGS+set}
3578ac_save_CFLAGS=$CFLAGS
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3580$as_echo_n "checking whether $CC accepts -g... " >&6; }
3581if test "${ac_cv_prog_cc_g+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3583else
3584 ac_save_c_werror_flag=$ac_c_werror_flag
3585 ac_c_werror_flag=yes
3586 ac_cv_prog_cc_g=no
3587 CFLAGS="-g"
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h. */
3590
3591int
3592main ()
3593{
3594
3595 ;
3596 return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_g=yes
3601else
3602 CFLAGS=""
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h. */
3605
3606int
3607main ()
3608{
3609
3610 ;
3611 return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615
3616else
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3618 CFLAGS="-g"
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h. */
3621
3622int
3623main ()
3624{
3625
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_cv_prog_cc_g=yes
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_c_werror_flag=$ac_save_c_werror_flag
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3641$as_echo "$ac_cv_prog_cc_g" >&6; }
3642if test "$ac_test_CFLAGS" = set; then
3643 CFLAGS=$ac_save_CFLAGS
3644elif test $ac_cv_prog_cc_g = yes; then
3645 if test "$GCC" = yes; then
3646 CFLAGS="-g -O2"
3647 else
3648 CFLAGS="-g"
3649 fi
3650else
3651 if test "$GCC" = yes; then
3652 CFLAGS="-O2"
3653 else
3654 CFLAGS=
3655 fi
3656fi
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3658$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659if test "${ac_cv_prog_cc_c89+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661else
3662 ac_cv_prog_cc_c89=no
3663ac_save_CC=$CC
3664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h. */
3666#include <stdarg.h>
3667#include <stdio.h>
3668#include <sys/types.h>
3669#include <sys/stat.h>
3670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671struct buf { int x; };
3672FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673static char *e (p, i)
3674 char **p;
3675 int i;
3676{
3677 return p[i];
3678}
3679static char *f (char * (*g) (char **, int), char **p, ...)
3680{
3681 char *s;
3682 va_list v;
3683 va_start (v,p);
3684 s = g (p, va_arg (v,int));
3685 va_end (v);
3686 return s;
3687}
3688
3689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3697
3698/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3700#define FOO(x) 'x'
3701int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3702
3703int test (int i, double x);
3704struct s1 {int (*f) (int a);};
3705struct s2 {int (*f) (double a);};
3706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707int argc;
3708char **argv;
3709int
3710main ()
3711{
3712return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3719do
3720 CC="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_c89=$ac_arg
3723fi
3724rm -f core conftest.err conftest.$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3726done
3727rm -f conftest.$ac_ext
3728CC=$ac_save_CC
3729
3730fi
3731# AC_CACHE_VAL
3732case "x$ac_cv_prog_cc_c89" in
3733 x)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735$as_echo "none needed" >&6; } ;;
3736 xno)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738$as_echo "unsupported" >&6; } ;;
3739 *)
3740 CC="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743esac
3744if test "x$ac_cv_prog_cc_c89" != xno; then :
3745
3746fi
3747
3748ac_ext=cpp
3749ac_cpp='$CXXCPP $CPPFLAGS'
3750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3753DEPDIR="${am__leading_dot}deps"
3754
3755ac_config_commands="$ac_config_commands depfiles"
3756
3757
3758am_make=${MAKE-make}
3759cat > confinc << 'END'
3760am__doit:
3761 @echo this is the am__doit target
3762.PHONY: am__doit
3763END
3764# If we don't find an include directive, just comment out the code.
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3766$as_echo_n "checking for style of include used by $am_make... " >&6; }
3767am__include="#"
3768am__quote=
3769_am_result=none
3770# First try GNU make style include.
3771echo "include confinc" > confmf
3772# Ignore all kinds of additional output from `make'.
3773case `$am_make -s -f confmf 2> /dev/null` in #(
3774*the\ am__doit\ target*)
3775 am__include=include
3776 am__quote=
3777 _am_result=GNU
3778 ;;
3779esac
3780# Now try BSD make style include.
3781if test "$am__include" = "#"; then
3782 echo '.include "confinc"' > confmf
3783 case `$am_make -s -f confmf 2> /dev/null` in #(
3784 *the\ am__doit\ target*)
3785 am__include=.include
3786 am__quote="\""
3787 _am_result=BSD
3788 ;;
3789 esac
3790fi
3791
3792
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3794$as_echo "$_am_result" >&6; }
3795rm -f confinc confmf
3796
3797# Check whether --enable-dependency-tracking was given.
3798if test "${enable_dependency_tracking+set}" = set; then :
3799 enableval=$enable_dependency_tracking;
3800fi
3801
3802if test "x$enable_dependency_tracking" != xno; then
3803 am_depcomp="$ac_aux_dir/depcomp"
3804 AMDEPBACKSLASH='\'
3805fi
3806 if test "x$enable_dependency_tracking" != xno; then
3807 AMDEP_TRUE=
3808 AMDEP_FALSE='#'
3809else
3810 AMDEP_TRUE='#'
3811 AMDEP_FALSE=
3812fi
3813
3814
3815
3816depcc="$CC" am_compiler_list=
3817
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3819$as_echo_n "checking dependency style of $depcc... " >&6; }
3820if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822else
3823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3824 # We make a subdir and do the tests there. Otherwise we can end up
3825 # making bogus files that we don't know about and never remove. For
3826 # instance it was reported that on HP-UX the gcc test will end up
3827 # making a dummy file named `D' -- because `-MD' means `put the output
3828 # in D'.
3829 mkdir conftest.dir
3830 # Copy depcomp to subdir because otherwise we won't find it if we're
3831 # using a relative directory.
3832 cp "$am_depcomp" conftest.dir
3833 cd conftest.dir
3834 # We will build objects and dependencies in a subdirectory because
3835 # it helps to detect inapplicable dependency modes. For instance
3836 # both Tru64's cc and ICC support -MD to output dependencies as a
3837 # side effect of compilation, but ICC will put the dependencies in
3838 # the current directory while Tru64 will put them in the object
3839 # directory.
3840 mkdir sub
3841
3842 am_cv_CC_dependencies_compiler_type=none
3843 if test "$am_compiler_list" = ""; then
3844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845 fi
3846 am__universal=false
3847 case " $depcc " in #(
3848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3849 esac
3850
3851 for depmode in $am_compiler_list; do
3852 # Setup a source with many dependencies, because some compilers
3853 # like to wrap large dependency lists on column 80 (with \), and
3854 # we should not choose a depcomp mode which is confused by this.
3855 #
3856 # We need to recreate these files for each test, as the compiler may
3857 # overwrite some of them when testing with obscure command lines.
3858 # This happens at least with the AIX C compiler.
3859 : > sub/conftest.c
3860 for i in 1 2 3 4 5 6; do
3861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3862 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3863 # Solaris 8's {/usr,}/bin/sh.
3864 touch sub/conftst$i.h
3865 done
3866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3867
3868 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3869 # mode. It turns out that the SunPro C++ compiler does not properly
3870 # handle `-M -o', and we need to detect this. Also, some Intel
3871 # versions had trouble with output in subdirs
3872 am__obj=sub/conftest.${OBJEXT-o}
3873 am__minus_obj="-o $am__obj"
3874 case $depmode in
3875 gcc)
3876 # This depmode causes a compiler race in universal mode.
3877 test "$am__universal" = false || continue
3878 ;;
3879 nosideeffect)
3880 # after this tag, mechanisms are not by side-effect, so they'll
3881 # only be used when explicitly requested
3882 if test "x$enable_dependency_tracking" = xyes; then
3883 continue
3884 else
3885 break
3886 fi
3887 ;;
3888 msvisualcpp | msvcmsys)
3889 # This compiler won't grok `-c -o', but also, the minuso test has
3890 # not run yet. These depmodes are late enough in the game, and
3891 # so weak that their functioning should not be impacted.
3892 am__obj=conftest.${OBJEXT-o}
3893 am__minus_obj=
3894 ;;
3895 none) break ;;
3896 esac
3897 if depmode=$depmode \
3898 source=sub/conftest.c object=$am__obj \
3899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3901 >/dev/null 2>conftest.err &&
3902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3906 # icc doesn't choke on unknown options, it will just issue warnings
3907 # or remarks (even with -Werror). So we grep stderr for any message
3908 # that says an option was ignored or not supported.
3909 # When given -MP, icc 7.0 and 7.1 complain thusly:
3910 # icc: Command line warning: ignoring option '-M'; no argument required
3911 # The diagnosis changed in icc 8.0:
3912 # icc: Command line remark: option '-MP' not supported
3913 if (grep 'ignoring option' conftest.err ||
3914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3915 am_cv_CC_dependencies_compiler_type=$depmode
3916 break
3917 fi
3918 fi
3919 done
3920
3921 cd ..
3922 rm -rf conftest.dir
3923else
3924 am_cv_CC_dependencies_compiler_type=none
3925fi
3926
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3929$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3930CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3931
3932 if
3933 test "x$enable_dependency_tracking" != xno \
3934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3935 am__fastdepCC_TRUE=
3936 am__fastdepCC_FALSE='#'
3937else
3938 am__fastdepCC_TRUE='#'
3939 am__fastdepCC_FALSE=
3940fi
3941
3942
3943ac_ext=c
3944ac_cpp='$CPP $CPPFLAGS'
3945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3949$as_echo_n "checking how to run the C preprocessor... " >&6; }
3950# On Suns, sometimes $CPP names a directory.
3951if test -n "$CPP" && test -d "$CPP"; then
3952 CPP=
3953fi
3954if test -z "$CPP"; then
3955 if test "${ac_cv_prog_CPP+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3957else
3958 # Double quotes because CPP needs to be expanded
3959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3960 do
3961 ac_preproc_ok=false
3962for ac_c_preproc_warn_flag in '' yes
3963do
3964 # Use a header file that comes with gcc, so configuring glibc
3965 # with a fresh cross-compiler works.
3966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3967 # <limits.h> exists even on freestanding compilers.
3968 # On the NeXT, cc -E runs the code through the compiler's parser,
3969 # not just through cpp. "Syntax error" is here to catch this case.
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h. */
3972#ifdef __STDC__
3973# include <limits.h>
3974#else
3975# include <assert.h>
3976#endif
3977 Syntax error
3978_ACEOF
3979if ac_fn_c_try_cpp "$LINENO"; then :
3980
3981else
3982 # Broken: fails on valid input.
3983continue
3984fi
3985rm -f conftest.err conftest.$ac_ext
3986
3987 # OK, works on sane cases. Now check whether nonexistent headers
3988 # can be detected and how.
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h. */
3991#include <ac_nonexistent.h>
3992_ACEOF
3993if ac_fn_c_try_cpp "$LINENO"; then :
3994 # Broken: success on invalid input.
3995continue
3996else
3997 # Passes both tests.
3998ac_preproc_ok=:
3999break
4000fi
4001rm -f conftest.err conftest.$ac_ext
4002
4003done
4004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4005rm -f conftest.err conftest.$ac_ext
4006if $ac_preproc_ok; then :
4007 break
4008fi
4009
4010 done
4011 ac_cv_prog_CPP=$CPP
4012
4013fi
4014 CPP=$ac_cv_prog_CPP
4015else
4016 ac_cv_prog_CPP=$CPP
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4019$as_echo "$CPP" >&6; }
4020ac_preproc_ok=false
4021for ac_c_preproc_warn_flag in '' yes
4022do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h. */
4031#ifdef __STDC__
4032# include <limits.h>
4033#else
4034# include <assert.h>
4035#endif
4036 Syntax error
4037_ACEOF
4038if ac_fn_c_try_cpp "$LINENO"; then :
4039
4040else
4041 # Broken: fails on valid input.
4042continue
4043fi
4044rm -f conftest.err conftest.$ac_ext
4045
4046 # OK, works on sane cases. Now check whether nonexistent headers
4047 # can be detected and how.
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049/* end confdefs.h. */
4050#include <ac_nonexistent.h>
4051_ACEOF
4052if ac_fn_c_try_cpp "$LINENO"; then :
4053 # Broken: success on invalid input.
4054continue
4055else
4056 # Passes both tests.
4057ac_preproc_ok=:
4058break
4059fi
4060rm -f conftest.err conftest.$ac_ext
4061
4062done
4063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064rm -f conftest.err conftest.$ac_ext
4065if $ac_preproc_ok; then :
4066
4067else
4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070as_fn_error "C preprocessor \"$CPP\" fails sanity check
4071See \`config.log' for more details." "$LINENO" 5; }
4072fi
4073
4074ac_ext=cpp
4075ac_cpp='$CXXCPP $CPPFLAGS'
4076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4079
4080ac_ext=cpp
4081ac_cpp='$CXXCPP $CPPFLAGS'
4082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4085if test -z "$CXX"; then
4086 if test -n "$CCC"; then
4087 CXX=$CCC
4088 else
4089 if test -n "$ac_tool_prefix"; then
4090 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4091 do
4092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095$as_echo_n "checking for $ac_word... " >&6; }
4096if test "${ac_cv_prog_CXX+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098else
4099 if test -n "$CXX"; then
4100 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4101else
4102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103for as_dir in $PATH
4104do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
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
4117fi
4118fi
4119CXX=$ac_cv_prog_CXX
4120if test -n "$CXX"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4122$as_echo "$CXX" >&6; }
4123else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125$as_echo "no" >&6; }
4126fi
4127
4128
4129 test -n "$CXX" && break
4130 done
4131fi
4132if test -z "$CXX"; then
4133 ac_ct_CXX=$CXX
4134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4135do
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137set dummy $ac_prog; ac_word=$2
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139$as_echo_n "checking for $ac_word... " >&6; }
4140if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142else
4143 if test -n "$ac_ct_CXX"; then
4144 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4145else
4146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH
4148do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_ac_ct_CXX="$ac_prog"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157done
4158 done
4159IFS=$as_save_IFS
4160
4161fi
4162fi
4163ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4164if test -n "$ac_ct_CXX"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4166$as_echo "$ac_ct_CXX" >&6; }
4167else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169$as_echo "no" >&6; }
4170fi
4171
4172
4173 test -n "$ac_ct_CXX" && break
4174done
4175
4176 if test "x$ac_ct_CXX" = x; then
4177 CXX="g++"
4178 else
4179 case $cross_compiling:$ac_tool_warned in
4180yes:)
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4183ac_tool_warned=yes ;;
4184esac
4185 CXX=$ac_ct_CXX
4186 fi
4187fi
4188
4189 fi
4190fi
4191# Provide some information about the compiler.
4192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4193set X $ac_compile
4194ac_compiler=$2
4195for ac_option in --version -v -V -qversion; do
4196 { { ac_try="$ac_compiler $ac_option >&5"
4197case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202$as_echo "$ac_try_echo"; } >&5
4203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4204 ac_status=$?
4205 if test -s conftest.err; then
4206 sed '10a\
4207... rest of stderr output deleted ...
4208 10q' conftest.err >conftest.er1
4209 cat conftest.er1 >&5
4210 fi
4211 rm -f conftest.er1 conftest.err
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }
4214done
4215
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4217$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4218if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h. */
4223
4224int
4225main ()
4226{
4227#ifndef __GNUC__
4228 choke me
4229#endif
4230
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235if ac_fn_cxx_try_compile "$LINENO"; then :
4236 ac_compiler_gnu=yes
4237else
4238 ac_compiler_gnu=no
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4242
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4245$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4246if test $ac_compiler_gnu = yes; then
4247 GXX=yes
4248else
4249 GXX=
4250fi
4251ac_test_CXXFLAGS=${CXXFLAGS+set}
4252ac_save_CXXFLAGS=$CXXFLAGS
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4254$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4255if test "${ac_cv_prog_cxx_g+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4257else
4258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4259 ac_cxx_werror_flag=yes
4260 ac_cv_prog_cxx_g=no
4261 CXXFLAGS="-g"
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h. */
4264
4265int
4266main ()
4267{
4268
4269 ;
4270 return 0;
4271}
4272_ACEOF
4273if ac_fn_cxx_try_compile "$LINENO"; then :
4274 ac_cv_prog_cxx_g=yes
4275else
4276 CXXFLAGS=""
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h. */
4279
4280int
4281main ()
4282{
4283
4284 ;
4285 return 0;
4286}
4287_ACEOF
4288if ac_fn_cxx_try_compile "$LINENO"; then :
4289
4290else
4291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4292 CXXFLAGS="-g"
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h. */
4295
4296int
4297main ()
4298{
4299
4300 ;
4301 return 0;
4302}
4303_ACEOF
4304if ac_fn_cxx_try_compile "$LINENO"; then :
4305 ac_cv_prog_cxx_g=yes
4306fi
4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308fi
4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310fi
4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4313fi
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4315$as_echo "$ac_cv_prog_cxx_g" >&6; }
4316if test "$ac_test_CXXFLAGS" = set; then
4317 CXXFLAGS=$ac_save_CXXFLAGS
4318elif test $ac_cv_prog_cxx_g = yes; then
4319 if test "$GXX" = yes; then
4320 CXXFLAGS="-g -O2"
4321 else
4322 CXXFLAGS="-g"
4323 fi
4324else
4325 if test "$GXX" = yes; then
4326 CXXFLAGS="-O2"
4327 else
4328 CXXFLAGS=
4329 fi
4330fi
4331ac_ext=cpp
4332ac_cpp='$CXXCPP $CPPFLAGS'
4333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4336
4337depcc="$CXX" am_compiler_list=
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4340$as_echo_n "checking dependency style of $depcc... " >&6; }
4341if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343else
4344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4345 # We make a subdir and do the tests there. Otherwise we can end up
4346 # making bogus files that we don't know about and never remove. For
4347 # instance it was reported that on HP-UX the gcc test will end up
4348 # making a dummy file named `D' -- because `-MD' means `put the output
4349 # in D'.
4350 mkdir conftest.dir
4351 # Copy depcomp to subdir because otherwise we won't find it if we're
4352 # using a relative directory.
4353 cp "$am_depcomp" conftest.dir
4354 cd conftest.dir
4355 # We will build objects and dependencies in a subdirectory because
4356 # it helps to detect inapplicable dependency modes. For instance
4357 # both Tru64's cc and ICC support -MD to output dependencies as a
4358 # side effect of compilation, but ICC will put the dependencies in
4359 # the current directory while Tru64 will put them in the object
4360 # directory.
4361 mkdir sub
4362
4363 am_cv_CXX_dependencies_compiler_type=none
4364 if test "$am_compiler_list" = ""; then
4365 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4366 fi
4367 am__universal=false
4368 case " $depcc " in #(
4369 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4370 esac
4371
4372 for depmode in $am_compiler_list; do
4373 # Setup a source with many dependencies, because some compilers
4374 # like to wrap large dependency lists on column 80 (with \), and
4375 # we should not choose a depcomp mode which is confused by this.
4376 #
4377 # We need to recreate these files for each test, as the compiler may
4378 # overwrite some of them when testing with obscure command lines.
4379 # This happens at least with the AIX C compiler.
4380 : > sub/conftest.c
4381 for i in 1 2 3 4 5 6; do
4382 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4383 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4384 # Solaris 8's {/usr,}/bin/sh.
4385 touch sub/conftst$i.h
4386 done
4387 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4388
4389 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4390 # mode. It turns out that the SunPro C++ compiler does not properly
4391 # handle `-M -o', and we need to detect this. Also, some Intel
4392 # versions had trouble with output in subdirs
4393 am__obj=sub/conftest.${OBJEXT-o}
4394 am__minus_obj="-o $am__obj"
4395 case $depmode in
4396 gcc)
4397 # This depmode causes a compiler race in universal mode.
4398 test "$am__universal" = false || continue
4399 ;;
4400 nosideeffect)
4401 # after this tag, mechanisms are not by side-effect, so they'll
4402 # only be used when explicitly requested
4403 if test "x$enable_dependency_tracking" = xyes; then
4404 continue
4405 else
4406 break
4407 fi
4408 ;;
4409 msvisualcpp | msvcmsys)
4410 # This compiler won't grok `-c -o', but also, the minuso test has
4411 # not run yet. These depmodes are late enough in the game, and
4412 # so weak that their functioning should not be impacted.
4413 am__obj=conftest.${OBJEXT-o}
4414 am__minus_obj=
4415 ;;
4416 none) break ;;
4417 esac
4418 if depmode=$depmode \
4419 source=sub/conftest.c object=$am__obj \
4420 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4421 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4422 >/dev/null 2>conftest.err &&
4423 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4424 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4425 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4426 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4427 # icc doesn't choke on unknown options, it will just issue warnings
4428 # or remarks (even with -Werror). So we grep stderr for any message
4429 # that says an option was ignored or not supported.
4430 # When given -MP, icc 7.0 and 7.1 complain thusly:
4431 # icc: Command line warning: ignoring option '-M'; no argument required
4432 # The diagnosis changed in icc 8.0:
4433 # icc: Command line remark: option '-MP' not supported
4434 if (grep 'ignoring option' conftest.err ||
4435 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4436 am_cv_CXX_dependencies_compiler_type=$depmode
4437 break
4438 fi
4439 fi
4440 done
4441
4442 cd ..
4443 rm -rf conftest.dir
4444else
4445 am_cv_CXX_dependencies_compiler_type=none
4446fi
4447
4448fi
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4450$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4451CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4452
4453 if
4454 test "x$enable_dependency_tracking" != xno \
4455 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4456 am__fastdepCXX_TRUE=
4457 am__fastdepCXX_FALSE='#'
4458else
4459 am__fastdepCXX_TRUE='#'
4460 am__fastdepCXX_FALSE=
4461fi
4462
4463
4464 if test "$GCC" = yes; then
4465 GCC_TRUE=
4466 GCC_FALSE='#'
4467else
4468 GCC_TRUE='#'
4469 GCC_FALSE=
4470fi
4471 # let the Makefile know if we're gcc
4472
4473# Check for required packages.
4474
4475
4476if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4479set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481$as_echo_n "checking for $ac_word... " >&6; }
4482if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484else
4485 case $PKG_CONFIG in
4486 [\\/]* | ?:[\\/]*)
4487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4488 ;;
4489 *)
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501done
4502 done
4503IFS=$as_save_IFS
4504
4505 ;;
4506esac
4507fi
4508PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4509if test -n "$PKG_CONFIG"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4511$as_echo "$PKG_CONFIG" >&6; }
4512else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514$as_echo "no" >&6; }
4515fi
4516
4517
4518fi
4519if test -z "$ac_cv_path_PKG_CONFIG"; then
4520 ac_pt_PKG_CONFIG=$PKG_CONFIG
4521 # Extract the first word of "pkg-config", so it can be a program name with args.
4522set dummy pkg-config; ac_word=$2
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524$as_echo_n "checking for $ac_word... " >&6; }
4525if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4527else
4528 case $ac_pt_PKG_CONFIG in
4529 [\\/]* | ?:[\\/]*)
4530 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4531 ;;
4532 *)
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544done
4545 done
4546IFS=$as_save_IFS
4547
4548 ;;
4549esac
4550fi
4551ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4552if test -n "$ac_pt_PKG_CONFIG"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4554$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4555else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558fi
4559
4560 if test "x$ac_pt_PKG_CONFIG" = x; then
4561 PKG_CONFIG=""
4562 else
4563 case $cross_compiling:$ac_tool_warned in
4564yes:)
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4567ac_tool_warned=yes ;;
4568esac
4569 PKG_CONFIG=$ac_pt_PKG_CONFIG
4570 fi
4571else
4572 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4573fi
4574
4575fi
4576if test -n "$PKG_CONFIG"; then
4577 _pkg_min_version=0.9.0
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4579$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4580 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582$as_echo "yes" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
4586 PKG_CONFIG=""
4587 fi
4588
4589fi
4590
4591pkg_failed=no
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUF" >&5
4593$as_echo_n "checking for PROTOBUF... " >&6; }
4594
4595if test -n "$PKG_CONFIG"; then
4596 if test -n "$PROTOBUF_CFLAGS"; then
4597 pkg_cv_PROTOBUF_CFLAGS="$PROTOBUF_CFLAGS"
4598 else
4599 if test -n "$PKG_CONFIG" && \
4600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf\""; } >&5
4601 ($PKG_CONFIG --exists --print-errors "protobuf") 2>&5
4602 ac_status=$?
4603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }; then
4605 pkg_cv_PROTOBUF_CFLAGS=`$PKG_CONFIG --cflags "protobuf" 2>/dev/null`
4606else
4607 pkg_failed=yes
4608fi
4609 fi
4610else
4611 pkg_failed=untried
4612fi
4613if test -n "$PKG_CONFIG"; then
4614 if test -n "$PROTOBUF_LIBS"; then
4615 pkg_cv_PROTOBUF_LIBS="$PROTOBUF_LIBS"
4616 else
4617 if test -n "$PKG_CONFIG" && \
4618 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf\""; } >&5
4619 ($PKG_CONFIG --exists --print-errors "protobuf") 2>&5
4620 ac_status=$?
4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }; then
4623 pkg_cv_PROTOBUF_LIBS=`$PKG_CONFIG --libs "protobuf" 2>/dev/null`
4624else
4625 pkg_failed=yes
4626fi
4627 fi
4628else
4629 pkg_failed=untried
4630fi
4631
4632
4633
4634if test $pkg_failed = yes; then
4635
4636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4637 _pkg_short_errors_supported=yes
4638else
4639 _pkg_short_errors_supported=no
4640fi
4641 if test $_pkg_short_errors_supported = yes; then
4642 PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "protobuf"`
4643 else
4644 PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "protobuf"`
4645 fi
4646 # Put the nasty error message in config.log where it belongs
4647 echo "$PROTOBUF_PKG_ERRORS" >&5
4648
4649 as_fn_error "Package requirements (protobuf) were not met:
4650
4651$PROTOBUF_PKG_ERRORS
4652
4653Consider adjusting the PKG_CONFIG_PATH environment variable if you
4654installed software in a non-standard prefix.
4655
4656Alternatively, you may set the environment variables PROTOBUF_CFLAGS
4657and PROTOBUF_LIBS to avoid the need to call pkg-config.
4658See the pkg-config man page for more details.
4659" "$LINENO" 5
4660elif test $pkg_failed = untried; then
4661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4663as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4664is in your PATH or set the PKG_CONFIG environment variable to the full
4665path to pkg-config.
4666
4667Alternatively, you may set the environment variables PROTOBUF_CFLAGS
4668and PROTOBUF_LIBS to avoid the need to call pkg-config.
4669See the pkg-config man page for more details.
4670
4671To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4672See \`config.log' for more details." "$LINENO" 5; }
4673else
4674 PROTOBUF_CFLAGS=$pkg_cv_PROTOBUF_CFLAGS
4675 PROTOBUF_LIBS=$pkg_cv_PROTOBUF_LIBS
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4677$as_echo "yes" >&6; }
4678 :
4679fi
4680
4681pkg_failed=no
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOG" >&5
4683$as_echo_n "checking for GLOG... " >&6; }
4684
4685if test -n "$PKG_CONFIG"; then
4686 if test -n "$GLOG_CFLAGS"; then
4687 pkg_cv_GLOG_CFLAGS="$GLOG_CFLAGS"
4688 else
4689 if test -n "$PKG_CONFIG" && \
4690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglog\""; } >&5
4691 ($PKG_CONFIG --exists --print-errors "libglog") 2>&5
4692 ac_status=$?
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }; then
4695 pkg_cv_GLOG_CFLAGS=`$PKG_CONFIG --cflags "libglog" 2>/dev/null`
4696else
4697 pkg_failed=yes
4698fi
4699 fi
4700else
4701 pkg_failed=untried
4702fi
4703if test -n "$PKG_CONFIG"; then
4704 if test -n "$GLOG_LIBS"; then
4705 pkg_cv_GLOG_LIBS="$GLOG_LIBS"
4706 else
4707 if test -n "$PKG_CONFIG" && \
4708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglog\""; } >&5
4709 ($PKG_CONFIG --exists --print-errors "libglog") 2>&5
4710 ac_status=$?
4711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712 test $ac_status = 0; }; then
4713 pkg_cv_GLOG_LIBS=`$PKG_CONFIG --libs "libglog" 2>/dev/null`
4714else
4715 pkg_failed=yes
4716fi
4717 fi
4718else
4719 pkg_failed=untried
4720fi
4721
4722
4723
4724if test $pkg_failed = yes; then
4725
4726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4727 _pkg_short_errors_supported=yes
4728else
4729 _pkg_short_errors_supported=no
4730fi
4731 if test $_pkg_short_errors_supported = yes; then
4732 GLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libglog"`
4733 else
4734 GLOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglog"`
4735 fi
4736 # Put the nasty error message in config.log where it belongs
4737 echo "$GLOG_PKG_ERRORS" >&5
4738
4739 as_fn_error "Package requirements (libglog) were not met:
4740
4741$GLOG_PKG_ERRORS
4742
4743Consider adjusting the PKG_CONFIG_PATH environment variable if you
4744installed software in a non-standard prefix.
4745
4746Alternatively, you may set the environment variables GLOG_CFLAGS
4747and GLOG_LIBS to avoid the need to call pkg-config.
4748See the pkg-config man page for more details.
4749" "$LINENO" 5
4750elif test $pkg_failed = untried; then
4751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4753as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4754is in your PATH or set the PKG_CONFIG environment variable to the full
4755path to pkg-config.
4756
4757Alternatively, you may set the environment variables GLOG_CFLAGS
4758and GLOG_LIBS to avoid the need to call pkg-config.
4759See the pkg-config man page for more details.
4760
4761To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4762See \`config.log' for more details." "$LINENO" 5; }
4763else
4764 GLOG_CFLAGS=$pkg_cv_GLOG_CFLAGS
4765 GLOG_LIBS=$pkg_cv_GLOG_LIBS
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4767$as_echo "yes" >&6; }
4768 :
4769fi
4770
4771pkg_failed=no
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
4773$as_echo_n "checking for SSL... " >&6; }
4774
4775if test -n "$PKG_CONFIG"; then
4776 if test -n "$SSL_CFLAGS"; then
4777 pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
4778 else
4779 if test -n "$PKG_CONFIG" && \
4780 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
4781 ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
4782 ac_status=$?
4783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4784 test $ac_status = 0; }; then
4785 pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null`
4786else
4787 pkg_failed=yes
4788fi
4789 fi
4790else
4791 pkg_failed=untried
4792fi
4793if test -n "$PKG_CONFIG"; then
4794 if test -n "$SSL_LIBS"; then
4795 pkg_cv_SSL_LIBS="$SSL_LIBS"
4796 else
4797 if test -n "$PKG_CONFIG" && \
4798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
4799 ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
4800 ac_status=$?
4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }; then
4803 pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null`
4804else
4805 pkg_failed=yes
4806fi
4807 fi
4808else
4809 pkg_failed=untried
4810fi
4811
4812
4813
4814if test $pkg_failed = yes; then
4815
4816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4817 _pkg_short_errors_supported=yes
4818else
4819 _pkg_short_errors_supported=no
4820fi
4821 if test $_pkg_short_errors_supported = yes; then
4822 SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libssl"`
4823 else
4824 SSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libssl"`
4825 fi
4826 # Put the nasty error message in config.log where it belongs
4827 echo "$SSL_PKG_ERRORS" >&5
4828
4829 as_fn_error "Package requirements (libssl) were not met:
4830
4831$SSL_PKG_ERRORS
4832
4833Consider adjusting the PKG_CONFIG_PATH environment variable if you
4834installed software in a non-standard prefix.
4835
4836Alternatively, you may set the environment variables SSL_CFLAGS
4837and SSL_LIBS to avoid the need to call pkg-config.
4838See the pkg-config man page for more details.
4839" "$LINENO" 5
4840elif test $pkg_failed = untried; then
4841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4844is in your PATH or set the PKG_CONFIG environment variable to the full
4845path to pkg-config.
4846
4847Alternatively, you may set the environment variables SSL_CFLAGS
4848and SSL_LIBS to avoid the need to call pkg-config.
4849See the pkg-config man page for more details.
4850
4851To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4852See \`config.log' for more details." "$LINENO" 5; }
4853else
4854 SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
4855 SSL_LIBS=$pkg_cv_SSL_LIBS
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857$as_echo "yes" >&6; }
4858 :
4859fi
4860
4861pkg_failed=no
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5
4863$as_echo_n "checking for CRYPTO... " >&6; }
4864
4865if test -n "$PKG_CONFIG"; then
4866 if test -n "$CRYPTO_CFLAGS"; then
4867 pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS"
4868 else
4869 if test -n "$PKG_CONFIG" && \
4870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
4871 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
4872 ac_status=$?
4873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4874 test $ac_status = 0; }; then
4875 pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
4876else
4877 pkg_failed=yes
4878fi
4879 fi
4880else
4881 pkg_failed=untried
4882fi
4883if test -n "$PKG_CONFIG"; then
4884 if test -n "$CRYPTO_LIBS"; then
4885 pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS"
4886 else
4887 if test -n "$PKG_CONFIG" && \
4888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
4889 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
4890 ac_status=$?
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }; then
4893 pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
4894else
4895 pkg_failed=yes
4896fi
4897 fi
4898else
4899 pkg_failed=untried
4900fi
4901
4902
4903
4904if test $pkg_failed = yes; then
4905
4906if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4907 _pkg_short_errors_supported=yes
4908else
4909 _pkg_short_errors_supported=no
4910fi
4911 if test $_pkg_short_errors_supported = yes; then
4912 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcrypto"`
4913 else
4914 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcrypto"`
4915 fi
4916 # Put the nasty error message in config.log where it belongs
4917 echo "$CRYPTO_PKG_ERRORS" >&5
4918
4919 as_fn_error "Package requirements (libcrypto) were not met:
4920
4921$CRYPTO_PKG_ERRORS
4922
4923Consider adjusting the PKG_CONFIG_PATH environment variable if you
4924installed software in a non-standard prefix.
4925
4926Alternatively, you may set the environment variables CRYPTO_CFLAGS
4927and CRYPTO_LIBS to avoid the need to call pkg-config.
4928See the pkg-config man page for more details.
4929" "$LINENO" 5
4930elif test $pkg_failed = untried; then
4931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4933as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4934is in your PATH or set the PKG_CONFIG environment variable to the full
4935path to pkg-config.
4936
4937Alternatively, you may set the environment variables CRYPTO_CFLAGS
4938and CRYPTO_LIBS to avoid the need to call pkg-config.
4939See the pkg-config man page for more details.
4940
4941To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4942See \`config.log' for more details." "$LINENO" 5; }
4943else
4944 CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS
4945 CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4947$as_echo "yes" >&6; }
4948 :
4949fi
4950
4951# Extract the first word of "protoc", so it can be a program name with args.
4952set dummy protoc; ac_word=$2
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954$as_echo_n "checking for $ac_word... " >&6; }
4955if test "${ac_cv_path_PROTOC+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957else
4958 case $PROTOC in
4959 [\\/]* | ?:[\\/]*)
4960 ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path.
4961 ;;
4962 *)
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_path_PROTOC="$as_dir/$ac_word$ac_exec_ext"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974done
4975 done
4976IFS=$as_save_IFS
4977
4978 test -z "$ac_cv_path_PROTOC" && ac_cv_path_PROTOC="as_fn_error "protoc was not found in your path" "$LINENO" 5"
4979 ;;
4980esac
4981fi
4982PROTOC=$ac_cv_path_PROTOC
4983if test -n "$PROTOC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
4985$as_echo "$PROTOC" >&6; }
4986else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990
4991
4992
4993case `pwd` in
4994 *\ * | *\ *)
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4996$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4997esac
4998
4999
5000
5001macro_version='2.2.6b'
5002macro_revision='1.3017'
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016ltmain="$ac_aux_dir/ltmain.sh"
5017
5018# Make sure we can run config.sub.
5019$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5020 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5021
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5023$as_echo_n "checking build system type... " >&6; }
5024if test "${ac_cv_build+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 ac_build_alias=$build_alias
5028test "x$ac_build_alias" = x &&
5029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5030test "x$ac_build_alias" = x &&
5031 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5032ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5033 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5034
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5037$as_echo "$ac_cv_build" >&6; }
5038case $ac_cv_build in
5039*-*-*) ;;
5040*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5041esac
5042build=$ac_cv_build
5043ac_save_IFS=$IFS; IFS='-'
5044set x $ac_cv_build
5045shift
5046build_cpu=$1
5047build_vendor=$2
5048shift; shift
5049# Remember, the first character of IFS is used to create $*,
5050# except with old shells:
5051build_os=$*
5052IFS=$ac_save_IFS
5053case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5054
5055
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5057$as_echo_n "checking host system type... " >&6; }
5058if test "${ac_cv_host+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060else
5061 if test "x$host_alias" = x; then
5062 ac_cv_host=$ac_cv_build
5063else
5064 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5065 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5066fi
5067
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5070$as_echo "$ac_cv_host" >&6; }
5071case $ac_cv_host in
5072*-*-*) ;;
5073*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5074esac
5075host=$ac_cv_host
5076ac_save_IFS=$IFS; IFS='-'
5077set x $ac_cv_host
5078shift
5079host_cpu=$1
5080host_vendor=$2
5081shift; shift
5082# Remember, the first character of IFS is used to create $*,
5083# except with old shells:
5084host_os=$*
5085IFS=$ac_save_IFS
5086case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5087
5088
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5090$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5091if test "${ac_cv_path_SED+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093else
5094 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5095 for ac_i in 1 2 3 4 5 6 7; do
5096 ac_script="$ac_script$as_nl$ac_script"
5097 done
5098 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5099 { ac_script=; unset ac_script;}
5100 if test -z "$SED"; then
5101 ac_path_SED_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in sed gsed; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5112# Check for GNU ac_path_SED and select it if it is found.
5113 # Check for GNU $ac_path_SED
5114case `"$ac_path_SED" --version 2>&1` in
5115*GNU*)
5116 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5117*)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo '' >> "conftest.nl"
5126 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_SED_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_SED="$ac_path_SED"
5132 ac_path_SED_max=$ac_count
5133 fi
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138esac
5139
5140 $ac_path_SED_found && break 3
5141 done
5142 done
5143 done
5144IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_SED"; then
5146 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5147 fi
5148else
5149 ac_cv_path_SED=$SED
5150fi
5151
5152fi
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5154$as_echo "$ac_cv_path_SED" >&6; }
5155 SED="$ac_cv_path_SED"
5156 rm -f conftest.sed
5157
5158test -z "$SED" && SED=sed
5159Xsed="$SED -e 1s/^X//"
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5172$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5173if test "${ac_cv_path_GREP+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175else
5176 if test -z "$GREP"; then
5177 ac_path_GREP_found=false
5178 # Loop through the user's path and test for each of PROGNAME-LIST
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_prog in grep ggrep; do
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5187 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5188# Check for GNU ac_path_GREP and select it if it is found.
5189 # Check for GNU $ac_path_GREP
5190case `"$ac_path_GREP" --version 2>&1` in
5191*GNU*)
5192 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5193*)
5194 ac_count=0
5195 $as_echo_n 0123456789 >"conftest.in"
5196 while :
5197 do
5198 cat "conftest.in" "conftest.in" >"conftest.tmp"
5199 mv "conftest.tmp" "conftest.in"
5200 cp "conftest.in" "conftest.nl"
5201 $as_echo 'GREP' >> "conftest.nl"
5202 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5204 as_fn_arith $ac_count + 1 && ac_count=$as_val
5205 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5206 # Best one so far, save it but keep looking for a better one
5207 ac_cv_path_GREP="$ac_path_GREP"
5208 ac_path_GREP_max=$ac_count
5209 fi
5210 # 10*(2^10) chars as input seems more than enough
5211 test $ac_count -gt 10 && break
5212 done
5213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5214esac
5215
5216 $ac_path_GREP_found && break 3
5217 done
5218 done
5219 done
5220IFS=$as_save_IFS
5221 if test -z "$ac_cv_path_GREP"; then
5222 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5223 fi
5224else
5225 ac_cv_path_GREP=$GREP
5226fi
5227
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5230$as_echo "$ac_cv_path_GREP" >&6; }
5231 GREP="$ac_cv_path_GREP"
5232
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5235$as_echo_n "checking for egrep... " >&6; }
5236if test "${ac_cv_path_EGREP+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5238else
5239 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5240 then ac_cv_path_EGREP="$GREP -E"
5241 else
5242 if test -z "$EGREP"; then
5243 ac_path_EGREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in egrep; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5253 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5254# Check for GNU ac_path_EGREP and select it if it is found.
5255 # Check for GNU $ac_path_EGREP
5256case `"$ac_path_EGREP" --version 2>&1` in
5257*GNU*)
5258 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5259*)
5260 ac_count=0
5261 $as_echo_n 0123456789 >"conftest.in"
5262 while :
5263 do
5264 cat "conftest.in" "conftest.in" >"conftest.tmp"
5265 mv "conftest.tmp" "conftest.in"
5266 cp "conftest.in" "conftest.nl"
5267 $as_echo 'EGREP' >> "conftest.nl"
5268 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_EGREP="$ac_path_EGREP"
5274 ac_path_EGREP_max=$ac_count
5275 fi
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5278 done
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280esac
5281
5282 $ac_path_EGREP_found && break 3
5283 done
5284 done
5285 done
5286IFS=$as_save_IFS
5287 if test -z "$ac_cv_path_EGREP"; then
5288 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5289 fi
5290else
5291 ac_cv_path_EGREP=$EGREP
5292fi
5293
5294 fi
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5297$as_echo "$ac_cv_path_EGREP" >&6; }
5298 EGREP="$ac_cv_path_EGREP"
5299
5300
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5302$as_echo_n "checking for fgrep... " >&6; }
5303if test "${ac_cv_path_FGREP+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305else
5306 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5307 then ac_cv_path_FGREP="$GREP -F"
5308 else
5309 if test -z "$FGREP"; then
5310 ac_path_FGREP_found=false
5311 # Loop through the user's path and test for each of PROGNAME-LIST
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_prog in fgrep; do
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5320 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5321# Check for GNU ac_path_FGREP and select it if it is found.
5322 # Check for GNU $ac_path_FGREP
5323case `"$ac_path_FGREP" --version 2>&1` in
5324*GNU*)
5325 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5326*)
5327 ac_count=0
5328 $as_echo_n 0123456789 >"conftest.in"
5329 while :
5330 do
5331 cat "conftest.in" "conftest.in" >"conftest.tmp"
5332 mv "conftest.tmp" "conftest.in"
5333 cp "conftest.in" "conftest.nl"
5334 $as_echo 'FGREP' >> "conftest.nl"
5335 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5337 as_fn_arith $ac_count + 1 && ac_count=$as_val
5338 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5339 # Best one so far, save it but keep looking for a better one
5340 ac_cv_path_FGREP="$ac_path_FGREP"
5341 ac_path_FGREP_max=$ac_count
5342 fi
5343 # 10*(2^10) chars as input seems more than enough
5344 test $ac_count -gt 10 && break
5345 done
5346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347esac
5348
5349 $ac_path_FGREP_found && break 3
5350 done
5351 done
5352 done
5353IFS=$as_save_IFS
5354 if test -z "$ac_cv_path_FGREP"; then
5355 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 fi
5357else
5358 ac_cv_path_FGREP=$FGREP
5359fi
5360
5361 fi
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5364$as_echo "$ac_cv_path_FGREP" >&6; }
5365 FGREP="$ac_cv_path_FGREP"
5366
5367
5368test -z "$GREP" && GREP=grep
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388# Check whether --with-gnu-ld was given.
5389if test "${with_gnu_ld+set}" = set; then :
5390 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5391else
5392 with_gnu_ld=no
5393fi
5394
5395ac_prog=ld
5396if test "$GCC" = yes; then
5397 # Check if gcc -print-prog-name=ld gives a path.
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5399$as_echo_n "checking for ld used by $CC... " >&6; }
5400 case $host in
5401 *-*-mingw*)
5402 # gcc leaves a trailing carriage return which upsets mingw
5403 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5404 *)
5405 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5406 esac
5407 case $ac_prog in
5408 # Accept absolute paths.
5409 [\\/]* | ?:[\\/]*)
5410 re_direlt='/[^/][^/]*/\.\./'
5411 # Canonicalize the pathname of ld
5412 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5413 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5414 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5415 done
5416 test -z "$LD" && LD="$ac_prog"
5417 ;;
5418 "")
5419 # If it fails, then pretend we aren't using GCC.
5420 ac_prog=ld
5421 ;;
5422 *)
5423 # If it is relative, then search for the first ld in PATH.
5424 with_gnu_ld=unknown
5425 ;;
5426 esac
5427elif test "$with_gnu_ld" = yes; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5429$as_echo_n "checking for GNU ld... " >&6; }
5430else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5432$as_echo_n "checking for non-GNU ld... " >&6; }
5433fi
5434if test "${lt_cv_path_LD+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436else
5437 if test -z "$LD"; then
5438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5439 for ac_dir in $PATH; do
5440 IFS="$lt_save_ifs"
5441 test -z "$ac_dir" && ac_dir=.
5442 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5443 lt_cv_path_LD="$ac_dir/$ac_prog"
5444 # Check to see if the program is GNU ld. I'd rather use --version,
5445 # but apparently some variants of GNU ld only accept -v.
5446 # Break only if it was the GNU/non-GNU ld that we prefer.
5447 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5448 *GNU* | *'with BFD'*)
5449 test "$with_gnu_ld" != no && break
5450 ;;
5451 *)
5452 test "$with_gnu_ld" != yes && break
5453 ;;
5454 esac
5455 fi
5456 done
5457 IFS="$lt_save_ifs"
5458else
5459 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5460fi
5461fi
5462
5463LD="$lt_cv_path_LD"
5464if test -n "$LD"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5466$as_echo "$LD" >&6; }
5467else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5473$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5474if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476else
5477 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5478case `$LD -v 2>&1 </dev/null` in
5479*GNU* | *'with BFD'*)
5480 lt_cv_prog_gnu_ld=yes
5481 ;;
5482*)
5483 lt_cv_prog_gnu_ld=no
5484 ;;
5485esac
5486fi
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5488$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5489with_gnu_ld=$lt_cv_prog_gnu_ld
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5500$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5501if test "${lt_cv_path_NM+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503else
5504 if test -n "$NM"; then
5505 # Let the user override the test.
5506 lt_cv_path_NM="$NM"
5507else
5508 lt_nm_to_check="${ac_tool_prefix}nm"
5509 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5510 lt_nm_to_check="$lt_nm_to_check nm"
5511 fi
5512 for lt_tmp_nm in $lt_nm_to_check; do
5513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5514 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5515 IFS="$lt_save_ifs"
5516 test -z "$ac_dir" && ac_dir=.
5517 tmp_nm="$ac_dir/$lt_tmp_nm"
5518 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5519 # Check to see if the nm accepts a BSD-compat flag.
5520 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5521 # nm: unknown option "B" ignored
5522 # Tru64's nm complains that /dev/null is an invalid object file
5523 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5524 */dev/null* | *'Invalid file or object type'*)
5525 lt_cv_path_NM="$tmp_nm -B"
5526 break
5527 ;;
5528 *)
5529 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5530 */dev/null*)
5531 lt_cv_path_NM="$tmp_nm -p"
5532 break
5533 ;;
5534 *)
5535 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5536 continue # so that we can try to find one that supports BSD flags
5537 ;;
5538 esac
5539 ;;
5540 esac
5541 fi
5542 done
5543 IFS="$lt_save_ifs"
5544 done
5545 : ${lt_cv_path_NM=no}
5546fi
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5549$as_echo "$lt_cv_path_NM" >&6; }
5550if test "$lt_cv_path_NM" != "no"; then
5551 NM="$lt_cv_path_NM"
5552else
5553 # Didn't find any BSD compatible name lister, look for dumpbin.
5554 if test -n "$ac_tool_prefix"; then
5555 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5556 do
5557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
5561if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563else
5564 if test -n "$DUMPBIN"; then
5565 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
5579 done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584DUMPBIN=$ac_cv_prog_DUMPBIN
5585if test -n "$DUMPBIN"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5587$as_echo "$DUMPBIN" >&6; }
5588else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591fi
5592
5593
5594 test -n "$DUMPBIN" && break
5595 done
5596fi
5597if test -z "$DUMPBIN"; then
5598 ac_ct_DUMPBIN=$DUMPBIN
5599 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5600do
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602set dummy $ac_prog; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607else
5608 if test -n "$ac_ct_DUMPBIN"; then
5609 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622done
5623 done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5629if test -n "$ac_ct_DUMPBIN"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5631$as_echo "$ac_ct_DUMPBIN" >&6; }
5632else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637
5638 test -n "$ac_ct_DUMPBIN" && break
5639done
5640
5641 if test "x$ac_ct_DUMPBIN" = x; then
5642 DUMPBIN=":"
5643 else
5644 case $cross_compiling:$ac_tool_warned in
5645yes:)
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648ac_tool_warned=yes ;;
5649esac
5650 DUMPBIN=$ac_ct_DUMPBIN
5651 fi
5652fi
5653
5654
5655 if test "$DUMPBIN" != ":"; then
5656 NM="$DUMPBIN"
5657 fi
5658fi
5659test -z "$NM" && NM=nm
5660
5661
5662
5663
5664
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5667$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5668if test "${lt_cv_nm_interface+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670else
5671 lt_cv_nm_interface="BSD nm"
5672 echo "int some_variable = 0;" > conftest.$ac_ext
5673 (eval echo "\"\$as_me:5673: $ac_compile\"" >&5)
5674 (eval "$ac_compile" 2>conftest.err)
5675 cat conftest.err >&5
5676 (eval echo "\"\$as_me:5676: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5677 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5678 cat conftest.err >&5
5679 (eval echo "\"\$as_me:5679: output\"" >&5)
5680 cat conftest.out >&5
5681 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5682 lt_cv_nm_interface="MS dumpbin"
5683 fi
5684 rm -f conftest*
5685fi
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5687$as_echo "$lt_cv_nm_interface" >&6; }
5688
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5690$as_echo_n "checking whether ln -s works... " >&6; }
5691LN_S=$as_ln_s
5692if test "$LN_S" = "ln -s"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694$as_echo "yes" >&6; }
5695else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5697$as_echo "no, using $LN_S" >&6; }
5698fi
5699
5700# find the maximum length of command line arguments
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5702$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5703if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705else
5706 i=0
5707 teststring="ABCD"
5708
5709 case $build_os in
5710 msdosdjgpp*)
5711 # On DJGPP, this test can blow up pretty badly due to problems in libc
5712 # (any single argument exceeding 2000 bytes causes a buffer overrun
5713 # during glob expansion). Even if it were fixed, the result of this
5714 # check would be larger than it should be.
5715 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5716 ;;
5717
5718 gnu*)
5719 # Under GNU Hurd, this test is not required because there is
5720 # no limit to the length of command line arguments.
5721 # Libtool will interpret -1 as no limit whatsoever
5722 lt_cv_sys_max_cmd_len=-1;
5723 ;;
5724
5725 cygwin* | mingw* | cegcc*)
5726 # On Win9x/ME, this test blows up -- it succeeds, but takes
5727 # about 5 minutes as the teststring grows exponentially.
5728 # Worse, since 9x/ME are not pre-emptively multitasking,
5729 # you end up with a "frozen" computer, even though with patience
5730 # the test eventually succeeds (with a max line length of 256k).
5731 # Instead, let's just punt: use the minimum linelength reported by
5732 # all of the supported platforms: 8192 (on NT/2K/XP).
5733 lt_cv_sys_max_cmd_len=8192;
5734 ;;
5735
5736 amigaos*)
5737 # On AmigaOS with pdksh, this test takes hours, literally.
5738 # So we just punt and use a minimum line length of 8192.
5739 lt_cv_sys_max_cmd_len=8192;
5740 ;;
5741
5742 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5743 # This has been around since 386BSD, at least. Likely further.
5744 if test -x /sbin/sysctl; then
5745 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5746 elif test -x /usr/sbin/sysctl; then
5747 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5748 else
5749 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5750 fi
5751 # And add a safety zone
5752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5754 ;;
5755
5756 interix*)
5757 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5758 lt_cv_sys_max_cmd_len=196608
5759 ;;
5760
5761 osf*)
5762 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5763 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5764 # nice to cause kernel panics so lets avoid the loop below.
5765 # First set a reasonable default.
5766 lt_cv_sys_max_cmd_len=16384
5767 #
5768 if test -x /sbin/sysconfig; then
5769 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5770 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5771 esac
5772 fi
5773 ;;
5774 sco3.2v5*)
5775 lt_cv_sys_max_cmd_len=102400
5776 ;;
5777 sysv5* | sco5v6* | sysv4.2uw2*)
5778 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5779 if test -n "$kargmax"; then
5780 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5781 else
5782 lt_cv_sys_max_cmd_len=32768
5783 fi
5784 ;;
5785 *)
5786 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5787 if test -n "$lt_cv_sys_max_cmd_len"; then
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5790 else
5791 # Make teststring a little bigger before we do anything with it.
5792 # a 1K string should be a reasonable start.
5793 for i in 1 2 3 4 5 6 7 8 ; do
5794 teststring=$teststring$teststring
5795 done
5796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5797 # If test is not a shell built-in, we'll probably end up computing a
5798 # maximum length that is only half of the actual maximum length, but
5799 # we can't tell.
5800 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5801 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5802 test $i != 17 # 1/2 MB should be enough
5803 do
5804 i=`expr $i + 1`
5805 teststring=$teststring$teststring
5806 done
5807 # Only check the string length outside the loop.
5808 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5809 teststring=
5810 # Add a significant safety factor because C++ compilers can tack on
5811 # massive amounts of additional arguments before passing them to the
5812 # linker. It appears as though 1/2 is a usable value.
5813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5814 fi
5815 ;;
5816 esac
5817
5818fi
5819
5820if test -n $lt_cv_sys_max_cmd_len ; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5822$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5823else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5825$as_echo "none" >&6; }
5826fi
5827max_cmd_len=$lt_cv_sys_max_cmd_len
5828
5829
5830
5831
5832
5833
5834: ${CP="cp -f"}
5835: ${MV="mv -f"}
5836: ${RM="rm -f"}
5837
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5839$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5840# Try some XSI features
5841xsi_shell=no
5842( _lt_dummy="a/b/c"
5843 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5844 = c,a/b,, \
5845 && eval 'test $(( 1 + 1 )) -eq 2 \
5846 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5847 && xsi_shell=yes
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5849$as_echo "$xsi_shell" >&6; }
5850
5851
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5853$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5854lt_shell_append=no
5855( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5856 >/dev/null 2>&1 \
5857 && lt_shell_append=yes
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5859$as_echo "$lt_shell_append" >&6; }
5860
5861
5862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5863 lt_unset=unset
5864else
5865 lt_unset=false
5866fi
5867
5868
5869
5870
5871
5872# test EBCDIC or ASCII
5873case `echo X|tr X '\101'` in
5874 A) # ASCII based system
5875 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5876 lt_SP2NL='tr \040 \012'
5877 lt_NL2SP='tr \015\012 \040\040'
5878 ;;
5879 *) # EBCDIC based system
5880 lt_SP2NL='tr \100 \n'
5881 lt_NL2SP='tr \r\n \100\100'
5882 ;;
5883esac
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5894$as_echo_n "checking for $LD option to reload object files... " >&6; }
5895if test "${lt_cv_ld_reload_flag+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897else
5898 lt_cv_ld_reload_flag='-r'
5899fi
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5901$as_echo "$lt_cv_ld_reload_flag" >&6; }
5902reload_flag=$lt_cv_ld_reload_flag
5903case $reload_flag in
5904"" | " "*) ;;
5905*) reload_flag=" $reload_flag" ;;
5906esac
5907reload_cmds='$LD$reload_flag -o $output$reload_objs'
5908case $host_os in
5909 darwin*)
5910 if test "$GCC" = yes; then
5911 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5912 else
5913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5914 fi
5915 ;;
5916esac
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5928set dummy ${ac_tool_prefix}objdump; ac_word=$2
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930$as_echo_n "checking for $ac_word... " >&6; }
5931if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933else
5934 if test -n "$OBJDUMP"; then
5935 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948done
5949 done
5950IFS=$as_save_IFS
5951
5952fi
5953fi
5954OBJDUMP=$ac_cv_prog_OBJDUMP
5955if test -n "$OBJDUMP"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5957$as_echo "$OBJDUMP" >&6; }
5958else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }
5961fi
5962
5963
5964fi
5965if test -z "$ac_cv_prog_OBJDUMP"; then
5966 ac_ct_OBJDUMP=$OBJDUMP
5967 # Extract the first word of "objdump", so it can be a program name with args.
5968set dummy objdump; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973else
5974 if test -n "$ac_ct_OBJDUMP"; then
5975 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988done
5989 done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5995if test -n "$ac_ct_OBJDUMP"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5997$as_echo "$ac_ct_OBJDUMP" >&6; }
5998else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003 if test "x$ac_ct_OBJDUMP" = x; then
6004 OBJDUMP="false"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007yes:)
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010ac_tool_warned=yes ;;
6011esac
6012 OBJDUMP=$ac_ct_OBJDUMP
6013 fi
6014else
6015 OBJDUMP="$ac_cv_prog_OBJDUMP"
6016fi
6017
6018test -z "$OBJDUMP" && OBJDUMP=objdump
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6029$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6030if test "${lt_cv_deplibs_check_method+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032else
6033 lt_cv_file_magic_cmd='$MAGIC_CMD'
6034lt_cv_file_magic_test_file=
6035lt_cv_deplibs_check_method='unknown'
6036# Need to set the preceding variable on all platforms that support
6037# interlibrary dependencies.
6038# 'none' -- dependencies not supported.
6039# `unknown' -- same as none, but documents that we really don't know.
6040# 'pass_all' -- all dependencies passed with no checks.
6041# 'test_compile' -- check by making test program.
6042# 'file_magic [[regex]]' -- check by looking for files in library path
6043# which responds to the $file_magic_cmd with a given extended regex.
6044# If you have `file' or equivalent on your system and you're not sure
6045# whether `pass_all' will *always* work, you probably want this one.
6046
6047case $host_os in
6048aix[4-9]*)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051
6052beos*)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055
6056bsdi[45]*)
6057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6058 lt_cv_file_magic_cmd='/usr/bin/file -L'
6059 lt_cv_file_magic_test_file=/shlib/libc.so
6060 ;;
6061
6062cygwin*)
6063 # func_win32_libid is a shell function defined in ltmain.sh
6064 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6065 lt_cv_file_magic_cmd='func_win32_libid'
6066 ;;
6067
6068mingw* | pw32*)
6069 # Base MSYS/MinGW do not provide the 'file' command needed by
6070 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6071 # unless we find 'file', for example because we are cross-compiling.
6072 if ( file / ) >/dev/null 2>&1; then
6073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6074 lt_cv_file_magic_cmd='func_win32_libid'
6075 else
6076 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6077 lt_cv_file_magic_cmd='$OBJDUMP -f'
6078 fi
6079 ;;
6080
6081cegcc)
6082 # use the weaker test based on 'objdump'. See mingw*.
6083 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6084 lt_cv_file_magic_cmd='$OBJDUMP -f'
6085 ;;
6086
6087darwin* | rhapsody*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090
6091freebsd* | dragonfly*)
6092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6093 case $host_cpu in
6094 i*86 )
6095 # Not sure whether the presence of OpenBSD here was a mistake.
6096 # Let's accept both of them until this is cleared up.
6097 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6098 lt_cv_file_magic_cmd=/usr/bin/file
6099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6100 ;;
6101 esac
6102 else
6103 lt_cv_deplibs_check_method=pass_all
6104 fi
6105 ;;
6106
6107gnu*)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111hpux10.20* | hpux11*)
6112 lt_cv_file_magic_cmd=/usr/bin/file
6113 case $host_cpu in
6114 ia64*)
6115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6116 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6117 ;;
6118 hppa*64*)
6119 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]'
6120 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6121 ;;
6122 *)
6123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6124 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6125 ;;
6126 esac
6127 ;;
6128
6129interix[3-9]*)
6130 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6132 ;;
6133
6134irix5* | irix6* | nonstopux*)
6135 case $LD in
6136 *-32|*"-32 ") libmagic=32-bit;;
6137 *-n32|*"-n32 ") libmagic=N32;;
6138 *-64|*"-64 ") libmagic=64-bit;;
6139 *) libmagic=never-match;;
6140 esac
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143
6144# This must be Linux ELF.
6145linux* | k*bsd*-gnu | kopensolaris*-gnu)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149netbsd* | netbsdelf*-gnu)
6150 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6152 else
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6154 fi
6155 ;;
6156
6157newos6*)
6158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6159 lt_cv_file_magic_cmd=/usr/bin/file
6160 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6161 ;;
6162
6163*nto* | *qnx*)
6164 lt_cv_deplibs_check_method=pass_all
6165 ;;
6166
6167openbsd*)
6168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6170 else
6171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6172 fi
6173 ;;
6174
6175osf3* | osf4* | osf5*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178
6179rdos*)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182
6183solaris*)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186
6187sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
6190
6191sysv4 | sysv4.3*)
6192 case $host_vendor in
6193 motorola)
6194 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]'
6195 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6196 ;;
6197 ncr)
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200 sequent)
6201 lt_cv_file_magic_cmd='/bin/file'
6202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6203 ;;
6204 sni)
6205 lt_cv_file_magic_cmd='/bin/file'
6206 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6207 lt_cv_file_magic_test_file=/lib/libc.so
6208 ;;
6209 siemens)
6210 lt_cv_deplibs_check_method=pass_all
6211 ;;
6212 pc)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215 esac
6216 ;;
6217
6218tpf*)
6219 lt_cv_deplibs_check_method=pass_all
6220 ;;
6221esac
6222
6223fi
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6225$as_echo "$lt_cv_deplibs_check_method" >&6; }
6226file_magic_cmd=$lt_cv_file_magic_cmd
6227deplibs_check_method=$lt_cv_deplibs_check_method
6228test -z "$deplibs_check_method" && deplibs_check_method=unknown
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6243set dummy ${ac_tool_prefix}ar; ac_word=$2
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245$as_echo_n "checking for $ac_word... " >&6; }
6246if test "${ac_cv_prog_AR+set}" = set; then :
6247 $as_echo_n "(cached) " >&6
6248else
6249 if test -n "$AR"; then
6250 ac_cv_prog_AR="$AR" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_prog_AR="${ac_tool_prefix}ar"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264 done
6265IFS=$as_save_IFS
6266
6267fi
6268fi
6269AR=$ac_cv_prog_AR
6270if test -n "$AR"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6272$as_echo "$AR" >&6; }
6273else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; }
6276fi
6277
6278
6279fi
6280if test -z "$ac_cv_prog_AR"; then
6281 ac_ct_AR=$AR
6282 # Extract the first word of "ar", so it can be a program name with args.
6283set dummy ar; ac_word=$2
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
6286if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6288else
6289 if test -n "$ac_ct_AR"; then
6290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_ac_ct_AR="ar"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303done
6304 done
6305IFS=$as_save_IFS
6306
6307fi
6308fi
6309ac_ct_AR=$ac_cv_prog_ac_ct_AR
6310if test -n "$ac_ct_AR"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6312$as_echo "$ac_ct_AR" >&6; }
6313else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6316fi
6317
6318 if test "x$ac_ct_AR" = x; then
6319 AR="false"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322yes:)
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325ac_tool_warned=yes ;;
6326esac
6327 AR=$ac_ct_AR
6328 fi
6329else
6330 AR="$ac_cv_prog_AR"
6331fi
6332
6333test -z "$AR" && AR=ar
6334test -z "$AR_FLAGS" && AR_FLAGS=cru
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}strip; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if test "${ac_cv_prog_STRIP+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353else
6354 if test -n "$STRIP"; then
6355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368done
6369 done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374STRIP=$ac_cv_prog_STRIP
6375if test -n "$STRIP"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6377$as_echo "$STRIP" >&6; }
6378else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383
6384fi
6385if test -z "$ac_cv_prog_STRIP"; then
6386 ac_ct_STRIP=$STRIP
6387 # Extract the first word of "strip", so it can be a program name with args.
6388set dummy strip; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393else
6394 if test -n "$ac_ct_STRIP"; then
6395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_ac_ct_STRIP="strip"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408done
6409 done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6415if test -n "$ac_ct_STRIP"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6417$as_echo "$ac_ct_STRIP" >&6; }
6418else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423 if test "x$ac_ct_STRIP" = x; then
6424 STRIP=":"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427yes:)
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430ac_tool_warned=yes ;;
6431esac
6432 STRIP=$ac_ct_STRIP
6433 fi
6434else
6435 STRIP="$ac_cv_prog_STRIP"
6436fi
6437
6438test -z "$STRIP" && STRIP=:
6439
6440
6441
6442
6443
6444
6445if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if test "${ac_cv_prog_RANLIB+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$RANLIB"; then
6454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473RANLIB=$ac_cv_prog_RANLIB
6474if test -n "$RANLIB"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6476$as_echo "$RANLIB" >&6; }
6477else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483fi
6484if test -z "$ac_cv_prog_RANLIB"; then
6485 ac_ct_RANLIB=$RANLIB
6486 # Extract the first word of "ranlib", so it can be a program name with args.
6487set dummy ranlib; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6492else
6493 if test -n "$ac_ct_RANLIB"; then
6494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_RANLIB="ranlib"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507done
6508 done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6514if test -n "$ac_ct_RANLIB"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6516$as_echo "$ac_ct_RANLIB" >&6; }
6517else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522 if test "x$ac_ct_RANLIB" = x; then
6523 RANLIB=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531 RANLIB=$ac_ct_RANLIB
6532 fi
6533else
6534 RANLIB="$ac_cv_prog_RANLIB"
6535fi
6536
6537test -z "$RANLIB" && RANLIB=:
6538
6539
6540
6541
6542
6543
6544# Determine commands to create old-style static archives.
6545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6546old_postinstall_cmds='chmod 644 $oldlib'
6547old_postuninstall_cmds=
6548
6549if test -n "$RANLIB"; then
6550 case $host_os in
6551 openbsd*)
6552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6553 ;;
6554 *)
6555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6556 ;;
6557 esac
6558 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6559fi
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594# If no C compiler was specified, use CC.
6595LTCC=${LTCC-"$CC"}
6596
6597# If no C compiler flags were specified, use CFLAGS.
6598LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6599
6600# Allow CC to be a program name with arguments.
6601compiler=$CC
6602
6603
6604# Check for command to grab the raw symbol name followed by C symbol from nm.
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6606$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6607if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610
6611# These are sane defaults that work on at least a few old systems.
6612# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6613
6614# Character class describing NM global symbol codes.
6615symcode='[BCDEGRST]'
6616
6617# Regexp to match symbols that can be accessed directly from C.
6618sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6619
6620# Define system-specific variables.
6621case $host_os in
6622aix*)
6623 symcode='[BCDT]'
6624 ;;
6625cygwin* | mingw* | pw32* | cegcc*)
6626 symcode='[ABCDGISTW]'
6627 ;;
6628hpux*)
6629 if test "$host_cpu" = ia64; then
6630 symcode='[ABCDEGRST]'
6631 fi
6632 ;;
6633irix* | nonstopux*)
6634 symcode='[BCDEGRST]'
6635 ;;
6636osf*)
6637 symcode='[BCDEGQRST]'
6638 ;;
6639solaris*)
6640 symcode='[BDRT]'
6641 ;;
6642sco3.2v5*)
6643 symcode='[DT]'
6644 ;;
6645sysv4.2uw2*)
6646 symcode='[DT]'
6647 ;;
6648sysv5* | sco5v6* | unixware* | OpenUNIX*)
6649 symcode='[ABDT]'
6650 ;;
6651sysv4)
6652 symcode='[DFNSTU]'
6653 ;;
6654esac
6655
6656# If we're using GNU nm, then use its standard symbol codes.
6657case `$NM -V 2>&1` in
6658*GNU* | *'with BFD'*)
6659 symcode='[ABCDGIRSTW]' ;;
6660esac
6661
6662# Transform an extracted symbol line into a proper C declaration.
6663# Some systems (esp. on ia64) link data and code symbols differently,
6664# so use this general approach.
6665lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6666
6667# Transform an extracted symbol line into symbol name and symbol address
6668lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6669lt_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'"
6670
6671# Handle CRLF in mingw tool chain
6672opt_cr=
6673case $build_os in
6674mingw*)
6675 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676 ;;
6677esac
6678
6679# Try without a prefix underscore, then with it.
6680for ac_symprfx in "" "_"; do
6681
6682 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6683 symxfrm="\\1 $ac_symprfx\\2 \\2"
6684
6685 # Write the raw and C identifiers.
6686 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6687 # Fake it for dumpbin and say T for any non-static function
6688 # and D for any global variable.
6689 # Also find C++ and __fastcall symbols from MSVC++,
6690 # which start with @ or ?.
6691 lt_cv_sys_global_symbol_pipe="$AWK '"\
6692" {last_section=section; section=\$ 3};"\
6693" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6694" \$ 0!~/External *\|/{next};"\
6695" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6696" {if(hide[section]) next};"\
6697" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6698" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6699" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6700" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6701" ' prfx=^$ac_symprfx"
6702 else
6703 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6704 fi
6705
6706 # Check to see that the pipe works correctly.
6707 pipe_works=no
6708
6709 rm -f conftest*
6710 cat > conftest.$ac_ext <<_LT_EOF
6711#ifdef __cplusplus
6712extern "C" {
6713#endif
6714char nm_test_var;
6715void nm_test_func(void);
6716void nm_test_func(void){}
6717#ifdef __cplusplus
6718}
6719#endif
6720int main(){nm_test_var='a';nm_test_func();return(0);}
6721_LT_EOF
6722
6723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724 (eval $ac_compile) 2>&5
6725 ac_status=$?
6726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727 test $ac_status = 0; }; then
6728 # Now try to grab the symbols.
6729 nlist=conftest.nm
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6731 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; } && test -s "$nlist"; then
6735 # Try sorting and uniquifying the output.
6736 if sort "$nlist" | uniq > "$nlist"T; then
6737 mv -f "$nlist"T "$nlist"
6738 else
6739 rm -f "$nlist"T
6740 fi
6741
6742 # Make sure that we snagged all the symbols we need.
6743 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6744 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6745 cat <<_LT_EOF > conftest.$ac_ext
6746#ifdef __cplusplus
6747extern "C" {
6748#endif
6749
6750_LT_EOF
6751 # Now generate the symbol file.
6752 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6753
6754 cat <<_LT_EOF >> conftest.$ac_ext
6755
6756/* The mapping between symbol names and symbols. */
6757const struct {
6758 const char *name;
6759 void *address;
6760}
6761lt__PROGRAM__LTX_preloaded_symbols[] =
6762{
6763 { "@PROGRAM@", (void *) 0 },
6764_LT_EOF
6765 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6766 cat <<\_LT_EOF >> conftest.$ac_ext
6767 {0, (void *) 0}
6768};
6769
6770/* This works around a problem in FreeBSD linker */
6771#ifdef FREEBSD_WORKAROUND
6772static const void *lt_preloaded_setup() {
6773 return lt__PROGRAM__LTX_preloaded_symbols;
6774}
6775#endif
6776
6777#ifdef __cplusplus
6778}
6779#endif
6780_LT_EOF
6781 # Now try linking the two files.
6782 mv conftest.$ac_objext conftstm.$ac_objext
6783 lt_save_LIBS="$LIBS"
6784 lt_save_CFLAGS="$CFLAGS"
6785 LIBS="conftstm.$ac_objext"
6786 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6788 (eval $ac_link) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6792 pipe_works=yes
6793 fi
6794 LIBS="$lt_save_LIBS"
6795 CFLAGS="$lt_save_CFLAGS"
6796 else
6797 echo "cannot find nm_test_func in $nlist" >&5
6798 fi
6799 else
6800 echo "cannot find nm_test_var in $nlist" >&5
6801 fi
6802 else
6803 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6804 fi
6805 else
6806 echo "$progname: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 fi
6809 rm -rf conftest* conftst*
6810
6811 # Do not use the global_symbol_pipe unless it works.
6812 if test "$pipe_works" = yes; then
6813 break
6814 else
6815 lt_cv_sys_global_symbol_pipe=
6816 fi
6817done
6818
6819fi
6820
6821if test -z "$lt_cv_sys_global_symbol_pipe"; then
6822 lt_cv_sys_global_symbol_to_cdecl=
6823fi
6824if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6826$as_echo "failed" >&6; }
6827else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6829$as_echo "ok" >&6; }
6830fi
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854# Check whether --enable-libtool-lock was given.
6855if test "${enable_libtool_lock+set}" = set; then :
6856 enableval=$enable_libtool_lock;
6857fi
6858
6859test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6860
6861# Some flags need to be propagated to the compiler or linker for good
6862# libtool support.
6863case $host in
6864ia64-*-hpux*)
6865 # Find out which ABI we are using.
6866 echo 'int i;' > conftest.$ac_ext
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; }; then
6872 case `/usr/bin/file conftest.$ac_objext` in
6873 *ELF-32*)
6874 HPUX_IA64_MODE="32"
6875 ;;
6876 *ELF-64*)
6877 HPUX_IA64_MODE="64"
6878 ;;
6879 esac
6880 fi
6881 rm -rf conftest*
6882 ;;
6883*-*-irix6*)
6884 # Find out which ABI we are using.
6885 echo '#line 6885 "configure"' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 if test "$lt_cv_prog_gnu_ld" = yes; then
6892 case `/usr/bin/file conftest.$ac_objext` in
6893 *32-bit*)
6894 LD="${LD-ld} -melf32bsmip"
6895 ;;
6896 *N32*)
6897 LD="${LD-ld} -melf32bmipn32"
6898 ;;
6899 *64-bit*)
6900 LD="${LD-ld} -melf64bmip"
6901 ;;
6902 esac
6903 else
6904 case `/usr/bin/file conftest.$ac_objext` in
6905 *32-bit*)
6906 LD="${LD-ld} -32"
6907 ;;
6908 *N32*)
6909 LD="${LD-ld} -n32"
6910 ;;
6911 *64-bit*)
6912 LD="${LD-ld} -64"
6913 ;;
6914 esac
6915 fi
6916 fi
6917 rm -rf conftest*
6918 ;;
6919
6920x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6921s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6922 # Find out which ABI we are using.
6923 echo 'int i;' > conftest.$ac_ext
6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 test $ac_status = 0; }; then
6929 case `/usr/bin/file conftest.o` in
6930 *32-bit*)
6931 case $host in
6932 x86_64-*kfreebsd*-gnu)
6933 LD="${LD-ld} -m elf_i386_fbsd"
6934 ;;
6935 x86_64-*linux*)
6936 LD="${LD-ld} -m elf_i386"
6937 ;;
6938 ppc64-*linux*|powerpc64-*linux*)
6939 LD="${LD-ld} -m elf32ppclinux"
6940 ;;
6941 s390x-*linux*)
6942 LD="${LD-ld} -m elf_s390"
6943 ;;
6944 sparc64-*linux*)
6945 LD="${LD-ld} -m elf32_sparc"
6946 ;;
6947 esac
6948 ;;
6949 *64-bit*)
6950 case $host in
6951 x86_64-*kfreebsd*-gnu)
6952 LD="${LD-ld} -m elf_x86_64_fbsd"
6953 ;;
6954 x86_64-*linux*)
6955 LD="${LD-ld} -m elf_x86_64"
6956 ;;
6957 ppc*-*linux*|powerpc*-*linux*)
6958 LD="${LD-ld} -m elf64ppc"
6959 ;;
6960 s390*-*linux*|s390*-*tpf*)
6961 LD="${LD-ld} -m elf64_s390"
6962 ;;
6963 sparc*-*linux*)
6964 LD="${LD-ld} -m elf64_sparc"
6965 ;;
6966 esac
6967 ;;
6968 esac
6969 fi
6970 rm -rf conftest*
6971 ;;
6972
6973*-*-sco3.2v5*)
6974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975 SAVE_CFLAGS="$CFLAGS"
6976 CFLAGS="$CFLAGS -belf"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6978$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6979if test "${lt_cv_cc_needs_belf+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981else
6982 ac_ext=c
6983ac_cpp='$CPP $CPPFLAGS'
6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h. */
6990
6991int
6992main ()
6993{
6994
6995 ;
6996 return 0;
6997}
6998_ACEOF
6999if ac_fn_c_try_link "$LINENO"; then :
7000 lt_cv_cc_needs_belf=yes
7001else
7002 lt_cv_cc_needs_belf=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 ac_ext=c
7007ac_cpp='$CPP $CPPFLAGS'
7008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011
7012fi
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7014$as_echo "$lt_cv_cc_needs_belf" >&6; }
7015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7017 CFLAGS="$SAVE_CFLAGS"
7018 fi
7019 ;;
7020sparc*-*solaris*)
7021 # Find out which ABI we are using.
7022 echo 'int i;' > conftest.$ac_ext
7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024 (eval $ac_compile) 2>&5
7025 ac_status=$?
7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027 test $ac_status = 0; }; then
7028 case `/usr/bin/file conftest.o` in
7029 *64-bit*)
7030 case $lt_cv_prog_gnu_ld in
7031 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7032 *)
7033 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7034 LD="${LD-ld} -64"
7035 fi
7036 ;;
7037 esac
7038 ;;
7039 esac
7040 fi
7041 rm -rf conftest*
7042 ;;
7043esac
7044
7045need_locks="$enable_libtool_lock"
7046
7047
7048 case $host_os in
7049 rhapsody* | darwin*)
7050 if test -n "$ac_tool_prefix"; then
7051 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7052set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054$as_echo_n "checking for $ac_word... " >&6; }
7055if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7057else
7058 if test -n "$DSYMUTIL"; then
7059 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073 done
7074IFS=$as_save_IFS
7075
7076fi
7077fi
7078DSYMUTIL=$ac_cv_prog_DSYMUTIL
7079if test -n "$DSYMUTIL"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7081$as_echo "$DSYMUTIL" >&6; }
7082else
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084$as_echo "no" >&6; }
7085fi
7086
7087
7088fi
7089if test -z "$ac_cv_prog_DSYMUTIL"; then
7090 ac_ct_DSYMUTIL=$DSYMUTIL
7091 # Extract the first word of "dsymutil", so it can be a program name with args.
7092set dummy dsymutil; ac_word=$2
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094$as_echo_n "checking for $ac_word... " >&6; }
7095if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7097else
7098 if test -n "$ac_ct_DSYMUTIL"; then
7099 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112done
7113 done
7114IFS=$as_save_IFS
7115
7116fi
7117fi
7118ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7119if test -n "$ac_ct_DSYMUTIL"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7121$as_echo "$ac_ct_DSYMUTIL" >&6; }
7122else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124$as_echo "no" >&6; }
7125fi
7126
7127 if test "x$ac_ct_DSYMUTIL" = x; then
7128 DSYMUTIL=":"
7129 else
7130 case $cross_compiling:$ac_tool_warned in
7131yes:)
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134ac_tool_warned=yes ;;
7135esac
7136 DSYMUTIL=$ac_ct_DSYMUTIL
7137 fi
7138else
7139 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7140fi
7141
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7144set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146$as_echo_n "checking for $ac_word... " >&6; }
7147if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7149else
7150 if test -n "$NMEDIT"; then
7151 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164done
7165 done
7166IFS=$as_save_IFS
7167
7168fi
7169fi
7170NMEDIT=$ac_cv_prog_NMEDIT
7171if test -n "$NMEDIT"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7173$as_echo "$NMEDIT" >&6; }
7174else
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176$as_echo "no" >&6; }
7177fi
7178
7179
7180fi
7181if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184set dummy nmedit; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7188 $as_echo_n "(cached) " >&6
7189else
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205 done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7211if test -n "$ac_ct_NMEDIT"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7213$as_echo "$ac_ct_NMEDIT" >&6; }
7214else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219 if test "x$ac_ct_NMEDIT" = x; then
7220 NMEDIT=":"
7221 else
7222 case $cross_compiling:$ac_tool_warned in
7223yes:)
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226ac_tool_warned=yes ;;
7227esac
7228 NMEDIT=$ac_ct_NMEDIT
7229 fi
7230else
7231 NMEDIT="$ac_cv_prog_NMEDIT"
7232fi
7233
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}lipo; ac_word=$2
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
7239if test "${ac_cv_prog_LIPO+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241else
7242 if test -n "$LIPO"; then
7243 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256done
7257 done
7258IFS=$as_save_IFS
7259
7260fi
7261fi
7262LIPO=$ac_cv_prog_LIPO
7263if test -n "$LIPO"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7265$as_echo "$LIPO" >&6; }
7266else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268$as_echo "no" >&6; }
7269fi
7270
7271
7272fi
7273if test -z "$ac_cv_prog_LIPO"; then
7274 ac_ct_LIPO=$LIPO
7275 # Extract the first word of "lipo", so it can be a program name with args.
7276set dummy lipo; ac_word=$2
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278$as_echo_n "checking for $ac_word... " >&6; }
7279if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281else
7282 if test -n "$ac_ct_LIPO"; then
7283 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_ac_ct_LIPO="lipo"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296done
7297 done
7298IFS=$as_save_IFS
7299
7300fi
7301fi
7302ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7303if test -n "$ac_ct_LIPO"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7305$as_echo "$ac_ct_LIPO" >&6; }
7306else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308$as_echo "no" >&6; }
7309fi
7310
7311 if test "x$ac_ct_LIPO" = x; then
7312 LIPO=":"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315yes:)
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318ac_tool_warned=yes ;;
7319esac
7320 LIPO=$ac_ct_LIPO
7321 fi
7322else
7323 LIPO="$ac_cv_prog_LIPO"
7324fi
7325
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7328set dummy ${ac_tool_prefix}otool; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if test "${ac_cv_prog_OTOOL+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7333else
7334 if test -n "$OTOOL"; then
7335 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349 done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354OTOOL=$ac_cv_prog_OTOOL
7355if test -n "$OTOOL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7357$as_echo "$OTOOL" >&6; }
7358else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363
7364fi
7365if test -z "$ac_cv_prog_OTOOL"; then
7366 ac_ct_OTOOL=$OTOOL
7367 # Extract the first word of "otool", so it can be a program name with args.
7368set dummy otool; ac_word=$2
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
7371if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
7373else
7374 if test -n "$ac_ct_OTOOL"; then
7375 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_ac_ct_OTOOL="otool"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388done
7389 done
7390IFS=$as_save_IFS
7391
7392fi
7393fi
7394ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7395if test -n "$ac_ct_OTOOL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7397$as_echo "$ac_ct_OTOOL" >&6; }
7398else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403 if test "x$ac_ct_OTOOL" = x; then
7404 OTOOL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407yes:)
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410ac_tool_warned=yes ;;
7411esac
7412 OTOOL=$ac_ct_OTOOL
7413 fi
7414else
7415 OTOOL="$ac_cv_prog_OTOOL"
7416fi
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7420set dummy ${ac_tool_prefix}otool64; ac_word=$2
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425else
7426 if test -n "$OTOOL64"; then
7427 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
7441 done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446OTOOL64=$ac_cv_prog_OTOOL64
7447if test -n "$OTOOL64"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7449$as_echo "$OTOOL64" >&6; }
7450else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
7453fi
7454
7455
7456fi
7457if test -z "$ac_cv_prog_OTOOL64"; then
7458 ac_ct_OTOOL64=$OTOOL64
7459 # Extract the first word of "otool64", so it can be a program name with args.
7460set dummy otool64; ac_word=$2
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
7463if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465else
7466 if test -n "$ac_ct_OTOOL64"; then
7467 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_ac_ct_OTOOL64="otool64"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
7481 done
7482IFS=$as_save_IFS
7483
7484fi
7485fi
7486ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7487if test -n "$ac_ct_OTOOL64"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7489$as_echo "$ac_ct_OTOOL64" >&6; }
7490else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
7493fi
7494
7495 if test "x$ac_ct_OTOOL64" = x; then
7496 OTOOL64=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499yes:)
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502ac_tool_warned=yes ;;
7503esac
7504 OTOOL64=$ac_ct_OTOOL64
7505 fi
7506else
7507 OTOOL64="$ac_cv_prog_OTOOL64"
7508fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7537$as_echo_n "checking for -single_module linker flag... " >&6; }
7538if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540else
7541 lt_cv_apple_cc_single_mod=no
7542 if test -z "${LT_MULTI_MODULE}"; then
7543 # By default we will add the -single_module flag. You can override
7544 # by either setting the environment variable LT_MULTI_MODULE
7545 # non-empty at configure time, or by adding -multi_module to the
7546 # link flags.
7547 rm -rf libconftest.dylib*
7548 echo "int foo(void){return 1;}" > conftest.c
7549 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7550-dynamiclib -Wl,-single_module conftest.c" >&5
7551 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7552 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7553 _lt_result=$?
7554 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7555 lt_cv_apple_cc_single_mod=yes
7556 else
7557 cat conftest.err >&5
7558 fi
7559 rm -rf libconftest.dylib*
7560 rm -f conftest.*
7561 fi
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7564$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7566$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7567if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7569else
7570 lt_cv_ld_exported_symbols_list=no
7571 save_LDFLAGS=$LDFLAGS
7572 echo "_main" > conftest.sym
7573 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h. */
7576
7577int
7578main ()
7579{
7580
7581 ;
7582 return 0;
7583}
7584_ACEOF
7585if ac_fn_c_try_link "$LINENO"; then :
7586 lt_cv_ld_exported_symbols_list=yes
7587else
7588 lt_cv_ld_exported_symbols_list=no
7589fi
7590rm -f core conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7592 LDFLAGS="$save_LDFLAGS"
7593
7594fi
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7596$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7597 case $host_os in
7598 rhapsody* | darwin1.[012])
7599 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7600 darwin1.*)
7601 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7602 darwin*) # darwin 5.x on
7603 # if running on 10.5 or later, the deployment target defaults
7604 # to the OS version, if on x86, and 10.4, the deployment
7605 # target defaults to 10.4. Don't you love it?
7606 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7607 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7609 10.[012]*)
7610 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7611 10.*)
7612 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7613 esac
7614 ;;
7615 esac
7616 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7617 _lt_dar_single_mod='$single_module'
7618 fi
7619 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7620 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7621 else
7622 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7623 fi
7624 if test "$DSYMUTIL" != ":"; then
7625 _lt_dsymutil='~$DSYMUTIL $lib || :'
7626 else
7627 _lt_dsymutil=
7628 fi
7629 ;;
7630 esac
7631
7632
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7634$as_echo_n "checking for ANSI C header files... " >&6; }
7635if test "${ac_cv_header_stdc+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7637else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h. */
7640#include <stdlib.h>
7641#include <stdarg.h>
7642#include <string.h>
7643#include <float.h>
7644
7645int
7646main ()
7647{
7648
7649 ;
7650 return 0;
7651}
7652_ACEOF
7653if ac_fn_c_try_compile "$LINENO"; then :
7654 ac_cv_header_stdc=yes
7655else
7656 ac_cv_header_stdc=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659
7660if test $ac_cv_header_stdc = yes; then
7661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h. */
7664#include <string.h>
7665
7666_ACEOF
7667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7668 $EGREP "memchr" >/dev/null 2>&1; then :
7669
7670else
7671 ac_cv_header_stdc=no
7672fi
7673rm -f conftest*
7674
7675fi
7676
7677if test $ac_cv_header_stdc = yes; then
7678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h. */
7681#include <stdlib.h>
7682
7683_ACEOF
7684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "free" >/dev/null 2>&1; then :
7686
7687else
7688 ac_cv_header_stdc=no
7689fi
7690rm -f conftest*
7691
7692fi
7693
7694if test $ac_cv_header_stdc = yes; then
7695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7696 if test "$cross_compiling" = yes; then :
7697 :
7698else
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h. */
7701#include <ctype.h>
7702#include <stdlib.h>
7703#if ((' ' & 0x0FF) == 0x020)
7704# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7705# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7706#else
7707# define ISLOWER(c) \
7708 (('a' <= (c) && (c) <= 'i') \
7709 || ('j' <= (c) && (c) <= 'r') \
7710 || ('s' <= (c) && (c) <= 'z'))
7711# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7712#endif
7713
7714#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7715int
7716main ()
7717{
7718 int i;
7719 for (i = 0; i < 256; i++)
7720 if (XOR (islower (i), ISLOWER (i))
7721 || toupper (i) != TOUPPER (i))
7722 return 2;
7723 return 0;
7724}
7725_ACEOF
7726if ac_fn_c_try_run "$LINENO"; then :
7727
7728else
7729 ac_cv_header_stdc=no
7730fi
7731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7732 conftest.$ac_objext conftest.beam conftest.$ac_ext
7733fi
7734
7735fi
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7738$as_echo "$ac_cv_header_stdc" >&6; }
7739if test $ac_cv_header_stdc = yes; then
7740
7741$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7742
7743fi
7744
7745# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7747 inttypes.h stdint.h unistd.h
7748do :
7749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7750ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7751"
7752eval as_val=\$$as_ac_Header
7753 if test "x$as_val" = x""yes; then :
7754 cat >>confdefs.h <<_ACEOF
7755#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7756_ACEOF
7757
7758fi
7759
7760done
7761
7762
7763for ac_header in dlfcn.h
7764do :
7765 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7766"
7767if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7768 cat >>confdefs.h <<_ACEOF
7769#define HAVE_DLFCN_H 1
7770_ACEOF
7771
7772fi
7773
7774done
7775
7776
7777
7778ac_ext=cpp
7779ac_cpp='$CXXCPP $CPPFLAGS'
7780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7783if test -z "$CXX"; then
7784 if test -n "$CCC"; then
7785 CXX=$CCC
7786 else
7787 if test -n "$ac_tool_prefix"; then
7788 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7789 do
7790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
7794if test "${ac_cv_prog_CXX+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796else
7797 if test -n "$CXX"; then
7798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7799else
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811done
7812 done
7813IFS=$as_save_IFS
7814
7815fi
7816fi
7817CXX=$ac_cv_prog_CXX
7818if test -n "$CXX"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7820$as_echo "$CXX" >&6; }
7821else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
7824fi
7825
7826
7827 test -n "$CXX" && break
7828 done
7829fi
7830if test -z "$CXX"; then
7831 ac_ct_CXX=$CXX
7832 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7833do
7834 # Extract the first word of "$ac_prog", so it can be a program name with args.
7835set dummy $ac_prog; ac_word=$2
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837$as_echo_n "checking for $ac_word... " >&6; }
7838if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840else
7841 if test -n "$ac_ct_CXX"; then
7842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_prog_ac_ct_CXX="$ac_prog"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856 done
7857IFS=$as_save_IFS
7858
7859fi
7860fi
7861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7862if test -n "$ac_ct_CXX"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7864$as_echo "$ac_ct_CXX" >&6; }
7865else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
7868fi
7869
7870
7871 test -n "$ac_ct_CXX" && break
7872done
7873
7874 if test "x$ac_ct_CXX" = x; then
7875 CXX="g++"
7876 else
7877 case $cross_compiling:$ac_tool_warned in
7878yes:)
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7881ac_tool_warned=yes ;;
7882esac
7883 CXX=$ac_ct_CXX
7884 fi
7885fi
7886
7887 fi
7888fi
7889# Provide some information about the compiler.
7890$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7891set X $ac_compile
7892ac_compiler=$2
7893for ac_option in --version -v -V -qversion; do
7894 { { ac_try="$ac_compiler $ac_option >&5"
7895case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898esac
7899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7900$as_echo "$ac_try_echo"; } >&5
7901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7902 ac_status=$?
7903 if test -s conftest.err; then
7904 sed '10a\
7905... rest of stderr output deleted ...
7906 10q' conftest.err >conftest.er1
7907 cat conftest.er1 >&5
7908 fi
7909 rm -f conftest.er1 conftest.err
7910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911 test $ac_status = 0; }
7912done
7913
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7915$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7916if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h. */
7921
7922int
7923main ()
7924{
7925#ifndef __GNUC__
7926 choke me
7927#endif
7928
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933if ac_fn_cxx_try_compile "$LINENO"; then :
7934 ac_compiler_gnu=yes
7935else
7936 ac_compiler_gnu=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7940
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7943$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7944if test $ac_compiler_gnu = yes; then
7945 GXX=yes
7946else
7947 GXX=
7948fi
7949ac_test_CXXFLAGS=${CXXFLAGS+set}
7950ac_save_CXXFLAGS=$CXXFLAGS
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7952$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7953if test "${ac_cv_prog_cxx_g+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955else
7956 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7957 ac_cxx_werror_flag=yes
7958 ac_cv_prog_cxx_g=no
7959 CXXFLAGS="-g"
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h. */
7962
7963int
7964main ()
7965{
7966
7967 ;
7968 return 0;
7969}
7970_ACEOF
7971if ac_fn_cxx_try_compile "$LINENO"; then :
7972 ac_cv_prog_cxx_g=yes
7973else
7974 CXXFLAGS=""
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h. */
7977
7978int
7979main ()
7980{
7981
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986if ac_fn_cxx_try_compile "$LINENO"; then :
7987
7988else
7989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7990 CXXFLAGS="-g"
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h. */
7993
7994int
7995main ()
7996{
7997
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002if ac_fn_cxx_try_compile "$LINENO"; then :
8003 ac_cv_prog_cxx_g=yes
8004fi
8005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006fi
8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008fi
8009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8013$as_echo "$ac_cv_prog_cxx_g" >&6; }
8014if test "$ac_test_CXXFLAGS" = set; then
8015 CXXFLAGS=$ac_save_CXXFLAGS
8016elif test $ac_cv_prog_cxx_g = yes; then
8017 if test "$GXX" = yes; then
8018 CXXFLAGS="-g -O2"
8019 else
8020 CXXFLAGS="-g"
8021 fi
8022else
8023 if test "$GXX" = yes; then
8024 CXXFLAGS="-O2"
8025 else
8026 CXXFLAGS=
8027 fi
8028fi
8029ac_ext=cpp
8030ac_cpp='$CXXCPP $CPPFLAGS'
8031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8034
8035depcc="$CXX" am_compiler_list=
8036
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8038$as_echo_n "checking dependency style of $depcc... " >&6; }
8039if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8041else
8042 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8043 # We make a subdir and do the tests there. Otherwise we can end up
8044 # making bogus files that we don't know about and never remove. For
8045 # instance it was reported that on HP-UX the gcc test will end up
8046 # making a dummy file named `D' -- because `-MD' means `put the output
8047 # in D'.
8048 mkdir conftest.dir
8049 # Copy depcomp to subdir because otherwise we won't find it if we're
8050 # using a relative directory.
8051 cp "$am_depcomp" conftest.dir
8052 cd conftest.dir
8053 # We will build objects and dependencies in a subdirectory because
8054 # it helps to detect inapplicable dependency modes. For instance
8055 # both Tru64's cc and ICC support -MD to output dependencies as a
8056 # side effect of compilation, but ICC will put the dependencies in
8057 # the current directory while Tru64 will put them in the object
8058 # directory.
8059 mkdir sub
8060
8061 am_cv_CXX_dependencies_compiler_type=none
8062 if test "$am_compiler_list" = ""; then
8063 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8064 fi
8065 am__universal=false
8066 case " $depcc " in #(
8067 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8068 esac
8069
8070 for depmode in $am_compiler_list; do
8071 # Setup a source with many dependencies, because some compilers
8072 # like to wrap large dependency lists on column 80 (with \), and
8073 # we should not choose a depcomp mode which is confused by this.
8074 #
8075 # We need to recreate these files for each test, as the compiler may
8076 # overwrite some of them when testing with obscure command lines.
8077 # This happens at least with the AIX C compiler.
8078 : > sub/conftest.c
8079 for i in 1 2 3 4 5 6; do
8080 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8081 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8082 # Solaris 8's {/usr,}/bin/sh.
8083 touch sub/conftst$i.h
8084 done
8085 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8086
8087 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8088 # mode. It turns out that the SunPro C++ compiler does not properly
8089 # handle `-M -o', and we need to detect this. Also, some Intel
8090 # versions had trouble with output in subdirs
8091 am__obj=sub/conftest.${OBJEXT-o}
8092 am__minus_obj="-o $am__obj"
8093 case $depmode in
8094 gcc)
8095 # This depmode causes a compiler race in universal mode.
8096 test "$am__universal" = false || continue
8097 ;;
8098 nosideeffect)
8099 # after this tag, mechanisms are not by side-effect, so they'll
8100 # only be used when explicitly requested
8101 if test "x$enable_dependency_tracking" = xyes; then
8102 continue
8103 else
8104 break
8105 fi
8106 ;;
8107 msvisualcpp | msvcmsys)
8108 # This compiler won't grok `-c -o', but also, the minuso test has
8109 # not run yet. These depmodes are late enough in the game, and
8110 # so weak that their functioning should not be impacted.
8111 am__obj=conftest.${OBJEXT-o}
8112 am__minus_obj=
8113 ;;
8114 none) break ;;
8115 esac
8116 if depmode=$depmode \
8117 source=sub/conftest.c object=$am__obj \
8118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8119 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8120 >/dev/null 2>conftest.err &&
8121 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8123 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8125 # icc doesn't choke on unknown options, it will just issue warnings
8126 # or remarks (even with -Werror). So we grep stderr for any message
8127 # that says an option was ignored or not supported.
8128 # When given -MP, icc 7.0 and 7.1 complain thusly:
8129 # icc: Command line warning: ignoring option '-M'; no argument required
8130 # The diagnosis changed in icc 8.0:
8131 # icc: Command line remark: option '-MP' not supported
8132 if (grep 'ignoring option' conftest.err ||
8133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8134 am_cv_CXX_dependencies_compiler_type=$depmode
8135 break
8136 fi
8137 fi
8138 done
8139
8140 cd ..
8141 rm -rf conftest.dir
8142else
8143 am_cv_CXX_dependencies_compiler_type=none
8144fi
8145
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8148$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8149CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8150
8151 if
8152 test "x$enable_dependency_tracking" != xno \
8153 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8154 am__fastdepCXX_TRUE=
8155 am__fastdepCXX_FALSE='#'
8156else
8157 am__fastdepCXX_TRUE='#'
8158 am__fastdepCXX_FALSE=
8159fi
8160
8161
8162if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8163 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8164 (test "X$CXX" != "Xg++"))) ; then
8165 ac_ext=cpp
8166ac_cpp='$CXXCPP $CPPFLAGS'
8167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8171$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8172if test -z "$CXXCPP"; then
8173 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175else
8176 # Double quotes because CXXCPP needs to be expanded
8177 for CXXCPP in "$CXX -E" "/lib/cpp"
8178 do
8179 ac_preproc_ok=false
8180for ac_cxx_preproc_warn_flag in '' yes
8181do
8182 # Use a header file that comes with gcc, so configuring glibc
8183 # with a fresh cross-compiler works.
8184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8185 # <limits.h> exists even on freestanding compilers.
8186 # On the NeXT, cc -E runs the code through the compiler's parser,
8187 # not just through cpp. "Syntax error" is here to catch this case.
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h. */
8190#ifdef __STDC__
8191# include <limits.h>
8192#else
8193# include <assert.h>
8194#endif
8195 Syntax error
8196_ACEOF
8197if ac_fn_cxx_try_cpp "$LINENO"; then :
8198
8199else
8200 # Broken: fails on valid input.
8201continue
8202fi
8203rm -f conftest.err conftest.$ac_ext
8204
8205 # OK, works on sane cases. Now check whether nonexistent headers
8206 # can be detected and how.
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h. */
8209#include <ac_nonexistent.h>
8210_ACEOF
8211if ac_fn_cxx_try_cpp "$LINENO"; then :
8212 # Broken: success on invalid input.
8213continue
8214else
8215 # Passes both tests.
8216ac_preproc_ok=:
8217break
8218fi
8219rm -f conftest.err conftest.$ac_ext
8220
8221done
8222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8223rm -f conftest.err conftest.$ac_ext
8224if $ac_preproc_ok; then :
8225 break
8226fi
8227
8228 done
8229 ac_cv_prog_CXXCPP=$CXXCPP
8230
8231fi
8232 CXXCPP=$ac_cv_prog_CXXCPP
8233else
8234 ac_cv_prog_CXXCPP=$CXXCPP
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8237$as_echo "$CXXCPP" >&6; }
8238ac_preproc_ok=false
8239for ac_cxx_preproc_warn_flag in '' yes
8240do
8241 # Use a header file that comes with gcc, so configuring glibc
8242 # with a fresh cross-compiler works.
8243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8244 # <limits.h> exists even on freestanding compilers.
8245 # On the NeXT, cc -E runs the code through the compiler's parser,
8246 # not just through cpp. "Syntax error" is here to catch this case.
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248/* end confdefs.h. */
8249#ifdef __STDC__
8250# include <limits.h>
8251#else
8252# include <assert.h>
8253#endif
8254 Syntax error
8255_ACEOF
8256if ac_fn_cxx_try_cpp "$LINENO"; then :
8257
8258else
8259 # Broken: fails on valid input.
8260continue
8261fi
8262rm -f conftest.err conftest.$ac_ext
8263
8264 # OK, works on sane cases. Now check whether nonexistent headers
8265 # can be detected and how.
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h. */
8268#include <ac_nonexistent.h>
8269_ACEOF
8270if ac_fn_cxx_try_cpp "$LINENO"; then :
8271 # Broken: success on invalid input.
8272continue
8273else
8274 # Passes both tests.
8275ac_preproc_ok=:
8276break
8277fi
8278rm -f conftest.err conftest.$ac_ext
8279
8280done
8281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8282rm -f conftest.err conftest.$ac_ext
8283if $ac_preproc_ok; then :
8284
8285else
8286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8288_lt_caught_CXX_error=yes; }
8289fi
8290
8291ac_ext=cpp
8292ac_cpp='$CXXCPP $CPPFLAGS'
8293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8296
8297else
8298 _lt_caught_CXX_error=yes
8299fi
8300
8301
8302
8303
8304
8305# Set options
8306
8307
8308
8309 enable_dlopen=no
8310
8311
8312 enable_win32_dll=no
8313
8314
8315 # Check whether --enable-shared was given.
8316if test "${enable_shared+set}" = set; then :
8317 enableval=$enable_shared; p=${PACKAGE-default}
8318 case $enableval in
8319 yes) enable_shared=yes ;;
8320 no) enable_shared=no ;;
8321 *)
8322 enable_shared=no
8323 # Look at the argument we got. We use all the common list separators.
8324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8325 for pkg in $enableval; do
8326 IFS="$lt_save_ifs"
8327 if test "X$pkg" = "X$p"; then
8328 enable_shared=yes
8329 fi
8330 done
8331 IFS="$lt_save_ifs"
8332 ;;
8333 esac
8334else
8335 enable_shared=yes
8336fi
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346 # Check whether --enable-static was given.
8347if test "${enable_static+set}" = set; then :
8348 enableval=$enable_static; p=${PACKAGE-default}
8349 case $enableval in
8350 yes) enable_static=yes ;;
8351 no) enable_static=no ;;
8352 *)
8353 enable_static=no
8354 # Look at the argument we got. We use all the common list separators.
8355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8356 for pkg in $enableval; do
8357 IFS="$lt_save_ifs"
8358 if test "X$pkg" = "X$p"; then
8359 enable_static=yes
8360 fi
8361 done
8362 IFS="$lt_save_ifs"
8363 ;;
8364 esac
8365else
8366 enable_static=yes
8367fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378# Check whether --with-pic was given.
8379if test "${with_pic+set}" = set; then :
8380 withval=$with_pic; pic_mode="$withval"
8381else
8382 pic_mode=default
8383fi
8384
8385
8386test -z "$pic_mode" && pic_mode=default
8387
8388
8389
8390
8391
8392
8393
8394 # Check whether --enable-fast-install was given.
8395if test "${enable_fast_install+set}" = set; then :
8396 enableval=$enable_fast_install; p=${PACKAGE-default}
8397 case $enableval in
8398 yes) enable_fast_install=yes ;;
8399 no) enable_fast_install=no ;;
8400 *)
8401 enable_fast_install=no
8402 # Look at the argument we got. We use all the common list separators.
8403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8404 for pkg in $enableval; do
8405 IFS="$lt_save_ifs"
8406 if test "X$pkg" = "X$p"; then
8407 enable_fast_install=yes
8408 fi
8409 done
8410 IFS="$lt_save_ifs"
8411 ;;
8412 esac
8413else
8414 enable_fast_install=yes
8415fi
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427# This can be used to rebuild libtool when needed
8428LIBTOOL_DEPS="$ltmain"
8429
8430# Always use our own libtool.
8431LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457test -z "$LN_S" && LN_S="ln -s"
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472if test -n "${ZSH_VERSION+set}" ; then
8473 setopt NO_GLOB_SUBST
8474fi
8475
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8477$as_echo_n "checking for objdir... " >&6; }
8478if test "${lt_cv_objdir+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8480else
8481 rm -f .libs 2>/dev/null
8482mkdir .libs 2>/dev/null
8483if test -d .libs; then
8484 lt_cv_objdir=.libs
8485else
8486 # MS-DOS does not allow filenames that begin with a dot.
8487 lt_cv_objdir=_libs
8488fi
8489rmdir .libs 2>/dev/null
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8492$as_echo "$lt_cv_objdir" >&6; }
8493objdir=$lt_cv_objdir
8494
8495
8496
8497
8498
8499cat >>confdefs.h <<_ACEOF
8500#define LT_OBJDIR "$lt_cv_objdir/"
8501_ACEOF
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519case $host_os in
8520aix3*)
8521 # AIX sometimes has problems with the GCC collect2 program. For some
8522 # reason, if we set the COLLECT_NAMES environment variable, the problems
8523 # vanish in a puff of smoke.
8524 if test "X${COLLECT_NAMES+set}" != Xset; then
8525 COLLECT_NAMES=
8526 export COLLECT_NAMES
8527 fi
8528 ;;
8529esac
8530
8531# Sed substitution that helps us do robust quoting. It backslashifies
8532# metacharacters that are still active within double-quoted strings.
8533sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8534
8535# Same as above, but do not quote variable references.
8536double_quote_subst='s/\(["`\\]\)/\\\1/g'
8537
8538# Sed substitution to delay expansion of an escaped shell variable in a
8539# double_quote_subst'ed string.
8540delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8541
8542# Sed substitution to delay expansion of an escaped single quote.
8543delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8544
8545# Sed substitution to avoid accidental globbing in evaled expressions
8546no_glob_subst='s/\*/\\\*/g'
8547
8548# Global variables:
8549ofile=libtool
8550can_build_shared=yes
8551
8552# All known linkers require a `.a' archive for static linking (except MSVC,
8553# which needs '.lib').
8554libext=a
8555
8556with_gnu_ld="$lt_cv_prog_gnu_ld"
8557
8558old_CC="$CC"
8559old_CFLAGS="$CFLAGS"
8560
8561# Set sane defaults for various variables
8562test -z "$CC" && CC=cc
8563test -z "$LTCC" && LTCC=$CC
8564test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8565test -z "$LD" && LD=ld
8566test -z "$ac_objext" && ac_objext=o
8567
8568for cc_temp in $compiler""; do
8569 case $cc_temp in
8570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8572 \-*) ;;
8573 *) break;;
8574 esac
8575done
8576cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8577
8578
8579# Only perform the check for file, if the check method requires it
8580test -z "$MAGIC_CMD" && MAGIC_CMD=file
8581case $deplibs_check_method in
8582file_magic*)
8583 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8585$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8586if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8588else
8589 case $MAGIC_CMD in
8590[\\/*] | ?:[\\/]*)
8591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8592 ;;
8593*)
8594 lt_save_MAGIC_CMD="$MAGIC_CMD"
8595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8596 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8597 for ac_dir in $ac_dummy; do
8598 IFS="$lt_save_ifs"
8599 test -z "$ac_dir" && ac_dir=.
8600 if test -f $ac_dir/${ac_tool_prefix}file; then
8601 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8602 if test -n "$file_magic_test_file"; then
8603 case $deplibs_check_method in
8604 "file_magic "*)
8605 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8607 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8608 $EGREP "$file_magic_regex" > /dev/null; then
8609 :
8610 else
8611 cat <<_LT_EOF 1>&2
8612
8613*** Warning: the command libtool uses to detect shared libraries,
8614*** $file_magic_cmd, produces output that libtool cannot recognize.
8615*** The result is that libtool may fail to recognize shared libraries
8616*** as such. This will affect the creation of libtool libraries that
8617*** depend on shared libraries, but programs linked with such libtool
8618*** libraries will work regardless of this problem. Nevertheless, you
8619*** may want to report the problem to your system manager and/or to
8620*** bug-libtool@gnu.org
8621
8622_LT_EOF
8623 fi ;;
8624 esac
8625 fi
8626 break
8627 fi
8628 done
8629 IFS="$lt_save_ifs"
8630 MAGIC_CMD="$lt_save_MAGIC_CMD"
8631 ;;
8632esac
8633fi
8634
8635MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8636if test -n "$MAGIC_CMD"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8638$as_echo "$MAGIC_CMD" >&6; }
8639else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
8642fi
8643
8644
8645
8646
8647
8648if test -z "$lt_cv_path_MAGIC_CMD"; then
8649 if test -n "$ac_tool_prefix"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8651$as_echo_n "checking for file... " >&6; }
8652if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654else
8655 case $MAGIC_CMD in
8656[\\/*] | ?:[\\/]*)
8657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8658 ;;
8659*)
8660 lt_save_MAGIC_CMD="$MAGIC_CMD"
8661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8663 for ac_dir in $ac_dummy; do
8664 IFS="$lt_save_ifs"
8665 test -z "$ac_dir" && ac_dir=.
8666 if test -f $ac_dir/file; then
8667 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8668 if test -n "$file_magic_test_file"; then
8669 case $deplibs_check_method in
8670 "file_magic "*)
8671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8674 $EGREP "$file_magic_regex" > /dev/null; then
8675 :
8676 else
8677 cat <<_LT_EOF 1>&2
8678
8679*** Warning: the command libtool uses to detect shared libraries,
8680*** $file_magic_cmd, produces output that libtool cannot recognize.
8681*** The result is that libtool may fail to recognize shared libraries
8682*** as such. This will affect the creation of libtool libraries that
8683*** depend on shared libraries, but programs linked with such libtool
8684*** libraries will work regardless of this problem. Nevertheless, you
8685*** may want to report the problem to your system manager and/or to
8686*** bug-libtool@gnu.org
8687
8688_LT_EOF
8689 fi ;;
8690 esac
8691 fi
8692 break
8693 fi
8694 done
8695 IFS="$lt_save_ifs"
8696 MAGIC_CMD="$lt_save_MAGIC_CMD"
8697 ;;
8698esac
8699fi
8700
8701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8702if test -n "$MAGIC_CMD"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8704$as_echo "$MAGIC_CMD" >&6; }
8705else
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707$as_echo "no" >&6; }
8708fi
8709
8710
8711 else
8712 MAGIC_CMD=:
8713 fi
8714fi
8715
8716 fi
8717 ;;
8718esac
8719
8720# Use C for the default configuration in the libtool script
8721
8722lt_save_CC="$CC"
8723ac_ext=c
8724ac_cpp='$CPP $CPPFLAGS'
8725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727ac_compiler_gnu=$ac_cv_c_compiler_gnu
8728
8729
8730# Source file extension for C test sources.
8731ac_ext=c
8732
8733# Object file extension for compiled C test sources.
8734objext=o
8735objext=$objext
8736
8737# Code to be used in simple compile tests
8738lt_simple_compile_test_code="int some_variable = 0;"
8739
8740# Code to be used in simple link tests
8741lt_simple_link_test_code='int main(){return(0);}'
8742
8743
8744
8745
8746
8747
8748
8749# If no C compiler was specified, use CC.
8750LTCC=${LTCC-"$CC"}
8751
8752# If no C compiler flags were specified, use CFLAGS.
8753LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8754
8755# Allow CC to be a program name with arguments.
8756compiler=$CC
8757
8758# Save the default compiler, since it gets overwritten when the other
8759# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8760compiler_DEFAULT=$CC
8761
8762# save warnings/boilerplate of simple test code
8763ac_outfile=conftest.$ac_objext
8764echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8765eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8766_lt_compiler_boilerplate=`cat conftest.err`
8767$RM conftest*
8768
8769ac_outfile=conftest.$ac_objext
8770echo "$lt_simple_link_test_code" >conftest.$ac_ext
8771eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8772_lt_linker_boilerplate=`cat conftest.err`
8773$RM -r conftest*
8774
8775
8776## CAVEAT EMPTOR:
8777## There is no encapsulation within the following macros, do not change
8778## the running order or otherwise move them around unless you know exactly
8779## what you are doing...
8780if test -n "$compiler"; then
8781
8782lt_prog_compiler_no_builtin_flag=
8783
8784if test "$GCC" = yes; then
8785 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8788$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8789if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8791else
8792 lt_cv_prog_compiler_rtti_exceptions=no
8793 ac_outfile=conftest.$ac_objext
8794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795 lt_compiler_flag="-fno-rtti -fno-exceptions"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 # The option is referenced via a variable to avoid confusing sed.
8801 lt_compile=`echo "$ac_compile" | $SED \
8802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804 -e 's:$: $lt_compiler_flag:'`
8805 (eval echo "\"\$as_me:8805: $lt_compile\"" >&5)
8806 (eval "$lt_compile" 2>conftest.err)
8807 ac_status=$?
8808 cat conftest.err >&5
8809 echo "$as_me:8809: \$? = $ac_status" >&5
8810 if (exit $ac_status) && test -s "$ac_outfile"; then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings other than the usual output.
8813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_rtti_exceptions=yes
8817 fi
8818 fi
8819 $RM conftest*
8820
8821fi
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8823$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8824
8825if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8827else
8828 :
8829fi
8830
8831fi
8832
8833
8834
8835
8836
8837
8838 lt_prog_compiler_wl=
8839lt_prog_compiler_pic=
8840lt_prog_compiler_static=
8841
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8843$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8844
8845 if test "$GCC" = yes; then
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_static='-static'
8848
8849 case $host_os in
8850 aix*)
8851 # All AIX code is PIC.
8852 if test "$host_cpu" = ia64; then
8853 # AIX 5 now supports IA64 processor
8854 lt_prog_compiler_static='-Bstatic'
8855 fi
8856 ;;
8857
8858 amigaos*)
8859 case $host_cpu in
8860 powerpc)
8861 # see comment about AmigaOS4 .so support
8862 lt_prog_compiler_pic='-fPIC'
8863 ;;
8864 m68k)
8865 # FIXME: we need at least 68020 code to build shared libraries, but
8866 # adding the `-m68020' flag to GCC prevents building anything better,
8867 # like `-m68040'.
8868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8869 ;;
8870 esac
8871 ;;
8872
8873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8874 # PIC is the default for these OSes.
8875 ;;
8876
8877 mingw* | cygwin* | pw32* | os2* | cegcc*)
8878 # This hack is so that the source file can tell whether it is being
8879 # built for inclusion in a dll (and should export symbols for example).
8880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8881 # (--disable-auto-import) libraries
8882 lt_prog_compiler_pic='-DDLL_EXPORT'
8883 ;;
8884
8885 darwin* | rhapsody*)
8886 # PIC is the default on this platform
8887 # Common symbols not allowed in MH_DYLIB files
8888 lt_prog_compiler_pic='-fno-common'
8889 ;;
8890
8891 hpux*)
8892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8894 # sets the default TLS model and affects inlining.
8895 case $host_cpu in
8896 hppa*64*)
8897 # +Z the default
8898 ;;
8899 *)
8900 lt_prog_compiler_pic='-fPIC'
8901 ;;
8902 esac
8903 ;;
8904
8905 interix[3-9]*)
8906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8907 # Instead, we relocate shared libraries at runtime.
8908 ;;
8909
8910 msdosdjgpp*)
8911 # Just because we use GCC doesn't mean we suddenly get shared libraries
8912 # on systems that don't support them.
8913 lt_prog_compiler_can_build_shared=no
8914 enable_shared=no
8915 ;;
8916
8917 *nto* | *qnx*)
8918 # QNX uses GNU C++, but need to define -shared option too, otherwise
8919 # it will coredump.
8920 lt_prog_compiler_pic='-fPIC -shared'
8921 ;;
8922
8923 sysv4*MP*)
8924 if test -d /usr/nec; then
8925 lt_prog_compiler_pic=-Kconform_pic
8926 fi
8927 ;;
8928
8929 *)
8930 lt_prog_compiler_pic='-fPIC'
8931 ;;
8932 esac
8933 else
8934 # PORTME Check for flag to pass linker flags through the system compiler.
8935 case $host_os in
8936 aix*)
8937 lt_prog_compiler_wl='-Wl,'
8938 if test "$host_cpu" = ia64; then
8939 # AIX 5 now supports IA64 processor
8940 lt_prog_compiler_static='-Bstatic'
8941 else
8942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8943 fi
8944 ;;
8945
8946 mingw* | cygwin* | pw32* | os2* | cegcc*)
8947 # This hack is so that the source file can tell whether it is being
8948 # built for inclusion in a dll (and should export symbols for example).
8949 lt_prog_compiler_pic='-DDLL_EXPORT'
8950 ;;
8951
8952 hpux9* | hpux10* | hpux11*)
8953 lt_prog_compiler_wl='-Wl,'
8954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8955 # not for PA HP-UX.
8956 case $host_cpu in
8957 hppa*64*|ia64*)
8958 # +Z the default
8959 ;;
8960 *)
8961 lt_prog_compiler_pic='+Z'
8962 ;;
8963 esac
8964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8965 lt_prog_compiler_static='${wl}-a ${wl}archive'
8966 ;;
8967
8968 irix5* | irix6* | nonstopux*)
8969 lt_prog_compiler_wl='-Wl,'
8970 # PIC (with -KPIC) is the default.
8971 lt_prog_compiler_static='-non_shared'
8972 ;;
8973
8974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8975 case $cc_basename in
8976 # old Intel for x86_64 which still supported -KPIC.
8977 ecc*)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-static'
8981 ;;
8982 # icc used to be incompatible with GCC.
8983 # ICC 10 doesn't accept -KPIC any more.
8984 icc* | ifort*)
8985 lt_prog_compiler_wl='-Wl,'
8986 lt_prog_compiler_pic='-fPIC'
8987 lt_prog_compiler_static='-static'
8988 ;;
8989 # Lahey Fortran 8.1.
8990 lf95*)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='--shared'
8993 lt_prog_compiler_static='--static'
8994 ;;
8995 pgcc* | pgf77* | pgf90* | pgf95*)
8996 # Portland Group compilers (*not* the Pentium gcc compiler,
8997 # which looks to be a dead project)
8998 lt_prog_compiler_wl='-Wl,'
8999 lt_prog_compiler_pic='-fpic'
9000 lt_prog_compiler_static='-Bstatic'
9001 ;;
9002 ccc*)
9003 lt_prog_compiler_wl='-Wl,'
9004 # All Alpha code is PIC.
9005 lt_prog_compiler_static='-non_shared'
9006 ;;
9007 xl*)
9008 # IBM XL C 8.0/Fortran 10.1 on PPC
9009 lt_prog_compiler_wl='-Wl,'
9010 lt_prog_compiler_pic='-qpic'
9011 lt_prog_compiler_static='-qstaticlink'
9012 ;;
9013 *)
9014 case `$CC -V 2>&1 | sed 5q` in
9015 *Sun\ C*)
9016 # Sun C 5.9
9017 lt_prog_compiler_pic='-KPIC'
9018 lt_prog_compiler_static='-Bstatic'
9019 lt_prog_compiler_wl='-Wl,'
9020 ;;
9021 *Sun\ F*)
9022 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9023 lt_prog_compiler_pic='-KPIC'
9024 lt_prog_compiler_static='-Bstatic'
9025 lt_prog_compiler_wl=''
9026 ;;
9027 esac
9028 ;;
9029 esac
9030 ;;
9031
9032 newsos6)
9033 lt_prog_compiler_pic='-KPIC'
9034 lt_prog_compiler_static='-Bstatic'
9035 ;;
9036
9037 *nto* | *qnx*)
9038 # QNX uses GNU C++, but need to define -shared option too, otherwise
9039 # it will coredump.
9040 lt_prog_compiler_pic='-fPIC -shared'
9041 ;;
9042
9043 osf3* | osf4* | osf5*)
9044 lt_prog_compiler_wl='-Wl,'
9045 # All OSF/1 code is PIC.
9046 lt_prog_compiler_static='-non_shared'
9047 ;;
9048
9049 rdos*)
9050 lt_prog_compiler_static='-non_shared'
9051 ;;
9052
9053 solaris*)
9054 lt_prog_compiler_pic='-KPIC'
9055 lt_prog_compiler_static='-Bstatic'
9056 case $cc_basename in
9057 f77* | f90* | f95*)
9058 lt_prog_compiler_wl='-Qoption ld ';;
9059 *)
9060 lt_prog_compiler_wl='-Wl,';;
9061 esac
9062 ;;
9063
9064 sunos4*)
9065 lt_prog_compiler_wl='-Qoption ld '
9066 lt_prog_compiler_pic='-PIC'
9067 lt_prog_compiler_static='-Bstatic'
9068 ;;
9069
9070 sysv4 | sysv4.2uw2* | sysv4.3*)
9071 lt_prog_compiler_wl='-Wl,'
9072 lt_prog_compiler_pic='-KPIC'
9073 lt_prog_compiler_static='-Bstatic'
9074 ;;
9075
9076 sysv4*MP*)
9077 if test -d /usr/nec ;then
9078 lt_prog_compiler_pic='-Kconform_pic'
9079 lt_prog_compiler_static='-Bstatic'
9080 fi
9081 ;;
9082
9083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9084 lt_prog_compiler_wl='-Wl,'
9085 lt_prog_compiler_pic='-KPIC'
9086 lt_prog_compiler_static='-Bstatic'
9087 ;;
9088
9089 unicos*)
9090 lt_prog_compiler_wl='-Wl,'
9091 lt_prog_compiler_can_build_shared=no
9092 ;;
9093
9094 uts4*)
9095 lt_prog_compiler_pic='-pic'
9096 lt_prog_compiler_static='-Bstatic'
9097 ;;
9098
9099 *)
9100 lt_prog_compiler_can_build_shared=no
9101 ;;
9102 esac
9103 fi
9104
9105case $host_os in
9106 # For platforms which do not support PIC, -DPIC is meaningless:
9107 *djgpp*)
9108 lt_prog_compiler_pic=
9109 ;;
9110 *)
9111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9112 ;;
9113esac
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9115$as_echo "$lt_prog_compiler_pic" >&6; }
9116
9117
9118
9119
9120
9121
9122#
9123# Check to make sure the PIC flag actually works.
9124#
9125if test -n "$lt_prog_compiler_pic"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9127$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9128if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9130else
9131 lt_cv_prog_compiler_pic_works=no
9132 ac_outfile=conftest.$ac_objext
9133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9135 # Insert the option either (1) after the last *FLAGS variable, or
9136 # (2) before a word containing "conftest.", or (3) at the end.
9137 # Note that $ac_compile itself does not contain backslashes and begins
9138 # with a dollar sign (not a hyphen), so the echo should work correctly.
9139 # The option is referenced via a variable to avoid confusing sed.
9140 lt_compile=`echo "$ac_compile" | $SED \
9141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9143 -e 's:$: $lt_compiler_flag:'`
9144 (eval echo "\"\$as_me:9144: $lt_compile\"" >&5)
9145 (eval "$lt_compile" 2>conftest.err)
9146 ac_status=$?
9147 cat conftest.err >&5
9148 echo "$as_me:9148: \$? = $ac_status" >&5
9149 if (exit $ac_status) && test -s "$ac_outfile"; then
9150 # The compiler can only warn and ignore the option if not recognized
9151 # So say no if there are warnings other than the usual output.
9152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9155 lt_cv_prog_compiler_pic_works=yes
9156 fi
9157 fi
9158 $RM conftest*
9159
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9162$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9163
9164if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9165 case $lt_prog_compiler_pic in
9166 "" | " "*) ;;
9167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9168 esac
9169else
9170 lt_prog_compiler_pic=
9171 lt_prog_compiler_can_build_shared=no
9172fi
9173
9174fi
9175
9176
9177
9178
9179
9180
9181#
9182# Check to make sure the static flag actually works.
9183#
9184wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9186$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9187if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189else
9190 lt_cv_prog_compiler_static_works=no
9191 save_LDFLAGS="$LDFLAGS"
9192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9195 # The linker can only warn and ignore the option if not recognized
9196 # So say no if there are warnings
9197 if test -s conftest.err; then
9198 # Append any errors to the config.log.
9199 cat conftest.err 1>&5
9200 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9202 if diff conftest.exp conftest.er2 >/dev/null; then
9203 lt_cv_prog_compiler_static_works=yes
9204 fi
9205 else
9206 lt_cv_prog_compiler_static_works=yes
9207 fi
9208 fi
9209 $RM -r conftest*
9210 LDFLAGS="$save_LDFLAGS"
9211
9212fi
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9214$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9215
9216if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9217 :
9218else
9219 lt_prog_compiler_static=
9220fi
9221
9222
9223
9224
9225
9226
9227
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9229$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9230if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9231 $as_echo_n "(cached) " >&6
9232else
9233 lt_cv_prog_compiler_c_o=no
9234 $RM -r conftest 2>/dev/null
9235 mkdir conftest
9236 cd conftest
9237 mkdir out
9238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9239
9240 lt_compiler_flag="-o out/conftest2.$ac_objext"
9241 # Insert the option either (1) after the last *FLAGS variable, or
9242 # (2) before a word containing "conftest.", or (3) at the end.
9243 # Note that $ac_compile itself does not contain backslashes and begins
9244 # with a dollar sign (not a hyphen), so the echo should work correctly.
9245 lt_compile=`echo "$ac_compile" | $SED \
9246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9248 -e 's:$: $lt_compiler_flag:'`
9249 (eval echo "\"\$as_me:9249: $lt_compile\"" >&5)
9250 (eval "$lt_compile" 2>out/conftest.err)
9251 ac_status=$?
9252 cat out/conftest.err >&5
9253 echo "$as_me:9253: \$? = $ac_status" >&5
9254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9255 then
9256 # The compiler can only warn and ignore the option if not recognized
9257 # So say no if there are warnings
9258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9261 lt_cv_prog_compiler_c_o=yes
9262 fi
9263 fi
9264 chmod u+w . 2>&5
9265 $RM conftest*
9266 # SGI C++ compiler will create directory out/ii_files/ for
9267 # template instantiation
9268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9269 $RM out/* && rmdir out
9270 cd ..
9271 $RM -r conftest
9272 $RM conftest*
9273
9274fi
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9276$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9277
9278
9279
9280
9281
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9284$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9285if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9286 $as_echo_n "(cached) " >&6
9287else
9288 lt_cv_prog_compiler_c_o=no
9289 $RM -r conftest 2>/dev/null
9290 mkdir conftest
9291 cd conftest
9292 mkdir out
9293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9294
9295 lt_compiler_flag="-o out/conftest2.$ac_objext"
9296 # Insert the option either (1) after the last *FLAGS variable, or
9297 # (2) before a word containing "conftest.", or (3) at the end.
9298 # Note that $ac_compile itself does not contain backslashes and begins
9299 # with a dollar sign (not a hyphen), so the echo should work correctly.
9300 lt_compile=`echo "$ac_compile" | $SED \
9301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9303 -e 's:$: $lt_compiler_flag:'`
9304 (eval echo "\"\$as_me:9304: $lt_compile\"" >&5)
9305 (eval "$lt_compile" 2>out/conftest.err)
9306 ac_status=$?
9307 cat out/conftest.err >&5
9308 echo "$as_me:9308: \$? = $ac_status" >&5
9309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9310 then
9311 # The compiler can only warn and ignore the option if not recognized
9312 # So say no if there are warnings
9313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9316 lt_cv_prog_compiler_c_o=yes
9317 fi
9318 fi
9319 chmod u+w . 2>&5
9320 $RM conftest*
9321 # SGI C++ compiler will create directory out/ii_files/ for
9322 # template instantiation
9323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9324 $RM out/* && rmdir out
9325 cd ..
9326 $RM -r conftest
9327 $RM conftest*
9328
9329fi
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9331$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9332
9333
9334
9335
9336hard_links="nottested"
9337if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9338 # do not overwrite the value of need_locks provided by the user
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9340$as_echo_n "checking if we can lock with hard links... " >&6; }
9341 hard_links=yes
9342 $RM conftest*
9343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9344 touch conftest.a
9345 ln conftest.a conftest.b 2>&5 || hard_links=no
9346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9348$as_echo "$hard_links" >&6; }
9349 if test "$hard_links" = no; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9351$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9352 need_locks=warn
9353 fi
9354else
9355 need_locks=no
9356fi
9357
9358
9359
9360
9361
9362
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9364$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9365
9366 runpath_var=
9367 allow_undefined_flag=
9368 always_export_symbols=no
9369 archive_cmds=
9370 archive_expsym_cmds=
9371 compiler_needs_object=no
9372 enable_shared_with_static_runtimes=no
9373 export_dynamic_flag_spec=
9374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9375 hardcode_automatic=no
9376 hardcode_direct=no
9377 hardcode_direct_absolute=no
9378 hardcode_libdir_flag_spec=
9379 hardcode_libdir_flag_spec_ld=
9380 hardcode_libdir_separator=
9381 hardcode_minus_L=no
9382 hardcode_shlibpath_var=unsupported
9383 inherit_rpath=no
9384 link_all_deplibs=unknown
9385 module_cmds=
9386 module_expsym_cmds=
9387 old_archive_from_new_cmds=
9388 old_archive_from_expsyms_cmds=
9389 thread_safe_flag_spec=
9390 whole_archive_flag_spec=
9391 # include_expsyms should be a list of space-separated symbols to be *always*
9392 # included in the symbol list
9393 include_expsyms=
9394 # exclude_expsyms can be an extended regexp of symbols to exclude
9395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9397 # as well as any symbol that contains `d'.
9398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9400 # platforms (ab)use it in PIC code, but their linkers get confused if
9401 # the symbol is explicitly referenced. Since portable code cannot
9402 # rely on this symbol name, it's probably fine to never include it in
9403 # preloaded symbol tables.
9404 # Exclude shared library initialization/finalization symbols.
9405 extract_expsyms_cmds=
9406
9407 case $host_os in
9408 cygwin* | mingw* | pw32* | cegcc*)
9409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9410 # When not using gcc, we currently assume that we are using
9411 # Microsoft Visual C++.
9412 if test "$GCC" != yes; then
9413 with_gnu_ld=no
9414 fi
9415 ;;
9416 interix*)
9417 # we just hope/assume this is gcc and not c89 (= MSVC++)
9418 with_gnu_ld=yes
9419 ;;
9420 openbsd*)
9421 with_gnu_ld=no
9422 ;;
9423 linux* | k*bsd*-gnu)
9424 link_all_deplibs=no
9425 ;;
9426 esac
9427
9428 ld_shlibs=yes
9429 if test "$with_gnu_ld" = yes; then
9430 # If archive_cmds runs LD, not CC, wlarc should be empty
9431 wlarc='${wl}'
9432
9433 # Set some defaults for GNU ld with shared library support. These
9434 # are reset later if shared libraries are not supported. Putting them
9435 # here allows them to be overridden if necessary.
9436 runpath_var=LD_RUN_PATH
9437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438 export_dynamic_flag_spec='${wl}--export-dynamic'
9439 # ancient GNU ld didn't support --whole-archive et. al.
9440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9442 else
9443 whole_archive_flag_spec=
9444 fi
9445 supports_anon_versioning=no
9446 case `$LD -v 2>&1` in
9447 *GNU\ gold*) supports_anon_versioning=yes ;;
9448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9451 *\ 2.11.*) ;; # other 2.11 versions
9452 *) supports_anon_versioning=yes ;;
9453 esac
9454
9455 # See if GNU ld supports shared libraries.
9456 case $host_os in
9457 aix[3-9]*)
9458 # On AIX/PPC, the GNU linker is very broken
9459 if test "$host_cpu" != ia64; then
9460 ld_shlibs=no
9461 cat <<_LT_EOF 1>&2
9462
9463*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9464*** to be unable to reliably create shared libraries on AIX.
9465*** Therefore, libtool is disabling shared libraries support. If you
9466*** really care for shared libraries, you may want to modify your PATH
9467*** so that a non-GNU linker is found, and then restart.
9468
9469_LT_EOF
9470 fi
9471 ;;
9472
9473 amigaos*)
9474 case $host_cpu in
9475 powerpc)
9476 # see comment about AmigaOS4 .so support
9477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478 archive_expsym_cmds=''
9479 ;;
9480 m68k)
9481 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)'
9482 hardcode_libdir_flag_spec='-L$libdir'
9483 hardcode_minus_L=yes
9484 ;;
9485 esac
9486 ;;
9487
9488 beos*)
9489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9490 allow_undefined_flag=unsupported
9491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9492 # support --undefined. This deserves some investigation. FIXME
9493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494 else
9495 ld_shlibs=no
9496 fi
9497 ;;
9498
9499 cygwin* | mingw* | pw32* | cegcc*)
9500 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9501 # as there is no search path for DLLs.
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 allow_undefined_flag=unsupported
9504 always_export_symbols=no
9505 enable_shared_with_static_runtimes=yes
9506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9507
9508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9510 # If the export-symbols file already is a .def file (1st line
9511 # is EXPORTS), use it as is; otherwise, prepend...
9512 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9513 cp $export_symbols $output_objdir/$soname.def;
9514 else
9515 echo EXPORTS > $output_objdir/$soname.def;
9516 cat $export_symbols >> $output_objdir/$soname.def;
9517 fi~
9518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9519 else
9520 ld_shlibs=no
9521 fi
9522 ;;
9523
9524 interix[3-9]*)
9525 hardcode_direct=no
9526 hardcode_shlibpath_var=no
9527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9528 export_dynamic_flag_spec='${wl}-E'
9529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9530 # Instead, shared libraries are loaded at an image base (0x10000000 by
9531 # default) and relocated if they conflict, which is a slow very memory
9532 # consuming and fragmenting process. To avoid this, we pick a random,
9533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9534 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9536 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'
9537 ;;
9538
9539 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9540 tmp_diet=no
9541 if test "$host_os" = linux-dietlibc; then
9542 case $cc_basename in
9543 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9544 esac
9545 fi
9546 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9547 && test "$tmp_diet" = no
9548 then
9549 tmp_addflag=
9550 tmp_sharedflag='-shared'
9551 case $cc_basename,$host_cpu in
9552 pgcc*) # Portland Group C compiler
9553 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'
9554 tmp_addflag=' $pic_flag'
9555 ;;
9556 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9557 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'
9558 tmp_addflag=' $pic_flag -Mnomain' ;;
9559 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9560 tmp_addflag=' -i_dynamic' ;;
9561 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9562 tmp_addflag=' -i_dynamic -nofor_main' ;;
9563 ifc* | ifort*) # Intel Fortran compiler
9564 tmp_addflag=' -nofor_main' ;;
9565 lf95*) # Lahey Fortran 8.1
9566 whole_archive_flag_spec=
9567 tmp_sharedflag='--shared' ;;
9568 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9569 tmp_sharedflag='-qmkshrobj'
9570 tmp_addflag= ;;
9571 esac
9572 case `$CC -V 2>&1 | sed 5q` in
9573 *Sun\ C*) # Sun C 5.9
9574 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'
9575 compiler_needs_object=yes
9576 tmp_sharedflag='-G' ;;
9577 *Sun\ F*) # Sun Fortran 8.3
9578 tmp_sharedflag='-G' ;;
9579 esac
9580 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581
9582 if test "x$supports_anon_versioning" = xyes; then
9583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9585 echo "local: *; };" >> $output_objdir/$libname.ver~
9586 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9587 fi
9588
9589 case $cc_basename in
9590 xlf*)
9591 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9592 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9593 hardcode_libdir_flag_spec=
9594 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9595 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9596 if test "x$supports_anon_versioning" = xyes; then
9597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9599 echo "local: *; };" >> $output_objdir/$libname.ver~
9600 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9601 fi
9602 ;;
9603 esac
9604 else
9605 ld_shlibs=no
9606 fi
9607 ;;
9608
9609 netbsd* | netbsdelf*-gnu)
9610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9612 wlarc=
9613 else
9614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9616 fi
9617 ;;
9618
9619 solaris*)
9620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9621 ld_shlibs=no
9622 cat <<_LT_EOF 1>&2
9623
9624*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9625*** create shared libraries on Solaris systems. Therefore, libtool
9626*** is disabling shared libraries support. We urge you to upgrade GNU
9627*** binutils to release 2.9.1 or newer. Another option is to modify
9628*** your PATH or compiler configuration so that the native linker is
9629*** used, and then restart.
9630
9631_LT_EOF
9632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9635 else
9636 ld_shlibs=no
9637 fi
9638 ;;
9639
9640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9641 case `$LD -v 2>&1` in
9642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9643 ld_shlibs=no
9644 cat <<_LT_EOF 1>&2
9645
9646*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9647*** reliably create shared libraries on SCO systems. Therefore, libtool
9648*** is disabling shared libraries support. We urge you to upgrade GNU
9649*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9650*** your PATH or compiler configuration so that the native linker is
9651*** used, and then restart.
9652
9653_LT_EOF
9654 ;;
9655 *)
9656 # For security reasons, it is highly recommended that you always
9657 # use absolute paths for naming shared libraries, and exclude the
9658 # DT_RUNPATH tag from executables and libraries. But doing so
9659 # requires that you compile everything twice, which is a pain.
9660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9664 else
9665 ld_shlibs=no
9666 fi
9667 ;;
9668 esac
9669 ;;
9670
9671 sunos4*)
9672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9673 wlarc=
9674 hardcode_direct=yes
9675 hardcode_shlibpath_var=no
9676 ;;
9677
9678 *)
9679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9682 else
9683 ld_shlibs=no
9684 fi
9685 ;;
9686 esac
9687
9688 if test "$ld_shlibs" = no; then
9689 runpath_var=
9690 hardcode_libdir_flag_spec=
9691 export_dynamic_flag_spec=
9692 whole_archive_flag_spec=
9693 fi
9694 else
9695 # PORTME fill in a description of your system's linker (not GNU ld)
9696 case $host_os in
9697 aix3*)
9698 allow_undefined_flag=unsupported
9699 always_export_symbols=yes
9700 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'
9701 # Note: this linker hardcodes the directories in LIBPATH if there
9702 # are no directories specified by -L.
9703 hardcode_minus_L=yes
9704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9705 # Neither direct hardcoding nor static linking is supported with a
9706 # broken collect2.
9707 hardcode_direct=unsupported
9708 fi
9709 ;;
9710
9711 aix[4-9]*)
9712 if test "$host_cpu" = ia64; then
9713 # On IA64, the linker does run time linking by default, so we don't
9714 # have to do anything special.
9715 aix_use_runtimelinking=no
9716 exp_sym_flag='-Bexport'
9717 no_entry_flag=""
9718 else
9719 # If we're using GNU nm, then we don't want the "-C" option.
9720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9722 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'
9723 else
9724 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'
9725 fi
9726 aix_use_runtimelinking=no
9727
9728 # Test if we are trying to use run time linking or normal
9729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9730 # need to do runtime linking.
9731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9732 for ld_flag in $LDFLAGS; do
9733 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9734 aix_use_runtimelinking=yes
9735 break
9736 fi
9737 done
9738 ;;
9739 esac
9740
9741 exp_sym_flag='-bexport'
9742 no_entry_flag='-bnoentry'
9743 fi
9744
9745 # When large executables or shared objects are built, AIX ld can
9746 # have problems creating the table of contents. If linking a library
9747 # or program results in "error TOC overflow" add -mminimal-toc to
9748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9750
9751 archive_cmds=''
9752 hardcode_direct=yes
9753 hardcode_direct_absolute=yes
9754 hardcode_libdir_separator=':'
9755 link_all_deplibs=yes
9756 file_list_spec='${wl}-f,'
9757
9758 if test "$GCC" = yes; then
9759 case $host_os in aix4.[012]|aix4.[012].*)
9760 # We only want to do this on AIX 4.2 and lower, the check
9761 # below for broken collect2 doesn't work under 4.3+
9762 collect2name=`${CC} -print-prog-name=collect2`
9763 if test -f "$collect2name" &&
9764 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9765 then
9766 # We have reworked collect2
9767 :
9768 else
9769 # We have old collect2
9770 hardcode_direct=unsupported
9771 # It fails to find uninstalled libraries when the uninstalled
9772 # path is not listed in the libpath. Setting hardcode_minus_L
9773 # to unsupported forces relinking
9774 hardcode_minus_L=yes
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_libdir_separator=
9777 fi
9778 ;;
9779 esac
9780 shared_flag='-shared'
9781 if test "$aix_use_runtimelinking" = yes; then
9782 shared_flag="$shared_flag "'${wl}-G'
9783 fi
9784 link_all_deplibs=no
9785 else
9786 # not using gcc
9787 if test "$host_cpu" = ia64; then
9788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9789 # chokes on -Wl,-G. The following line is correct:
9790 shared_flag='-G'
9791 else
9792 if test "$aix_use_runtimelinking" = yes; then
9793 shared_flag='${wl}-G'
9794 else
9795 shared_flag='${wl}-bM:SRE'
9796 fi
9797 fi
9798 fi
9799
9800 export_dynamic_flag_spec='${wl}-bexpall'
9801 # It seems that -bexpall does not export symbols beginning with
9802 # underscore (_), so it is better to generate a list of symbols to export.
9803 always_export_symbols=yes
9804 if test "$aix_use_runtimelinking" = yes; then
9805 # Warning - without using the other runtime loading flags (-brtl),
9806 # -berok will link without error, but may produce a broken library.
9807 allow_undefined_flag='-berok'
9808 # Determine the default libpath from the value encoded in an
9809 # empty executable.
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h. */
9812
9813int
9814main ()
9815{
9816
9817 ;
9818 return 0;
9819}
9820_ACEOF
9821if ac_fn_c_try_link "$LINENO"; then :
9822
9823lt_aix_libpath_sed='
9824 /Import File Strings/,/^$/ {
9825 /^0/ {
9826 s/^0 *\(.*\)$/\1/
9827 p
9828 }
9829 }'
9830aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9831# Check for a 64-bit object if we didn't find anything.
9832if test -z "$aix_libpath"; then
9833 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9834fi
9835fi
9836rm -f core conftest.err conftest.$ac_objext \
9837 conftest$ac_exeext conftest.$ac_ext
9838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9839
9840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9841 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"
9842 else
9843 if test "$host_cpu" = ia64; then
9844 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9845 allow_undefined_flag="-z nodefs"
9846 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"
9847 else
9848 # Determine the default libpath from the value encoded in an
9849 # empty executable.
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h. */
9852
9853int
9854main ()
9855{
9856
9857 ;
9858 return 0;
9859}
9860_ACEOF
9861if ac_fn_c_try_link "$LINENO"; then :
9862
9863lt_aix_libpath_sed='
9864 /Import File Strings/,/^$/ {
9865 /^0/ {
9866 s/^0 *\(.*\)$/\1/
9867 p
9868 }
9869 }'
9870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871# Check for a 64-bit object if we didn't find anything.
9872if test -z "$aix_libpath"; then
9873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874fi
9875fi
9876rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9879
9880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9881 # Warning - without using the other run time loading flags,
9882 # -berok will link without error, but may produce a broken library.
9883 no_undefined_flag=' ${wl}-bernotok'
9884 allow_undefined_flag=' ${wl}-berok'
9885 # Exported symbols can be pulled into shared objects from archives
9886 whole_archive_flag_spec='$convenience'
9887 archive_cmds_need_lc=yes
9888 # This is similar to how AIX traditionally builds its shared libraries.
9889 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'
9890 fi
9891 fi
9892 ;;
9893
9894 amigaos*)
9895 case $host_cpu in
9896 powerpc)
9897 # see comment about AmigaOS4 .so support
9898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899 archive_expsym_cmds=''
9900 ;;
9901 m68k)
9902 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)'
9903 hardcode_libdir_flag_spec='-L$libdir'
9904 hardcode_minus_L=yes
9905 ;;
9906 esac
9907 ;;
9908
9909 bsdi[45]*)
9910 export_dynamic_flag_spec=-rdynamic
9911 ;;
9912
9913 cygwin* | mingw* | pw32* | cegcc*)
9914 # When not using gcc, we currently assume that we are using
9915 # Microsoft Visual C++.
9916 # hardcode_libdir_flag_spec is actually meaningless, as there is
9917 # no search path for DLLs.
9918 hardcode_libdir_flag_spec=' '
9919 allow_undefined_flag=unsupported
9920 # Tell ltmain to make .lib files, not .a files.
9921 libext=lib
9922 # Tell ltmain to make .dll files, not .so files.
9923 shrext_cmds=".dll"
9924 # FIXME: Setting linknames here is a bad hack.
9925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9926 # The linker will automatically build a .lib file if we build a DLL.
9927 old_archive_from_new_cmds='true'
9928 # FIXME: Should let the user specify the lib program.
9929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9930 fix_srcfile_path='`cygpath -w "$srcfile"`'
9931 enable_shared_with_static_runtimes=yes
9932 ;;
9933
9934 darwin* | rhapsody*)
9935
9936
9937 archive_cmds_need_lc=no
9938 hardcode_direct=no
9939 hardcode_automatic=yes
9940 hardcode_shlibpath_var=unsupported
9941 whole_archive_flag_spec=''
9942 link_all_deplibs=yes
9943 allow_undefined_flag="$_lt_dar_allow_undefined"
9944 case $cc_basename in
9945 ifort*) _lt_dar_can_shared=yes ;;
9946 *) _lt_dar_can_shared=$GCC ;;
9947 esac
9948 if test "$_lt_dar_can_shared" = "yes"; then
9949 output_verbose_link_cmd=echo
9950 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9951 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9952 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}"
9953 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}"
9954
9955 else
9956 ld_shlibs=no
9957 fi
9958
9959 ;;
9960
9961 dgux*)
9962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_libdir_flag_spec='-L$libdir'
9964 hardcode_shlibpath_var=no
9965 ;;
9966
9967 freebsd1*)
9968 ld_shlibs=no
9969 ;;
9970
9971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9972 # support. Future versions do this automatically, but an explicit c++rt0.o
9973 # does not break anything, and helps significantly (at the cost of a little
9974 # extra space).
9975 freebsd2.2*)
9976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9977 hardcode_libdir_flag_spec='-R$libdir'
9978 hardcode_direct=yes
9979 hardcode_shlibpath_var=no
9980 ;;
9981
9982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9983 freebsd2*)
9984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_direct=yes
9986 hardcode_minus_L=yes
9987 hardcode_shlibpath_var=no
9988 ;;
9989
9990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9991 freebsd* | dragonfly*)
9992 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9993 hardcode_libdir_flag_spec='-R$libdir'
9994 hardcode_direct=yes
9995 hardcode_shlibpath_var=no
9996 ;;
9997
9998 hpux9*)
9999 if test "$GCC" = yes; then
10000 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'
10001 else
10002 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'
10003 fi
10004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10005 hardcode_libdir_separator=:
10006 hardcode_direct=yes
10007
10008 # hardcode_minus_L: Not really in the search PATH,
10009 # but as the default location of the library.
10010 hardcode_minus_L=yes
10011 export_dynamic_flag_spec='${wl}-E'
10012 ;;
10013
10014 hpux10*)
10015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10016 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10017 else
10018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10019 fi
10020 if test "$with_gnu_ld" = no; then
10021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10022 hardcode_libdir_flag_spec_ld='+b $libdir'
10023 hardcode_libdir_separator=:
10024 hardcode_direct=yes
10025 hardcode_direct_absolute=yes
10026 export_dynamic_flag_spec='${wl}-E'
10027 # hardcode_minus_L: Not really in the search PATH,
10028 # but as the default location of the library.
10029 hardcode_minus_L=yes
10030 fi
10031 ;;
10032
10033 hpux11*)
10034 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10035 case $host_cpu in
10036 hppa*64*)
10037 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 ;;
10039 ia64*)
10040 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10041 ;;
10042 *)
10043 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10044 ;;
10045 esac
10046 else
10047 case $host_cpu in
10048 hppa*64*)
10049 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 ;;
10051 ia64*)
10052 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10053 ;;
10054 *)
10055 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10056 ;;
10057 esac
10058 fi
10059 if test "$with_gnu_ld" = no; then
10060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10061 hardcode_libdir_separator=:
10062
10063 case $host_cpu in
10064 hppa*64*|ia64*)
10065 hardcode_direct=no
10066 hardcode_shlibpath_var=no
10067 ;;
10068 *)
10069 hardcode_direct=yes
10070 hardcode_direct_absolute=yes
10071 export_dynamic_flag_spec='${wl}-E'
10072
10073 # hardcode_minus_L: Not really in the search PATH,
10074 # but as the default location of the library.
10075 hardcode_minus_L=yes
10076 ;;
10077 esac
10078 fi
10079 ;;
10080
10081 irix5* | irix6* | nonstopux*)
10082 if test "$GCC" = yes; then
10083 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'
10084 # Try to use the -exported_symbol ld option, if it does not
10085 # work, assume that -exports_file does not work either and
10086 # implicitly export all symbols.
10087 save_LDFLAGS="$LDFLAGS"
10088 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h. */
10091int foo(void) {}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"; then :
10094 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'
10095
10096fi
10097rm -f core conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LDFLAGS="$save_LDFLAGS"
10100 else
10101 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'
10102 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'
10103 fi
10104 archive_cmds_need_lc='no'
10105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10106 hardcode_libdir_separator=:
10107 inherit_rpath=yes
10108 link_all_deplibs=yes
10109 ;;
10110
10111 netbsd* | netbsdelf*-gnu)
10112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10114 else
10115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10116 fi
10117 hardcode_libdir_flag_spec='-R$libdir'
10118 hardcode_direct=yes
10119 hardcode_shlibpath_var=no
10120 ;;
10121
10122 newsos6)
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_direct=yes
10125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126 hardcode_libdir_separator=:
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 *nto* | *qnx*)
10131 ;;
10132
10133 openbsd*)
10134 if test -f /usr/libexec/ld.so; then
10135 hardcode_direct=yes
10136 hardcode_shlibpath_var=no
10137 hardcode_direct_absolute=yes
10138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10142 export_dynamic_flag_spec='${wl}-E'
10143 else
10144 case $host_os in
10145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_libdir_flag_spec='-R$libdir'
10148 ;;
10149 *)
10150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 ;;
10153 esac
10154 fi
10155 else
10156 ld_shlibs=no
10157 fi
10158 ;;
10159
10160 os2*)
10161 hardcode_libdir_flag_spec='-L$libdir'
10162 hardcode_minus_L=yes
10163 allow_undefined_flag=unsupported
10164 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'
10165 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10166 ;;
10167
10168 osf3*)
10169 if test "$GCC" = yes; then
10170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10171 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'
10172 else
10173 allow_undefined_flag=' -expect_unresolved \*'
10174 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'
10175 fi
10176 archive_cmds_need_lc='no'
10177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10178 hardcode_libdir_separator=:
10179 ;;
10180
10181 osf4* | osf5*) # as osf3* with the addition of -msym flag
10182 if test "$GCC" = yes; then
10183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10184 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'
10185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186 else
10187 allow_undefined_flag=' -expect_unresolved \*'
10188 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'
10189 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~
10190 $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'
10191
10192 # Both c and cxx compiler support -rpath directly
10193 hardcode_libdir_flag_spec='-rpath $libdir'
10194 fi
10195 archive_cmds_need_lc='no'
10196 hardcode_libdir_separator=:
10197 ;;
10198
10199 solaris*)
10200 no_undefined_flag=' -z defs'
10201 if test "$GCC" = yes; then
10202 wlarc='${wl}'
10203 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10206 else
10207 case `$CC -V 2>&1` in
10208 *"Compilers 5.0"*)
10209 wlarc=''
10210 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10213 ;;
10214 *)
10215 wlarc='${wl}'
10216 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10219 ;;
10220 esac
10221 fi
10222 hardcode_libdir_flag_spec='-R$libdir'
10223 hardcode_shlibpath_var=no
10224 case $host_os in
10225 solaris2.[0-5] | solaris2.[0-5].*) ;;
10226 *)
10227 # The compiler driver will combine and reorder linker options,
10228 # but understands `-z linker_flag'. GCC discards it without `$wl',
10229 # but is careful enough not to reorder.
10230 # Supported since Solaris 2.6 (maybe 2.5.1?)
10231 if test "$GCC" = yes; then
10232 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10233 else
10234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10235 fi
10236 ;;
10237 esac
10238 link_all_deplibs=yes
10239 ;;
10240
10241 sunos4*)
10242 if test "x$host_vendor" = xsequent; then
10243 # Use $CC to link under sequent, because it throws in some extra .o
10244 # files that make .init and .fini sections work.
10245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10246 else
10247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10248 fi
10249 hardcode_libdir_flag_spec='-L$libdir'
10250 hardcode_direct=yes
10251 hardcode_minus_L=yes
10252 hardcode_shlibpath_var=no
10253 ;;
10254
10255 sysv4)
10256 case $host_vendor in
10257 sni)
10258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259 hardcode_direct=yes # is this really true???
10260 ;;
10261 siemens)
10262 ## LD is ld it makes a PLAMLIB
10263 ## CC just makes a GrossModule.
10264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10265 reload_cmds='$CC -r -o $output$reload_objs'
10266 hardcode_direct=no
10267 ;;
10268 motorola)
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10271 ;;
10272 esac
10273 runpath_var='LD_RUN_PATH'
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 sysv4.3*)
10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 hardcode_shlibpath_var=no
10280 export_dynamic_flag_spec='-Bexport'
10281 ;;
10282
10283 sysv4*MP*)
10284 if test -d /usr/nec; then
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_shlibpath_var=no
10287 runpath_var=LD_RUN_PATH
10288 hardcode_runpath_var=yes
10289 ld_shlibs=yes
10290 fi
10291 ;;
10292
10293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10294 no_undefined_flag='${wl}-z,text'
10295 archive_cmds_need_lc=no
10296 hardcode_shlibpath_var=no
10297 runpath_var='LD_RUN_PATH'
10298
10299 if test "$GCC" = yes; then
10300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 else
10303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305 fi
10306 ;;
10307
10308 sysv5* | sco3.2v5* | sco5v6*)
10309 # Note: We can NOT use -z defs as we might desire, because we do not
10310 # link with -lc, and that would cause any symbols used from libc to
10311 # always be unresolved, which means just about no library would
10312 # ever link correctly. If we're not using GNU ld we use -z text
10313 # though, which does catch some bad symbols but isn't as heavy-handed
10314 # as -z defs.
10315 no_undefined_flag='${wl}-z,text'
10316 allow_undefined_flag='${wl}-z,nodefs'
10317 archive_cmds_need_lc=no
10318 hardcode_shlibpath_var=no
10319 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10320 hardcode_libdir_separator=':'
10321 link_all_deplibs=yes
10322 export_dynamic_flag_spec='${wl}-Bexport'
10323 runpath_var='LD_RUN_PATH'
10324
10325 if test "$GCC" = yes; then
10326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 else
10329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 fi
10332 ;;
10333
10334 uts4*)
10335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10336 hardcode_libdir_flag_spec='-L$libdir'
10337 hardcode_shlibpath_var=no
10338 ;;
10339
10340 *)
10341 ld_shlibs=no
10342 ;;
10343 esac
10344
10345 if test x$host_vendor = xsni; then
10346 case $host in
10347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10348 export_dynamic_flag_spec='${wl}-Blargedynsym'
10349 ;;
10350 esac
10351 fi
10352 fi
10353
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10355$as_echo "$ld_shlibs" >&6; }
10356test "$ld_shlibs" = no && can_build_shared=no
10357
10358with_gnu_ld=$with_gnu_ld
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374#
10375# Do we need to explicitly link libc?
10376#
10377case "x$archive_cmds_need_lc" in
10378x|xyes)
10379 # Assume -lc should be added
10380 archive_cmds_need_lc=yes
10381
10382 if test "$enable_shared" = yes && test "$GCC" = yes; then
10383 case $archive_cmds in
10384 *'~'*)
10385 # FIXME: we may have to deal with multi-command sequences.
10386 ;;
10387 '$CC '*)
10388 # Test whether the compiler implicitly links with -lc since on some
10389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10390 # to ld, don't add -lc before -lgcc.
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10392$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10393 $RM conftest*
10394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10395
10396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10397 (eval $ac_compile) 2>&5
10398 ac_status=$?
10399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400 test $ac_status = 0; } 2>conftest.err; then
10401 soname=conftest
10402 lib=conftest
10403 libobjs=conftest.$ac_objext
10404 deplibs=
10405 wl=$lt_prog_compiler_wl
10406 pic_flag=$lt_prog_compiler_pic
10407 compiler_flags=-v
10408 linker_flags=-v
10409 verstring=
10410 output_objdir=.
10411 libname=conftest
10412 lt_save_allow_undefined_flag=$allow_undefined_flag
10413 allow_undefined_flag=
10414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10416 ac_status=$?
10417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10418 test $ac_status = 0; }
10419 then
10420 archive_cmds_need_lc=no
10421 else
10422 archive_cmds_need_lc=yes
10423 fi
10424 allow_undefined_flag=$lt_save_allow_undefined_flag
10425 else
10426 cat conftest.err 1>&5
10427 fi
10428 $RM conftest*
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10430$as_echo "$archive_cmds_need_lc" >&6; }
10431 ;;
10432 esac
10433 fi
10434 ;;
10435esac
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10594$as_echo_n "checking dynamic linker characteristics... " >&6; }
10595
10596if test "$GCC" = yes; then
10597 case $host_os in
10598 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10599 *) lt_awk_arg="/^libraries:/" ;;
10600 esac
10601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10602 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10603 # if the path contains ";" then we assume it to be the separator
10604 # otherwise default to the standard path separator (i.e. ":") - it is
10605 # assumed that no part of a normal pathname contains ";" but that should
10606 # okay in the real world where ";" in dirpaths is itself problematic.
10607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10608 else
10609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610 fi
10611 # Ok, now we have the path, separated by spaces, we can step through it
10612 # and add multilib dir if necessary.
10613 lt_tmp_lt_search_path_spec=
10614 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10615 for lt_sys_path in $lt_search_path_spec; do
10616 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10617 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10618 else
10619 test -d "$lt_sys_path" && \
10620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10621 fi
10622 done
10623 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10624BEGIN {RS=" "; FS="/|\n";} {
10625 lt_foo="";
10626 lt_count=0;
10627 for (lt_i = NF; lt_i > 0; lt_i--) {
10628 if ($lt_i != "" && $lt_i != ".") {
10629 if ($lt_i == "..") {
10630 lt_count++;
10631 } else {
10632 if (lt_count == 0) {
10633 lt_foo="/" $lt_i lt_foo;
10634 } else {
10635 lt_count--;
10636 }
10637 }
10638 }
10639 }
10640 if (lt_foo != "") { lt_freq[lt_foo]++; }
10641 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10642}'`
10643 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10644else
10645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10646fi
10647library_names_spec=
10648libname_spec='lib$name'
10649soname_spec=
10650shrext_cmds=".so"
10651postinstall_cmds=
10652postuninstall_cmds=
10653finish_cmds=
10654finish_eval=
10655shlibpath_var=
10656shlibpath_overrides_runpath=unknown
10657version_type=none
10658dynamic_linker="$host_os ld.so"
10659sys_lib_dlsearch_path_spec="/lib /usr/lib"
10660need_lib_prefix=unknown
10661hardcode_into_libs=no
10662
10663# when you set need_version to no, make sure it does not cause -set_version
10664# flags to be left without arguments
10665need_version=unknown
10666
10667case $host_os in
10668aix3*)
10669 version_type=linux
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10671 shlibpath_var=LIBPATH
10672
10673 # AIX 3 has no versioning support, so we append a major version to the name.
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 ;;
10676
10677aix[4-9]*)
10678 version_type=linux
10679 need_lib_prefix=no
10680 need_version=no
10681 hardcode_into_libs=yes
10682 if test "$host_cpu" = ia64; then
10683 # AIX 5 supports IA64
10684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 else
10687 # With GCC up to 2.95.x, collect2 would create an import file
10688 # for dependence libraries. The import file would start with
10689 # the line `#! .'. This would cause the generated library to
10690 # depend on `.', always an invalid library. This was fixed in
10691 # development snapshots of GCC prior to 3.0.
10692 case $host_os in
10693 aix4 | aix4.[01] | aix4.[01].*)
10694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10695 echo ' yes '
10696 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10697 :
10698 else
10699 can_build_shared=no
10700 fi
10701 ;;
10702 esac
10703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10704 # soname into executable. Probably we can add versioning support to
10705 # collect2, so additional links can be useful in future.
10706 if test "$aix_use_runtimelinking" = yes; then
10707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10708 # instead of lib<name>.a to let people know that these are not
10709 # typical AIX shared libraries.
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 else
10712 # We preserve .a as extension for shared libraries through AIX4.2
10713 # and later when we are not doing run time linking.
10714 library_names_spec='${libname}${release}.a $libname.a'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 fi
10717 shlibpath_var=LIBPATH
10718 fi
10719 ;;
10720
10721amigaos*)
10722 case $host_cpu in
10723 powerpc)
10724 # Since July 2007 AmigaOS4 officially supports .so libraries.
10725 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 ;;
10728 m68k)
10729 library_names_spec='$libname.ixlibrary $libname.a'
10730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10731 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'
10732 ;;
10733 esac
10734 ;;
10735
10736beos*)
10737 library_names_spec='${libname}${shared_ext}'
10738 dynamic_linker="$host_os ld.so"
10739 shlibpath_var=LIBRARY_PATH
10740 ;;
10741
10742bsdi[45]*)
10743 version_type=linux
10744 need_version=no
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10751 # the default ld.so.conf also contains /usr/contrib/lib and
10752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10753 # libtool to hard-code these into programs
10754 ;;
10755
10756cygwin* | mingw* | pw32* | cegcc*)
10757 version_type=windows
10758 shrext_cmds=".dll"
10759 need_version=no
10760 need_lib_prefix=no
10761
10762 case $GCC,$host_os in
10763 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10764 library_names_spec='$libname.dll.a'
10765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10766 postinstall_cmds='base_file=`basename \${file}`~
10767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10768 dldir=$destdir/`dirname \$dlpath`~
10769 test -d \$dldir || mkdir -p \$dldir~
10770 $install_prog $dir/$dlname \$dldir/$dlname~
10771 chmod a+x \$dldir/$dlname~
10772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10774 fi'
10775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10776 dlpath=$dir/\$dldll~
10777 $RM \$dlpath'
10778 shlibpath_overrides_runpath=yes
10779
10780 case $host_os in
10781 cygwin*)
10782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10785 ;;
10786 mingw* | cegcc*)
10787 # MinGW DLLs use traditional 'lib' prefix
10788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10789 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10791 # It is most probably a Windows format PATH printed by
10792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10793 # path with ; separators, and with drive letters. We can handle the
10794 # drive letters (cygwin fileutils understands them), so leave them,
10795 # especially as we might pass files found there to a mingw objdump,
10796 # which wouldn't understand a cygwinified path. Ahh.
10797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10798 else
10799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10800 fi
10801 ;;
10802 pw32*)
10803 # pw32 DLLs use 'pw' prefix rather than 'lib'
10804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10805 ;;
10806 esac
10807 ;;
10808
10809 *)
10810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10811 ;;
10812 esac
10813 dynamic_linker='Win32 ld.exe'
10814 # FIXME: first we should search . and the directory the executable is in
10815 shlibpath_var=PATH
10816 ;;
10817
10818darwin* | rhapsody*)
10819 dynamic_linker="$host_os dyld"
10820 version_type=darwin
10821 need_lib_prefix=no
10822 need_version=no
10823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10824 soname_spec='${libname}${release}${major}$shared_ext'
10825 shlibpath_overrides_runpath=yes
10826 shlibpath_var=DYLD_LIBRARY_PATH
10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10828
10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10831 ;;
10832
10833dgux*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 ;;
10841
10842freebsd1*)
10843 dynamic_linker=no
10844 ;;
10845
10846freebsd* | dragonfly*)
10847 # DragonFly does not have aout. When/if they implement a new
10848 # versioning mechanism, adjust this.
10849 if test -x /usr/bin/objformat; then
10850 objformat=`/usr/bin/objformat`
10851 else
10852 case $host_os in
10853 freebsd[123]*) objformat=aout ;;
10854 *) objformat=elf ;;
10855 esac
10856 fi
10857 version_type=freebsd-$objformat
10858 case $version_type in
10859 freebsd-elf*)
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10861 need_version=no
10862 need_lib_prefix=no
10863 ;;
10864 freebsd-*)
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10866 need_version=yes
10867 ;;
10868 esac
10869 shlibpath_var=LD_LIBRARY_PATH
10870 case $host_os in
10871 freebsd2*)
10872 shlibpath_overrides_runpath=yes
10873 ;;
10874 freebsd3.[01]* | freebsdelf3.[01]*)
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 ;;
10878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10880 shlibpath_overrides_runpath=no
10881 hardcode_into_libs=yes
10882 ;;
10883 *) # from 4.6 on, and DragonFly
10884 shlibpath_overrides_runpath=yes
10885 hardcode_into_libs=yes
10886 ;;
10887 esac
10888 ;;
10889
10890gnu*)
10891 version_type=linux
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 hardcode_into_libs=yes
10898 ;;
10899
10900hpux9* | hpux10* | hpux11*)
10901 # Give a soname corresponding to the major version so that dld.sl refuses to
10902 # link against other versions.
10903 version_type=sunos
10904 need_lib_prefix=no
10905 need_version=no
10906 case $host_cpu in
10907 ia64*)
10908 shrext_cmds='.so'
10909 hardcode_into_libs=yes
10910 dynamic_linker="$host_os dld.so"
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 if test "X$HPUX_IA64_MODE" = X32; then
10916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10917 else
10918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10919 fi
10920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10921 ;;
10922 hppa*64*)
10923 shrext_cmds='.sl'
10924 hardcode_into_libs=yes
10925 dynamic_linker="$host_os dld.sl"
10926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10932 ;;
10933 *)
10934 shrext_cmds='.sl'
10935 dynamic_linker="$host_os dld.sl"
10936 shlibpath_var=SHLIB_PATH
10937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 ;;
10941 esac
10942 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10943 postinstall_cmds='chmod 555 $lib'
10944 ;;
10945
10946interix[3-9]*)
10947 version_type=linux
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=no
10955 hardcode_into_libs=yes
10956 ;;
10957
10958irix5* | irix6* | nonstopux*)
10959 case $host_os in
10960 nonstopux*) version_type=nonstopux ;;
10961 *)
10962 if test "$lt_cv_prog_gnu_ld" = yes; then
10963 version_type=linux
10964 else
10965 version_type=irix
10966 fi ;;
10967 esac
10968 need_lib_prefix=no
10969 need_version=no
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10972 case $host_os in
10973 irix5* | nonstopux*)
10974 libsuff= shlibsuff=
10975 ;;
10976 *)
10977 case $LD in # libtool.m4 will add one of these switches to LD
10978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10979 libsuff= shlibsuff= libmagic=32-bit;;
10980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10981 libsuff=32 shlibsuff=N32 libmagic=N32;;
10982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10984 *) libsuff= shlibsuff= libmagic=never-match;;
10985 esac
10986 ;;
10987 esac
10988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10989 shlibpath_overrides_runpath=no
10990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10992 hardcode_into_libs=yes
10993 ;;
10994
10995# No shared lib support for Linux oldld, aout, or coff.
10996linux*oldld* | linux*aout* | linux*coff*)
10997 dynamic_linker=no
10998 ;;
10999
11000# This must be Linux ELF.
11001linux* | k*bsd*-gnu | kopensolaris*-gnu)
11002 version_type=linux
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=no
11010 # Some binutils ld are patched to set DT_RUNPATH
11011 save_LDFLAGS=$LDFLAGS
11012 save_libdir=$libdir
11013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h. */
11017
11018int
11019main ()
11020{
11021
11022 ;
11023 return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"; then :
11027 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11028 shlibpath_overrides_runpath=yes
11029fi
11030fi
11031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033 LDFLAGS=$save_LDFLAGS
11034 libdir=$save_libdir
11035
11036 # This implies no fast_install, which is unacceptable.
11037 # Some rework will be needed to allow for fast_install
11038 # before this can be enabled.
11039 hardcode_into_libs=yes
11040
11041 # Append ld.so.conf contents to the search path
11042 if test -f /etc/ld.so.conf; then
11043 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' ' '`
11044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11045 fi
11046
11047 # We used to test for /lib/ld.so.1 and disable shared libraries on
11048 # powerpc, because MkLinux only supported shared libraries with the
11049 # GNU dynamic linker. Since this was broken with cross compilers,
11050 # most powerpc-linux boxes support dynamic linking these days and
11051 # people can always --disable-shared, the test was removed, and we
11052 # assume the GNU/Linux dynamic linker is in use.
11053 dynamic_linker='GNU/Linux ld.so'
11054 ;;
11055
11056netbsdelf*-gnu)
11057 version_type=linux
11058 need_lib_prefix=no
11059 need_version=no
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=no
11064 hardcode_into_libs=yes
11065 dynamic_linker='NetBSD ld.elf_so'
11066 ;;
11067
11068netbsd*)
11069 version_type=sunos
11070 need_lib_prefix=no
11071 need_version=no
11072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11075 dynamic_linker='NetBSD (a.out) ld.so'
11076 else
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 dynamic_linker='NetBSD ld.elf_so'
11080 fi
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=yes
11083 hardcode_into_libs=yes
11084 ;;
11085
11086newsos6)
11087 version_type=linux
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=yes
11091 ;;
11092
11093*nto* | *qnx*)
11094 version_type=qnx
11095 need_lib_prefix=no
11096 need_version=no
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=no
11101 hardcode_into_libs=yes
11102 dynamic_linker='ldqnx.so'
11103 ;;
11104
11105openbsd*)
11106 version_type=sunos
11107 sys_lib_dlsearch_path_spec="/usr/lib"
11108 need_lib_prefix=no
11109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11110 case $host_os in
11111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11112 *) need_version=no ;;
11113 esac
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11118 case $host_os in
11119 openbsd2.[89] | openbsd2.[89].*)
11120 shlibpath_overrides_runpath=no
11121 ;;
11122 *)
11123 shlibpath_overrides_runpath=yes
11124 ;;
11125 esac
11126 else
11127 shlibpath_overrides_runpath=yes
11128 fi
11129 ;;
11130
11131os2*)
11132 libname_spec='$name'
11133 shrext_cmds=".dll"
11134 need_lib_prefix=no
11135 library_names_spec='$libname${shared_ext} $libname.a'
11136 dynamic_linker='OS/2 ld.exe'
11137 shlibpath_var=LIBPATH
11138 ;;
11139
11140osf3* | osf4* | osf5*)
11141 version_type=osf
11142 need_lib_prefix=no
11143 need_version=no
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11149 ;;
11150
11151rdos*)
11152 dynamic_linker=no
11153 ;;
11154
11155solaris*)
11156 version_type=linux
11157 need_lib_prefix=no
11158 need_version=no
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 shlibpath_overrides_runpath=yes
11163 hardcode_into_libs=yes
11164 # ldd complains unless libraries are executable
11165 postinstall_cmds='chmod +x $lib'
11166 ;;
11167
11168sunos4*)
11169 version_type=sunos
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath=yes
11174 if test "$with_gnu_ld" = yes; then
11175 need_lib_prefix=no
11176 fi
11177 need_version=yes
11178 ;;
11179
11180sysv4 | sysv4.3*)
11181 version_type=linux
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 case $host_vendor in
11186 sni)
11187 shlibpath_overrides_runpath=no
11188 need_lib_prefix=no
11189 runpath_var=LD_RUN_PATH
11190 ;;
11191 siemens)
11192 need_lib_prefix=no
11193 ;;
11194 motorola)
11195 need_lib_prefix=no
11196 need_version=no
11197 shlibpath_overrides_runpath=no
11198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11199 ;;
11200 esac
11201 ;;
11202
11203sysv4*MP*)
11204 if test -d /usr/nec ;then
11205 version_type=linux
11206 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11207 soname_spec='$libname${shared_ext}.$major'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 fi
11210 ;;
11211
11212sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11213 version_type=freebsd-elf
11214 need_lib_prefix=no
11215 need_version=no
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=yes
11220 hardcode_into_libs=yes
11221 if test "$with_gnu_ld" = yes; then
11222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11223 else
11224 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11225 case $host_os in
11226 sco3.2v5*)
11227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11228 ;;
11229 esac
11230 fi
11231 sys_lib_dlsearch_path_spec='/usr/lib'
11232 ;;
11233
11234tpf*)
11235 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11236 version_type=linux
11237 need_lib_prefix=no
11238 need_version=no
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 shlibpath_overrides_runpath=no
11242 hardcode_into_libs=yes
11243 ;;
11244
11245uts4*)
11246 version_type=linux
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 soname_spec='${libname}${release}${shared_ext}$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 ;;
11251
11252*)
11253 dynamic_linker=no
11254 ;;
11255esac
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11257$as_echo "$dynamic_linker" >&6; }
11258test "$dynamic_linker" = no && can_build_shared=no
11259
11260variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11261if test "$GCC" = yes; then
11262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11263fi
11264
11265if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11266 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11267fi
11268if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11269 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11270fi
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11359$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11360hardcode_action=
11361if test -n "$hardcode_libdir_flag_spec" ||
11362 test -n "$runpath_var" ||
11363 test "X$hardcode_automatic" = "Xyes" ; then
11364
11365 # We can hardcode non-existent directories.
11366 if test "$hardcode_direct" != no &&
11367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11368 # have to relink, otherwise we might link with an installed library
11369 # when we should be linking with a yet-to-be-installed one
11370 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11371 test "$hardcode_minus_L" != no; then
11372 # Linking always hardcodes the temporary library directory.
11373 hardcode_action=relink
11374 else
11375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11376 hardcode_action=immediate
11377 fi
11378else
11379 # We cannot hardcode anything, or else we can only hardcode existing
11380 # directories.
11381 hardcode_action=unsupported
11382fi
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11384$as_echo "$hardcode_action" >&6; }
11385
11386if test "$hardcode_action" = relink ||
11387 test "$inherit_rpath" = yes; then
11388 # Fast installation is not supported
11389 enable_fast_install=no
11390elif test "$shlibpath_overrides_runpath" = yes ||
11391 test "$enable_shared" = no; then
11392 # Fast installation is not necessary
11393 enable_fast_install=needless
11394fi
11395
11396
11397
11398
11399
11400
11401 if test "x$enable_dlopen" != xyes; then
11402 enable_dlopen=unknown
11403 enable_dlopen_self=unknown
11404 enable_dlopen_self_static=unknown
11405else
11406 lt_cv_dlopen=no
11407 lt_cv_dlopen_libs=
11408
11409 case $host_os in
11410 beos*)
11411 lt_cv_dlopen="load_add_on"
11412 lt_cv_dlopen_libs=
11413 lt_cv_dlopen_self=yes
11414 ;;
11415
11416 mingw* | pw32* | cegcc*)
11417 lt_cv_dlopen="LoadLibrary"
11418 lt_cv_dlopen_libs=
11419 ;;
11420
11421 cygwin*)
11422 lt_cv_dlopen="dlopen"
11423 lt_cv_dlopen_libs=
11424 ;;
11425
11426 darwin*)
11427 # if libdl is installed we need to link against it
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11429$as_echo_n "checking for dlopen in -ldl... " >&6; }
11430if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11431 $as_echo_n "(cached) " >&6
11432else
11433 ac_check_lib_save_LIBS=$LIBS
11434LIBS="-ldl $LIBS"
11435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436/* end confdefs.h. */
11437
11438/* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441#ifdef __cplusplus
11442extern "C"
11443#endif
11444char dlopen ();
11445int
11446main ()
11447{
11448return dlopen ();
11449 ;
11450 return 0;
11451}
11452_ACEOF
11453if ac_fn_c_try_link "$LINENO"; then :
11454 ac_cv_lib_dl_dlopen=yes
11455else
11456 ac_cv_lib_dl_dlopen=no
11457fi
11458rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460LIBS=$ac_check_lib_save_LIBS
11461fi
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11463$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11464if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11466else
11467
11468 lt_cv_dlopen="dyld"
11469 lt_cv_dlopen_libs=
11470 lt_cv_dlopen_self=yes
11471
11472fi
11473
11474 ;;
11475
11476 *)
11477 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11478if test "x$ac_cv_func_shl_load" = x""yes; then :
11479 lt_cv_dlopen="shl_load"
11480else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11482$as_echo_n "checking for shl_load in -ldld... " >&6; }
11483if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11485else
11486 ac_check_lib_save_LIBS=$LIBS
11487LIBS="-ldld $LIBS"
11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489/* end confdefs.h. */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char shl_load ();
11498int
11499main ()
11500{
11501return shl_load ();
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_lib_dld_shl_load=yes
11508else
11509 ac_cv_lib_dld_shl_load=no
11510fi
11511rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513LIBS=$ac_check_lib_save_LIBS
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11516$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11517if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11518 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11519else
11520 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11521if test "x$ac_cv_func_dlopen" = x""yes; then :
11522 lt_cv_dlopen="dlopen"
11523else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11525$as_echo_n "checking for dlopen in -ldl... " >&6; }
11526if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528else
11529 ac_check_lib_save_LIBS=$LIBS
11530LIBS="-ldl $LIBS"
11531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532/* end confdefs.h. */
11533
11534/* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537#ifdef __cplusplus
11538extern "C"
11539#endif
11540char dlopen ();
11541int
11542main ()
11543{
11544return dlopen ();
11545 ;
11546 return 0;
11547}
11548_ACEOF
11549if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_lib_dl_dlopen=yes
11551else
11552 ac_cv_lib_dl_dlopen=no
11553fi
11554rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556LIBS=$ac_check_lib_save_LIBS
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11559$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11560if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11562else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11564$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11565if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11567else
11568 ac_check_lib_save_LIBS=$LIBS
11569LIBS="-lsvld $LIBS"
11570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571/* end confdefs.h. */
11572
11573/* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576#ifdef __cplusplus
11577extern "C"
11578#endif
11579char dlopen ();
11580int
11581main ()
11582{
11583return dlopen ();
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588if ac_fn_c_try_link "$LINENO"; then :
11589 ac_cv_lib_svld_dlopen=yes
11590else
11591 ac_cv_lib_svld_dlopen=no
11592fi
11593rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595LIBS=$ac_check_lib_save_LIBS
11596fi
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11598$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11599if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11601else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11603$as_echo_n "checking for dld_link in -ldld... " >&6; }
11604if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606else
11607 ac_check_lib_save_LIBS=$LIBS
11608LIBS="-ldld $LIBS"
11609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610/* end confdefs.h. */
11611
11612/* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11615#ifdef __cplusplus
11616extern "C"
11617#endif
11618char dld_link ();
11619int
11620main ()
11621{
11622return dld_link ();
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_lib_dld_dld_link=yes
11629else
11630 ac_cv_lib_dld_dld_link=no
11631fi
11632rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634LIBS=$ac_check_lib_save_LIBS
11635fi
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11637$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11638if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11640fi
11641
11642
11643fi
11644
11645
11646fi
11647
11648
11649fi
11650
11651
11652fi
11653
11654
11655fi
11656
11657 ;;
11658 esac
11659
11660 if test "x$lt_cv_dlopen" != xno; then
11661 enable_dlopen=yes
11662 else
11663 enable_dlopen=no
11664 fi
11665
11666 case $lt_cv_dlopen in
11667 dlopen)
11668 save_CPPFLAGS="$CPPFLAGS"
11669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11670
11671 save_LDFLAGS="$LDFLAGS"
11672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11673
11674 save_LIBS="$LIBS"
11675 LIBS="$lt_cv_dlopen_libs $LIBS"
11676
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11678$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11679if test "${lt_cv_dlopen_self+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11681else
11682 if test "$cross_compiling" = yes; then :
11683 lt_cv_dlopen_self=cross
11684else
11685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11686 lt_status=$lt_dlunknown
11687 cat > conftest.$ac_ext <<_LT_EOF
11688#line 11688 "configure"
11689#include "confdefs.h"
11690
11691#if HAVE_DLFCN_H
11692#include <dlfcn.h>
11693#endif
11694
11695#include <stdio.h>
11696
11697#ifdef RTLD_GLOBAL
11698# define LT_DLGLOBAL RTLD_GLOBAL
11699#else
11700# ifdef DL_GLOBAL
11701# define LT_DLGLOBAL DL_GLOBAL
11702# else
11703# define LT_DLGLOBAL 0
11704# endif
11705#endif
11706
11707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11708 find out it does not work in some platform. */
11709#ifndef LT_DLLAZY_OR_NOW
11710# ifdef RTLD_LAZY
11711# define LT_DLLAZY_OR_NOW RTLD_LAZY
11712# else
11713# ifdef DL_LAZY
11714# define LT_DLLAZY_OR_NOW DL_LAZY
11715# else
11716# ifdef RTLD_NOW
11717# define LT_DLLAZY_OR_NOW RTLD_NOW
11718# else
11719# ifdef DL_NOW
11720# define LT_DLLAZY_OR_NOW DL_NOW
11721# else
11722# define LT_DLLAZY_OR_NOW 0
11723# endif
11724# endif
11725# endif
11726# endif
11727#endif
11728
11729void fnord() { int i=42;}
11730int main ()
11731{
11732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11733 int status = $lt_dlunknown;
11734
11735 if (self)
11736 {
11737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11739 /* dlclose (self); */
11740 }
11741 else
11742 puts (dlerror ());
11743
11744 return status;
11745}
11746_LT_EOF
11747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11748 (eval $ac_link) 2>&5
11749 ac_status=$?
11750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11751 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11752 (./conftest; exit; ) >&5 2>/dev/null
11753 lt_status=$?
11754 case x$lt_status in
11755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11757 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11758 esac
11759 else :
11760 # compilation failed
11761 lt_cv_dlopen_self=no
11762 fi
11763fi
11764rm -fr conftest*
11765
11766
11767fi
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11769$as_echo "$lt_cv_dlopen_self" >&6; }
11770
11771 if test "x$lt_cv_dlopen_self" = xyes; then
11772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11774$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11775if test "${lt_cv_dlopen_self_static+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11777else
11778 if test "$cross_compiling" = yes; then :
11779 lt_cv_dlopen_self_static=cross
11780else
11781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11782 lt_status=$lt_dlunknown
11783 cat > conftest.$ac_ext <<_LT_EOF
11784#line 11784 "configure"
11785#include "confdefs.h"
11786
11787#if HAVE_DLFCN_H
11788#include <dlfcn.h>
11789#endif
11790
11791#include <stdio.h>
11792
11793#ifdef RTLD_GLOBAL
11794# define LT_DLGLOBAL RTLD_GLOBAL
11795#else
11796# ifdef DL_GLOBAL
11797# define LT_DLGLOBAL DL_GLOBAL
11798# else
11799# define LT_DLGLOBAL 0
11800# endif
11801#endif
11802
11803/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11804 find out it does not work in some platform. */
11805#ifndef LT_DLLAZY_OR_NOW
11806# ifdef RTLD_LAZY
11807# define LT_DLLAZY_OR_NOW RTLD_LAZY
11808# else
11809# ifdef DL_LAZY
11810# define LT_DLLAZY_OR_NOW DL_LAZY
11811# else
11812# ifdef RTLD_NOW
11813# define LT_DLLAZY_OR_NOW RTLD_NOW
11814# else
11815# ifdef DL_NOW
11816# define LT_DLLAZY_OR_NOW DL_NOW
11817# else
11818# define LT_DLLAZY_OR_NOW 0
11819# endif
11820# endif
11821# endif
11822# endif
11823#endif
11824
11825void fnord() { int i=42;}
11826int main ()
11827{
11828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11829 int status = $lt_dlunknown;
11830
11831 if (self)
11832 {
11833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11835 /* dlclose (self); */
11836 }
11837 else
11838 puts (dlerror ());
11839
11840 return status;
11841}
11842_LT_EOF
11843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11844 (eval $ac_link) 2>&5
11845 ac_status=$?
11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11848 (./conftest; exit; ) >&5 2>/dev/null
11849 lt_status=$?
11850 case x$lt_status in
11851 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11852 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11853 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11854 esac
11855 else :
11856 # compilation failed
11857 lt_cv_dlopen_self_static=no
11858 fi
11859fi
11860rm -fr conftest*
11861
11862
11863fi
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11865$as_echo "$lt_cv_dlopen_self_static" >&6; }
11866 fi
11867
11868 CPPFLAGS="$save_CPPFLAGS"
11869 LDFLAGS="$save_LDFLAGS"
11870 LIBS="$save_LIBS"
11871 ;;
11872 esac
11873
11874 case $lt_cv_dlopen_self in
11875 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11876 *) enable_dlopen_self=unknown ;;
11877 esac
11878
11879 case $lt_cv_dlopen_self_static in
11880 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11881 *) enable_dlopen_self_static=unknown ;;
11882 esac
11883fi
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901striplib=
11902old_striplib=
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11904$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11905if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11906 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11907 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909$as_echo "yes" >&6; }
11910else
11911# FIXME - insert some real tests, host_os isn't really good enough
11912 case $host_os in
11913 darwin*)
11914 if test -n "$STRIP" ; then
11915 striplib="$STRIP -x"
11916 old_striplib="$STRIP -S"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918$as_echo "yes" >&6; }
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922 fi
11923 ;;
11924 *)
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
11927 ;;
11928 esac
11929fi
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942 # Report which library types will actually be built
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11944$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11946$as_echo "$can_build_shared" >&6; }
11947
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11949$as_echo_n "checking whether to build shared libraries... " >&6; }
11950 test "$can_build_shared" = "no" && enable_shared=no
11951
11952 # On AIX, shared libraries and static libraries use the same namespace, and
11953 # are all built from PIC.
11954 case $host_os in
11955 aix3*)
11956 test "$enable_shared" = yes && enable_static=no
11957 if test -n "$RANLIB"; then
11958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11959 postinstall_cmds='$RANLIB $lib'
11960 fi
11961 ;;
11962
11963 aix[4-9]*)
11964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11965 test "$enable_shared" = yes && enable_static=no
11966 fi
11967 ;;
11968 esac
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11970$as_echo "$enable_shared" >&6; }
11971
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11973$as_echo_n "checking whether to build static libraries... " >&6; }
11974 # Make sure either enable_shared or enable_static is yes.
11975 test "$enable_shared" = yes || enable_static=yes
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11977$as_echo "$enable_static" >&6; }
11978
11979
11980
11981
11982fi
11983ac_ext=cpp
11984ac_cpp='$CXXCPP $CPPFLAGS'
11985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11988
11989CC="$lt_save_CC"
11990
11991
11992ac_ext=cpp
11993ac_cpp='$CXXCPP $CPPFLAGS'
11994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11997
11998archive_cmds_need_lc_CXX=no
11999allow_undefined_flag_CXX=
12000always_export_symbols_CXX=no
12001archive_expsym_cmds_CXX=
12002compiler_needs_object_CXX=no
12003export_dynamic_flag_spec_CXX=
12004hardcode_direct_CXX=no
12005hardcode_direct_absolute_CXX=no
12006hardcode_libdir_flag_spec_CXX=
12007hardcode_libdir_flag_spec_ld_CXX=
12008hardcode_libdir_separator_CXX=
12009hardcode_minus_L_CXX=no
12010hardcode_shlibpath_var_CXX=unsupported
12011hardcode_automatic_CXX=no
12012inherit_rpath_CXX=no
12013module_cmds_CXX=
12014module_expsym_cmds_CXX=
12015link_all_deplibs_CXX=unknown
12016old_archive_cmds_CXX=$old_archive_cmds
12017no_undefined_flag_CXX=
12018whole_archive_flag_spec_CXX=
12019enable_shared_with_static_runtimes_CXX=no
12020
12021# Source file extension for C++ test sources.
12022ac_ext=cpp
12023
12024# Object file extension for compiled C++ test sources.
12025objext=o
12026objext_CXX=$objext
12027
12028# No sense in running all these tests if we already determined that
12029# the CXX compiler isn't working. Some variables (like enable_shared)
12030# are currently assumed to apply to all compilers on this platform,
12031# and will be corrupted by setting them based on a non-working compiler.
12032if test "$_lt_caught_CXX_error" != yes; then
12033 # Code to be used in simple compile tests
12034 lt_simple_compile_test_code="int some_variable = 0;"
12035
12036 # Code to be used in simple link tests
12037 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12038
12039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12040
12041
12042
12043
12044
12045
12046# If no C compiler was specified, use CC.
12047LTCC=${LTCC-"$CC"}
12048
12049# If no C compiler flags were specified, use CFLAGS.
12050LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12051
12052# Allow CC to be a program name with arguments.
12053compiler=$CC
12054
12055
12056 # save warnings/boilerplate of simple test code
12057 ac_outfile=conftest.$ac_objext
12058echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12059eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12060_lt_compiler_boilerplate=`cat conftest.err`
12061$RM conftest*
12062
12063 ac_outfile=conftest.$ac_objext
12064echo "$lt_simple_link_test_code" >conftest.$ac_ext
12065eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12066_lt_linker_boilerplate=`cat conftest.err`
12067$RM -r conftest*
12068
12069
12070 # Allow CC to be a program name with arguments.
12071 lt_save_CC=$CC
12072 lt_save_LD=$LD
12073 lt_save_GCC=$GCC
12074 GCC=$GXX
12075 lt_save_with_gnu_ld=$with_gnu_ld
12076 lt_save_path_LD=$lt_cv_path_LD
12077 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12078 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12079 else
12080 $as_unset lt_cv_prog_gnu_ld
12081 fi
12082 if test -n "${lt_cv_path_LDCXX+set}"; then
12083 lt_cv_path_LD=$lt_cv_path_LDCXX
12084 else
12085 $as_unset lt_cv_path_LD
12086 fi
12087 test -z "${LDCXX+set}" || LD=$LDCXX
12088 CC=${CXX-"c++"}
12089 compiler=$CC
12090 compiler_CXX=$CC
12091 for cc_temp in $compiler""; do
12092 case $cc_temp in
12093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12095 \-*) ;;
12096 *) break;;
12097 esac
12098done
12099cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12100
12101
12102 if test -n "$compiler"; then
12103 # We don't want -fno-exception when compiling C++ code, so set the
12104 # no_builtin_flag separately
12105 if test "$GXX" = yes; then
12106 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12107 else
12108 lt_prog_compiler_no_builtin_flag_CXX=
12109 fi
12110
12111 if test "$GXX" = yes; then
12112 # Set up default GNU C++ configuration
12113
12114
12115
12116# Check whether --with-gnu-ld was given.
12117if test "${with_gnu_ld+set}" = set; then :
12118 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12119else
12120 with_gnu_ld=no
12121fi
12122
12123ac_prog=ld
12124if test "$GCC" = yes; then
12125 # Check if gcc -print-prog-name=ld gives a path.
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12127$as_echo_n "checking for ld used by $CC... " >&6; }
12128 case $host in
12129 *-*-mingw*)
12130 # gcc leaves a trailing carriage return which upsets mingw
12131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12132 *)
12133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12134 esac
12135 case $ac_prog in
12136 # Accept absolute paths.
12137 [\\/]* | ?:[\\/]*)
12138 re_direlt='/[^/][^/]*/\.\./'
12139 # Canonicalize the pathname of ld
12140 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12141 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12142 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12143 done
12144 test -z "$LD" && LD="$ac_prog"
12145 ;;
12146 "")
12147 # If it fails, then pretend we aren't using GCC.
12148 ac_prog=ld
12149 ;;
12150 *)
12151 # If it is relative, then search for the first ld in PATH.
12152 with_gnu_ld=unknown
12153 ;;
12154 esac
12155elif test "$with_gnu_ld" = yes; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12157$as_echo_n "checking for GNU ld... " >&6; }
12158else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12160$as_echo_n "checking for non-GNU ld... " >&6; }
12161fi
12162if test "${lt_cv_path_LD+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12164else
12165 if test -z "$LD"; then
12166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12167 for ac_dir in $PATH; do
12168 IFS="$lt_save_ifs"
12169 test -z "$ac_dir" && ac_dir=.
12170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12171 lt_cv_path_LD="$ac_dir/$ac_prog"
12172 # Check to see if the program is GNU ld. I'd rather use --version,
12173 # but apparently some variants of GNU ld only accept -v.
12174 # Break only if it was the GNU/non-GNU ld that we prefer.
12175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12176 *GNU* | *'with BFD'*)
12177 test "$with_gnu_ld" != no && break
12178 ;;
12179 *)
12180 test "$with_gnu_ld" != yes && break
12181 ;;
12182 esac
12183 fi
12184 done
12185 IFS="$lt_save_ifs"
12186else
12187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12188fi
12189fi
12190
12191LD="$lt_cv_path_LD"
12192if test -n "$LD"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12194$as_echo "$LD" >&6; }
12195else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197$as_echo "no" >&6; }
12198fi
12199test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12201$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12202if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12204else
12205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12206case `$LD -v 2>&1 </dev/null` in
12207*GNU* | *'with BFD'*)
12208 lt_cv_prog_gnu_ld=yes
12209 ;;
12210*)
12211 lt_cv_prog_gnu_ld=no
12212 ;;
12213esac
12214fi
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12216$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12217with_gnu_ld=$lt_cv_prog_gnu_ld
12218
12219
12220
12221
12222
12223
12224
12225 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12226 # archiving commands below assume that GNU ld is being used.
12227 if test "$with_gnu_ld" = yes; then
12228 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12229 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'
12230
12231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12233
12234 # If archive_cmds runs LD, not CC, wlarc should be empty
12235 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12236 # investigate it a little bit more. (MM)
12237 wlarc='${wl}'
12238
12239 # ancient GNU ld didn't support --whole-archive et. al.
12240 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12241 $GREP 'no-whole-archive' > /dev/null; then
12242 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12243 else
12244 whole_archive_flag_spec_CXX=
12245 fi
12246 else
12247 with_gnu_ld=no
12248 wlarc=
12249
12250 # A generic and very simple default shared library creation
12251 # command for GNU C++ for the case where it uses the native
12252 # linker, instead of GNU ld. If possible, this setting should
12253 # overridden to take advantage of the native linker features on
12254 # the platform it is being used on.
12255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12256 fi
12257
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12262
12263 else
12264 GXX=no
12265 with_gnu_ld=no
12266 wlarc=
12267 fi
12268
12269 # PORTME: fill in a description of your system's C++ link characteristics
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12271$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12272 ld_shlibs_CXX=yes
12273 case $host_os in
12274 aix3*)
12275 # FIXME: insert proper C++ library support
12276 ld_shlibs_CXX=no
12277 ;;
12278 aix[4-9]*)
12279 if test "$host_cpu" = ia64; then
12280 # On IA64, the linker does run time linking by default, so we don't
12281 # have to do anything special.
12282 aix_use_runtimelinking=no
12283 exp_sym_flag='-Bexport'
12284 no_entry_flag=""
12285 else
12286 aix_use_runtimelinking=no
12287
12288 # Test if we are trying to use run time linking or normal
12289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12290 # need to do runtime linking.
12291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12292 for ld_flag in $LDFLAGS; do
12293 case $ld_flag in
12294 *-brtl*)
12295 aix_use_runtimelinking=yes
12296 break
12297 ;;
12298 esac
12299 done
12300 ;;
12301 esac
12302
12303 exp_sym_flag='-bexport'
12304 no_entry_flag='-bnoentry'
12305 fi
12306
12307 # When large executables or shared objects are built, AIX ld can
12308 # have problems creating the table of contents. If linking a library
12309 # or program results in "error TOC overflow" add -mminimal-toc to
12310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12312
12313 archive_cmds_CXX=''
12314 hardcode_direct_CXX=yes
12315 hardcode_direct_absolute_CXX=yes
12316 hardcode_libdir_separator_CXX=':'
12317 link_all_deplibs_CXX=yes
12318 file_list_spec_CXX='${wl}-f,'
12319
12320 if test "$GXX" = yes; then
12321 case $host_os in aix4.[012]|aix4.[012].*)
12322 # We only want to do this on AIX 4.2 and lower, the check
12323 # below for broken collect2 doesn't work under 4.3+
12324 collect2name=`${CC} -print-prog-name=collect2`
12325 if test -f "$collect2name" &&
12326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12327 then
12328 # We have reworked collect2
12329 :
12330 else
12331 # We have old collect2
12332 hardcode_direct_CXX=unsupported
12333 # It fails to find uninstalled libraries when the uninstalled
12334 # path is not listed in the libpath. Setting hardcode_minus_L
12335 # to unsupported forces relinking
12336 hardcode_minus_L_CXX=yes
12337 hardcode_libdir_flag_spec_CXX='-L$libdir'
12338 hardcode_libdir_separator_CXX=
12339 fi
12340 esac
12341 shared_flag='-shared'
12342 if test "$aix_use_runtimelinking" = yes; then
12343 shared_flag="$shared_flag "'${wl}-G'
12344 fi
12345 else
12346 # not using gcc
12347 if test "$host_cpu" = ia64; then
12348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12349 # chokes on -Wl,-G. The following line is correct:
12350 shared_flag='-G'
12351 else
12352 if test "$aix_use_runtimelinking" = yes; then
12353 shared_flag='${wl}-G'
12354 else
12355 shared_flag='${wl}-bM:SRE'
12356 fi
12357 fi
12358 fi
12359
12360 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12361 # It seems that -bexpall does not export symbols beginning with
12362 # underscore (_), so it is better to generate a list of symbols to
12363 # export.
12364 always_export_symbols_CXX=yes
12365 if test "$aix_use_runtimelinking" = yes; then
12366 # Warning - without using the other runtime loading flags (-brtl),
12367 # -berok will link without error, but may produce a broken library.
12368 allow_undefined_flag_CXX='-berok'
12369 # Determine the default libpath from the value encoded in an empty
12370 # executable.
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372/* end confdefs.h. */
12373
12374int
12375main ()
12376{
12377
12378 ;
12379 return 0;
12380}
12381_ACEOF
12382if ac_fn_cxx_try_link "$LINENO"; then :
12383
12384lt_aix_libpath_sed='
12385 /Import File Strings/,/^$/ {
12386 /^0/ {
12387 s/^0 *\(.*\)$/\1/
12388 p
12389 }
12390 }'
12391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12392# Check for a 64-bit object if we didn't find anything.
12393if test -z "$aix_libpath"; then
12394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12395fi
12396fi
12397rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12400
12401 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12402
12403 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"
12404 else
12405 if test "$host_cpu" = ia64; then
12406 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12407 allow_undefined_flag_CXX="-z nodefs"
12408 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"
12409 else
12410 # Determine the default libpath from the value encoded in an
12411 # empty executable.
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h. */
12414
12415int
12416main ()
12417{
12418
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423if ac_fn_cxx_try_link "$LINENO"; then :
12424
12425lt_aix_libpath_sed='
12426 /Import File Strings/,/^$/ {
12427 /^0/ {
12428 s/^0 *\(.*\)$/\1/
12429 p
12430 }
12431 }'
12432aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12433# Check for a 64-bit object if we didn't find anything.
12434if test -z "$aix_libpath"; then
12435 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12436fi
12437fi
12438rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12441
12442 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12443 # Warning - without using the other run time loading flags,
12444 # -berok will link without error, but may produce a broken library.
12445 no_undefined_flag_CXX=' ${wl}-bernotok'
12446 allow_undefined_flag_CXX=' ${wl}-berok'
12447 # Exported symbols can be pulled into shared objects from archives
12448 whole_archive_flag_spec_CXX='$convenience'
12449 archive_cmds_need_lc_CXX=yes
12450 # This is similar to how AIX traditionally builds its shared
12451 # libraries.
12452 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'
12453 fi
12454 fi
12455 ;;
12456
12457 beos*)
12458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12459 allow_undefined_flag_CXX=unsupported
12460 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12461 # support --undefined. This deserves some investigation. FIXME
12462 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12463 else
12464 ld_shlibs_CXX=no
12465 fi
12466 ;;
12467
12468 chorus*)
12469 case $cc_basename in
12470 *)
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12473 ;;
12474 esac
12475 ;;
12476
12477 cygwin* | mingw* | pw32* | cegcc*)
12478 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12479 # as there is no search path for DLLs.
12480 hardcode_libdir_flag_spec_CXX='-L$libdir'
12481 allow_undefined_flag_CXX=unsupported
12482 always_export_symbols_CXX=no
12483 enable_shared_with_static_runtimes_CXX=yes
12484
12485 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12486 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'
12487 # If the export-symbols file already is a .def file (1st line
12488 # is EXPORTS), use it as is; otherwise, prepend...
12489 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12490 cp $export_symbols $output_objdir/$soname.def;
12491 else
12492 echo EXPORTS > $output_objdir/$soname.def;
12493 cat $export_symbols >> $output_objdir/$soname.def;
12494 fi~
12495 $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'
12496 else
12497 ld_shlibs_CXX=no
12498 fi
12499 ;;
12500 darwin* | rhapsody*)
12501
12502
12503 archive_cmds_need_lc_CXX=no
12504 hardcode_direct_CXX=no
12505 hardcode_automatic_CXX=yes
12506 hardcode_shlibpath_var_CXX=unsupported
12507 whole_archive_flag_spec_CXX=''
12508 link_all_deplibs_CXX=yes
12509 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12510 case $cc_basename in
12511 ifort*) _lt_dar_can_shared=yes ;;
12512 *) _lt_dar_can_shared=$GCC ;;
12513 esac
12514 if test "$_lt_dar_can_shared" = "yes"; then
12515 output_verbose_link_cmd=echo
12516 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}"
12517 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12518 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}"
12519 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}"
12520 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12521 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}"
12522 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}"
12523 fi
12524
12525 else
12526 ld_shlibs_CXX=no
12527 fi
12528
12529 ;;
12530
12531 dgux*)
12532 case $cc_basename in
12533 ec++*)
12534 # FIXME: insert proper C++ library support
12535 ld_shlibs_CXX=no
12536 ;;
12537 ghcx*)
12538 # Green Hills C++ Compiler
12539 # FIXME: insert proper C++ library support
12540 ld_shlibs_CXX=no
12541 ;;
12542 *)
12543 # FIXME: insert proper C++ library support
12544 ld_shlibs_CXX=no
12545 ;;
12546 esac
12547 ;;
12548
12549 freebsd[12]*)
12550 # C++ shared libraries reported to be fairly broken before
12551 # switch to ELF
12552 ld_shlibs_CXX=no
12553 ;;
12554
12555 freebsd-elf*)
12556 archive_cmds_need_lc_CXX=no
12557 ;;
12558
12559 freebsd* | dragonfly*)
12560 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12561 # conventions
12562 ld_shlibs_CXX=yes
12563 ;;
12564
12565 gnu*)
12566 ;;
12567
12568 hpux9*)
12569 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12570 hardcode_libdir_separator_CXX=:
12571 export_dynamic_flag_spec_CXX='${wl}-E'
12572 hardcode_direct_CXX=yes
12573 hardcode_minus_L_CXX=yes # Not in the search PATH,
12574 # but as the default
12575 # location of the library.
12576
12577 case $cc_basename in
12578 CC*)
12579 # FIXME: insert proper C++ library support
12580 ld_shlibs_CXX=no
12581 ;;
12582 aCC*)
12583 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'
12584 # Commands to make compiler produce verbose output that lists
12585 # what "hidden" libraries, object files and flags are used when
12586 # linking a shared library.
12587 #
12588 # There doesn't appear to be a way to prevent this compiler from
12589 # explicitly linking system object files so we need to strip them
12590 # from the output so that they don't get included in the library
12591 # dependencies.
12592 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'
12593 ;;
12594 *)
12595 if test "$GXX" = yes; then
12596 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'
12597 else
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12600 fi
12601 ;;
12602 esac
12603 ;;
12604
12605 hpux10*|hpux11*)
12606 if test $with_gnu_ld = no; then
12607 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12608 hardcode_libdir_separator_CXX=:
12609
12610 case $host_cpu in
12611 hppa*64*|ia64*)
12612 ;;
12613 *)
12614 export_dynamic_flag_spec_CXX='${wl}-E'
12615 ;;
12616 esac
12617 fi
12618 case $host_cpu in
12619 hppa*64*|ia64*)
12620 hardcode_direct_CXX=no
12621 hardcode_shlibpath_var_CXX=no
12622 ;;
12623 *)
12624 hardcode_direct_CXX=yes
12625 hardcode_direct_absolute_CXX=yes
12626 hardcode_minus_L_CXX=yes # Not in the search PATH,
12627 # but as the default
12628 # location of the library.
12629 ;;
12630 esac
12631
12632 case $cc_basename in
12633 CC*)
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12636 ;;
12637 aCC*)
12638 case $host_cpu in
12639 hppa*64*)
12640 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12641 ;;
12642 ia64*)
12643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12644 ;;
12645 *)
12646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12647 ;;
12648 esac
12649 # Commands to make compiler produce verbose output that lists
12650 # what "hidden" libraries, object files and flags are used when
12651 # linking a shared library.
12652 #
12653 # There doesn't appear to be a way to prevent this compiler from
12654 # explicitly linking system object files so we need to strip them
12655 # from the output so that they don't get included in the library
12656 # dependencies.
12657 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'
12658 ;;
12659 *)
12660 if test "$GXX" = yes; then
12661 if test $with_gnu_ld = no; then
12662 case $host_cpu in
12663 hppa*64*)
12664 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12665 ;;
12666 ia64*)
12667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12668 ;;
12669 *)
12670 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'
12671 ;;
12672 esac
12673 fi
12674 else
12675 # FIXME: insert proper C++ library support
12676 ld_shlibs_CXX=no
12677 fi
12678 ;;
12679 esac
12680 ;;
12681
12682 interix[3-9]*)
12683 hardcode_direct_CXX=no
12684 hardcode_shlibpath_var_CXX=no
12685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_CXX='${wl}-E'
12687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12688 # Instead, shared libraries are loaded at an image base (0x10000000 by
12689 # default) and relocated if they conflict, which is a slow very memory
12690 # consuming and fragmenting process. To avoid this, we pick a random,
12691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12693 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'
12694 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'
12695 ;;
12696 irix5* | irix6*)
12697 case $cc_basename in
12698 CC*)
12699 # SGI C++
12700 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'
12701
12702 # Archives containing C++ object files must be created using
12703 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12704 # necessary to make sure instantiated templates are included
12705 # in the archive.
12706 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12707 ;;
12708 *)
12709 if test "$GXX" = yes; then
12710 if test "$with_gnu_ld" = no; then
12711 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'
12712 else
12713 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'
12714 fi
12715 fi
12716 link_all_deplibs_CXX=yes
12717 ;;
12718 esac
12719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12720 hardcode_libdir_separator_CXX=:
12721 inherit_rpath_CXX=yes
12722 ;;
12723
12724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12725 case $cc_basename in
12726 KCC*)
12727 # Kuck and Associates, Inc. (KAI) C++ Compiler
12728
12729 # KCC will only create a shared library if the output file
12730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12731 # to its proper name (with version) after linking.
12732 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'
12733 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'
12734 # Commands to make compiler produce verbose output that lists
12735 # what "hidden" libraries, object files and flags are used when
12736 # linking a shared library.
12737 #
12738 # There doesn't appear to be a way to prevent this compiler from
12739 # explicitly linking system object files so we need to strip them
12740 # from the output so that they don't get included in the library
12741 # dependencies.
12742 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'
12743
12744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12746
12747 # Archives containing C++ object files must be created using
12748 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12749 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12750 ;;
12751 icpc* | ecpc* )
12752 # Intel C++
12753 with_gnu_ld=yes
12754 # version 8.0 and above of icpc choke on multiply defined symbols
12755 # if we add $predep_objects and $postdep_objects, however 7.1 and
12756 # earlier do not add the objects themselves.
12757 case `$CC -V 2>&1` in
12758 *"Version 7."*)
12759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12760 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'
12761 ;;
12762 *) # Version 8.0 or newer
12763 tmp_idyn=
12764 case $host_cpu in
12765 ia64*) tmp_idyn=' -i_dynamic';;
12766 esac
12767 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12768 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'
12769 ;;
12770 esac
12771 archive_cmds_need_lc_CXX=no
12772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12774 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12775 ;;
12776 pgCC* | pgcpp*)
12777 # Portland Group C++ compiler
12778 case `$CC -V` in
12779 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12780 prelink_cmds_CXX='tpldir=Template.dir~
12781 rm -rf $tpldir~
12782 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12783 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12784 old_archive_cmds_CXX='tpldir=Template.dir~
12785 rm -rf $tpldir~
12786 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12787 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12788 $RANLIB $oldlib'
12789 archive_cmds_CXX='tpldir=Template.dir~
12790 rm -rf $tpldir~
12791 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12792 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12793 archive_expsym_cmds_CXX='tpldir=Template.dir~
12794 rm -rf $tpldir~
12795 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12796 $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'
12797 ;;
12798 *) # Version 6 will use weak symbols
12799 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12800 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'
12801 ;;
12802 esac
12803
12804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12806 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'
12807 ;;
12808 cxx*)
12809 # Compaq C++
12810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12811 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'
12812
12813 runpath_var=LD_RUN_PATH
12814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12815 hardcode_libdir_separator_CXX=:
12816
12817 # Commands to make compiler produce verbose output that lists
12818 # what "hidden" libraries, object files and flags are used when
12819 # linking a shared library.
12820 #
12821 # There doesn't appear to be a way to prevent this compiler from
12822 # explicitly linking system object files so we need to strip them
12823 # from the output so that they don't get included in the library
12824 # dependencies.
12825 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'
12826 ;;
12827 xl*)
12828 # IBM XL 8.0 on PPC, with GNU ld
12829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12831 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 if test "x$supports_anon_versioning" = xyes; then
12833 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12835 echo "local: *; };" >> $output_objdir/$libname.ver~
12836 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12837 fi
12838 ;;
12839 *)
12840 case `$CC -V 2>&1 | sed 5q` in
12841 *Sun\ C*)
12842 # Sun C++ 5.9
12843 no_undefined_flag_CXX=' -zdefs'
12844 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12845 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'
12846 hardcode_libdir_flag_spec_CXX='-R$libdir'
12847 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'
12848 compiler_needs_object_CXX=yes
12849
12850 # Not sure whether something based on
12851 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12852 # would be better.
12853 output_verbose_link_cmd='echo'
12854
12855 # Archives containing C++ object files must be created using
12856 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12857 # necessary to make sure instantiated templates are included
12858 # in the archive.
12859 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12860 ;;
12861 esac
12862 ;;
12863 esac
12864 ;;
12865
12866 lynxos*)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870
12871 m88k*)
12872 # FIXME: insert proper C++ library support
12873 ld_shlibs_CXX=no
12874 ;;
12875
12876 mvs*)
12877 case $cc_basename in
12878 cxx*)
12879 # FIXME: insert proper C++ library support
12880 ld_shlibs_CXX=no
12881 ;;
12882 *)
12883 # FIXME: insert proper C++ library support
12884 ld_shlibs_CXX=no
12885 ;;
12886 esac
12887 ;;
12888
12889 netbsd*)
12890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12891 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12892 wlarc=
12893 hardcode_libdir_flag_spec_CXX='-R$libdir'
12894 hardcode_direct_CXX=yes
12895 hardcode_shlibpath_var_CXX=no
12896 fi
12897 # Workaround some broken pre-1.5 toolchains
12898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12899 ;;
12900
12901 *nto* | *qnx*)
12902 ld_shlibs_CXX=yes
12903 ;;
12904
12905 openbsd2*)
12906 # C++ shared libraries are fairly broken
12907 ld_shlibs_CXX=no
12908 ;;
12909
12910 openbsd*)
12911 if test -f /usr/libexec/ld.so; then
12912 hardcode_direct_CXX=yes
12913 hardcode_shlibpath_var_CXX=no
12914 hardcode_direct_absolute_CXX=yes
12915 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12918 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12919 export_dynamic_flag_spec_CXX='${wl}-E'
12920 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12921 fi
12922 output_verbose_link_cmd=echo
12923 else
12924 ld_shlibs_CXX=no
12925 fi
12926 ;;
12927
12928 osf3* | osf4* | osf5*)
12929 case $cc_basename in
12930 KCC*)
12931 # Kuck and Associates, Inc. (KAI) C++ Compiler
12932
12933 # KCC will only create a shared library if the output file
12934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12935 # to its proper name (with version) after linking.
12936 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'
12937
12938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12939 hardcode_libdir_separator_CXX=:
12940
12941 # Archives containing C++ object files must be created using
12942 # the KAI C++ compiler.
12943 case $host in
12944 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12945 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12946 esac
12947 ;;
12948 RCC*)
12949 # Rational C++ 2.4.1
12950 # FIXME: insert proper C++ library support
12951 ld_shlibs_CXX=no
12952 ;;
12953 cxx*)
12954 case $host in
12955 osf3*)
12956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12957 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'
12958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12959 ;;
12960 *)
12961 allow_undefined_flag_CXX=' -expect_unresolved \*'
12962 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'
12963 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12964 echo "-hidden">> $lib.exp~
12965 $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~
12966 $RM $lib.exp'
12967 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12968 ;;
12969 esac
12970
12971 hardcode_libdir_separator_CXX=:
12972
12973 # Commands to make compiler produce verbose output that lists
12974 # what "hidden" libraries, object files and flags are used when
12975 # linking a shared library.
12976 #
12977 # There doesn't appear to be a way to prevent this compiler from
12978 # explicitly linking system object files so we need to strip them
12979 # from the output so that they don't get included in the library
12980 # dependencies.
12981 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'
12982 ;;
12983 *)
12984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12985 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12986 case $host in
12987 osf3*)
12988 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'
12989 ;;
12990 *)
12991 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'
12992 ;;
12993 esac
12994
12995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12996 hardcode_libdir_separator_CXX=:
12997
12998 # Commands to make compiler produce verbose output that lists
12999 # what "hidden" libraries, object files and flags are used when
13000 # linking a shared library.
13001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13002
13003 else
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13006 fi
13007 ;;
13008 esac
13009 ;;
13010
13011 psos*)
13012 # FIXME: insert proper C++ library support
13013 ld_shlibs_CXX=no
13014 ;;
13015
13016 sunos4*)
13017 case $cc_basename in
13018 CC*)
13019 # Sun C++ 4.x
13020 # FIXME: insert proper C++ library support
13021 ld_shlibs_CXX=no
13022 ;;
13023 lcc*)
13024 # Lucid
13025 # FIXME: insert proper C++ library support
13026 ld_shlibs_CXX=no
13027 ;;
13028 *)
13029 # FIXME: insert proper C++ library support
13030 ld_shlibs_CXX=no
13031 ;;
13032 esac
13033 ;;
13034
13035 solaris*)
13036 case $cc_basename in
13037 CC*)
13038 # Sun C++ 4.2, 5.x and Centerline C++
13039 archive_cmds_need_lc_CXX=yes
13040 no_undefined_flag_CXX=' -zdefs'
13041 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13042 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13043 $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'
13044
13045 hardcode_libdir_flag_spec_CXX='-R$libdir'
13046 hardcode_shlibpath_var_CXX=no
13047 case $host_os in
13048 solaris2.[0-5] | solaris2.[0-5].*) ;;
13049 *)
13050 # The compiler driver will combine and reorder linker options,
13051 # but understands `-z linker_flag'.
13052 # Supported since Solaris 2.6 (maybe 2.5.1?)
13053 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13054 ;;
13055 esac
13056 link_all_deplibs_CXX=yes
13057
13058 output_verbose_link_cmd='echo'
13059
13060 # Archives containing C++ object files must be created using
13061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13062 # necessary to make sure instantiated templates are included
13063 # in the archive.
13064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13065 ;;
13066 gcx*)
13067 # Green Hills C++ Compiler
13068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13069
13070 # The C++ compiler must be used to create the archive.
13071 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13072 ;;
13073 *)
13074 # GNU C++ compiler with Solaris linker
13075 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13076 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13077 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13078 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13079 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13080 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13081
13082 # Commands to make compiler produce verbose output that lists
13083 # what "hidden" libraries, object files and flags are used when
13084 # linking a shared library.
13085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13086 else
13087 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13088 # platform.
13089 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13091 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13092
13093 # Commands to make compiler produce verbose output that lists
13094 # what "hidden" libraries, object files and flags are used when
13095 # linking a shared library.
13096 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13097 fi
13098
13099 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13100 case $host_os in
13101 solaris2.[0-5] | solaris2.[0-5].*) ;;
13102 *)
13103 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13104 ;;
13105 esac
13106 fi
13107 ;;
13108 esac
13109 ;;
13110
13111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13112 no_undefined_flag_CXX='${wl}-z,text'
13113 archive_cmds_need_lc_CXX=no
13114 hardcode_shlibpath_var_CXX=no
13115 runpath_var='LD_RUN_PATH'
13116
13117 case $cc_basename in
13118 CC*)
13119 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121 ;;
13122 *)
13123 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13124 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13125 ;;
13126 esac
13127 ;;
13128
13129 sysv5* | sco3.2v5* | sco5v6*)
13130 # Note: We can NOT use -z defs as we might desire, because we do not
13131 # link with -lc, and that would cause any symbols used from libc to
13132 # always be unresolved, which means just about no library would
13133 # ever link correctly. If we're not using GNU ld we use -z text
13134 # though, which does catch some bad symbols but isn't as heavy-handed
13135 # as -z defs.
13136 no_undefined_flag_CXX='${wl}-z,text'
13137 allow_undefined_flag_CXX='${wl}-z,nodefs'
13138 archive_cmds_need_lc_CXX=no
13139 hardcode_shlibpath_var_CXX=no
13140 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13141 hardcode_libdir_separator_CXX=':'
13142 link_all_deplibs_CXX=yes
13143 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13144 runpath_var='LD_RUN_PATH'
13145
13146 case $cc_basename in
13147 CC*)
13148 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13149 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13150 ;;
13151 *)
13152 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13153 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154 ;;
13155 esac
13156 ;;
13157
13158 tandem*)
13159 case $cc_basename in
13160 NCC*)
13161 # NonStop-UX NCC 3.20
13162 # FIXME: insert proper C++ library support
13163 ld_shlibs_CXX=no
13164 ;;
13165 *)
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13168 ;;
13169 esac
13170 ;;
13171
13172 vxworks*)
13173 # FIXME: insert proper C++ library support
13174 ld_shlibs_CXX=no
13175 ;;
13176
13177 *)
13178 # FIXME: insert proper C++ library support
13179 ld_shlibs_CXX=no
13180 ;;
13181 esac
13182
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13184$as_echo "$ld_shlibs_CXX" >&6; }
13185 test "$ld_shlibs_CXX" = no && can_build_shared=no
13186
13187 GCC_CXX="$GXX"
13188 LD_CXX="$LD"
13189
13190 ## CAVEAT EMPTOR:
13191 ## There is no encapsulation within the following macros, do not change
13192 ## the running order or otherwise move them around unless you know exactly
13193 ## what you are doing...
13194 # Dependencies to place before and after the object being linked:
13195predep_objects_CXX=
13196postdep_objects_CXX=
13197predeps_CXX=
13198postdeps_CXX=
13199compiler_lib_search_path_CXX=
13200
13201cat > conftest.$ac_ext <<_LT_EOF
13202class Foo
13203{
13204public:
13205 Foo (void) { a = 0; }
13206private:
13207 int a;
13208};
13209_LT_EOF
13210
13211if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13212 (eval $ac_compile) 2>&5
13213 ac_status=$?
13214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13215 test $ac_status = 0; }; then
13216 # Parse the compiler output and extract the necessary
13217 # objects, libraries and library flags.
13218
13219 # Sentinel used to keep track of whether or not we are before
13220 # the conftest object file.
13221 pre_test_object_deps_done=no
13222
13223 for p in `eval "$output_verbose_link_cmd"`; do
13224 case $p in
13225
13226 -L* | -R* | -l*)
13227 # Some compilers place space between "-{L,R}" and the path.
13228 # Remove the space.
13229 if test $p = "-L" ||
13230 test $p = "-R"; then
13231 prev=$p
13232 continue
13233 else
13234 prev=
13235 fi
13236
13237 if test "$pre_test_object_deps_done" = no; then
13238 case $p in
13239 -L* | -R*)
13240 # Internal compiler library paths should come after those
13241 # provided the user. The postdeps already come after the
13242 # user supplied libs so there is no need to process them.
13243 if test -z "$compiler_lib_search_path_CXX"; then
13244 compiler_lib_search_path_CXX="${prev}${p}"
13245 else
13246 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13247 fi
13248 ;;
13249 # The "-l" case would never come before the object being
13250 # linked, so don't bother handling this case.
13251 esac
13252 else
13253 if test -z "$postdeps_CXX"; then
13254 postdeps_CXX="${prev}${p}"
13255 else
13256 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13257 fi
13258 fi
13259 ;;
13260
13261 *.$objext)
13262 # This assumes that the test object file only shows up
13263 # once in the compiler output.
13264 if test "$p" = "conftest.$objext"; then
13265 pre_test_object_deps_done=yes
13266 continue
13267 fi
13268
13269 if test "$pre_test_object_deps_done" = no; then
13270 if test -z "$predep_objects_CXX"; then
13271 predep_objects_CXX="$p"
13272 else
13273 predep_objects_CXX="$predep_objects_CXX $p"
13274 fi
13275 else
13276 if test -z "$postdep_objects_CXX"; then
13277 postdep_objects_CXX="$p"
13278 else
13279 postdep_objects_CXX="$postdep_objects_CXX $p"
13280 fi
13281 fi
13282 ;;
13283
13284 *) ;; # Ignore the rest.
13285
13286 esac
13287 done
13288
13289 # Clean up.
13290 rm -f a.out a.exe
13291else
13292 echo "libtool.m4: error: problem compiling CXX test program"
13293fi
13294
13295$RM -f confest.$objext
13296
13297# PORTME: override above test on systems where it is broken
13298case $host_os in
13299interix[3-9]*)
13300 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13301 # hack all around it, let's just trust "g++" to DTRT.
13302 predep_objects_CXX=
13303 postdep_objects_CXX=
13304 postdeps_CXX=
13305 ;;
13306
13307linux*)
13308 case `$CC -V 2>&1 | sed 5q` in
13309 *Sun\ C*)
13310 # Sun C++ 5.9
13311
13312 # The more standards-conforming stlport4 library is
13313 # incompatible with the Cstd library. Avoid specifying
13314 # it if it's in CXXFLAGS. Ignore libCrun as
13315 # -library=stlport4 depends on it.
13316 case " $CXX $CXXFLAGS " in
13317 *" -library=stlport4 "*)
13318 solaris_use_stlport4=yes
13319 ;;
13320 esac
13321
13322 if test "$solaris_use_stlport4" != yes; then
13323 postdeps_CXX='-library=Cstd -library=Crun'
13324 fi
13325 ;;
13326 esac
13327 ;;
13328
13329solaris*)
13330 case $cc_basename in
13331 CC*)
13332 # The more standards-conforming stlport4 library is
13333 # incompatible with the Cstd library. Avoid specifying
13334 # it if it's in CXXFLAGS. Ignore libCrun as
13335 # -library=stlport4 depends on it.
13336 case " $CXX $CXXFLAGS " in
13337 *" -library=stlport4 "*)
13338 solaris_use_stlport4=yes
13339 ;;
13340 esac
13341
13342 # Adding this requires a known-good setup of shared libraries for
13343 # Sun compiler versions before 5.6, else PIC objects from an old
13344 # archive will be linked into the output, leading to subtle bugs.
13345 if test "$solaris_use_stlport4" != yes; then
13346 postdeps_CXX='-library=Cstd -library=Crun'
13347 fi
13348 ;;
13349 esac
13350 ;;
13351esac
13352
13353
13354case " $postdeps_CXX " in
13355*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13356esac
13357 compiler_lib_search_dirs_CXX=
13358if test -n "${compiler_lib_search_path_CXX}"; then
13359 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13360fi
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392 lt_prog_compiler_wl_CXX=
13393lt_prog_compiler_pic_CXX=
13394lt_prog_compiler_static_CXX=
13395
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13397$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13398
13399 # C++ specific cases for pic, static, wl, etc.
13400 if test "$GXX" = yes; then
13401 lt_prog_compiler_wl_CXX='-Wl,'
13402 lt_prog_compiler_static_CXX='-static'
13403
13404 case $host_os in
13405 aix*)
13406 # All AIX code is PIC.
13407 if test "$host_cpu" = ia64; then
13408 # AIX 5 now supports IA64 processor
13409 lt_prog_compiler_static_CXX='-Bstatic'
13410 fi
13411 ;;
13412
13413 amigaos*)
13414 case $host_cpu in
13415 powerpc)
13416 # see comment about AmigaOS4 .so support
13417 lt_prog_compiler_pic_CXX='-fPIC'
13418 ;;
13419 m68k)
13420 # FIXME: we need at least 68020 code to build shared libraries, but
13421 # adding the `-m68020' flag to GCC prevents building anything better,
13422 # like `-m68040'.
13423 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13424 ;;
13425 esac
13426 ;;
13427
13428 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13429 # PIC is the default for these OSes.
13430 ;;
13431 mingw* | cygwin* | os2* | pw32* | cegcc*)
13432 # This hack is so that the source file can tell whether it is being
13433 # built for inclusion in a dll (and should export symbols for example).
13434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13435 # (--disable-auto-import) libraries
13436 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13437 ;;
13438 darwin* | rhapsody*)
13439 # PIC is the default on this platform
13440 # Common symbols not allowed in MH_DYLIB files
13441 lt_prog_compiler_pic_CXX='-fno-common'
13442 ;;
13443 *djgpp*)
13444 # DJGPP does not support shared libraries at all
13445 lt_prog_compiler_pic_CXX=
13446 ;;
13447 interix[3-9]*)
13448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13449 # Instead, we relocate shared libraries at runtime.
13450 ;;
13451 sysv4*MP*)
13452 if test -d /usr/nec; then
13453 lt_prog_compiler_pic_CXX=-Kconform_pic
13454 fi
13455 ;;
13456 hpux*)
13457 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13458 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13459 # sets the default TLS model and affects inlining.
13460 case $host_cpu in
13461 hppa*64*)
13462 ;;
13463 *)
13464 lt_prog_compiler_pic_CXX='-fPIC'
13465 ;;
13466 esac
13467 ;;
13468 *qnx* | *nto*)
13469 # QNX uses GNU C++, but need to define -shared option too, otherwise
13470 # it will coredump.
13471 lt_prog_compiler_pic_CXX='-fPIC -shared'
13472 ;;
13473 *)
13474 lt_prog_compiler_pic_CXX='-fPIC'
13475 ;;
13476 esac
13477 else
13478 case $host_os in
13479 aix[4-9]*)
13480 # All AIX code is PIC.
13481 if test "$host_cpu" = ia64; then
13482 # AIX 5 now supports IA64 processor
13483 lt_prog_compiler_static_CXX='-Bstatic'
13484 else
13485 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13486 fi
13487 ;;
13488 chorus*)
13489 case $cc_basename in
13490 cxch68*)
13491 # Green Hills C++ Compiler
13492 # _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"
13493 ;;
13494 esac
13495 ;;
13496 dgux*)
13497 case $cc_basename in
13498 ec++*)
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 ;;
13501 ghcx*)
13502 # Green Hills C++ Compiler
13503 lt_prog_compiler_pic_CXX='-pic'
13504 ;;
13505 *)
13506 ;;
13507 esac
13508 ;;
13509 freebsd* | dragonfly*)
13510 # FreeBSD uses GNU C++
13511 ;;
13512 hpux9* | hpux10* | hpux11*)
13513 case $cc_basename in
13514 CC*)
13515 lt_prog_compiler_wl_CXX='-Wl,'
13516 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13517 if test "$host_cpu" != ia64; then
13518 lt_prog_compiler_pic_CXX='+Z'
13519 fi
13520 ;;
13521 aCC*)
13522 lt_prog_compiler_wl_CXX='-Wl,'
13523 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13524 case $host_cpu in
13525 hppa*64*|ia64*)
13526 # +Z the default
13527 ;;
13528 *)
13529 lt_prog_compiler_pic_CXX='+Z'
13530 ;;
13531 esac
13532 ;;
13533 *)
13534 ;;
13535 esac
13536 ;;
13537 interix*)
13538 # This is c89, which is MS Visual C++ (no shared libs)
13539 # Anyone wants to do a port?
13540 ;;
13541 irix5* | irix6* | nonstopux*)
13542 case $cc_basename in
13543 CC*)
13544 lt_prog_compiler_wl_CXX='-Wl,'
13545 lt_prog_compiler_static_CXX='-non_shared'
13546 # CC pic flag -KPIC is the default.
13547 ;;
13548 *)
13549 ;;
13550 esac
13551 ;;
13552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13553 case $cc_basename in
13554 KCC*)
13555 # KAI C++ Compiler
13556 lt_prog_compiler_wl_CXX='--backend -Wl,'
13557 lt_prog_compiler_pic_CXX='-fPIC'
13558 ;;
13559 ecpc* )
13560 # old Intel C++ for x86_64 which still supported -KPIC.
13561 lt_prog_compiler_wl_CXX='-Wl,'
13562 lt_prog_compiler_pic_CXX='-KPIC'
13563 lt_prog_compiler_static_CXX='-static'
13564 ;;
13565 icpc* )
13566 # Intel C++, used to be incompatible with GCC.
13567 # ICC 10 doesn't accept -KPIC any more.
13568 lt_prog_compiler_wl_CXX='-Wl,'
13569 lt_prog_compiler_pic_CXX='-fPIC'
13570 lt_prog_compiler_static_CXX='-static'
13571 ;;
13572 pgCC* | pgcpp*)
13573 # Portland Group C++ compiler
13574 lt_prog_compiler_wl_CXX='-Wl,'
13575 lt_prog_compiler_pic_CXX='-fpic'
13576 lt_prog_compiler_static_CXX='-Bstatic'
13577 ;;
13578 cxx*)
13579 # Compaq C++
13580 # Make sure the PIC flag is empty. It appears that all Alpha
13581 # Linux and Compaq Tru64 Unix objects are PIC.
13582 lt_prog_compiler_pic_CXX=
13583 lt_prog_compiler_static_CXX='-non_shared'
13584 ;;
13585 xlc* | xlC*)
13586 # IBM XL 8.0 on PPC
13587 lt_prog_compiler_wl_CXX='-Wl,'
13588 lt_prog_compiler_pic_CXX='-qpic'
13589 lt_prog_compiler_static_CXX='-qstaticlink'
13590 ;;
13591 *)
13592 case `$CC -V 2>&1 | sed 5q` in
13593 *Sun\ C*)
13594 # Sun C++ 5.9
13595 lt_prog_compiler_pic_CXX='-KPIC'
13596 lt_prog_compiler_static_CXX='-Bstatic'
13597 lt_prog_compiler_wl_CXX='-Qoption ld '
13598 ;;
13599 esac
13600 ;;
13601 esac
13602 ;;
13603 lynxos*)
13604 ;;
13605 m88k*)
13606 ;;
13607 mvs*)
13608 case $cc_basename in
13609 cxx*)
13610 lt_prog_compiler_pic_CXX='-W c,exportall'
13611 ;;
13612 *)
13613 ;;
13614 esac
13615 ;;
13616 netbsd* | netbsdelf*-gnu)
13617 ;;
13618 *qnx* | *nto*)
13619 # QNX uses GNU C++, but need to define -shared option too, otherwise
13620 # it will coredump.
13621 lt_prog_compiler_pic_CXX='-fPIC -shared'
13622 ;;
13623 osf3* | osf4* | osf5*)
13624 case $cc_basename in
13625 KCC*)
13626 lt_prog_compiler_wl_CXX='--backend -Wl,'
13627 ;;
13628 RCC*)
13629 # Rational C++ 2.4.1
13630 lt_prog_compiler_pic_CXX='-pic'
13631 ;;
13632 cxx*)
13633 # Digital/Compaq C++
13634 lt_prog_compiler_wl_CXX='-Wl,'
13635 # Make sure the PIC flag is empty. It appears that all Alpha
13636 # Linux and Compaq Tru64 Unix objects are PIC.
13637 lt_prog_compiler_pic_CXX=
13638 lt_prog_compiler_static_CXX='-non_shared'
13639 ;;
13640 *)
13641 ;;
13642 esac
13643 ;;
13644 psos*)
13645 ;;
13646 solaris*)
13647 case $cc_basename in
13648 CC*)
13649 # Sun C++ 4.2, 5.x and Centerline C++
13650 lt_prog_compiler_pic_CXX='-KPIC'
13651 lt_prog_compiler_static_CXX='-Bstatic'
13652 lt_prog_compiler_wl_CXX='-Qoption ld '
13653 ;;
13654 gcx*)
13655 # Green Hills C++ Compiler
13656 lt_prog_compiler_pic_CXX='-PIC'
13657 ;;
13658 *)
13659 ;;
13660 esac
13661 ;;
13662 sunos4*)
13663 case $cc_basename in
13664 CC*)
13665 # Sun C++ 4.x
13666 lt_prog_compiler_pic_CXX='-pic'
13667 lt_prog_compiler_static_CXX='-Bstatic'
13668 ;;
13669 lcc*)
13670 # Lucid
13671 lt_prog_compiler_pic_CXX='-pic'
13672 ;;
13673 *)
13674 ;;
13675 esac
13676 ;;
13677 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13678 case $cc_basename in
13679 CC*)
13680 lt_prog_compiler_wl_CXX='-Wl,'
13681 lt_prog_compiler_pic_CXX='-KPIC'
13682 lt_prog_compiler_static_CXX='-Bstatic'
13683 ;;
13684 esac
13685 ;;
13686 tandem*)
13687 case $cc_basename in
13688 NCC*)
13689 # NonStop-UX NCC 3.20
13690 lt_prog_compiler_pic_CXX='-KPIC'
13691 ;;
13692 *)
13693 ;;
13694 esac
13695 ;;
13696 vxworks*)
13697 ;;
13698 *)
13699 lt_prog_compiler_can_build_shared_CXX=no
13700 ;;
13701 esac
13702 fi
13703
13704case $host_os in
13705 # For platforms which do not support PIC, -DPIC is meaningless:
13706 *djgpp*)
13707 lt_prog_compiler_pic_CXX=
13708 ;;
13709 *)
13710 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13711 ;;
13712esac
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13714$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13715
13716
13717
13718#
13719# Check to make sure the PIC flag actually works.
13720#
13721if test -n "$lt_prog_compiler_pic_CXX"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13723$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13724if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
13726else
13727 lt_cv_prog_compiler_pic_works_CXX=no
13728 ac_outfile=conftest.$ac_objext
13729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13730 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13731 # Insert the option either (1) after the last *FLAGS variable, or
13732 # (2) before a word containing "conftest.", or (3) at the end.
13733 # Note that $ac_compile itself does not contain backslashes and begins
13734 # with a dollar sign (not a hyphen), so the echo should work correctly.
13735 # The option is referenced via a variable to avoid confusing sed.
13736 lt_compile=`echo "$ac_compile" | $SED \
13737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13739 -e 's:$: $lt_compiler_flag:'`
13740 (eval echo "\"\$as_me:13740: $lt_compile\"" >&5)
13741 (eval "$lt_compile" 2>conftest.err)
13742 ac_status=$?
13743 cat conftest.err >&5
13744 echo "$as_me:13744: \$? = $ac_status" >&5
13745 if (exit $ac_status) && test -s "$ac_outfile"; then
13746 # The compiler can only warn and ignore the option if not recognized
13747 # So say no if there are warnings other than the usual output.
13748 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13750 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13751 lt_cv_prog_compiler_pic_works_CXX=yes
13752 fi
13753 fi
13754 $RM conftest*
13755
13756fi
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13758$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13759
13760if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13761 case $lt_prog_compiler_pic_CXX in
13762 "" | " "*) ;;
13763 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13764 esac
13765else
13766 lt_prog_compiler_pic_CXX=
13767 lt_prog_compiler_can_build_shared_CXX=no
13768fi
13769
13770fi
13771
13772
13773
13774#
13775# Check to make sure the static flag actually works.
13776#
13777wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13779$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13780if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13782else
13783 lt_cv_prog_compiler_static_works_CXX=no
13784 save_LDFLAGS="$LDFLAGS"
13785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13788 # The linker can only warn and ignore the option if not recognized
13789 # So say no if there are warnings
13790 if test -s conftest.err; then
13791 # Append any errors to the config.log.
13792 cat conftest.err 1>&5
13793 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13795 if diff conftest.exp conftest.er2 >/dev/null; then
13796 lt_cv_prog_compiler_static_works_CXX=yes
13797 fi
13798 else
13799 lt_cv_prog_compiler_static_works_CXX=yes
13800 fi
13801 fi
13802 $RM -r conftest*
13803 LDFLAGS="$save_LDFLAGS"
13804
13805fi
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13807$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13808
13809if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13810 :
13811else
13812 lt_prog_compiler_static_CXX=
13813fi
13814
13815
13816
13817
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13819$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13820if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13821 $as_echo_n "(cached) " >&6
13822else
13823 lt_cv_prog_compiler_c_o_CXX=no
13824 $RM -r conftest 2>/dev/null
13825 mkdir conftest
13826 cd conftest
13827 mkdir out
13828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13829
13830 lt_compiler_flag="-o out/conftest2.$ac_objext"
13831 # Insert the option either (1) after the last *FLAGS variable, or
13832 # (2) before a word containing "conftest.", or (3) at the end.
13833 # Note that $ac_compile itself does not contain backslashes and begins
13834 # with a dollar sign (not a hyphen), so the echo should work correctly.
13835 lt_compile=`echo "$ac_compile" | $SED \
13836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13838 -e 's:$: $lt_compiler_flag:'`
13839 (eval echo "\"\$as_me:13839: $lt_compile\"" >&5)
13840 (eval "$lt_compile" 2>out/conftest.err)
13841 ac_status=$?
13842 cat out/conftest.err >&5
13843 echo "$as_me:13843: \$? = $ac_status" >&5
13844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13845 then
13846 # The compiler can only warn and ignore the option if not recognized
13847 # So say no if there are warnings
13848 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13851 lt_cv_prog_compiler_c_o_CXX=yes
13852 fi
13853 fi
13854 chmod u+w . 2>&5
13855 $RM conftest*
13856 # SGI C++ compiler will create directory out/ii_files/ for
13857 # template instantiation
13858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13859 $RM out/* && rmdir out
13860 cd ..
13861 $RM -r conftest
13862 $RM conftest*
13863
13864fi
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13866$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13867
13868
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13871$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13872if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874else
13875 lt_cv_prog_compiler_c_o_CXX=no
13876 $RM -r conftest 2>/dev/null
13877 mkdir conftest
13878 cd conftest
13879 mkdir out
13880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13881
13882 lt_compiler_flag="-o out/conftest2.$ac_objext"
13883 # Insert the option either (1) after the last *FLAGS variable, or
13884 # (2) before a word containing "conftest.", or (3) at the end.
13885 # Note that $ac_compile itself does not contain backslashes and begins
13886 # with a dollar sign (not a hyphen), so the echo should work correctly.
13887 lt_compile=`echo "$ac_compile" | $SED \
13888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13890 -e 's:$: $lt_compiler_flag:'`
13891 (eval echo "\"\$as_me:13891: $lt_compile\"" >&5)
13892 (eval "$lt_compile" 2>out/conftest.err)
13893 ac_status=$?
13894 cat out/conftest.err >&5
13895 echo "$as_me:13895: \$? = $ac_status" >&5
13896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13897 then
13898 # The compiler can only warn and ignore the option if not recognized
13899 # So say no if there are warnings
13900 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13903 lt_cv_prog_compiler_c_o_CXX=yes
13904 fi
13905 fi
13906 chmod u+w . 2>&5
13907 $RM conftest*
13908 # SGI C++ compiler will create directory out/ii_files/ for
13909 # template instantiation
13910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13911 $RM out/* && rmdir out
13912 cd ..
13913 $RM -r conftest
13914 $RM conftest*
13915
13916fi
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13918$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13919
13920
13921
13922
13923hard_links="nottested"
13924if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13925 # do not overwrite the value of need_locks provided by the user
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13927$as_echo_n "checking if we can lock with hard links... " >&6; }
13928 hard_links=yes
13929 $RM conftest*
13930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13931 touch conftest.a
13932 ln conftest.a conftest.b 2>&5 || hard_links=no
13933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13935$as_echo "$hard_links" >&6; }
13936 if test "$hard_links" = no; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13938$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13939 need_locks=warn
13940 fi
13941else
13942 need_locks=no
13943fi
13944
13945
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13948$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13949
13950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13951 case $host_os in
13952 aix[4-9]*)
13953 # If we're using GNU nm, then we don't want the "-C" option.
13954 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13955 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13956 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'
13957 else
13958 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'
13959 fi
13960 ;;
13961 pw32*)
13962 export_symbols_cmds_CXX="$ltdll_cmds"
13963 ;;
13964 cygwin* | mingw* | cegcc*)
13965 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'
13966 ;;
13967 linux* | k*bsd*-gnu)
13968 link_all_deplibs_CXX=no
13969 ;;
13970 *)
13971 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13972 ;;
13973 esac
13974 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13975
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13977$as_echo "$ld_shlibs_CXX" >&6; }
13978test "$ld_shlibs_CXX" = no && can_build_shared=no
13979
13980with_gnu_ld_CXX=$with_gnu_ld
13981
13982
13983
13984
13985
13986
13987#
13988# Do we need to explicitly link libc?
13989#
13990case "x$archive_cmds_need_lc_CXX" in
13991x|xyes)
13992 # Assume -lc should be added
13993 archive_cmds_need_lc_CXX=yes
13994
13995 if test "$enable_shared" = yes && test "$GCC" = yes; then
13996 case $archive_cmds_CXX in
13997 *'~'*)
13998 # FIXME: we may have to deal with multi-command sequences.
13999 ;;
14000 '$CC '*)
14001 # Test whether the compiler implicitly links with -lc since on some
14002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14003 # to ld, don't add -lc before -lgcc.
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14005$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14006 $RM conftest*
14007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14008
14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14010 (eval $ac_compile) 2>&5
14011 ac_status=$?
14012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14013 test $ac_status = 0; } 2>conftest.err; then
14014 soname=conftest
14015 lib=conftest
14016 libobjs=conftest.$ac_objext
14017 deplibs=
14018 wl=$lt_prog_compiler_wl_CXX
14019 pic_flag=$lt_prog_compiler_pic_CXX
14020 compiler_flags=-v
14021 linker_flags=-v
14022 verstring=
14023 output_objdir=.
14024 libname=conftest
14025 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14026 allow_undefined_flag_CXX=
14027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14028 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14029 ac_status=$?
14030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14031 test $ac_status = 0; }
14032 then
14033 archive_cmds_need_lc_CXX=no
14034 else
14035 archive_cmds_need_lc_CXX=yes
14036 fi
14037 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14038 else
14039 cat conftest.err 1>&5
14040 fi
14041 $RM conftest*
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14043$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14044 ;;
14045 esac
14046 fi
14047 ;;
14048esac
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14114$as_echo_n "checking dynamic linker characteristics... " >&6; }
14115
14116library_names_spec=
14117libname_spec='lib$name'
14118soname_spec=
14119shrext_cmds=".so"
14120postinstall_cmds=
14121postuninstall_cmds=
14122finish_cmds=
14123finish_eval=
14124shlibpath_var=
14125shlibpath_overrides_runpath=unknown
14126version_type=none
14127dynamic_linker="$host_os ld.so"
14128sys_lib_dlsearch_path_spec="/lib /usr/lib"
14129need_lib_prefix=unknown
14130hardcode_into_libs=no
14131
14132# when you set need_version to no, make sure it does not cause -set_version
14133# flags to be left without arguments
14134need_version=unknown
14135
14136case $host_os in
14137aix3*)
14138 version_type=linux
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14140 shlibpath_var=LIBPATH
14141
14142 # AIX 3 has no versioning support, so we append a major version to the name.
14143 soname_spec='${libname}${release}${shared_ext}$major'
14144 ;;
14145
14146aix[4-9]*)
14147 version_type=linux
14148 need_lib_prefix=no
14149 need_version=no
14150 hardcode_into_libs=yes
14151 if test "$host_cpu" = ia64; then
14152 # AIX 5 supports IA64
14153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 else
14156 # With GCC up to 2.95.x, collect2 would create an import file
14157 # for dependence libraries. The import file would start with
14158 # the line `#! .'. This would cause the generated library to
14159 # depend on `.', always an invalid library. This was fixed in
14160 # development snapshots of GCC prior to 3.0.
14161 case $host_os in
14162 aix4 | aix4.[01] | aix4.[01].*)
14163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14164 echo ' yes '
14165 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14166 :
14167 else
14168 can_build_shared=no
14169 fi
14170 ;;
14171 esac
14172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14173 # soname into executable. Probably we can add versioning support to
14174 # collect2, so additional links can be useful in future.
14175 if test "$aix_use_runtimelinking" = yes; then
14176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14177 # instead of lib<name>.a to let people know that these are not
14178 # typical AIX shared libraries.
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180 else
14181 # We preserve .a as extension for shared libraries through AIX4.2
14182 # and later when we are not doing run time linking.
14183 library_names_spec='${libname}${release}.a $libname.a'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 fi
14186 shlibpath_var=LIBPATH
14187 fi
14188 ;;
14189
14190amigaos*)
14191 case $host_cpu in
14192 powerpc)
14193 # Since July 2007 AmigaOS4 officially supports .so libraries.
14194 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 ;;
14197 m68k)
14198 library_names_spec='$libname.ixlibrary $libname.a'
14199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14200 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'
14201 ;;
14202 esac
14203 ;;
14204
14205beos*)
14206 library_names_spec='${libname}${shared_ext}'
14207 dynamic_linker="$host_os ld.so"
14208 shlibpath_var=LIBRARY_PATH
14209 ;;
14210
14211bsdi[45]*)
14212 version_type=linux
14213 need_version=no
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14215 soname_spec='${libname}${release}${shared_ext}$major'
14216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14220 # the default ld.so.conf also contains /usr/contrib/lib and
14221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14222 # libtool to hard-code these into programs
14223 ;;
14224
14225cygwin* | mingw* | pw32* | cegcc*)
14226 version_type=windows
14227 shrext_cmds=".dll"
14228 need_version=no
14229 need_lib_prefix=no
14230
14231 case $GCC,$host_os in
14232 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14233 library_names_spec='$libname.dll.a'
14234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14235 postinstall_cmds='base_file=`basename \${file}`~
14236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14237 dldir=$destdir/`dirname \$dlpath`~
14238 test -d \$dldir || mkdir -p \$dldir~
14239 $install_prog $dir/$dlname \$dldir/$dlname~
14240 chmod a+x \$dldir/$dlname~
14241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14243 fi'
14244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14245 dlpath=$dir/\$dldll~
14246 $RM \$dlpath'
14247 shlibpath_overrides_runpath=yes
14248
14249 case $host_os in
14250 cygwin*)
14251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14253 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14254 ;;
14255 mingw* | cegcc*)
14256 # MinGW DLLs use traditional 'lib' prefix
14257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14258 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14259 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14260 # It is most probably a Windows format PATH printed by
14261 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14262 # path with ; separators, and with drive letters. We can handle the
14263 # drive letters (cygwin fileutils understands them), so leave them,
14264 # especially as we might pass files found there to a mingw objdump,
14265 # which wouldn't understand a cygwinified path. Ahh.
14266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14267 else
14268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14269 fi
14270 ;;
14271 pw32*)
14272 # pw32 DLLs use 'pw' prefix rather than 'lib'
14273 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14274 ;;
14275 esac
14276 ;;
14277
14278 *)
14279 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14280 ;;
14281 esac
14282 dynamic_linker='Win32 ld.exe'
14283 # FIXME: first we should search . and the directory the executable is in
14284 shlibpath_var=PATH
14285 ;;
14286
14287darwin* | rhapsody*)
14288 dynamic_linker="$host_os dyld"
14289 version_type=darwin
14290 need_lib_prefix=no
14291 need_version=no
14292 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14293 soname_spec='${libname}${release}${major}$shared_ext'
14294 shlibpath_overrides_runpath=yes
14295 shlibpath_var=DYLD_LIBRARY_PATH
14296 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14297
14298 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14299 ;;
14300
14301dgux*)
14302 version_type=linux
14303 need_lib_prefix=no
14304 need_version=no
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 shlibpath_var=LD_LIBRARY_PATH
14308 ;;
14309
14310freebsd1*)
14311 dynamic_linker=no
14312 ;;
14313
14314freebsd* | dragonfly*)
14315 # DragonFly does not have aout. When/if they implement a new
14316 # versioning mechanism, adjust this.
14317 if test -x /usr/bin/objformat; then
14318 objformat=`/usr/bin/objformat`
14319 else
14320 case $host_os in
14321 freebsd[123]*) objformat=aout ;;
14322 *) objformat=elf ;;
14323 esac
14324 fi
14325 version_type=freebsd-$objformat
14326 case $version_type in
14327 freebsd-elf*)
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14329 need_version=no
14330 need_lib_prefix=no
14331 ;;
14332 freebsd-*)
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14334 need_version=yes
14335 ;;
14336 esac
14337 shlibpath_var=LD_LIBRARY_PATH
14338 case $host_os in
14339 freebsd2*)
14340 shlibpath_overrides_runpath=yes
14341 ;;
14342 freebsd3.[01]* | freebsdelf3.[01]*)
14343 shlibpath_overrides_runpath=yes
14344 hardcode_into_libs=yes
14345 ;;
14346 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14347 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14348 shlibpath_overrides_runpath=no
14349 hardcode_into_libs=yes
14350 ;;
14351 *) # from 4.6 on, and DragonFly
14352 shlibpath_overrides_runpath=yes
14353 hardcode_into_libs=yes
14354 ;;
14355 esac
14356 ;;
14357
14358gnu*)
14359 version_type=linux
14360 need_lib_prefix=no
14361 need_version=no
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14363 soname_spec='${libname}${release}${shared_ext}$major'
14364 shlibpath_var=LD_LIBRARY_PATH
14365 hardcode_into_libs=yes
14366 ;;
14367
14368hpux9* | hpux10* | hpux11*)
14369 # Give a soname corresponding to the major version so that dld.sl refuses to
14370 # link against other versions.
14371 version_type=sunos
14372 need_lib_prefix=no
14373 need_version=no
14374 case $host_cpu in
14375 ia64*)
14376 shrext_cmds='.so'
14377 hardcode_into_libs=yes
14378 dynamic_linker="$host_os dld.so"
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382 soname_spec='${libname}${release}${shared_ext}$major'
14383 if test "X$HPUX_IA64_MODE" = X32; then
14384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14385 else
14386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14387 fi
14388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14389 ;;
14390 hppa*64*)
14391 shrext_cmds='.sl'
14392 hardcode_into_libs=yes
14393 dynamic_linker="$host_os dld.sl"
14394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14400 ;;
14401 *)
14402 shrext_cmds='.sl'
14403 dynamic_linker="$host_os dld.sl"
14404 shlibpath_var=SHLIB_PATH
14405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 ;;
14409 esac
14410 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14411 postinstall_cmds='chmod 555 $lib'
14412 ;;
14413
14414interix[3-9]*)
14415 version_type=linux
14416 need_lib_prefix=no
14417 need_version=no
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath=no
14423 hardcode_into_libs=yes
14424 ;;
14425
14426irix5* | irix6* | nonstopux*)
14427 case $host_os in
14428 nonstopux*) version_type=nonstopux ;;
14429 *)
14430 if test "$lt_cv_prog_gnu_ld" = yes; then
14431 version_type=linux
14432 else
14433 version_type=irix
14434 fi ;;
14435 esac
14436 need_lib_prefix=no
14437 need_version=no
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14440 case $host_os in
14441 irix5* | nonstopux*)
14442 libsuff= shlibsuff=
14443 ;;
14444 *)
14445 case $LD in # libtool.m4 will add one of these switches to LD
14446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14447 libsuff= shlibsuff= libmagic=32-bit;;
14448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14449 libsuff=32 shlibsuff=N32 libmagic=N32;;
14450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14452 *) libsuff= shlibsuff= libmagic=never-match;;
14453 esac
14454 ;;
14455 esac
14456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14457 shlibpath_overrides_runpath=no
14458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14460 hardcode_into_libs=yes
14461 ;;
14462
14463# No shared lib support for Linux oldld, aout, or coff.
14464linux*oldld* | linux*aout* | linux*coff*)
14465 dynamic_linker=no
14466 ;;
14467
14468# This must be Linux ELF.
14469linux* | k*bsd*-gnu | kopensolaris*-gnu)
14470 version_type=linux
14471 need_lib_prefix=no
14472 need_version=no
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=no
14478 # Some binutils ld are patched to set DT_RUNPATH
14479 save_LDFLAGS=$LDFLAGS
14480 save_libdir=$libdir
14481 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14482 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484/* end confdefs.h. */
14485
14486int
14487main ()
14488{
14489
14490 ;
14491 return 0;
14492}
14493_ACEOF
14494if ac_fn_cxx_try_link "$LINENO"; then :
14495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14496 shlibpath_overrides_runpath=yes
14497fi
14498fi
14499rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14501 LDFLAGS=$save_LDFLAGS
14502 libdir=$save_libdir
14503
14504 # This implies no fast_install, which is unacceptable.
14505 # Some rework will be needed to allow for fast_install
14506 # before this can be enabled.
14507 hardcode_into_libs=yes
14508
14509 # Append ld.so.conf contents to the search path
14510 if test -f /etc/ld.so.conf; then
14511 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' ' '`
14512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14513 fi
14514
14515 # We used to test for /lib/ld.so.1 and disable shared libraries on
14516 # powerpc, because MkLinux only supported shared libraries with the
14517 # GNU dynamic linker. Since this was broken with cross compilers,
14518 # most powerpc-linux boxes support dynamic linking these days and
14519 # people can always --disable-shared, the test was removed, and we
14520 # assume the GNU/Linux dynamic linker is in use.
14521 dynamic_linker='GNU/Linux ld.so'
14522 ;;
14523
14524netbsdelf*-gnu)
14525 version_type=linux
14526 need_lib_prefix=no
14527 need_version=no
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=no
14532 hardcode_into_libs=yes
14533 dynamic_linker='NetBSD ld.elf_so'
14534 ;;
14535
14536netbsd*)
14537 version_type=sunos
14538 need_lib_prefix=no
14539 need_version=no
14540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543 dynamic_linker='NetBSD (a.out) ld.so'
14544 else
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 dynamic_linker='NetBSD ld.elf_so'
14548 fi
14549 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14552 ;;
14553
14554newsos6)
14555 version_type=linux
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=yes
14559 ;;
14560
14561*nto* | *qnx*)
14562 version_type=qnx
14563 need_lib_prefix=no
14564 need_version=no
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=no
14569 hardcode_into_libs=yes
14570 dynamic_linker='ldqnx.so'
14571 ;;
14572
14573openbsd*)
14574 version_type=sunos
14575 sys_lib_dlsearch_path_spec="/usr/lib"
14576 need_lib_prefix=no
14577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14578 case $host_os in
14579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14580 *) need_version=no ;;
14581 esac
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14586 case $host_os in
14587 openbsd2.[89] | openbsd2.[89].*)
14588 shlibpath_overrides_runpath=no
14589 ;;
14590 *)
14591 shlibpath_overrides_runpath=yes
14592 ;;
14593 esac
14594 else
14595 shlibpath_overrides_runpath=yes
14596 fi
14597 ;;
14598
14599os2*)
14600 libname_spec='$name'
14601 shrext_cmds=".dll"
14602 need_lib_prefix=no
14603 library_names_spec='$libname${shared_ext} $libname.a'
14604 dynamic_linker='OS/2 ld.exe'
14605 shlibpath_var=LIBPATH
14606 ;;
14607
14608osf3* | osf4* | osf5*)
14609 version_type=osf
14610 need_lib_prefix=no
14611 need_version=no
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14617 ;;
14618
14619rdos*)
14620 dynamic_linker=no
14621 ;;
14622
14623solaris*)
14624 version_type=linux
14625 need_lib_prefix=no
14626 need_version=no
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14628 soname_spec='${libname}${release}${shared_ext}$major'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 shlibpath_overrides_runpath=yes
14631 hardcode_into_libs=yes
14632 # ldd complains unless libraries are executable
14633 postinstall_cmds='chmod +x $lib'
14634 ;;
14635
14636sunos4*)
14637 version_type=sunos
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14640 shlibpath_var=LD_LIBRARY_PATH
14641 shlibpath_overrides_runpath=yes
14642 if test "$with_gnu_ld" = yes; then
14643 need_lib_prefix=no
14644 fi
14645 need_version=yes
14646 ;;
14647
14648sysv4 | sysv4.3*)
14649 version_type=linux
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 case $host_vendor in
14654 sni)
14655 shlibpath_overrides_runpath=no
14656 need_lib_prefix=no
14657 runpath_var=LD_RUN_PATH
14658 ;;
14659 siemens)
14660 need_lib_prefix=no
14661 ;;
14662 motorola)
14663 need_lib_prefix=no
14664 need_version=no
14665 shlibpath_overrides_runpath=no
14666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14667 ;;
14668 esac
14669 ;;
14670
14671sysv4*MP*)
14672 if test -d /usr/nec ;then
14673 version_type=linux
14674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14675 soname_spec='$libname${shared_ext}.$major'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 fi
14678 ;;
14679
14680sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14681 version_type=freebsd-elf
14682 need_lib_prefix=no
14683 need_version=no
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes
14688 hardcode_into_libs=yes
14689 if test "$with_gnu_ld" = yes; then
14690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14691 else
14692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14693 case $host_os in
14694 sco3.2v5*)
14695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14696 ;;
14697 esac
14698 fi
14699 sys_lib_dlsearch_path_spec='/usr/lib'
14700 ;;
14701
14702tpf*)
14703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14704 version_type=linux
14705 need_lib_prefix=no
14706 need_version=no
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=no
14710 hardcode_into_libs=yes
14711 ;;
14712
14713uts4*)
14714 version_type=linux
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 ;;
14719
14720*)
14721 dynamic_linker=no
14722 ;;
14723esac
14724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14725$as_echo "$dynamic_linker" >&6; }
14726test "$dynamic_linker" = no && can_build_shared=no
14727
14728variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14729if test "$GCC" = yes; then
14730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14731fi
14732
14733if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14735fi
14736if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14738fi
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14776$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14777hardcode_action_CXX=
14778if test -n "$hardcode_libdir_flag_spec_CXX" ||
14779 test -n "$runpath_var_CXX" ||
14780 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14781
14782 # We can hardcode non-existent directories.
14783 if test "$hardcode_direct_CXX" != no &&
14784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14785 # have to relink, otherwise we might link with an installed library
14786 # when we should be linking with a yet-to-be-installed one
14787 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14788 test "$hardcode_minus_L_CXX" != no; then
14789 # Linking always hardcodes the temporary library directory.
14790 hardcode_action_CXX=relink
14791 else
14792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14793 hardcode_action_CXX=immediate
14794 fi
14795else
14796 # We cannot hardcode anything, or else we can only hardcode existing
14797 # directories.
14798 hardcode_action_CXX=unsupported
14799fi
14800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14801$as_echo "$hardcode_action_CXX" >&6; }
14802
14803if test "$hardcode_action_CXX" = relink ||
14804 test "$inherit_rpath_CXX" = yes; then
14805 # Fast installation is not supported
14806 enable_fast_install=no
14807elif test "$shlibpath_overrides_runpath" = yes ||
14808 test "$enable_shared" = no; then
14809 # Fast installation is not necessary
14810 enable_fast_install=needless
14811fi
14812
14813
14814
14815
14816
14817
14818
14819 fi # test -n "$compiler"
14820
14821 CC=$lt_save_CC
14822 LDCXX=$LD
14823 LD=$lt_save_LD
14824 GCC=$lt_save_GCC
14825 with_gnu_ld=$lt_save_with_gnu_ld
14826 lt_cv_path_LDCXX=$lt_cv_path_LD
14827 lt_cv_path_LD=$lt_save_path_LD
14828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14830fi # test "$_lt_caught_CXX_error" != yes
14831
14832ac_ext=cpp
14833ac_cpp='$CXXCPP $CPPFLAGS'
14834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850 ac_config_commands="$ac_config_commands libtool"
14851
14852
14853
14854
14855# Only expand once:
14856
14857
14858
14859
14860
14861# Check whether some low-level functions/files are available
14862
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14864$as_echo_n "checking for ANSI C header files... " >&6; }
14865if test "${ac_cv_header_stdc+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867else
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869/* end confdefs.h. */
14870#include <stdlib.h>
14871#include <stdarg.h>
14872#include <string.h>
14873#include <float.h>
14874
14875int
14876main ()
14877{
14878
14879 ;
14880 return 0;
14881}
14882_ACEOF
14883if ac_fn_cxx_try_compile "$LINENO"; then :
14884 ac_cv_header_stdc=yes
14885else
14886 ac_cv_header_stdc=no
14887fi
14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889
14890if test $ac_cv_header_stdc = yes; then
14891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893/* end confdefs.h. */
14894#include <string.h>
14895
14896_ACEOF
14897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14898 $EGREP "memchr" >/dev/null 2>&1; then :
14899
14900else
14901 ac_cv_header_stdc=no
14902fi
14903rm -f conftest*
14904
14905fi
14906
14907if test $ac_cv_header_stdc = yes; then
14908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910/* end confdefs.h. */
14911#include <stdlib.h>
14912
14913_ACEOF
14914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14915 $EGREP "free" >/dev/null 2>&1; then :
14916
14917else
14918 ac_cv_header_stdc=no
14919fi
14920rm -f conftest*
14921
14922fi
14923
14924if test $ac_cv_header_stdc = yes; then
14925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14926 if test "$cross_compiling" = yes; then :
14927 :
14928else
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930/* end confdefs.h. */
14931#include <ctype.h>
14932#include <stdlib.h>
14933#if ((' ' & 0x0FF) == 0x020)
14934# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14935# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14936#else
14937# define ISLOWER(c) \
14938 (('a' <= (c) && (c) <= 'i') \
14939 || ('j' <= (c) && (c) <= 'r') \
14940 || ('s' <= (c) && (c) <= 'z'))
14941# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14942#endif
14943
14944#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14945int
14946main ()
14947{
14948 int i;
14949 for (i = 0; i < 256; i++)
14950 if (XOR (islower (i), ISLOWER (i))
14951 || toupper (i) != TOUPPER (i))
14952 return 2;
14953 return 0;
14954}
14955_ACEOF
14956if ac_fn_cxx_try_run "$LINENO"; then :
14957
14958else
14959 ac_cv_header_stdc=no
14960fi
14961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14962 conftest.$ac_objext conftest.beam conftest.$ac_ext
14963fi
14964
14965fi
14966fi
14967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14968$as_echo "$ac_cv_header_stdc" >&6; }
14969if test $ac_cv_header_stdc = yes; then
14970
14971$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14972
14973fi
14974
14975
14976# Write generated configuration file
14977ac_config_files="$ac_config_files Makefile polo.pc"
14978
14979cat >confcache <<\_ACEOF
14980# This file is a shell script that caches the results of configure
14981# tests run on this system so they can be shared between configure
14982# scripts and configure runs, see configure's option --config-cache.
14983# It is not useful on other systems. If it contains results you don't
14984# want to keep, you may remove or edit it.
14985#
14986# config.status only pays attention to the cache file if you give it
14987# the --recheck option to rerun configure.
14988#
14989# `ac_cv_env_foo' variables (set or unset) will be overridden when
14990# loading this file, other *unset* `ac_cv_foo' will be assigned the
14991# following values.
14992
14993_ACEOF
14994
14995# The following way of writing the cache mishandles newlines in values,
14996# but we know of no workaround that is simple, portable, and efficient.
14997# So, we kill variables containing newlines.
14998# Ultrix sh set writes to stderr and can't be redirected directly,
14999# and sets the high bit in the cache file unless we assign to the vars.
15000(
15001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15002 eval ac_val=\$$ac_var
15003 case $ac_val in #(
15004 *${as_nl}*)
15005 case $ac_var in #(
15006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15008 esac
15009 case $ac_var in #(
15010 _ | IFS | as_nl) ;; #(
15011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15012 *) { eval $ac_var=; unset $ac_var;} ;;
15013 esac ;;
15014 esac
15015 done
15016
15017 (set) 2>&1 |
15018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15019 *${as_nl}ac_space=\ *)
15020 # `set' does not quote correctly, so add quotes: double-quote
15021 # substitution turns \\\\ into \\, and sed turns \\ into \.
15022 sed -n \
15023 "s/'/'\\\\''/g;
15024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15025 ;; #(
15026 *)
15027 # `set' quotes correctly as required by POSIX, so do not add quotes.
15028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15029 ;;
15030 esac |
15031 sort
15032) |
15033 sed '
15034 /^ac_cv_env_/b end
15035 t clear
15036 :clear
15037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15038 t end
15039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15040 :end' >>confcache
15041if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15042 if test -w "$cache_file"; then
15043 test "x$cache_file" != "x/dev/null" &&
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15045$as_echo "$as_me: updating cache $cache_file" >&6;}
15046 cat confcache >$cache_file
15047 else
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15049$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15050 fi
15051fi
15052rm -f confcache
15053
15054test "x$prefix" = xNONE && prefix=$ac_default_prefix
15055# Let make expand exec_prefix.
15056test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15057
15058DEFS=-DHAVE_CONFIG_H
15059
15060ac_libobjs=
15061ac_ltlibobjs=
15062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15063 # 1. Remove the extension, and $U if already installed.
15064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15067 # will be set to the directory where LIBOBJS objects are built.
15068 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15069 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15070done
15071LIBOBJS=$ac_libobjs
15072
15073LTLIBOBJS=$ac_ltlibobjs
15074
15075
15076 if test -n "$EXEEXT"; then
15077 am__EXEEXT_TRUE=
15078 am__EXEEXT_FALSE='#'
15079else
15080 am__EXEEXT_TRUE='#'
15081 am__EXEEXT_FALSE=
15082fi
15083
15084if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15085 as_fn_error "conditional \"AMDEP\" was never defined.
15086Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087fi
15088if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15089 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15090Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091fi
15092if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15093 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15094Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095fi
15096if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
15097 as_fn_error "conditional \"GCC\" was never defined.
15098Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099fi
15100if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15101 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15102Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103fi
15104
15105: ${CONFIG_STATUS=./config.status}
15106ac_write_fail=0
15107ac_clean_files_save=$ac_clean_files
15108ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15109{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15110$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15111as_write_fail=0
15112cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15113#! $SHELL
15114# Generated by $as_me.
15115# Run this file to recreate the current configuration.
15116# Compiler output produced by configure, useful for debugging
15117# configure, is in config.log if it exists.
15118
15119debug=false
15120ac_cs_recheck=false
15121ac_cs_silent=false
15122
15123SHELL=\${CONFIG_SHELL-$SHELL}
15124export SHELL
15125_ASEOF
15126cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15127## -------------------- ##
15128## M4sh Initialization. ##
15129## -------------------- ##
15130
15131# Be more Bourne compatible
15132DUALCASE=1; export DUALCASE # for MKS sh
15133if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15134 emulate sh
15135 NULLCMD=:
15136 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15137 # is contrary to our usage. Disable this feature.
15138 alias -g '${1+"$@"}'='"$@"'
15139 setopt NO_GLOB_SUBST
15140else
15141 case `(set -o) 2>/dev/null` in #(
15142 *posix*) :
15143 set -o posix ;; #(
15144 *) :
15145 ;;
15146esac
15147fi
15148
15149
15150as_nl='
15151'
15152export as_nl
15153# Printing a long string crashes Solaris 7 /usr/bin/printf.
15154as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15155as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15156as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15157# Prefer a ksh shell builtin over an external printf program on Solaris,
15158# but without wasting forks for bash or zsh.
15159if test -z "$BASH_VERSION$ZSH_VERSION" \
15160 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15161 as_echo='print -r --'
15162 as_echo_n='print -rn --'
15163elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15164 as_echo='printf %s\n'
15165 as_echo_n='printf %s'
15166else
15167 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15168 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15169 as_echo_n='/usr/ucb/echo -n'
15170 else
15171 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15172 as_echo_n_body='eval
15173 arg=$1;
15174 case $arg in #(
15175 *"$as_nl"*)
15176 expr "X$arg" : "X\\(.*\\)$as_nl";
15177 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15178 esac;
15179 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15180 '
15181 export as_echo_n_body
15182 as_echo_n='sh -c $as_echo_n_body as_echo'
15183 fi
15184 export as_echo_body
15185 as_echo='sh -c $as_echo_body as_echo'
15186fi
15187
15188# The user is always right.
15189if test "${PATH_SEPARATOR+set}" != set; then
15190 PATH_SEPARATOR=:
15191 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15192 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15193 PATH_SEPARATOR=';'
15194 }
15195fi
15196
15197
15198# IFS
15199# We need space, tab and new line, in precisely that order. Quoting is
15200# there to prevent editors from complaining about space-tab.
15201# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15202# splitting by setting IFS to empty value.)
15203IFS=" "" $as_nl"
15204
15205# Find who we are. Look in the path if we contain no directory separator.
15206case $0 in #((
15207 *[\\/]* ) as_myself=$0 ;;
15208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209for as_dir in $PATH
15210do
15211 IFS=$as_save_IFS
15212 test -z "$as_dir" && as_dir=.
15213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15214 done
15215IFS=$as_save_IFS
15216
15217 ;;
15218esac
15219# We did not find ourselves, most probably we were run as `sh COMMAND'
15220# in which case we are not to be found in the path.
15221if test "x$as_myself" = x; then
15222 as_myself=$0
15223fi
15224if test ! -f "$as_myself"; then
15225 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15226 exit 1
15227fi
15228
15229# Unset variables that we do not need and which cause bugs (e.g. in
15230# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15231# suppresses any "Segmentation fault" message there. '((' could
15232# trigger a bug in pdksh 5.2.14.
15233for as_var in BASH_ENV ENV MAIL MAILPATH
15234do eval test x\${$as_var+set} = xset \
15235 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15236done
15237PS1='$ '
15238PS2='> '
15239PS4='+ '
15240
15241# NLS nuisances.
15242LC_ALL=C
15243export LC_ALL
15244LANGUAGE=C
15245export LANGUAGE
15246
15247# CDPATH.
15248(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15249
15250
15251# as_fn_error ERROR [LINENO LOG_FD]
15252# ---------------------------------
15253# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15254# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15255# script with status $?, using 1 if that was 0.
15256as_fn_error ()
15257{
15258 as_status=$?; test $as_status -eq 0 && as_status=1
15259 if test "$3"; then
15260 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15261 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15262 fi
15263 $as_echo "$as_me: error: $1" >&2
15264 as_fn_exit $as_status
15265} # as_fn_error
15266
15267
15268# as_fn_set_status STATUS
15269# -----------------------
15270# Set $? to STATUS, without forking.
15271as_fn_set_status ()
15272{
15273 return $1
15274} # as_fn_set_status
15275
15276# as_fn_exit STATUS
15277# -----------------
15278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15279as_fn_exit ()
15280{
15281 set +e
15282 as_fn_set_status $1
15283 exit $1
15284} # as_fn_exit
15285
15286# as_fn_unset VAR
15287# ---------------
15288# Portably unset VAR.
15289as_fn_unset ()
15290{
15291 { eval $1=; unset $1;}
15292}
15293as_unset=as_fn_unset
15294# as_fn_append VAR VALUE
15295# ----------------------
15296# Append the text in VALUE to the end of the definition contained in VAR. Take
15297# advantage of any shell optimizations that allow amortized linear growth over
15298# repeated appends, instead of the typical quadratic growth present in naive
15299# implementations.
15300if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15301 eval 'as_fn_append ()
15302 {
15303 eval $1+=\$2
15304 }'
15305else
15306 as_fn_append ()
15307 {
15308 eval $1=\$$1\$2
15309 }
15310fi # as_fn_append
15311
15312# as_fn_arith ARG...
15313# ------------------
15314# Perform arithmetic evaluation on the ARGs, and store the result in the
15315# global $as_val. Take advantage of shells that can avoid forks. The arguments
15316# must be portable across $(()) and expr.
15317if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15318 eval 'as_fn_arith ()
15319 {
15320 as_val=$(( $* ))
15321 }'
15322else
15323 as_fn_arith ()
15324 {
15325 as_val=`expr "$@" || test $? -eq 1`
15326 }
15327fi # as_fn_arith
15328
15329
15330if expr a : '\(a\)' >/dev/null 2>&1 &&
15331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15332 as_expr=expr
15333else
15334 as_expr=false
15335fi
15336
15337if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15338 as_basename=basename
15339else
15340 as_basename=false
15341fi
15342
15343if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15344 as_dirname=dirname
15345else
15346 as_dirname=false
15347fi
15348
15349as_me=`$as_basename -- "$0" ||
15350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15351 X"$0" : 'X\(//\)$' \| \
15352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15353$as_echo X/"$0" |
15354 sed '/^.*\/\([^/][^/]*\)\/*$/{
15355 s//\1/
15356 q
15357 }
15358 /^X\/\(\/\/\)$/{
15359 s//\1/
15360 q
15361 }
15362 /^X\/\(\/\).*/{
15363 s//\1/
15364 q
15365 }
15366 s/.*/./; q'`
15367
15368# Avoid depending upon Character Ranges.
15369as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15370as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15371as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15372as_cr_digits='0123456789'
15373as_cr_alnum=$as_cr_Letters$as_cr_digits
15374
15375ECHO_C= ECHO_N= ECHO_T=
15376case `echo -n x` in #(((((
15377-n*)
15378 case `echo 'xy\c'` in
15379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15380 xy) ECHO_C='\c';;
15381 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15382 ECHO_T=' ';;
15383 esac;;
15384*)
15385 ECHO_N='-n';;
15386esac
15387
15388rm -f conf$$ conf$$.exe conf$$.file
15389if test -d conf$$.dir; then
15390 rm -f conf$$.dir/conf$$.file
15391else
15392 rm -f conf$$.dir
15393 mkdir conf$$.dir 2>/dev/null
15394fi
15395if (echo >conf$$.file) 2>/dev/null; then
15396 if ln -s conf$$.file conf$$ 2>/dev/null; then
15397 as_ln_s='ln -s'
15398 # ... but there are two gotchas:
15399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15401 # In both cases, we have to default to `cp -p'.
15402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15403 as_ln_s='cp -p'
15404 elif ln conf$$.file conf$$ 2>/dev/null; then
15405 as_ln_s=ln
15406 else
15407 as_ln_s='cp -p'
15408 fi
15409else
15410 as_ln_s='cp -p'
15411fi
15412rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15413rmdir conf$$.dir 2>/dev/null
15414
15415
15416# as_fn_mkdir_p
15417# -------------
15418# Create "$as_dir" as a directory, including parents if necessary.
15419as_fn_mkdir_p ()
15420{
15421
15422 case $as_dir in #(
15423 -*) as_dir=./$as_dir;;
15424 esac
15425 test -d "$as_dir" || eval $as_mkdir_p || {
15426 as_dirs=
15427 while :; do
15428 case $as_dir in #(
15429 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15430 *) as_qdir=$as_dir;;
15431 esac
15432 as_dirs="'$as_qdir' $as_dirs"
15433 as_dir=`$as_dirname -- "$as_dir" ||
15434$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15435 X"$as_dir" : 'X\(//\)[^/]' \| \
15436 X"$as_dir" : 'X\(//\)$' \| \
15437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15438$as_echo X"$as_dir" |
15439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15440 s//\1/
15441 q
15442 }
15443 /^X\(\/\/\)[^/].*/{
15444 s//\1/
15445 q
15446 }
15447 /^X\(\/\/\)$/{
15448 s//\1/
15449 q
15450 }
15451 /^X\(\/\).*/{
15452 s//\1/
15453 q
15454 }
15455 s/.*/./; q'`
15456 test -d "$as_dir" && break
15457 done
15458 test -z "$as_dirs" || eval "mkdir $as_dirs"
15459 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15460
15461
15462} # as_fn_mkdir_p
15463if mkdir -p . 2>/dev/null; then
15464 as_mkdir_p='mkdir -p "$as_dir"'
15465else
15466 test -d ./-p && rmdir ./-p
15467 as_mkdir_p=false
15468fi
15469
15470if test -x / >/dev/null 2>&1; then
15471 as_test_x='test -x'
15472else
15473 if ls -dL / >/dev/null 2>&1; then
15474 as_ls_L_option=L
15475 else
15476 as_ls_L_option=
15477 fi
15478 as_test_x='
15479 eval sh -c '\''
15480 if test -d "$1"; then
15481 test -d "$1/.";
15482 else
15483 case $1 in #(
15484 -*)set "./$1";;
15485 esac;
15486 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15487 ???[sx]*):;;*)false;;esac;fi
15488 '\'' sh
15489 '
15490fi
15491as_executable_p=$as_test_x
15492
15493# Sed expression to map a string onto a valid CPP name.
15494as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15495
15496# Sed expression to map a string onto a valid variable name.
15497as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15498
15499
15500exec 6>&1
15501## ----------------------------------- ##
15502## Main body of $CONFIG_STATUS script. ##
15503## ----------------------------------- ##
15504_ASEOF
15505test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15506
15507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15508# Save the log message, to keep $0 and so on meaningful, and to
15509# report actual input values of CONFIG_FILES etc. instead of their
15510# values after options handling.
15511ac_log="
15512This file was extended by polo $as_me 0.1, which was
15513generated by GNU Autoconf 2.65. Invocation command line was
15514
15515 CONFIG_FILES = $CONFIG_FILES
15516 CONFIG_HEADERS = $CONFIG_HEADERS
15517 CONFIG_LINKS = $CONFIG_LINKS
15518 CONFIG_COMMANDS = $CONFIG_COMMANDS
15519 $ $0 $@
15520
15521on `(hostname || uname -n) 2>/dev/null | sed 1q`
15522"
15523
15524_ACEOF
15525
15526case $ac_config_files in *"
15527"*) set x $ac_config_files; shift; ac_config_files=$*;;
15528esac
15529
15530case $ac_config_headers in *"
15531"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15532esac
15533
15534
15535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15536# Files that config.status was made for.
15537config_files="$ac_config_files"
15538config_headers="$ac_config_headers"
15539config_commands="$ac_config_commands"
15540
15541_ACEOF
15542
15543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544ac_cs_usage="\
15545\`$as_me' instantiates files and other configuration actions
15546from templates according to the current configuration. Unless the files
15547and actions are specified as TAGs, all are instantiated by default.
15548
15549Usage: $0 [OPTION]... [TAG]...
15550
15551 -h, --help print this help, then exit
15552 -V, --version print version number and configuration settings, then exit
15553 --config print configuration, then exit
15554 -q, --quiet, --silent
15555 do not print progress messages
15556 -d, --debug don't remove temporary files
15557 --recheck update $as_me by reconfiguring in the same conditions
15558 --file=FILE[:TEMPLATE]
15559 instantiate the configuration file FILE
15560 --header=FILE[:TEMPLATE]
15561 instantiate the configuration header FILE
15562
15563Configuration files:
15564$config_files
15565
15566Configuration headers:
15567$config_headers
15568
15569Configuration commands:
15570$config_commands
15571
15572Report bugs to <opensource@google.com>."
15573
15574_ACEOF
15575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15576ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15577ac_cs_version="\\
15578polo config.status 0.1
15579configured by $0, generated by GNU Autoconf 2.65,
15580 with options \\"\$ac_cs_config\\"
15581
15582Copyright (C) 2009 Free Software Foundation, Inc.
15583This config.status script is free software; the Free Software Foundation
15584gives unlimited permission to copy, distribute and modify it."
15585
15586ac_pwd='$ac_pwd'
15587srcdir='$srcdir'
15588INSTALL='$INSTALL'
15589MKDIR_P='$MKDIR_P'
15590AWK='$AWK'
15591test -n "\$AWK" || AWK=awk
15592_ACEOF
15593
15594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15595# The default lists apply if the user does not specify any file.
15596ac_need_defaults=:
15597while test $# != 0
15598do
15599 case $1 in
15600 --*=*)
15601 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15602 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15603 ac_shift=:
15604 ;;
15605 *)
15606 ac_option=$1
15607 ac_optarg=$2
15608 ac_shift=shift
15609 ;;
15610 esac
15611
15612 case $ac_option in
15613 # Handling of the options.
15614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15615 ac_cs_recheck=: ;;
15616 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15617 $as_echo "$ac_cs_version"; exit ;;
15618 --config | --confi | --conf | --con | --co | --c )
15619 $as_echo "$ac_cs_config"; exit ;;
15620 --debug | --debu | --deb | --de | --d | -d )
15621 debug=: ;;
15622 --file | --fil | --fi | --f )
15623 $ac_shift
15624 case $ac_optarg in
15625 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15626 esac
15627 as_fn_append CONFIG_FILES " '$ac_optarg'"
15628 ac_need_defaults=false;;
15629 --header | --heade | --head | --hea )
15630 $ac_shift
15631 case $ac_optarg in
15632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15633 esac
15634 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15635 ac_need_defaults=false;;
15636 --he | --h)
15637 # Conflict between --help and --header
15638 as_fn_error "ambiguous option: \`$1'
15639Try \`$0 --help' for more information.";;
15640 --help | --hel | -h )
15641 $as_echo "$ac_cs_usage"; exit ;;
15642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15644 ac_cs_silent=: ;;
15645
15646 # This is an error.
15647 -*) as_fn_error "unrecognized option: \`$1'
15648Try \`$0 --help' for more information." ;;
15649
15650 *) as_fn_append ac_config_targets " $1"
15651 ac_need_defaults=false ;;
15652
15653 esac
15654 shift
15655done
15656
15657ac_configure_extra_args=
15658
15659if $ac_cs_silent; then
15660 exec 6>/dev/null
15661 ac_configure_extra_args="$ac_configure_extra_args --silent"
15662fi
15663
15664_ACEOF
15665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666if \$ac_cs_recheck; then
15667 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15668 shift
15669 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15670 CONFIG_SHELL='$SHELL'
15671 export CONFIG_SHELL
15672 exec "\$@"
15673fi
15674
15675_ACEOF
15676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15677exec 5>>config.log
15678{
15679 echo
15680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15681## Running $as_me. ##
15682_ASBOX
15683 $as_echo "$ac_log"
15684} >&5
15685
15686_ACEOF
15687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688#
15689# INIT-COMMANDS
15690#
15691AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15692
15693
15694# The HP-UX ksh and POSIX shell print the target directory to stdout
15695# if CDPATH is set.
15696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15697
15698sed_quote_subst='$sed_quote_subst'
15699double_quote_subst='$double_quote_subst'
15700delay_variable_subst='$delay_variable_subst'
15701macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15702macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15703enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15704enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15705pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15706enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15707host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15708host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15709host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15710build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15711build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15712build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15713SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15714Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15715GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15716EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15717FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15718LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15719NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15720LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15721max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15722ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15723exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15724lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15725lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15726lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15727reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15728reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15729OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15730deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15731file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15732AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15733AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15734STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15735RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15736old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15737old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15738old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15739CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15740CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15741compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15742GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15743lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15744lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15745lt_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"`'
15746lt_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"`'
15747objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15748SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15749ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15750MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15751lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15752lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15753lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15754lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15755lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15756need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15757DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15758NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15759LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15760OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15761OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15762libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15763shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15764extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15765archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15766enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15767export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15768whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15769compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15770old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15771old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15772archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15773archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15774module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15775module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15776with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15777allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15778no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15779hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15780hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15781hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15782hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15783hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15784hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15785hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15786hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15787inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15788link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15789fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15790always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15791export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15792exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15793include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15794prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15795file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15796variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15797need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15798need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15799version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15800runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15801shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15802shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15803libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15804library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15805soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15806postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15807postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15808finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15809finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15810hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15811sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15812sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15813hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15814enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15815enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15816enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15817old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15818striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15819compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15820predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15821postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15822predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15823postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15824compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15825LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15826old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15827compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15828GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15829lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15830lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15831lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15832lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15833lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15834archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15835enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15836export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15837whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15838compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15839old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15840old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15841archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15842archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15843module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15844module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15845with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15846allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15847no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15848hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15849hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15850hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15851hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15852hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15853hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15854hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15855hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15856inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15857link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15858fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15859always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15860export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15861exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15862include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15863prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15864file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15865hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15866compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15867predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15868postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15869predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15870postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15871compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15872
15873LTCC='$LTCC'
15874LTCFLAGS='$LTCFLAGS'
15875compiler='$compiler_DEFAULT'
15876
15877# Quote evaled strings.
15878for var in SED \
15879GREP \
15880EGREP \
15881FGREP \
15882LD \
15883NM \
15884LN_S \
15885lt_SP2NL \
15886lt_NL2SP \
15887reload_flag \
15888OBJDUMP \
15889deplibs_check_method \
15890file_magic_cmd \
15891AR \
15892AR_FLAGS \
15893STRIP \
15894RANLIB \
15895CC \
15896CFLAGS \
15897compiler \
15898lt_cv_sys_global_symbol_pipe \
15899lt_cv_sys_global_symbol_to_cdecl \
15900lt_cv_sys_global_symbol_to_c_name_address \
15901lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15902SHELL \
15903ECHO \
15904lt_prog_compiler_no_builtin_flag \
15905lt_prog_compiler_wl \
15906lt_prog_compiler_pic \
15907lt_prog_compiler_static \
15908lt_cv_prog_compiler_c_o \
15909need_locks \
15910DSYMUTIL \
15911NMEDIT \
15912LIPO \
15913OTOOL \
15914OTOOL64 \
15915shrext_cmds \
15916export_dynamic_flag_spec \
15917whole_archive_flag_spec \
15918compiler_needs_object \
15919with_gnu_ld \
15920allow_undefined_flag \
15921no_undefined_flag \
15922hardcode_libdir_flag_spec \
15923hardcode_libdir_flag_spec_ld \
15924hardcode_libdir_separator \
15925fix_srcfile_path \
15926exclude_expsyms \
15927include_expsyms \
15928file_list_spec \
15929variables_saved_for_relink \
15930libname_spec \
15931library_names_spec \
15932soname_spec \
15933finish_eval \
15934old_striplib \
15935striplib \
15936compiler_lib_search_dirs \
15937predep_objects \
15938postdep_objects \
15939predeps \
15940postdeps \
15941compiler_lib_search_path \
15942LD_CXX \
15943compiler_CXX \
15944lt_prog_compiler_no_builtin_flag_CXX \
15945lt_prog_compiler_wl_CXX \
15946lt_prog_compiler_pic_CXX \
15947lt_prog_compiler_static_CXX \
15948lt_cv_prog_compiler_c_o_CXX \
15949export_dynamic_flag_spec_CXX \
15950whole_archive_flag_spec_CXX \
15951compiler_needs_object_CXX \
15952with_gnu_ld_CXX \
15953allow_undefined_flag_CXX \
15954no_undefined_flag_CXX \
15955hardcode_libdir_flag_spec_CXX \
15956hardcode_libdir_flag_spec_ld_CXX \
15957hardcode_libdir_separator_CXX \
15958fix_srcfile_path_CXX \
15959exclude_expsyms_CXX \
15960include_expsyms_CXX \
15961file_list_spec_CXX \
15962compiler_lib_search_dirs_CXX \
15963predep_objects_CXX \
15964postdep_objects_CXX \
15965predeps_CXX \
15966postdeps_CXX \
15967compiler_lib_search_path_CXX; do
15968 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15969 *[\\\\\\\`\\"\\\$]*)
15970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15971 ;;
15972 *)
15973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15974 ;;
15975 esac
15976done
15977
15978# Double-quote double-evaled strings.
15979for var in reload_cmds \
15980old_postinstall_cmds \
15981old_postuninstall_cmds \
15982old_archive_cmds \
15983extract_expsyms_cmds \
15984old_archive_from_new_cmds \
15985old_archive_from_expsyms_cmds \
15986archive_cmds \
15987archive_expsym_cmds \
15988module_cmds \
15989module_expsym_cmds \
15990export_symbols_cmds \
15991prelink_cmds \
15992postinstall_cmds \
15993postuninstall_cmds \
15994finish_cmds \
15995sys_lib_search_path_spec \
15996sys_lib_dlsearch_path_spec \
15997old_archive_cmds_CXX \
15998old_archive_from_new_cmds_CXX \
15999old_archive_from_expsyms_cmds_CXX \
16000archive_cmds_CXX \
16001archive_expsym_cmds_CXX \
16002module_cmds_CXX \
16003module_expsym_cmds_CXX \
16004export_symbols_cmds_CXX \
16005prelink_cmds_CXX; do
16006 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16007 *[\\\\\\\`\\"\\\$]*)
16008 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16009 ;;
16010 *)
16011 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16012 ;;
16013 esac
16014done
16015
16016# Fix-up fallback echo if it was mangled by the above quoting rules.
16017case \$lt_ECHO in
16018*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16019 ;;
16020esac
16021
16022ac_aux_dir='$ac_aux_dir'
16023xsi_shell='$xsi_shell'
16024lt_shell_append='$lt_shell_append'
16025
16026# See if we are running on zsh, and set the options which allow our
16027# commands through without removal of \ escapes INIT.
16028if test -n "\${ZSH_VERSION+set}" ; then
16029 setopt NO_GLOB_SUBST
16030fi
16031
16032
16033 PACKAGE='$PACKAGE'
16034 VERSION='$VERSION'
16035 TIMESTAMP='$TIMESTAMP'
16036 RM='$RM'
16037 ofile='$ofile'
16038
16039
16040
16041
16042
16043
16044_ACEOF
16045
16046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16047
16048# Handling of arguments.
16049for ac_config_target in $ac_config_targets
16050do
16051 case $ac_config_target in
16052 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16054 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16056 "polo.pc") CONFIG_FILES="$CONFIG_FILES polo.pc" ;;
16057
16058 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16059 esac
16060done
16061
16062
16063# If the user did not use the arguments to specify the items to instantiate,
16064# then the envvar interface is used. Set only those that are not.
16065# We use the long form for the default assignment because of an extremely
16066# bizarre bug on SunOS 4.1.3.
16067if $ac_need_defaults; then
16068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16070 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16071fi
16072
16073# Have a temporary directory for convenience. Make it in the build tree
16074# simply because there is no reason against having it here, and in addition,
16075# creating and moving files from /tmp can sometimes cause problems.
16076# Hook for its removal unless debugging.
16077# Note that there is a small window in which the directory will not be cleaned:
16078# after its creation but before its name has been assigned to `$tmp'.
16079$debug ||
16080{
16081 tmp=
16082 trap 'exit_status=$?
16083 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16084' 0
16085 trap 'as_fn_exit 1' 1 2 13 15
16086}
16087# Create a (secure) tmp directory for tmp files.
16088
16089{
16090 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16091 test -n "$tmp" && test -d "$tmp"
16092} ||
16093{
16094 tmp=./conf$$-$RANDOM
16095 (umask 077 && mkdir "$tmp")
16096} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16097
16098# Set up the scripts for CONFIG_FILES section.
16099# No need to generate them if there are no CONFIG_FILES.
16100# This happens for instance with `./config.status config.h'.
16101if test -n "$CONFIG_FILES"; then
16102
16103
16104ac_cr=`echo X | tr X '\015'`
16105# On cygwin, bash can eat \r inside `` if the user requested igncr.
16106# But we know of no other shell where ac_cr would be empty at this
16107# point, so we can use a bashism as a fallback.
16108if test "x$ac_cr" = x; then
16109 eval ac_cr=\$\'\\r\'
16110fi
16111ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16112if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16113 ac_cs_awk_cr='\r'
16114else
16115 ac_cs_awk_cr=$ac_cr
16116fi
16117
16118echo 'BEGIN {' >"$tmp/subs1.awk" &&
16119_ACEOF
16120
16121
16122{
16123 echo "cat >conf$$subs.awk <<_ACEOF" &&
16124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16125 echo "_ACEOF"
16126} >conf$$subs.sh ||
16127 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16128ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16129ac_delim='%!_!# '
16130for ac_last_try in false false false false false :; do
16131 . ./conf$$subs.sh ||
16132 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16133
16134 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16135 if test $ac_delim_n = $ac_delim_num; then
16136 break
16137 elif $ac_last_try; then
16138 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16139 else
16140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16141 fi
16142done
16143rm -f conf$$subs.sh
16144
16145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16146cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16147_ACEOF
16148sed -n '
16149h
16150s/^/S["/; s/!.*/"]=/
16151p
16152g
16153s/^[^!]*!//
16154:repl
16155t repl
16156s/'"$ac_delim"'$//
16157t delim
16158:nl
16159h
16160s/\(.\{148\}\)..*/\1/
16161t more1
16162s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16163p
16164n
16165b repl
16166:more1
16167s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16168p
16169g
16170s/.\{148\}//
16171t nl
16172:delim
16173h
16174s/\(.\{148\}\)..*/\1/
16175t more2
16176s/["\\]/\\&/g; s/^/"/; s/$/"/
16177p
16178b
16179:more2
16180s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16181p
16182g
16183s/.\{148\}//
16184t delim
16185' <conf$$subs.awk | sed '
16186/^[^""]/{
16187 N
16188 s/\n//
16189}
16190' >>$CONFIG_STATUS || ac_write_fail=1
16191rm -f conf$$subs.awk
16192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16193_ACAWK
16194cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16195 for (key in S) S_is_set[key] = 1
16196 FS = ""
16197
16198}
16199{
16200 line = $ 0
16201 nfields = split(line, field, "@")
16202 substed = 0
16203 len = length(field[1])
16204 for (i = 2; i < nfields; i++) {
16205 key = field[i]
16206 keylen = length(key)
16207 if (S_is_set[key]) {
16208 value = S[key]
16209 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16210 len += length(value) + length(field[++i])
16211 substed = 1
16212 } else
16213 len += 1 + keylen
16214 }
16215
16216 print line
16217}
16218
16219_ACAWK
16220_ACEOF
16221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16222if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16223 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16224else
16225 cat
16226fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16227 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16228_ACEOF
16229
16230# VPATH may cause trouble with some makes, so we remove $(srcdir),
16231# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16232# trailing colons and then remove the whole line if VPATH becomes empty
16233# (actually we leave an empty line to preserve line numbers).
16234if test "x$srcdir" = x.; then
16235 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16236s/:*\$(srcdir):*/:/
16237s/:*\${srcdir}:*/:/
16238s/:*@srcdir@:*/:/
16239s/^\([^=]*=[ ]*\):*/\1/
16240s/:*$//
16241s/^[^=]*=[ ]*$//
16242}'
16243fi
16244
16245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16246fi # test -n "$CONFIG_FILES"
16247
16248# Set up the scripts for CONFIG_HEADERS section.
16249# No need to generate them if there are no CONFIG_HEADERS.
16250# This happens for instance with `./config.status Makefile'.
16251if test -n "$CONFIG_HEADERS"; then
16252cat >"$tmp/defines.awk" <<\_ACAWK ||
16253BEGIN {
16254_ACEOF
16255
16256# Transform confdefs.h into an awk script `defines.awk', embedded as
16257# here-document in config.status, that substitutes the proper values into
16258# config.h.in to produce config.h.
16259
16260# Create a delimiter string that does not exist in confdefs.h, to ease
16261# handling of long lines.
16262ac_delim='%!_!# '
16263for ac_last_try in false false :; do
16264 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16265 if test -z "$ac_t"; then
16266 break
16267 elif $ac_last_try; then
16268 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16269 else
16270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16271 fi
16272done
16273
16274# For the awk script, D is an array of macro values keyed by name,
16275# likewise P contains macro parameters if any. Preserve backslash
16276# newline sequences.
16277
16278ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16279sed -n '
16280s/.\{148\}/&'"$ac_delim"'/g
16281t rset
16282:rset
16283s/^[ ]*#[ ]*define[ ][ ]*/ /
16284t def
16285d
16286:def
16287s/\\$//
16288t bsnl
16289s/["\\]/\\&/g
16290s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16291D["\1"]=" \3"/p
16292s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16293d
16294:bsnl
16295s/["\\]/\\&/g
16296s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16297D["\1"]=" \3\\\\\\n"\\/p
16298t cont
16299s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16300t cont
16301d
16302:cont
16303n
16304s/.\{148\}/&'"$ac_delim"'/g
16305t clear
16306:clear
16307s/\\$//
16308t bsnlc
16309s/["\\]/\\&/g; s/^/"/; s/$/"/p
16310d
16311:bsnlc
16312s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16313b cont
16314' <confdefs.h | sed '
16315s/'"$ac_delim"'/"\\\
16316"/g' >>$CONFIG_STATUS || ac_write_fail=1
16317
16318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16319 for (key in D) D_is_set[key] = 1
16320 FS = ""
16321}
16322/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16323 line = \$ 0
16324 split(line, arg, " ")
16325 if (arg[1] == "#") {
16326 defundef = arg[2]
16327 mac1 = arg[3]
16328 } else {
16329 defundef = substr(arg[1], 2)
16330 mac1 = arg[2]
16331 }
16332 split(mac1, mac2, "(") #)
16333 macro = mac2[1]
16334 prefix = substr(line, 1, index(line, defundef) - 1)
16335 if (D_is_set[macro]) {
16336 # Preserve the white space surrounding the "#".
16337 print prefix "define", macro P[macro] D[macro]
16338 next
16339 } else {
16340 # Replace #undef with comments. This is necessary, for example,
16341 # in the case of _POSIX_SOURCE, which is predefined and required
16342 # on some systems where configure will not decide to define it.
16343 if (defundef == "undef") {
16344 print "/*", prefix defundef, macro, "*/"
16345 next
16346 }
16347 }
16348}
16349{ print }
16350_ACAWK
16351_ACEOF
16352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16353 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16354fi # test -n "$CONFIG_HEADERS"
16355
16356
16357eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16358shift
16359for ac_tag
16360do
16361 case $ac_tag in
16362 :[FHLC]) ac_mode=$ac_tag; continue;;
16363 esac
16364 case $ac_mode$ac_tag in
16365 :[FHL]*:*);;
16366 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16367 :[FH]-) ac_tag=-:-;;
16368 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16369 esac
16370 ac_save_IFS=$IFS
16371 IFS=:
16372 set x $ac_tag
16373 IFS=$ac_save_IFS
16374 shift
16375 ac_file=$1
16376 shift
16377
16378 case $ac_mode in
16379 :L) ac_source=$1;;
16380 :[FH])
16381 ac_file_inputs=
16382 for ac_f
16383 do
16384 case $ac_f in
16385 -) ac_f="$tmp/stdin";;
16386 *) # Look for the file first in the build tree, then in the source tree
16387 # (if the path is not absolute). The absolute path cannot be DOS-style,
16388 # because $ac_f cannot contain `:'.
16389 test -f "$ac_f" ||
16390 case $ac_f in
16391 [\\/$]*) false;;
16392 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16393 esac ||
16394 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16395 esac
16396 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16397 as_fn_append ac_file_inputs " '$ac_f'"
16398 done
16399
16400 # Let's still pretend it is `configure' which instantiates (i.e., don't
16401 # use $as_me), people would be surprised to read:
16402 # /* config.h. Generated by config.status. */
16403 configure_input='Generated from '`
16404 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16405 `' by configure.'
16406 if test x"$ac_file" != x-; then
16407 configure_input="$ac_file. $configure_input"
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16409$as_echo "$as_me: creating $ac_file" >&6;}
16410 fi
16411 # Neutralize special characters interpreted by sed in replacement strings.
16412 case $configure_input in #(
16413 *\&* | *\|* | *\\* )
16414 ac_sed_conf_input=`$as_echo "$configure_input" |
16415 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16416 *) ac_sed_conf_input=$configure_input;;
16417 esac
16418
16419 case $ac_tag in
16420 *:-:* | *:-) cat >"$tmp/stdin" \
16421 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16422 esac
16423 ;;
16424 esac
16425
16426 ac_dir=`$as_dirname -- "$ac_file" ||
16427$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16428 X"$ac_file" : 'X\(//\)[^/]' \| \
16429 X"$ac_file" : 'X\(//\)$' \| \
16430 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16431$as_echo X"$ac_file" |
16432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16433 s//\1/
16434 q
16435 }
16436 /^X\(\/\/\)[^/].*/{
16437 s//\1/
16438 q
16439 }
16440 /^X\(\/\/\)$/{
16441 s//\1/
16442 q
16443 }
16444 /^X\(\/\).*/{
16445 s//\1/
16446 q
16447 }
16448 s/.*/./; q'`
16449 as_dir="$ac_dir"; as_fn_mkdir_p
16450 ac_builddir=.
16451
16452case "$ac_dir" in
16453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16454*)
16455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16456 # A ".." for each directory in $ac_dir_suffix.
16457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16458 case $ac_top_builddir_sub in
16459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16461 esac ;;
16462esac
16463ac_abs_top_builddir=$ac_pwd
16464ac_abs_builddir=$ac_pwd$ac_dir_suffix
16465# for backward compatibility:
16466ac_top_builddir=$ac_top_build_prefix
16467
16468case $srcdir in
16469 .) # We are building in place.
16470 ac_srcdir=.
16471 ac_top_srcdir=$ac_top_builddir_sub
16472 ac_abs_top_srcdir=$ac_pwd ;;
16473 [\\/]* | ?:[\\/]* ) # Absolute name.
16474 ac_srcdir=$srcdir$ac_dir_suffix;
16475 ac_top_srcdir=$srcdir
16476 ac_abs_top_srcdir=$srcdir ;;
16477 *) # Relative name.
16478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16479 ac_top_srcdir=$ac_top_build_prefix$srcdir
16480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16481esac
16482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16483
16484
16485 case $ac_mode in
16486 :F)
16487 #
16488 # CONFIG_FILE
16489 #
16490
16491 case $INSTALL in
16492 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16493 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16494 esac
16495 ac_MKDIR_P=$MKDIR_P
16496 case $MKDIR_P in
16497 [\\/$]* | ?:[\\/]* ) ;;
16498 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16499 esac
16500_ACEOF
16501
16502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16503# If the template does not know about datarootdir, expand it.
16504# FIXME: This hack should be removed a few years after 2.60.
16505ac_datarootdir_hack=; ac_datarootdir_seen=
16506ac_sed_dataroot='
16507/datarootdir/ {
16508 p
16509 q
16510}
16511/@datadir@/p
16512/@docdir@/p
16513/@infodir@/p
16514/@localedir@/p
16515/@mandir@/p'
16516case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16517*datarootdir*) ac_datarootdir_seen=yes;;
16518*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16520$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16521_ACEOF
16522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16523 ac_datarootdir_hack='
16524 s&@datadir@&$datadir&g
16525 s&@docdir@&$docdir&g
16526 s&@infodir@&$infodir&g
16527 s&@localedir@&$localedir&g
16528 s&@mandir@&$mandir&g
16529 s&\\\${datarootdir}&$datarootdir&g' ;;
16530esac
16531_ACEOF
16532
16533# Neutralize VPATH when `$srcdir' = `.'.
16534# Shell code in configure.ac might set extrasub.
16535# FIXME: do we really want to maintain this feature?
16536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16537ac_sed_extra="$ac_vpsub
16538$extrasub
16539_ACEOF
16540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16541:t
16542/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16543s|@configure_input@|$ac_sed_conf_input|;t t
16544s&@top_builddir@&$ac_top_builddir_sub&;t t
16545s&@top_build_prefix@&$ac_top_build_prefix&;t t
16546s&@srcdir@&$ac_srcdir&;t t
16547s&@abs_srcdir@&$ac_abs_srcdir&;t t
16548s&@top_srcdir@&$ac_top_srcdir&;t t
16549s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16550s&@builddir@&$ac_builddir&;t t
16551s&@abs_builddir@&$ac_abs_builddir&;t t
16552s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16553s&@INSTALL@&$ac_INSTALL&;t t
16554s&@MKDIR_P@&$ac_MKDIR_P&;t t
16555$ac_datarootdir_hack
16556"
16557eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16558 || as_fn_error "could not create $ac_file" "$LINENO" 5
16559
16560test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16561 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16562 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16564which seems to be undefined. Please make sure it is defined." >&5
16565$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16566which seems to be undefined. Please make sure it is defined." >&2;}
16567
16568 rm -f "$tmp/stdin"
16569 case $ac_file in
16570 -) cat "$tmp/out" && rm -f "$tmp/out";;
16571 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16572 esac \
16573 || as_fn_error "could not create $ac_file" "$LINENO" 5
16574 ;;
16575 :H)
16576 #
16577 # CONFIG_HEADER
16578 #
16579 if test x"$ac_file" != x-; then
16580 {
16581 $as_echo "/* $configure_input */" \
16582 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16583 } >"$tmp/config.h" \
16584 || as_fn_error "could not create $ac_file" "$LINENO" 5
16585 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16587$as_echo "$as_me: $ac_file is unchanged" >&6;}
16588 else
16589 rm -f "$ac_file"
16590 mv "$tmp/config.h" "$ac_file" \
16591 || as_fn_error "could not create $ac_file" "$LINENO" 5
16592 fi
16593 else
16594 $as_echo "/* $configure_input */" \
16595 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16596 || as_fn_error "could not create -" "$LINENO" 5
16597 fi
16598# Compute "$ac_file"'s index in $config_headers.
16599_am_arg="$ac_file"
16600_am_stamp_count=1
16601for _am_header in $config_headers :; do
16602 case $_am_header in
16603 $_am_arg | $_am_arg:* )
16604 break ;;
16605 * )
16606 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16607 esac
16608done
16609echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16610$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16611 X"$_am_arg" : 'X\(//\)[^/]' \| \
16612 X"$_am_arg" : 'X\(//\)$' \| \
16613 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16614$as_echo X"$_am_arg" |
16615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16616 s//\1/
16617 q
16618 }
16619 /^X\(\/\/\)[^/].*/{
16620 s//\1/
16621 q
16622 }
16623 /^X\(\/\/\)$/{
16624 s//\1/
16625 q
16626 }
16627 /^X\(\/\).*/{
16628 s//\1/
16629 q
16630 }
16631 s/.*/./; q'`/stamp-h$_am_stamp_count
16632 ;;
16633
16634 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16635$as_echo "$as_me: executing $ac_file commands" >&6;}
16636 ;;
16637 esac
16638
16639
16640 case $ac_file$ac_mode in
16641 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16642 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16643 # are listed without --file. Let's play safe and only enable the eval
16644 # if we detect the quoting.
16645 case $CONFIG_FILES in
16646 *\'*) eval set x "$CONFIG_FILES" ;;
16647 *) set x $CONFIG_FILES ;;
16648 esac
16649 shift
16650 for mf
16651 do
16652 # Strip MF so we end up with the name of the file.
16653 mf=`echo "$mf" | sed -e 's/:.*$//'`
16654 # Check whether this is an Automake generated Makefile or not.
16655 # We used to match only the files named `Makefile.in', but
16656 # some people rename them; so instead we look at the file content.
16657 # Grep'ing the first line is not enough: some people post-process
16658 # each Makefile.in and add a new line on top of each file to say so.
16659 # Grep'ing the whole file is not good either: AIX grep has a line
16660 # limit of 2048, but all sed's we know have understand at least 4000.
16661 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16662 dirpart=`$as_dirname -- "$mf" ||
16663$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16664 X"$mf" : 'X\(//\)[^/]' \| \
16665 X"$mf" : 'X\(//\)$' \| \
16666 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16667$as_echo X"$mf" |
16668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16669 s//\1/
16670 q
16671 }
16672 /^X\(\/\/\)[^/].*/{
16673 s//\1/
16674 q
16675 }
16676 /^X\(\/\/\)$/{
16677 s//\1/
16678 q
16679 }
16680 /^X\(\/\).*/{
16681 s//\1/
16682 q
16683 }
16684 s/.*/./; q'`
16685 else
16686 continue
16687 fi
16688 # Extract the definition of DEPDIR, am__include, and am__quote
16689 # from the Makefile without running `make'.
16690 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16691 test -z "$DEPDIR" && continue
16692 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16693 test -z "am__include" && continue
16694 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16695 # When using ansi2knr, U may be empty or an underscore; expand it
16696 U=`sed -n 's/^U = //p' < "$mf"`
16697 # Find all dependency output files, they are included files with
16698 # $(DEPDIR) in their names. We invoke sed twice because it is the
16699 # simplest approach to changing $(DEPDIR) to its actual value in the
16700 # expansion.
16701 for file in `sed -n "
16702 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16703 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16704 # Make sure the directory exists.
16705 test -f "$dirpart/$file" && continue
16706 fdir=`$as_dirname -- "$file" ||
16707$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16708 X"$file" : 'X\(//\)[^/]' \| \
16709 X"$file" : 'X\(//\)$' \| \
16710 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16711$as_echo X"$file" |
16712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16713 s//\1/
16714 q
16715 }
16716 /^X\(\/\/\)[^/].*/{
16717 s//\1/
16718 q
16719 }
16720 /^X\(\/\/\)$/{
16721 s//\1/
16722 q
16723 }
16724 /^X\(\/\).*/{
16725 s//\1/
16726 q
16727 }
16728 s/.*/./; q'`
16729 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16730 # echo "creating $dirpart/$file"
16731 echo '# dummy' > "$dirpart/$file"
16732 done
16733 done
16734}
16735 ;;
16736 "libtool":C)
16737
16738 # See if we are running on zsh, and set the options which allow our
16739 # commands through without removal of \ escapes.
16740 if test -n "${ZSH_VERSION+set}" ; then
16741 setopt NO_GLOB_SUBST
16742 fi
16743
16744 cfgfile="${ofile}T"
16745 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16746 $RM "$cfgfile"
16747
16748 cat <<_LT_EOF >> "$cfgfile"
16749#! $SHELL
16750
16751# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16752# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16753# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16754# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16755#
16756# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16757# 2006, 2007, 2008 Free Software Foundation, Inc.
16758# Written by Gordon Matzigkeit, 1996
16759#
16760# This file is part of GNU Libtool.
16761#
16762# GNU Libtool is free software; you can redistribute it and/or
16763# modify it under the terms of the GNU General Public License as
16764# published by the Free Software Foundation; either version 2 of
16765# the License, or (at your option) any later version.
16766#
16767# As a special exception to the GNU General Public License,
16768# if you distribute this file as part of a program or library that
16769# is built using GNU Libtool, you may include this file under the
16770# same distribution terms that you use for the rest of that program.
16771#
16772# GNU Libtool is distributed in the hope that it will be useful,
16773# but WITHOUT ANY WARRANTY; without even the implied warranty of
16774# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16775# GNU General Public License for more details.
16776#
16777# You should have received a copy of the GNU General Public License
16778# along with GNU Libtool; see the file COPYING. If not, a copy
16779# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16780# obtained by writing to the Free Software Foundation, Inc.,
16781# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16782
16783
16784# The names of the tagged configurations supported by this script.
16785available_tags="CXX "
16786
16787# ### BEGIN LIBTOOL CONFIG
16788
16789# Which release of libtool.m4 was used?
16790macro_version=$macro_version
16791macro_revision=$macro_revision
16792
16793# Whether or not to build shared libraries.
16794build_libtool_libs=$enable_shared
16795
16796# Whether or not to build static libraries.
16797build_old_libs=$enable_static
16798
16799# What type of objects to build.
16800pic_mode=$pic_mode
16801
16802# Whether or not to optimize for fast installation.
16803fast_install=$enable_fast_install
16804
16805# The host system.
16806host_alias=$host_alias
16807host=$host
16808host_os=$host_os
16809
16810# The build system.
16811build_alias=$build_alias
16812build=$build
16813build_os=$build_os
16814
16815# A sed program that does not truncate output.
16816SED=$lt_SED
16817
16818# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16819Xsed="\$SED -e 1s/^X//"
16820
16821# A grep program that handles long lines.
16822GREP=$lt_GREP
16823
16824# An ERE matcher.
16825EGREP=$lt_EGREP
16826
16827# A literal string matcher.
16828FGREP=$lt_FGREP
16829
16830# A BSD- or MS-compatible name lister.
16831NM=$lt_NM
16832
16833# Whether we need soft or hard links.
16834LN_S=$lt_LN_S
16835
16836# What is the maximum length of a command?
16837max_cmd_len=$max_cmd_len
16838
16839# Object file suffix (normally "o").
16840objext=$ac_objext
16841
16842# Executable file suffix (normally "").
16843exeext=$exeext
16844
16845# whether the shell understands "unset".
16846lt_unset=$lt_unset
16847
16848# turn spaces into newlines.
16849SP2NL=$lt_lt_SP2NL
16850
16851# turn newlines into spaces.
16852NL2SP=$lt_lt_NL2SP
16853
16854# How to create reloadable object files.
16855reload_flag=$lt_reload_flag
16856reload_cmds=$lt_reload_cmds
16857
16858# An object symbol dumper.
16859OBJDUMP=$lt_OBJDUMP
16860
16861# Method to check whether dependent libraries are shared objects.
16862deplibs_check_method=$lt_deplibs_check_method
16863
16864# Command to use when deplibs_check_method == "file_magic".
16865file_magic_cmd=$lt_file_magic_cmd
16866
16867# The archiver.
16868AR=$lt_AR
16869AR_FLAGS=$lt_AR_FLAGS
16870
16871# A symbol stripping program.
16872STRIP=$lt_STRIP
16873
16874# Commands used to install an old-style archive.
16875RANLIB=$lt_RANLIB
16876old_postinstall_cmds=$lt_old_postinstall_cmds
16877old_postuninstall_cmds=$lt_old_postuninstall_cmds
16878
16879# A C compiler.
16880LTCC=$lt_CC
16881
16882# LTCC compiler flags.
16883LTCFLAGS=$lt_CFLAGS
16884
16885# Take the output of nm and produce a listing of raw symbols and C names.
16886global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16887
16888# Transform the output of nm in a proper C declaration.
16889global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16890
16891# Transform the output of nm in a C name address pair.
16892global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16893
16894# Transform the output of nm in a C name address pair when lib prefix is needed.
16895global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16896
16897# The name of the directory that contains temporary libtool files.
16898objdir=$objdir
16899
16900# Shell to use when invoking shell scripts.
16901SHELL=$lt_SHELL
16902
16903# An echo program that does not interpret backslashes.
16904ECHO=$lt_ECHO
16905
16906# Used to examine libraries when file_magic_cmd begins with "file".
16907MAGIC_CMD=$MAGIC_CMD
16908
16909# Must we lock files when doing compilation?
16910need_locks=$lt_need_locks
16911
16912# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16913DSYMUTIL=$lt_DSYMUTIL
16914
16915# Tool to change global to local symbols on Mac OS X.
16916NMEDIT=$lt_NMEDIT
16917
16918# Tool to manipulate fat objects and archives on Mac OS X.
16919LIPO=$lt_LIPO
16920
16921# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16922OTOOL=$lt_OTOOL
16923
16924# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16925OTOOL64=$lt_OTOOL64
16926
16927# Old archive suffix (normally "a").
16928libext=$libext
16929
16930# Shared library suffix (normally ".so").
16931shrext_cmds=$lt_shrext_cmds
16932
16933# The commands to extract the exported symbol list from a shared archive.
16934extract_expsyms_cmds=$lt_extract_expsyms_cmds
16935
16936# Variables whose values should be saved in libtool wrapper scripts and
16937# restored at link time.
16938variables_saved_for_relink=$lt_variables_saved_for_relink
16939
16940# Do we need the "lib" prefix for modules?
16941need_lib_prefix=$need_lib_prefix
16942
16943# Do we need a version for libraries?
16944need_version=$need_version
16945
16946# Library versioning type.
16947version_type=$version_type
16948
16949# Shared library runtime path variable.
16950runpath_var=$runpath_var
16951
16952# Shared library path variable.
16953shlibpath_var=$shlibpath_var
16954
16955# Is shlibpath searched before the hard-coded library search path?
16956shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16957
16958# Format of library name prefix.
16959libname_spec=$lt_libname_spec
16960
16961# List of archive names. First name is the real one, the rest are links.
16962# The last name is the one that the linker finds with -lNAME
16963library_names_spec=$lt_library_names_spec
16964
16965# The coded name of the library, if different from the real name.
16966soname_spec=$lt_soname_spec
16967
16968# Command to use after installation of a shared archive.
16969postinstall_cmds=$lt_postinstall_cmds
16970
16971# Command to use after uninstallation of a shared archive.
16972postuninstall_cmds=$lt_postuninstall_cmds
16973
16974# Commands used to finish a libtool library installation in a directory.
16975finish_cmds=$lt_finish_cmds
16976
16977# As "finish_cmds", except a single script fragment to be evaled but
16978# not shown.
16979finish_eval=$lt_finish_eval
16980
16981# Whether we should hardcode library paths into libraries.
16982hardcode_into_libs=$hardcode_into_libs
16983
16984# Compile-time system search path for libraries.
16985sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16986
16987# Run-time system search path for libraries.
16988sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16989
16990# Whether dlopen is supported.
16991dlopen_support=$enable_dlopen
16992
16993# Whether dlopen of programs is supported.
16994dlopen_self=$enable_dlopen_self
16995
16996# Whether dlopen of statically linked programs is supported.
16997dlopen_self_static=$enable_dlopen_self_static
16998
16999# Commands to strip libraries.
17000old_striplib=$lt_old_striplib
17001striplib=$lt_striplib
17002
17003
17004# The linker used to build libraries.
17005LD=$lt_LD
17006
17007# Commands used to build an old-style archive.
17008old_archive_cmds=$lt_old_archive_cmds
17009
17010# A language specific compiler.
17011CC=$lt_compiler
17012
17013# Is the compiler the GNU compiler?
17014with_gcc=$GCC
17015
17016# Compiler flag to turn off builtin functions.
17017no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17018
17019# How to pass a linker flag through the compiler.
17020wl=$lt_lt_prog_compiler_wl
17021
17022# Additional compiler flags for building library objects.
17023pic_flag=$lt_lt_prog_compiler_pic
17024
17025# Compiler flag to prevent dynamic linking.
17026link_static_flag=$lt_lt_prog_compiler_static
17027
17028# Does compiler simultaneously support -c and -o options?
17029compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17030
17031# Whether or not to add -lc for building shared libraries.
17032build_libtool_need_lc=$archive_cmds_need_lc
17033
17034# Whether or not to disallow shared libs when runtime libs are static.
17035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17036
17037# Compiler flag to allow reflexive dlopens.
17038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17039
17040# Compiler flag to generate shared objects directly from archives.
17041whole_archive_flag_spec=$lt_whole_archive_flag_spec
17042
17043# Whether the compiler copes with passing no objects directly.
17044compiler_needs_object=$lt_compiler_needs_object
17045
17046# Create an old-style archive from a shared archive.
17047old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17048
17049# Create a temporary old-style archive to link instead of a shared archive.
17050old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17051
17052# Commands used to build a shared archive.
17053archive_cmds=$lt_archive_cmds
17054archive_expsym_cmds=$lt_archive_expsym_cmds
17055
17056# Commands used to build a loadable module if different from building
17057# a shared archive.
17058module_cmds=$lt_module_cmds
17059module_expsym_cmds=$lt_module_expsym_cmds
17060
17061# Whether we are building with GNU ld or not.
17062with_gnu_ld=$lt_with_gnu_ld
17063
17064# Flag that allows shared libraries with undefined symbols to be built.
17065allow_undefined_flag=$lt_allow_undefined_flag
17066
17067# Flag that enforces no undefined symbols.
17068no_undefined_flag=$lt_no_undefined_flag
17069
17070# Flag to hardcode \$libdir into a binary during linking.
17071# This must work even if \$libdir does not exist
17072hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17073
17074# If ld is used when linking, flag to hardcode \$libdir into a binary
17075# during linking. This must work even if \$libdir does not exist.
17076hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17077
17078# Whether we need a single "-rpath" flag with a separated argument.
17079hardcode_libdir_separator=$lt_hardcode_libdir_separator
17080
17081# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17082# DIR into the resulting binary.
17083hardcode_direct=$hardcode_direct
17084
17085# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17086# DIR into the resulting binary and the resulting library dependency is
17087# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17088# library is relocated.
17089hardcode_direct_absolute=$hardcode_direct_absolute
17090
17091# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17092# into the resulting binary.
17093hardcode_minus_L=$hardcode_minus_L
17094
17095# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17096# into the resulting binary.
17097hardcode_shlibpath_var=$hardcode_shlibpath_var
17098
17099# Set to "yes" if building a shared library automatically hardcodes DIR
17100# into the library and all subsequent libraries and executables linked
17101# against it.
17102hardcode_automatic=$hardcode_automatic
17103
17104# Set to yes if linker adds runtime paths of dependent libraries
17105# to runtime path list.
17106inherit_rpath=$inherit_rpath
17107
17108# Whether libtool must link a program against all its dependency libraries.
17109link_all_deplibs=$link_all_deplibs
17110
17111# Fix the shell variable \$srcfile for the compiler.
17112fix_srcfile_path=$lt_fix_srcfile_path
17113
17114# Set to "yes" if exported symbols are required.
17115always_export_symbols=$always_export_symbols
17116
17117# The commands to list exported symbols.
17118export_symbols_cmds=$lt_export_symbols_cmds
17119
17120# Symbols that should not be listed in the preloaded symbols.
17121exclude_expsyms=$lt_exclude_expsyms
17122
17123# Symbols that must always be exported.
17124include_expsyms=$lt_include_expsyms
17125
17126# Commands necessary for linking programs (against libraries) with templates.
17127prelink_cmds=$lt_prelink_cmds
17128
17129# Specify filename containing input files.
17130file_list_spec=$lt_file_list_spec
17131
17132# How to hardcode a shared library path into an executable.
17133hardcode_action=$hardcode_action
17134
17135# The directories searched by this compiler when creating a shared library.
17136compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17137
17138# Dependencies to place before and after the objects being linked to
17139# create a shared library.
17140predep_objects=$lt_predep_objects
17141postdep_objects=$lt_postdep_objects
17142predeps=$lt_predeps
17143postdeps=$lt_postdeps
17144
17145# The library search path used internally by the compiler when linking
17146# a shared library.
17147compiler_lib_search_path=$lt_compiler_lib_search_path
17148
17149# ### END LIBTOOL CONFIG
17150
17151_LT_EOF
17152
17153 case $host_os in
17154 aix3*)
17155 cat <<\_LT_EOF >> "$cfgfile"
17156# AIX sometimes has problems with the GCC collect2 program. For some
17157# reason, if we set the COLLECT_NAMES environment variable, the problems
17158# vanish in a puff of smoke.
17159if test "X${COLLECT_NAMES+set}" != Xset; then
17160 COLLECT_NAMES=
17161 export COLLECT_NAMES
17162fi
17163_LT_EOF
17164 ;;
17165 esac
17166
17167
17168ltmain="$ac_aux_dir/ltmain.sh"
17169
17170
17171 # We use sed instead of cat because bash on DJGPP gets confused if
17172 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17173 # text mode, it properly converts lines to CR/LF. This bash problem
17174 # is reportedly fixed, but why not run on old versions too?
17175 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17176 || (rm -f "$cfgfile"; exit 1)
17177
17178 case $xsi_shell in
17179 yes)
17180 cat << \_LT_EOF >> "$cfgfile"
17181
17182# func_dirname file append nondir_replacement
17183# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17184# otherwise set result to NONDIR_REPLACEMENT.
17185func_dirname ()
17186{
17187 case ${1} in
17188 */*) func_dirname_result="${1%/*}${2}" ;;
17189 * ) func_dirname_result="${3}" ;;
17190 esac
17191}
17192
17193# func_basename file
17194func_basename ()
17195{
17196 func_basename_result="${1##*/}"
17197}
17198
17199# func_dirname_and_basename file append nondir_replacement
17200# perform func_basename and func_dirname in a single function
17201# call:
17202# dirname: Compute the dirname of FILE. If nonempty,
17203# add APPEND to the result, otherwise set result
17204# to NONDIR_REPLACEMENT.
17205# value returned in "$func_dirname_result"
17206# basename: Compute filename of FILE.
17207# value retuned in "$func_basename_result"
17208# Implementation must be kept synchronized with func_dirname
17209# and func_basename. For efficiency, we do not delegate to
17210# those functions but instead duplicate the functionality here.
17211func_dirname_and_basename ()
17212{
17213 case ${1} in
17214 */*) func_dirname_result="${1%/*}${2}" ;;
17215 * ) func_dirname_result="${3}" ;;
17216 esac
17217 func_basename_result="${1##*/}"
17218}
17219
17220# func_stripname prefix suffix name
17221# strip PREFIX and SUFFIX off of NAME.
17222# PREFIX and SUFFIX must not contain globbing or regex special
17223# characters, hashes, percent signs, but SUFFIX may contain a leading
17224# dot (in which case that matches only a dot).
17225func_stripname ()
17226{
17227 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17228 # positional parameters, so assign one to ordinary parameter first.
17229 func_stripname_result=${3}
17230 func_stripname_result=${func_stripname_result#"${1}"}
17231 func_stripname_result=${func_stripname_result%"${2}"}
17232}
17233
17234# func_opt_split
17235func_opt_split ()
17236{
17237 func_opt_split_opt=${1%%=*}
17238 func_opt_split_arg=${1#*=}
17239}
17240
17241# func_lo2o object
17242func_lo2o ()
17243{
17244 case ${1} in
17245 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17246 *) func_lo2o_result=${1} ;;
17247 esac
17248}
17249
17250# func_xform libobj-or-source
17251func_xform ()
17252{
17253 func_xform_result=${1%.*}.lo
17254}
17255
17256# func_arith arithmetic-term...
17257func_arith ()
17258{
17259 func_arith_result=$(( $* ))
17260}
17261
17262# func_len string
17263# STRING may not start with a hyphen.
17264func_len ()
17265{
17266 func_len_result=${#1}
17267}
17268
17269_LT_EOF
17270 ;;
17271 *) # Bourne compatible functions.
17272 cat << \_LT_EOF >> "$cfgfile"
17273
17274# func_dirname file append nondir_replacement
17275# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17276# otherwise set result to NONDIR_REPLACEMENT.
17277func_dirname ()
17278{
17279 # Extract subdirectory from the argument.
17280 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17281 if test "X$func_dirname_result" = "X${1}"; then
17282 func_dirname_result="${3}"
17283 else
17284 func_dirname_result="$func_dirname_result${2}"
17285 fi
17286}
17287
17288# func_basename file
17289func_basename ()
17290{
17291 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17292}
17293
17294
17295# func_stripname prefix suffix name
17296# strip PREFIX and SUFFIX off of NAME.
17297# PREFIX and SUFFIX must not contain globbing or regex special
17298# characters, hashes, percent signs, but SUFFIX may contain a leading
17299# dot (in which case that matches only a dot).
17300# func_strip_suffix prefix name
17301func_stripname ()
17302{
17303 case ${2} in
17304 .*) func_stripname_result=`$ECHO "X${3}" \
17305 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17306 *) func_stripname_result=`$ECHO "X${3}" \
17307 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17308 esac
17309}
17310
17311# sed scripts:
17312my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17313my_sed_long_arg='1s/^-[^=]*=//'
17314
17315# func_opt_split
17316func_opt_split ()
17317{
17318 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17319 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17320}
17321
17322# func_lo2o object
17323func_lo2o ()
17324{
17325 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17326}
17327
17328# func_xform libobj-or-source
17329func_xform ()
17330{
17331 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17332}
17333
17334# func_arith arithmetic-term...
17335func_arith ()
17336{
17337 func_arith_result=`expr "$@"`
17338}
17339
17340# func_len string
17341# STRING may not start with a hyphen.
17342func_len ()
17343{
17344 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17345}
17346
17347_LT_EOF
17348esac
17349
17350case $lt_shell_append in
17351 yes)
17352 cat << \_LT_EOF >> "$cfgfile"
17353
17354# func_append var value
17355# Append VALUE to the end of shell variable VAR.
17356func_append ()
17357{
17358 eval "$1+=\$2"
17359}
17360_LT_EOF
17361 ;;
17362 *)
17363 cat << \_LT_EOF >> "$cfgfile"
17364
17365# func_append var value
17366# Append VALUE to the end of shell variable VAR.
17367func_append ()
17368{
17369 eval "$1=\$$1\$2"
17370}
17371
17372_LT_EOF
17373 ;;
17374 esac
17375
17376
17377 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17378 || (rm -f "$cfgfile"; exit 1)
17379
17380 mv -f "$cfgfile" "$ofile" ||
17381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17382 chmod +x "$ofile"
17383
17384
17385 cat <<_LT_EOF >> "$ofile"
17386
17387# ### BEGIN LIBTOOL TAG CONFIG: CXX
17388
17389# The linker used to build libraries.
17390LD=$lt_LD_CXX
17391
17392# Commands used to build an old-style archive.
17393old_archive_cmds=$lt_old_archive_cmds_CXX
17394
17395# A language specific compiler.
17396CC=$lt_compiler_CXX
17397
17398# Is the compiler the GNU compiler?
17399with_gcc=$GCC_CXX
17400
17401# Compiler flag to turn off builtin functions.
17402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17403
17404# How to pass a linker flag through the compiler.
17405wl=$lt_lt_prog_compiler_wl_CXX
17406
17407# Additional compiler flags for building library objects.
17408pic_flag=$lt_lt_prog_compiler_pic_CXX
17409
17410# Compiler flag to prevent dynamic linking.
17411link_static_flag=$lt_lt_prog_compiler_static_CXX
17412
17413# Does compiler simultaneously support -c and -o options?
17414compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17415
17416# Whether or not to add -lc for building shared libraries.
17417build_libtool_need_lc=$archive_cmds_need_lc_CXX
17418
17419# Whether or not to disallow shared libs when runtime libs are static.
17420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17421
17422# Compiler flag to allow reflexive dlopens.
17423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17424
17425# Compiler flag to generate shared objects directly from archives.
17426whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17427
17428# Whether the compiler copes with passing no objects directly.
17429compiler_needs_object=$lt_compiler_needs_object_CXX
17430
17431# Create an old-style archive from a shared archive.
17432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17433
17434# Create a temporary old-style archive to link instead of a shared archive.
17435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17436
17437# Commands used to build a shared archive.
17438archive_cmds=$lt_archive_cmds_CXX
17439archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17440
17441# Commands used to build a loadable module if different from building
17442# a shared archive.
17443module_cmds=$lt_module_cmds_CXX
17444module_expsym_cmds=$lt_module_expsym_cmds_CXX
17445
17446# Whether we are building with GNU ld or not.
17447with_gnu_ld=$lt_with_gnu_ld_CXX
17448
17449# Flag that allows shared libraries with undefined symbols to be built.
17450allow_undefined_flag=$lt_allow_undefined_flag_CXX
17451
17452# Flag that enforces no undefined symbols.
17453no_undefined_flag=$lt_no_undefined_flag_CXX
17454
17455# Flag to hardcode \$libdir into a binary during linking.
17456# This must work even if \$libdir does not exist
17457hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17458
17459# If ld is used when linking, flag to hardcode \$libdir into a binary
17460# during linking. This must work even if \$libdir does not exist.
17461hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17462
17463# Whether we need a single "-rpath" flag with a separated argument.
17464hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17465
17466# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17467# DIR into the resulting binary.
17468hardcode_direct=$hardcode_direct_CXX
17469
17470# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17471# DIR into the resulting binary and the resulting library dependency is
17472# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17473# library is relocated.
17474hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17475
17476# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17477# into the resulting binary.
17478hardcode_minus_L=$hardcode_minus_L_CXX
17479
17480# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17481# into the resulting binary.
17482hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17483
17484# Set to "yes" if building a shared library automatically hardcodes DIR
17485# into the library and all subsequent libraries and executables linked
17486# against it.
17487hardcode_automatic=$hardcode_automatic_CXX
17488
17489# Set to yes if linker adds runtime paths of dependent libraries
17490# to runtime path list.
17491inherit_rpath=$inherit_rpath_CXX
17492
17493# Whether libtool must link a program against all its dependency libraries.
17494link_all_deplibs=$link_all_deplibs_CXX
17495
17496# Fix the shell variable \$srcfile for the compiler.
17497fix_srcfile_path=$lt_fix_srcfile_path_CXX
17498
17499# Set to "yes" if exported symbols are required.
17500always_export_symbols=$always_export_symbols_CXX
17501
17502# The commands to list exported symbols.
17503export_symbols_cmds=$lt_export_symbols_cmds_CXX
17504
17505# Symbols that should not be listed in the preloaded symbols.
17506exclude_expsyms=$lt_exclude_expsyms_CXX
17507
17508# Symbols that must always be exported.
17509include_expsyms=$lt_include_expsyms_CXX
17510
17511# Commands necessary for linking programs (against libraries) with templates.
17512prelink_cmds=$lt_prelink_cmds_CXX
17513
17514# Specify filename containing input files.
17515file_list_spec=$lt_file_list_spec_CXX
17516
17517# How to hardcode a shared library path into an executable.
17518hardcode_action=$hardcode_action_CXX
17519
17520# The directories searched by this compiler when creating a shared library.
17521compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17522
17523# Dependencies to place before and after the objects being linked to
17524# create a shared library.
17525predep_objects=$lt_predep_objects_CXX
17526postdep_objects=$lt_postdep_objects_CXX
17527predeps=$lt_predeps_CXX
17528postdeps=$lt_postdeps_CXX
17529
17530# The library search path used internally by the compiler when linking
17531# a shared library.
17532compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17533
17534# ### END LIBTOOL TAG CONFIG: CXX
17535_LT_EOF
17536
17537 ;;
17538
17539 esac
17540done # for ac_tag
17541
17542
17543as_fn_exit 0
17544_ACEOF
17545ac_clean_files=$ac_clean_files_save
17546
17547test $ac_write_fail = 0 ||
17548 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17549
17550
17551# configure is writing to config.log, and then calls config.status.
17552# config.status does its own redirection, appending to config.log.
17553# Unfortunately, on DOS this fails, as config.log is still kept open
17554# by configure, so config.status won't be able to write to it; its
17555# output is simply discarded. So we exec the FD to /dev/null,
17556# effectively closing config.log, so it can be properly (re)opened and
17557# appended to by config.status. When coming back to configure, we
17558# need to make the FD available again.
17559if test "$no_create" != yes; then
17560 ac_cs_success=:
17561 ac_config_status_args=
17562 test "$silent" = yes &&
17563 ac_config_status_args="$ac_config_status_args --quiet"
17564 exec 5>/dev/null
17565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17566 exec 5>>config.log
17567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17568 # would make configure fail if this is the last instruction.
17569 $ac_cs_success || as_fn_exit $?
17570fi
17571if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17573$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17574fi
17575