Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for eCAP Library 1.0.1.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell [email protected] about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='eCAP Library'
700 PACKAGE_TARNAME='libecap'
701 PACKAGE_VERSION='1.0.1'
702 PACKAGE_STRING='eCAP Library 1.0.1'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 ac_unique_file="src/libecap/adapter/service.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 pkgconfigdir
748 std_include
749 CXXCPP
750 am__fastdepCXX_FALSE
751 am__fastdepCXX_TRUE
752 CXXDEPMODE
753 ac_ct_CXX
754 CXXFLAGS
755 CXX
756 AR_R
757 CPP
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 lt_ECHO
764 RANLIB
765 AR
766 OBJDUMP
767 LN_S
768 NM
769 ac_ct_DUMPBIN
770 DUMPBIN
771 LD
772 FGREP
773 EGREP
774 GREP
775 SED
776 am__fastdepCC_FALSE
777 am__fastdepCC_TRUE
778 CCDEPMODE
779 AMDEPBACKSLASH
780 AMDEP_FALSE
781 AMDEP_TRUE
782 am__quote
783 am__include
784 DEPDIR
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 LIBTOOL
801 MAINT
802 MAINTAINER_MODE_FALSE
803 MAINTAINER_MODE_TRUE
804 am__untar
805 am__tar
806 AMTAR
807 am__leading_dot
808 SET_MAKE
809 AWK
810 mkdir_p
811 MKDIR_P
812 INSTALL_STRIP_PROGRAM
813 STRIP
814 install_sh
815 MAKEINFO
816 AUTOHEADER
817 AUTOMAKE
818 AUTOCONF
819 ACLOCAL
820 VERSION
821 PACKAGE
822 CYGPATH_W
823 am__isrc
824 INSTALL_DATA
825 INSTALL_SCRIPT
826 INSTALL_PROGRAM
827 LIBECAP_LIBRARY_VERSION
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files=''
867 ac_user_opts='
868 enable_option_checking
869 enable_maintainer_mode
870 enable_shared
871 enable_static
872 with_pic
873 enable_fast_install
874 enable_dependency_tracking
875 with_gnu_ld
876 enable_libtool_lock
877 enable_std_include
878 with_pkgconfigdir
879 '
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 CXX
890 CXXFLAGS
891 CCC
892 CXXCPP'
893
894
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 ac_unrecognized_opts=
899 ac_unrecognized_sep=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
950 ac_prev=
951 continue
952 fi
953
954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
989
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1022
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) as_fn_error "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information."
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 ;;
1298
1299 esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1320 do
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352 fi
1353
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357 test "$silent" = yes && exec 6>/dev/null
1358
1359
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 as_fn_error "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 as_fn_error "pwd does not report name of working directory"
1366
1367
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\).*/{
1391 s//\1/
1392 q
1393 }
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1398 fi
1399 else
1400 ac_srcdir_defaulted=no
1401 fi
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1405 fi
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1413 fi
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures eCAP Library 1.0.1 to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/libecap]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1488
1489 cat <<\_ACEOF
1490
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of eCAP Library 1.0.1:";;
1505 esac
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-maintainer-mode enable make rules and dependencies not useful
1513 (and sometimes confusing) to the casual installer
1514 --enable-shared[=PKGS] build shared libraries [default=yes]
1515 --enable-static[=PKGS] build static libraries [default=yes]
1516 --enable-fast-install[=PKGS]
1517 optimize for fast installation [default=yes]
1518 --disable-dependency-tracking speeds up one-time build
1519 --enable-dependency-tracking do not reject slow dependency extractors
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --enable-std-include=DIR Where to find standard C++ headers
1522
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-pic try to use only PIC/non-PIC objects [default=use
1527 both]
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1529 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1530 libdir/pkgconfig)
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CPP C preprocessor
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CXXCPP C++ preprocessor
1544
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1547
1548 Report bugs to the package provider.
1549 _ACEOF
1550 ac_status=$?
1551 fi
1552
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
1559 ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 eCAP Library configure 1.0.1
1612 generated by GNU Autoconf 2.65
1613
1614 Copyright (C) 2009 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_compile
1662
1663 # ac_fn_c_try_link LINENO
1664 # -----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_link ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext conftest$ac_exeext
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest$ac_exeext && {
1689 test "$cross_compiling" = yes ||
1690 $as_test_x conftest$ac_exeext
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701 # interfere with the next link command; also delete a directory that is
1702 # left behind by Apple's compiler. We do this before executing the actions.
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_link
1708
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 eval "$3=yes"
1728 else
1729 eval "$3=no"
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737
1738 } # ac_fn_c_check_header_compile
1739
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_cpp ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } >/dev/null && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_cpp
1776
1777 # ac_fn_c_try_run LINENO
1778 # ----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1780 # that executables *can* be run.
1781 ac_fn_c_try_run ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1795 { { case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_try") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; }; }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: program exited with status $ac_status" >&5
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=$ac_status
1812 fi
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_run
1818
1819 # ac_fn_c_check_func LINENO FUNC VAR
1820 # ----------------------------------
1821 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1822 ac_fn_c_check_func ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1835
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1840
1841 #ifdef __STDC__
1842 # include <limits.h>
1843 #else
1844 # include <assert.h>
1845 #endif
1846
1847 #undef $2
1848
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 ();
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1862
1863 int
1864 main ()
1865 {
1866 return $2 ();
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883
1884 } # ac_fn_c_check_func
1885
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext
1893 if { { ac_try="$ac_compile"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_compile") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest.$ac_objext; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918 fi
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 as_fn_set_status $ac_retval
1921
1922 } # ac_fn_cxx_try_compile
1923
1924 # ac_fn_cxx_try_cpp LINENO
1925 # ------------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_cxx_try_cpp ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } >/dev/null && {
1946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955 fi
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 as_fn_set_status $ac_retval
1958
1959 } # ac_fn_cxx_try_cpp
1960
1961 # ac_fn_cxx_try_link LINENO
1962 # -------------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1964 ac_fn_cxx_try_link ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_cxx_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 $as_test_x conftest$ac_exeext
1989 }; then :
1990 ac_retval=0
1991 else
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=1
1996 fi
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003 as_fn_set_status $ac_retval
2004
2005 } # ac_fn_cxx_try_link
2006
2007 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2008 # ---------------------------------------------
2009 # Tests whether TYPE exists after having included INCLUDES, setting cache
2010 # variable VAR accordingly.
2011 ac_fn_cxx_check_type ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=no"
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 if (sizeof ($2))
2027 return 0;
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_cxx_try_compile "$LINENO"; then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 if (sizeof (($2)))
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_cxx_try_compile "$LINENO"; then :
2046
2047 else
2048 eval "$3=yes"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058
2059 } # ac_fn_cxx_check_type
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2063
2064 It was created by eCAP Library $as_me 1.0.1, which was
2065 generated by GNU Autoconf 2.65. Invocation command line was
2066
2067 $ $0 $@
2068
2069 _ACEOF
2070 exec 5>>config.log
2071 {
2072 cat <<_ASUNAME
2073 ## --------- ##
2074 ## Platform. ##
2075 ## --------- ##
2076
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085
2086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093
2094 _ASUNAME
2095
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 $as_echo "PATH: $as_dir"
2102 done
2103 IFS=$as_save_IFS
2104
2105 } >&5
2106
2107 cat >&5 <<_ACEOF
2108
2109
2110 ## ----------- ##
2111 ## Core tests. ##
2112 ## ----------- ##
2113
2114 _ACEOF
2115
2116
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_configure_args=
2123 ac_configure_args0=
2124 ac_configure_args1=
2125 ac_must_keep_next=false
2126 for ac_pass in 1 2
2127 do
2128 for ac_arg
2129 do
2130 case $ac_arg in
2131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133 | -silent | --silent | --silen | --sile | --sil)
2134 continue ;;
2135 *\'*)
2136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 esac
2138 case $ac_pass in
2139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 2)
2141 as_fn_append ac_configure_args1 " '$ac_arg'"
2142 if test $ac_must_keep_next = true; then
2143 ac_must_keep_next=false # Got value, back to normal.
2144 else
2145 case $ac_arg in
2146 *=* | --config-cache | -C | -disable-* | --disable-* \
2147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149 | -with-* | --with-* | -without-* | --without-* | --x)
2150 case "$ac_configure_args0 " in
2151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152 esac
2153 ;;
2154 -* ) ac_must_keep_next=true ;;
2155 esac
2156 fi
2157 as_fn_append ac_configure_args " '$ac_arg'"
2158 ;;
2159 esac
2160 done
2161 done
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2164
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log. We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171 # Save into config.log some information that might help in debugging.
2172 {
2173 echo
2174
2175 cat <<\_ASBOX
2176 ## ---------------- ##
2177 ## Cache variables. ##
2178 ## ---------------- ##
2179 _ASBOX
2180 echo
2181 # The following way of writing the cache mishandles newlines in values,
2182 (
2183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in #(
2186 *${as_nl}*)
2187 case $ac_var in #(
2188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2190 esac
2191 case $ac_var in #(
2192 _ | IFS | as_nl) ;; #(
2193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194 *) { eval $ac_var=; unset $ac_var;} ;;
2195 esac ;;
2196 esac
2197 done
2198 (set) 2>&1 |
2199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200 *${as_nl}ac_space=\ *)
2201 sed -n \
2202 "s/'\''/'\''\\\\'\'''\''/g;
2203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204 ;; #(
2205 *)
2206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2207 ;;
2208 esac |
2209 sort
2210 )
2211 echo
2212
2213 cat <<\_ASBOX
2214 ## ----------------- ##
2215 ## Output variables. ##
2216 ## ----------------- ##
2217 _ASBOX
2218 echo
2219 for ac_var in $ac_subst_vars
2220 do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224 esac
2225 $as_echo "$ac_var='\''$ac_val'\''"
2226 done | sort
2227 echo
2228
2229 if test -n "$ac_subst_files"; then
2230 cat <<\_ASBOX
2231 ## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##
2234 _ASBOX
2235 echo
2236 for ac_var in $ac_subst_files
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 fi
2246
2247 if test -s confdefs.h; then
2248 cat <<\_ASBOX
2249 ## ----------- ##
2250 ## confdefs.h. ##
2251 ## ----------- ##
2252 _ASBOX
2253 echo
2254 cat confdefs.h
2255 echo
2256 fi
2257 test "$ac_signal" != 0 &&
2258 $as_echo "$as_me: caught signal $ac_signal"
2259 $as_echo "$as_me: exit $exit_status"
2260 } >&5
2261 rm -f core *.core core.conftest.* &&
2262 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2263 exit $exit_status
2264 ' 0
2265 for ac_signal in 1 2 13 15; do
2266 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 done
2268 ac_signal=0
2269
2270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2271 rm -f -r conftest* confdefs.h
2272
2273 $as_echo "/* confdefs.h */" > confdefs.h
2274
2275 # Predefined preprocessor variables.
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_STRING "$PACKAGE_STRING"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_URL "$PACKAGE_URL"
2299 _ACEOF
2300
2301
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer an explicitly selected file to automatically selected ones.
2304 ac_site_file1=NONE
2305 ac_site_file2=NONE
2306 if test -n "$CONFIG_SITE"; then
2307 ac_site_file1=$CONFIG_SITE
2308 elif test "x$prefix" != xNONE; then
2309 ac_site_file1=$prefix/share/config.site
2310 ac_site_file2=$prefix/etc/config.site
2311 else
2312 ac_site_file1=$ac_default_prefix/share/config.site
2313 ac_site_file2=$ac_default_prefix/etc/config.site
2314 fi
2315 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2316 do
2317 test "x$ac_site_file" = xNONE && continue
2318 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2320 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2321 sed 's/^/| /' "$ac_site_file" >&5
2322 . "$ac_site_file"
2323 fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332 case $cache_file in
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2335 esac
2336 fi
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340 >$cache_file
2341 fi
2342
2343 # Check that the precious variables saved in the cache have kept the same
2344 # value.
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2352 set,)
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2356 ,set)
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2360 ,);;
2361 *)
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x $ac_old_val`
2365 ac_new_val_w=`echo x $ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369 ac_cache_corrupted=:
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2379 fi;;
2380 esac
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2383 case $ac_new_val in
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2386 esac
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390 esac
2391 fi
2392 done
2393 if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2399 fi
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2403
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409
2410
2411 LIBECAP_LIBRARY_VERSION=3:0:0
2412
2413 ac_aux_dir=
2414 for ac_dir in cfgaux "$srcdir"/cfgaux; do
2415 for ac_t in install-sh install.sh shtool; do
2416 if test -f "$ac_dir/$ac_t"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/$ac_t -c"
2419 break 2
2420 fi
2421 done
2422 done
2423 if test -z "$ac_aux_dir"; then
2424 as_fn_error "cannot find install-sh, install.sh, or shtool in cfgaux \"$srcdir\"/cfgaux" "$LINENO" 5
2425 fi
2426
2427 # These three variables are undocumented and unsupported,
2428 # and are intended to be withdrawn in a future Autoconf release.
2429 # They can cause serious problems if a builder's source tree is in a directory
2430 # whose full name contains unusual characters.
2431 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2432 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2433 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434
2435
2436
2437
2438 ac_config_headers="$ac_config_headers src/libecap/common/ac-autoconf.h"
2439
2440
2441 ac_config_commands="$ac_config_commands src/libecap/common/autoconf.h"
2442
2443
2444 am__api_version='1.11'
2445
2446 # Find a good install program. We prefer a C program (faster),
2447 # so one script is as good as another. But avoid the broken or
2448 # incompatible versions:
2449 # SysV /etc/install, /usr/sbin/install
2450 # SunOS /usr/etc/install
2451 # IRIX /sbin/install
2452 # AIX /bin/install
2453 # AmigaOS /C/install, which installs bootblocks on floppy discs
2454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457 # OS/2's system install, which has a completely different semantic
2458 # ./install, which can be erroneously created by make from ./install.sh.
2459 # Reject install programs that cannot install multiple files.
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2461 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2462 if test -z "$INSTALL"; then
2463 if test "${ac_cv_path_install+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 # Account for people who put trailing slashes in PATH elements.
2472 case $as_dir/ in #((
2473 ./ | .// | /[cC]/* | \
2474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2476 /usr/ucb/* ) ;;
2477 *)
2478 # OSF1 and SCO ODT 3.0 have their own names for install.
2479 # Don't use installbsd from OSF since it installs stuff as root
2480 # by default.
2481 for ac_prog in ginstall scoinst install; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2484 if test $ac_prog = install &&
2485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # AIX install. It has an incompatible calling convention.
2487 :
2488 elif test $ac_prog = install &&
2489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490 # program-specific install script used by HP pwplus--don't use.
2491 :
2492 else
2493 rm -rf conftest.one conftest.two conftest.dir
2494 echo one > conftest.one
2495 echo two > conftest.two
2496 mkdir conftest.dir
2497 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2498 test -s conftest.one && test -s conftest.two &&
2499 test -s conftest.dir/conftest.one &&
2500 test -s conftest.dir/conftest.two
2501 then
2502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2503 break 3
2504 fi
2505 fi
2506 fi
2507 done
2508 done
2509 ;;
2510 esac
2511
2512 done
2513 IFS=$as_save_IFS
2514
2515 rm -rf conftest.one conftest.two conftest.dir
2516
2517 fi
2518 if test "${ac_cv_path_install+set}" = set; then
2519 INSTALL=$ac_cv_path_install
2520 else
2521 # As a last resort, use the slow shell script. Don't cache a
2522 # value for INSTALL within a source directory, because that will
2523 # break other packages using the cache if that directory is
2524 # removed, or if the value is a relative name.
2525 INSTALL=$ac_install_sh
2526 fi
2527 fi
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2529 $as_echo "$INSTALL" >&6; }
2530
2531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532 # It thinks the first close brace ends the variable substitution.
2533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2534
2535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2536
2537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2540 $as_echo_n "checking whether build environment is sane... " >&6; }
2541 # Just in case
2542 sleep 1
2543 echo timestamp > conftest.file
2544 # Reject unsafe characters in $srcdir or the absolute working directory
2545 # name. Accept space and tab only in the latter.
2546 am_lf='
2547 '
2548 case `pwd` in
2549 *[\\\"\#\$\&\'\`$am_lf]*)
2550 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2551 esac
2552 case $srcdir in
2553 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2554 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2555 esac
2556
2557 # Do `set' in a subshell so we don't clobber the current shell's
2558 # arguments. Must try -L first in case configure is actually a
2559 # symlink; some systems play weird games with the mod time of symlinks
2560 # (eg FreeBSD returns the mod time of the symlink's containing
2561 # directory).
2562 if (
2563 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2564 if test "$*" = "X"; then
2565 # -L didn't work.
2566 set X `ls -t "$srcdir/configure" conftest.file`
2567 fi
2568 rm -f conftest.file
2569 if test "$*" != "X $srcdir/configure conftest.file" \
2570 && test "$*" != "X conftest.file $srcdir/configure"; then
2571
2572 # If neither matched, then we have a broken ls. This can happen
2573 # if, for instance, CONFIG_SHELL is bash and it inherits a
2574 # broken ls alias from the environment. This has actually
2575 # happened. Such a system could not be considered "sane".
2576 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2577 alias in your environment" "$LINENO" 5
2578 fi
2579
2580 test "$2" = conftest.file
2581 )
2582 then
2583 # Ok.
2584 :
2585 else
2586 as_fn_error "newly created file is older than distributed files!
2587 Check your system clock" "$LINENO" 5
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2591 test "$program_prefix" != NONE &&
2592 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2593 # Use a double $ so make ignores it.
2594 test "$program_suffix" != NONE &&
2595 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2596 # Double any \ or $.
2597 # By default was `s,x,x', remove it if useless.
2598 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2599 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2600
2601 # expand $ac_aux_dir to an absolute path
2602 am_aux_dir=`cd $ac_aux_dir && pwd`
2603
2604 if test x"${MISSING+set}" != xset; then
2605 case $am_aux_dir in
2606 *\ * | *\ *)
2607 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2608 *)
2609 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2610 esac
2611 fi
2612 # Use eval to expand $SHELL
2613 if eval "$MISSING --run true"; then
2614 am_missing_run="$MISSING --run "
2615 else
2616 am_missing_run=
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2618 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2619 fi
2620
2621 if test x"${install_sh}" != xset; then
2622 case $am_aux_dir in
2623 *\ * | *\ *)
2624 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2625 *)
2626 install_sh="\${SHELL} $am_aux_dir/install-sh"
2627 esac
2628 fi
2629
2630 # Installed binaries are usually stripped using `strip' when the user
2631 # run `make install-strip'. However `strip' might not be the right
2632 # tool to use in cross-compilation environments, therefore Automake
2633 # will honor the `STRIP' environment variable to overrule this program.
2634 if test "$cross_compiling" != no; then
2635 if test -n "$ac_tool_prefix"; then
2636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2637 set dummy ${ac_tool_prefix}strip; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_STRIP+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$STRIP"; then
2644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 STRIP=$ac_cv_prog_STRIP
2664 if test -n "$STRIP"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2666 $as_echo "$STRIP" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673 fi
2674 if test -z "$ac_cv_prog_STRIP"; then
2675 ac_ct_STRIP=$STRIP
2676 # Extract the first word of "strip", so it can be a program name with args.
2677 set dummy strip; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test -n "$ac_ct_STRIP"; then
2684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_STRIP="strip"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2704 if test -n "$ac_ct_STRIP"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2706 $as_echo "$ac_ct_STRIP" >&6; }
2707 else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712 if test "x$ac_ct_STRIP" = x; then
2713 STRIP=":"
2714 else
2715 case $cross_compiling:$ac_tool_warned in
2716 yes:)
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719 ac_tool_warned=yes ;;
2720 esac
2721 STRIP=$ac_ct_STRIP
2722 fi
2723 else
2724 STRIP="$ac_cv_prog_STRIP"
2725 fi
2726
2727 fi
2728 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2729
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2731 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2732 if test -z "$MKDIR_P"; then
2733 if test "${ac_cv_path_mkdir+set}" = set; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_prog in mkdir gmkdir; do
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2744 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2745 'mkdir (GNU coreutils) '* | \
2746 'mkdir (coreutils) '* | \
2747 'mkdir (fileutils) '4.1*)
2748 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2749 break 3;;
2750 esac
2751 done
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757
2758 test -d ./--version && rmdir ./--version
2759 if test "${ac_cv_path_mkdir+set}" = set; then
2760 MKDIR_P="$ac_cv_path_mkdir -p"
2761 else
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for MKDIR_P within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 MKDIR_P="$ac_install_sh -d"
2767 fi
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2770 $as_echo "$MKDIR_P" >&6; }
2771
2772 mkdir_p="$MKDIR_P"
2773 case $mkdir_p in
2774 [\\/$]* | ?:[\\/]*) ;;
2775 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2776 esac
2777
2778 for ac_prog in gawk mawk nawk awk
2779 do
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_AWK+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$AWK"; then
2788 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_AWK="$ac_prog"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 AWK=$ac_cv_prog_AWK
2808 if test -n "$AWK"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2810 $as_echo "$AWK" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817 test -n "$AWK" && break
2818 done
2819
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2821 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2822 set x ${MAKE-make}
2823 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2824 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 cat >conftest.make <<\_ACEOF
2828 SHELL = /bin/sh
2829 all:
2830 @echo '@@@%%%=$(MAKE)=@@@%%%'
2831 _ACEOF
2832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2833 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2834 *@@@%%%=?*=@@@%%%*)
2835 eval ac_cv_prog_make_${ac_make}_set=yes;;
2836 *)
2837 eval ac_cv_prog_make_${ac_make}_set=no;;
2838 esac
2839 rm -f conftest.make
2840 fi
2841 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843 $as_echo "yes" >&6; }
2844 SET_MAKE=
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 SET_MAKE="MAKE=${MAKE-make}"
2849 fi
2850
2851 rm -rf .tst 2>/dev/null
2852 mkdir .tst 2>/dev/null
2853 if test -d .tst; then
2854 am__leading_dot=.
2855 else
2856 am__leading_dot=_
2857 fi
2858 rmdir .tst 2>/dev/null
2859
2860 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2861 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2862 # is not polluted with repeated "-I."
2863 am__isrc=' -I$(srcdir)'
2864 # test to see if srcdir already configured
2865 if test -f $srcdir/config.status; then
2866 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2867 fi
2868 fi
2869
2870 # test whether we have cygpath
2871 if test -z "$CYGPATH_W"; then
2872 if (cygpath --version) >/dev/null 2>/dev/null; then
2873 CYGPATH_W='cygpath -w'
2874 else
2875 CYGPATH_W=echo
2876 fi
2877 fi
2878
2879
2880 # Define the identity of the package.
2881 PACKAGE='libecap'
2882 VERSION='1.0.1'
2883
2884
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE "$PACKAGE"
2887 _ACEOF
2888
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define VERSION "$VERSION"
2892 _ACEOF
2893
2894 # Some tools Automake needs.
2895
2896 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2897
2898
2899 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2900
2901
2902 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2903
2904
2905 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2906
2907
2908 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2909
2910 # We need awk for the "check" target. The system "awk" is bad on
2911 # some platforms.
2912 # Always define AMTAR for backward compatibility.
2913
2914 AMTAR=${AMTAR-"${am_missing_run}tar"}
2915
2916 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2917
2918
2919
2920
2921
2922
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2924 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2925 # Check whether --enable-maintainer-mode was given.
2926 if test "${enable_maintainer_mode+set}" = set; then :
2927 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2928 else
2929 USE_MAINTAINER_MODE=no
2930 fi
2931
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2933 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2934 if test $USE_MAINTAINER_MODE = yes; then
2935 MAINTAINER_MODE_TRUE=
2936 MAINTAINER_MODE_FALSE='#'
2937 else
2938 MAINTAINER_MODE_TRUE='#'
2939 MAINTAINER_MODE_FALSE=
2940 fi
2941
2942 MAINT=$MAINTAINER_MODE_TRUE
2943
2944
2945
2946 case `pwd` in
2947 *\ * | *\ *)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2949 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2950 esac
2951
2952
2953
2954 macro_version='2.2.6b'
2955 macro_revision='1.3017'
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969 ltmain="$ac_aux_dir/ltmain.sh"
2970
2971 # Make sure we can run config.sub.
2972 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2973 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2976 $as_echo_n "checking build system type... " >&6; }
2977 if test "${ac_cv_build+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 ac_build_alias=$build_alias
2981 test "x$ac_build_alias" = x &&
2982 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2983 test "x$ac_build_alias" = x &&
2984 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2985 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2986 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2987
2988 fi
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2990 $as_echo "$ac_cv_build" >&6; }
2991 case $ac_cv_build in
2992 *-*-*) ;;
2993 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2994 esac
2995 build=$ac_cv_build
2996 ac_save_IFS=$IFS; IFS='-'
2997 set x $ac_cv_build
2998 shift
2999 build_cpu=$1
3000 build_vendor=$2
3001 shift; shift
3002 # Remember, the first character of IFS is used to create $*,
3003 # except with old shells:
3004 build_os=$*
3005 IFS=$ac_save_IFS
3006 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3007
3008
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3010 $as_echo_n "checking host system type... " >&6; }
3011 if test "${ac_cv_host+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test "x$host_alias" = x; then
3015 ac_cv_host=$ac_cv_build
3016 else
3017 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3018 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3019 fi
3020
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3023 $as_echo "$ac_cv_host" >&6; }
3024 case $ac_cv_host in
3025 *-*-*) ;;
3026 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3027 esac
3028 host=$ac_cv_host
3029 ac_save_IFS=$IFS; IFS='-'
3030 set x $ac_cv_host
3031 shift
3032 host_cpu=$1
3033 host_vendor=$2
3034 shift; shift
3035 # Remember, the first character of IFS is used to create $*,
3036 # except with old shells:
3037 host_os=$*
3038 IFS=$ac_save_IFS
3039 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3040
3041
3042 DEPDIR="${am__leading_dot}deps"
3043
3044 ac_config_commands="$ac_config_commands depfiles"
3045
3046
3047 am_make=${MAKE-make}
3048 cat > confinc << 'END'
3049 am__doit:
3050 @echo this is the am__doit target
3051 .PHONY: am__doit
3052 END
3053 # If we don't find an include directive, just comment out the code.
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3055 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3056 am__include="#"
3057 am__quote=
3058 _am_result=none
3059 # First try GNU make style include.
3060 echo "include confinc" > confmf
3061 # Ignore all kinds of additional output from `make'.
3062 case `$am_make -s -f confmf 2> /dev/null` in #(
3063 *the\ am__doit\ target*)
3064 am__include=include
3065 am__quote=
3066 _am_result=GNU
3067 ;;
3068 esac
3069 # Now try BSD make style include.
3070 if test "$am__include" = "#"; then
3071 echo '.include "confinc"' > confmf
3072 case `$am_make -s -f confmf 2> /dev/null` in #(
3073 *the\ am__doit\ target*)
3074 am__include=.include
3075 am__quote="\""
3076 _am_result=BSD
3077 ;;
3078 esac
3079 fi
3080
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3083 $as_echo "$_am_result" >&6; }
3084 rm -f confinc confmf
3085
3086 # Check whether --enable-dependency-tracking was given.
3087 if test "${enable_dependency_tracking+set}" = set; then :
3088 enableval=$enable_dependency_tracking;
3089 fi
3090
3091 if test "x$enable_dependency_tracking" != xno; then
3092 am_depcomp="$ac_aux_dir/depcomp"
3093 AMDEPBACKSLASH='\'
3094 fi
3095 if test "x$enable_dependency_tracking" != xno; then
3096 AMDEP_TRUE=
3097 AMDEP_FALSE='#'
3098 else
3099 AMDEP_TRUE='#'
3100 AMDEP_FALSE=
3101 fi
3102
3103
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if test "${ac_cv_prog_CC+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$ac_cv_prog_CC"; then
3149 ac_ct_CC=$CC
3150 # Extract the first word of "gcc", so it can be a program name with args.
3151 set dummy gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_ac_ct_CC="gcc"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186 if test "x$ac_ct_CC" = x; then
3187 CC=""
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195 CC=$ac_ct_CC
3196 fi
3197 else
3198 CC="$ac_cv_prog_CC"
3199 fi
3200
3201 if test -z "$CC"; then
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}cc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_CC="${ac_tool_prefix}cc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240 fi
3241 fi
3242 if test -z "$CC"; then
3243 # Extract the first word of "cc", so it can be a program name with args.
3244 set dummy cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 ac_prog_rejected=no
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3262 ac_prog_rejected=yes
3263 continue
3264 fi
3265 ac_cv_prog_CC="cc"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 break 2
3268 fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 if test $ac_prog_rejected = yes; then
3274 # We found a bogon in the path, so make sure we never use it.
3275 set dummy $ac_cv_prog_CC
3276 shift
3277 if test $# != 0; then
3278 # We chose a different compiler from the bogus one.
3279 # However, it has the same basename, so the bogon will be chosen
3280 # first if we set CC to just the basename; use the full file name.
3281 shift
3282 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3283 fi
3284 fi
3285 fi
3286 fi
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$CC"; then
3299 if test -n "$ac_tool_prefix"; then
3300 for ac_prog in cl.exe
3301 do
3302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if test "${ac_cv_prog_CC+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339 test -n "$CC" && break
3340 done
3341 fi
3342 if test -z "$CC"; then
3343 ac_ct_CC=$CC
3344 for ac_prog in cl.exe
3345 do
3346 # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test -n "$ac_ct_CC"; then
3354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_ac_ct_CC="$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3374 if test -n "$ac_ct_CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3376 $as_echo "$ac_ct_CC" >&6; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382
3383 test -n "$ac_ct_CC" && break
3384 done
3385
3386 if test "x$ac_ct_CC" = x; then
3387 CC=""
3388 else
3389 case $cross_compiling:$ac_tool_warned in
3390 yes:)
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3393 ac_tool_warned=yes ;;
3394 esac
3395 CC=$ac_ct_CC
3396 fi
3397 fi
3398
3399 fi
3400
3401
3402 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error "no acceptable C compiler found in \$PATH
3405 See \`config.log' for more details." "$LINENO" 5; }
3406
3407 # Provide some information about the compiler.
3408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3409 set X $ac_compile
3410 ac_compiler=$2
3411 for ac_option in --version -v -V -qversion; do
3412 { { ac_try="$ac_compiler $ac_option >&5"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3420 ac_status=$?
3421 if test -s conftest.err; then
3422 sed '10a\
3423 ... rest of stderr output deleted ...
3424 10q' conftest.err >conftest.er1
3425 cat conftest.er1 >&5
3426 fi
3427 rm -f conftest.er1 conftest.err
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }
3430 done
3431
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434
3435 int
3436 main ()
3437 {
3438
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 ac_clean_files_save=$ac_clean_files
3444 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3445 # Try to create an executable without -o first, disregard a.out.
3446 # It will help us diagnose broken compilers, and finding out an intuition
3447 # of exeext.
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3449 $as_echo_n "checking whether the C compiler works... " >&6; }
3450 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3451
3452 # The possible output files:
3453 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3454
3455 ac_rmfiles=
3456 for ac_file in $ac_files
3457 do
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461 esac
3462 done
3463 rm -f $ac_rmfiles
3464
3465 if { { ac_try="$ac_link_default"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_link_default") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3479 # so that the user can short-circuit this test for compilers unknown to
3480 # Autoconf.
3481 for ac_file in $ac_files ''
3482 do
3483 test -f "$ac_file" || continue
3484 case $ac_file in
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3486 ;;
3487 [ab].out )
3488 # We found the default executable, but exeext='' is most
3489 # certainly right.
3490 break;;
3491 *.* )
3492 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3493 then :; else
3494 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 fi
3496 # We set ac_cv_exeext here because the later test for it is not
3497 # safe: cross compilers may not add the suffix if given an `-o'
3498 # argument, so we may need to know it at that point already.
3499 # Even if this section looks crufty: it has the advantage of
3500 # actually working.
3501 break;;
3502 * )
3503 break;;
3504 esac
3505 done
3506 test "$ac_cv_exeext" = no && ac_cv_exeext=
3507
3508 else
3509 ac_file=''
3510 fi
3511 if test -z "$ac_file"; then :
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 { as_fn_set_status 77
3520 as_fn_error "C compiler cannot create executables
3521 See \`config.log' for more details." "$LINENO" 5; }; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3524 $as_echo "yes" >&6; }
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3527 $as_echo_n "checking for C compiler default output file name... " >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3529 $as_echo "$ac_file" >&6; }
3530 ac_exeext=$ac_cv_exeext
3531
3532 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3533 ac_clean_files=$ac_clean_files_save
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3535 $as_echo_n "checking for suffix of executables... " >&6; }
3536 if { { ac_try="$ac_link"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link") 2>&5
3544 ac_status=$?
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3548 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3549 # work properly (i.e., refer to `conftest.exe'), while it won't with
3550 # `rm'.
3551 for ac_file in conftest.exe conftest conftest.*; do
3552 test -f "$ac_file" || continue
3553 case $ac_file in
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 break;;
3557 * ) break;;
3558 esac
3559 done
3560 else
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error "cannot compute suffix of executables: cannot compile and link
3564 See \`config.log' for more details." "$LINENO" 5; }
3565 fi
3566 rm -f conftest conftest$ac_cv_exeext
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3568 $as_echo "$ac_cv_exeext" >&6; }
3569
3570 rm -f conftest.$ac_ext
3571 EXEEXT=$ac_cv_exeext
3572 ac_exeext=$EXEEXT
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 #include <stdio.h>
3576 int
3577 main ()
3578 {
3579 FILE *f = fopen ("conftest.out", "w");
3580 return ferror (f) || fclose (f) != 0;
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 ac_clean_files="$ac_clean_files conftest.out"
3587 # Check that the compiler produces executables we can run. If not, either
3588 # the compiler is broken, or we cross compile.
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3590 $as_echo_n "checking whether we are cross compiling... " >&6; }
3591 if test "$cross_compiling" != yes; then
3592 { { ac_try="$ac_link"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }
3603 if { ac_try='./conftest$ac_cv_exeext'
3604 { { case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_try") 2>&5
3611 ac_status=$?
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }; }; then
3614 cross_compiling=no
3615 else
3616 if test "$cross_compiling" = maybe; then
3617 cross_compiling=yes
3618 else
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "cannot run C compiled programs.
3622 If you meant to cross compile, use \`--host'.
3623 See \`config.log' for more details." "$LINENO" 5; }
3624 fi
3625 fi
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3628 $as_echo "$cross_compiling" >&6; }
3629
3630 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3631 ac_clean_files=$ac_clean_files_save
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3633 $as_echo_n "checking for suffix of object files... " >&6; }
3634 if test "${ac_cv_objext+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639
3640 int
3641 main ()
3642 {
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.o conftest.obj
3649 if { { ac_try="$ac_compile"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_compile") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; then :
3660 for ac_file in conftest.o conftest.obj conftest.*; do
3661 test -f "$ac_file" || continue;
3662 case $ac_file in
3663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3664 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3665 break;;
3666 esac
3667 done
3668 else
3669 $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error "cannot compute suffix of object files: cannot compile
3675 See \`config.log' for more details." "$LINENO" 5; }
3676 fi
3677 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3680 $as_echo "$ac_cv_objext" >&6; }
3681 OBJEXT=$ac_cv_objext
3682 ac_objext=$OBJEXT
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3684 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3685 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 int
3692 main ()
3693 {
3694 #ifndef __GNUC__
3695 choke me
3696 #endif
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_compiler_gnu=yes
3704 else
3705 ac_compiler_gnu=no
3706 fi
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3709
3710 fi
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3712 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3713 if test $ac_compiler_gnu = yes; then
3714 GCC=yes
3715 else
3716 GCC=
3717 fi
3718 ac_test_CFLAGS=${CFLAGS+set}
3719 ac_save_CFLAGS=$CFLAGS
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3721 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3722 if test "${ac_cv_prog_cc_g+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 ac_save_c_werror_flag=$ac_c_werror_flag
3726 ac_c_werror_flag=yes
3727 ac_cv_prog_cc_g=no
3728 CFLAGS="-g"
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_g=yes
3742 else
3743 CFLAGS=""
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746
3747 int
3748 main ()
3749 {
3750
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756
3757 else
3758 ac_c_werror_flag=$ac_save_c_werror_flag
3759 CFLAGS="-g"
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762
3763 int
3764 main ()
3765 {
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_g=yes
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_c_werror_flag=$ac_save_c_werror_flag
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3782 $as_echo "$ac_cv_prog_cc_g" >&6; }
3783 if test "$ac_test_CFLAGS" = set; then
3784 CFLAGS=$ac_save_CFLAGS
3785 elif test $ac_cv_prog_cc_g = yes; then
3786 if test "$GCC" = yes; then
3787 CFLAGS="-g -O2"
3788 else
3789 CFLAGS="-g"
3790 fi
3791 else
3792 if test "$GCC" = yes; then
3793 CFLAGS="-O2"
3794 else
3795 CFLAGS=
3796 fi
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3799 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3800 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 ac_cv_prog_cc_c89=no
3804 ac_save_CC=$CC
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807 #include <stdarg.h>
3808 #include <stdio.h>
3809 #include <sys/types.h>
3810 #include <sys/stat.h>
3811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3812 struct buf { int x; };
3813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814 static char *e (p, i)
3815 char **p;
3816 int i;
3817 {
3818 return p[i];
3819 }
3820 static char *f (char * (*g) (char **, int), char **p, ...)
3821 {
3822 char *s;
3823 va_list v;
3824 va_start (v,p);
3825 s = g (p, va_arg (v,int));
3826 va_end (v);
3827 return s;
3828 }
3829
3830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3831 function prototypes and stuff, but not '\xHH' hex character constants.
3832 These don't provoke an error unfortunately, instead are silently treated
3833 as 'x'. The following induces an error, until -std is added to get
3834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3835 array size at least. It's necessary to write '\x00'==0 to get something
3836 that's true only with -std. */
3837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838
3839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840 inside strings and character constants. */
3841 #define FOO(x) 'x'
3842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843
3844 int test (int i, double x);
3845 struct s1 {int (*f) (int a);};
3846 struct s2 {int (*f) (double a);};
3847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848 int argc;
3849 char **argv;
3850 int
3851 main ()
3852 {
3853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860 do
3861 CC="$ac_save_CC $ac_arg"
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_c89=$ac_arg
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext
3866 test "x$ac_cv_prog_cc_c89" != "xno" && break
3867 done
3868 rm -f conftest.$ac_ext
3869 CC=$ac_save_CC
3870
3871 fi
3872 # AC_CACHE_VAL
3873 case "x$ac_cv_prog_cc_c89" in
3874 x)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876 $as_echo "none needed" >&6; } ;;
3877 xno)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879 $as_echo "unsupported" >&6; } ;;
3880 *)
3881 CC="$CC $ac_cv_prog_cc_c89"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884 esac
3885 if test "x$ac_cv_prog_cc_c89" != xno; then :
3886
3887 fi
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895 depcc="$CC" am_compiler_list=
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3898 $as_echo_n "checking dependency style of $depcc... " >&6; }
3899 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3903 # We make a subdir and do the tests there. Otherwise we can end up
3904 # making bogus files that we don't know about and never remove. For
3905 # instance it was reported that on HP-UX the gcc test will end up
3906 # making a dummy file named `D' -- because `-MD' means `put the output
3907 # in D'.
3908 mkdir conftest.dir
3909 # Copy depcomp to subdir because otherwise we won't find it if we're
3910 # using a relative directory.
3911 cp "$am_depcomp" conftest.dir
3912 cd conftest.dir
3913 # We will build objects and dependencies in a subdirectory because
3914 # it helps to detect inapplicable dependency modes. For instance
3915 # both Tru64's cc and ICC support -MD to output dependencies as a
3916 # side effect of compilation, but ICC will put the dependencies in
3917 # the current directory while Tru64 will put them in the object
3918 # directory.
3919 mkdir sub
3920
3921 am_cv_CC_dependencies_compiler_type=none
3922 if test "$am_compiler_list" = ""; then
3923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3924 fi
3925 am__universal=false
3926 case " $depcc " in #(
3927 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3928 esac
3929
3930 for depmode in $am_compiler_list; do
3931 # Setup a source with many dependencies, because some compilers
3932 # like to wrap large dependency lists on column 80 (with \), and
3933 # we should not choose a depcomp mode which is confused by this.
3934 #
3935 # We need to recreate these files for each test, as the compiler may
3936 # overwrite some of them when testing with obscure command lines.
3937 # This happens at least with the AIX C compiler.
3938 : > sub/conftest.c
3939 for i in 1 2 3 4 5 6; do
3940 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3941 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3942 # Solaris 8's {/usr,}/bin/sh.
3943 touch sub/conftst$i.h
3944 done
3945 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3946
3947 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3948 # mode. It turns out that the SunPro C++ compiler does not properly
3949 # handle `-M -o', and we need to detect this. Also, some Intel
3950 # versions had trouble with output in subdirs
3951 am__obj=sub/conftest.${OBJEXT-o}
3952 am__minus_obj="-o $am__obj"
3953 case $depmode in
3954 gcc)
3955 # This depmode causes a compiler race in universal mode.
3956 test "$am__universal" = false || continue
3957 ;;
3958 nosideeffect)
3959 # after this tag, mechanisms are not by side-effect, so they'll
3960 # only be used when explicitly requested
3961 if test "x$enable_dependency_tracking" = xyes; then
3962 continue
3963 else
3964 break
3965 fi
3966 ;;
3967 msvisualcpp | msvcmsys)
3968 # This compiler won't grok `-c -o', but also, the minuso test has
3969 # not run yet. These depmodes are late enough in the game, and
3970 # so weak that their functioning should not be impacted.
3971 am__obj=conftest.${OBJEXT-o}
3972 am__minus_obj=
3973 ;;
3974 none) break ;;
3975 esac
3976 if depmode=$depmode \
3977 source=sub/conftest.c object=$am__obj \
3978 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3979 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3980 >/dev/null 2>conftest.err &&
3981 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3983 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3985 # icc doesn't choke on unknown options, it will just issue warnings
3986 # or remarks (even with -Werror). So we grep stderr for any message
3987 # that says an option was ignored or not supported.
3988 # When given -MP, icc 7.0 and 7.1 complain thusly:
3989 # icc: Command line warning: ignoring option '-M'; no argument required
3990 # The diagnosis changed in icc 8.0:
3991 # icc: Command line remark: option '-MP' not supported
3992 if (grep 'ignoring option' conftest.err ||
3993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3994 am_cv_CC_dependencies_compiler_type=$depmode
3995 break
3996 fi
3997 fi
3998 done
3999
4000 cd ..
4001 rm -rf conftest.dir
4002 else
4003 am_cv_CC_dependencies_compiler_type=none
4004 fi
4005
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4008 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4009 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4010
4011 if
4012 test "x$enable_dependency_tracking" != xno \
4013 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4014 am__fastdepCC_TRUE=
4015 am__fastdepCC_FALSE='#'
4016 else
4017 am__fastdepCC_TRUE='#'
4018 am__fastdepCC_FALSE=
4019 fi
4020
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4023 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4024 if test "${ac_cv_path_SED+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4028 for ac_i in 1 2 3 4 5 6 7; do
4029 ac_script="$ac_script$as_nl$ac_script"
4030 done
4031 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4032 { ac_script=; unset ac_script;}
4033 if test -z "$SED"; then
4034 ac_path_SED_found=false
4035 # Loop through the user's path and test for each of PROGNAME-LIST
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_prog in sed gsed; do
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4044 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4045 # Check for GNU ac_path_SED and select it if it is found.
4046 # Check for GNU $ac_path_SED
4047 case `"$ac_path_SED" --version 2>&1` in
4048 *GNU*)
4049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4050 *)
4051 ac_count=0
4052 $as_echo_n 0123456789 >"conftest.in"
4053 while :
4054 do
4055 cat "conftest.in" "conftest.in" >"conftest.tmp"
4056 mv "conftest.tmp" "conftest.in"
4057 cp "conftest.in" "conftest.nl"
4058 $as_echo '' >> "conftest.nl"
4059 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4061 as_fn_arith $ac_count + 1 && ac_count=$as_val
4062 if test $ac_count -gt ${ac_path_SED_max-0}; then
4063 # Best one so far, save it but keep looking for a better one
4064 ac_cv_path_SED="$ac_path_SED"
4065 ac_path_SED_max=$ac_count
4066 fi
4067 # 10*(2^10) chars as input seems more than enough
4068 test $ac_count -gt 10 && break
4069 done
4070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4071 esac
4072
4073 $ac_path_SED_found && break 3
4074 done
4075 done
4076 done
4077 IFS=$as_save_IFS
4078 if test -z "$ac_cv_path_SED"; then
4079 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4080 fi
4081 else
4082 ac_cv_path_SED=$SED
4083 fi
4084
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4087 $as_echo "$ac_cv_path_SED" >&6; }
4088 SED="$ac_cv_path_SED"
4089 rm -f conftest.sed
4090
4091 test -z "$SED" && SED=sed
4092 Xsed="$SED -e 1s/^X//"
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4105 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4106 if test "${ac_cv_path_GREP+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -z "$GREP"; then
4110 ac_path_GREP_found=false
4111 # Loop through the user's path and test for each of PROGNAME-LIST
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4114 do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_prog in grep ggrep; do
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4120 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4121 # Check for GNU ac_path_GREP and select it if it is found.
4122 # Check for GNU $ac_path_GREP
4123 case `"$ac_path_GREP" --version 2>&1` in
4124 *GNU*)
4125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4126 *)
4127 ac_count=0
4128 $as_echo_n 0123456789 >"conftest.in"
4129 while :
4130 do
4131 cat "conftest.in" "conftest.in" >"conftest.tmp"
4132 mv "conftest.tmp" "conftest.in"
4133 cp "conftest.in" "conftest.nl"
4134 $as_echo 'GREP' >> "conftest.nl"
4135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137 as_fn_arith $ac_count + 1 && ac_count=$as_val
4138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4139 # Best one so far, save it but keep looking for a better one
4140 ac_cv_path_GREP="$ac_path_GREP"
4141 ac_path_GREP_max=$ac_count
4142 fi
4143 # 10*(2^10) chars as input seems more than enough
4144 test $ac_count -gt 10 && break
4145 done
4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4147 esac
4148
4149 $ac_path_GREP_found && break 3
4150 done
4151 done
4152 done
4153 IFS=$as_save_IFS
4154 if test -z "$ac_cv_path_GREP"; then
4155 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4156 fi
4157 else
4158 ac_cv_path_GREP=$GREP
4159 fi
4160
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4163 $as_echo "$ac_cv_path_GREP" >&6; }
4164 GREP="$ac_cv_path_GREP"
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4168 $as_echo_n "checking for egrep... " >&6; }
4169 if test "${ac_cv_path_EGREP+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4173 then ac_cv_path_EGREP="$GREP -E"
4174 else
4175 if test -z "$EGREP"; then
4176 ac_path_EGREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in egrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4187 # Check for GNU ac_path_EGREP and select it if it is found.
4188 # Check for GNU $ac_path_EGREP
4189 case `"$ac_path_EGREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo 'EGREP' >> "conftest.nl"
4201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_EGREP="$ac_path_EGREP"
4207 ac_path_EGREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_EGREP_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_EGREP"; then
4221 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_EGREP=$EGREP
4225 fi
4226
4227 fi
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4230 $as_echo "$ac_cv_path_EGREP" >&6; }
4231 EGREP="$ac_cv_path_EGREP"
4232
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4235 $as_echo_n "checking for fgrep... " >&6; }
4236 if test "${ac_cv_path_FGREP+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4240 then ac_cv_path_FGREP="$GREP -F"
4241 else
4242 if test -z "$FGREP"; then
4243 ac_path_FGREP_found=false
4244 # Loop through the user's path and test for each of PROGNAME-LIST
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_prog in fgrep; do
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4253 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4254 # Check for GNU ac_path_FGREP and select it if it is found.
4255 # Check for GNU $ac_path_FGREP
4256 case `"$ac_path_FGREP" --version 2>&1` in
4257 *GNU*)
4258 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4259 *)
4260 ac_count=0
4261 $as_echo_n 0123456789 >"conftest.in"
4262 while :
4263 do
4264 cat "conftest.in" "conftest.in" >"conftest.tmp"
4265 mv "conftest.tmp" "conftest.in"
4266 cp "conftest.in" "conftest.nl"
4267 $as_echo 'FGREP' >> "conftest.nl"
4268 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270 as_fn_arith $ac_count + 1 && ac_count=$as_val
4271 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4272 # Best one so far, save it but keep looking for a better one
4273 ac_cv_path_FGREP="$ac_path_FGREP"
4274 ac_path_FGREP_max=$ac_count
4275 fi
4276 # 10*(2^10) chars as input seems more than enough
4277 test $ac_count -gt 10 && break
4278 done
4279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 esac
4281
4282 $ac_path_FGREP_found && break 3
4283 done
4284 done
4285 done
4286 IFS=$as_save_IFS
4287 if test -z "$ac_cv_path_FGREP"; then
4288 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289 fi
4290 else
4291 ac_cv_path_FGREP=$FGREP
4292 fi
4293
4294 fi
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4297 $as_echo "$ac_cv_path_FGREP" >&6; }
4298 FGREP="$ac_cv_path_FGREP"
4299
4300
4301 test -z "$GREP" && GREP=grep
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321 # Check whether --with-gnu-ld was given.
4322 if test "${with_gnu_ld+set}" = set; then :
4323 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4324 else
4325 with_gnu_ld=no
4326 fi
4327
4328 ac_prog=ld
4329 if test "$GCC" = yes; then
4330 # Check if gcc -print-prog-name=ld gives a path.
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4332 $as_echo_n "checking for ld used by $CC... " >&6; }
4333 case $host in
4334 *-*-mingw*)
4335 # gcc leaves a trailing carriage return which upsets mingw
4336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4337 *)
4338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4339 esac
4340 case $ac_prog in
4341 # Accept absolute paths.
4342 [\\/]* | ?:[\\/]*)
4343 re_direlt='/[^/][^/]*/\.\./'
4344 # Canonicalize the pathname of ld
4345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4347 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4348 done
4349 test -z "$LD" && LD="$ac_prog"
4350 ;;
4351 "")
4352 # If it fails, then pretend we aren't using GCC.
4353 ac_prog=ld
4354 ;;
4355 *)
4356 # If it is relative, then search for the first ld in PATH.
4357 with_gnu_ld=unknown
4358 ;;
4359 esac
4360 elif test "$with_gnu_ld" = yes; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4362 $as_echo_n "checking for GNU ld... " >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4365 $as_echo_n "checking for non-GNU ld... " >&6; }
4366 fi
4367 if test "${lt_cv_path_LD+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -z "$LD"; then
4371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4372 for ac_dir in $PATH; do
4373 IFS="$lt_save_ifs"
4374 test -z "$ac_dir" && ac_dir=.
4375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4376 lt_cv_path_LD="$ac_dir/$ac_prog"
4377 # Check to see if the program is GNU ld. I'd rather use --version,
4378 # but apparently some variants of GNU ld only accept -v.
4379 # Break only if it was the GNU/non-GNU ld that we prefer.
4380 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4381 *GNU* | *'with BFD'*)
4382 test "$with_gnu_ld" != no && break
4383 ;;
4384 *)
4385 test "$with_gnu_ld" != yes && break
4386 ;;
4387 esac
4388 fi
4389 done
4390 IFS="$lt_save_ifs"
4391 else
4392 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4393 fi
4394 fi
4395
4396 LD="$lt_cv_path_LD"
4397 if test -n "$LD"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4399 $as_echo "$LD" >&6; }
4400 else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4406 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4407 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4411 case `$LD -v 2>&1 </dev/null` in
4412 *GNU* | *'with BFD'*)
4413 lt_cv_prog_gnu_ld=yes
4414 ;;
4415 *)
4416 lt_cv_prog_gnu_ld=no
4417 ;;
4418 esac
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4421 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4422 with_gnu_ld=$lt_cv_prog_gnu_ld
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4433 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4434 if test "${lt_cv_path_NM+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$NM"; then
4438 # Let the user override the test.
4439 lt_cv_path_NM="$NM"
4440 else
4441 lt_nm_to_check="${ac_tool_prefix}nm"
4442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4443 lt_nm_to_check="$lt_nm_to_check nm"
4444 fi
4445 for lt_tmp_nm in $lt_nm_to_check; do
4446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4448 IFS="$lt_save_ifs"
4449 test -z "$ac_dir" && ac_dir=.
4450 tmp_nm="$ac_dir/$lt_tmp_nm"
4451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4452 # Check to see if the nm accepts a BSD-compat flag.
4453 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4454 # nm: unknown option "B" ignored
4455 # Tru64's nm complains that /dev/null is an invalid object file
4456 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4457 */dev/null* | *'Invalid file or object type'*)
4458 lt_cv_path_NM="$tmp_nm -B"
4459 break
4460 ;;
4461 *)
4462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4463 */dev/null*)
4464 lt_cv_path_NM="$tmp_nm -p"
4465 break
4466 ;;
4467 *)
4468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4469 continue # so that we can try to find one that supports BSD flags
4470 ;;
4471 esac
4472 ;;
4473 esac
4474 fi
4475 done
4476 IFS="$lt_save_ifs"
4477 done
4478 : ${lt_cv_path_NM=no}
4479 fi
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4482 $as_echo "$lt_cv_path_NM" >&6; }
4483 if test "$lt_cv_path_NM" != "no"; then
4484 NM="$lt_cv_path_NM"
4485 else
4486 # Didn't find any BSD compatible name lister, look for dumpbin.
4487 if test -n "$ac_tool_prefix"; then
4488 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4489 do
4490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test -n "$DUMPBIN"; then
4498 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515 fi
4516 fi
4517 DUMPBIN=$ac_cv_prog_DUMPBIN
4518 if test -n "$DUMPBIN"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4520 $as_echo "$DUMPBIN" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525
4526
4527 test -n "$DUMPBIN" && break
4528 done
4529 fi
4530 if test -z "$DUMPBIN"; then
4531 ac_ct_DUMPBIN=$DUMPBIN
4532 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4533 do
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$ac_ct_DUMPBIN"; then
4542 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4562 if test -n "$ac_ct_DUMPBIN"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4564 $as_echo "$ac_ct_DUMPBIN" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570
4571 test -n "$ac_ct_DUMPBIN" && break
4572 done
4573
4574 if test "x$ac_ct_DUMPBIN" = x; then
4575 DUMPBIN=":"
4576 else
4577 case $cross_compiling:$ac_tool_warned in
4578 yes:)
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581 ac_tool_warned=yes ;;
4582 esac
4583 DUMPBIN=$ac_ct_DUMPBIN
4584 fi
4585 fi
4586
4587
4588 if test "$DUMPBIN" != ":"; then
4589 NM="$DUMPBIN"
4590 fi
4591 fi
4592 test -z "$NM" && NM=nm
4593
4594
4595
4596
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4600 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4601 if test "${lt_cv_nm_interface+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 lt_cv_nm_interface="BSD nm"
4605 echo "int some_variable = 0;" > conftest.$ac_ext
4606 (eval echo "\"\$as_me:4606: $ac_compile\"" >&5)
4607 (eval "$ac_compile" 2>conftest.err)
4608 cat conftest.err >&5
4609 (eval echo "\"\$as_me:4609: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4610 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4611 cat conftest.err >&5
4612 (eval echo "\"\$as_me:4612: output\"" >&5)
4613 cat conftest.out >&5
4614 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4615 lt_cv_nm_interface="MS dumpbin"
4616 fi
4617 rm -f conftest*
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4620 $as_echo "$lt_cv_nm_interface" >&6; }
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4623 $as_echo_n "checking whether ln -s works... " >&6; }
4624 LN_S=$as_ln_s
4625 if test "$LN_S" = "ln -s"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4627 $as_echo "yes" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4630 $as_echo "no, using $LN_S" >&6; }
4631 fi
4632
4633 # find the maximum length of command line arguments
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4635 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4636 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 i=0
4640 teststring="ABCD"
4641
4642 case $build_os in
4643 msdosdjgpp*)
4644 # On DJGPP, this test can blow up pretty badly due to problems in libc
4645 # (any single argument exceeding 2000 bytes causes a buffer overrun
4646 # during glob expansion). Even if it were fixed, the result of this
4647 # check would be larger than it should be.
4648 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4649 ;;
4650
4651 gnu*)
4652 # Under GNU Hurd, this test is not required because there is
4653 # no limit to the length of command line arguments.
4654 # Libtool will interpret -1 as no limit whatsoever
4655 lt_cv_sys_max_cmd_len=-1;
4656 ;;
4657
4658 cygwin* | mingw* | cegcc*)
4659 # On Win9x/ME, this test blows up -- it succeeds, but takes
4660 # about 5 minutes as the teststring grows exponentially.
4661 # Worse, since 9x/ME are not pre-emptively multitasking,
4662 # you end up with a "frozen" computer, even though with patience
4663 # the test eventually succeeds (with a max line length of 256k).
4664 # Instead, let's just punt: use the minimum linelength reported by
4665 # all of the supported platforms: 8192 (on NT/2K/XP).
4666 lt_cv_sys_max_cmd_len=8192;
4667 ;;
4668
4669 amigaos*)
4670 # On AmigaOS with pdksh, this test takes hours, literally.
4671 # So we just punt and use a minimum line length of 8192.
4672 lt_cv_sys_max_cmd_len=8192;
4673 ;;
4674
4675 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4676 # This has been around since 386BSD, at least. Likely further.
4677 if test -x /sbin/sysctl; then
4678 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4679 elif test -x /usr/sbin/sysctl; then
4680 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4681 else
4682 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4683 fi
4684 # And add a safety zone
4685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4687 ;;
4688
4689 interix*)
4690 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4691 lt_cv_sys_max_cmd_len=196608
4692 ;;
4693
4694 osf*)
4695 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4696 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4697 # nice to cause kernel panics so lets avoid the loop below.
4698 # First set a reasonable default.
4699 lt_cv_sys_max_cmd_len=16384
4700 #
4701 if test -x /sbin/sysconfig; then
4702 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4703 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4704 esac
4705 fi
4706 ;;
4707 sco3.2v5*)
4708 lt_cv_sys_max_cmd_len=102400
4709 ;;
4710 sysv5* | sco5v6* | sysv4.2uw2*)
4711 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4712 if test -n "$kargmax"; then
4713 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4714 else
4715 lt_cv_sys_max_cmd_len=32768
4716 fi
4717 ;;
4718 *)
4719 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4720 if test -n "$lt_cv_sys_max_cmd_len"; then
4721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4723 else
4724 # Make teststring a little bigger before we do anything with it.
4725 # a 1K string should be a reasonable start.
4726 for i in 1 2 3 4 5 6 7 8 ; do
4727 teststring=$teststring$teststring
4728 done
4729 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4730 # If test is not a shell built-in, we'll probably end up computing a
4731 # maximum length that is only half of the actual maximum length, but
4732 # we can't tell.
4733 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4734 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4735 test $i != 17 # 1/2 MB should be enough
4736 do
4737 i=`expr $i + 1`
4738 teststring=$teststring$teststring
4739 done
4740 # Only check the string length outside the loop.
4741 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4742 teststring=
4743 # Add a significant safety factor because C++ compilers can tack on
4744 # massive amounts of additional arguments before passing them to the
4745 # linker. It appears as though 1/2 is a usable value.
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4747 fi
4748 ;;
4749 esac
4750
4751 fi
4752
4753 if test -n $lt_cv_sys_max_cmd_len ; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4755 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4758 $as_echo "none" >&6; }
4759 fi
4760 max_cmd_len=$lt_cv_sys_max_cmd_len
4761
4762
4763
4764
4765
4766
4767 : ${CP="cp -f"}
4768 : ${MV="mv -f"}
4769 : ${RM="rm -f"}
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4772 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4773 # Try some XSI features
4774 xsi_shell=no
4775 ( _lt_dummy="a/b/c"
4776 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4777 = c,a/b,, \
4778 && eval 'test $(( 1 + 1 )) -eq 2 \
4779 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4780 && xsi_shell=yes
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4782 $as_echo "$xsi_shell" >&6; }
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4786 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4787 lt_shell_append=no
4788 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4789 >/dev/null 2>&1 \
4790 && lt_shell_append=yes
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4792 $as_echo "$lt_shell_append" >&6; }
4793
4794
4795 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4796 lt_unset=unset
4797 else
4798 lt_unset=false
4799 fi
4800
4801
4802
4803
4804
4805 # test EBCDIC or ASCII
4806 case `echo X|tr X '\101'` in
4807 A) # ASCII based system
4808 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4809 lt_SP2NL='tr \040 \012'
4810 lt_NL2SP='tr \015\012 \040\040'
4811 ;;
4812 *) # EBCDIC based system
4813 lt_SP2NL='tr \100 \n'
4814 lt_NL2SP='tr \r\n \100\100'
4815 ;;
4816 esac
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4827 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4828 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 lt_cv_ld_reload_flag='-r'
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4834 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4835 reload_flag=$lt_cv_ld_reload_flag
4836 case $reload_flag in
4837 "" | " "*) ;;
4838 *) reload_flag=" $reload_flag" ;;
4839 esac
4840 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4841 case $host_os in
4842 darwin*)
4843 if test "$GCC" = yes; then
4844 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4845 else
4846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4847 fi
4848 ;;
4849 esac
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4861 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$OBJDUMP"; then
4868 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 OBJDUMP=$ac_cv_prog_OBJDUMP
4888 if test -n "$OBJDUMP"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4890 $as_echo "$OBJDUMP" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896
4897 fi
4898 if test -z "$ac_cv_prog_OBJDUMP"; then
4899 ac_ct_OBJDUMP=$OBJDUMP
4900 # Extract the first word of "objdump", so it can be a program name with args.
4901 set dummy objdump; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$ac_ct_OBJDUMP"; then
4908 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4928 if test -n "$ac_ct_OBJDUMP"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4930 $as_echo "$ac_ct_OBJDUMP" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 fi
4935
4936 if test "x$ac_ct_OBJDUMP" = x; then
4937 OBJDUMP="false"
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 OBJDUMP=$ac_ct_OBJDUMP
4946 fi
4947 else
4948 OBJDUMP="$ac_cv_prog_OBJDUMP"
4949 fi
4950
4951 test -z "$OBJDUMP" && OBJDUMP=objdump
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4962 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4963 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 lt_cv_file_magic_cmd='$MAGIC_CMD'
4967 lt_cv_file_magic_test_file=
4968 lt_cv_deplibs_check_method='unknown'
4969 # Need to set the preceding variable on all platforms that support
4970 # interlibrary dependencies.
4971 # 'none' -- dependencies not supported.
4972 # `unknown' -- same as none, but documents that we really don't know.
4973 # 'pass_all' -- all dependencies passed with no checks.
4974 # 'test_compile' -- check by making test program.
4975 # 'file_magic [[regex]]' -- check by looking for files in library path
4976 # which responds to the $file_magic_cmd with a given extended regex.
4977 # If you have `file' or equivalent on your system and you're not sure
4978 # whether `pass_all' will *always* work, you probably want this one.
4979
4980 case $host_os in
4981 aix[4-9]*)
4982 lt_cv_deplibs_check_method=pass_all
4983 ;;
4984
4985 beos*)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989 bsdi[45]*)
4990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4991 lt_cv_file_magic_cmd='/usr/bin/file -L'
4992 lt_cv_file_magic_test_file=/shlib/libc.so
4993 ;;
4994
4995 cygwin*)
4996 # func_win32_libid is a shell function defined in ltmain.sh
4997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4998 lt_cv_file_magic_cmd='func_win32_libid'
4999 ;;
5000
5001 mingw* | pw32*)
5002 # Base MSYS/MinGW do not provide the 'file' command needed by
5003 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5004 # unless we find 'file', for example because we are cross-compiling.
5005 if ( file / ) >/dev/null 2>&1; then
5006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5007 lt_cv_file_magic_cmd='func_win32_libid'
5008 else
5009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5010 lt_cv_file_magic_cmd='$OBJDUMP -f'
5011 fi
5012 ;;
5013
5014 cegcc)
5015 # use the weaker test based on 'objdump'. See mingw*.
5016 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5017 lt_cv_file_magic_cmd='$OBJDUMP -f'
5018 ;;
5019
5020 darwin* | rhapsody*)
5021 lt_cv_deplibs_check_method=pass_all
5022 ;;
5023
5024 freebsd* | dragonfly*)
5025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5026 case $host_cpu in
5027 i*86 )
5028 # Not sure whether the presence of OpenBSD here was a mistake.
5029 # Let's accept both of them until this is cleared up.
5030 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5031 lt_cv_file_magic_cmd=/usr/bin/file
5032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5033 ;;
5034 esac
5035 else
5036 lt_cv_deplibs_check_method=pass_all
5037 fi
5038 ;;
5039
5040 gnu*)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5043
5044 hpux10.20* | hpux11*)
5045 lt_cv_file_magic_cmd=/usr/bin/file
5046 case $host_cpu in
5047 ia64*)
5048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5049 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5050 ;;
5051 hppa*64*)
5052 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]'
5053 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5054 ;;
5055 *)
5056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5057 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5058 ;;
5059 esac
5060 ;;
5061
5062 interix[3-9]*)
5063 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5065 ;;
5066
5067 irix5* | irix6* | nonstopux*)
5068 case $LD in
5069 *-32|*"-32 ") libmagic=32-bit;;
5070 *-n32|*"-n32 ") libmagic=N32;;
5071 *-64|*"-64 ") libmagic=64-bit;;
5072 *) libmagic=never-match;;
5073 esac
5074 lt_cv_deplibs_check_method=pass_all
5075 ;;
5076
5077 # This must be Linux ELF.
5078 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082 netbsd* | netbsdelf*-gnu)
5083 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5085 else
5086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5087 fi
5088 ;;
5089
5090 newos6*)
5091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5092 lt_cv_file_magic_cmd=/usr/bin/file
5093 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5094 ;;
5095
5096 *nto* | *qnx*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 openbsd*)
5101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5103 else
5104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5105 fi
5106 ;;
5107
5108 osf3* | osf4* | osf5*)
5109 lt_cv_deplibs_check_method=pass_all
5110 ;;
5111
5112 rdos*)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115
5116 solaris*)
5117 lt_cv_deplibs_check_method=pass_all
5118 ;;
5119
5120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5121 lt_cv_deplibs_check_method=pass_all
5122 ;;
5123
5124 sysv4 | sysv4.3*)
5125 case $host_vendor in
5126 motorola)
5127 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]'
5128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5129 ;;
5130 ncr)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133 sequent)
5134 lt_cv_file_magic_cmd='/bin/file'
5135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5136 ;;
5137 sni)
5138 lt_cv_file_magic_cmd='/bin/file'
5139 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5140 lt_cv_file_magic_test_file=/lib/libc.so
5141 ;;
5142 siemens)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145 pc)
5146 lt_cv_deplibs_check_method=pass_all
5147 ;;
5148 esac
5149 ;;
5150
5151 tpf*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154 esac
5155
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5158 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5159 file_magic_cmd=$lt_cv_file_magic_cmd
5160 deplibs_check_method=$lt_cv_deplibs_check_method
5161 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 if test -n "$ac_tool_prefix"; then
5175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5176 set dummy ${ac_tool_prefix}ar; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_prog_AR+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$AR"; then
5183 ac_cv_prog_AR="$AR" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_AR="${ac_tool_prefix}ar"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 AR=$ac_cv_prog_AR
5203 if test -n "$AR"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5205 $as_echo "$AR" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211
5212 fi
5213 if test -z "$ac_cv_prog_AR"; then
5214 ac_ct_AR=$AR
5215 # Extract the first word of "ar", so it can be a program name with args.
5216 set dummy ar; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$ac_ct_AR"; then
5223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_ac_ct_AR="ar"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5243 if test -n "$ac_ct_AR"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5245 $as_echo "$ac_ct_AR" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251 if test "x$ac_ct_AR" = x; then
5252 AR="false"
5253 else
5254 case $cross_compiling:$ac_tool_warned in
5255 yes:)
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258 ac_tool_warned=yes ;;
5259 esac
5260 AR=$ac_ct_AR
5261 fi
5262 else
5263 AR="$ac_cv_prog_AR"
5264 fi
5265
5266 test -z "$AR" && AR=ar
5267 test -z "$AR_FLAGS" && AR_FLAGS=cru
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 if test -n "$ac_tool_prefix"; then
5280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5281 set dummy ${ac_tool_prefix}strip; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_STRIP+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$STRIP"; then
5288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 STRIP=$ac_cv_prog_STRIP
5308 if test -n "$STRIP"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5310 $as_echo "$STRIP" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316
5317 fi
5318 if test -z "$ac_cv_prog_STRIP"; then
5319 ac_ct_STRIP=$STRIP
5320 # Extract the first word of "strip", so it can be a program name with args.
5321 set dummy strip; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$ac_ct_STRIP"; then
5328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_ac_ct_STRIP="strip"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 fi
5346 fi
5347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5348 if test -n "$ac_ct_STRIP"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5350 $as_echo "$ac_ct_STRIP" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356 if test "x$ac_ct_STRIP" = x; then
5357 STRIP=":"
5358 else
5359 case $cross_compiling:$ac_tool_warned in
5360 yes:)
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5363 ac_tool_warned=yes ;;
5364 esac
5365 STRIP=$ac_ct_STRIP
5366 fi
5367 else
5368 STRIP="$ac_cv_prog_STRIP"
5369 fi
5370
5371 test -z "$STRIP" && STRIP=:
5372
5373
5374
5375
5376
5377
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$RANLIB"; then
5387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 RANLIB=$ac_cv_prog_RANLIB
5407 if test -n "$RANLIB"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5409 $as_echo "$RANLIB" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 fi
5417 if test -z "$ac_cv_prog_RANLIB"; then
5418 ac_ct_RANLIB=$RANLIB
5419 # Extract the first word of "ranlib", so it can be a program name with args.
5420 set dummy ranlib; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$ac_ct_RANLIB"; then
5427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_ac_ct_RANLIB="ranlib"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5447 if test -n "$ac_ct_RANLIB"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5449 $as_echo "$ac_ct_RANLIB" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455 if test "x$ac_ct_RANLIB" = x; then
5456 RANLIB=":"
5457 else
5458 case $cross_compiling:$ac_tool_warned in
5459 yes:)
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5463 esac
5464 RANLIB=$ac_ct_RANLIB
5465 fi
5466 else
5467 RANLIB="$ac_cv_prog_RANLIB"
5468 fi
5469
5470 test -z "$RANLIB" && RANLIB=:
5471
5472
5473
5474
5475
5476
5477 # Determine commands to create old-style static archives.
5478 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5479 old_postinstall_cmds='chmod 644 $oldlib'
5480 old_postuninstall_cmds=
5481
5482 if test -n "$RANLIB"; then
5483 case $host_os in
5484 openbsd*)
5485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5486 ;;
5487 *)
5488 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5489 ;;
5490 esac
5491 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5492 fi
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 # If no C compiler was specified, use CC.
5528 LTCC=${LTCC-"$CC"}
5529
5530 # If no C compiler flags were specified, use CFLAGS.
5531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5532
5533 # Allow CC to be a program name with arguments.
5534 compiler=$CC
5535
5536
5537 # Check for command to grab the raw symbol name followed by C symbol from nm.
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5539 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5540 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543
5544 # These are sane defaults that work on at least a few old systems.
5545 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5546
5547 # Character class describing NM global symbol codes.
5548 symcode='[BCDEGRST]'
5549
5550 # Regexp to match symbols that can be accessed directly from C.
5551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5552
5553 # Define system-specific variables.
5554 case $host_os in
5555 aix*)
5556 symcode='[BCDT]'
5557 ;;
5558 cygwin* | mingw* | pw32* | cegcc*)
5559 symcode='[ABCDGISTW]'
5560 ;;
5561 hpux*)
5562 if test "$host_cpu" = ia64; then
5563 symcode='[ABCDEGRST]'
5564 fi
5565 ;;
5566 irix* | nonstopux*)
5567 symcode='[BCDEGRST]'
5568 ;;
5569 osf*)
5570 symcode='[BCDEGQRST]'
5571 ;;
5572 solaris*)
5573 symcode='[BDRT]'
5574 ;;
5575 sco3.2v5*)
5576 symcode='[DT]'
5577 ;;
5578 sysv4.2uw2*)
5579 symcode='[DT]'
5580 ;;
5581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5582 symcode='[ABDT]'
5583 ;;
5584 sysv4)
5585 symcode='[DFNSTU]'
5586 ;;
5587 esac
5588
5589 # If we're using GNU nm, then use its standard symbol codes.
5590 case `$NM -V 2>&1` in
5591 *GNU* | *'with BFD'*)
5592 symcode='[ABCDGIRSTW]' ;;
5593 esac
5594
5595 # Transform an extracted symbol line into a proper C declaration.
5596 # Some systems (esp. on ia64) link data and code symbols differently,
5597 # so use this general approach.
5598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5599
5600 # Transform an extracted symbol line into symbol name and symbol address
5601 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5602 lt_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'"
5603
5604 # Handle CRLF in mingw tool chain
5605 opt_cr=
5606 case $build_os in
5607 mingw*)
5608 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5609 ;;
5610 esac
5611
5612 # Try without a prefix underscore, then with it.
5613 for ac_symprfx in "" "_"; do
5614
5615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5616 symxfrm="\\1 $ac_symprfx\\2 \\2"
5617
5618 # Write the raw and C identifiers.
5619 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5620 # Fake it for dumpbin and say T for any non-static function
5621 # and D for any global variable.
5622 # Also find C++ and __fastcall symbols from MSVC++,
5623 # which start with @ or ?.
5624 lt_cv_sys_global_symbol_pipe="$AWK '"\
5625 " {last_section=section; section=\$ 3};"\
5626 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5627 " \$ 0!~/External *\|/{next};"\
5628 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5629 " {if(hide[section]) next};"\
5630 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5631 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5632 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5633 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5634 " ' prfx=^$ac_symprfx"
5635 else
5636 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5637 fi
5638
5639 # Check to see that the pipe works correctly.
5640 pipe_works=no
5641
5642 rm -f conftest*
5643 cat > conftest.$ac_ext <<_LT_EOF
5644 #ifdef __cplusplus
5645 extern "C" {
5646 #endif
5647 char nm_test_var;
5648 void nm_test_func(void);
5649 void nm_test_func(void){}
5650 #ifdef __cplusplus
5651 }
5652 #endif
5653 int main(){nm_test_var='a';nm_test_func();return(0);}
5654 _LT_EOF
5655
5656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5657 (eval $ac_compile) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }; then
5661 # Now try to grab the symbols.
5662 nlist=conftest.nm
5663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5664 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; } && test -s "$nlist"; then
5668 # Try sorting and uniquifying the output.
5669 if sort "$nlist" | uniq > "$nlist"T; then
5670 mv -f "$nlist"T "$nlist"
5671 else
5672 rm -f "$nlist"T
5673 fi
5674
5675 # Make sure that we snagged all the symbols we need.
5676 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5677 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5678 cat <<_LT_EOF > conftest.$ac_ext
5679 #ifdef __cplusplus
5680 extern "C" {
5681 #endif
5682
5683 _LT_EOF
5684 # Now generate the symbol file.
5685 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5686
5687 cat <<_LT_EOF >> conftest.$ac_ext
5688
5689 /* The mapping between symbol names and symbols. */
5690 const struct {
5691 const char *name;
5692 void *address;
5693 }
5694 lt__PROGRAM__LTX_preloaded_symbols[] =
5695 {
5696 { "@PROGRAM@", (void *) 0 },
5697 _LT_EOF
5698 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5699 cat <<\_LT_EOF >> conftest.$ac_ext
5700 {0, (void *) 0}
5701 };
5702
5703 /* This works around a problem in FreeBSD linker */
5704 #ifdef FREEBSD_WORKAROUND
5705 static const void *lt_preloaded_setup() {
5706 return lt__PROGRAM__LTX_preloaded_symbols;
5707 }
5708 #endif
5709
5710 #ifdef __cplusplus
5711 }
5712 #endif
5713 _LT_EOF
5714 # Now try linking the two files.
5715 mv conftest.$ac_objext conftstm.$ac_objext
5716 lt_save_LIBS="$LIBS"
5717 lt_save_CFLAGS="$CFLAGS"
5718 LIBS="conftstm.$ac_objext"
5719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5721 (eval $ac_link) 2>&5
5722 ac_status=$?
5723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5724 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5725 pipe_works=yes
5726 fi
5727 LIBS="$lt_save_LIBS"
5728 CFLAGS="$lt_save_CFLAGS"
5729 else
5730 echo "cannot find nm_test_func in $nlist" >&5
5731 fi
5732 else
5733 echo "cannot find nm_test_var in $nlist" >&5
5734 fi
5735 else
5736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5737 fi
5738 else
5739 echo "$progname: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 fi
5742 rm -rf conftest* conftst*
5743
5744 # Do not use the global_symbol_pipe unless it works.
5745 if test "$pipe_works" = yes; then
5746 break
5747 else
5748 lt_cv_sys_global_symbol_pipe=
5749 fi
5750 done
5751
5752 fi
5753
5754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5755 lt_cv_sys_global_symbol_to_cdecl=
5756 fi
5757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5759 $as_echo "failed" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5762 $as_echo "ok" >&6; }
5763 fi
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 # Check whether --enable-libtool-lock was given.
5788 if test "${enable_libtool_lock+set}" = set; then :
5789 enableval=$enable_libtool_lock;
5790 fi
5791
5792 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5793
5794 # Some flags need to be propagated to the compiler or linker for good
5795 # libtool support.
5796 case $host in
5797 ia64-*-hpux*)
5798 # Find out which ABI we are using.
5799 echo 'int i;' > conftest.$ac_ext
5800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5801 (eval $ac_compile) 2>&5
5802 ac_status=$?
5803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5804 test $ac_status = 0; }; then
5805 case `/usr/bin/file conftest.$ac_objext` in
5806 *ELF-32*)
5807 HPUX_IA64_MODE="32"
5808 ;;
5809 *ELF-64*)
5810 HPUX_IA64_MODE="64"
5811 ;;
5812 esac
5813 fi
5814 rm -rf conftest*
5815 ;;
5816 *-*-irix6*)
5817 # Find out which ABI we are using.
5818 echo '#line 5818 "configure"' > conftest.$ac_ext
5819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5820 (eval $ac_compile) 2>&5
5821 ac_status=$?
5822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; }; then
5824 if test "$lt_cv_prog_gnu_ld" = yes; then
5825 case `/usr/bin/file conftest.$ac_objext` in
5826 *32-bit*)
5827 LD="${LD-ld} -melf32bsmip"
5828 ;;
5829 *N32*)
5830 LD="${LD-ld} -melf32bmipn32"
5831 ;;
5832 *64-bit*)
5833 LD="${LD-ld} -melf64bmip"
5834 ;;
5835 esac
5836 else
5837 case `/usr/bin/file conftest.$ac_objext` in
5838 *32-bit*)
5839 LD="${LD-ld} -32"
5840 ;;
5841 *N32*)
5842 LD="${LD-ld} -n32"
5843 ;;
5844 *64-bit*)
5845 LD="${LD-ld} -64"
5846 ;;
5847 esac
5848 fi
5849 fi
5850 rm -rf conftest*
5851 ;;
5852
5853 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5854 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5855 # Find out which ABI we are using.
5856 echo 'int i;' > conftest.$ac_ext
5857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5858 (eval $ac_compile) 2>&5
5859 ac_status=$?
5860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5861 test $ac_status = 0; }; then
5862 case `/usr/bin/file conftest.o` in
5863 *32-bit*)
5864 case $host in
5865 x86_64-*kfreebsd*-gnu)
5866 LD="${LD-ld} -m elf_i386_fbsd"
5867 ;;
5868 x86_64-*linux*)
5869 LD="${LD-ld} -m elf_i386"
5870 ;;
5871 ppc64-*linux*|powerpc64-*linux*)
5872 LD="${LD-ld} -m elf32ppclinux"
5873 ;;
5874 s390x-*linux*)
5875 LD="${LD-ld} -m elf_s390"
5876 ;;
5877 sparc64-*linux*)
5878 LD="${LD-ld} -m elf32_sparc"
5879 ;;
5880 esac
5881 ;;
5882 *64-bit*)
5883 case $host in
5884 x86_64-*kfreebsd*-gnu)
5885 LD="${LD-ld} -m elf_x86_64_fbsd"
5886 ;;
5887 x86_64-*linux*)
5888 LD="${LD-ld} -m elf_x86_64"
5889 ;;
5890 ppc*-*linux*|powerpc*-*linux*)
5891 LD="${LD-ld} -m elf64ppc"
5892 ;;
5893 s390*-*linux*|s390*-*tpf*)
5894 LD="${LD-ld} -m elf64_s390"
5895 ;;
5896 sparc*-*linux*)
5897 LD="${LD-ld} -m elf64_sparc"
5898 ;;
5899 esac
5900 ;;
5901 esac
5902 fi
5903 rm -rf conftest*
5904 ;;
5905
5906 *-*-sco3.2v5*)
5907 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5908 SAVE_CFLAGS="$CFLAGS"
5909 CFLAGS="$CFLAGS -belf"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5911 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5912 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 ac_ext=c
5916 ac_cpp='$CPP $CPPFLAGS'
5917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923
5924 int
5925 main ()
5926 {
5927
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 if ac_fn_c_try_link "$LINENO"; then :
5933 lt_cv_cc_needs_belf=yes
5934 else
5935 lt_cv_cc_needs_belf=no
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 ac_ext=c
5940 ac_cpp='$CPP $CPPFLAGS'
5941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5944
5945 fi
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5947 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5948 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5949 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5950 CFLAGS="$SAVE_CFLAGS"
5951 fi
5952 ;;
5953 sparc*-*solaris*)
5954 # Find out which ABI we are using.
5955 echo 'int i;' > conftest.$ac_ext
5956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5957 (eval $ac_compile) 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960 test $ac_status = 0; }; then
5961 case `/usr/bin/file conftest.o` in
5962 *64-bit*)
5963 case $lt_cv_prog_gnu_ld in
5964 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5965 *)
5966 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5967 LD="${LD-ld} -64"
5968 fi
5969 ;;
5970 esac
5971 ;;
5972 esac
5973 fi
5974 rm -rf conftest*
5975 ;;
5976 esac
5977
5978 need_locks="$enable_libtool_lock"
5979
5980
5981 case $host_os in
5982 rhapsody* | darwin*)
5983 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5985 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$DSYMUTIL"; then
5992 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6012 if test -n "$DSYMUTIL"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6014 $as_echo "$DSYMUTIL" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021 fi
6022 if test -z "$ac_cv_prog_DSYMUTIL"; then
6023 ac_ct_DSYMUTIL=$DSYMUTIL
6024 # Extract the first word of "dsymutil", so it can be a program name with args.
6025 set dummy dsymutil; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -n "$ac_ct_DSYMUTIL"; then
6032 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6044 fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049 fi
6050 fi
6051 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6052 if test -n "$ac_ct_DSYMUTIL"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6054 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060 if test "x$ac_ct_DSYMUTIL" = x; then
6061 DSYMUTIL=":"
6062 else
6063 case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069 DSYMUTIL=$ac_ct_DSYMUTIL
6070 fi
6071 else
6072 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6073 fi
6074
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6077 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$NMEDIT"; then
6084 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 NMEDIT=$ac_cv_prog_NMEDIT
6104 if test -n "$NMEDIT"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6106 $as_echo "$NMEDIT" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 fi
6111
6112
6113 fi
6114 if test -z "$ac_cv_prog_NMEDIT"; then
6115 ac_ct_NMEDIT=$NMEDIT
6116 # Extract the first word of "nmedit", so it can be a program name with args.
6117 set dummy nmedit; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if test -n "$ac_ct_NMEDIT"; then
6124 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6144 if test -n "$ac_ct_NMEDIT"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6146 $as_echo "$ac_ct_NMEDIT" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6150 fi
6151
6152 if test "x$ac_ct_NMEDIT" = x; then
6153 NMEDIT=":"
6154 else
6155 case $cross_compiling:$ac_tool_warned in
6156 yes:)
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159 ac_tool_warned=yes ;;
6160 esac
6161 NMEDIT=$ac_ct_NMEDIT
6162 fi
6163 else
6164 NMEDIT="$ac_cv_prog_NMEDIT"
6165 fi
6166
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if test "${ac_cv_prog_LIPO+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$LIPO"; then
6176 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 LIPO=$ac_cv_prog_LIPO
6196 if test -n "$LIPO"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6198 $as_echo "$LIPO" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_LIPO"; then
6207 ac_ct_LIPO=$LIPO
6208 # Extract the first word of "lipo", so it can be a program name with args.
6209 set dummy lipo; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if test -n "$ac_ct_LIPO"; then
6216 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_ac_ct_LIPO="lipo"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6236 if test -n "$ac_ct_LIPO"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6238 $as_echo "$ac_ct_LIPO" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244 if test "x$ac_ct_LIPO" = x; then
6245 LIPO=":"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253 LIPO=$ac_ct_LIPO
6254 fi
6255 else
6256 LIPO="$ac_cv_prog_LIPO"
6257 fi
6258
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}otool; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$OTOOL"; then
6268 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 OTOOL=$ac_cv_prog_OTOOL
6288 if test -n "$OTOOL"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6290 $as_echo "$OTOOL" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_OTOOL"; then
6299 ac_ct_OTOOL=$OTOOL
6300 # Extract the first word of "otool", so it can be a program name with args.
6301 set dummy otool; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$ac_ct_OTOOL"; then
6308 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_ac_ct_OTOOL="otool"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6328 if test -n "$ac_ct_OTOOL"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6330 $as_echo "$ac_ct_OTOOL" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336 if test "x$ac_ct_OTOOL" = x; then
6337 OTOOL=":"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345 OTOOL=$ac_ct_OTOOL
6346 fi
6347 else
6348 OTOOL="$ac_cv_prog_OTOOL"
6349 fi
6350
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$OTOOL64"; then
6360 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 OTOOL64=$ac_cv_prog_OTOOL64
6380 if test -n "$OTOOL64"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6382 $as_echo "$OTOOL64" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_OTOOL64"; then
6391 ac_ct_OTOOL64=$OTOOL64
6392 # Extract the first word of "otool64", so it can be a program name with args.
6393 set dummy otool64; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$ac_ct_OTOOL64"; then
6400 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_OTOOL64="otool64"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6420 if test -n "$ac_ct_OTOOL64"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6422 $as_echo "$ac_ct_OTOOL64" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428 if test "x$ac_ct_OTOOL64" = x; then
6429 OTOOL64=":"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 OTOOL64=$ac_ct_OTOOL64
6438 fi
6439 else
6440 OTOOL64="$ac_cv_prog_OTOOL64"
6441 fi
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6470 $as_echo_n "checking for -single_module linker flag... " >&6; }
6471 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 lt_cv_apple_cc_single_mod=no
6475 if test -z "${LT_MULTI_MODULE}"; then
6476 # By default we will add the -single_module flag. You can override
6477 # by either setting the environment variable LT_MULTI_MODULE
6478 # non-empty at configure time, or by adding -multi_module to the
6479 # link flags.
6480 rm -rf libconftest.dylib*
6481 echo "int foo(void){return 1;}" > conftest.c
6482 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6483 -dynamiclib -Wl,-single_module conftest.c" >&5
6484 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6485 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6486 _lt_result=$?
6487 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6488 lt_cv_apple_cc_single_mod=yes
6489 else
6490 cat conftest.err >&5
6491 fi
6492 rm -rf libconftest.dylib*
6493 rm -f conftest.*
6494 fi
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6497 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6499 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6500 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 lt_cv_ld_exported_symbols_list=no
6504 save_LDFLAGS=$LDFLAGS
6505 echo "_main" > conftest.sym
6506 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509
6510 int
6511 main ()
6512 {
6513
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 if ac_fn_c_try_link "$LINENO"; then :
6519 lt_cv_ld_exported_symbols_list=yes
6520 else
6521 lt_cv_ld_exported_symbols_list=no
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6525 LDFLAGS="$save_LDFLAGS"
6526
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6529 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6530 case $host_os in
6531 rhapsody* | darwin1.[012])
6532 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6533 darwin1.*)
6534 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6535 darwin*) # darwin 5.x on
6536 # if running on 10.5 or later, the deployment target defaults
6537 # to the OS version, if on x86, and 10.4, the deployment
6538 # target defaults to 10.4. Don't you love it?
6539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6540 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6541 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6542 10.[012]*)
6543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6544 10.*)
6545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6546 esac
6547 ;;
6548 esac
6549 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6550 _lt_dar_single_mod='$single_module'
6551 fi
6552 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6553 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6554 else
6555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6556 fi
6557 if test "$DSYMUTIL" != ":"; then
6558 _lt_dsymutil='~$DSYMUTIL $lib || :'
6559 else
6560 _lt_dsymutil=
6561 fi
6562 ;;
6563 esac
6564
6565 ac_ext=c
6566 ac_cpp='$CPP $CPPFLAGS'
6567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6571 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6572 # On Suns, sometimes $CPP names a directory.
6573 if test -n "$CPP" && test -d "$CPP"; then
6574 CPP=
6575 fi
6576 if test -z "$CPP"; then
6577 if test "${ac_cv_prog_CPP+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 # Double quotes because CPP needs to be expanded
6581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6582 do
6583 ac_preproc_ok=false
6584 for ac_c_preproc_warn_flag in '' yes
6585 do
6586 # Use a header file that comes with gcc, so configuring glibc
6587 # with a fresh cross-compiler works.
6588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6589 # <limits.h> exists even on freestanding compilers.
6590 # On the NeXT, cc -E runs the code through the compiler's parser,
6591 # not just through cpp. "Syntax error" is here to catch this case.
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 #ifdef __STDC__
6595 # include <limits.h>
6596 #else
6597 # include <assert.h>
6598 #endif
6599 Syntax error
6600 _ACEOF
6601 if ac_fn_c_try_cpp "$LINENO"; then :
6602
6603 else
6604 # Broken: fails on valid input.
6605 continue
6606 fi
6607 rm -f conftest.err conftest.$ac_ext
6608
6609 # OK, works on sane cases. Now check whether nonexistent headers
6610 # can be detected and how.
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 #include <ac_nonexistent.h>
6614 _ACEOF
6615 if ac_fn_c_try_cpp "$LINENO"; then :
6616 # Broken: success on invalid input.
6617 continue
6618 else
6619 # Passes both tests.
6620 ac_preproc_ok=:
6621 break
6622 fi
6623 rm -f conftest.err conftest.$ac_ext
6624
6625 done
6626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6627 rm -f conftest.err conftest.$ac_ext
6628 if $ac_preproc_ok; then :
6629 break
6630 fi
6631
6632 done
6633 ac_cv_prog_CPP=$CPP
6634
6635 fi
6636 CPP=$ac_cv_prog_CPP
6637 else
6638 ac_cv_prog_CPP=$CPP
6639 fi
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6641 $as_echo "$CPP" >&6; }
6642 ac_preproc_ok=false
6643 for ac_c_preproc_warn_flag in '' yes
6644 do
6645 # Use a header file that comes with gcc, so configuring glibc
6646 # with a fresh cross-compiler works.
6647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6648 # <limits.h> exists even on freestanding compilers.
6649 # On the NeXT, cc -E runs the code through the compiler's parser,
6650 # not just through cpp. "Syntax error" is here to catch this case.
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #ifdef __STDC__
6654 # include <limits.h>
6655 #else
6656 # include <assert.h>
6657 #endif
6658 Syntax error
6659 _ACEOF
6660 if ac_fn_c_try_cpp "$LINENO"; then :
6661
6662 else
6663 # Broken: fails on valid input.
6664 continue
6665 fi
6666 rm -f conftest.err conftest.$ac_ext
6667
6668 # OK, works on sane cases. Now check whether nonexistent headers
6669 # can be detected and how.
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <ac_nonexistent.h>
6673 _ACEOF
6674 if ac_fn_c_try_cpp "$LINENO"; then :
6675 # Broken: success on invalid input.
6676 continue
6677 else
6678 # Passes both tests.
6679 ac_preproc_ok=:
6680 break
6681 fi
6682 rm -f conftest.err conftest.$ac_ext
6683
6684 done
6685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6686 rm -f conftest.err conftest.$ac_ext
6687 if $ac_preproc_ok; then :
6688
6689 else
6690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6692 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6693 See \`config.log' for more details." "$LINENO" 5; }
6694 fi
6695
6696 ac_ext=c
6697 ac_cpp='$CPP $CPPFLAGS'
6698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6704 $as_echo_n "checking for ANSI C header files... " >&6; }
6705 if test "${ac_cv_header_stdc+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 #include <stdlib.h>
6711 #include <stdarg.h>
6712 #include <string.h>
6713 #include <float.h>
6714
6715 int
6716 main ()
6717 {
6718
6719 ;
6720 return 0;
6721 }
6722 _ACEOF
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 ac_cv_header_stdc=yes
6725 else
6726 ac_cv_header_stdc=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729
6730 if test $ac_cv_header_stdc = yes; then
6731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #include <string.h>
6735
6736 _ACEOF
6737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6738 $EGREP "memchr" >/dev/null 2>&1; then :
6739
6740 else
6741 ac_cv_header_stdc=no
6742 fi
6743 rm -f conftest*
6744
6745 fi
6746
6747 if test $ac_cv_header_stdc = yes; then
6748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <stdlib.h>
6752
6753 _ACEOF
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "free" >/dev/null 2>&1; then :
6756
6757 else
6758 ac_cv_header_stdc=no
6759 fi
6760 rm -f conftest*
6761
6762 fi
6763
6764 if test $ac_cv_header_stdc = yes; then
6765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6766 if test "$cross_compiling" = yes; then :
6767 :
6768 else
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #include <ctype.h>
6772 #include <stdlib.h>
6773 #if ((' ' & 0x0FF) == 0x020)
6774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6776 #else
6777 # define ISLOWER(c) \
6778 (('a' <= (c) && (c) <= 'i') \
6779 || ('j' <= (c) && (c) <= 'r') \
6780 || ('s' <= (c) && (c) <= 'z'))
6781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6782 #endif
6783
6784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6785 int
6786 main ()
6787 {
6788 int i;
6789 for (i = 0; i < 256; i++)
6790 if (XOR (islower (i), ISLOWER (i))
6791 || toupper (i) != TOUPPER (i))
6792 return 2;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_run "$LINENO"; then :
6797
6798 else
6799 ac_cv_header_stdc=no
6800 fi
6801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6802 conftest.$ac_objext conftest.beam conftest.$ac_ext
6803 fi
6804
6805 fi
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6808 $as_echo "$ac_cv_header_stdc" >&6; }
6809 if test $ac_cv_header_stdc = yes; then
6810
6811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6812
6813 fi
6814
6815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6817 inttypes.h stdint.h unistd.h
6818 do :
6819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6821 "
6822 eval as_val=\$$as_ac_Header
6823 if test "x$as_val" = x""yes; then :
6824 cat >>confdefs.h <<_ACEOF
6825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6826 _ACEOF
6827
6828 fi
6829
6830 done
6831
6832
6833 for ac_header in dlfcn.h
6834 do :
6835 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6836 "
6837 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6838 cat >>confdefs.h <<_ACEOF
6839 #define HAVE_DLFCN_H 1
6840 _ACEOF
6841
6842 fi
6843
6844 done
6845
6846
6847
6848 # Set options
6849
6850
6851
6852 enable_dlopen=no
6853
6854
6855 enable_win32_dll=no
6856
6857
6858 # Check whether --enable-shared was given.
6859 if test "${enable_shared+set}" = set; then :
6860 enableval=$enable_shared; p=${PACKAGE-default}
6861 case $enableval in
6862 yes) enable_shared=yes ;;
6863 no) enable_shared=no ;;
6864 *)
6865 enable_shared=no
6866 # Look at the argument we got. We use all the common list separators.
6867 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6868 for pkg in $enableval; do
6869 IFS="$lt_save_ifs"
6870 if test "X$pkg" = "X$p"; then
6871 enable_shared=yes
6872 fi
6873 done
6874 IFS="$lt_save_ifs"
6875 ;;
6876 esac
6877 else
6878 enable_shared=yes
6879 fi
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889 # Check whether --enable-static was given.
6890 if test "${enable_static+set}" = set; then :
6891 enableval=$enable_static; p=${PACKAGE-default}
6892 case $enableval in
6893 yes) enable_static=yes ;;
6894 no) enable_static=no ;;
6895 *)
6896 enable_static=no
6897 # Look at the argument we got. We use all the common list separators.
6898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6899 for pkg in $enableval; do
6900 IFS="$lt_save_ifs"
6901 if test "X$pkg" = "X$p"; then
6902 enable_static=yes
6903 fi
6904 done
6905 IFS="$lt_save_ifs"
6906 ;;
6907 esac
6908 else
6909 enable_static=yes
6910 fi
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --with-pic was given.
6922 if test "${with_pic+set}" = set; then :
6923 withval=$with_pic; pic_mode="$withval"
6924 else
6925 pic_mode=default
6926 fi
6927
6928
6929 test -z "$pic_mode" && pic_mode=default
6930
6931
6932
6933
6934
6935
6936
6937 # Check whether --enable-fast-install was given.
6938 if test "${enable_fast_install+set}" = set; then :
6939 enableval=$enable_fast_install; p=${PACKAGE-default}
6940 case $enableval in
6941 yes) enable_fast_install=yes ;;
6942 no) enable_fast_install=no ;;
6943 *)
6944 enable_fast_install=no
6945 # Look at the argument we got. We use all the common list separators.
6946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6947 for pkg in $enableval; do
6948 IFS="$lt_save_ifs"
6949 if test "X$pkg" = "X$p"; then
6950 enable_fast_install=yes
6951 fi
6952 done
6953 IFS="$lt_save_ifs"
6954 ;;
6955 esac
6956 else
6957 enable_fast_install=yes
6958 fi
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 # This can be used to rebuild libtool when needed
6971 LIBTOOL_DEPS="$ltmain"
6972
6973 # Always use our own libtool.
6974 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 test -z "$LN_S" && LN_S="ln -s"
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 if test -n "${ZSH_VERSION+set}" ; then
7016 setopt NO_GLOB_SUBST
7017 fi
7018
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7020 $as_echo_n "checking for objdir... " >&6; }
7021 if test "${lt_cv_objdir+set}" = set; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 rm -f .libs 2>/dev/null
7025 mkdir .libs 2>/dev/null
7026 if test -d .libs; then
7027 lt_cv_objdir=.libs
7028 else
7029 # MS-DOS does not allow filenames that begin with a dot.
7030 lt_cv_objdir=_libs
7031 fi
7032 rmdir .libs 2>/dev/null
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7035 $as_echo "$lt_cv_objdir" >&6; }
7036 objdir=$lt_cv_objdir
7037
7038
7039
7040
7041
7042 cat >>confdefs.h <<_ACEOF
7043 #define LT_OBJDIR "$lt_cv_objdir/"
7044 _ACEOF
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 case $host_os in
7063 aix3*)
7064 # AIX sometimes has problems with the GCC collect2 program. For some
7065 # reason, if we set the COLLECT_NAMES environment variable, the problems
7066 # vanish in a puff of smoke.
7067 if test "X${COLLECT_NAMES+set}" != Xset; then
7068 COLLECT_NAMES=
7069 export COLLECT_NAMES
7070 fi
7071 ;;
7072 esac
7073
7074 # Sed substitution that helps us do robust quoting. It backslashifies
7075 # metacharacters that are still active within double-quoted strings.
7076 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7077
7078 # Same as above, but do not quote variable references.
7079 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7080
7081 # Sed substitution to delay expansion of an escaped shell variable in a
7082 # double_quote_subst'ed string.
7083 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7084
7085 # Sed substitution to delay expansion of an escaped single quote.
7086 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7087
7088 # Sed substitution to avoid accidental globbing in evaled expressions
7089 no_glob_subst='s/\*/\\\*/g'
7090
7091 # Global variables:
7092 ofile=libtool
7093 can_build_shared=yes
7094
7095 # All known linkers require a `.a' archive for static linking (except MSVC,
7096 # which needs '.lib').
7097 libext=a
7098
7099 with_gnu_ld="$lt_cv_prog_gnu_ld"
7100
7101 old_CC="$CC"
7102 old_CFLAGS="$CFLAGS"
7103
7104 # Set sane defaults for various variables
7105 test -z "$CC" && CC=cc
7106 test -z "$LTCC" && LTCC=$CC
7107 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7108 test -z "$LD" && LD=ld
7109 test -z "$ac_objext" && ac_objext=o
7110
7111 for cc_temp in $compiler""; do
7112 case $cc_temp in
7113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7115 \-*) ;;
7116 *) break;;
7117 esac
7118 done
7119 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7120
7121
7122 # Only perform the check for file, if the check method requires it
7123 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7124 case $deplibs_check_method in
7125 file_magic*)
7126 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7128 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7129 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 case $MAGIC_CMD in
7133 [\\/*] | ?:[\\/]*)
7134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 lt_save_MAGIC_CMD="$MAGIC_CMD"
7138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7140 for ac_dir in $ac_dummy; do
7141 IFS="$lt_save_ifs"
7142 test -z "$ac_dir" && ac_dir=.
7143 if test -f $ac_dir/${ac_tool_prefix}file; then
7144 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7145 if test -n "$file_magic_test_file"; then
7146 case $deplibs_check_method in
7147 "file_magic "*)
7148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7151 $EGREP "$file_magic_regex" > /dev/null; then
7152 :
7153 else
7154 cat <<_LT_EOF 1>&2
7155
7156 *** Warning: the command libtool uses to detect shared libraries,
7157 *** $file_magic_cmd, produces output that libtool cannot recognize.
7158 *** The result is that libtool may fail to recognize shared libraries
7159 *** as such. This will affect the creation of libtool libraries that
7160 *** depend on shared libraries, but programs linked with such libtool
7161 *** libraries will work regardless of this problem. Nevertheless, you
7162 *** may want to report the problem to your system manager and/or to
7163 *** [email protected]
7164
7165 _LT_EOF
7166 fi ;;
7167 esac
7168 fi
7169 break
7170 fi
7171 done
7172 IFS="$lt_save_ifs"
7173 MAGIC_CMD="$lt_save_MAGIC_CMD"
7174 ;;
7175 esac
7176 fi
7177
7178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7179 if test -n "$MAGIC_CMD"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7181 $as_echo "$MAGIC_CMD" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188
7189
7190
7191 if test -z "$lt_cv_path_MAGIC_CMD"; then
7192 if test -n "$ac_tool_prefix"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7194 $as_echo_n "checking for file... " >&6; }
7195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 case $MAGIC_CMD in
7199 [\\/*] | ?:[\\/]*)
7200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7201 ;;
7202 *)
7203 lt_save_MAGIC_CMD="$MAGIC_CMD"
7204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7206 for ac_dir in $ac_dummy; do
7207 IFS="$lt_save_ifs"
7208 test -z "$ac_dir" && ac_dir=.
7209 if test -f $ac_dir/file; then
7210 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7211 if test -n "$file_magic_test_file"; then
7212 case $deplibs_check_method in
7213 "file_magic "*)
7214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7217 $EGREP "$file_magic_regex" > /dev/null; then
7218 :
7219 else
7220 cat <<_LT_EOF 1>&2
7221
7222 *** Warning: the command libtool uses to detect shared libraries,
7223 *** $file_magic_cmd, produces output that libtool cannot recognize.
7224 *** The result is that libtool may fail to recognize shared libraries
7225 *** as such. This will affect the creation of libtool libraries that
7226 *** depend on shared libraries, but programs linked with such libtool
7227 *** libraries will work regardless of this problem. Nevertheless, you
7228 *** may want to report the problem to your system manager and/or to
7229 *** [email protected]
7230
7231 _LT_EOF
7232 fi ;;
7233 esac
7234 fi
7235 break
7236 fi
7237 done
7238 IFS="$lt_save_ifs"
7239 MAGIC_CMD="$lt_save_MAGIC_CMD"
7240 ;;
7241 esac
7242 fi
7243
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if test -n "$MAGIC_CMD"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7247 $as_echo "$MAGIC_CMD" >&6; }
7248 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 else
7255 MAGIC_CMD=:
7256 fi
7257 fi
7258
7259 fi
7260 ;;
7261 esac
7262
7263 # Use C for the default configuration in the libtool script
7264
7265 lt_save_CC="$CC"
7266 ac_ext=c
7267 ac_cpp='$CPP $CPPFLAGS'
7268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271
7272
7273 # Source file extension for C test sources.
7274 ac_ext=c
7275
7276 # Object file extension for compiled C test sources.
7277 objext=o
7278 objext=$objext
7279
7280 # Code to be used in simple compile tests
7281 lt_simple_compile_test_code="int some_variable = 0;"
7282
7283 # Code to be used in simple link tests
7284 lt_simple_link_test_code='int main(){return(0);}'
7285
7286
7287
7288
7289
7290
7291
7292 # If no C compiler was specified, use CC.
7293 LTCC=${LTCC-"$CC"}
7294
7295 # If no C compiler flags were specified, use CFLAGS.
7296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7297
7298 # Allow CC to be a program name with arguments.
7299 compiler=$CC
7300
7301 # Save the default compiler, since it gets overwritten when the other
7302 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7303 compiler_DEFAULT=$CC
7304
7305 # save warnings/boilerplate of simple test code
7306 ac_outfile=conftest.$ac_objext
7307 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7308 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7309 _lt_compiler_boilerplate=`cat conftest.err`
7310 $RM conftest*
7311
7312 ac_outfile=conftest.$ac_objext
7313 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7314 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7315 _lt_linker_boilerplate=`cat conftest.err`
7316 $RM -r conftest*
7317
7318
7319 if test -n "$compiler"; then
7320
7321 lt_prog_compiler_no_builtin_flag=
7322
7323 if test "$GCC" = yes; then
7324 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7327 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7328 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 lt_cv_prog_compiler_rtti_exceptions=no
7332 ac_outfile=conftest.$ac_objext
7333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7334 lt_compiler_flag="-fno-rtti -fno-exceptions"
7335 # Insert the option either (1) after the last *FLAGS variable, or
7336 # (2) before a word containing "conftest.", or (3) at the end.
7337 # Note that $ac_compile itself does not contain backslashes and begins
7338 # with a dollar sign (not a hyphen), so the echo should work correctly.
7339 # The option is referenced via a variable to avoid confusing sed.
7340 lt_compile=`echo "$ac_compile" | $SED \
7341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7343 -e 's:$: $lt_compiler_flag:'`
7344 (eval echo "\"\$as_me:7344: $lt_compile\"" >&5)
7345 (eval "$lt_compile" 2>conftest.err)
7346 ac_status=$?
7347 cat conftest.err >&5
7348 echo "$as_me:7348: \$? = $ac_status" >&5
7349 if (exit $ac_status) && test -s "$ac_outfile"; then
7350 # The compiler can only warn and ignore the option if not recognized
7351 # So say no if there are warnings other than the usual output.
7352 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7355 lt_cv_prog_compiler_rtti_exceptions=yes
7356 fi
7357 fi
7358 $RM conftest*
7359
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7362 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7363
7364 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7365 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7366 else
7367 :
7368 fi
7369
7370 fi
7371
7372
7373
7374
7375
7376
7377 lt_prog_compiler_wl=
7378 lt_prog_compiler_pic=
7379 lt_prog_compiler_static=
7380
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7382 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7383
7384 if test "$GCC" = yes; then
7385 lt_prog_compiler_wl='-Wl,'
7386 lt_prog_compiler_static='-static'
7387
7388 case $host_os in
7389 aix*)
7390 # All AIX code is PIC.
7391 if test "$host_cpu" = ia64; then
7392 # AIX 5 now supports IA64 processor
7393 lt_prog_compiler_static='-Bstatic'
7394 fi
7395 ;;
7396
7397 amigaos*)
7398 case $host_cpu in
7399 powerpc)
7400 # see comment about AmigaOS4 .so support
7401 lt_prog_compiler_pic='-fPIC'
7402 ;;
7403 m68k)
7404 # FIXME: we need at least 68020 code to build shared libraries, but
7405 # adding the `-m68020' flag to GCC prevents building anything better,
7406 # like `-m68040'.
7407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7408 ;;
7409 esac
7410 ;;
7411
7412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7413 # PIC is the default for these OSes.
7414 ;;
7415
7416 mingw* | cygwin* | pw32* | os2* | cegcc*)
7417 # This hack is so that the source file can tell whether it is being
7418 # built for inclusion in a dll (and should export symbols for example).
7419 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7420 # (--disable-auto-import) libraries
7421 lt_prog_compiler_pic='-DDLL_EXPORT'
7422 ;;
7423
7424 darwin* | rhapsody*)
7425 # PIC is the default on this platform
7426 # Common symbols not allowed in MH_DYLIB files
7427 lt_prog_compiler_pic='-fno-common'
7428 ;;
7429
7430 hpux*)
7431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7433 # sets the default TLS model and affects inlining.
7434 case $host_cpu in
7435 hppa*64*)
7436 # +Z the default
7437 ;;
7438 *)
7439 lt_prog_compiler_pic='-fPIC'
7440 ;;
7441 esac
7442 ;;
7443
7444 interix[3-9]*)
7445 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7446 # Instead, we relocate shared libraries at runtime.
7447 ;;
7448
7449 msdosdjgpp*)
7450 # Just because we use GCC doesn't mean we suddenly get shared libraries
7451 # on systems that don't support them.
7452 lt_prog_compiler_can_build_shared=no
7453 enable_shared=no
7454 ;;
7455
7456 *nto* | *qnx*)
7457 # QNX uses GNU C++, but need to define -shared option too, otherwise
7458 # it will coredump.
7459 lt_prog_compiler_pic='-fPIC -shared'
7460 ;;
7461
7462 sysv4*MP*)
7463 if test -d /usr/nec; then
7464 lt_prog_compiler_pic=-Kconform_pic
7465 fi
7466 ;;
7467
7468 *)
7469 lt_prog_compiler_pic='-fPIC'
7470 ;;
7471 esac
7472 else
7473 # PORTME Check for flag to pass linker flags through the system compiler.
7474 case $host_os in
7475 aix*)
7476 lt_prog_compiler_wl='-Wl,'
7477 if test "$host_cpu" = ia64; then
7478 # AIX 5 now supports IA64 processor
7479 lt_prog_compiler_static='-Bstatic'
7480 else
7481 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7482 fi
7483 ;;
7484
7485 mingw* | cygwin* | pw32* | os2* | cegcc*)
7486 # This hack is so that the source file can tell whether it is being
7487 # built for inclusion in a dll (and should export symbols for example).
7488 lt_prog_compiler_pic='-DDLL_EXPORT'
7489 ;;
7490
7491 hpux9* | hpux10* | hpux11*)
7492 lt_prog_compiler_wl='-Wl,'
7493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7494 # not for PA HP-UX.
7495 case $host_cpu in
7496 hppa*64*|ia64*)
7497 # +Z the default
7498 ;;
7499 *)
7500 lt_prog_compiler_pic='+Z'
7501 ;;
7502 esac
7503 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7504 lt_prog_compiler_static='${wl}-a ${wl}archive'
7505 ;;
7506
7507 irix5* | irix6* | nonstopux*)
7508 lt_prog_compiler_wl='-Wl,'
7509 # PIC (with -KPIC) is the default.
7510 lt_prog_compiler_static='-non_shared'
7511 ;;
7512
7513 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7514 case $cc_basename in
7515 # old Intel for x86_64 which still supported -KPIC.
7516 ecc*)
7517 lt_prog_compiler_wl='-Wl,'
7518 lt_prog_compiler_pic='-KPIC'
7519 lt_prog_compiler_static='-static'
7520 ;;
7521 # icc used to be incompatible with GCC.
7522 # ICC 10 doesn't accept -KPIC any more.
7523 icc* | ifort*)
7524 lt_prog_compiler_wl='-Wl,'
7525 lt_prog_compiler_pic='-fPIC'
7526 lt_prog_compiler_static='-static'
7527 ;;
7528 # Lahey Fortran 8.1.
7529 lf95*)
7530 lt_prog_compiler_wl='-Wl,'
7531 lt_prog_compiler_pic='--shared'
7532 lt_prog_compiler_static='--static'
7533 ;;
7534 pgcc* | pgf77* | pgf90* | pgf95*)
7535 # Portland Group compilers (*not* the Pentium gcc compiler,
7536 # which looks to be a dead project)
7537 lt_prog_compiler_wl='-Wl,'
7538 lt_prog_compiler_pic='-fpic'
7539 lt_prog_compiler_static='-Bstatic'
7540 ;;
7541 ccc*)
7542 lt_prog_compiler_wl='-Wl,'
7543 # All Alpha code is PIC.
7544 lt_prog_compiler_static='-non_shared'
7545 ;;
7546 xl*)
7547 # IBM XL C 8.0/Fortran 10.1 on PPC
7548 lt_prog_compiler_wl='-Wl,'
7549 lt_prog_compiler_pic='-qpic'
7550 lt_prog_compiler_static='-qstaticlink'
7551 ;;
7552 *)
7553 case `$CC -V 2>&1 | sed 5q` in
7554 *Sun\ C*)
7555 # Sun C 5.9
7556 lt_prog_compiler_pic='-KPIC'
7557 lt_prog_compiler_static='-Bstatic'
7558 lt_prog_compiler_wl='-Wl,'
7559 ;;
7560 *Sun\ F*)
7561 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7562 lt_prog_compiler_pic='-KPIC'
7563 lt_prog_compiler_static='-Bstatic'
7564 lt_prog_compiler_wl=''
7565 ;;
7566 esac
7567 ;;
7568 esac
7569 ;;
7570
7571 newsos6)
7572 lt_prog_compiler_pic='-KPIC'
7573 lt_prog_compiler_static='-Bstatic'
7574 ;;
7575
7576 *nto* | *qnx*)
7577 # QNX uses GNU C++, but need to define -shared option too, otherwise
7578 # it will coredump.
7579 lt_prog_compiler_pic='-fPIC -shared'
7580 ;;
7581
7582 osf3* | osf4* | osf5*)
7583 lt_prog_compiler_wl='-Wl,'
7584 # All OSF/1 code is PIC.
7585 lt_prog_compiler_static='-non_shared'
7586 ;;
7587
7588 rdos*)
7589 lt_prog_compiler_static='-non_shared'
7590 ;;
7591
7592 solaris*)
7593 lt_prog_compiler_pic='-KPIC'
7594 lt_prog_compiler_static='-Bstatic'
7595 case $cc_basename in
7596 f77* | f90* | f95*)
7597 lt_prog_compiler_wl='-Qoption ld ';;
7598 *)
7599 lt_prog_compiler_wl='-Wl,';;
7600 esac
7601 ;;
7602
7603 sunos4*)
7604 lt_prog_compiler_wl='-Qoption ld '
7605 lt_prog_compiler_pic='-PIC'
7606 lt_prog_compiler_static='-Bstatic'
7607 ;;
7608
7609 sysv4 | sysv4.2uw2* | sysv4.3*)
7610 lt_prog_compiler_wl='-Wl,'
7611 lt_prog_compiler_pic='-KPIC'
7612 lt_prog_compiler_static='-Bstatic'
7613 ;;
7614
7615 sysv4*MP*)
7616 if test -d /usr/nec ;then
7617 lt_prog_compiler_pic='-Kconform_pic'
7618 lt_prog_compiler_static='-Bstatic'
7619 fi
7620 ;;
7621
7622 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7623 lt_prog_compiler_wl='-Wl,'
7624 lt_prog_compiler_pic='-KPIC'
7625 lt_prog_compiler_static='-Bstatic'
7626 ;;
7627
7628 unicos*)
7629 lt_prog_compiler_wl='-Wl,'
7630 lt_prog_compiler_can_build_shared=no
7631 ;;
7632
7633 uts4*)
7634 lt_prog_compiler_pic='-pic'
7635 lt_prog_compiler_static='-Bstatic'
7636 ;;
7637
7638 *)
7639 lt_prog_compiler_can_build_shared=no
7640 ;;
7641 esac
7642 fi
7643
7644 case $host_os in
7645 # For platforms which do not support PIC, -DPIC is meaningless:
7646 *djgpp*)
7647 lt_prog_compiler_pic=
7648 ;;
7649 *)
7650 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7651 ;;
7652 esac
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7654 $as_echo "$lt_prog_compiler_pic" >&6; }
7655
7656
7657
7658
7659
7660
7661 #
7662 # Check to make sure the PIC flag actually works.
7663 #
7664 if test -n "$lt_prog_compiler_pic"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7666 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7667 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 lt_cv_prog_compiler_pic_works=no
7671 ac_outfile=conftest.$ac_objext
7672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7673 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7674 # Insert the option either (1) after the last *FLAGS variable, or
7675 # (2) before a word containing "conftest.", or (3) at the end.
7676 # Note that $ac_compile itself does not contain backslashes and begins
7677 # with a dollar sign (not a hyphen), so the echo should work correctly.
7678 # The option is referenced via a variable to avoid confusing sed.
7679 lt_compile=`echo "$ac_compile" | $SED \
7680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7682 -e 's:$: $lt_compiler_flag:'`
7683 (eval echo "\"\$as_me:7683: $lt_compile\"" >&5)
7684 (eval "$lt_compile" 2>conftest.err)
7685 ac_status=$?
7686 cat conftest.err >&5
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 if (exit $ac_status) && test -s "$ac_outfile"; then
7689 # The compiler can only warn and ignore the option if not recognized
7690 # So say no if there are warnings other than the usual output.
7691 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7694 lt_cv_prog_compiler_pic_works=yes
7695 fi
7696 fi
7697 $RM conftest*
7698
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7701 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7702
7703 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7704 case $lt_prog_compiler_pic in
7705 "" | " "*) ;;
7706 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7707 esac
7708 else
7709 lt_prog_compiler_pic=
7710 lt_prog_compiler_can_build_shared=no
7711 fi
7712
7713 fi
7714
7715
7716
7717
7718
7719
7720 #
7721 # Check to make sure the static flag actually works.
7722 #
7723 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7725 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7726 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 lt_cv_prog_compiler_static_works=no
7730 save_LDFLAGS="$LDFLAGS"
7731 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7732 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7733 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7734 # The linker can only warn and ignore the option if not recognized
7735 # So say no if there are warnings
7736 if test -s conftest.err; then
7737 # Append any errors to the config.log.
7738 cat conftest.err 1>&5
7739 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7741 if diff conftest.exp conftest.er2 >/dev/null; then
7742 lt_cv_prog_compiler_static_works=yes
7743 fi
7744 else
7745 lt_cv_prog_compiler_static_works=yes
7746 fi
7747 fi
7748 $RM -r conftest*
7749 LDFLAGS="$save_LDFLAGS"
7750
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7753 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7754
7755 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7756 :
7757 else
7758 lt_prog_compiler_static=
7759 fi
7760
7761
7762
7763
7764
7765
7766
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7769 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 lt_cv_prog_compiler_c_o=no
7773 $RM -r conftest 2>/dev/null
7774 mkdir conftest
7775 cd conftest
7776 mkdir out
7777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7778
7779 lt_compiler_flag="-o out/conftest2.$ac_objext"
7780 # Insert the option either (1) after the last *FLAGS variable, or
7781 # (2) before a word containing "conftest.", or (3) at the end.
7782 # Note that $ac_compile itself does not contain backslashes and begins
7783 # with a dollar sign (not a hyphen), so the echo should work correctly.
7784 lt_compile=`echo "$ac_compile" | $SED \
7785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7787 -e 's:$: $lt_compiler_flag:'`
7788 (eval echo "\"\$as_me:7788: $lt_compile\"" >&5)
7789 (eval "$lt_compile" 2>out/conftest.err)
7790 ac_status=$?
7791 cat out/conftest.err >&5
7792 echo "$as_me:7792: \$? = $ac_status" >&5
7793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7794 then
7795 # The compiler can only warn and ignore the option if not recognized
7796 # So say no if there are warnings
7797 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7800 lt_cv_prog_compiler_c_o=yes
7801 fi
7802 fi
7803 chmod u+w . 2>&5
7804 $RM conftest*
7805 # SGI C++ compiler will create directory out/ii_files/ for
7806 # template instantiation
7807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7808 $RM out/* && rmdir out
7809 cd ..
7810 $RM -r conftest
7811 $RM conftest*
7812
7813 fi
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7815 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7816
7817
7818
7819
7820
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7824 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 lt_cv_prog_compiler_c_o=no
7828 $RM -r conftest 2>/dev/null
7829 mkdir conftest
7830 cd conftest
7831 mkdir out
7832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7833
7834 lt_compiler_flag="-o out/conftest2.$ac_objext"
7835 # Insert the option either (1) after the last *FLAGS variable, or
7836 # (2) before a word containing "conftest.", or (3) at the end.
7837 # Note that $ac_compile itself does not contain backslashes and begins
7838 # with a dollar sign (not a hyphen), so the echo should work correctly.
7839 lt_compile=`echo "$ac_compile" | $SED \
7840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7842 -e 's:$: $lt_compiler_flag:'`
7843 (eval echo "\"\$as_me:7843: $lt_compile\"" >&5)
7844 (eval "$lt_compile" 2>out/conftest.err)
7845 ac_status=$?
7846 cat out/conftest.err >&5
7847 echo "$as_me:7847: \$? = $ac_status" >&5
7848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7849 then
7850 # The compiler can only warn and ignore the option if not recognized
7851 # So say no if there are warnings
7852 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7855 lt_cv_prog_compiler_c_o=yes
7856 fi
7857 fi
7858 chmod u+w . 2>&5
7859 $RM conftest*
7860 # SGI C++ compiler will create directory out/ii_files/ for
7861 # template instantiation
7862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7863 $RM out/* && rmdir out
7864 cd ..
7865 $RM -r conftest
7866 $RM conftest*
7867
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7870 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7871
7872
7873
7874
7875 hard_links="nottested"
7876 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7877 # do not overwrite the value of need_locks provided by the user
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7879 $as_echo_n "checking if we can lock with hard links... " >&6; }
7880 hard_links=yes
7881 $RM conftest*
7882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7883 touch conftest.a
7884 ln conftest.a conftest.b 2>&5 || hard_links=no
7885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7887 $as_echo "$hard_links" >&6; }
7888 if test "$hard_links" = no; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7890 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7891 need_locks=warn
7892 fi
7893 else
7894 need_locks=no
7895 fi
7896
7897
7898
7899
7900
7901
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7903 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7904
7905 runpath_var=
7906 allow_undefined_flag=
7907 always_export_symbols=no
7908 archive_cmds=
7909 archive_expsym_cmds=
7910 compiler_needs_object=no
7911 enable_shared_with_static_runtimes=no
7912 export_dynamic_flag_spec=
7913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7914 hardcode_automatic=no
7915 hardcode_direct=no
7916 hardcode_direct_absolute=no
7917 hardcode_libdir_flag_spec=
7918 hardcode_libdir_flag_spec_ld=
7919 hardcode_libdir_separator=
7920 hardcode_minus_L=no
7921 hardcode_shlibpath_var=unsupported
7922 inherit_rpath=no
7923 link_all_deplibs=unknown
7924 module_cmds=
7925 module_expsym_cmds=
7926 old_archive_from_new_cmds=
7927 old_archive_from_expsyms_cmds=
7928 thread_safe_flag_spec=
7929 whole_archive_flag_spec=
7930 # include_expsyms should be a list of space-separated symbols to be *always*
7931 # included in the symbol list
7932 include_expsyms=
7933 # exclude_expsyms can be an extended regexp of symbols to exclude
7934 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7935 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7936 # as well as any symbol that contains `d'.
7937 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7939 # platforms (ab)use it in PIC code, but their linkers get confused if
7940 # the symbol is explicitly referenced. Since portable code cannot
7941 # rely on this symbol name, it's probably fine to never include it in
7942 # preloaded symbol tables.
7943 # Exclude shared library initialization/finalization symbols.
7944 extract_expsyms_cmds=
7945
7946 case $host_os in
7947 cygwin* | mingw* | pw32* | cegcc*)
7948 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7949 # When not using gcc, we currently assume that we are using
7950 # Microsoft Visual C++.
7951 if test "$GCC" != yes; then
7952 with_gnu_ld=no
7953 fi
7954 ;;
7955 interix*)
7956 # we just hope/assume this is gcc and not c89 (= MSVC++)
7957 with_gnu_ld=yes
7958 ;;
7959 openbsd*)
7960 with_gnu_ld=no
7961 ;;
7962 linux* | k*bsd*-gnu)
7963 link_all_deplibs=no
7964 ;;
7965 esac
7966
7967 ld_shlibs=yes
7968 if test "$with_gnu_ld" = yes; then
7969 # If archive_cmds runs LD, not CC, wlarc should be empty
7970 wlarc='${wl}'
7971
7972 # Set some defaults for GNU ld with shared library support. These
7973 # are reset later if shared libraries are not supported. Putting them
7974 # here allows them to be overridden if necessary.
7975 runpath_var=LD_RUN_PATH
7976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7977 export_dynamic_flag_spec='${wl}--export-dynamic'
7978 # ancient GNU ld didn't support --whole-archive et. al.
7979 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7981 else
7982 whole_archive_flag_spec=
7983 fi
7984 supports_anon_versioning=no
7985 case `$LD -v 2>&1` in
7986 *GNU\ gold*) supports_anon_versioning=yes ;;
7987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7990 *\ 2.11.*) ;; # other 2.11 versions
7991 *) supports_anon_versioning=yes ;;
7992 esac
7993
7994 # See if GNU ld supports shared libraries.
7995 case $host_os in
7996 aix[3-9]*)
7997 # On AIX/PPC, the GNU linker is very broken
7998 if test "$host_cpu" != ia64; then
7999 ld_shlibs=no
8000 cat <<_LT_EOF 1>&2
8001
8002 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8003 *** to be unable to reliably create shared libraries on AIX.
8004 *** Therefore, libtool is disabling shared libraries support. If you
8005 *** really care for shared libraries, you may want to modify your PATH
8006 *** so that a non-GNU linker is found, and then restart.
8007
8008 _LT_EOF
8009 fi
8010 ;;
8011
8012 amigaos*)
8013 case $host_cpu in
8014 powerpc)
8015 # see comment about AmigaOS4 .so support
8016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8017 archive_expsym_cmds=''
8018 ;;
8019 m68k)
8020 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)'
8021 hardcode_libdir_flag_spec='-L$libdir'
8022 hardcode_minus_L=yes
8023 ;;
8024 esac
8025 ;;
8026
8027 beos*)
8028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8029 allow_undefined_flag=unsupported
8030 # Joseph Beckenbach <[email protected]> says some releases of gcc
8031 # support --undefined. This deserves some investigation. FIXME
8032 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033 else
8034 ld_shlibs=no
8035 fi
8036 ;;
8037
8038 cygwin* | mingw* | pw32* | cegcc*)
8039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8040 # as there is no search path for DLLs.
8041 hardcode_libdir_flag_spec='-L$libdir'
8042 allow_undefined_flag=unsupported
8043 always_export_symbols=no
8044 enable_shared_with_static_runtimes=yes
8045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8046
8047 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8049 # If the export-symbols file already is a .def file (1st line
8050 # is EXPORTS), use it as is; otherwise, prepend...
8051 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8052 cp $export_symbols $output_objdir/$soname.def;
8053 else
8054 echo EXPORTS > $output_objdir/$soname.def;
8055 cat $export_symbols >> $output_objdir/$soname.def;
8056 fi~
8057 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8058 else
8059 ld_shlibs=no
8060 fi
8061 ;;
8062
8063 interix[3-9]*)
8064 hardcode_direct=no
8065 hardcode_shlibpath_var=no
8066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8067 export_dynamic_flag_spec='${wl}-E'
8068 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8069 # Instead, shared libraries are loaded at an image base (0x10000000 by
8070 # default) and relocated if they conflict, which is a slow very memory
8071 # consuming and fragmenting process. To avoid this, we pick a random,
8072 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8073 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8075 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'
8076 ;;
8077
8078 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8079 tmp_diet=no
8080 if test "$host_os" = linux-dietlibc; then
8081 case $cc_basename in
8082 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8083 esac
8084 fi
8085 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8086 && test "$tmp_diet" = no
8087 then
8088 tmp_addflag=
8089 tmp_sharedflag='-shared'
8090 case $cc_basename,$host_cpu in
8091 pgcc*) # Portland Group C compiler
8092 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'
8093 tmp_addflag=' $pic_flag'
8094 ;;
8095 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8096 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'
8097 tmp_addflag=' $pic_flag -Mnomain' ;;
8098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8099 tmp_addflag=' -i_dynamic' ;;
8100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8101 tmp_addflag=' -i_dynamic -nofor_main' ;;
8102 ifc* | ifort*) # Intel Fortran compiler
8103 tmp_addflag=' -nofor_main' ;;
8104 lf95*) # Lahey Fortran 8.1
8105 whole_archive_flag_spec=
8106 tmp_sharedflag='--shared' ;;
8107 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8108 tmp_sharedflag='-qmkshrobj'
8109 tmp_addflag= ;;
8110 esac
8111 case `$CC -V 2>&1 | sed 5q` in
8112 *Sun\ C*) # Sun C 5.9
8113 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'
8114 compiler_needs_object=yes
8115 tmp_sharedflag='-G' ;;
8116 *Sun\ F*) # Sun Fortran 8.3
8117 tmp_sharedflag='-G' ;;
8118 esac
8119 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8120
8121 if test "x$supports_anon_versioning" = xyes; then
8122 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8124 echo "local: *; };" >> $output_objdir/$libname.ver~
8125 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8126 fi
8127
8128 case $cc_basename in
8129 xlf*)
8130 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8131 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8132 hardcode_libdir_flag_spec=
8133 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8134 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8135 if test "x$supports_anon_versioning" = xyes; then
8136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8138 echo "local: *; };" >> $output_objdir/$libname.ver~
8139 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8140 fi
8141 ;;
8142 esac
8143 else
8144 ld_shlibs=no
8145 fi
8146 ;;
8147
8148 netbsd* | netbsdelf*-gnu)
8149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8150 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8151 wlarc=
8152 else
8153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8155 fi
8156 ;;
8157
8158 solaris*)
8159 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8160 ld_shlibs=no
8161 cat <<_LT_EOF 1>&2
8162
8163 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8164 *** create shared libraries on Solaris systems. Therefore, libtool
8165 *** is disabling shared libraries support. We urge you to upgrade GNU
8166 *** binutils to release 2.9.1 or newer. Another option is to modify
8167 *** your PATH or compiler configuration so that the native linker is
8168 *** used, and then restart.
8169
8170 _LT_EOF
8171 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8174 else
8175 ld_shlibs=no
8176 fi
8177 ;;
8178
8179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8180 case `$LD -v 2>&1` in
8181 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8182 ld_shlibs=no
8183 cat <<_LT_EOF 1>&2
8184
8185 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8186 *** reliably create shared libraries on SCO systems. Therefore, libtool
8187 *** is disabling shared libraries support. We urge you to upgrade GNU
8188 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8189 *** your PATH or compiler configuration so that the native linker is
8190 *** used, and then restart.
8191
8192 _LT_EOF
8193 ;;
8194 *)
8195 # For security reasons, it is highly recommended that you always
8196 # use absolute paths for naming shared libraries, and exclude the
8197 # DT_RUNPATH tag from executables and libraries. But doing so
8198 # requires that you compile everything twice, which is a pain.
8199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8203 else
8204 ld_shlibs=no
8205 fi
8206 ;;
8207 esac
8208 ;;
8209
8210 sunos4*)
8211 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8212 wlarc=
8213 hardcode_direct=yes
8214 hardcode_shlibpath_var=no
8215 ;;
8216
8217 *)
8218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221 else
8222 ld_shlibs=no
8223 fi
8224 ;;
8225 esac
8226
8227 if test "$ld_shlibs" = no; then
8228 runpath_var=
8229 hardcode_libdir_flag_spec=
8230 export_dynamic_flag_spec=
8231 whole_archive_flag_spec=
8232 fi
8233 else
8234 # PORTME fill in a description of your system's linker (not GNU ld)
8235 case $host_os in
8236 aix3*)
8237 allow_undefined_flag=unsupported
8238 always_export_symbols=yes
8239 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'
8240 # Note: this linker hardcodes the directories in LIBPATH if there
8241 # are no directories specified by -L.
8242 hardcode_minus_L=yes
8243 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8244 # Neither direct hardcoding nor static linking is supported with a
8245 # broken collect2.
8246 hardcode_direct=unsupported
8247 fi
8248 ;;
8249
8250 aix[4-9]*)
8251 if test "$host_cpu" = ia64; then
8252 # On IA64, the linker does run time linking by default, so we don't
8253 # have to do anything special.
8254 aix_use_runtimelinking=no
8255 exp_sym_flag='-Bexport'
8256 no_entry_flag=""
8257 else
8258 # If we're using GNU nm, then we don't want the "-C" option.
8259 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8260 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8261 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'
8262 else
8263 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'
8264 fi
8265 aix_use_runtimelinking=no
8266
8267 # Test if we are trying to use run time linking or normal
8268 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8269 # need to do runtime linking.
8270 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8271 for ld_flag in $LDFLAGS; do
8272 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8273 aix_use_runtimelinking=yes
8274 break
8275 fi
8276 done
8277 ;;
8278 esac
8279
8280 exp_sym_flag='-bexport'
8281 no_entry_flag='-bnoentry'
8282 fi
8283
8284 # When large executables or shared objects are built, AIX ld can
8285 # have problems creating the table of contents. If linking a library
8286 # or program results in "error TOC overflow" add -mminimal-toc to
8287 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8288 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8289
8290 archive_cmds=''
8291 hardcode_direct=yes
8292 hardcode_direct_absolute=yes
8293 hardcode_libdir_separator=':'
8294 link_all_deplibs=yes
8295 file_list_spec='${wl}-f,'
8296
8297 if test "$GCC" = yes; then
8298 case $host_os in aix4.[012]|aix4.[012].*)
8299 # We only want to do this on AIX 4.2 and lower, the check
8300 # below for broken collect2 doesn't work under 4.3+
8301 collect2name=`${CC} -print-prog-name=collect2`
8302 if test -f "$collect2name" &&
8303 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8304 then
8305 # We have reworked collect2
8306 :
8307 else
8308 # We have old collect2
8309 hardcode_direct=unsupported
8310 # It fails to find uninstalled libraries when the uninstalled
8311 # path is not listed in the libpath. Setting hardcode_minus_L
8312 # to unsupported forces relinking
8313 hardcode_minus_L=yes
8314 hardcode_libdir_flag_spec='-L$libdir'
8315 hardcode_libdir_separator=
8316 fi
8317 ;;
8318 esac
8319 shared_flag='-shared'
8320 if test "$aix_use_runtimelinking" = yes; then
8321 shared_flag="$shared_flag "'${wl}-G'
8322 fi
8323 link_all_deplibs=no
8324 else
8325 # not using gcc
8326 if test "$host_cpu" = ia64; then
8327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8328 # chokes on -Wl,-G. The following line is correct:
8329 shared_flag='-G'
8330 else
8331 if test "$aix_use_runtimelinking" = yes; then
8332 shared_flag='${wl}-G'
8333 else
8334 shared_flag='${wl}-bM:SRE'
8335 fi
8336 fi
8337 fi
8338
8339 export_dynamic_flag_spec='${wl}-bexpall'
8340 # It seems that -bexpall does not export symbols beginning with
8341 # underscore (_), so it is better to generate a list of symbols to export.
8342 always_export_symbols=yes
8343 if test "$aix_use_runtimelinking" = yes; then
8344 # Warning - without using the other runtime loading flags (-brtl),
8345 # -berok will link without error, but may produce a broken library.
8346 allow_undefined_flag='-berok'
8347 # Determine the default libpath from the value encoded in an
8348 # empty executable.
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351
8352 int
8353 main ()
8354 {
8355
8356 ;
8357 return 0;
8358 }
8359 _ACEOF
8360 if ac_fn_c_try_link "$LINENO"; then :
8361
8362 lt_aix_libpath_sed='
8363 /Import File Strings/,/^$/ {
8364 /^0/ {
8365 s/^0 *\(.*\)$/\1/
8366 p
8367 }
8368 }'
8369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8370 # Check for a 64-bit object if we didn't find anything.
8371 if test -z "$aix_libpath"; then
8372 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8373 fi
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
8377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8378
8379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8380 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"
8381 else
8382 if test "$host_cpu" = ia64; then
8383 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8384 allow_undefined_flag="-z nodefs"
8385 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"
8386 else
8387 # Determine the default libpath from the value encoded in an
8388 # empty executable.
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391
8392 int
8393 main ()
8394 {
8395
8396 ;
8397 return 0;
8398 }
8399 _ACEOF
8400 if ac_fn_c_try_link "$LINENO"; then :
8401
8402 lt_aix_libpath_sed='
8403 /Import File Strings/,/^$/ {
8404 /^0/ {
8405 s/^0 *\(.*\)$/\1/
8406 p
8407 }
8408 }'
8409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8410 # Check for a 64-bit object if we didn't find anything.
8411 if test -z "$aix_libpath"; then
8412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8413 fi
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8418
8419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420 # Warning - without using the other run time loading flags,
8421 # -berok will link without error, but may produce a broken library.
8422 no_undefined_flag=' ${wl}-bernotok'
8423 allow_undefined_flag=' ${wl}-berok'
8424 # Exported symbols can be pulled into shared objects from archives
8425 whole_archive_flag_spec='$convenience'
8426 archive_cmds_need_lc=yes
8427 # This is similar to how AIX traditionally builds its shared libraries.
8428 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'
8429 fi
8430 fi
8431 ;;
8432
8433 amigaos*)
8434 case $host_cpu in
8435 powerpc)
8436 # see comment about AmigaOS4 .so support
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 archive_expsym_cmds=''
8439 ;;
8440 m68k)
8441 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)'
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_minus_L=yes
8444 ;;
8445 esac
8446 ;;
8447
8448 bsdi[45]*)
8449 export_dynamic_flag_spec=-rdynamic
8450 ;;
8451
8452 cygwin* | mingw* | pw32* | cegcc*)
8453 # When not using gcc, we currently assume that we are using
8454 # Microsoft Visual C++.
8455 # hardcode_libdir_flag_spec is actually meaningless, as there is
8456 # no search path for DLLs.
8457 hardcode_libdir_flag_spec=' '
8458 allow_undefined_flag=unsupported
8459 # Tell ltmain to make .lib files, not .a files.
8460 libext=lib
8461 # Tell ltmain to make .dll files, not .so files.
8462 shrext_cmds=".dll"
8463 # FIXME: Setting linknames here is a bad hack.
8464 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8465 # The linker will automatically build a .lib file if we build a DLL.
8466 old_archive_from_new_cmds='true'
8467 # FIXME: Should let the user specify the lib program.
8468 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8469 fix_srcfile_path='`cygpath -w "$srcfile"`'
8470 enable_shared_with_static_runtimes=yes
8471 ;;
8472
8473 darwin* | rhapsody*)
8474
8475
8476 archive_cmds_need_lc=no
8477 hardcode_direct=no
8478 hardcode_automatic=yes
8479 hardcode_shlibpath_var=unsupported
8480 whole_archive_flag_spec=''
8481 link_all_deplibs=yes
8482 allow_undefined_flag="$_lt_dar_allow_undefined"
8483 case $cc_basename in
8484 ifort*) _lt_dar_can_shared=yes ;;
8485 *) _lt_dar_can_shared=$GCC ;;
8486 esac
8487 if test "$_lt_dar_can_shared" = "yes"; then
8488 output_verbose_link_cmd=echo
8489 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8490 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8491 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}"
8492 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}"
8493
8494 else
8495 ld_shlibs=no
8496 fi
8497
8498 ;;
8499
8500 dgux*)
8501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_shlibpath_var=no
8504 ;;
8505
8506 freebsd1*)
8507 ld_shlibs=no
8508 ;;
8509
8510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8511 # support. Future versions do this automatically, but an explicit c++rt0.o
8512 # does not break anything, and helps significantly (at the cost of a little
8513 # extra space).
8514 freebsd2.2*)
8515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8516 hardcode_libdir_flag_spec='-R$libdir'
8517 hardcode_direct=yes
8518 hardcode_shlibpath_var=no
8519 ;;
8520
8521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8522 freebsd2*)
8523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8524 hardcode_direct=yes
8525 hardcode_minus_L=yes
8526 hardcode_shlibpath_var=no
8527 ;;
8528
8529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8530 freebsd* | dragonfly*)
8531 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8532 hardcode_libdir_flag_spec='-R$libdir'
8533 hardcode_direct=yes
8534 hardcode_shlibpath_var=no
8535 ;;
8536
8537 hpux9*)
8538 if test "$GCC" = yes; then
8539 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'
8540 else
8541 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'
8542 fi
8543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8544 hardcode_libdir_separator=:
8545 hardcode_direct=yes
8546
8547 # hardcode_minus_L: Not really in the search PATH,
8548 # but as the default location of the library.
8549 hardcode_minus_L=yes
8550 export_dynamic_flag_spec='${wl}-E'
8551 ;;
8552
8553 hpux10*)
8554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556 else
8557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8558 fi
8559 if test "$with_gnu_ld" = no; then
8560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8561 hardcode_libdir_flag_spec_ld='+b $libdir'
8562 hardcode_libdir_separator=:
8563 hardcode_direct=yes
8564 hardcode_direct_absolute=yes
8565 export_dynamic_flag_spec='${wl}-E'
8566 # hardcode_minus_L: Not really in the search PATH,
8567 # but as the default location of the library.
8568 hardcode_minus_L=yes
8569 fi
8570 ;;
8571
8572 hpux11*)
8573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8574 case $host_cpu in
8575 hppa*64*)
8576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8577 ;;
8578 ia64*)
8579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8580 ;;
8581 *)
8582 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8583 ;;
8584 esac
8585 else
8586 case $host_cpu in
8587 hppa*64*)
8588 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8589 ;;
8590 ia64*)
8591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8592 ;;
8593 *)
8594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8595 ;;
8596 esac
8597 fi
8598 if test "$with_gnu_ld" = no; then
8599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8600 hardcode_libdir_separator=:
8601
8602 case $host_cpu in
8603 hppa*64*|ia64*)
8604 hardcode_direct=no
8605 hardcode_shlibpath_var=no
8606 ;;
8607 *)
8608 hardcode_direct=yes
8609 hardcode_direct_absolute=yes
8610 export_dynamic_flag_spec='${wl}-E'
8611
8612 # hardcode_minus_L: Not really in the search PATH,
8613 # but as the default location of the library.
8614 hardcode_minus_L=yes
8615 ;;
8616 esac
8617 fi
8618 ;;
8619
8620 irix5* | irix6* | nonstopux*)
8621 if test "$GCC" = yes; then
8622 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'
8623 # Try to use the -exported_symbol ld option, if it does not
8624 # work, assume that -exports_file does not work either and
8625 # implicitly export all symbols.
8626 save_LDFLAGS="$LDFLAGS"
8627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 int foo(void) {}
8631 _ACEOF
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 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'
8634
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 LDFLAGS="$save_LDFLAGS"
8639 else
8640 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'
8641 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'
8642 fi
8643 archive_cmds_need_lc='no'
8644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8645 hardcode_libdir_separator=:
8646 inherit_rpath=yes
8647 link_all_deplibs=yes
8648 ;;
8649
8650 netbsd* | netbsdelf*-gnu)
8651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8653 else
8654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8655 fi
8656 hardcode_libdir_flag_spec='-R$libdir'
8657 hardcode_direct=yes
8658 hardcode_shlibpath_var=no
8659 ;;
8660
8661 newsos6)
8662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663 hardcode_direct=yes
8664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665 hardcode_libdir_separator=:
8666 hardcode_shlibpath_var=no
8667 ;;
8668
8669 *nto* | *qnx*)
8670 ;;
8671
8672 openbsd*)
8673 if test -f /usr/libexec/ld.so; then
8674 hardcode_direct=yes
8675 hardcode_shlibpath_var=no
8676 hardcode_direct_absolute=yes
8677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8681 export_dynamic_flag_spec='${wl}-E'
8682 else
8683 case $host_os in
8684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686 hardcode_libdir_flag_spec='-R$libdir'
8687 ;;
8688 *)
8689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8691 ;;
8692 esac
8693 fi
8694 else
8695 ld_shlibs=no
8696 fi
8697 ;;
8698
8699 os2*)
8700 hardcode_libdir_flag_spec='-L$libdir'
8701 hardcode_minus_L=yes
8702 allow_undefined_flag=unsupported
8703 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'
8704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8705 ;;
8706
8707 osf3*)
8708 if test "$GCC" = yes; then
8709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8710 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'
8711 else
8712 allow_undefined_flag=' -expect_unresolved \*'
8713 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'
8714 fi
8715 archive_cmds_need_lc='no'
8716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717 hardcode_libdir_separator=:
8718 ;;
8719
8720 osf4* | osf5*) # as osf3* with the addition of -msym flag
8721 if test "$GCC" = yes; then
8722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8723 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'
8724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8725 else
8726 allow_undefined_flag=' -expect_unresolved \*'
8727 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'
8728 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~
8729 $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'
8730
8731 # Both c and cxx compiler support -rpath directly
8732 hardcode_libdir_flag_spec='-rpath $libdir'
8733 fi
8734 archive_cmds_need_lc='no'
8735 hardcode_libdir_separator=:
8736 ;;
8737
8738 solaris*)
8739 no_undefined_flag=' -z defs'
8740 if test "$GCC" = yes; then
8741 wlarc='${wl}'
8742 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8744 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8745 else
8746 case `$CC -V 2>&1` in
8747 *"Compilers 5.0"*)
8748 wlarc=''
8749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8752 ;;
8753 *)
8754 wlarc='${wl}'
8755 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8758 ;;
8759 esac
8760 fi
8761 hardcode_libdir_flag_spec='-R$libdir'
8762 hardcode_shlibpath_var=no
8763 case $host_os in
8764 solaris2.[0-5] | solaris2.[0-5].*) ;;
8765 *)
8766 # The compiler driver will combine and reorder linker options,
8767 # but understands `-z linker_flag'. GCC discards it without `$wl',
8768 # but is careful enough not to reorder.
8769 # Supported since Solaris 2.6 (maybe 2.5.1?)
8770 if test "$GCC" = yes; then
8771 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8772 else
8773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8774 fi
8775 ;;
8776 esac
8777 link_all_deplibs=yes
8778 ;;
8779
8780 sunos4*)
8781 if test "x$host_vendor" = xsequent; then
8782 # Use $CC to link under sequent, because it throws in some extra .o
8783 # files that make .init and .fini sections work.
8784 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8785 else
8786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8787 fi
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 hardcode_direct=yes
8790 hardcode_minus_L=yes
8791 hardcode_shlibpath_var=no
8792 ;;
8793
8794 sysv4)
8795 case $host_vendor in
8796 sni)
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_direct=yes # is this really true???
8799 ;;
8800 siemens)
8801 ## LD is ld it makes a PLAMLIB
8802 ## CC just makes a GrossModule.
8803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8804 reload_cmds='$CC -r -o $output$reload_objs'
8805 hardcode_direct=no
8806 ;;
8807 motorola)
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8810 ;;
8811 esac
8812 runpath_var='LD_RUN_PATH'
8813 hardcode_shlibpath_var=no
8814 ;;
8815
8816 sysv4.3*)
8817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_shlibpath_var=no
8819 export_dynamic_flag_spec='-Bexport'
8820 ;;
8821
8822 sysv4*MP*)
8823 if test -d /usr/nec; then
8824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8825 hardcode_shlibpath_var=no
8826 runpath_var=LD_RUN_PATH
8827 hardcode_runpath_var=yes
8828 ld_shlibs=yes
8829 fi
8830 ;;
8831
8832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8833 no_undefined_flag='${wl}-z,text'
8834 archive_cmds_need_lc=no
8835 hardcode_shlibpath_var=no
8836 runpath_var='LD_RUN_PATH'
8837
8838 if test "$GCC" = yes; then
8839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 else
8842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 fi
8845 ;;
8846
8847 sysv5* | sco3.2v5* | sco5v6*)
8848 # Note: We can NOT use -z defs as we might desire, because we do not
8849 # link with -lc, and that would cause any symbols used from libc to
8850 # always be unresolved, which means just about no library would
8851 # ever link correctly. If we're not using GNU ld we use -z text
8852 # though, which does catch some bad symbols but isn't as heavy-handed
8853 # as -z defs.
8854 no_undefined_flag='${wl}-z,text'
8855 allow_undefined_flag='${wl}-z,nodefs'
8856 archive_cmds_need_lc=no
8857 hardcode_shlibpath_var=no
8858 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8859 hardcode_libdir_separator=':'
8860 link_all_deplibs=yes
8861 export_dynamic_flag_spec='${wl}-Bexport'
8862 runpath_var='LD_RUN_PATH'
8863
8864 if test "$GCC" = yes; then
8865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 else
8868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8870 fi
8871 ;;
8872
8873 uts4*)
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_libdir_flag_spec='-L$libdir'
8876 hardcode_shlibpath_var=no
8877 ;;
8878
8879 *)
8880 ld_shlibs=no
8881 ;;
8882 esac
8883
8884 if test x$host_vendor = xsni; then
8885 case $host in
8886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8887 export_dynamic_flag_spec='${wl}-Blargedynsym'
8888 ;;
8889 esac
8890 fi
8891 fi
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8894 $as_echo "$ld_shlibs" >&6; }
8895 test "$ld_shlibs" = no && can_build_shared=no
8896
8897 with_gnu_ld=$with_gnu_ld
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913 #
8914 # Do we need to explicitly link libc?
8915 #
8916 case "x$archive_cmds_need_lc" in
8917 x|xyes)
8918 # Assume -lc should be added
8919 archive_cmds_need_lc=yes
8920
8921 if test "$enable_shared" = yes && test "$GCC" = yes; then
8922 case $archive_cmds in
8923 *'~'*)
8924 # FIXME: we may have to deal with multi-command sequences.
8925 ;;
8926 '$CC '*)
8927 # Test whether the compiler implicitly links with -lc since on some
8928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8929 # to ld, don't add -lc before -lgcc.
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8931 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8932 $RM conftest*
8933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8934
8935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8936 (eval $ac_compile) 2>&5
8937 ac_status=$?
8938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8939 test $ac_status = 0; } 2>conftest.err; then
8940 soname=conftest
8941 lib=conftest
8942 libobjs=conftest.$ac_objext
8943 deplibs=
8944 wl=$lt_prog_compiler_wl
8945 pic_flag=$lt_prog_compiler_pic
8946 compiler_flags=-v
8947 linker_flags=-v
8948 verstring=
8949 output_objdir=.
8950 libname=conftest
8951 lt_save_allow_undefined_flag=$allow_undefined_flag
8952 allow_undefined_flag=
8953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8954 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8955 ac_status=$?
8956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8957 test $ac_status = 0; }
8958 then
8959 archive_cmds_need_lc=no
8960 else
8961 archive_cmds_need_lc=yes
8962 fi
8963 allow_undefined_flag=$lt_save_allow_undefined_flag
8964 else
8965 cat conftest.err 1>&5
8966 fi
8967 $RM conftest*
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8969 $as_echo "$archive_cmds_need_lc" >&6; }
8970 ;;
8971 esac
8972 fi
8973 ;;
8974 esac
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9133 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9134
9135 if test "$GCC" = yes; then
9136 case $host_os in
9137 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9138 *) lt_awk_arg="/^libraries:/" ;;
9139 esac
9140 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9141 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9142 # if the path contains ";" then we assume it to be the separator
9143 # otherwise default to the standard path separator (i.e. ":") - it is
9144 # assumed that no part of a normal pathname contains ";" but that should
9145 # okay in the real world where ";" in dirpaths is itself problematic.
9146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9147 else
9148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9149 fi
9150 # Ok, now we have the path, separated by spaces, we can step through it
9151 # and add multilib dir if necessary.
9152 lt_tmp_lt_search_path_spec=
9153 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9154 for lt_sys_path in $lt_search_path_spec; do
9155 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9157 else
9158 test -d "$lt_sys_path" && \
9159 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9160 fi
9161 done
9162 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9163 BEGIN {RS=" "; FS="/|\n";} {
9164 lt_foo="";
9165 lt_count=0;
9166 for (lt_i = NF; lt_i > 0; lt_i--) {
9167 if ($lt_i != "" && $lt_i != ".") {
9168 if ($lt_i == "..") {
9169 lt_count++;
9170 } else {
9171 if (lt_count == 0) {
9172 lt_foo="/" $lt_i lt_foo;
9173 } else {
9174 lt_count--;
9175 }
9176 }
9177 }
9178 }
9179 if (lt_foo != "") { lt_freq[lt_foo]++; }
9180 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9181 }'`
9182 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9183 else
9184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9185 fi
9186 library_names_spec=
9187 libname_spec='lib$name'
9188 soname_spec=
9189 shrext_cmds=".so"
9190 postinstall_cmds=
9191 postuninstall_cmds=
9192 finish_cmds=
9193 finish_eval=
9194 shlibpath_var=
9195 shlibpath_overrides_runpath=unknown
9196 version_type=none
9197 dynamic_linker="$host_os ld.so"
9198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9199 need_lib_prefix=unknown
9200 hardcode_into_libs=no
9201
9202 # when you set need_version to no, make sure it does not cause -set_version
9203 # flags to be left without arguments
9204 need_version=unknown
9205
9206 case $host_os in
9207 aix3*)
9208 version_type=linux
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9210 shlibpath_var=LIBPATH
9211
9212 # AIX 3 has no versioning support, so we append a major version to the name.
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 ;;
9215
9216 aix[4-9]*)
9217 version_type=linux
9218 need_lib_prefix=no
9219 need_version=no
9220 hardcode_into_libs=yes
9221 if test "$host_cpu" = ia64; then
9222 # AIX 5 supports IA64
9223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 else
9226 # With GCC up to 2.95.x, collect2 would create an import file
9227 # for dependence libraries. The import file would start with
9228 # the line `#! .'. This would cause the generated library to
9229 # depend on `.', always an invalid library. This was fixed in
9230 # development snapshots of GCC prior to 3.0.
9231 case $host_os in
9232 aix4 | aix4.[01] | aix4.[01].*)
9233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9234 echo ' yes '
9235 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9236 :
9237 else
9238 can_build_shared=no
9239 fi
9240 ;;
9241 esac
9242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9243 # soname into executable. Probably we can add versioning support to
9244 # collect2, so additional links can be useful in future.
9245 if test "$aix_use_runtimelinking" = yes; then
9246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9247 # instead of lib<name>.a to let people know that these are not
9248 # typical AIX shared libraries.
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 else
9251 # We preserve .a as extension for shared libraries through AIX4.2
9252 # and later when we are not doing run time linking.
9253 library_names_spec='${libname}${release}.a $libname.a'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 fi
9256 shlibpath_var=LIBPATH
9257 fi
9258 ;;
9259
9260 amigaos*)
9261 case $host_cpu in
9262 powerpc)
9263 # Since July 2007 AmigaOS4 officially supports .so libraries.
9264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 ;;
9267 m68k)
9268 library_names_spec='$libname.ixlibrary $libname.a'
9269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9270 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'
9271 ;;
9272 esac
9273 ;;
9274
9275 beos*)
9276 library_names_spec='${libname}${shared_ext}'
9277 dynamic_linker="$host_os ld.so"
9278 shlibpath_var=LIBRARY_PATH
9279 ;;
9280
9281 bsdi[45]*)
9282 version_type=linux
9283 need_version=no
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9290 # the default ld.so.conf also contains /usr/contrib/lib and
9291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9292 # libtool to hard-code these into programs
9293 ;;
9294
9295 cygwin* | mingw* | pw32* | cegcc*)
9296 version_type=windows
9297 shrext_cmds=".dll"
9298 need_version=no
9299 need_lib_prefix=no
9300
9301 case $GCC,$host_os in
9302 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9303 library_names_spec='$libname.dll.a'
9304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9305 postinstall_cmds='base_file=`basename \${file}`~
9306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9307 dldir=$destdir/`dirname \$dlpath`~
9308 test -d \$dldir || mkdir -p \$dldir~
9309 $install_prog $dir/$dlname \$dldir/$dlname~
9310 chmod a+x \$dldir/$dlname~
9311 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9312 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9313 fi'
9314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9315 dlpath=$dir/\$dldll~
9316 $RM \$dlpath'
9317 shlibpath_overrides_runpath=yes
9318
9319 case $host_os in
9320 cygwin*)
9321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9324 ;;
9325 mingw* | cegcc*)
9326 # MinGW DLLs use traditional 'lib' prefix
9327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9328 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9329 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9330 # It is most probably a Windows format PATH printed by
9331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9332 # path with ; separators, and with drive letters. We can handle the
9333 # drive letters (cygwin fileutils understands them), so leave them,
9334 # especially as we might pass files found there to a mingw objdump,
9335 # which wouldn't understand a cygwinified path. Ahh.
9336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9337 else
9338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9339 fi
9340 ;;
9341 pw32*)
9342 # pw32 DLLs use 'pw' prefix rather than 'lib'
9343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9344 ;;
9345 esac
9346 ;;
9347
9348 *)
9349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9350 ;;
9351 esac
9352 dynamic_linker='Win32 ld.exe'
9353 # FIXME: first we should search . and the directory the executable is in
9354 shlibpath_var=PATH
9355 ;;
9356
9357 darwin* | rhapsody*)
9358 dynamic_linker="$host_os dyld"
9359 version_type=darwin
9360 need_lib_prefix=no
9361 need_version=no
9362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9363 soname_spec='${libname}${release}${major}$shared_ext'
9364 shlibpath_overrides_runpath=yes
9365 shlibpath_var=DYLD_LIBRARY_PATH
9366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9367
9368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9370 ;;
9371
9372 dgux*)
9373 version_type=linux
9374 need_lib_prefix=no
9375 need_version=no
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 ;;
9380
9381 freebsd1*)
9382 dynamic_linker=no
9383 ;;
9384
9385 freebsd* | dragonfly*)
9386 # DragonFly does not have aout. When/if they implement a new
9387 # versioning mechanism, adjust this.
9388 if test -x /usr/bin/objformat; then
9389 objformat=`/usr/bin/objformat`
9390 else
9391 case $host_os in
9392 freebsd[123]*) objformat=aout ;;
9393 *) objformat=elf ;;
9394 esac
9395 fi
9396 version_type=freebsd-$objformat
9397 case $version_type in
9398 freebsd-elf*)
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9400 need_version=no
9401 need_lib_prefix=no
9402 ;;
9403 freebsd-*)
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9405 need_version=yes
9406 ;;
9407 esac
9408 shlibpath_var=LD_LIBRARY_PATH
9409 case $host_os in
9410 freebsd2*)
9411 shlibpath_overrides_runpath=yes
9412 ;;
9413 freebsd3.[01]* | freebsdelf3.[01]*)
9414 shlibpath_overrides_runpath=yes
9415 hardcode_into_libs=yes
9416 ;;
9417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9419 shlibpath_overrides_runpath=no
9420 hardcode_into_libs=yes
9421 ;;
9422 *) # from 4.6 on, and DragonFly
9423 shlibpath_overrides_runpath=yes
9424 hardcode_into_libs=yes
9425 ;;
9426 esac
9427 ;;
9428
9429 gnu*)
9430 version_type=linux
9431 need_lib_prefix=no
9432 need_version=no
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 hardcode_into_libs=yes
9437 ;;
9438
9439 hpux9* | hpux10* | hpux11*)
9440 # Give a soname corresponding to the major version so that dld.sl refuses to
9441 # link against other versions.
9442 version_type=sunos
9443 need_lib_prefix=no
9444 need_version=no
9445 case $host_cpu in
9446 ia64*)
9447 shrext_cmds='.so'
9448 hardcode_into_libs=yes
9449 dynamic_linker="$host_os dld.so"
9450 shlibpath_var=LD_LIBRARY_PATH
9451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 if test "X$HPUX_IA64_MODE" = X32; then
9455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9456 else
9457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9458 fi
9459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9460 ;;
9461 hppa*64*)
9462 shrext_cmds='.sl'
9463 hardcode_into_libs=yes
9464 dynamic_linker="$host_os dld.sl"
9465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9471 ;;
9472 *)
9473 shrext_cmds='.sl'
9474 dynamic_linker="$host_os dld.sl"
9475 shlibpath_var=SHLIB_PATH
9476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 ;;
9480 esac
9481 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9482 postinstall_cmds='chmod 555 $lib'
9483 ;;
9484
9485 interix[3-9]*)
9486 version_type=linux
9487 need_lib_prefix=no
9488 need_version=no
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=no
9494 hardcode_into_libs=yes
9495 ;;
9496
9497 irix5* | irix6* | nonstopux*)
9498 case $host_os in
9499 nonstopux*) version_type=nonstopux ;;
9500 *)
9501 if test "$lt_cv_prog_gnu_ld" = yes; then
9502 version_type=linux
9503 else
9504 version_type=irix
9505 fi ;;
9506 esac
9507 need_lib_prefix=no
9508 need_version=no
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9511 case $host_os in
9512 irix5* | nonstopux*)
9513 libsuff= shlibsuff=
9514 ;;
9515 *)
9516 case $LD in # libtool.m4 will add one of these switches to LD
9517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9518 libsuff= shlibsuff= libmagic=32-bit;;
9519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9520 libsuff=32 shlibsuff=N32 libmagic=N32;;
9521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9522 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9523 *) libsuff= shlibsuff= libmagic=never-match;;
9524 esac
9525 ;;
9526 esac
9527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9528 shlibpath_overrides_runpath=no
9529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9531 hardcode_into_libs=yes
9532 ;;
9533
9534 # No shared lib support for Linux oldld, aout, or coff.
9535 linux*oldld* | linux*aout* | linux*coff*)
9536 dynamic_linker=no
9537 ;;
9538
9539 # This must be Linux ELF.
9540 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9541 version_type=linux
9542 need_lib_prefix=no
9543 need_version=no
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 shlibpath_overrides_runpath=no
9549 # Some binutils ld are patched to set DT_RUNPATH
9550 save_LDFLAGS=$LDFLAGS
9551 save_libdir=$libdir
9552 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9553 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556
9557 int
9558 main ()
9559 {
9560
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_c_try_link "$LINENO"; then :
9566 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9567 shlibpath_overrides_runpath=yes
9568 fi
9569 fi
9570 rm -f core conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LDFLAGS=$save_LDFLAGS
9573 libdir=$save_libdir
9574
9575 # This implies no fast_install, which is unacceptable.
9576 # Some rework will be needed to allow for fast_install
9577 # before this can be enabled.
9578 hardcode_into_libs=yes
9579
9580 # Append ld.so.conf contents to the search path
9581 if test -f /etc/ld.so.conf; then
9582 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' ' '`
9583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9584 fi
9585
9586 # We used to test for /lib/ld.so.1 and disable shared libraries on
9587 # powerpc, because MkLinux only supported shared libraries with the
9588 # GNU dynamic linker. Since this was broken with cross compilers,
9589 # most powerpc-linux boxes support dynamic linking these days and
9590 # people can always --disable-shared, the test was removed, and we
9591 # assume the GNU/Linux dynamic linker is in use.
9592 dynamic_linker='GNU/Linux ld.so'
9593 ;;
9594
9595 netbsdelf*-gnu)
9596 version_type=linux
9597 need_lib_prefix=no
9598 need_version=no
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 shlibpath_overrides_runpath=no
9603 hardcode_into_libs=yes
9604 dynamic_linker='NetBSD ld.elf_so'
9605 ;;
9606
9607 netbsd*)
9608 version_type=sunos
9609 need_lib_prefix=no
9610 need_version=no
9611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9614 dynamic_linker='NetBSD (a.out) ld.so'
9615 else
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 dynamic_linker='NetBSD ld.elf_so'
9619 fi
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes
9622 hardcode_into_libs=yes
9623 ;;
9624
9625 newsos6)
9626 version_type=linux
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 shlibpath_overrides_runpath=yes
9630 ;;
9631
9632 *nto* | *qnx*)
9633 version_type=qnx
9634 need_lib_prefix=no
9635 need_version=no
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 shlibpath_overrides_runpath=no
9640 hardcode_into_libs=yes
9641 dynamic_linker='ldqnx.so'
9642 ;;
9643
9644 openbsd*)
9645 version_type=sunos
9646 sys_lib_dlsearch_path_spec="/usr/lib"
9647 need_lib_prefix=no
9648 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9649 case $host_os in
9650 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9651 *) need_version=no ;;
9652 esac
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9657 case $host_os in
9658 openbsd2.[89] | openbsd2.[89].*)
9659 shlibpath_overrides_runpath=no
9660 ;;
9661 *)
9662 shlibpath_overrides_runpath=yes
9663 ;;
9664 esac
9665 else
9666 shlibpath_overrides_runpath=yes
9667 fi
9668 ;;
9669
9670 os2*)
9671 libname_spec='$name'
9672 shrext_cmds=".dll"
9673 need_lib_prefix=no
9674 library_names_spec='$libname${shared_ext} $libname.a'
9675 dynamic_linker='OS/2 ld.exe'
9676 shlibpath_var=LIBPATH
9677 ;;
9678
9679 osf3* | osf4* | osf5*)
9680 version_type=osf
9681 need_lib_prefix=no
9682 need_version=no
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9687 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9688 ;;
9689
9690 rdos*)
9691 dynamic_linker=no
9692 ;;
9693
9694 solaris*)
9695 version_type=linux
9696 need_lib_prefix=no
9697 need_version=no
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 shlibpath_overrides_runpath=yes
9702 hardcode_into_libs=yes
9703 # ldd complains unless libraries are executable
9704 postinstall_cmds='chmod +x $lib'
9705 ;;
9706
9707 sunos4*)
9708 version_type=sunos
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9710 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=yes
9713 if test "$with_gnu_ld" = yes; then
9714 need_lib_prefix=no
9715 fi
9716 need_version=yes
9717 ;;
9718
9719 sysv4 | sysv4.3*)
9720 version_type=linux
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 case $host_vendor in
9725 sni)
9726 shlibpath_overrides_runpath=no
9727 need_lib_prefix=no
9728 runpath_var=LD_RUN_PATH
9729 ;;
9730 siemens)
9731 need_lib_prefix=no
9732 ;;
9733 motorola)
9734 need_lib_prefix=no
9735 need_version=no
9736 shlibpath_overrides_runpath=no
9737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9738 ;;
9739 esac
9740 ;;
9741
9742 sysv4*MP*)
9743 if test -d /usr/nec ;then
9744 version_type=linux
9745 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9746 soname_spec='$libname${shared_ext}.$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 fi
9749 ;;
9750
9751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9752 version_type=freebsd-elf
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 shlibpath_overrides_runpath=yes
9759 hardcode_into_libs=yes
9760 if test "$with_gnu_ld" = yes; then
9761 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9762 else
9763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9764 case $host_os in
9765 sco3.2v5*)
9766 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9767 ;;
9768 esac
9769 fi
9770 sys_lib_dlsearch_path_spec='/usr/lib'
9771 ;;
9772
9773 tpf*)
9774 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9775 version_type=linux
9776 need_lib_prefix=no
9777 need_version=no
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=no
9781 hardcode_into_libs=yes
9782 ;;
9783
9784 uts4*)
9785 version_type=linux
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 ;;
9790
9791 *)
9792 dynamic_linker=no
9793 ;;
9794 esac
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9796 $as_echo "$dynamic_linker" >&6; }
9797 test "$dynamic_linker" = no && can_build_shared=no
9798
9799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9800 if test "$GCC" = yes; then
9801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9802 fi
9803
9804 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9805 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9806 fi
9807 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9808 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9809 fi
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9898 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9899 hardcode_action=
9900 if test -n "$hardcode_libdir_flag_spec" ||
9901 test -n "$runpath_var" ||
9902 test "X$hardcode_automatic" = "Xyes" ; then
9903
9904 # We can hardcode non-existent directories.
9905 if test "$hardcode_direct" != no &&
9906 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9907 # have to relink, otherwise we might link with an installed library
9908 # when we should be linking with a yet-to-be-installed one
9909 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9910 test "$hardcode_minus_L" != no; then
9911 # Linking always hardcodes the temporary library directory.
9912 hardcode_action=relink
9913 else
9914 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9915 hardcode_action=immediate
9916 fi
9917 else
9918 # We cannot hardcode anything, or else we can only hardcode existing
9919 # directories.
9920 hardcode_action=unsupported
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9923 $as_echo "$hardcode_action" >&6; }
9924
9925 if test "$hardcode_action" = relink ||
9926 test "$inherit_rpath" = yes; then
9927 # Fast installation is not supported
9928 enable_fast_install=no
9929 elif test "$shlibpath_overrides_runpath" = yes ||
9930 test "$enable_shared" = no; then
9931 # Fast installation is not necessary
9932 enable_fast_install=needless
9933 fi
9934
9935
9936
9937
9938
9939
9940 if test "x$enable_dlopen" != xyes; then
9941 enable_dlopen=unknown
9942 enable_dlopen_self=unknown
9943 enable_dlopen_self_static=unknown
9944 else
9945 lt_cv_dlopen=no
9946 lt_cv_dlopen_libs=
9947
9948 case $host_os in
9949 beos*)
9950 lt_cv_dlopen="load_add_on"
9951 lt_cv_dlopen_libs=
9952 lt_cv_dlopen_self=yes
9953 ;;
9954
9955 mingw* | pw32* | cegcc*)
9956 lt_cv_dlopen="LoadLibrary"
9957 lt_cv_dlopen_libs=
9958 ;;
9959
9960 cygwin*)
9961 lt_cv_dlopen="dlopen"
9962 lt_cv_dlopen_libs=
9963 ;;
9964
9965 darwin*)
9966 # if libdl is installed we need to link against it
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9968 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9969 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-ldl $LIBS"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char dlopen ();
9984 int
9985 main ()
9986 {
9987 return dlopen ();
9988 ;
9989 return 0;
9990 }
9991 _ACEOF
9992 if ac_fn_c_try_link "$LINENO"; then :
9993 ac_cv_lib_dl_dlopen=yes
9994 else
9995 ac_cv_lib_dl_dlopen=no
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10003 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10005 else
10006
10007 lt_cv_dlopen="dyld"
10008 lt_cv_dlopen_libs=
10009 lt_cv_dlopen_self=yes
10010
10011 fi
10012
10013 ;;
10014
10015 *)
10016 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10017 if test "x$ac_cv_func_shl_load" = x""yes; then :
10018 lt_cv_dlopen="shl_load"
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10021 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10022 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldld $LIBS"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029
10030 /* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char shl_load ();
10037 int
10038 main ()
10039 {
10040 return shl_load ();
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"; then :
10046 ac_cv_lib_dld_shl_load=yes
10047 else
10048 ac_cv_lib_dld_shl_load=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_lib_save_LIBS
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10055 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10056 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10058 else
10059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10060 if test "x$ac_cv_func_dlopen" = x""yes; then :
10061 lt_cv_dlopen="dlopen"
10062 else
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10064 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10065 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-ldl $LIBS"
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char dlopen ();
10080 int
10081 main ()
10082 {
10083 return dlopen ();
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"; then :
10089 ac_cv_lib_dl_dlopen=yes
10090 else
10091 ac_cv_lib_dl_dlopen=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10099 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10103 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10104 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-lsvld $LIBS"
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char dlopen ();
10119 int
10120 main ()
10121 {
10122 return dlopen ();
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 ac_cv_lib_svld_dlopen=yes
10129 else
10130 ac_cv_lib_svld_dlopen=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10137 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10138 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10142 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldld $LIBS"
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150
10151 /* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char dld_link ();
10158 int
10159 main ()
10160 {
10161 return dld_link ();
10162 ;
10163 return 0;
10164 }
10165 _ACEOF
10166 if ac_fn_c_try_link "$LINENO"; then :
10167 ac_cv_lib_dld_dld_link=yes
10168 else
10169 ac_cv_lib_dld_dld_link=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10177 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10179 fi
10180
10181
10182 fi
10183
10184
10185 fi
10186
10187
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196 ;;
10197 esac
10198
10199 if test "x$lt_cv_dlopen" != xno; then
10200 enable_dlopen=yes
10201 else
10202 enable_dlopen=no
10203 fi
10204
10205 case $lt_cv_dlopen in
10206 dlopen)
10207 save_CPPFLAGS="$CPPFLAGS"
10208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10209
10210 save_LDFLAGS="$LDFLAGS"
10211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10212
10213 save_LIBS="$LIBS"
10214 LIBS="$lt_cv_dlopen_libs $LIBS"
10215
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10217 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10218 if test "${lt_cv_dlopen_self+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 if test "$cross_compiling" = yes; then :
10222 lt_cv_dlopen_self=cross
10223 else
10224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10225 lt_status=$lt_dlunknown
10226 cat > conftest.$ac_ext <<_LT_EOF
10227 #line 10227 "configure"
10228 #include "confdefs.h"
10229
10230 #if HAVE_DLFCN_H
10231 #include <dlfcn.h>
10232 #endif
10233
10234 #include <stdio.h>
10235
10236 #ifdef RTLD_GLOBAL
10237 # define LT_DLGLOBAL RTLD_GLOBAL
10238 #else
10239 # ifdef DL_GLOBAL
10240 # define LT_DLGLOBAL DL_GLOBAL
10241 # else
10242 # define LT_DLGLOBAL 0
10243 # endif
10244 #endif
10245
10246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10247 find out it does not work in some platform. */
10248 #ifndef LT_DLLAZY_OR_NOW
10249 # ifdef RTLD_LAZY
10250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10251 # else
10252 # ifdef DL_LAZY
10253 # define LT_DLLAZY_OR_NOW DL_LAZY
10254 # else
10255 # ifdef RTLD_NOW
10256 # define LT_DLLAZY_OR_NOW RTLD_NOW
10257 # else
10258 # ifdef DL_NOW
10259 # define LT_DLLAZY_OR_NOW DL_NOW
10260 # else
10261 # define LT_DLLAZY_OR_NOW 0
10262 # endif
10263 # endif
10264 # endif
10265 # endif
10266 #endif
10267
10268 void fnord() { int i=42;}
10269 int main ()
10270 {
10271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10272 int status = $lt_dlunknown;
10273
10274 if (self)
10275 {
10276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10278 /* dlclose (self); */
10279 }
10280 else
10281 puts (dlerror ());
10282
10283 return status;
10284 }
10285 _LT_EOF
10286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10287 (eval $ac_link) 2>&5
10288 ac_status=$?
10289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10290 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10291 (./conftest; exit; ) >&5 2>/dev/null
10292 lt_status=$?
10293 case x$lt_status in
10294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10296 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10297 esac
10298 else :
10299 # compilation failed
10300 lt_cv_dlopen_self=no
10301 fi
10302 fi
10303 rm -fr conftest*
10304
10305
10306 fi
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10308 $as_echo "$lt_cv_dlopen_self" >&6; }
10309
10310 if test "x$lt_cv_dlopen_self" = xyes; then
10311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10313 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10314 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 if test "$cross_compiling" = yes; then :
10318 lt_cv_dlopen_self_static=cross
10319 else
10320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10321 lt_status=$lt_dlunknown
10322 cat > conftest.$ac_ext <<_LT_EOF
10323 #line 10323 "configure"
10324 #include "confdefs.h"
10325
10326 #if HAVE_DLFCN_H
10327 #include <dlfcn.h>
10328 #endif
10329
10330 #include <stdio.h>
10331
10332 #ifdef RTLD_GLOBAL
10333 # define LT_DLGLOBAL RTLD_GLOBAL
10334 #else
10335 # ifdef DL_GLOBAL
10336 # define LT_DLGLOBAL DL_GLOBAL
10337 # else
10338 # define LT_DLGLOBAL 0
10339 # endif
10340 #endif
10341
10342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10343 find out it does not work in some platform. */
10344 #ifndef LT_DLLAZY_OR_NOW
10345 # ifdef RTLD_LAZY
10346 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10347 # else
10348 # ifdef DL_LAZY
10349 # define LT_DLLAZY_OR_NOW DL_LAZY
10350 # else
10351 # ifdef RTLD_NOW
10352 # define LT_DLLAZY_OR_NOW RTLD_NOW
10353 # else
10354 # ifdef DL_NOW
10355 # define LT_DLLAZY_OR_NOW DL_NOW
10356 # else
10357 # define LT_DLLAZY_OR_NOW 0
10358 # endif
10359 # endif
10360 # endif
10361 # endif
10362 #endif
10363
10364 void fnord() { int i=42;}
10365 int main ()
10366 {
10367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10368 int status = $lt_dlunknown;
10369
10370 if (self)
10371 {
10372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10374 /* dlclose (self); */
10375 }
10376 else
10377 puts (dlerror ());
10378
10379 return status;
10380 }
10381 _LT_EOF
10382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10383 (eval $ac_link) 2>&5
10384 ac_status=$?
10385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10386 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10387 (./conftest; exit; ) >&5 2>/dev/null
10388 lt_status=$?
10389 case x$lt_status in
10390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10392 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10393 esac
10394 else :
10395 # compilation failed
10396 lt_cv_dlopen_self_static=no
10397 fi
10398 fi
10399 rm -fr conftest*
10400
10401
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10405 fi
10406
10407 CPPFLAGS="$save_CPPFLAGS"
10408 LDFLAGS="$save_LDFLAGS"
10409 LIBS="$save_LIBS"
10410 ;;
10411 esac
10412
10413 case $lt_cv_dlopen_self in
10414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10415 *) enable_dlopen_self=unknown ;;
10416 esac
10417
10418 case $lt_cv_dlopen_self_static in
10419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10420 *) enable_dlopen_self_static=unknown ;;
10421 esac
10422 fi
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440 striplib=
10441 old_striplib=
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10443 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10444 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10446 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10448 $as_echo "yes" >&6; }
10449 else
10450 # FIXME - insert some real tests, host_os isn't really good enough
10451 case $host_os in
10452 darwin*)
10453 if test -n "$STRIP" ; then
10454 striplib="$STRIP -x"
10455 old_striplib="$STRIP -S"
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10457 $as_echo "yes" >&6; }
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10461 fi
10462 ;;
10463 *)
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10466 ;;
10467 esac
10468 fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481 # Report which library types will actually be built
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10483 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10485 $as_echo "$can_build_shared" >&6; }
10486
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10488 $as_echo_n "checking whether to build shared libraries... " >&6; }
10489 test "$can_build_shared" = "no" && enable_shared=no
10490
10491 # On AIX, shared libraries and static libraries use the same namespace, and
10492 # are all built from PIC.
10493 case $host_os in
10494 aix3*)
10495 test "$enable_shared" = yes && enable_static=no
10496 if test -n "$RANLIB"; then
10497 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10498 postinstall_cmds='$RANLIB $lib'
10499 fi
10500 ;;
10501
10502 aix[4-9]*)
10503 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10504 test "$enable_shared" = yes && enable_static=no
10505 fi
10506 ;;
10507 esac
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10509 $as_echo "$enable_shared" >&6; }
10510
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10512 $as_echo_n "checking whether to build static libraries... " >&6; }
10513 # Make sure either enable_shared or enable_static is yes.
10514 test "$enable_shared" = yes || enable_static=yes
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10516 $as_echo "$enable_static" >&6; }
10517
10518
10519
10520
10521 fi
10522 ac_ext=c
10523 ac_cpp='$CPP $CPPFLAGS'
10524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10527
10528 CC="$lt_save_CC"
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542 ac_config_commands="$ac_config_commands libtool"
10543
10544
10545
10546
10547 # Only expand once:
10548
10549
10550
10551
10552
10553 cat >>confdefs.h <<_ACEOF
10554 #define CONFIG_HOST_TYPE "$host"
10555 _ACEOF
10556
10557
10558
10559
10560 if test -n "$ac_tool_prefix"; then
10561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 if test -n "$RANLIB"; then
10569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582 done
10583 done
10584 IFS=$as_save_IFS
10585
10586 fi
10587 fi
10588 RANLIB=$ac_cv_prog_RANLIB
10589 if test -n "$RANLIB"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10591 $as_echo "$RANLIB" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598 fi
10599 if test -z "$ac_cv_prog_RANLIB"; then
10600 ac_ct_RANLIB=$RANLIB
10601 # Extract the first word of "ranlib", so it can be a program name with args.
10602 set dummy ranlib; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 if test -n "$ac_ct_RANLIB"; then
10609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10610 else
10611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612 for as_dir in $PATH
10613 do
10614 IFS=$as_save_IFS
10615 test -z "$as_dir" && as_dir=.
10616 for ac_exec_ext in '' $ac_executable_extensions; do
10617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618 ac_cv_prog_ac_ct_RANLIB="ranlib"
10619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 break 2
10621 fi
10622 done
10623 done
10624 IFS=$as_save_IFS
10625
10626 fi
10627 fi
10628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10629 if test -n "$ac_ct_RANLIB"; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10631 $as_echo "$ac_ct_RANLIB" >&6; }
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10635 fi
10636
10637 if test "x$ac_ct_RANLIB" = x; then
10638 RANLIB=":"
10639 else
10640 case $cross_compiling:$ac_tool_warned in
10641 yes:)
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10644 ac_tool_warned=yes ;;
10645 esac
10646 RANLIB=$ac_ct_RANLIB
10647 fi
10648 else
10649 RANLIB="$ac_cv_prog_RANLIB"
10650 fi
10651
10652 # Extract the first word of "ar", so it can be a program name with args.
10653 set dummy ar; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if test "${ac_cv_path_AR+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 case $AR in
10660 [\\/]* | ?:[\\/]*)
10661 ac_cv_path_AR="$AR" # Let the user override the test with a path.
10662 ;;
10663 *)
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10666 do
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10671 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10674 fi
10675 done
10676 done
10677 IFS=$as_save_IFS
10678
10679 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
10680 ;;
10681 esac
10682 fi
10683 AR=$ac_cv_path_AR
10684 if test -n "$AR"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10686 $as_echo "$AR" >&6; }
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 fi
10691
10692
10693 AR_R="$AR r"
10694
10695
10696 if test -z "$prefix" -o "$prefix" = "NONE"
10697 then
10698 install_prefix="${ac_default_prefix}"
10699 else
10700 install_prefix="${prefix}"
10701 fi
10702 echo "remembering installation prefix as $install_prefix"
10703
10704 cat >>confdefs.h <<_ACEOF
10705 #define INSTALL_PREFIX "$install_prefix"
10706 _ACEOF
10707
10708
10709
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10711 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10712 set x ${MAKE-make}
10713 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10714 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 cat >conftest.make <<\_ACEOF
10718 SHELL = /bin/sh
10719 all:
10720 @echo '@@@%%%=$(MAKE)=@@@%%%'
10721 _ACEOF
10722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10723 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10724 *@@@%%%=?*=@@@%%%*)
10725 eval ac_cv_prog_make_${ac_make}_set=yes;;
10726 *)
10727 eval ac_cv_prog_make_${ac_make}_set=no;;
10728 esac
10729 rm -f conftest.make
10730 fi
10731 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10733 $as_echo "yes" >&6; }
10734 SET_MAKE=
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738 SET_MAKE="MAKE=${MAKE-make}"
10739 fi
10740
10741
10742
10743 ac_ext=cpp
10744 ac_cpp='$CXXCPP $CPPFLAGS'
10745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10748
10749
10750 PRESET_CXXFLAGS="$CXXFLAGS"
10751 PRESET_LDFLAGS="$LDFLAGS"
10752
10753 ac_ext=cpp
10754 ac_cpp='$CXXCPP $CPPFLAGS'
10755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10758 if test -z "$CXX"; then
10759 if test -n "$CCC"; then
10760 CXX=$CCC
10761 else
10762 if test -n "$ac_tool_prefix"; then
10763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10764 do
10765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if test "${ac_cv_prog_CXX+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 if test -n "$CXX"; then
10773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10774 else
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10777 do
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10782 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10785 fi
10786 done
10787 done
10788 IFS=$as_save_IFS
10789
10790 fi
10791 fi
10792 CXX=$ac_cv_prog_CXX
10793 if test -n "$CXX"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10795 $as_echo "$CXX" >&6; }
10796 else
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10799 fi
10800
10801
10802 test -n "$CXX" && break
10803 done
10804 fi
10805 if test -z "$CXX"; then
10806 ac_ct_CXX=$CXX
10807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10808 do
10809 # Extract the first word of "$ac_prog", so it can be a program name with args.
10810 set dummy $ac_prog; ac_word=$2
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10812 $as_echo_n "checking for $ac_word... " >&6; }
10813 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10815 else
10816 if test -n "$ac_ct_CXX"; then
10817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10818 else
10819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $PATH
10821 do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10826 ac_cv_prog_ac_ct_CXX="$ac_prog"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830 done
10831 done
10832 IFS=$as_save_IFS
10833
10834 fi
10835 fi
10836 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10837 if test -n "$ac_ct_CXX"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10839 $as_echo "$ac_ct_CXX" >&6; }
10840 else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10843 fi
10844
10845
10846 test -n "$ac_ct_CXX" && break
10847 done
10848
10849 if test "x$ac_ct_CXX" = x; then
10850 CXX="g++"
10851 else
10852 case $cross_compiling:$ac_tool_warned in
10853 yes:)
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10856 ac_tool_warned=yes ;;
10857 esac
10858 CXX=$ac_ct_CXX
10859 fi
10860 fi
10861
10862 fi
10863 fi
10864 # Provide some information about the compiler.
10865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10866 set X $ac_compile
10867 ac_compiler=$2
10868 for ac_option in --version -v -V -qversion; do
10869 { { ac_try="$ac_compiler $ac_option >&5"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10875 $as_echo "$ac_try_echo"; } >&5
10876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10877 ac_status=$?
10878 if test -s conftest.err; then
10879 sed '10a\
10880 ... rest of stderr output deleted ...
10881 10q' conftest.err >conftest.er1
10882 cat conftest.er1 >&5
10883 fi
10884 rm -f conftest.er1 conftest.err
10885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10886 test $ac_status = 0; }
10887 done
10888
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10890 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10891 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10893 else
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896
10897 int
10898 main ()
10899 {
10900 #ifndef __GNUC__
10901 choke me
10902 #endif
10903
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_cxx_try_compile "$LINENO"; then :
10909 ac_compiler_gnu=yes
10910 else
10911 ac_compiler_gnu=no
10912 fi
10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10915
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10918 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10919 if test $ac_compiler_gnu = yes; then
10920 GXX=yes
10921 else
10922 GXX=
10923 fi
10924 ac_test_CXXFLAGS=${CXXFLAGS+set}
10925 ac_save_CXXFLAGS=$CXXFLAGS
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10927 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10928 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10932 ac_cxx_werror_flag=yes
10933 ac_cv_prog_cxx_g=no
10934 CXXFLAGS="-g"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937
10938 int
10939 main ()
10940 {
10941
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 if ac_fn_cxx_try_compile "$LINENO"; then :
10947 ac_cv_prog_cxx_g=yes
10948 else
10949 CXXFLAGS=""
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952
10953 int
10954 main ()
10955 {
10956
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 if ac_fn_cxx_try_compile "$LINENO"; then :
10962
10963 else
10964 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10965 CXXFLAGS="-g"
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968
10969 int
10970 main ()
10971 {
10972
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 if ac_fn_cxx_try_compile "$LINENO"; then :
10978 ac_cv_prog_cxx_g=yes
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 fi
10982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10988 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10989 if test "$ac_test_CXXFLAGS" = set; then
10990 CXXFLAGS=$ac_save_CXXFLAGS
10991 elif test $ac_cv_prog_cxx_g = yes; then
10992 if test "$GXX" = yes; then
10993 CXXFLAGS="-g -O2"
10994 else
10995 CXXFLAGS="-g"
10996 fi
10997 else
10998 if test "$GXX" = yes; then
10999 CXXFLAGS="-O2"
11000 else
11001 CXXFLAGS=
11002 fi
11003 fi
11004 ac_ext=cpp
11005 ac_cpp='$CXXCPP $CPPFLAGS'
11006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11009
11010 depcc="$CXX" am_compiler_list=
11011
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11013 $as_echo_n "checking dependency style of $depcc... " >&6; }
11014 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11016 else
11017 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11018 # We make a subdir and do the tests there. Otherwise we can end up
11019 # making bogus files that we don't know about and never remove. For
11020 # instance it was reported that on HP-UX the gcc test will end up
11021 # making a dummy file named `D' -- because `-MD' means `put the output
11022 # in D'.
11023 mkdir conftest.dir
11024 # Copy depcomp to subdir because otherwise we won't find it if we're
11025 # using a relative directory.
11026 cp "$am_depcomp" conftest.dir
11027 cd conftest.dir
11028 # We will build objects and dependencies in a subdirectory because
11029 # it helps to detect inapplicable dependency modes. For instance
11030 # both Tru64's cc and ICC support -MD to output dependencies as a
11031 # side effect of compilation, but ICC will put the dependencies in
11032 # the current directory while Tru64 will put them in the object
11033 # directory.
11034 mkdir sub
11035
11036 am_cv_CXX_dependencies_compiler_type=none
11037 if test "$am_compiler_list" = ""; then
11038 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11039 fi
11040 am__universal=false
11041 case " $depcc " in #(
11042 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11043 esac
11044
11045 for depmode in $am_compiler_list; do
11046 # Setup a source with many dependencies, because some compilers
11047 # like to wrap large dependency lists on column 80 (with \), and
11048 # we should not choose a depcomp mode which is confused by this.
11049 #
11050 # We need to recreate these files for each test, as the compiler may
11051 # overwrite some of them when testing with obscure command lines.
11052 # This happens at least with the AIX C compiler.
11053 : > sub/conftest.c
11054 for i in 1 2 3 4 5 6; do
11055 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11056 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11057 # Solaris 8's {/usr,}/bin/sh.
11058 touch sub/conftst$i.h
11059 done
11060 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11061
11062 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11063 # mode. It turns out that the SunPro C++ compiler does not properly
11064 # handle `-M -o', and we need to detect this. Also, some Intel
11065 # versions had trouble with output in subdirs
11066 am__obj=sub/conftest.${OBJEXT-o}
11067 am__minus_obj="-o $am__obj"
11068 case $depmode in
11069 gcc)
11070 # This depmode causes a compiler race in universal mode.
11071 test "$am__universal" = false || continue
11072 ;;
11073 nosideeffect)
11074 # after this tag, mechanisms are not by side-effect, so they'll
11075 # only be used when explicitly requested
11076 if test "x$enable_dependency_tracking" = xyes; then
11077 continue
11078 else
11079 break
11080 fi
11081 ;;
11082 msvisualcpp | msvcmsys)
11083 # This compiler won't grok `-c -o', but also, the minuso test has
11084 # not run yet. These depmodes are late enough in the game, and
11085 # so weak that their functioning should not be impacted.
11086 am__obj=conftest.${OBJEXT-o}
11087 am__minus_obj=
11088 ;;
11089 none) break ;;
11090 esac
11091 if depmode=$depmode \
11092 source=sub/conftest.c object=$am__obj \
11093 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11094 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11095 >/dev/null 2>conftest.err &&
11096 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11097 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11098 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11099 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11100 # icc doesn't choke on unknown options, it will just issue warnings
11101 # or remarks (even with -Werror). So we grep stderr for any message
11102 # that says an option was ignored or not supported.
11103 # When given -MP, icc 7.0 and 7.1 complain thusly:
11104 # icc: Command line warning: ignoring option '-M'; no argument required
11105 # The diagnosis changed in icc 8.0:
11106 # icc: Command line remark: option '-MP' not supported
11107 if (grep 'ignoring option' conftest.err ||
11108 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11109 am_cv_CXX_dependencies_compiler_type=$depmode
11110 break
11111 fi
11112 fi
11113 done
11114
11115 cd ..
11116 rm -rf conftest.dir
11117 else
11118 am_cv_CXX_dependencies_compiler_type=none
11119 fi
11120
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11123 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11124 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11125
11126 if
11127 test "x$enable_dependency_tracking" != xno \
11128 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11129 am__fastdepCXX_TRUE=
11130 am__fastdepCXX_FALSE='#'
11131 else
11132 am__fastdepCXX_TRUE='#'
11133 am__fastdepCXX_FALSE=
11134 fi
11135
11136
11137
11138 ac_ext=cpp
11139 ac_cpp='$CXXCPP $CPPFLAGS'
11140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11143 if test -z "$CXX"; then
11144 if test -n "$CCC"; then
11145 CXX=$CCC
11146 else
11147 if test -n "$ac_tool_prefix"; then
11148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11149 do
11150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if test "${ac_cv_prog_CXX+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 if test -n "$CXX"; then
11158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11159 else
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in $PATH
11162 do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11167 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11170 fi
11171 done
11172 done
11173 IFS=$as_save_IFS
11174
11175 fi
11176 fi
11177 CXX=$ac_cv_prog_CXX
11178 if test -n "$CXX"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11180 $as_echo "$CXX" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184 fi
11185
11186
11187 test -n "$CXX" && break
11188 done
11189 fi
11190 if test -z "$CXX"; then
11191 ac_ct_CXX=$CXX
11192 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11193 do
11194 # Extract the first word of "$ac_prog", so it can be a program name with args.
11195 set dummy $ac_prog; ac_word=$2
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197 $as_echo_n "checking for $ac_word... " >&6; }
11198 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 if test -n "$ac_ct_CXX"; then
11202 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11203 else
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11206 do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_prog_ac_ct_CXX="$ac_prog"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11214 fi
11215 done
11216 done
11217 IFS=$as_save_IFS
11218
11219 fi
11220 fi
11221 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11222 if test -n "$ac_ct_CXX"; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11224 $as_echo "$ac_ct_CXX" >&6; }
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11228 fi
11229
11230
11231 test -n "$ac_ct_CXX" && break
11232 done
11233
11234 if test "x$ac_ct_CXX" = x; then
11235 CXX="g++"
11236 else
11237 case $cross_compiling:$ac_tool_warned in
11238 yes:)
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11241 ac_tool_warned=yes ;;
11242 esac
11243 CXX=$ac_ct_CXX
11244 fi
11245 fi
11246
11247 fi
11248 fi
11249 # Provide some information about the compiler.
11250 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11251 set X $ac_compile
11252 ac_compiler=$2
11253 for ac_option in --version -v -V -qversion; do
11254 { { ac_try="$ac_compiler $ac_option >&5"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258 esac
11259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11260 $as_echo "$ac_try_echo"; } >&5
11261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11262 ac_status=$?
11263 if test -s conftest.err; then
11264 sed '10a\
11265 ... rest of stderr output deleted ...
11266 10q' conftest.err >conftest.er1
11267 cat conftest.er1 >&5
11268 fi
11269 rm -f conftest.er1 conftest.err
11270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11271 test $ac_status = 0; }
11272 done
11273
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11275 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11276 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281
11282 int
11283 main ()
11284 {
11285 #ifndef __GNUC__
11286 choke me
11287 #endif
11288
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_cxx_try_compile "$LINENO"; then :
11294 ac_compiler_gnu=yes
11295 else
11296 ac_compiler_gnu=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11300
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11303 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11304 if test $ac_compiler_gnu = yes; then
11305 GXX=yes
11306 else
11307 GXX=
11308 fi
11309 ac_test_CXXFLAGS=${CXXFLAGS+set}
11310 ac_save_CXXFLAGS=$CXXFLAGS
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11312 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11313 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11317 ac_cxx_werror_flag=yes
11318 ac_cv_prog_cxx_g=no
11319 CXXFLAGS="-g"
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322
11323 int
11324 main ()
11325 {
11326
11327 ;
11328 return 0;
11329 }
11330 _ACEOF
11331 if ac_fn_cxx_try_compile "$LINENO"; then :
11332 ac_cv_prog_cxx_g=yes
11333 else
11334 CXXFLAGS=""
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11337
11338 int
11339 main ()
11340 {
11341
11342 ;
11343 return 0;
11344 }
11345 _ACEOF
11346 if ac_fn_cxx_try_compile "$LINENO"; then :
11347
11348 else
11349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11350 CXXFLAGS="-g"
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353
11354 int
11355 main ()
11356 {
11357
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_cxx_try_compile "$LINENO"; then :
11363 ac_cv_prog_cxx_g=yes
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 fi
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11371 fi
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11374 if test "$ac_test_CXXFLAGS" = set; then
11375 CXXFLAGS=$ac_save_CXXFLAGS
11376 elif test $ac_cv_prog_cxx_g = yes; then
11377 if test "$GXX" = yes; then
11378 CXXFLAGS="-g -O2"
11379 else
11380 CXXFLAGS="-g"
11381 fi
11382 else
11383 if test "$GXX" = yes; then
11384 CXXFLAGS="-O2"
11385 else
11386 CXXFLAGS=
11387 fi
11388 fi
11389 ac_ext=cpp
11390 ac_cpp='$CXXCPP $CPPFLAGS'
11391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11394
11395 depcc="$CXX" am_compiler_list=
11396
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11398 $as_echo_n "checking dependency style of $depcc... " >&6; }
11399 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11403 # We make a subdir and do the tests there. Otherwise we can end up
11404 # making bogus files that we don't know about and never remove. For
11405 # instance it was reported that on HP-UX the gcc test will end up
11406 # making a dummy file named `D' -- because `-MD' means `put the output
11407 # in D'.
11408 mkdir conftest.dir
11409 # Copy depcomp to subdir because otherwise we won't find it if we're
11410 # using a relative directory.
11411 cp "$am_depcomp" conftest.dir
11412 cd conftest.dir
11413 # We will build objects and dependencies in a subdirectory because
11414 # it helps to detect inapplicable dependency modes. For instance
11415 # both Tru64's cc and ICC support -MD to output dependencies as a
11416 # side effect of compilation, but ICC will put the dependencies in
11417 # the current directory while Tru64 will put them in the object
11418 # directory.
11419 mkdir sub
11420
11421 am_cv_CXX_dependencies_compiler_type=none
11422 if test "$am_compiler_list" = ""; then
11423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11424 fi
11425 am__universal=false
11426 case " $depcc " in #(
11427 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11428 esac
11429
11430 for depmode in $am_compiler_list; do
11431 # Setup a source with many dependencies, because some compilers
11432 # like to wrap large dependency lists on column 80 (with \), and
11433 # we should not choose a depcomp mode which is confused by this.
11434 #
11435 # We need to recreate these files for each test, as the compiler may
11436 # overwrite some of them when testing with obscure command lines.
11437 # This happens at least with the AIX C compiler.
11438 : > sub/conftest.c
11439 for i in 1 2 3 4 5 6; do
11440 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11441 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11442 # Solaris 8's {/usr,}/bin/sh.
11443 touch sub/conftst$i.h
11444 done
11445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11446
11447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11448 # mode. It turns out that the SunPro C++ compiler does not properly
11449 # handle `-M -o', and we need to detect this. Also, some Intel
11450 # versions had trouble with output in subdirs
11451 am__obj=sub/conftest.${OBJEXT-o}
11452 am__minus_obj="-o $am__obj"
11453 case $depmode in
11454 gcc)
11455 # This depmode causes a compiler race in universal mode.
11456 test "$am__universal" = false || continue
11457 ;;
11458 nosideeffect)
11459 # after this tag, mechanisms are not by side-effect, so they'll
11460 # only be used when explicitly requested
11461 if test "x$enable_dependency_tracking" = xyes; then
11462 continue
11463 else
11464 break
11465 fi
11466 ;;
11467 msvisualcpp | msvcmsys)
11468 # This compiler won't grok `-c -o', but also, the minuso test has
11469 # not run yet. These depmodes are late enough in the game, and
11470 # so weak that their functioning should not be impacted.
11471 am__obj=conftest.${OBJEXT-o}
11472 am__minus_obj=
11473 ;;
11474 none) break ;;
11475 esac
11476 if depmode=$depmode \
11477 source=sub/conftest.c object=$am__obj \
11478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11480 >/dev/null 2>conftest.err &&
11481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11485 # icc doesn't choke on unknown options, it will just issue warnings
11486 # or remarks (even with -Werror). So we grep stderr for any message
11487 # that says an option was ignored or not supported.
11488 # When given -MP, icc 7.0 and 7.1 complain thusly:
11489 # icc: Command line warning: ignoring option '-M'; no argument required
11490 # The diagnosis changed in icc 8.0:
11491 # icc: Command line remark: option '-MP' not supported
11492 if (grep 'ignoring option' conftest.err ||
11493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11494 am_cv_CXX_dependencies_compiler_type=$depmode
11495 break
11496 fi
11497 fi
11498 done
11499
11500 cd ..
11501 rm -rf conftest.dir
11502 else
11503 am_cv_CXX_dependencies_compiler_type=none
11504 fi
11505
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11508 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11509 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11510
11511 if
11512 test "x$enable_dependency_tracking" != xno \
11513 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11514 am__fastdepCXX_TRUE=
11515 am__fastdepCXX_FALSE='#'
11516 else
11517 am__fastdepCXX_TRUE='#'
11518 am__fastdepCXX_FALSE=
11519 fi
11520
11521
11522 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11523 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11524 (test "X$CXX" != "Xg++"))) ; then
11525 ac_ext=cpp
11526 ac_cpp='$CXXCPP $CPPFLAGS'
11527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11531 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11532 if test -z "$CXXCPP"; then
11533 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 # Double quotes because CXXCPP needs to be expanded
11537 for CXXCPP in "$CXX -E" "/lib/cpp"
11538 do
11539 ac_preproc_ok=false
11540 for ac_cxx_preproc_warn_flag in '' yes
11541 do
11542 # Use a header file that comes with gcc, so configuring glibc
11543 # with a fresh cross-compiler works.
11544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11545 # <limits.h> exists even on freestanding compilers.
11546 # On the NeXT, cc -E runs the code through the compiler's parser,
11547 # not just through cpp. "Syntax error" is here to catch this case.
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550 #ifdef __STDC__
11551 # include <limits.h>
11552 #else
11553 # include <assert.h>
11554 #endif
11555 Syntax error
11556 _ACEOF
11557 if ac_fn_cxx_try_cpp "$LINENO"; then :
11558
11559 else
11560 # Broken: fails on valid input.
11561 continue
11562 fi
11563 rm -f conftest.err conftest.$ac_ext
11564
11565 # OK, works on sane cases. Now check whether nonexistent headers
11566 # can be detected and how.
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11569 #include <ac_nonexistent.h>
11570 _ACEOF
11571 if ac_fn_cxx_try_cpp "$LINENO"; then :
11572 # Broken: success on invalid input.
11573 continue
11574 else
11575 # Passes both tests.
11576 ac_preproc_ok=:
11577 break
11578 fi
11579 rm -f conftest.err conftest.$ac_ext
11580
11581 done
11582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11583 rm -f conftest.err conftest.$ac_ext
11584 if $ac_preproc_ok; then :
11585 break
11586 fi
11587
11588 done
11589 ac_cv_prog_CXXCPP=$CXXCPP
11590
11591 fi
11592 CXXCPP=$ac_cv_prog_CXXCPP
11593 else
11594 ac_cv_prog_CXXCPP=$CXXCPP
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11597 $as_echo "$CXXCPP" >&6; }
11598 ac_preproc_ok=false
11599 for ac_cxx_preproc_warn_flag in '' yes
11600 do
11601 # Use a header file that comes with gcc, so configuring glibc
11602 # with a fresh cross-compiler works.
11603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 # <limits.h> exists even on freestanding compilers.
11605 # On the NeXT, cc -E runs the code through the compiler's parser,
11606 # not just through cpp. "Syntax error" is here to catch this case.
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609 #ifdef __STDC__
11610 # include <limits.h>
11611 #else
11612 # include <assert.h>
11613 #endif
11614 Syntax error
11615 _ACEOF
11616 if ac_fn_cxx_try_cpp "$LINENO"; then :
11617
11618 else
11619 # Broken: fails on valid input.
11620 continue
11621 fi
11622 rm -f conftest.err conftest.$ac_ext
11623
11624 # OK, works on sane cases. Now check whether nonexistent headers
11625 # can be detected and how.
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 #include <ac_nonexistent.h>
11629 _ACEOF
11630 if ac_fn_cxx_try_cpp "$LINENO"; then :
11631 # Broken: success on invalid input.
11632 continue
11633 else
11634 # Passes both tests.
11635 ac_preproc_ok=:
11636 break
11637 fi
11638 rm -f conftest.err conftest.$ac_ext
11639
11640 done
11641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11642 rm -f conftest.err conftest.$ac_ext
11643 if $ac_preproc_ok; then :
11644
11645 else
11646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11648 _lt_caught_CXX_error=yes; }
11649 fi
11650
11651 ac_ext=cpp
11652 ac_cpp='$CXXCPP $CPPFLAGS'
11653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11656
11657 else
11658 _lt_caught_CXX_error=yes
11659 fi
11660
11661
11662
11663
11664 ac_ext=cpp
11665 ac_cpp='$CXXCPP $CPPFLAGS'
11666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11669
11670 archive_cmds_need_lc_CXX=no
11671 allow_undefined_flag_CXX=
11672 always_export_symbols_CXX=no
11673 archive_expsym_cmds_CXX=
11674 compiler_needs_object_CXX=no
11675 export_dynamic_flag_spec_CXX=
11676 hardcode_direct_CXX=no
11677 hardcode_direct_absolute_CXX=no
11678 hardcode_libdir_flag_spec_CXX=
11679 hardcode_libdir_flag_spec_ld_CXX=
11680 hardcode_libdir_separator_CXX=
11681 hardcode_minus_L_CXX=no
11682 hardcode_shlibpath_var_CXX=unsupported
11683 hardcode_automatic_CXX=no
11684 inherit_rpath_CXX=no
11685 module_cmds_CXX=
11686 module_expsym_cmds_CXX=
11687 link_all_deplibs_CXX=unknown
11688 old_archive_cmds_CXX=$old_archive_cmds
11689 no_undefined_flag_CXX=
11690 whole_archive_flag_spec_CXX=
11691 enable_shared_with_static_runtimes_CXX=no
11692
11693 # Source file extension for C++ test sources.
11694 ac_ext=cpp
11695
11696 # Object file extension for compiled C++ test sources.
11697 objext=o
11698 objext_CXX=$objext
11699
11700 # No sense in running all these tests if we already determined that
11701 # the CXX compiler isn't working. Some variables (like enable_shared)
11702 # are currently assumed to apply to all compilers on this platform,
11703 # and will be corrupted by setting them based on a non-working compiler.
11704 if test "$_lt_caught_CXX_error" != yes; then
11705 # Code to be used in simple compile tests
11706 lt_simple_compile_test_code="int some_variable = 0;"
11707
11708 # Code to be used in simple link tests
11709 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11710
11711 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11712
11713
11714
11715
11716
11717
11718 # If no C compiler was specified, use CC.
11719 LTCC=${LTCC-"$CC"}
11720
11721 # If no C compiler flags were specified, use CFLAGS.
11722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11723
11724 # Allow CC to be a program name with arguments.
11725 compiler=$CC
11726
11727
11728 # save warnings/boilerplate of simple test code
11729 ac_outfile=conftest.$ac_objext
11730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11732 _lt_compiler_boilerplate=`cat conftest.err`
11733 $RM conftest*
11734
11735 ac_outfile=conftest.$ac_objext
11736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11738 _lt_linker_boilerplate=`cat conftest.err`
11739 $RM -r conftest*
11740
11741
11742 # Allow CC to be a program name with arguments.
11743 lt_save_CC=$CC
11744 lt_save_LD=$LD
11745 lt_save_GCC=$GCC
11746 GCC=$GXX
11747 lt_save_with_gnu_ld=$with_gnu_ld
11748 lt_save_path_LD=$lt_cv_path_LD
11749 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11750 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11751 else
11752 $as_unset lt_cv_prog_gnu_ld
11753 fi
11754 if test -n "${lt_cv_path_LDCXX+set}"; then
11755 lt_cv_path_LD=$lt_cv_path_LDCXX
11756 else
11757 $as_unset lt_cv_path_LD
11758 fi
11759 test -z "${LDCXX+set}" || LD=$LDCXX
11760 CC=${CXX-"c++"}
11761 compiler=$CC
11762 compiler_CXX=$CC
11763 for cc_temp in $compiler""; do
11764 case $cc_temp in
11765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11767 \-*) ;;
11768 *) break;;
11769 esac
11770 done
11771 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11772
11773
11774 if test -n "$compiler"; then
11775 # We don't want -fno-exception when compiling C++ code, so set the
11776 # no_builtin_flag separately
11777 if test "$GXX" = yes; then
11778 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11779 else
11780 lt_prog_compiler_no_builtin_flag_CXX=
11781 fi
11782
11783 if test "$GXX" = yes; then
11784 # Set up default GNU C++ configuration
11785
11786
11787
11788 # Check whether --with-gnu-ld was given.
11789 if test "${with_gnu_ld+set}" = set; then :
11790 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11791 else
11792 with_gnu_ld=no
11793 fi
11794
11795 ac_prog=ld
11796 if test "$GCC" = yes; then
11797 # Check if gcc -print-prog-name=ld gives a path.
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11799 $as_echo_n "checking for ld used by $CC... " >&6; }
11800 case $host in
11801 *-*-mingw*)
11802 # gcc leaves a trailing carriage return which upsets mingw
11803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11804 *)
11805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11806 esac
11807 case $ac_prog in
11808 # Accept absolute paths.
11809 [\\/]* | ?:[\\/]*)
11810 re_direlt='/[^/][^/]*/\.\./'
11811 # Canonicalize the pathname of ld
11812 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11813 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11814 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11815 done
11816 test -z "$LD" && LD="$ac_prog"
11817 ;;
11818 "")
11819 # If it fails, then pretend we aren't using GCC.
11820 ac_prog=ld
11821 ;;
11822 *)
11823 # If it is relative, then search for the first ld in PATH.
11824 with_gnu_ld=unknown
11825 ;;
11826 esac
11827 elif test "$with_gnu_ld" = yes; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11829 $as_echo_n "checking for GNU ld... " >&6; }
11830 else
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11832 $as_echo_n "checking for non-GNU ld... " >&6; }
11833 fi
11834 if test "${lt_cv_path_LD+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 if test -z "$LD"; then
11838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11839 for ac_dir in $PATH; do
11840 IFS="$lt_save_ifs"
11841 test -z "$ac_dir" && ac_dir=.
11842 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11843 lt_cv_path_LD="$ac_dir/$ac_prog"
11844 # Check to see if the program is GNU ld. I'd rather use --version,
11845 # but apparently some variants of GNU ld only accept -v.
11846 # Break only if it was the GNU/non-GNU ld that we prefer.
11847 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11848 *GNU* | *'with BFD'*)
11849 test "$with_gnu_ld" != no && break
11850 ;;
11851 *)
11852 test "$with_gnu_ld" != yes && break
11853 ;;
11854 esac
11855 fi
11856 done
11857 IFS="$lt_save_ifs"
11858 else
11859 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11860 fi
11861 fi
11862
11863 LD="$lt_cv_path_LD"
11864 if test -n "$LD"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11866 $as_echo "$LD" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 fi
11871 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11874 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11878 case `$LD -v 2>&1 </dev/null` in
11879 *GNU* | *'with BFD'*)
11880 lt_cv_prog_gnu_ld=yes
11881 ;;
11882 *)
11883 lt_cv_prog_gnu_ld=no
11884 ;;
11885 esac
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11888 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11889 with_gnu_ld=$lt_cv_prog_gnu_ld
11890
11891
11892
11893
11894
11895
11896
11897 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11898 # archiving commands below assume that GNU ld is being used.
11899 if test "$with_gnu_ld" = yes; then
11900 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11901 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'
11902
11903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11905
11906 # If archive_cmds runs LD, not CC, wlarc should be empty
11907 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11908 # investigate it a little bit more. (MM)
11909 wlarc='${wl}'
11910
11911 # ancient GNU ld didn't support --whole-archive et. al.
11912 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11913 $GREP 'no-whole-archive' > /dev/null; then
11914 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11915 else
11916 whole_archive_flag_spec_CXX=
11917 fi
11918 else
11919 with_gnu_ld=no
11920 wlarc=
11921
11922 # A generic and very simple default shared library creation
11923 # command for GNU C++ for the case where it uses the native
11924 # linker, instead of GNU ld. If possible, this setting should
11925 # overridden to take advantage of the native linker features on
11926 # the platform it is being used on.
11927 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11928 fi
11929
11930 # Commands to make compiler produce verbose output that lists
11931 # what "hidden" libraries, object files and flags are used when
11932 # linking a shared library.
11933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11934
11935 else
11936 GXX=no
11937 with_gnu_ld=no
11938 wlarc=
11939 fi
11940
11941 # PORTME: fill in a description of your system's C++ link characteristics
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11944 ld_shlibs_CXX=yes
11945 case $host_os in
11946 aix3*)
11947 # FIXME: insert proper C++ library support
11948 ld_shlibs_CXX=no
11949 ;;
11950 aix[4-9]*)
11951 if test "$host_cpu" = ia64; then
11952 # On IA64, the linker does run time linking by default, so we don't
11953 # have to do anything special.
11954 aix_use_runtimelinking=no
11955 exp_sym_flag='-Bexport'
11956 no_entry_flag=""
11957 else
11958 aix_use_runtimelinking=no
11959
11960 # Test if we are trying to use run time linking or normal
11961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11962 # need to do runtime linking.
11963 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11964 for ld_flag in $LDFLAGS; do
11965 case $ld_flag in
11966 *-brtl*)
11967 aix_use_runtimelinking=yes
11968 break
11969 ;;
11970 esac
11971 done
11972 ;;
11973 esac
11974
11975 exp_sym_flag='-bexport'
11976 no_entry_flag='-bnoentry'
11977 fi
11978
11979 # When large executables or shared objects are built, AIX ld can
11980 # have problems creating the table of contents. If linking a library
11981 # or program results in "error TOC overflow" add -mminimal-toc to
11982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11984
11985 archive_cmds_CXX=''
11986 hardcode_direct_CXX=yes
11987 hardcode_direct_absolute_CXX=yes
11988 hardcode_libdir_separator_CXX=':'
11989 link_all_deplibs_CXX=yes
11990 file_list_spec_CXX='${wl}-f,'
11991
11992 if test "$GXX" = yes; then
11993 case $host_os in aix4.[012]|aix4.[012].*)
11994 # We only want to do this on AIX 4.2 and lower, the check
11995 # below for broken collect2 doesn't work under 4.3+
11996 collect2name=`${CC} -print-prog-name=collect2`
11997 if test -f "$collect2name" &&
11998 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11999 then
12000 # We have reworked collect2
12001 :
12002 else
12003 # We have old collect2
12004 hardcode_direct_CXX=unsupported
12005 # It fails to find uninstalled libraries when the uninstalled
12006 # path is not listed in the libpath. Setting hardcode_minus_L
12007 # to unsupported forces relinking
12008 hardcode_minus_L_CXX=yes
12009 hardcode_libdir_flag_spec_CXX='-L$libdir'
12010 hardcode_libdir_separator_CXX=
12011 fi
12012 esac
12013 shared_flag='-shared'
12014 if test "$aix_use_runtimelinking" = yes; then
12015 shared_flag="$shared_flag "'${wl}-G'
12016 fi
12017 else
12018 # not using gcc
12019 if test "$host_cpu" = ia64; then
12020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12021 # chokes on -Wl,-G. The following line is correct:
12022 shared_flag='-G'
12023 else
12024 if test "$aix_use_runtimelinking" = yes; then
12025 shared_flag='${wl}-G'
12026 else
12027 shared_flag='${wl}-bM:SRE'
12028 fi
12029 fi
12030 fi
12031
12032 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12033 # It seems that -bexpall does not export symbols beginning with
12034 # underscore (_), so it is better to generate a list of symbols to
12035 # export.
12036 always_export_symbols_CXX=yes
12037 if test "$aix_use_runtimelinking" = yes; then
12038 # Warning - without using the other runtime loading flags (-brtl),
12039 # -berok will link without error, but may produce a broken library.
12040 allow_undefined_flag_CXX='-berok'
12041 # Determine the default libpath from the value encoded in an empty
12042 # executable.
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12045
12046 int
12047 main ()
12048 {
12049
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 if ac_fn_cxx_try_link "$LINENO"; then :
12055
12056 lt_aix_libpath_sed='
12057 /Import File Strings/,/^$/ {
12058 /^0/ {
12059 s/^0 *\(.*\)$/\1/
12060 p
12061 }
12062 }'
12063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12064 # Check for a 64-bit object if we didn't find anything.
12065 if test -z "$aix_libpath"; then
12066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12067 fi
12068 fi
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12072
12073 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12074
12075 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"
12076 else
12077 if test "$host_cpu" = ia64; then
12078 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12079 allow_undefined_flag_CXX="-z nodefs"
12080 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"
12081 else
12082 # Determine the default libpath from the value encoded in an
12083 # empty executable.
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086
12087 int
12088 main ()
12089 {
12090
12091 ;
12092 return 0;
12093 }
12094 _ACEOF
12095 if ac_fn_cxx_try_link "$LINENO"; then :
12096
12097 lt_aix_libpath_sed='
12098 /Import File Strings/,/^$/ {
12099 /^0/ {
12100 s/^0 *\(.*\)$/\1/
12101 p
12102 }
12103 }'
12104 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12105 # Check for a 64-bit object if we didn't find anything.
12106 if test -z "$aix_libpath"; then
12107 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12108 fi
12109 fi
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12113
12114 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12115 # Warning - without using the other run time loading flags,
12116 # -berok will link without error, but may produce a broken library.
12117 no_undefined_flag_CXX=' ${wl}-bernotok'
12118 allow_undefined_flag_CXX=' ${wl}-berok'
12119 # Exported symbols can be pulled into shared objects from archives
12120 whole_archive_flag_spec_CXX='$convenience'
12121 archive_cmds_need_lc_CXX=yes
12122 # This is similar to how AIX traditionally builds its shared
12123 # libraries.
12124 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'
12125 fi
12126 fi
12127 ;;
12128
12129 beos*)
12130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12131 allow_undefined_flag_CXX=unsupported
12132 # Joseph Beckenbach <[email protected]> says some releases of gcc
12133 # support --undefined. This deserves some investigation. FIXME
12134 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12135 else
12136 ld_shlibs_CXX=no
12137 fi
12138 ;;
12139
12140 chorus*)
12141 case $cc_basename in
12142 *)
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12145 ;;
12146 esac
12147 ;;
12148
12149 cygwin* | mingw* | pw32* | cegcc*)
12150 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12151 # as there is no search path for DLLs.
12152 hardcode_libdir_flag_spec_CXX='-L$libdir'
12153 allow_undefined_flag_CXX=unsupported
12154 always_export_symbols_CXX=no
12155 enable_shared_with_static_runtimes_CXX=yes
12156
12157 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12158 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'
12159 # If the export-symbols file already is a .def file (1st line
12160 # is EXPORTS), use it as is; otherwise, prepend...
12161 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12162 cp $export_symbols $output_objdir/$soname.def;
12163 else
12164 echo EXPORTS > $output_objdir/$soname.def;
12165 cat $export_symbols >> $output_objdir/$soname.def;
12166 fi~
12167 $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'
12168 else
12169 ld_shlibs_CXX=no
12170 fi
12171 ;;
12172 darwin* | rhapsody*)
12173
12174
12175 archive_cmds_need_lc_CXX=no
12176 hardcode_direct_CXX=no
12177 hardcode_automatic_CXX=yes
12178 hardcode_shlibpath_var_CXX=unsupported
12179 whole_archive_flag_spec_CXX=''
12180 link_all_deplibs_CXX=yes
12181 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12182 case $cc_basename in
12183 ifort*) _lt_dar_can_shared=yes ;;
12184 *) _lt_dar_can_shared=$GCC ;;
12185 esac
12186 if test "$_lt_dar_can_shared" = "yes"; then
12187 output_verbose_link_cmd=echo
12188 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}"
12189 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12190 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}"
12191 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}"
12192 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12193 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}"
12194 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}"
12195 fi
12196
12197 else
12198 ld_shlibs_CXX=no
12199 fi
12200
12201 ;;
12202
12203 dgux*)
12204 case $cc_basename in
12205 ec++*)
12206 # FIXME: insert proper C++ library support
12207 ld_shlibs_CXX=no
12208 ;;
12209 ghcx*)
12210 # Green Hills C++ Compiler
12211 # FIXME: insert proper C++ library support
12212 ld_shlibs_CXX=no
12213 ;;
12214 *)
12215 # FIXME: insert proper C++ library support
12216 ld_shlibs_CXX=no
12217 ;;
12218 esac
12219 ;;
12220
12221 freebsd[12]*)
12222 # C++ shared libraries reported to be fairly broken before
12223 # switch to ELF
12224 ld_shlibs_CXX=no
12225 ;;
12226
12227 freebsd-elf*)
12228 archive_cmds_need_lc_CXX=no
12229 ;;
12230
12231 freebsd* | dragonfly*)
12232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12233 # conventions
12234 ld_shlibs_CXX=yes
12235 ;;
12236
12237 gnu*)
12238 ;;
12239
12240 hpux9*)
12241 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12242 hardcode_libdir_separator_CXX=:
12243 export_dynamic_flag_spec_CXX='${wl}-E'
12244 hardcode_direct_CXX=yes
12245 hardcode_minus_L_CXX=yes # Not in the search PATH,
12246 # but as the default
12247 # location of the library.
12248
12249 case $cc_basename in
12250 CC*)
12251 # FIXME: insert proper C++ library support
12252 ld_shlibs_CXX=no
12253 ;;
12254 aCC*)
12255 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'
12256 # Commands to make compiler produce verbose output that lists
12257 # what "hidden" libraries, object files and flags are used when
12258 # linking a shared library.
12259 #
12260 # There doesn't appear to be a way to prevent this compiler from
12261 # explicitly linking system object files so we need to strip them
12262 # from the output so that they don't get included in the library
12263 # dependencies.
12264 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'
12265 ;;
12266 *)
12267 if test "$GXX" = yes; then
12268 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'
12269 else
12270 # FIXME: insert proper C++ library support
12271 ld_shlibs_CXX=no
12272 fi
12273 ;;
12274 esac
12275 ;;
12276
12277 hpux10*|hpux11*)
12278 if test $with_gnu_ld = no; then
12279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12280 hardcode_libdir_separator_CXX=:
12281
12282 case $host_cpu in
12283 hppa*64*|ia64*)
12284 ;;
12285 *)
12286 export_dynamic_flag_spec_CXX='${wl}-E'
12287 ;;
12288 esac
12289 fi
12290 case $host_cpu in
12291 hppa*64*|ia64*)
12292 hardcode_direct_CXX=no
12293 hardcode_shlibpath_var_CXX=no
12294 ;;
12295 *)
12296 hardcode_direct_CXX=yes
12297 hardcode_direct_absolute_CXX=yes
12298 hardcode_minus_L_CXX=yes # Not in the search PATH,
12299 # but as the default
12300 # location of the library.
12301 ;;
12302 esac
12303
12304 case $cc_basename in
12305 CC*)
12306 # FIXME: insert proper C++ library support
12307 ld_shlibs_CXX=no
12308 ;;
12309 aCC*)
12310 case $host_cpu in
12311 hppa*64*)
12312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12313 ;;
12314 ia64*)
12315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12316 ;;
12317 *)
12318 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12319 ;;
12320 esac
12321 # Commands to make compiler produce verbose output that lists
12322 # what "hidden" libraries, object files and flags are used when
12323 # linking a shared library.
12324 #
12325 # There doesn't appear to be a way to prevent this compiler from
12326 # explicitly linking system object files so we need to strip them
12327 # from the output so that they don't get included in the library
12328 # dependencies.
12329 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'
12330 ;;
12331 *)
12332 if test "$GXX" = yes; then
12333 if test $with_gnu_ld = no; then
12334 case $host_cpu in
12335 hppa*64*)
12336 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12337 ;;
12338 ia64*)
12339 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12340 ;;
12341 *)
12342 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'
12343 ;;
12344 esac
12345 fi
12346 else
12347 # FIXME: insert proper C++ library support
12348 ld_shlibs_CXX=no
12349 fi
12350 ;;
12351 esac
12352 ;;
12353
12354 interix[3-9]*)
12355 hardcode_direct_CXX=no
12356 hardcode_shlibpath_var_CXX=no
12357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12358 export_dynamic_flag_spec_CXX='${wl}-E'
12359 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12360 # Instead, shared libraries are loaded at an image base (0x10000000 by
12361 # default) and relocated if they conflict, which is a slow very memory
12362 # consuming and fragmenting process. To avoid this, we pick a random,
12363 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12364 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12365 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'
12366 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'
12367 ;;
12368 irix5* | irix6*)
12369 case $cc_basename in
12370 CC*)
12371 # SGI C++
12372 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'
12373
12374 # Archives containing C++ object files must be created using
12375 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12376 # necessary to make sure instantiated templates are included
12377 # in the archive.
12378 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12379 ;;
12380 *)
12381 if test "$GXX" = yes; then
12382 if test "$with_gnu_ld" = no; then
12383 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'
12384 else
12385 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'
12386 fi
12387 fi
12388 link_all_deplibs_CXX=yes
12389 ;;
12390 esac
12391 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12392 hardcode_libdir_separator_CXX=:
12393 inherit_rpath_CXX=yes
12394 ;;
12395
12396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12397 case $cc_basename in
12398 KCC*)
12399 # Kuck and Associates, Inc. (KAI) C++ Compiler
12400
12401 # KCC will only create a shared library if the output file
12402 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12403 # to its proper name (with version) after linking.
12404 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'
12405 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'
12406 # Commands to make compiler produce verbose output that lists
12407 # what "hidden" libraries, object files and flags are used when
12408 # linking a shared library.
12409 #
12410 # There doesn't appear to be a way to prevent this compiler from
12411 # explicitly linking system object files so we need to strip them
12412 # from the output so that they don't get included in the library
12413 # dependencies.
12414 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'
12415
12416 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12418
12419 # Archives containing C++ object files must be created using
12420 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12421 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12422 ;;
12423 icpc* | ecpc* )
12424 # Intel C++
12425 with_gnu_ld=yes
12426 # version 8.0 and above of icpc choke on multiply defined symbols
12427 # if we add $predep_objects and $postdep_objects, however 7.1 and
12428 # earlier do not add the objects themselves.
12429 case `$CC -V 2>&1` in
12430 *"Version 7."*)
12431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12432 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'
12433 ;;
12434 *) # Version 8.0 or newer
12435 tmp_idyn=
12436 case $host_cpu in
12437 ia64*) tmp_idyn=' -i_dynamic';;
12438 esac
12439 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12440 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'
12441 ;;
12442 esac
12443 archive_cmds_need_lc_CXX=no
12444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12445 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12446 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12447 ;;
12448 pgCC* | pgcpp*)
12449 # Portland Group C++ compiler
12450 case `$CC -V` in
12451 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12452 prelink_cmds_CXX='tpldir=Template.dir~
12453 rm -rf $tpldir~
12454 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12455 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12456 old_archive_cmds_CXX='tpldir=Template.dir~
12457 rm -rf $tpldir~
12458 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12459 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12460 $RANLIB $oldlib'
12461 archive_cmds_CXX='tpldir=Template.dir~
12462 rm -rf $tpldir~
12463 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12464 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12465 archive_expsym_cmds_CXX='tpldir=Template.dir~
12466 rm -rf $tpldir~
12467 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12468 $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'
12469 ;;
12470 *) # Version 6 will use weak symbols
12471 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12472 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'
12473 ;;
12474 esac
12475
12476 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12478 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'
12479 ;;
12480 cxx*)
12481 # Compaq C++
12482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12483 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'
12484
12485 runpath_var=LD_RUN_PATH
12486 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12487 hardcode_libdir_separator_CXX=:
12488
12489 # Commands to make compiler produce verbose output that lists
12490 # what "hidden" libraries, object files and flags are used when
12491 # linking a shared library.
12492 #
12493 # There doesn't appear to be a way to prevent this compiler from
12494 # explicitly linking system object files so we need to strip them
12495 # from the output so that they don't get included in the library
12496 # dependencies.
12497 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'
12498 ;;
12499 xl*)
12500 # IBM XL 8.0 on PPC, with GNU ld
12501 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12502 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12503 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12504 if test "x$supports_anon_versioning" = xyes; then
12505 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12507 echo "local: *; };" >> $output_objdir/$libname.ver~
12508 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12509 fi
12510 ;;
12511 *)
12512 case `$CC -V 2>&1 | sed 5q` in
12513 *Sun\ C*)
12514 # Sun C++ 5.9
12515 no_undefined_flag_CXX=' -zdefs'
12516 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12517 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'
12518 hardcode_libdir_flag_spec_CXX='-R$libdir'
12519 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'
12520 compiler_needs_object_CXX=yes
12521
12522 # Not sure whether something based on
12523 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12524 # would be better.
12525 output_verbose_link_cmd='echo'
12526
12527 # Archives containing C++ object files must be created using
12528 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12529 # necessary to make sure instantiated templates are included
12530 # in the archive.
12531 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12532 ;;
12533 esac
12534 ;;
12535 esac
12536 ;;
12537
12538 lynxos*)
12539 # FIXME: insert proper C++ library support
12540 ld_shlibs_CXX=no
12541 ;;
12542
12543 m88k*)
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
12547
12548 mvs*)
12549 case $cc_basename in
12550 cxx*)
12551 # FIXME: insert proper C++ library support
12552 ld_shlibs_CXX=no
12553 ;;
12554 *)
12555 # FIXME: insert proper C++ library support
12556 ld_shlibs_CXX=no
12557 ;;
12558 esac
12559 ;;
12560
12561 netbsd*)
12562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12563 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12564 wlarc=
12565 hardcode_libdir_flag_spec_CXX='-R$libdir'
12566 hardcode_direct_CXX=yes
12567 hardcode_shlibpath_var_CXX=no
12568 fi
12569 # Workaround some broken pre-1.5 toolchains
12570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12571 ;;
12572
12573 *nto* | *qnx*)
12574 ld_shlibs_CXX=yes
12575 ;;
12576
12577 openbsd2*)
12578 # C++ shared libraries are fairly broken
12579 ld_shlibs_CXX=no
12580 ;;
12581
12582 openbsd*)
12583 if test -f /usr/libexec/ld.so; then
12584 hardcode_direct_CXX=yes
12585 hardcode_shlibpath_var_CXX=no
12586 hardcode_direct_absolute_CXX=yes
12587 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12588 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12590 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12591 export_dynamic_flag_spec_CXX='${wl}-E'
12592 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12593 fi
12594 output_verbose_link_cmd=echo
12595 else
12596 ld_shlibs_CXX=no
12597 fi
12598 ;;
12599
12600 osf3* | osf4* | osf5*)
12601 case $cc_basename in
12602 KCC*)
12603 # Kuck and Associates, Inc. (KAI) C++ Compiler
12604
12605 # KCC will only create a shared library if the output file
12606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12607 # to its proper name (with version) after linking.
12608 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'
12609
12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12611 hardcode_libdir_separator_CXX=:
12612
12613 # Archives containing C++ object files must be created using
12614 # the KAI C++ compiler.
12615 case $host in
12616 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12617 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12618 esac
12619 ;;
12620 RCC*)
12621 # Rational C++ 2.4.1
12622 # FIXME: insert proper C++ library support
12623 ld_shlibs_CXX=no
12624 ;;
12625 cxx*)
12626 case $host in
12627 osf3*)
12628 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12629 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'
12630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12631 ;;
12632 *)
12633 allow_undefined_flag_CXX=' -expect_unresolved \*'
12634 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'
12635 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12636 echo "-hidden">> $lib.exp~
12637 $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~
12638 $RM $lib.exp'
12639 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12640 ;;
12641 esac
12642
12643 hardcode_libdir_separator_CXX=:
12644
12645 # Commands to make compiler produce verbose output that lists
12646 # what "hidden" libraries, object files and flags are used when
12647 # linking a shared library.
12648 #
12649 # There doesn't appear to be a way to prevent this compiler from
12650 # explicitly linking system object files so we need to strip them
12651 # from the output so that they don't get included in the library
12652 # dependencies.
12653 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'
12654 ;;
12655 *)
12656 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12657 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12658 case $host in
12659 osf3*)
12660 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'
12661 ;;
12662 *)
12663 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'
12664 ;;
12665 esac
12666
12667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12668 hardcode_libdir_separator_CXX=:
12669
12670 # Commands to make compiler produce verbose output that lists
12671 # what "hidden" libraries, object files and flags are used when
12672 # linking a shared library.
12673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12674
12675 else
12676 # FIXME: insert proper C++ library support
12677 ld_shlibs_CXX=no
12678 fi
12679 ;;
12680 esac
12681 ;;
12682
12683 psos*)
12684 # FIXME: insert proper C++ library support
12685 ld_shlibs_CXX=no
12686 ;;
12687
12688 sunos4*)
12689 case $cc_basename in
12690 CC*)
12691 # Sun C++ 4.x
12692 # FIXME: insert proper C++ library support
12693 ld_shlibs_CXX=no
12694 ;;
12695 lcc*)
12696 # Lucid
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12699 ;;
12700 *)
12701 # FIXME: insert proper C++ library support
12702 ld_shlibs_CXX=no
12703 ;;
12704 esac
12705 ;;
12706
12707 solaris*)
12708 case $cc_basename in
12709 CC*)
12710 # Sun C++ 4.2, 5.x and Centerline C++
12711 archive_cmds_need_lc_CXX=yes
12712 no_undefined_flag_CXX=' -zdefs'
12713 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12715 $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'
12716
12717 hardcode_libdir_flag_spec_CXX='-R$libdir'
12718 hardcode_shlibpath_var_CXX=no
12719 case $host_os in
12720 solaris2.[0-5] | solaris2.[0-5].*) ;;
12721 *)
12722 # The compiler driver will combine and reorder linker options,
12723 # but understands `-z linker_flag'.
12724 # Supported since Solaris 2.6 (maybe 2.5.1?)
12725 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12726 ;;
12727 esac
12728 link_all_deplibs_CXX=yes
12729
12730 output_verbose_link_cmd='echo'
12731
12732 # Archives containing C++ object files must be created using
12733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12734 # necessary to make sure instantiated templates are included
12735 # in the archive.
12736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12737 ;;
12738 gcx*)
12739 # Green Hills C++ Compiler
12740 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12741
12742 # The C++ compiler must be used to create the archive.
12743 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12744 ;;
12745 *)
12746 # GNU C++ compiler with Solaris linker
12747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12748 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12749 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12750 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12751 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12752 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12753
12754 # Commands to make compiler produce verbose output that lists
12755 # what "hidden" libraries, object files and flags are used when
12756 # linking a shared library.
12757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12758 else
12759 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12760 # platform.
12761 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12762 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12763 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12764
12765 # Commands to make compiler produce verbose output that lists
12766 # what "hidden" libraries, object files and flags are used when
12767 # linking a shared library.
12768 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12769 fi
12770
12771 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12772 case $host_os in
12773 solaris2.[0-5] | solaris2.[0-5].*) ;;
12774 *)
12775 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12776 ;;
12777 esac
12778 fi
12779 ;;
12780 esac
12781 ;;
12782
12783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12784 no_undefined_flag_CXX='${wl}-z,text'
12785 archive_cmds_need_lc_CXX=no
12786 hardcode_shlibpath_var_CXX=no
12787 runpath_var='LD_RUN_PATH'
12788
12789 case $cc_basename in
12790 CC*)
12791 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12792 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12793 ;;
12794 *)
12795 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12796 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12797 ;;
12798 esac
12799 ;;
12800
12801 sysv5* | sco3.2v5* | sco5v6*)
12802 # Note: We can NOT use -z defs as we might desire, because we do not
12803 # link with -lc, and that would cause any symbols used from libc to
12804 # always be unresolved, which means just about no library would
12805 # ever link correctly. If we're not using GNU ld we use -z text
12806 # though, which does catch some bad symbols but isn't as heavy-handed
12807 # as -z defs.
12808 no_undefined_flag_CXX='${wl}-z,text'
12809 allow_undefined_flag_CXX='${wl}-z,nodefs'
12810 archive_cmds_need_lc_CXX=no
12811 hardcode_shlibpath_var_CXX=no
12812 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12813 hardcode_libdir_separator_CXX=':'
12814 link_all_deplibs_CXX=yes
12815 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12816 runpath_var='LD_RUN_PATH'
12817
12818 case $cc_basename in
12819 CC*)
12820 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12821 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12822 ;;
12823 *)
12824 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12825 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12826 ;;
12827 esac
12828 ;;
12829
12830 tandem*)
12831 case $cc_basename in
12832 NCC*)
12833 # NonStop-UX NCC 3.20
12834 # FIXME: insert proper C++ library support
12835 ld_shlibs_CXX=no
12836 ;;
12837 *)
12838 # FIXME: insert proper C++ library support
12839 ld_shlibs_CXX=no
12840 ;;
12841 esac
12842 ;;
12843
12844 vxworks*)
12845 # FIXME: insert proper C++ library support
12846 ld_shlibs_CXX=no
12847 ;;
12848
12849 *)
12850 # FIXME: insert proper C++ library support
12851 ld_shlibs_CXX=no
12852 ;;
12853 esac
12854
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12856 $as_echo "$ld_shlibs_CXX" >&6; }
12857 test "$ld_shlibs_CXX" = no && can_build_shared=no
12858
12859 GCC_CXX="$GXX"
12860 LD_CXX="$LD"
12861
12862 ## CAVEAT EMPTOR:
12863 ## There is no encapsulation within the following macros, do not change
12864 ## the running order or otherwise move them around unless you know exactly
12865 ## what you are doing...
12866 # Dependencies to place before and after the object being linked:
12867 predep_objects_CXX=
12868 postdep_objects_CXX=
12869 predeps_CXX=
12870 postdeps_CXX=
12871 compiler_lib_search_path_CXX=
12872
12873 cat > conftest.$ac_ext <<_LT_EOF
12874 class Foo
12875 {
12876 public:
12877 Foo (void) { a = 0; }
12878 private:
12879 int a;
12880 };
12881 _LT_EOF
12882
12883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12884 (eval $ac_compile) 2>&5
12885 ac_status=$?
12886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12887 test $ac_status = 0; }; then
12888 # Parse the compiler output and extract the necessary
12889 # objects, libraries and library flags.
12890
12891 # Sentinel used to keep track of whether or not we are before
12892 # the conftest object file.
12893 pre_test_object_deps_done=no
12894
12895 for p in `eval "$output_verbose_link_cmd"`; do
12896 case $p in
12897
12898 -L* | -R* | -l*)
12899 # Some compilers place space between "-{L,R}" and the path.
12900 # Remove the space.
12901 if test $p = "-L" ||
12902 test $p = "-R"; then
12903 prev=$p
12904 continue
12905 else
12906 prev=
12907 fi
12908
12909 if test "$pre_test_object_deps_done" = no; then
12910 case $p in
12911 -L* | -R*)
12912 # Internal compiler library paths should come after those
12913 # provided the user. The postdeps already come after the
12914 # user supplied libs so there is no need to process them.
12915 if test -z "$compiler_lib_search_path_CXX"; then
12916 compiler_lib_search_path_CXX="${prev}${p}"
12917 else
12918 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12919 fi
12920 ;;
12921 # The "-l" case would never come before the object being
12922 # linked, so don't bother handling this case.
12923 esac
12924 else
12925 if test -z "$postdeps_CXX"; then
12926 postdeps_CXX="${prev}${p}"
12927 else
12928 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12929 fi
12930 fi
12931 ;;
12932
12933 *.$objext)
12934 # This assumes that the test object file only shows up
12935 # once in the compiler output.
12936 if test "$p" = "conftest.$objext"; then
12937 pre_test_object_deps_done=yes
12938 continue
12939 fi
12940
12941 if test "$pre_test_object_deps_done" = no; then
12942 if test -z "$predep_objects_CXX"; then
12943 predep_objects_CXX="$p"
12944 else
12945 predep_objects_CXX="$predep_objects_CXX $p"
12946 fi
12947 else
12948 if test -z "$postdep_objects_CXX"; then
12949 postdep_objects_CXX="$p"
12950 else
12951 postdep_objects_CXX="$postdep_objects_CXX $p"
12952 fi
12953 fi
12954 ;;
12955
12956 *) ;; # Ignore the rest.
12957
12958 esac
12959 done
12960
12961 # Clean up.
12962 rm -f a.out a.exe
12963 else
12964 echo "libtool.m4: error: problem compiling CXX test program"
12965 fi
12966
12967 $RM -f confest.$objext
12968
12969 # PORTME: override above test on systems where it is broken
12970 case $host_os in
12971 interix[3-9]*)
12972 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12973 # hack all around it, let's just trust "g++" to DTRT.
12974 predep_objects_CXX=
12975 postdep_objects_CXX=
12976 postdeps_CXX=
12977 ;;
12978
12979 linux*)
12980 case `$CC -V 2>&1 | sed 5q` in
12981 *Sun\ C*)
12982 # Sun C++ 5.9
12983
12984 # The more standards-conforming stlport4 library is
12985 # incompatible with the Cstd library. Avoid specifying
12986 # it if it's in CXXFLAGS. Ignore libCrun as
12987 # -library=stlport4 depends on it.
12988 case " $CXX $CXXFLAGS " in
12989 *" -library=stlport4 "*)
12990 solaris_use_stlport4=yes
12991 ;;
12992 esac
12993
12994 if test "$solaris_use_stlport4" != yes; then
12995 postdeps_CXX='-library=Cstd -library=Crun'
12996 fi
12997 ;;
12998 esac
12999 ;;
13000
13001 solaris*)
13002 case $cc_basename in
13003 CC*)
13004 # The more standards-conforming stlport4 library is
13005 # incompatible with the Cstd library. Avoid specifying
13006 # it if it's in CXXFLAGS. Ignore libCrun as
13007 # -library=stlport4 depends on it.
13008 case " $CXX $CXXFLAGS " in
13009 *" -library=stlport4 "*)
13010 solaris_use_stlport4=yes
13011 ;;
13012 esac
13013
13014 # Adding this requires a known-good setup of shared libraries for
13015 # Sun compiler versions before 5.6, else PIC objects from an old
13016 # archive will be linked into the output, leading to subtle bugs.
13017 if test "$solaris_use_stlport4" != yes; then
13018 postdeps_CXX='-library=Cstd -library=Crun'
13019 fi
13020 ;;
13021 esac
13022 ;;
13023 esac
13024
13025
13026 case " $postdeps_CXX " in
13027 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13028 esac
13029 compiler_lib_search_dirs_CXX=
13030 if test -n "${compiler_lib_search_path_CXX}"; then
13031 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13032 fi
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064 lt_prog_compiler_wl_CXX=
13065 lt_prog_compiler_pic_CXX=
13066 lt_prog_compiler_static_CXX=
13067
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13069 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13070
13071 # C++ specific cases for pic, static, wl, etc.
13072 if test "$GXX" = yes; then
13073 lt_prog_compiler_wl_CXX='-Wl,'
13074 lt_prog_compiler_static_CXX='-static'
13075
13076 case $host_os in
13077 aix*)
13078 # All AIX code is PIC.
13079 if test "$host_cpu" = ia64; then
13080 # AIX 5 now supports IA64 processor
13081 lt_prog_compiler_static_CXX='-Bstatic'
13082 fi
13083 ;;
13084
13085 amigaos*)
13086 case $host_cpu in
13087 powerpc)
13088 # see comment about AmigaOS4 .so support
13089 lt_prog_compiler_pic_CXX='-fPIC'
13090 ;;
13091 m68k)
13092 # FIXME: we need at least 68020 code to build shared libraries, but
13093 # adding the `-m68020' flag to GCC prevents building anything better,
13094 # like `-m68040'.
13095 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13096 ;;
13097 esac
13098 ;;
13099
13100 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13101 # PIC is the default for these OSes.
13102 ;;
13103 mingw* | cygwin* | os2* | pw32* | cegcc*)
13104 # This hack is so that the source file can tell whether it is being
13105 # built for inclusion in a dll (and should export symbols for example).
13106 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13107 # (--disable-auto-import) libraries
13108 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13109 ;;
13110 darwin* | rhapsody*)
13111 # PIC is the default on this platform
13112 # Common symbols not allowed in MH_DYLIB files
13113 lt_prog_compiler_pic_CXX='-fno-common'
13114 ;;
13115 *djgpp*)
13116 # DJGPP does not support shared libraries at all
13117 lt_prog_compiler_pic_CXX=
13118 ;;
13119 interix[3-9]*)
13120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13121 # Instead, we relocate shared libraries at runtime.
13122 ;;
13123 sysv4*MP*)
13124 if test -d /usr/nec; then
13125 lt_prog_compiler_pic_CXX=-Kconform_pic
13126 fi
13127 ;;
13128 hpux*)
13129 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13130 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13131 # sets the default TLS model and affects inlining.
13132 case $host_cpu in
13133 hppa*64*)
13134 ;;
13135 *)
13136 lt_prog_compiler_pic_CXX='-fPIC'
13137 ;;
13138 esac
13139 ;;
13140 *qnx* | *nto*)
13141 # QNX uses GNU C++, but need to define -shared option too, otherwise
13142 # it will coredump.
13143 lt_prog_compiler_pic_CXX='-fPIC -shared'
13144 ;;
13145 *)
13146 lt_prog_compiler_pic_CXX='-fPIC'
13147 ;;
13148 esac
13149 else
13150 case $host_os in
13151 aix[4-9]*)
13152 # All AIX code is PIC.
13153 if test "$host_cpu" = ia64; then
13154 # AIX 5 now supports IA64 processor
13155 lt_prog_compiler_static_CXX='-Bstatic'
13156 else
13157 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13158 fi
13159 ;;
13160 chorus*)
13161 case $cc_basename in
13162 cxch68*)
13163 # Green Hills C++ Compiler
13164 # _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"
13165 ;;
13166 esac
13167 ;;
13168 dgux*)
13169 case $cc_basename in
13170 ec++*)
13171 lt_prog_compiler_pic_CXX='-KPIC'
13172 ;;
13173 ghcx*)
13174 # Green Hills C++ Compiler
13175 lt_prog_compiler_pic_CXX='-pic'
13176 ;;
13177 *)
13178 ;;
13179 esac
13180 ;;
13181 freebsd* | dragonfly*)
13182 # FreeBSD uses GNU C++
13183 ;;
13184 hpux9* | hpux10* | hpux11*)
13185 case $cc_basename in
13186 CC*)
13187 lt_prog_compiler_wl_CXX='-Wl,'
13188 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13189 if test "$host_cpu" != ia64; then
13190 lt_prog_compiler_pic_CXX='+Z'
13191 fi
13192 ;;
13193 aCC*)
13194 lt_prog_compiler_wl_CXX='-Wl,'
13195 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13196 case $host_cpu in
13197 hppa*64*|ia64*)
13198 # +Z the default
13199 ;;
13200 *)
13201 lt_prog_compiler_pic_CXX='+Z'
13202 ;;
13203 esac
13204 ;;
13205 *)
13206 ;;
13207 esac
13208 ;;
13209 interix*)
13210 # This is c89, which is MS Visual C++ (no shared libs)
13211 # Anyone wants to do a port?
13212 ;;
13213 irix5* | irix6* | nonstopux*)
13214 case $cc_basename in
13215 CC*)
13216 lt_prog_compiler_wl_CXX='-Wl,'
13217 lt_prog_compiler_static_CXX='-non_shared'
13218 # CC pic flag -KPIC is the default.
13219 ;;
13220 *)
13221 ;;
13222 esac
13223 ;;
13224 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13225 case $cc_basename in
13226 KCC*)
13227 # KAI C++ Compiler
13228 lt_prog_compiler_wl_CXX='--backend -Wl,'
13229 lt_prog_compiler_pic_CXX='-fPIC'
13230 ;;
13231 ecpc* )
13232 # old Intel C++ for x86_64 which still supported -KPIC.
13233 lt_prog_compiler_wl_CXX='-Wl,'
13234 lt_prog_compiler_pic_CXX='-KPIC'
13235 lt_prog_compiler_static_CXX='-static'
13236 ;;
13237 icpc* )
13238 # Intel C++, used to be incompatible with GCC.
13239 # ICC 10 doesn't accept -KPIC any more.
13240 lt_prog_compiler_wl_CXX='-Wl,'
13241 lt_prog_compiler_pic_CXX='-fPIC'
13242 lt_prog_compiler_static_CXX='-static'
13243 ;;
13244 pgCC* | pgcpp*)
13245 # Portland Group C++ compiler
13246 lt_prog_compiler_wl_CXX='-Wl,'
13247 lt_prog_compiler_pic_CXX='-fpic'
13248 lt_prog_compiler_static_CXX='-Bstatic'
13249 ;;
13250 cxx*)
13251 # Compaq C++
13252 # Make sure the PIC flag is empty. It appears that all Alpha
13253 # Linux and Compaq Tru64 Unix objects are PIC.
13254 lt_prog_compiler_pic_CXX=
13255 lt_prog_compiler_static_CXX='-non_shared'
13256 ;;
13257 xlc* | xlC*)
13258 # IBM XL 8.0 on PPC
13259 lt_prog_compiler_wl_CXX='-Wl,'
13260 lt_prog_compiler_pic_CXX='-qpic'
13261 lt_prog_compiler_static_CXX='-qstaticlink'
13262 ;;
13263 *)
13264 case `$CC -V 2>&1 | sed 5q` in
13265 *Sun\ C*)
13266 # Sun C++ 5.9
13267 lt_prog_compiler_pic_CXX='-KPIC'
13268 lt_prog_compiler_static_CXX='-Bstatic'
13269 lt_prog_compiler_wl_CXX='-Qoption ld '
13270 ;;
13271 esac
13272 ;;
13273 esac
13274 ;;
13275 lynxos*)
13276 ;;
13277 m88k*)
13278 ;;
13279 mvs*)
13280 case $cc_basename in
13281 cxx*)
13282 lt_prog_compiler_pic_CXX='-W c,exportall'
13283 ;;
13284 *)
13285 ;;
13286 esac
13287 ;;
13288 netbsd* | netbsdelf*-gnu)
13289 ;;
13290 *qnx* | *nto*)
13291 # QNX uses GNU C++, but need to define -shared option too, otherwise
13292 # it will coredump.
13293 lt_prog_compiler_pic_CXX='-fPIC -shared'
13294 ;;
13295 osf3* | osf4* | osf5*)
13296 case $cc_basename in
13297 KCC*)
13298 lt_prog_compiler_wl_CXX='--backend -Wl,'
13299 ;;
13300 RCC*)
13301 # Rational C++ 2.4.1
13302 lt_prog_compiler_pic_CXX='-pic'
13303 ;;
13304 cxx*)
13305 # Digital/Compaq C++
13306 lt_prog_compiler_wl_CXX='-Wl,'
13307 # Make sure the PIC flag is empty. It appears that all Alpha
13308 # Linux and Compaq Tru64 Unix objects are PIC.
13309 lt_prog_compiler_pic_CXX=
13310 lt_prog_compiler_static_CXX='-non_shared'
13311 ;;
13312 *)
13313 ;;
13314 esac
13315 ;;
13316 psos*)
13317 ;;
13318 solaris*)
13319 case $cc_basename in
13320 CC*)
13321 # Sun C++ 4.2, 5.x and Centerline C++
13322 lt_prog_compiler_pic_CXX='-KPIC'
13323 lt_prog_compiler_static_CXX='-Bstatic'
13324 lt_prog_compiler_wl_CXX='-Qoption ld '
13325 ;;
13326 gcx*)
13327 # Green Hills C++ Compiler
13328 lt_prog_compiler_pic_CXX='-PIC'
13329 ;;
13330 *)
13331 ;;
13332 esac
13333 ;;
13334 sunos4*)
13335 case $cc_basename in
13336 CC*)
13337 # Sun C++ 4.x
13338 lt_prog_compiler_pic_CXX='-pic'
13339 lt_prog_compiler_static_CXX='-Bstatic'
13340 ;;
13341 lcc*)
13342 # Lucid
13343 lt_prog_compiler_pic_CXX='-pic'
13344 ;;
13345 *)
13346 ;;
13347 esac
13348 ;;
13349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13350 case $cc_basename in
13351 CC*)
13352 lt_prog_compiler_wl_CXX='-Wl,'
13353 lt_prog_compiler_pic_CXX='-KPIC'
13354 lt_prog_compiler_static_CXX='-Bstatic'
13355 ;;
13356 esac
13357 ;;
13358 tandem*)
13359 case $cc_basename in
13360 NCC*)
13361 # NonStop-UX NCC 3.20
13362 lt_prog_compiler_pic_CXX='-KPIC'
13363 ;;
13364 *)
13365 ;;
13366 esac
13367 ;;
13368 vxworks*)
13369 ;;
13370 *)
13371 lt_prog_compiler_can_build_shared_CXX=no
13372 ;;
13373 esac
13374 fi
13375
13376 case $host_os in
13377 # For platforms which do not support PIC, -DPIC is meaningless:
13378 *djgpp*)
13379 lt_prog_compiler_pic_CXX=
13380 ;;
13381 *)
13382 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13383 ;;
13384 esac
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13386 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13387
13388
13389
13390 #
13391 # Check to make sure the PIC flag actually works.
13392 #
13393 if test -n "$lt_prog_compiler_pic_CXX"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13395 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13396 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 lt_cv_prog_compiler_pic_works_CXX=no
13400 ac_outfile=conftest.$ac_objext
13401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13402 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13403 # Insert the option either (1) after the last *FLAGS variable, or
13404 # (2) before a word containing "conftest.", or (3) at the end.
13405 # Note that $ac_compile itself does not contain backslashes and begins
13406 # with a dollar sign (not a hyphen), so the echo should work correctly.
13407 # The option is referenced via a variable to avoid confusing sed.
13408 lt_compile=`echo "$ac_compile" | $SED \
13409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13411 -e 's:$: $lt_compiler_flag:'`
13412 (eval echo "\"\$as_me:13412: $lt_compile\"" >&5)
13413 (eval "$lt_compile" 2>conftest.err)
13414 ac_status=$?
13415 cat conftest.err >&5
13416 echo "$as_me:13416: \$? = $ac_status" >&5
13417 if (exit $ac_status) && test -s "$ac_outfile"; then
13418 # The compiler can only warn and ignore the option if not recognized
13419 # So say no if there are warnings other than the usual output.
13420 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13423 lt_cv_prog_compiler_pic_works_CXX=yes
13424 fi
13425 fi
13426 $RM conftest*
13427
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13430 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13431
13432 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13433 case $lt_prog_compiler_pic_CXX in
13434 "" | " "*) ;;
13435 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13436 esac
13437 else
13438 lt_prog_compiler_pic_CXX=
13439 lt_prog_compiler_can_build_shared_CXX=no
13440 fi
13441
13442 fi
13443
13444
13445
13446 #
13447 # Check to make sure the static flag actually works.
13448 #
13449 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13451 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13452 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 lt_cv_prog_compiler_static_works_CXX=no
13456 save_LDFLAGS="$LDFLAGS"
13457 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13458 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13460 # The linker can only warn and ignore the option if not recognized
13461 # So say no if there are warnings
13462 if test -s conftest.err; then
13463 # Append any errors to the config.log.
13464 cat conftest.err 1>&5
13465 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13467 if diff conftest.exp conftest.er2 >/dev/null; then
13468 lt_cv_prog_compiler_static_works_CXX=yes
13469 fi
13470 else
13471 lt_cv_prog_compiler_static_works_CXX=yes
13472 fi
13473 fi
13474 $RM -r conftest*
13475 LDFLAGS="$save_LDFLAGS"
13476
13477 fi
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13479 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13480
13481 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13482 :
13483 else
13484 lt_prog_compiler_static_CXX=
13485 fi
13486
13487
13488
13489
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13491 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13492 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 lt_cv_prog_compiler_c_o_CXX=no
13496 $RM -r conftest 2>/dev/null
13497 mkdir conftest
13498 cd conftest
13499 mkdir out
13500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13501
13502 lt_compiler_flag="-o out/conftest2.$ac_objext"
13503 # Insert the option either (1) after the last *FLAGS variable, or
13504 # (2) before a word containing "conftest.", or (3) at the end.
13505 # Note that $ac_compile itself does not contain backslashes and begins
13506 # with a dollar sign (not a hyphen), so the echo should work correctly.
13507 lt_compile=`echo "$ac_compile" | $SED \
13508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13510 -e 's:$: $lt_compiler_flag:'`
13511 (eval echo "\"\$as_me:13511: $lt_compile\"" >&5)
13512 (eval "$lt_compile" 2>out/conftest.err)
13513 ac_status=$?
13514 cat out/conftest.err >&5
13515 echo "$as_me:13515: \$? = $ac_status" >&5
13516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13517 then
13518 # The compiler can only warn and ignore the option if not recognized
13519 # So say no if there are warnings
13520 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13523 lt_cv_prog_compiler_c_o_CXX=yes
13524 fi
13525 fi
13526 chmod u+w . 2>&5
13527 $RM conftest*
13528 # SGI C++ compiler will create directory out/ii_files/ for
13529 # template instantiation
13530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13531 $RM out/* && rmdir out
13532 cd ..
13533 $RM -r conftest
13534 $RM conftest*
13535
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13538 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13539
13540
13541
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13544 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 lt_cv_prog_compiler_c_o_CXX=no
13548 $RM -r conftest 2>/dev/null
13549 mkdir conftest
13550 cd conftest
13551 mkdir out
13552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13553
13554 lt_compiler_flag="-o out/conftest2.$ac_objext"
13555 # Insert the option either (1) after the last *FLAGS variable, or
13556 # (2) before a word containing "conftest.", or (3) at the end.
13557 # Note that $ac_compile itself does not contain backslashes and begins
13558 # with a dollar sign (not a hyphen), so the echo should work correctly.
13559 lt_compile=`echo "$ac_compile" | $SED \
13560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13562 -e 's:$: $lt_compiler_flag:'`
13563 (eval echo "\"\$as_me:13563: $lt_compile\"" >&5)
13564 (eval "$lt_compile" 2>out/conftest.err)
13565 ac_status=$?
13566 cat out/conftest.err >&5
13567 echo "$as_me:13567: \$? = $ac_status" >&5
13568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13569 then
13570 # The compiler can only warn and ignore the option if not recognized
13571 # So say no if there are warnings
13572 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13575 lt_cv_prog_compiler_c_o_CXX=yes
13576 fi
13577 fi
13578 chmod u+w . 2>&5
13579 $RM conftest*
13580 # SGI C++ compiler will create directory out/ii_files/ for
13581 # template instantiation
13582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13583 $RM out/* && rmdir out
13584 cd ..
13585 $RM -r conftest
13586 $RM conftest*
13587
13588 fi
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13590 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13591
13592
13593
13594
13595 hard_links="nottested"
13596 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13597 # do not overwrite the value of need_locks provided by the user
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13599 $as_echo_n "checking if we can lock with hard links... " >&6; }
13600 hard_links=yes
13601 $RM conftest*
13602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13603 touch conftest.a
13604 ln conftest.a conftest.b 2>&5 || hard_links=no
13605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13607 $as_echo "$hard_links" >&6; }
13608 if test "$hard_links" = no; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13610 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13611 need_locks=warn
13612 fi
13613 else
13614 need_locks=no
13615 fi
13616
13617
13618
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13620 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13621
13622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13623 case $host_os in
13624 aix[4-9]*)
13625 # If we're using GNU nm, then we don't want the "-C" option.
13626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13628 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'
13629 else
13630 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'
13631 fi
13632 ;;
13633 pw32*)
13634 export_symbols_cmds_CXX="$ltdll_cmds"
13635 ;;
13636 cygwin* | mingw* | cegcc*)
13637 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'
13638 ;;
13639 linux* | k*bsd*-gnu)
13640 link_all_deplibs_CXX=no
13641 ;;
13642 *)
13643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13644 ;;
13645 esac
13646 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13649 $as_echo "$ld_shlibs_CXX" >&6; }
13650 test "$ld_shlibs_CXX" = no && can_build_shared=no
13651
13652 with_gnu_ld_CXX=$with_gnu_ld
13653
13654
13655
13656
13657
13658
13659 #
13660 # Do we need to explicitly link libc?
13661 #
13662 case "x$archive_cmds_need_lc_CXX" in
13663 x|xyes)
13664 # Assume -lc should be added
13665 archive_cmds_need_lc_CXX=yes
13666
13667 if test "$enable_shared" = yes && test "$GCC" = yes; then
13668 case $archive_cmds_CXX in
13669 *'~'*)
13670 # FIXME: we may have to deal with multi-command sequences.
13671 ;;
13672 '$CC '*)
13673 # Test whether the compiler implicitly links with -lc since on some
13674 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13675 # to ld, don't add -lc before -lgcc.
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13677 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13678 $RM conftest*
13679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13680
13681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13682 (eval $ac_compile) 2>&5
13683 ac_status=$?
13684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13685 test $ac_status = 0; } 2>conftest.err; then
13686 soname=conftest
13687 lib=conftest
13688 libobjs=conftest.$ac_objext
13689 deplibs=
13690 wl=$lt_prog_compiler_wl_CXX
13691 pic_flag=$lt_prog_compiler_pic_CXX
13692 compiler_flags=-v
13693 linker_flags=-v
13694 verstring=
13695 output_objdir=.
13696 libname=conftest
13697 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13698 allow_undefined_flag_CXX=
13699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13700 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13701 ac_status=$?
13702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703 test $ac_status = 0; }
13704 then
13705 archive_cmds_need_lc_CXX=no
13706 else
13707 archive_cmds_need_lc_CXX=yes
13708 fi
13709 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13710 else
13711 cat conftest.err 1>&5
13712 fi
13713 $RM conftest*
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13715 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13716 ;;
13717 esac
13718 fi
13719 ;;
13720 esac
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13786 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13787
13788 library_names_spec=
13789 libname_spec='lib$name'
13790 soname_spec=
13791 shrext_cmds=".so"
13792 postinstall_cmds=
13793 postuninstall_cmds=
13794 finish_cmds=
13795 finish_eval=
13796 shlibpath_var=
13797 shlibpath_overrides_runpath=unknown
13798 version_type=none
13799 dynamic_linker="$host_os ld.so"
13800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13801 need_lib_prefix=unknown
13802 hardcode_into_libs=no
13803
13804 # when you set need_version to no, make sure it does not cause -set_version
13805 # flags to be left without arguments
13806 need_version=unknown
13807
13808 case $host_os in
13809 aix3*)
13810 version_type=linux
13811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13812 shlibpath_var=LIBPATH
13813
13814 # AIX 3 has no versioning support, so we append a major version to the name.
13815 soname_spec='${libname}${release}${shared_ext}$major'
13816 ;;
13817
13818 aix[4-9]*)
13819 version_type=linux
13820 need_lib_prefix=no
13821 need_version=no
13822 hardcode_into_libs=yes
13823 if test "$host_cpu" = ia64; then
13824 # AIX 5 supports IA64
13825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13826 shlibpath_var=LD_LIBRARY_PATH
13827 else
13828 # With GCC up to 2.95.x, collect2 would create an import file
13829 # for dependence libraries. The import file would start with
13830 # the line `#! .'. This would cause the generated library to
13831 # depend on `.', always an invalid library. This was fixed in
13832 # development snapshots of GCC prior to 3.0.
13833 case $host_os in
13834 aix4 | aix4.[01] | aix4.[01].*)
13835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13836 echo ' yes '
13837 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13838 :
13839 else
13840 can_build_shared=no
13841 fi
13842 ;;
13843 esac
13844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13845 # soname into executable. Probably we can add versioning support to
13846 # collect2, so additional links can be useful in future.
13847 if test "$aix_use_runtimelinking" = yes; then
13848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13849 # instead of lib<name>.a to let people know that these are not
13850 # typical AIX shared libraries.
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 else
13853 # We preserve .a as extension for shared libraries through AIX4.2
13854 # and later when we are not doing run time linking.
13855 library_names_spec='${libname}${release}.a $libname.a'
13856 soname_spec='${libname}${release}${shared_ext}$major'
13857 fi
13858 shlibpath_var=LIBPATH
13859 fi
13860 ;;
13861
13862 amigaos*)
13863 case $host_cpu in
13864 powerpc)
13865 # Since July 2007 AmigaOS4 officially supports .so libraries.
13866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13868 ;;
13869 m68k)
13870 library_names_spec='$libname.ixlibrary $libname.a'
13871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13872 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'
13873 ;;
13874 esac
13875 ;;
13876
13877 beos*)
13878 library_names_spec='${libname}${shared_ext}'
13879 dynamic_linker="$host_os ld.so"
13880 shlibpath_var=LIBRARY_PATH
13881 ;;
13882
13883 bsdi[45]*)
13884 version_type=linux
13885 need_version=no
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887 soname_spec='${libname}${release}${shared_ext}$major'
13888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13889 shlibpath_var=LD_LIBRARY_PATH
13890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13892 # the default ld.so.conf also contains /usr/contrib/lib and
13893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13894 # libtool to hard-code these into programs
13895 ;;
13896
13897 cygwin* | mingw* | pw32* | cegcc*)
13898 version_type=windows
13899 shrext_cmds=".dll"
13900 need_version=no
13901 need_lib_prefix=no
13902
13903 case $GCC,$host_os in
13904 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13905 library_names_spec='$libname.dll.a'
13906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13907 postinstall_cmds='base_file=`basename \${file}`~
13908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13909 dldir=$destdir/`dirname \$dlpath`~
13910 test -d \$dldir || mkdir -p \$dldir~
13911 $install_prog $dir/$dlname \$dldir/$dlname~
13912 chmod a+x \$dldir/$dlname~
13913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13915 fi'
13916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13917 dlpath=$dir/\$dldll~
13918 $RM \$dlpath'
13919 shlibpath_overrides_runpath=yes
13920
13921 case $host_os in
13922 cygwin*)
13923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13925 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13926 ;;
13927 mingw* | cegcc*)
13928 # MinGW DLLs use traditional 'lib' prefix
13929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13930 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13931 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13932 # It is most probably a Windows format PATH printed by
13933 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13934 # path with ; separators, and with drive letters. We can handle the
13935 # drive letters (cygwin fileutils understands them), so leave them,
13936 # especially as we might pass files found there to a mingw objdump,
13937 # which wouldn't understand a cygwinified path. Ahh.
13938 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13939 else
13940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13941 fi
13942 ;;
13943 pw32*)
13944 # pw32 DLLs use 'pw' prefix rather than 'lib'
13945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13946 ;;
13947 esac
13948 ;;
13949
13950 *)
13951 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13952 ;;
13953 esac
13954 dynamic_linker='Win32 ld.exe'
13955 # FIXME: first we should search . and the directory the executable is in
13956 shlibpath_var=PATH
13957 ;;
13958
13959 darwin* | rhapsody*)
13960 dynamic_linker="$host_os dyld"
13961 version_type=darwin
13962 need_lib_prefix=no
13963 need_version=no
13964 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13965 soname_spec='${libname}${release}${major}$shared_ext'
13966 shlibpath_overrides_runpath=yes
13967 shlibpath_var=DYLD_LIBRARY_PATH
13968 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13969
13970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13971 ;;
13972
13973 dgux*)
13974 version_type=linux
13975 need_lib_prefix=no
13976 need_version=no
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 ;;
13981
13982 freebsd1*)
13983 dynamic_linker=no
13984 ;;
13985
13986 freebsd* | dragonfly*)
13987 # DragonFly does not have aout. When/if they implement a new
13988 # versioning mechanism, adjust this.
13989 if test -x /usr/bin/objformat; then
13990 objformat=`/usr/bin/objformat`
13991 else
13992 case $host_os in
13993 freebsd[123]*) objformat=aout ;;
13994 *) objformat=elf ;;
13995 esac
13996 fi
13997 version_type=freebsd-$objformat
13998 case $version_type in
13999 freebsd-elf*)
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14001 need_version=no
14002 need_lib_prefix=no
14003 ;;
14004 freebsd-*)
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14006 need_version=yes
14007 ;;
14008 esac
14009 shlibpath_var=LD_LIBRARY_PATH
14010 case $host_os in
14011 freebsd2*)
14012 shlibpath_overrides_runpath=yes
14013 ;;
14014 freebsd3.[01]* | freebsdelf3.[01]*)
14015 shlibpath_overrides_runpath=yes
14016 hardcode_into_libs=yes
14017 ;;
14018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14020 shlibpath_overrides_runpath=no
14021 hardcode_into_libs=yes
14022 ;;
14023 *) # from 4.6 on, and DragonFly
14024 shlibpath_overrides_runpath=yes
14025 hardcode_into_libs=yes
14026 ;;
14027 esac
14028 ;;
14029
14030 gnu*)
14031 version_type=linux
14032 need_lib_prefix=no
14033 need_version=no
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14035 soname_spec='${libname}${release}${shared_ext}$major'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 hardcode_into_libs=yes
14038 ;;
14039
14040 hpux9* | hpux10* | hpux11*)
14041 # Give a soname corresponding to the major version so that dld.sl refuses to
14042 # link against other versions.
14043 version_type=sunos
14044 need_lib_prefix=no
14045 need_version=no
14046 case $host_cpu in
14047 ia64*)
14048 shrext_cmds='.so'
14049 hardcode_into_libs=yes
14050 dynamic_linker="$host_os dld.so"
14051 shlibpath_var=LD_LIBRARY_PATH
14052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054 soname_spec='${libname}${release}${shared_ext}$major'
14055 if test "X$HPUX_IA64_MODE" = X32; then
14056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14057 else
14058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14059 fi
14060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14061 ;;
14062 hppa*64*)
14063 shrext_cmds='.sl'
14064 hardcode_into_libs=yes
14065 dynamic_linker="$host_os dld.sl"
14066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14072 ;;
14073 *)
14074 shrext_cmds='.sl'
14075 dynamic_linker="$host_os dld.sl"
14076 shlibpath_var=SHLIB_PATH
14077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 ;;
14081 esac
14082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14083 postinstall_cmds='chmod 555 $lib'
14084 ;;
14085
14086 interix[3-9]*)
14087 version_type=linux
14088 need_lib_prefix=no
14089 need_version=no
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 shlibpath_overrides_runpath=no
14095 hardcode_into_libs=yes
14096 ;;
14097
14098 irix5* | irix6* | nonstopux*)
14099 case $host_os in
14100 nonstopux*) version_type=nonstopux ;;
14101 *)
14102 if test "$lt_cv_prog_gnu_ld" = yes; then
14103 version_type=linux
14104 else
14105 version_type=irix
14106 fi ;;
14107 esac
14108 need_lib_prefix=no
14109 need_version=no
14110 soname_spec='${libname}${release}${shared_ext}$major'
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14112 case $host_os in
14113 irix5* | nonstopux*)
14114 libsuff= shlibsuff=
14115 ;;
14116 *)
14117 case $LD in # libtool.m4 will add one of these switches to LD
14118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14119 libsuff= shlibsuff= libmagic=32-bit;;
14120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14121 libsuff=32 shlibsuff=N32 libmagic=N32;;
14122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14124 *) libsuff= shlibsuff= libmagic=never-match;;
14125 esac
14126 ;;
14127 esac
14128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14129 shlibpath_overrides_runpath=no
14130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14132 hardcode_into_libs=yes
14133 ;;
14134
14135 # No shared lib support for Linux oldld, aout, or coff.
14136 linux*oldld* | linux*aout* | linux*coff*)
14137 dynamic_linker=no
14138 ;;
14139
14140 # This must be Linux ELF.
14141 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14142 version_type=linux
14143 need_lib_prefix=no
14144 need_version=no
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 shlibpath_overrides_runpath=no
14150 # Some binutils ld are patched to set DT_RUNPATH
14151 save_LDFLAGS=$LDFLAGS
14152 save_libdir=$libdir
14153 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14154 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14157
14158 int
14159 main ()
14160 {
14161
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_cxx_try_link "$LINENO"; then :
14167 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14168 shlibpath_overrides_runpath=yes
14169 fi
14170 fi
14171 rm -f core conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
14173 LDFLAGS=$save_LDFLAGS
14174 libdir=$save_libdir
14175
14176 # This implies no fast_install, which is unacceptable.
14177 # Some rework will be needed to allow for fast_install
14178 # before this can be enabled.
14179 hardcode_into_libs=yes
14180
14181 # Append ld.so.conf contents to the search path
14182 if test -f /etc/ld.so.conf; then
14183 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' ' '`
14184 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14185 fi
14186
14187 # We used to test for /lib/ld.so.1 and disable shared libraries on
14188 # powerpc, because MkLinux only supported shared libraries with the
14189 # GNU dynamic linker. Since this was broken with cross compilers,
14190 # most powerpc-linux boxes support dynamic linking these days and
14191 # people can always --disable-shared, the test was removed, and we
14192 # assume the GNU/Linux dynamic linker is in use.
14193 dynamic_linker='GNU/Linux ld.so'
14194 ;;
14195
14196 netbsdelf*-gnu)
14197 version_type=linux
14198 need_lib_prefix=no
14199 need_version=no
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14201 soname_spec='${libname}${release}${shared_ext}$major'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 shlibpath_overrides_runpath=no
14204 hardcode_into_libs=yes
14205 dynamic_linker='NetBSD ld.elf_so'
14206 ;;
14207
14208 netbsd*)
14209 version_type=sunos
14210 need_lib_prefix=no
14211 need_version=no
14212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14215 dynamic_linker='NetBSD (a.out) ld.so'
14216 else
14217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14218 soname_spec='${libname}${release}${shared_ext}$major'
14219 dynamic_linker='NetBSD ld.elf_so'
14220 fi
14221 shlibpath_var=LD_LIBRARY_PATH
14222 shlibpath_overrides_runpath=yes
14223 hardcode_into_libs=yes
14224 ;;
14225
14226 newsos6)
14227 version_type=linux
14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 shlibpath_overrides_runpath=yes
14231 ;;
14232
14233 *nto* | *qnx*)
14234 version_type=qnx
14235 need_lib_prefix=no
14236 need_version=no
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 shlibpath_overrides_runpath=no
14241 hardcode_into_libs=yes
14242 dynamic_linker='ldqnx.so'
14243 ;;
14244
14245 openbsd*)
14246 version_type=sunos
14247 sys_lib_dlsearch_path_spec="/usr/lib"
14248 need_lib_prefix=no
14249 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14250 case $host_os in
14251 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14252 *) need_version=no ;;
14253 esac
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14258 case $host_os in
14259 openbsd2.[89] | openbsd2.[89].*)
14260 shlibpath_overrides_runpath=no
14261 ;;
14262 *)
14263 shlibpath_overrides_runpath=yes
14264 ;;
14265 esac
14266 else
14267 shlibpath_overrides_runpath=yes
14268 fi
14269 ;;
14270
14271 os2*)
14272 libname_spec='$name'
14273 shrext_cmds=".dll"
14274 need_lib_prefix=no
14275 library_names_spec='$libname${shared_ext} $libname.a'
14276 dynamic_linker='OS/2 ld.exe'
14277 shlibpath_var=LIBPATH
14278 ;;
14279
14280 osf3* | osf4* | osf5*)
14281 version_type=osf
14282 need_lib_prefix=no
14283 need_version=no
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14288 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14289 ;;
14290
14291 rdos*)
14292 dynamic_linker=no
14293 ;;
14294
14295 solaris*)
14296 version_type=linux
14297 need_lib_prefix=no
14298 need_version=no
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 shlibpath_overrides_runpath=yes
14303 hardcode_into_libs=yes
14304 # ldd complains unless libraries are executable
14305 postinstall_cmds='chmod +x $lib'
14306 ;;
14307
14308 sunos4*)
14309 version_type=sunos
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14312 shlibpath_var=LD_LIBRARY_PATH
14313 shlibpath_overrides_runpath=yes
14314 if test "$with_gnu_ld" = yes; then
14315 need_lib_prefix=no
14316 fi
14317 need_version=yes
14318 ;;
14319
14320 sysv4 | sysv4.3*)
14321 version_type=linux
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 case $host_vendor in
14326 sni)
14327 shlibpath_overrides_runpath=no
14328 need_lib_prefix=no
14329 runpath_var=LD_RUN_PATH
14330 ;;
14331 siemens)
14332 need_lib_prefix=no
14333 ;;
14334 motorola)
14335 need_lib_prefix=no
14336 need_version=no
14337 shlibpath_overrides_runpath=no
14338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14339 ;;
14340 esac
14341 ;;
14342
14343 sysv4*MP*)
14344 if test -d /usr/nec ;then
14345 version_type=linux
14346 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14347 soname_spec='$libname${shared_ext}.$major'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 fi
14350 ;;
14351
14352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14353 version_type=freebsd-elf
14354 need_lib_prefix=no
14355 need_version=no
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 shlibpath_overrides_runpath=yes
14360 hardcode_into_libs=yes
14361 if test "$with_gnu_ld" = yes; then
14362 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14363 else
14364 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14365 case $host_os in
14366 sco3.2v5*)
14367 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14368 ;;
14369 esac
14370 fi
14371 sys_lib_dlsearch_path_spec='/usr/lib'
14372 ;;
14373
14374 tpf*)
14375 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14376 version_type=linux
14377 need_lib_prefix=no
14378 need_version=no
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 shlibpath_overrides_runpath=no
14382 hardcode_into_libs=yes
14383 ;;
14384
14385 uts4*)
14386 version_type=linux
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 ;;
14391
14392 *)
14393 dynamic_linker=no
14394 ;;
14395 esac
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14397 $as_echo "$dynamic_linker" >&6; }
14398 test "$dynamic_linker" = no && can_build_shared=no
14399
14400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14401 if test "$GCC" = yes; then
14402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14403 fi
14404
14405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14406 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14407 fi
14408 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14409 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14410 fi
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14449 hardcode_action_CXX=
14450 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14451 test -n "$runpath_var_CXX" ||
14452 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14453
14454 # We can hardcode non-existent directories.
14455 if test "$hardcode_direct_CXX" != no &&
14456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14457 # have to relink, otherwise we might link with an installed library
14458 # when we should be linking with a yet-to-be-installed one
14459 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14460 test "$hardcode_minus_L_CXX" != no; then
14461 # Linking always hardcodes the temporary library directory.
14462 hardcode_action_CXX=relink
14463 else
14464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14465 hardcode_action_CXX=immediate
14466 fi
14467 else
14468 # We cannot hardcode anything, or else we can only hardcode existing
14469 # directories.
14470 hardcode_action_CXX=unsupported
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14473 $as_echo "$hardcode_action_CXX" >&6; }
14474
14475 if test "$hardcode_action_CXX" = relink ||
14476 test "$inherit_rpath_CXX" = yes; then
14477 # Fast installation is not supported
14478 enable_fast_install=no
14479 elif test "$shlibpath_overrides_runpath" = yes ||
14480 test "$enable_shared" = no; then
14481 # Fast installation is not necessary
14482 enable_fast_install=needless
14483 fi
14484
14485
14486
14487
14488
14489
14490
14491 fi # test -n "$compiler"
14492
14493 CC=$lt_save_CC
14494 LDCXX=$LD
14495 LD=$lt_save_LD
14496 GCC=$lt_save_GCC
14497 with_gnu_ld=$lt_save_with_gnu_ld
14498 lt_cv_path_LDCXX=$lt_cv_path_LD
14499 lt_cv_path_LD=$lt_save_path_LD
14500 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14501 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14502 fi # test "$_lt_caught_CXX_error" != yes
14503
14504 ac_ext=cpp
14505 ac_cpp='$CXXCPP $CPPFLAGS'
14506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14509
14510
14511
14512 # change default extention for source files
14513 ac_ext=cc
14514
14515
14516 # Check whether --enable-std-include was given.
14517 if test "${enable_std_include+set}" = set; then :
14518 enableval=$enable_std_include;
14519 std_include=`echo -I$enableval | sed 's/:/ -I/g'`
14520 CPPFLAGS="$CPPFLAGS $std_include"
14521
14522 else
14523 std_include=''
14524
14525 fi
14526
14527
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) is a C++ compiler" >&5
14530 $as_echo_n "checking whether the C++ compiler ($CXX) is a C++ compiler... " >&6; }
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533
14534 #define Concat(a,b) a ## b
14535 struct T {
14536 virtual ~T();
14537 virtual int m() const = 0;
14538 mutable bool a;
14539 };
14540
14541 template <class P>
14542 struct C: public P {
14543 C(int): c(0) {}
14544 int m() const;
14545 int c;
14546 };
14547
14548 template <class P>
14549 int C<P>::m() const { Concat(re,turn) c; }
14550
14551 inline int test_inline() { return 0; }
14552
14553 int
14554 main ()
14555 {
14556
14557 // this is main()'s body
14558 static C<T> ct(1);
14559 return 0;
14560
14561 ;
14562 return 0;
14563 }
14564 _ACEOF
14565 if ac_fn_cxx_try_compile "$LINENO"; then :
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14568 $as_echo "yes" >&6; }
14569
14570 else
14571
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573 $as_echo "no" >&6; }
14574 as_fn_error "the compiler ($CXX) failed to pass a simple C++ test; check config.log for details" "$LINENO" 5
14575
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578
14579
14580
14581 OLD_CXXFLAGS=$CXXFLAGS
14582 if test -z "$PRESET_CXXFLAGS"
14583 then
14584 if test "x$GXX" = xyes
14585 then
14586 # reset to preferred options
14587 # replace -O? with -O3
14588 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9]*/-O3/'`;
14589 # enable useful warnings
14590 CXXFLAGS="$CXXFLAGS -Wall -Wwrite-strings -Woverloaded-virtual"
14591 # avoid disk I/O
14592 CXXFLAGS="$CXXFLAGS -pipe"
14593
14594 # custom host-dependent tuning
14595 case "$host" in
14596 alpha-dec-osf4.*)
14597 # we get random coredumps with g++ -O
14598 echo deleting -On on $host
14599 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* *//'`
14600 ;;
14601 *-linux-*)
14602 # -O2,3 seems to produce coredumps on RH and MDK linux
14603 echo enforcing -O1 on $host
14604 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* */-O1 /'`
14605 ;;
14606 esac
14607 fi
14608 fi
14609
14610 if test "x$PRESET_CXXFLAGS" != "x$CXXFLAGS"
14611 then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom $CXX flags work" >&5
14613 $as_echo_n "checking whether custom $CXX flags work... " >&6; }
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616
14617
14618 int
14619 main ()
14620 {
14621
14622 return 0;
14623
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 if ac_fn_cxx_try_compile "$LINENO"; then :
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably" >&5
14631 $as_echo "probably" >&6; }
14632 echo "changing $CXX flags to $CXXFLAGS"
14633
14634 else
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638 CXXFLAGS=$OLD_CXXFLAGS
14639 echo "leaving $CXX flags at $CXXFLAGS"
14640
14641
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 fi
14645
14646
14647 # Checks for programs.
14648 ac_ext=cpp
14649 ac_cpp='$CXXCPP $CPPFLAGS'
14650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14653 if test -z "$CXX"; then
14654 if test -n "$CCC"; then
14655 CXX=$CCC
14656 else
14657 if test -n "$ac_tool_prefix"; then
14658 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14659 do
14660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if test "${ac_cv_prog_CXX+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 if test -n "$CXX"; then
14668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14669 else
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14672 do
14673 IFS=$as_save_IFS
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 break 2
14680 fi
14681 done
14682 done
14683 IFS=$as_save_IFS
14684
14685 fi
14686 fi
14687 CXX=$ac_cv_prog_CXX
14688 if test -n "$CXX"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14690 $as_echo "$CXX" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14694 fi
14695
14696
14697 test -n "$CXX" && break
14698 done
14699 fi
14700 if test -z "$CXX"; then
14701 ac_ct_CXX=$CXX
14702 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14703 do
14704 # Extract the first word of "$ac_prog", so it can be a program name with args.
14705 set dummy $ac_prog; ac_word=$2
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14707 $as_echo_n "checking for $ac_word... " >&6; }
14708 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 if test -n "$ac_ct_CXX"; then
14712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14713 else
14714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14715 for as_dir in $PATH
14716 do
14717 IFS=$as_save_IFS
14718 test -z "$as_dir" && as_dir=.
14719 for ac_exec_ext in '' $ac_executable_extensions; do
14720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14721 ac_cv_prog_ac_ct_CXX="$ac_prog"
14722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14723 break 2
14724 fi
14725 done
14726 done
14727 IFS=$as_save_IFS
14728
14729 fi
14730 fi
14731 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14732 if test -n "$ac_ct_CXX"; then
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14734 $as_echo "$ac_ct_CXX" >&6; }
14735 else
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14737 $as_echo "no" >&6; }
14738 fi
14739
14740
14741 test -n "$ac_ct_CXX" && break
14742 done
14743
14744 if test "x$ac_ct_CXX" = x; then
14745 CXX="g++"
14746 else
14747 case $cross_compiling:$ac_tool_warned in
14748 yes:)
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14751 ac_tool_warned=yes ;;
14752 esac
14753 CXX=$ac_ct_CXX
14754 fi
14755 fi
14756
14757 fi
14758 fi
14759 # Provide some information about the compiler.
14760 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14761 set X $ac_compile
14762 ac_compiler=$2
14763 for ac_option in --version -v -V -qversion; do
14764 { { ac_try="$ac_compiler $ac_option >&5"
14765 case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14768 esac
14769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14770 $as_echo "$ac_try_echo"; } >&5
14771 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14772 ac_status=$?
14773 if test -s conftest.err; then
14774 sed '10a\
14775 ... rest of stderr output deleted ...
14776 10q' conftest.err >conftest.er1
14777 cat conftest.er1 >&5
14778 fi
14779 rm -f conftest.er1 conftest.err
14780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14781 test $ac_status = 0; }
14782 done
14783
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14785 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14786 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14787 $as_echo_n "(cached) " >&6
14788 else
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14791
14792 int
14793 main ()
14794 {
14795 #ifndef __GNUC__
14796 choke me
14797 #endif
14798
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 if ac_fn_cxx_try_compile "$LINENO"; then :
14804 ac_compiler_gnu=yes
14805 else
14806 ac_compiler_gnu=no
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14810
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14813 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14814 if test $ac_compiler_gnu = yes; then
14815 GXX=yes
14816 else
14817 GXX=
14818 fi
14819 ac_test_CXXFLAGS=${CXXFLAGS+set}
14820 ac_save_CXXFLAGS=$CXXFLAGS
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14822 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14823 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14827 ac_cxx_werror_flag=yes
14828 ac_cv_prog_cxx_g=no
14829 CXXFLAGS="-g"
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832
14833 int
14834 main ()
14835 {
14836
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_cxx_try_compile "$LINENO"; then :
14842 ac_cv_prog_cxx_g=yes
14843 else
14844 CXXFLAGS=""
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14847
14848 int
14849 main ()
14850 {
14851
14852 ;
14853 return 0;
14854 }
14855 _ACEOF
14856 if ac_fn_cxx_try_compile "$LINENO"; then :
14857
14858 else
14859 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14860 CXXFLAGS="-g"
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863
14864 int
14865 main ()
14866 {
14867
14868 ;
14869 return 0;
14870 }
14871 _ACEOF
14872 if ac_fn_cxx_try_compile "$LINENO"; then :
14873 ac_cv_prog_cxx_g=yes
14874 fi
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 fi
14877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14880 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14881 fi
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14883 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14884 if test "$ac_test_CXXFLAGS" = set; then
14885 CXXFLAGS=$ac_save_CXXFLAGS
14886 elif test $ac_cv_prog_cxx_g = yes; then
14887 if test "$GXX" = yes; then
14888 CXXFLAGS="-g -O2"
14889 else
14890 CXXFLAGS="-g"
14891 fi
14892 else
14893 if test "$GXX" = yes; then
14894 CXXFLAGS="-O2"
14895 else
14896 CXXFLAGS=
14897 fi
14898 fi
14899 ac_ext=cpp
14900 ac_cpp='$CXXCPP $CPPFLAGS'
14901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14904
14905 depcc="$CXX" am_compiler_list=
14906
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14908 $as_echo_n "checking dependency style of $depcc... " >&6; }
14909 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14913 # We make a subdir and do the tests there. Otherwise we can end up
14914 # making bogus files that we don't know about and never remove. For
14915 # instance it was reported that on HP-UX the gcc test will end up
14916 # making a dummy file named `D' -- because `-MD' means `put the output
14917 # in D'.
14918 mkdir conftest.dir
14919 # Copy depcomp to subdir because otherwise we won't find it if we're
14920 # using a relative directory.
14921 cp "$am_depcomp" conftest.dir
14922 cd conftest.dir
14923 # We will build objects and dependencies in a subdirectory because
14924 # it helps to detect inapplicable dependency modes. For instance
14925 # both Tru64's cc and ICC support -MD to output dependencies as a
14926 # side effect of compilation, but ICC will put the dependencies in
14927 # the current directory while Tru64 will put them in the object
14928 # directory.
14929 mkdir sub
14930
14931 am_cv_CXX_dependencies_compiler_type=none
14932 if test "$am_compiler_list" = ""; then
14933 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14934 fi
14935 am__universal=false
14936 case " $depcc " in #(
14937 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14938 esac
14939
14940 for depmode in $am_compiler_list; do
14941 # Setup a source with many dependencies, because some compilers
14942 # like to wrap large dependency lists on column 80 (with \), and
14943 # we should not choose a depcomp mode which is confused by this.
14944 #
14945 # We need to recreate these files for each test, as the compiler may
14946 # overwrite some of them when testing with obscure command lines.
14947 # This happens at least with the AIX C compiler.
14948 : > sub/conftest.c
14949 for i in 1 2 3 4 5 6; do
14950 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14951 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14952 # Solaris 8's {/usr,}/bin/sh.
14953 touch sub/conftst$i.h
14954 done
14955 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14956
14957 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14958 # mode. It turns out that the SunPro C++ compiler does not properly
14959 # handle `-M -o', and we need to detect this. Also, some Intel
14960 # versions had trouble with output in subdirs
14961 am__obj=sub/conftest.${OBJEXT-o}
14962 am__minus_obj="-o $am__obj"
14963 case $depmode in
14964 gcc)
14965 # This depmode causes a compiler race in universal mode.
14966 test "$am__universal" = false || continue
14967 ;;
14968 nosideeffect)
14969 # after this tag, mechanisms are not by side-effect, so they'll
14970 # only be used when explicitly requested
14971 if test "x$enable_dependency_tracking" = xyes; then
14972 continue
14973 else
14974 break
14975 fi
14976 ;;
14977 msvisualcpp | msvcmsys)
14978 # This compiler won't grok `-c -o', but also, the minuso test has
14979 # not run yet. These depmodes are late enough in the game, and
14980 # so weak that their functioning should not be impacted.
14981 am__obj=conftest.${OBJEXT-o}
14982 am__minus_obj=
14983 ;;
14984 none) break ;;
14985 esac
14986 if depmode=$depmode \
14987 source=sub/conftest.c object=$am__obj \
14988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14989 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14990 >/dev/null 2>conftest.err &&
14991 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14993 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14995 # icc doesn't choke on unknown options, it will just issue warnings
14996 # or remarks (even with -Werror). So we grep stderr for any message
14997 # that says an option was ignored or not supported.
14998 # When given -MP, icc 7.0 and 7.1 complain thusly:
14999 # icc: Command line warning: ignoring option '-M'; no argument required
15000 # The diagnosis changed in icc 8.0:
15001 # icc: Command line remark: option '-MP' not supported
15002 if (grep 'ignoring option' conftest.err ||
15003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15004 am_cv_CXX_dependencies_compiler_type=$depmode
15005 break
15006 fi
15007 fi
15008 done
15009
15010 cd ..
15011 rm -rf conftest.dir
15012 else
15013 am_cv_CXX_dependencies_compiler_type=none
15014 fi
15015
15016 fi
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15019 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15020
15021 if
15022 test "x$enable_dependency_tracking" != xno \
15023 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15024 am__fastdepCXX_TRUE=
15025 am__fastdepCXX_FALSE='#'
15026 else
15027 am__fastdepCXX_TRUE='#'
15028 am__fastdepCXX_FALSE=
15029 fi
15030
15031
15032 ac_ext=c
15033 ac_cpp='$CPP $CPPFLAGS'
15034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15037 if test -n "$ac_tool_prefix"; then
15038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15039 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if test "${ac_cv_prog_CC+set}" = set; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 if test -n "$CC"; then
15046 ac_cv_prog_CC="$CC" # Let the user override the test.
15047 else
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15050 do
15051 IFS=$as_save_IFS
15052 test -z "$as_dir" && as_dir=.
15053 for ac_exec_ext in '' $ac_executable_extensions; do
15054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
15056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15057 break 2
15058 fi
15059 done
15060 done
15061 IFS=$as_save_IFS
15062
15063 fi
15064 fi
15065 CC=$ac_cv_prog_CC
15066 if test -n "$CC"; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15068 $as_echo "$CC" >&6; }
15069 else
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15071 $as_echo "no" >&6; }
15072 fi
15073
15074
15075 fi
15076 if test -z "$ac_cv_prog_CC"; then
15077 ac_ct_CC=$CC
15078 # Extract the first word of "gcc", so it can be a program name with args.
15079 set dummy gcc; ac_word=$2
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15081 $as_echo_n "checking for $ac_word... " >&6; }
15082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 if test -n "$ac_ct_CC"; then
15086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15087 else
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15090 do
15091 IFS=$as_save_IFS
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15095 ac_cv_prog_ac_ct_CC="gcc"
15096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15097 break 2
15098 fi
15099 done
15100 done
15101 IFS=$as_save_IFS
15102
15103 fi
15104 fi
15105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15106 if test -n "$ac_ct_CC"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15108 $as_echo "$ac_ct_CC" >&6; }
15109 else
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 $as_echo "no" >&6; }
15112 fi
15113
15114 if test "x$ac_ct_CC" = x; then
15115 CC=""
15116 else
15117 case $cross_compiling:$ac_tool_warned in
15118 yes:)
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15121 ac_tool_warned=yes ;;
15122 esac
15123 CC=$ac_ct_CC
15124 fi
15125 else
15126 CC="$ac_cv_prog_CC"
15127 fi
15128
15129 if test -z "$CC"; then
15130 if test -n "$ac_tool_prefix"; then
15131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15132 set dummy ${ac_tool_prefix}cc; ac_word=$2
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15134 $as_echo_n "checking for $ac_word... " >&6; }
15135 if test "${ac_cv_prog_CC+set}" = set; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 if test -n "$CC"; then
15139 ac_cv_prog_CC="$CC" # Let the user override the test.
15140 else
15141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15142 for as_dir in $PATH
15143 do
15144 IFS=$as_save_IFS
15145 test -z "$as_dir" && as_dir=.
15146 for ac_exec_ext in '' $ac_executable_extensions; do
15147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15148 ac_cv_prog_CC="${ac_tool_prefix}cc"
15149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15150 break 2
15151 fi
15152 done
15153 done
15154 IFS=$as_save_IFS
15155
15156 fi
15157 fi
15158 CC=$ac_cv_prog_CC
15159 if test -n "$CC"; then
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15161 $as_echo "$CC" >&6; }
15162 else
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15165 fi
15166
15167
15168 fi
15169 fi
15170 if test -z "$CC"; then
15171 # Extract the first word of "cc", so it can be a program name with args.
15172 set dummy cc; ac_word=$2
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15174 $as_echo_n "checking for $ac_word... " >&6; }
15175 if test "${ac_cv_prog_CC+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 if test -n "$CC"; then
15179 ac_cv_prog_CC="$CC" # Let the user override the test.
15180 else
15181 ac_prog_rejected=no
15182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183 for as_dir in $PATH
15184 do
15185 IFS=$as_save_IFS
15186 test -z "$as_dir" && as_dir=.
15187 for ac_exec_ext in '' $ac_executable_extensions; do
15188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15190 ac_prog_rejected=yes
15191 continue
15192 fi
15193 ac_cv_prog_CC="cc"
15194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15195 break 2
15196 fi
15197 done
15198 done
15199 IFS=$as_save_IFS
15200
15201 if test $ac_prog_rejected = yes; then
15202 # We found a bogon in the path, so make sure we never use it.
15203 set dummy $ac_cv_prog_CC
15204 shift
15205 if test $# != 0; then
15206 # We chose a different compiler from the bogus one.
15207 # However, it has the same basename, so the bogon will be chosen
15208 # first if we set CC to just the basename; use the full file name.
15209 shift
15210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15211 fi
15212 fi
15213 fi
15214 fi
15215 CC=$ac_cv_prog_CC
15216 if test -n "$CC"; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15218 $as_echo "$CC" >&6; }
15219 else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221 $as_echo "no" >&6; }
15222 fi
15223
15224
15225 fi
15226 if test -z "$CC"; then
15227 if test -n "$ac_tool_prefix"; then
15228 for ac_prog in cl.exe
15229 do
15230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15233 $as_echo_n "checking for $ac_word... " >&6; }
15234 if test "${ac_cv_prog_CC+set}" = set; then :
15235 $as_echo_n "(cached) " >&6
15236 else
15237 if test -n "$CC"; then
15238 ac_cv_prog_CC="$CC" # Let the user override the test.
15239 else
15240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15241 for as_dir in $PATH
15242 do
15243 IFS=$as_save_IFS
15244 test -z "$as_dir" && as_dir=.
15245 for ac_exec_ext in '' $ac_executable_extensions; do
15246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15249 break 2
15250 fi
15251 done
15252 done
15253 IFS=$as_save_IFS
15254
15255 fi
15256 fi
15257 CC=$ac_cv_prog_CC
15258 if test -n "$CC"; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15260 $as_echo "$CC" >&6; }
15261 else
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263 $as_echo "no" >&6; }
15264 fi
15265
15266
15267 test -n "$CC" && break
15268 done
15269 fi
15270 if test -z "$CC"; then
15271 ac_ct_CC=$CC
15272 for ac_prog in cl.exe
15273 do
15274 # Extract the first word of "$ac_prog", so it can be a program name with args.
15275 set dummy $ac_prog; ac_word=$2
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15277 $as_echo_n "checking for $ac_word... " >&6; }
15278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
15279 $as_echo_n "(cached) " >&6
15280 else
15281 if test -n "$ac_ct_CC"; then
15282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15283 else
15284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15285 for as_dir in $PATH
15286 do
15287 IFS=$as_save_IFS
15288 test -z "$as_dir" && as_dir=.
15289 for ac_exec_ext in '' $ac_executable_extensions; do
15290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15291 ac_cv_prog_ac_ct_CC="$ac_prog"
15292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15293 break 2
15294 fi
15295 done
15296 done
15297 IFS=$as_save_IFS
15298
15299 fi
15300 fi
15301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15302 if test -n "$ac_ct_CC"; then
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15304 $as_echo "$ac_ct_CC" >&6; }
15305 else
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15307 $as_echo "no" >&6; }
15308 fi
15309
15310
15311 test -n "$ac_ct_CC" && break
15312 done
15313
15314 if test "x$ac_ct_CC" = x; then
15315 CC=""
15316 else
15317 case $cross_compiling:$ac_tool_warned in
15318 yes:)
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15321 ac_tool_warned=yes ;;
15322 esac
15323 CC=$ac_ct_CC
15324 fi
15325 fi
15326
15327 fi
15328
15329
15330 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15332 as_fn_error "no acceptable C compiler found in \$PATH
15333 See \`config.log' for more details." "$LINENO" 5; }
15334
15335 # Provide some information about the compiler.
15336 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15337 set X $ac_compile
15338 ac_compiler=$2
15339 for ac_option in --version -v -V -qversion; do
15340 { { ac_try="$ac_compiler $ac_option >&5"
15341 case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15344 esac
15345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15346 $as_echo "$ac_try_echo"; } >&5
15347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15348 ac_status=$?
15349 if test -s conftest.err; then
15350 sed '10a\
15351 ... rest of stderr output deleted ...
15352 10q' conftest.err >conftest.er1
15353 cat conftest.er1 >&5
15354 fi
15355 rm -f conftest.er1 conftest.err
15356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15357 test $ac_status = 0; }
15358 done
15359
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
15361 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
15362 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
15363 $as_echo_n "(cached) " >&6
15364 else
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367
15368 int
15369 main ()
15370 {
15371 #ifndef __GNUC__
15372 choke me
15373 #endif
15374
15375 ;
15376 return 0;
15377 }
15378 _ACEOF
15379 if ac_fn_c_try_compile "$LINENO"; then :
15380 ac_compiler_gnu=yes
15381 else
15382 ac_compiler_gnu=no
15383 fi
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15386
15387 fi
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
15390 if test $ac_compiler_gnu = yes; then
15391 GCC=yes
15392 else
15393 GCC=
15394 fi
15395 ac_test_CFLAGS=${CFLAGS+set}
15396 ac_save_CFLAGS=$CFLAGS
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
15398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
15399 if test "${ac_cv_prog_cc_g+set}" = set; then :
15400 $as_echo_n "(cached) " >&6
15401 else
15402 ac_save_c_werror_flag=$ac_c_werror_flag
15403 ac_c_werror_flag=yes
15404 ac_cv_prog_cc_g=no
15405 CFLAGS="-g"
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408
15409 int
15410 main ()
15411 {
15412
15413 ;
15414 return 0;
15415 }
15416 _ACEOF
15417 if ac_fn_c_try_compile "$LINENO"; then :
15418 ac_cv_prog_cc_g=yes
15419 else
15420 CFLAGS=""
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423
15424 int
15425 main ()
15426 {
15427
15428 ;
15429 return 0;
15430 }
15431 _ACEOF
15432 if ac_fn_c_try_compile "$LINENO"; then :
15433
15434 else
15435 ac_c_werror_flag=$ac_save_c_werror_flag
15436 CFLAGS="-g"
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15439
15440 int
15441 main ()
15442 {
15443
15444 ;
15445 return 0;
15446 }
15447 _ACEOF
15448 if ac_fn_c_try_compile "$LINENO"; then :
15449 ac_cv_prog_cc_g=yes
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 fi
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 fi
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 ac_c_werror_flag=$ac_save_c_werror_flag
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
15459 $as_echo "$ac_cv_prog_cc_g" >&6; }
15460 if test "$ac_test_CFLAGS" = set; then
15461 CFLAGS=$ac_save_CFLAGS
15462 elif test $ac_cv_prog_cc_g = yes; then
15463 if test "$GCC" = yes; then
15464 CFLAGS="-g -O2"
15465 else
15466 CFLAGS="-g"
15467 fi
15468 else
15469 if test "$GCC" = yes; then
15470 CFLAGS="-O2"
15471 else
15472 CFLAGS=
15473 fi
15474 fi
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15476 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15477 if test "${ac_cv_prog_cc_c89+set}" = set; then :
15478 $as_echo_n "(cached) " >&6
15479 else
15480 ac_cv_prog_cc_c89=no
15481 ac_save_CC=$CC
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 #include <stdarg.h>
15485 #include <stdio.h>
15486 #include <sys/types.h>
15487 #include <sys/stat.h>
15488 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15489 struct buf { int x; };
15490 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15491 static char *e (p, i)
15492 char **p;
15493 int i;
15494 {
15495 return p[i];
15496 }
15497 static char *f (char * (*g) (char **, int), char **p, ...)
15498 {
15499 char *s;
15500 va_list v;
15501 va_start (v,p);
15502 s = g (p, va_arg (v,int));
15503 va_end (v);
15504 return s;
15505 }
15506
15507 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15508 function prototypes and stuff, but not '\xHH' hex character constants.
15509 These don't provoke an error unfortunately, instead are silently treated
15510 as 'x'. The following induces an error, until -std is added to get
15511 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15512 array size at least. It's necessary to write '\x00'==0 to get something
15513 that's true only with -std. */
15514 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15515
15516 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15517 inside strings and character constants. */
15518 #define FOO(x) 'x'
15519 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15520
15521 int test (int i, double x);
15522 struct s1 {int (*f) (int a);};
15523 struct s2 {int (*f) (double a);};
15524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15525 int argc;
15526 char **argv;
15527 int
15528 main ()
15529 {
15530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15531 ;
15532 return 0;
15533 }
15534 _ACEOF
15535 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15536 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15537 do
15538 CC="$ac_save_CC $ac_arg"
15539 if ac_fn_c_try_compile "$LINENO"; then :
15540 ac_cv_prog_cc_c89=$ac_arg
15541 fi
15542 rm -f core conftest.err conftest.$ac_objext
15543 test "x$ac_cv_prog_cc_c89" != "xno" && break
15544 done
15545 rm -f conftest.$ac_ext
15546 CC=$ac_save_CC
15547
15548 fi
15549 # AC_CACHE_VAL
15550 case "x$ac_cv_prog_cc_c89" in
15551 x)
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15553 $as_echo "none needed" >&6; } ;;
15554 xno)
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15556 $as_echo "unsupported" >&6; } ;;
15557 *)
15558 CC="$CC $ac_cv_prog_cc_c89"
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15560 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15561 esac
15562 if test "x$ac_cv_prog_cc_c89" != xno; then :
15563
15564 fi
15565
15566 ac_ext=cpp
15567 ac_cpp='$CXXCPP $CPPFLAGS'
15568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15571
15572 depcc="$CC" am_compiler_list=
15573
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15575 $as_echo_n "checking dependency style of $depcc... " >&6; }
15576 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
15578 else
15579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15580 # We make a subdir and do the tests there. Otherwise we can end up
15581 # making bogus files that we don't know about and never remove. For
15582 # instance it was reported that on HP-UX the gcc test will end up
15583 # making a dummy file named `D' -- because `-MD' means `put the output
15584 # in D'.
15585 mkdir conftest.dir
15586 # Copy depcomp to subdir because otherwise we won't find it if we're
15587 # using a relative directory.
15588 cp "$am_depcomp" conftest.dir
15589 cd conftest.dir
15590 # We will build objects and dependencies in a subdirectory because
15591 # it helps to detect inapplicable dependency modes. For instance
15592 # both Tru64's cc and ICC support -MD to output dependencies as a
15593 # side effect of compilation, but ICC will put the dependencies in
15594 # the current directory while Tru64 will put them in the object
15595 # directory.
15596 mkdir sub
15597
15598 am_cv_CC_dependencies_compiler_type=none
15599 if test "$am_compiler_list" = ""; then
15600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15601 fi
15602 am__universal=false
15603 case " $depcc " in #(
15604 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15605 esac
15606
15607 for depmode in $am_compiler_list; do
15608 # Setup a source with many dependencies, because some compilers
15609 # like to wrap large dependency lists on column 80 (with \), and
15610 # we should not choose a depcomp mode which is confused by this.
15611 #
15612 # We need to recreate these files for each test, as the compiler may
15613 # overwrite some of them when testing with obscure command lines.
15614 # This happens at least with the AIX C compiler.
15615 : > sub/conftest.c
15616 for i in 1 2 3 4 5 6; do
15617 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15618 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15619 # Solaris 8's {/usr,}/bin/sh.
15620 touch sub/conftst$i.h
15621 done
15622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15623
15624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15625 # mode. It turns out that the SunPro C++ compiler does not properly
15626 # handle `-M -o', and we need to detect this. Also, some Intel
15627 # versions had trouble with output in subdirs
15628 am__obj=sub/conftest.${OBJEXT-o}
15629 am__minus_obj="-o $am__obj"
15630 case $depmode in
15631 gcc)
15632 # This depmode causes a compiler race in universal mode.
15633 test "$am__universal" = false || continue
15634 ;;
15635 nosideeffect)
15636 # after this tag, mechanisms are not by side-effect, so they'll
15637 # only be used when explicitly requested
15638 if test "x$enable_dependency_tracking" = xyes; then
15639 continue
15640 else
15641 break
15642 fi
15643 ;;
15644 msvisualcpp | msvcmsys)
15645 # This compiler won't grok `-c -o', but also, the minuso test has
15646 # not run yet. These depmodes are late enough in the game, and
15647 # so weak that their functioning should not be impacted.
15648 am__obj=conftest.${OBJEXT-o}
15649 am__minus_obj=
15650 ;;
15651 none) break ;;
15652 esac
15653 if depmode=$depmode \
15654 source=sub/conftest.c object=$am__obj \
15655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15656 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15657 >/dev/null 2>conftest.err &&
15658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15660 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15662 # icc doesn't choke on unknown options, it will just issue warnings
15663 # or remarks (even with -Werror). So we grep stderr for any message
15664 # that says an option was ignored or not supported.
15665 # When given -MP, icc 7.0 and 7.1 complain thusly:
15666 # icc: Command line warning: ignoring option '-M'; no argument required
15667 # The diagnosis changed in icc 8.0:
15668 # icc: Command line remark: option '-MP' not supported
15669 if (grep 'ignoring option' conftest.err ||
15670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15671 am_cv_CC_dependencies_compiler_type=$depmode
15672 break
15673 fi
15674 fi
15675 done
15676
15677 cd ..
15678 rm -rf conftest.dir
15679 else
15680 am_cv_CC_dependencies_compiler_type=none
15681 fi
15682
15683 fi
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15685 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15686 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15687
15688 if
15689 test "x$enable_dependency_tracking" != xno \
15690 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15691 am__fastdepCC_TRUE=
15692 am__fastdepCC_FALSE='#'
15693 else
15694 am__fastdepCC_TRUE='#'
15695 am__fastdepCC_FALSE=
15696 fi
15697
15698
15699 ac_ext=c
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15705 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15706 # On Suns, sometimes $CPP names a directory.
15707 if test -n "$CPP" && test -d "$CPP"; then
15708 CPP=
15709 fi
15710 if test -z "$CPP"; then
15711 if test "${ac_cv_prog_CPP+set}" = set; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 # Double quotes because CPP needs to be expanded
15715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15716 do
15717 ac_preproc_ok=false
15718 for ac_c_preproc_warn_flag in '' yes
15719 do
15720 # Use a header file that comes with gcc, so configuring glibc
15721 # with a fresh cross-compiler works.
15722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15723 # <limits.h> exists even on freestanding compilers.
15724 # On the NeXT, cc -E runs the code through the compiler's parser,
15725 # not just through cpp. "Syntax error" is here to catch this case.
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 #ifdef __STDC__
15729 # include <limits.h>
15730 #else
15731 # include <assert.h>
15732 #endif
15733 Syntax error
15734 _ACEOF
15735 if ac_fn_c_try_cpp "$LINENO"; then :
15736
15737 else
15738 # Broken: fails on valid input.
15739 continue
15740 fi
15741 rm -f conftest.err conftest.$ac_ext
15742
15743 # OK, works on sane cases. Now check whether nonexistent headers
15744 # can be detected and how.
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 #include <ac_nonexistent.h>
15748 _ACEOF
15749 if ac_fn_c_try_cpp "$LINENO"; then :
15750 # Broken: success on invalid input.
15751 continue
15752 else
15753 # Passes both tests.
15754 ac_preproc_ok=:
15755 break
15756 fi
15757 rm -f conftest.err conftest.$ac_ext
15758
15759 done
15760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15761 rm -f conftest.err conftest.$ac_ext
15762 if $ac_preproc_ok; then :
15763 break
15764 fi
15765
15766 done
15767 ac_cv_prog_CPP=$CPP
15768
15769 fi
15770 CPP=$ac_cv_prog_CPP
15771 else
15772 ac_cv_prog_CPP=$CPP
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15775 $as_echo "$CPP" >&6; }
15776 ac_preproc_ok=false
15777 for ac_c_preproc_warn_flag in '' yes
15778 do
15779 # Use a header file that comes with gcc, so configuring glibc
15780 # with a fresh cross-compiler works.
15781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782 # <limits.h> exists even on freestanding compilers.
15783 # On the NeXT, cc -E runs the code through the compiler's parser,
15784 # not just through cpp. "Syntax error" is here to catch this case.
15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786 /* end confdefs.h. */
15787 #ifdef __STDC__
15788 # include <limits.h>
15789 #else
15790 # include <assert.h>
15791 #endif
15792 Syntax error
15793 _ACEOF
15794 if ac_fn_c_try_cpp "$LINENO"; then :
15795
15796 else
15797 # Broken: fails on valid input.
15798 continue
15799 fi
15800 rm -f conftest.err conftest.$ac_ext
15801
15802 # OK, works on sane cases. Now check whether nonexistent headers
15803 # can be detected and how.
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 #include <ac_nonexistent.h>
15807 _ACEOF
15808 if ac_fn_c_try_cpp "$LINENO"; then :
15809 # Broken: success on invalid input.
15810 continue
15811 else
15812 # Passes both tests.
15813 ac_preproc_ok=:
15814 break
15815 fi
15816 rm -f conftest.err conftest.$ac_ext
15817
15818 done
15819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15820 rm -f conftest.err conftest.$ac_ext
15821 if $ac_preproc_ok; then :
15822
15823 else
15824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15826 as_fn_error "C preprocessor \"$CPP\" fails sanity check
15827 See \`config.log' for more details." "$LINENO" 5; }
15828 fi
15829
15830 ac_ext=cpp
15831 ac_cpp='$CXXCPP $CPPFLAGS'
15832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15835
15836
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15838 $as_echo_n "checking whether ln -s works... " >&6; }
15839 LN_S=$as_ln_s
15840 if test "$LN_S" = "ln -s"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15842 $as_echo "yes" >&6; }
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15845 $as_echo "no, using $LN_S" >&6; }
15846 fi
15847
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15850 set x ${MAKE-make}
15851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15853 $as_echo_n "(cached) " >&6
15854 else
15855 cat >conftest.make <<\_ACEOF
15856 SHELL = /bin/sh
15857 all:
15858 @echo '@@@%%%=$(MAKE)=@@@%%%'
15859 _ACEOF
15860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15862 *@@@%%%=?*=@@@%%%*)
15863 eval ac_cv_prog_make_${ac_make}_set=yes;;
15864 *)
15865 eval ac_cv_prog_make_${ac_make}_set=no;;
15866 esac
15867 rm -f conftest.make
15868 fi
15869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15871 $as_echo "yes" >&6; }
15872 SET_MAKE=
15873 else
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15875 $as_echo "no" >&6; }
15876 SET_MAKE="MAKE=${MAKE-make}"
15877 fi
15878
15879
15880
15881 # Checks for libraries.
15882
15883 # Checks for header files.
15884
15885 # Checks for typedefs, structures, and compiler characteristics.
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15887 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15888 if test "${ac_cv_header_stdbool_h+set}" = set; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893
15894 #include <stdbool.h>
15895 #ifndef bool
15896 "error: bool is not defined"
15897 #endif
15898 #ifndef false
15899 "error: false is not defined"
15900 #endif
15901 #if false
15902 "error: false is not 0"
15903 #endif
15904 #ifndef true
15905 "error: true is not defined"
15906 #endif
15907 #if true != 1
15908 "error: true is not 1"
15909 #endif
15910 #ifndef __bool_true_false_are_defined
15911 "error: __bool_true_false_are_defined is not defined"
15912 #endif
15913
15914 struct s { _Bool s: 1; _Bool t; } s;
15915
15916 char a[true == 1 ? 1 : -1];
15917 char b[false == 0 ? 1 : -1];
15918 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15919 char d[(bool) 0.5 == true ? 1 : -1];
15920 bool e = &s;
15921 char f[(_Bool) 0.0 == false ? 1 : -1];
15922 char g[true];
15923 char h[sizeof (_Bool)];
15924 char i[sizeof s.t];
15925 enum { j = false, k = true, l = false * true, m = true * 256 };
15926 /* The following fails for
15927 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15928 _Bool n[m];
15929 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15930 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15931 # if defined __xlc__ || defined __GNUC__
15932 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15933 reported by James Lemley on 2005-10-05; see
15934 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15935 This test is not quite right, since xlc is allowed to
15936 reject this program, as the initializer for xlcbug is
15937 not one of the forms that C requires support for.
15938 However, doing the test right would require a runtime
15939 test, and that would make cross-compilation harder.
15940 Let us hope that IBM fixes the xlc bug, and also adds
15941 support for this kind of constant expression. In the
15942 meantime, this test will reject xlc, which is OK, since
15943 our stdbool.h substitute should suffice. We also test
15944 this with GCC, where it should work, to detect more
15945 quickly whether someone messes up the test in the
15946 future. */
15947 char digs[] = "0123456789";
15948 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
15949 # endif
15950 /* Catch a bug in an HP-UX C compiler. See
15951 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15952 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15953 */
15954 _Bool q = true;
15955 _Bool *pq = &q;
15956
15957 int
15958 main ()
15959 {
15960
15961 *pq |= q;
15962 *pq |= ! q;
15963 /* Refer to every declared value, to avoid compiler optimizations. */
15964 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15965 + !m + !n + !o + !p + !q + !pq);
15966
15967 ;
15968 return 0;
15969 }
15970 _ACEOF
15971 if ac_fn_cxx_try_compile "$LINENO"; then :
15972 ac_cv_header_stdbool_h=yes
15973 else
15974 ac_cv_header_stdbool_h=no
15975 fi
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15979 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15980 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15981 if test "x$ac_cv_type__Bool" = x""yes; then :
15982
15983 cat >>confdefs.h <<_ACEOF
15984 #define HAVE__BOOL 1
15985 _ACEOF
15986
15987
15988 fi
15989
15990 if test $ac_cv_header_stdbool_h = yes; then
15991
15992 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15993
15994 fi
15995
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15997 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15998 if test "${ac_cv_c_const+set}" = set; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003
16004 int
16005 main ()
16006 {
16007 /* FIXME: Include the comments suggested by Paul. */
16008 #ifndef __cplusplus
16009 /* Ultrix mips cc rejects this. */
16010 typedef int charset[2];
16011 const charset cs;
16012 /* SunOS 4.1.1 cc rejects this. */
16013 char const *const *pcpcc;
16014 char **ppc;
16015 /* NEC SVR4.0.2 mips cc rejects this. */
16016 struct point {int x, y;};
16017 static struct point const zero = {0,0};
16018 /* AIX XL C 1.02.0.0 rejects this.
16019 It does not let you subtract one const X* pointer from another in
16020 an arm of an if-expression whose if-part is not a constant
16021 expression */
16022 const char *g = "string";
16023 pcpcc = &g + (g ? g-g : 0);
16024 /* HPUX 7.0 cc rejects these. */
16025 ++pcpcc;
16026 ppc = (char**) pcpcc;
16027 pcpcc = (char const *const *) ppc;
16028 { /* SCO 3.2v4 cc rejects this. */
16029 char *t;
16030 char const *s = 0 ? (char *) 0 : (char const *) 0;
16031
16032 *t++ = 0;
16033 if (s) return 0;
16034 }
16035 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16036 int x[] = {25, 17};
16037 const int *foo = &x[0];
16038 ++foo;
16039 }
16040 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16041 typedef const int *iptr;
16042 iptr p = 0;
16043 ++p;
16044 }
16045 { /* AIX XL C 1.02.0.0 rejects this saying
16046 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16047 struct s { int j; const int *ap[3]; };
16048 struct s *b; b->j = 5;
16049 }
16050 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16051 const int foo = 10;
16052 if (!foo) return 0;
16053 }
16054 return !cs[0] && !zero.x;
16055 #endif
16056
16057 ;
16058 return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_cxx_try_compile "$LINENO"; then :
16062 ac_cv_c_const=yes
16063 else
16064 ac_cv_c_const=no
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16069 $as_echo "$ac_cv_c_const" >&6; }
16070 if test $ac_cv_c_const = no; then
16071
16072 $as_echo "#define const /**/" >>confdefs.h
16073
16074 fi
16075
16076
16077 # Checks for library functions.
16078
16079 # Allow the pkg-config directory to be set
16080
16081 # Check whether --with-pkgconfigdir was given.
16082 if test "${with_pkgconfigdir+set}" = set; then :
16083 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
16084 else
16085 pkgconfigdir='${libdir}/pkgconfig'
16086 fi
16087
16088
16089
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
16091 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
16092
16093 ac_config_files="$ac_config_files libecap.pc Makefile src/Makefile src/libecap/Makefile src/libecap/common/Makefile src/libecap/adapter/Makefile src/libecap/host/Makefile doc/Makefile"
16094
16095 cat >confcache <<\_ACEOF
16096 # This file is a shell script that caches the results of configure
16097 # tests run on this system so they can be shared between configure
16098 # scripts and configure runs, see configure's option --config-cache.
16099 # It is not useful on other systems. If it contains results you don't
16100 # want to keep, you may remove or edit it.
16101 #
16102 # config.status only pays attention to the cache file if you give it
16103 # the --recheck option to rerun configure.
16104 #
16105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16107 # following values.
16108
16109 _ACEOF
16110
16111 # The following way of writing the cache mishandles newlines in values,
16112 # but we know of no workaround that is simple, portable, and efficient.
16113 # So, we kill variables containing newlines.
16114 # Ultrix sh set writes to stderr and can't be redirected directly,
16115 # and sets the high bit in the cache file unless we assign to the vars.
16116 (
16117 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16118 eval ac_val=\$$ac_var
16119 case $ac_val in #(
16120 *${as_nl}*)
16121 case $ac_var in #(
16122 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16124 esac
16125 case $ac_var in #(
16126 _ | IFS | as_nl) ;; #(
16127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16128 *) { eval $ac_var=; unset $ac_var;} ;;
16129 esac ;;
16130 esac
16131 done
16132
16133 (set) 2>&1 |
16134 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16135 *${as_nl}ac_space=\ *)
16136 # `set' does not quote correctly, so add quotes: double-quote
16137 # substitution turns \\\\ into \\, and sed turns \\ into \.
16138 sed -n \
16139 "s/'/'\\\\''/g;
16140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16141 ;; #(
16142 *)
16143 # `set' quotes correctly as required by POSIX, so do not add quotes.
16144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16145 ;;
16146 esac |
16147 sort
16148 ) |
16149 sed '
16150 /^ac_cv_env_/b end
16151 t clear
16152 :clear
16153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16154 t end
16155 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16156 :end' >>confcache
16157 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16158 if test -w "$cache_file"; then
16159 test "x$cache_file" != "x/dev/null" &&
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16161 $as_echo "$as_me: updating cache $cache_file" >&6;}
16162 cat confcache >$cache_file
16163 else
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16165 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16166 fi
16167 fi
16168 rm -f confcache
16169
16170 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16171 # Let make expand exec_prefix.
16172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16173
16174 DEFS=-DHAVE_CONFIG_H
16175
16176 ac_libobjs=
16177 ac_ltlibobjs=
16178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16179 # 1. Remove the extension, and $U if already installed.
16180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16183 # will be set to the directory where LIBOBJS objects are built.
16184 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16185 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16186 done
16187 LIBOBJS=$ac_libobjs
16188
16189 LTLIBOBJS=$ac_ltlibobjs
16190
16191
16192 if test -n "$EXEEXT"; then
16193 am__EXEEXT_TRUE=
16194 am__EXEEXT_FALSE='#'
16195 else
16196 am__EXEEXT_TRUE='#'
16197 am__EXEEXT_FALSE=
16198 fi
16199
16200 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16201 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16203 fi
16204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16205 as_fn_error "conditional \"AMDEP\" was never defined.
16206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16207 fi
16208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16209 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16211 fi
16212 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16213 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16215 fi
16216 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16217 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16219 fi
16220 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16221 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16223 fi
16224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16225 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16227 fi
16228
16229 : ${CONFIG_STATUS=./config.status}
16230 ac_write_fail=0
16231 ac_clean_files_save=$ac_clean_files
16232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16235 as_write_fail=0
16236 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16237 #! $SHELL
16238 # Generated by $as_me.
16239 # Run this file to recreate the current configuration.
16240 # Compiler output produced by configure, useful for debugging
16241 # configure, is in config.log if it exists.
16242
16243 debug=false
16244 ac_cs_recheck=false
16245 ac_cs_silent=false
16246
16247 SHELL=\${CONFIG_SHELL-$SHELL}
16248 export SHELL
16249 _ASEOF
16250 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16251 ## -------------------- ##
16252 ## M4sh Initialization. ##
16253 ## -------------------- ##
16254
16255 # Be more Bourne compatible
16256 DUALCASE=1; export DUALCASE # for MKS sh
16257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16258 emulate sh
16259 NULLCMD=:
16260 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16261 # is contrary to our usage. Disable this feature.
16262 alias -g '${1+"$@"}'='"$@"'
16263 setopt NO_GLOB_SUBST
16264 else
16265 case `(set -o) 2>/dev/null` in #(
16266 *posix*) :
16267 set -o posix ;; #(
16268 *) :
16269 ;;
16270 esac
16271 fi
16272
16273
16274 as_nl='
16275 '
16276 export as_nl
16277 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16278 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16281 # Prefer a ksh shell builtin over an external printf program on Solaris,
16282 # but without wasting forks for bash or zsh.
16283 if test -z "$BASH_VERSION$ZSH_VERSION" \
16284 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16285 as_echo='print -r --'
16286 as_echo_n='print -rn --'
16287 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16288 as_echo='printf %s\n'
16289 as_echo_n='printf %s'
16290 else
16291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16293 as_echo_n='/usr/ucb/echo -n'
16294 else
16295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16296 as_echo_n_body='eval
16297 arg=$1;
16298 case $arg in #(
16299 *"$as_nl"*)
16300 expr "X$arg" : "X\\(.*\\)$as_nl";
16301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16302 esac;
16303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16304 '
16305 export as_echo_n_body
16306 as_echo_n='sh -c $as_echo_n_body as_echo'
16307 fi
16308 export as_echo_body
16309 as_echo='sh -c $as_echo_body as_echo'
16310 fi
16311
16312 # The user is always right.
16313 if test "${PATH_SEPARATOR+set}" != set; then
16314 PATH_SEPARATOR=:
16315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16317 PATH_SEPARATOR=';'
16318 }
16319 fi
16320
16321
16322 # IFS
16323 # We need space, tab and new line, in precisely that order. Quoting is
16324 # there to prevent editors from complaining about space-tab.
16325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16326 # splitting by setting IFS to empty value.)
16327 IFS=" "" $as_nl"
16328
16329 # Find who we are. Look in the path if we contain no directory separator.
16330 case $0 in #((
16331 *[\\/]* ) as_myself=$0 ;;
16332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333 for as_dir in $PATH
16334 do
16335 IFS=$as_save_IFS
16336 test -z "$as_dir" && as_dir=.
16337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16338 done
16339 IFS=$as_save_IFS
16340
16341 ;;
16342 esac
16343 # We did not find ourselves, most probably we were run as `sh COMMAND'
16344 # in which case we are not to be found in the path.
16345 if test "x$as_myself" = x; then
16346 as_myself=$0
16347 fi
16348 if test ! -f "$as_myself"; then
16349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16350 exit 1
16351 fi
16352
16353 # Unset variables that we do not need and which cause bugs (e.g. in
16354 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16355 # suppresses any "Segmentation fault" message there. '((' could
16356 # trigger a bug in pdksh 5.2.14.
16357 for as_var in BASH_ENV ENV MAIL MAILPATH
16358 do eval test x\${$as_var+set} = xset \
16359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16360 done
16361 PS1='$ '
16362 PS2='> '
16363 PS4='+ '
16364
16365 # NLS nuisances.
16366 LC_ALL=C
16367 export LC_ALL
16368 LANGUAGE=C
16369 export LANGUAGE
16370
16371 # CDPATH.
16372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16373
16374
16375 # as_fn_error ERROR [LINENO LOG_FD]
16376 # ---------------------------------
16377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16379 # script with status $?, using 1 if that was 0.
16380 as_fn_error ()
16381 {
16382 as_status=$?; test $as_status -eq 0 && as_status=1
16383 if test "$3"; then
16384 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16386 fi
16387 $as_echo "$as_me: error: $1" >&2
16388 as_fn_exit $as_status
16389 } # as_fn_error
16390
16391
16392 # as_fn_set_status STATUS
16393 # -----------------------
16394 # Set $? to STATUS, without forking.
16395 as_fn_set_status ()
16396 {
16397 return $1
16398 } # as_fn_set_status
16399
16400 # as_fn_exit STATUS
16401 # -----------------
16402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16403 as_fn_exit ()
16404 {
16405 set +e
16406 as_fn_set_status $1
16407 exit $1
16408 } # as_fn_exit
16409
16410 # as_fn_unset VAR
16411 # ---------------
16412 # Portably unset VAR.
16413 as_fn_unset ()
16414 {
16415 { eval $1=; unset $1;}
16416 }
16417 as_unset=as_fn_unset
16418 # as_fn_append VAR VALUE
16419 # ----------------------
16420 # Append the text in VALUE to the end of the definition contained in VAR. Take
16421 # advantage of any shell optimizations that allow amortized linear growth over
16422 # repeated appends, instead of the typical quadratic growth present in naive
16423 # implementations.
16424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16425 eval 'as_fn_append ()
16426 {
16427 eval $1+=\$2
16428 }'
16429 else
16430 as_fn_append ()
16431 {
16432 eval $1=\$$1\$2
16433 }
16434 fi # as_fn_append
16435
16436 # as_fn_arith ARG...
16437 # ------------------
16438 # Perform arithmetic evaluation on the ARGs, and store the result in the
16439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16440 # must be portable across $(()) and expr.
16441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16442 eval 'as_fn_arith ()
16443 {
16444 as_val=$(( $* ))
16445 }'
16446 else
16447 as_fn_arith ()
16448 {
16449 as_val=`expr "$@" || test $? -eq 1`
16450 }
16451 fi # as_fn_arith
16452
16453
16454 if expr a : '\(a\)' >/dev/null 2>&1 &&
16455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16456 as_expr=expr
16457 else
16458 as_expr=false
16459 fi
16460
16461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16462 as_basename=basename
16463 else
16464 as_basename=false
16465 fi
16466
16467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16468 as_dirname=dirname
16469 else
16470 as_dirname=false
16471 fi
16472
16473 as_me=`$as_basename -- "$0" ||
16474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16475 X"$0" : 'X\(//\)$' \| \
16476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16477 $as_echo X/"$0" |
16478 sed '/^.*\/\([^/][^/]*\)\/*$/{
16479 s//\1/
16480 q
16481 }
16482 /^X\/\(\/\/\)$/{
16483 s//\1/
16484 q
16485 }
16486 /^X\/\(\/\).*/{
16487 s//\1/
16488 q
16489 }
16490 s/.*/./; q'`
16491
16492 # Avoid depending upon Character Ranges.
16493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16496 as_cr_digits='0123456789'
16497 as_cr_alnum=$as_cr_Letters$as_cr_digits
16498
16499 ECHO_C= ECHO_N= ECHO_T=
16500 case `echo -n x` in #(((((
16501 -n*)
16502 case `echo 'xy\c'` in
16503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16504 xy) ECHO_C='\c';;
16505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16506 ECHO_T=' ';;
16507 esac;;
16508 *)
16509 ECHO_N='-n';;
16510 esac
16511
16512 rm -f conf$$ conf$$.exe conf$$.file
16513 if test -d conf$$.dir; then
16514 rm -f conf$$.dir/conf$$.file
16515 else
16516 rm -f conf$$.dir
16517 mkdir conf$$.dir 2>/dev/null
16518 fi
16519 if (echo >conf$$.file) 2>/dev/null; then
16520 if ln -s conf$$.file conf$$ 2>/dev/null; then
16521 as_ln_s='ln -s'
16522 # ... but there are two gotchas:
16523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16525 # In both cases, we have to default to `cp -p'.
16526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16527 as_ln_s='cp -p'
16528 elif ln conf$$.file conf$$ 2>/dev/null; then
16529 as_ln_s=ln
16530 else
16531 as_ln_s='cp -p'
16532 fi
16533 else
16534 as_ln_s='cp -p'
16535 fi
16536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16537 rmdir conf$$.dir 2>/dev/null
16538
16539
16540 # as_fn_mkdir_p
16541 # -------------
16542 # Create "$as_dir" as a directory, including parents if necessary.
16543 as_fn_mkdir_p ()
16544 {
16545
16546 case $as_dir in #(
16547 -*) as_dir=./$as_dir;;
16548 esac
16549 test -d "$as_dir" || eval $as_mkdir_p || {
16550 as_dirs=
16551 while :; do
16552 case $as_dir in #(
16553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16554 *) as_qdir=$as_dir;;
16555 esac
16556 as_dirs="'$as_qdir' $as_dirs"
16557 as_dir=`$as_dirname -- "$as_dir" ||
16558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16559 X"$as_dir" : 'X\(//\)[^/]' \| \
16560 X"$as_dir" : 'X\(//\)$' \| \
16561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16562 $as_echo X"$as_dir" |
16563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16564 s//\1/
16565 q
16566 }
16567 /^X\(\/\/\)[^/].*/{
16568 s//\1/
16569 q
16570 }
16571 /^X\(\/\/\)$/{
16572 s//\1/
16573 q
16574 }
16575 /^X\(\/\).*/{
16576 s//\1/
16577 q
16578 }
16579 s/.*/./; q'`
16580 test -d "$as_dir" && break
16581 done
16582 test -z "$as_dirs" || eval "mkdir $as_dirs"
16583 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16584
16585
16586 } # as_fn_mkdir_p
16587 if mkdir -p . 2>/dev/null; then
16588 as_mkdir_p='mkdir -p "$as_dir"'
16589 else
16590 test -d ./-p && rmdir ./-p
16591 as_mkdir_p=false
16592 fi
16593
16594 if test -x / >/dev/null 2>&1; then
16595 as_test_x='test -x'
16596 else
16597 if ls -dL / >/dev/null 2>&1; then
16598 as_ls_L_option=L
16599 else
16600 as_ls_L_option=
16601 fi
16602 as_test_x='
16603 eval sh -c '\''
16604 if test -d "$1"; then
16605 test -d "$1/.";
16606 else
16607 case $1 in #(
16608 -*)set "./$1";;
16609 esac;
16610 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16611 ???[sx]*):;;*)false;;esac;fi
16612 '\'' sh
16613 '
16614 fi
16615 as_executable_p=$as_test_x
16616
16617 # Sed expression to map a string onto a valid CPP name.
16618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16619
16620 # Sed expression to map a string onto a valid variable name.
16621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16622
16623
16624 exec 6>&1
16625 ## ----------------------------------- ##
16626 ## Main body of $CONFIG_STATUS script. ##
16627 ## ----------------------------------- ##
16628 _ASEOF
16629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16630
16631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16632 # Save the log message, to keep $0 and so on meaningful, and to
16633 # report actual input values of CONFIG_FILES etc. instead of their
16634 # values after options handling.
16635 ac_log="
16636 This file was extended by eCAP Library $as_me 1.0.1, which was
16637 generated by GNU Autoconf 2.65. Invocation command line was
16638
16639 CONFIG_FILES = $CONFIG_FILES
16640 CONFIG_HEADERS = $CONFIG_HEADERS
16641 CONFIG_LINKS = $CONFIG_LINKS
16642 CONFIG_COMMANDS = $CONFIG_COMMANDS
16643 $ $0 $@
16644
16645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16646 "
16647
16648 _ACEOF
16649
16650 case $ac_config_files in *"
16651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16652 esac
16653
16654 case $ac_config_headers in *"
16655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16656 esac
16657
16658
16659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16660 # Files that config.status was made for.
16661 config_files="$ac_config_files"
16662 config_headers="$ac_config_headers"
16663 config_commands="$ac_config_commands"
16664
16665 _ACEOF
16666
16667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16668 ac_cs_usage="\
16669 \`$as_me' instantiates files and other configuration actions
16670 from templates according to the current configuration. Unless the files
16671 and actions are specified as TAGs, all are instantiated by default.
16672
16673 Usage: $0 [OPTION]... [TAG]...
16674
16675 -h, --help print this help, then exit
16676 -V, --version print version number and configuration settings, then exit
16677 --config print configuration, then exit
16678 -q, --quiet, --silent
16679 do not print progress messages
16680 -d, --debug don't remove temporary files
16681 --recheck update $as_me by reconfiguring in the same conditions
16682 --file=FILE[:TEMPLATE]
16683 instantiate the configuration file FILE
16684 --header=FILE[:TEMPLATE]
16685 instantiate the configuration header FILE
16686
16687 Configuration files:
16688 $config_files
16689
16690 Configuration headers:
16691 $config_headers
16692
16693 Configuration commands:
16694 $config_commands
16695
16696 Report bugs to the package provider."
16697
16698 _ACEOF
16699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16701 ac_cs_version="\\
16702 eCAP Library config.status 1.0.1
16703 configured by $0, generated by GNU Autoconf 2.65,
16704 with options \\"\$ac_cs_config\\"
16705
16706 Copyright (C) 2009 Free Software Foundation, Inc.
16707 This config.status script is free software; the Free Software Foundation
16708 gives unlimited permission to copy, distribute and modify it."
16709
16710 ac_pwd='$ac_pwd'
16711 srcdir='$srcdir'
16712 INSTALL='$INSTALL'
16713 MKDIR_P='$MKDIR_P'
16714 AWK='$AWK'
16715 test -n "\$AWK" || AWK=awk
16716 _ACEOF
16717
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 # The default lists apply if the user does not specify any file.
16720 ac_need_defaults=:
16721 while test $# != 0
16722 do
16723 case $1 in
16724 --*=*)
16725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16727 ac_shift=:
16728 ;;
16729 *)
16730 ac_option=$1
16731 ac_optarg=$2
16732 ac_shift=shift
16733 ;;
16734 esac
16735
16736 case $ac_option in
16737 # Handling of the options.
16738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16739 ac_cs_recheck=: ;;
16740 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16741 $as_echo "$ac_cs_version"; exit ;;
16742 --config | --confi | --conf | --con | --co | --c )
16743 $as_echo "$ac_cs_config"; exit ;;
16744 --debug | --debu | --deb | --de | --d | -d )
16745 debug=: ;;
16746 --file | --fil | --fi | --f )
16747 $ac_shift
16748 case $ac_optarg in
16749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16750 esac
16751 as_fn_append CONFIG_FILES " '$ac_optarg'"
16752 ac_need_defaults=false;;
16753 --header | --heade | --head | --hea )
16754 $ac_shift
16755 case $ac_optarg in
16756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16757 esac
16758 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16759 ac_need_defaults=false;;
16760 --he | --h)
16761 # Conflict between --help and --header
16762 as_fn_error "ambiguous option: \`$1'
16763 Try \`$0 --help' for more information.";;
16764 --help | --hel | -h )
16765 $as_echo "$ac_cs_usage"; exit ;;
16766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16768 ac_cs_silent=: ;;
16769
16770 # This is an error.
16771 -*) as_fn_error "unrecognized option: \`$1'
16772 Try \`$0 --help' for more information." ;;
16773
16774 *) as_fn_append ac_config_targets " $1"
16775 ac_need_defaults=false ;;
16776
16777 esac
16778 shift
16779 done
16780
16781 ac_configure_extra_args=
16782
16783 if $ac_cs_silent; then
16784 exec 6>/dev/null
16785 ac_configure_extra_args="$ac_configure_extra_args --silent"
16786 fi
16787
16788 _ACEOF
16789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790 if \$ac_cs_recheck; then
16791 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16792 shift
16793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16794 CONFIG_SHELL='$SHELL'
16795 export CONFIG_SHELL
16796 exec "\$@"
16797 fi
16798
16799 _ACEOF
16800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16801 exec 5>>config.log
16802 {
16803 echo
16804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16805 ## Running $as_me. ##
16806 _ASBOX
16807 $as_echo "$ac_log"
16808 } >&5
16809
16810 _ACEOF
16811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16812 #
16813 # INIT-COMMANDS
16814 #
16815 PACKAGE="$PACKAGE"
16816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16817
16818
16819 # The HP-UX ksh and POSIX shell print the target directory to stdout
16820 # if CDPATH is set.
16821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16822
16823 sed_quote_subst='$sed_quote_subst'
16824 double_quote_subst='$double_quote_subst'
16825 delay_variable_subst='$delay_variable_subst'
16826 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16827 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16828 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16829 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16830 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16831 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16832 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16833 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16834 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16835 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16836 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16837 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16838 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16839 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16840 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16841 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16842 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16843 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16844 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16845 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16846 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16847 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16848 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16849 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16850 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16851 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16852 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16853 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16854 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16855 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16856 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16857 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16858 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16859 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16860 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16861 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16862 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16863 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16864 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16865 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16866 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16867 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16868 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16869 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16870 lt_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"`'
16871 lt_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"`'
16872 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16873 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16874 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16875 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16876 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16877 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16878 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16879 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16880 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16881 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16882 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16883 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16884 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16885 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16886 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16887 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16888 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16889 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16890 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16891 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16892 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16893 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16894 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16895 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16896 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16897 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16898 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16899 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16900 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16901 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16902 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16903 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16904 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16905 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16906 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16907 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16908 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16909 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16910 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16911 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16912 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16913 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16914 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16915 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16916 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16917 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16918 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16919 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16920 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16921 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16922 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16923 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16924 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16925 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16926 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16927 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16928 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16929 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16930 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16931 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16932 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16933 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16934 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16935 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16936 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16937 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16938 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16939 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16940 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16941 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16942 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16943 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16944 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16945 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16946 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16947 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16948 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16949 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16950 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16951 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16952 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16953 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16954 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16955 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16956 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16957 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16958 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16959 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16960 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16961 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16962 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16963 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16964 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16965 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16966 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16967 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16968 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16969 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16970 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16971 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16972 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16973 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16974 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16975 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16976 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16977 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16978 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16979 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16980 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16981 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16982 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16983 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16984 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16985 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16986 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16987 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16988 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16989 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16990 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16991 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16992 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16993 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16994 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16995 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16996 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16997
16998 LTCC='$LTCC'
16999 LTCFLAGS='$LTCFLAGS'
17000 compiler='$compiler_DEFAULT'
17001
17002 # Quote evaled strings.
17003 for var in SED \
17004 GREP \
17005 EGREP \
17006 FGREP \
17007 LD \
17008 NM \
17009 LN_S \
17010 lt_SP2NL \
17011 lt_NL2SP \
17012 reload_flag \
17013 OBJDUMP \
17014 deplibs_check_method \
17015 file_magic_cmd \
17016 AR \
17017 AR_FLAGS \
17018 STRIP \
17019 RANLIB \
17020 CC \
17021 CFLAGS \
17022 compiler \
17023 lt_cv_sys_global_symbol_pipe \
17024 lt_cv_sys_global_symbol_to_cdecl \
17025 lt_cv_sys_global_symbol_to_c_name_address \
17026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17027 SHELL \
17028 ECHO \
17029 lt_prog_compiler_no_builtin_flag \
17030 lt_prog_compiler_wl \
17031 lt_prog_compiler_pic \
17032 lt_prog_compiler_static \
17033 lt_cv_prog_compiler_c_o \
17034 need_locks \
17035 DSYMUTIL \
17036 NMEDIT \
17037 LIPO \
17038 OTOOL \
17039 OTOOL64 \
17040 shrext_cmds \
17041 export_dynamic_flag_spec \
17042 whole_archive_flag_spec \
17043 compiler_needs_object \
17044 with_gnu_ld \
17045 allow_undefined_flag \
17046 no_undefined_flag \
17047 hardcode_libdir_flag_spec \
17048 hardcode_libdir_flag_spec_ld \
17049 hardcode_libdir_separator \
17050 fix_srcfile_path \
17051 exclude_expsyms \
17052 include_expsyms \
17053 file_list_spec \
17054 variables_saved_for_relink \
17055 libname_spec \
17056 library_names_spec \
17057 soname_spec \
17058 finish_eval \
17059 old_striplib \
17060 striplib \
17061 compiler_lib_search_dirs \
17062 predep_objects \
17063 postdep_objects \
17064 predeps \
17065 postdeps \
17066 compiler_lib_search_path \
17067 LD_CXX \
17068 compiler_CXX \
17069 lt_prog_compiler_no_builtin_flag_CXX \
17070 lt_prog_compiler_wl_CXX \
17071 lt_prog_compiler_pic_CXX \
17072 lt_prog_compiler_static_CXX \
17073 lt_cv_prog_compiler_c_o_CXX \
17074 export_dynamic_flag_spec_CXX \
17075 whole_archive_flag_spec_CXX \
17076 compiler_needs_object_CXX \
17077 with_gnu_ld_CXX \
17078 allow_undefined_flag_CXX \
17079 no_undefined_flag_CXX \
17080 hardcode_libdir_flag_spec_CXX \
17081 hardcode_libdir_flag_spec_ld_CXX \
17082 hardcode_libdir_separator_CXX \
17083 fix_srcfile_path_CXX \
17084 exclude_expsyms_CXX \
17085 include_expsyms_CXX \
17086 file_list_spec_CXX \
17087 compiler_lib_search_dirs_CXX \
17088 predep_objects_CXX \
17089 postdep_objects_CXX \
17090 predeps_CXX \
17091 postdeps_CXX \
17092 compiler_lib_search_path_CXX; do
17093 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17094 *[\\\\\\\`\\"\\\$]*)
17095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17096 ;;
17097 *)
17098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17099 ;;
17100 esac
17101 done
17102
17103 # Double-quote double-evaled strings.
17104 for var in reload_cmds \
17105 old_postinstall_cmds \
17106 old_postuninstall_cmds \
17107 old_archive_cmds \
17108 extract_expsyms_cmds \
17109 old_archive_from_new_cmds \
17110 old_archive_from_expsyms_cmds \
17111 archive_cmds \
17112 archive_expsym_cmds \
17113 module_cmds \
17114 module_expsym_cmds \
17115 export_symbols_cmds \
17116 prelink_cmds \
17117 postinstall_cmds \
17118 postuninstall_cmds \
17119 finish_cmds \
17120 sys_lib_search_path_spec \
17121 sys_lib_dlsearch_path_spec \
17122 old_archive_cmds_CXX \
17123 old_archive_from_new_cmds_CXX \
17124 old_archive_from_expsyms_cmds_CXX \
17125 archive_cmds_CXX \
17126 archive_expsym_cmds_CXX \
17127 module_cmds_CXX \
17128 module_expsym_cmds_CXX \
17129 export_symbols_cmds_CXX \
17130 prelink_cmds_CXX; do
17131 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17132 *[\\\\\\\`\\"\\\$]*)
17133 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17134 ;;
17135 *)
17136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17137 ;;
17138 esac
17139 done
17140
17141 # Fix-up fallback echo if it was mangled by the above quoting rules.
17142 case \$lt_ECHO in
17143 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17144 ;;
17145 esac
17146
17147 ac_aux_dir='$ac_aux_dir'
17148 xsi_shell='$xsi_shell'
17149 lt_shell_append='$lt_shell_append'
17150
17151 # See if we are running on zsh, and set the options which allow our
17152 # commands through without removal of \ escapes INIT.
17153 if test -n "\${ZSH_VERSION+set}" ; then
17154 setopt NO_GLOB_SUBST
17155 fi
17156
17157
17158 PACKAGE='$PACKAGE'
17159 VERSION='$VERSION'
17160 TIMESTAMP='$TIMESTAMP'
17161 RM='$RM'
17162 ofile='$ofile'
17163
17164
17165
17166
17167
17168
17169 _ACEOF
17170
17171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17172
17173 # Handling of arguments.
17174 for ac_config_target in $ac_config_targets
17175 do
17176 case $ac_config_target in
17177 "src/libecap/common/ac-autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libecap/common/ac-autoconf.h" ;;
17178 "src/libecap/common/autoconf.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/libecap/common/autoconf.h" ;;
17179 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17180 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17181 "libecap.pc") CONFIG_FILES="$CONFIG_FILES libecap.pc" ;;
17182 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17183 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17184 "src/libecap/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecap/Makefile" ;;
17185 "src/libecap/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecap/common/Makefile" ;;
17186 "src/libecap/adapter/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecap/adapter/Makefile" ;;
17187 "src/libecap/host/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecap/host/Makefile" ;;
17188 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17189
17190 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17191 esac
17192 done
17193
17194
17195 # If the user did not use the arguments to specify the items to instantiate,
17196 # then the envvar interface is used. Set only those that are not.
17197 # We use the long form for the default assignment because of an extremely
17198 # bizarre bug on SunOS 4.1.3.
17199 if $ac_need_defaults; then
17200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17201 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17202 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17203 fi
17204
17205 # Have a temporary directory for convenience. Make it in the build tree
17206 # simply because there is no reason against having it here, and in addition,
17207 # creating and moving files from /tmp can sometimes cause problems.
17208 # Hook for its removal unless debugging.
17209 # Note that there is a small window in which the directory will not be cleaned:
17210 # after its creation but before its name has been assigned to `$tmp'.
17211 $debug ||
17212 {
17213 tmp=
17214 trap 'exit_status=$?
17215 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17216 ' 0
17217 trap 'as_fn_exit 1' 1 2 13 15
17218 }
17219 # Create a (secure) tmp directory for tmp files.
17220
17221 {
17222 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17223 test -n "$tmp" && test -d "$tmp"
17224 } ||
17225 {
17226 tmp=./conf$$-$RANDOM
17227 (umask 077 && mkdir "$tmp")
17228 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17229
17230 # Set up the scripts for CONFIG_FILES section.
17231 # No need to generate them if there are no CONFIG_FILES.
17232 # This happens for instance with `./config.status config.h'.
17233 if test -n "$CONFIG_FILES"; then
17234
17235
17236 ac_cr=`echo X | tr X '\015'`
17237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17238 # But we know of no other shell where ac_cr would be empty at this
17239 # point, so we can use a bashism as a fallback.
17240 if test "x$ac_cr" = x; then
17241 eval ac_cr=\$\'\\r\'
17242 fi
17243 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17245 ac_cs_awk_cr='\r'
17246 else
17247 ac_cs_awk_cr=$ac_cr
17248 fi
17249
17250 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17251 _ACEOF
17252
17253
17254 {
17255 echo "cat >conf$$subs.awk <<_ACEOF" &&
17256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17257 echo "_ACEOF"
17258 } >conf$$subs.sh ||
17259 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17261 ac_delim='%!_!# '
17262 for ac_last_try in false false false false false :; do
17263 . ./conf$$subs.sh ||
17264 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17265
17266 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17267 if test $ac_delim_n = $ac_delim_num; then
17268 break
17269 elif $ac_last_try; then
17270 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17271 else
17272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17273 fi
17274 done
17275 rm -f conf$$subs.sh
17276
17277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17278 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17279 _ACEOF
17280 sed -n '
17281 h
17282 s/^/S["/; s/!.*/"]=/
17283 p
17284 g
17285 s/^[^!]*!//
17286 :repl
17287 t repl
17288 s/'"$ac_delim"'$//
17289 t delim
17290 :nl
17291 h
17292 s/\(.\{148\}\)..*/\1/
17293 t more1
17294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17295 p
17296 n
17297 b repl
17298 :more1
17299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17300 p
17301 g
17302 s/.\{148\}//
17303 t nl
17304 :delim
17305 h
17306 s/\(.\{148\}\)..*/\1/
17307 t more2
17308 s/["\\]/\\&/g; s/^/"/; s/$/"/
17309 p
17310 b
17311 :more2
17312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17313 p
17314 g
17315 s/.\{148\}//
17316 t delim
17317 ' <conf$$subs.awk | sed '
17318 /^[^""]/{
17319 N
17320 s/\n//
17321 }
17322 ' >>$CONFIG_STATUS || ac_write_fail=1
17323 rm -f conf$$subs.awk
17324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17325 _ACAWK
17326 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17327 for (key in S) S_is_set[key] = 1
17328 FS = ""
17329
17330 }
17331 {
17332 line = $ 0
17333 nfields = split(line, field, "@")
17334 substed = 0
17335 len = length(field[1])
17336 for (i = 2; i < nfields; i++) {
17337 key = field[i]
17338 keylen = length(key)
17339 if (S_is_set[key]) {
17340 value = S[key]
17341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17342 len += length(value) + length(field[++i])
17343 substed = 1
17344 } else
17345 len += 1 + keylen
17346 }
17347
17348 print line
17349 }
17350
17351 _ACAWK
17352 _ACEOF
17353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17356 else
17357 cat
17358 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17359 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17360 _ACEOF
17361
17362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17364 # trailing colons and then remove the whole line if VPATH becomes empty
17365 # (actually we leave an empty line to preserve line numbers).
17366 if test "x$srcdir" = x.; then
17367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17368 s/:*\$(srcdir):*/:/
17369 s/:*\${srcdir}:*/:/
17370 s/:*@srcdir@:*/:/
17371 s/^\([^=]*=[ ]*\):*/\1/
17372 s/:*$//
17373 s/^[^=]*=[ ]*$//
17374 }'
17375 fi
17376
17377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17378 fi # test -n "$CONFIG_FILES"
17379
17380 # Set up the scripts for CONFIG_HEADERS section.
17381 # No need to generate them if there are no CONFIG_HEADERS.
17382 # This happens for instance with `./config.status Makefile'.
17383 if test -n "$CONFIG_HEADERS"; then
17384 cat >"$tmp/defines.awk" <<\_ACAWK ||
17385 BEGIN {
17386 _ACEOF
17387
17388 # Transform confdefs.h into an awk script `defines.awk', embedded as
17389 # here-document in config.status, that substitutes the proper values into
17390 # config.h.in to produce config.h.
17391
17392 # Create a delimiter string that does not exist in confdefs.h, to ease
17393 # handling of long lines.
17394 ac_delim='%!_!# '
17395 for ac_last_try in false false :; do
17396 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17397 if test -z "$ac_t"; then
17398 break
17399 elif $ac_last_try; then
17400 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17401 else
17402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17403 fi
17404 done
17405
17406 # For the awk script, D is an array of macro values keyed by name,
17407 # likewise P contains macro parameters if any. Preserve backslash
17408 # newline sequences.
17409
17410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17411 sed -n '
17412 s/.\{148\}/&'"$ac_delim"'/g
17413 t rset
17414 :rset
17415 s/^[ ]*#[ ]*define[ ][ ]*/ /
17416 t def
17417 d
17418 :def
17419 s/\\$//
17420 t bsnl
17421 s/["\\]/\\&/g
17422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17423 D["\1"]=" \3"/p
17424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17425 d
17426 :bsnl
17427 s/["\\]/\\&/g
17428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17429 D["\1"]=" \3\\\\\\n"\\/p
17430 t cont
17431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17432 t cont
17433 d
17434 :cont
17435 n
17436 s/.\{148\}/&'"$ac_delim"'/g
17437 t clear
17438 :clear
17439 s/\\$//
17440 t bsnlc
17441 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17442 d
17443 :bsnlc
17444 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17445 b cont
17446 ' <confdefs.h | sed '
17447 s/'"$ac_delim"'/"\\\
17448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17449
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17451 for (key in D) D_is_set[key] = 1
17452 FS = ""
17453 }
17454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17455 line = \$ 0
17456 split(line, arg, " ")
17457 if (arg[1] == "#") {
17458 defundef = arg[2]
17459 mac1 = arg[3]
17460 } else {
17461 defundef = substr(arg[1], 2)
17462 mac1 = arg[2]
17463 }
17464 split(mac1, mac2, "(") #)
17465 macro = mac2[1]
17466 prefix = substr(line, 1, index(line, defundef) - 1)
17467 if (D_is_set[macro]) {
17468 # Preserve the white space surrounding the "#".
17469 print prefix "define", macro P[macro] D[macro]
17470 next
17471 } else {
17472 # Replace #undef with comments. This is necessary, for example,
17473 # in the case of _POSIX_SOURCE, which is predefined and required
17474 # on some systems where configure will not decide to define it.
17475 if (defundef == "undef") {
17476 print "/*", prefix defundef, macro, "*/"
17477 next
17478 }
17479 }
17480 }
17481 { print }
17482 _ACAWK
17483 _ACEOF
17484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17485 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17486 fi # test -n "$CONFIG_HEADERS"
17487
17488
17489 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17490 shift
17491 for ac_tag
17492 do
17493 case $ac_tag in
17494 :[FHLC]) ac_mode=$ac_tag; continue;;
17495 esac
17496 case $ac_mode$ac_tag in
17497 :[FHL]*:*);;
17498 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17499 :[FH]-) ac_tag=-:-;;
17500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17501 esac
17502 ac_save_IFS=$IFS
17503 IFS=:
17504 set x $ac_tag
17505 IFS=$ac_save_IFS
17506 shift
17507 ac_file=$1
17508 shift
17509
17510 case $ac_mode in
17511 :L) ac_source=$1;;
17512 :[FH])
17513 ac_file_inputs=
17514 for ac_f
17515 do
17516 case $ac_f in
17517 -) ac_f="$tmp/stdin";;
17518 *) # Look for the file first in the build tree, then in the source tree
17519 # (if the path is not absolute). The absolute path cannot be DOS-style,
17520 # because $ac_f cannot contain `:'.
17521 test -f "$ac_f" ||
17522 case $ac_f in
17523 [\\/$]*) false;;
17524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17525 esac ||
17526 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17527 esac
17528 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17529 as_fn_append ac_file_inputs " '$ac_f'"
17530 done
17531
17532 # Let's still pretend it is `configure' which instantiates (i.e., don't
17533 # use $as_me), people would be surprised to read:
17534 # /* config.h. Generated by config.status. */
17535 configure_input='Generated from '`
17536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17537 `' by configure.'
17538 if test x"$ac_file" != x-; then
17539 configure_input="$ac_file. $configure_input"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17541 $as_echo "$as_me: creating $ac_file" >&6;}
17542 fi
17543 # Neutralize special characters interpreted by sed in replacement strings.
17544 case $configure_input in #(
17545 *\&* | *\|* | *\\* )
17546 ac_sed_conf_input=`$as_echo "$configure_input" |
17547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17548 *) ac_sed_conf_input=$configure_input;;
17549 esac
17550
17551 case $ac_tag in
17552 *:-:* | *:-) cat >"$tmp/stdin" \
17553 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17554 esac
17555 ;;
17556 esac
17557
17558 ac_dir=`$as_dirname -- "$ac_file" ||
17559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17560 X"$ac_file" : 'X\(//\)[^/]' \| \
17561 X"$ac_file" : 'X\(//\)$' \| \
17562 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17563 $as_echo X"$ac_file" |
17564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17565 s//\1/
17566 q
17567 }
17568 /^X\(\/\/\)[^/].*/{
17569 s//\1/
17570 q
17571 }
17572 /^X\(\/\/\)$/{
17573 s//\1/
17574 q
17575 }
17576 /^X\(\/\).*/{
17577 s//\1/
17578 q
17579 }
17580 s/.*/./; q'`
17581 as_dir="$ac_dir"; as_fn_mkdir_p
17582 ac_builddir=.
17583
17584 case "$ac_dir" in
17585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17586 *)
17587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17588 # A ".." for each directory in $ac_dir_suffix.
17589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17590 case $ac_top_builddir_sub in
17591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17593 esac ;;
17594 esac
17595 ac_abs_top_builddir=$ac_pwd
17596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17597 # for backward compatibility:
17598 ac_top_builddir=$ac_top_build_prefix
17599
17600 case $srcdir in
17601 .) # We are building in place.
17602 ac_srcdir=.
17603 ac_top_srcdir=$ac_top_builddir_sub
17604 ac_abs_top_srcdir=$ac_pwd ;;
17605 [\\/]* | ?:[\\/]* ) # Absolute name.
17606 ac_srcdir=$srcdir$ac_dir_suffix;
17607 ac_top_srcdir=$srcdir
17608 ac_abs_top_srcdir=$srcdir ;;
17609 *) # Relative name.
17610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17611 ac_top_srcdir=$ac_top_build_prefix$srcdir
17612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17613 esac
17614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17615
17616
17617 case $ac_mode in
17618 :F)
17619 #
17620 # CONFIG_FILE
17621 #
17622
17623 case $INSTALL in
17624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17625 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17626 esac
17627 ac_MKDIR_P=$MKDIR_P
17628 case $MKDIR_P in
17629 [\\/$]* | ?:[\\/]* ) ;;
17630 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17631 esac
17632 _ACEOF
17633
17634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635 # If the template does not know about datarootdir, expand it.
17636 # FIXME: This hack should be removed a few years after 2.60.
17637 ac_datarootdir_hack=; ac_datarootdir_seen=
17638 ac_sed_dataroot='
17639 /datarootdir/ {
17640 p
17641 q
17642 }
17643 /@datadir@/p
17644 /@docdir@/p
17645 /@infodir@/p
17646 /@localedir@/p
17647 /@mandir@/p'
17648 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17649 *datarootdir*) ac_datarootdir_seen=yes;;
17650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17652 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17653 _ACEOF
17654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17655 ac_datarootdir_hack='
17656 s&@datadir@&$datadir&g
17657 s&@docdir@&$docdir&g
17658 s&@infodir@&$infodir&g
17659 s&@localedir@&$localedir&g
17660 s&@mandir@&$mandir&g
17661 s&\\\${datarootdir}&$datarootdir&g' ;;
17662 esac
17663 _ACEOF
17664
17665 # Neutralize VPATH when `$srcdir' = `.'.
17666 # Shell code in configure.ac might set extrasub.
17667 # FIXME: do we really want to maintain this feature?
17668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17669 ac_sed_extra="$ac_vpsub
17670 $extrasub
17671 _ACEOF
17672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17673 :t
17674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17675 s|@configure_input@|$ac_sed_conf_input|;t t
17676 s&@top_builddir@&$ac_top_builddir_sub&;t t
17677 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17678 s&@srcdir@&$ac_srcdir&;t t
17679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17680 s&@top_srcdir@&$ac_top_srcdir&;t t
17681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17682 s&@builddir@&$ac_builddir&;t t
17683 s&@abs_builddir@&$ac_abs_builddir&;t t
17684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17685 s&@INSTALL@&$ac_INSTALL&;t t
17686 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17687 $ac_datarootdir_hack
17688 "
17689 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17690 || as_fn_error "could not create $ac_file" "$LINENO" 5
17691
17692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17693 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17694 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17696 which seems to be undefined. Please make sure it is defined." >&5
17697 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17698 which seems to be undefined. Please make sure it is defined." >&2;}
17699
17700 rm -f "$tmp/stdin"
17701 case $ac_file in
17702 -) cat "$tmp/out" && rm -f "$tmp/out";;
17703 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17704 esac \
17705 || as_fn_error "could not create $ac_file" "$LINENO" 5
17706 ;;
17707 :H)
17708 #
17709 # CONFIG_HEADER
17710 #
17711 if test x"$ac_file" != x-; then
17712 {
17713 $as_echo "/* $configure_input */" \
17714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17715 } >"$tmp/config.h" \
17716 || as_fn_error "could not create $ac_file" "$LINENO" 5
17717 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17720 else
17721 rm -f "$ac_file"
17722 mv "$tmp/config.h" "$ac_file" \
17723 || as_fn_error "could not create $ac_file" "$LINENO" 5
17724 fi
17725 else
17726 $as_echo "/* $configure_input */" \
17727 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17728 || as_fn_error "could not create -" "$LINENO" 5
17729 fi
17730 # Compute "$ac_file"'s index in $config_headers.
17731 _am_arg="$ac_file"
17732 _am_stamp_count=1
17733 for _am_header in $config_headers :; do
17734 case $_am_header in
17735 $_am_arg | $_am_arg:* )
17736 break ;;
17737 * )
17738 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17739 esac
17740 done
17741 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17742 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17743 X"$_am_arg" : 'X\(//\)[^/]' \| \
17744 X"$_am_arg" : 'X\(//\)$' \| \
17745 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17746 $as_echo X"$_am_arg" |
17747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17748 s//\1/
17749 q
17750 }
17751 /^X\(\/\/\)[^/].*/{
17752 s//\1/
17753 q
17754 }
17755 /^X\(\/\/\)$/{
17756 s//\1/
17757 q
17758 }
17759 /^X\(\/\).*/{
17760 s//\1/
17761 q
17762 }
17763 s/.*/./; q'`/stamp-h$_am_stamp_count
17764 ;;
17765
17766 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17767 $as_echo "$as_me: executing $ac_file commands" >&6;}
17768 ;;
17769 esac
17770
17771
17772 case $ac_file$ac_mode in
17773 "src/libecap/common/autoconf.h":C) ac_prefix_conf_OUT=`echo src/libecap/common/autoconf.h`
17774 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
17775 ac_prefix_conf_PKG=`echo $PACKAGE`
17776 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
17777 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
17778 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
17779 if test ".$ac_prefix_conf_INP" = "."; then
17780 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
17781 case "$ac_file" in
17782 *.h) ac_prefix_conf_INP=$ac_file ;;
17783 *)
17784 esac
17785 test ".$ac_prefix_conf_INP" != "." && break
17786 done
17787 fi
17788 if test ".$ac_prefix_conf_INP" = "."; then
17789 case "$ac_prefix_conf_OUT" in
17790 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
17791 ;;
17792 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
17793 ;;
17794 *) ac_prefix_conf_INP=config.h
17795 ;;
17796 esac
17797 fi
17798 if test -z "$ac_prefix_conf_PKG" ; then
17799 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
17800 else
17801 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
17802 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
17803 fi fi
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
17805 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
17806 if test -f $ac_prefix_conf_INP ; then
17807 echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
17808 echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
17809 echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
17810 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
17811 echo "#endif/" >>conftest.prefix
17812 echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
17813 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
17814 echo "#endif/" >> conftest.prefix
17815 # now executing _script on _DEF input to create _OUT output file
17816 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
17817 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
17818 echo ' ' >>$tmp/pconfig.h
17819 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
17820
17821 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
17822 echo ' ' >>$tmp/pconfig.h
17823 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
17824 echo "#endif" >>$tmp/pconfig.h
17825 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
17827 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
17828 else
17829 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
17830 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17831 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
17832 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
17833 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
17834 $as_echo X"$ac_prefix_conf_OUT" |
17835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17836 s//\1/
17837 q
17838 }
17839 /^X\(\/\/\)[^/].*/{
17840 s//\1/
17841 q
17842 }
17843 /^X\(\/\/\)$/{
17844 s//\1/
17845 q
17846 }
17847 /^X\(\/\).*/{
17848 s//\1/
17849 q
17850 }
17851 s/.*/./; q'`
17852 as_dir="$ac_dir"; as_fn_mkdir_p
17853 rm -f "$ac_prefix_conf_OUT"
17854 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
17855 fi
17856 cp conftest.prefix _configs.sed
17857 else
17858 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
17859 fi
17860 rm -f conftest.*
17861 fi
17862 ;;
17863 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17864 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17865 # are listed without --file. Let's play safe and only enable the eval
17866 # if we detect the quoting.
17867 case $CONFIG_FILES in
17868 *\'*) eval set x "$CONFIG_FILES" ;;
17869 *) set x $CONFIG_FILES ;;
17870 esac
17871 shift
17872 for mf
17873 do
17874 # Strip MF so we end up with the name of the file.
17875 mf=`echo "$mf" | sed -e 's/:.*$//'`
17876 # Check whether this is an Automake generated Makefile or not.
17877 # We used to match only the files named `Makefile.in', but
17878 # some people rename them; so instead we look at the file content.
17879 # Grep'ing the first line is not enough: some people post-process
17880 # each Makefile.in and add a new line on top of each file to say so.
17881 # Grep'ing the whole file is not good either: AIX grep has a line
17882 # limit of 2048, but all sed's we know have understand at least 4000.
17883 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17884 dirpart=`$as_dirname -- "$mf" ||
17885 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17886 X"$mf" : 'X\(//\)[^/]' \| \
17887 X"$mf" : 'X\(//\)$' \| \
17888 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17889 $as_echo X"$mf" |
17890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17891 s//\1/
17892 q
17893 }
17894 /^X\(\/\/\)[^/].*/{
17895 s//\1/
17896 q
17897 }
17898 /^X\(\/\/\)$/{
17899 s//\1/
17900 q
17901 }
17902 /^X\(\/\).*/{
17903 s//\1/
17904 q
17905 }
17906 s/.*/./; q'`
17907 else
17908 continue
17909 fi
17910 # Extract the definition of DEPDIR, am__include, and am__quote
17911 # from the Makefile without running `make'.
17912 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17913 test -z "$DEPDIR" && continue
17914 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17915 test -z "am__include" && continue
17916 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17917 # When using ansi2knr, U may be empty or an underscore; expand it
17918 U=`sed -n 's/^U = //p' < "$mf"`
17919 # Find all dependency output files, they are included files with
17920 # $(DEPDIR) in their names. We invoke sed twice because it is the
17921 # simplest approach to changing $(DEPDIR) to its actual value in the
17922 # expansion.
17923 for file in `sed -n "
17924 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17925 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17926 # Make sure the directory exists.
17927 test -f "$dirpart/$file" && continue
17928 fdir=`$as_dirname -- "$file" ||
17929 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17930 X"$file" : 'X\(//\)[^/]' \| \
17931 X"$file" : 'X\(//\)$' \| \
17932 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17933 $as_echo X"$file" |
17934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17935 s//\1/
17936 q
17937 }
17938 /^X\(\/\/\)[^/].*/{
17939 s//\1/
17940 q
17941 }
17942 /^X\(\/\/\)$/{
17943 s//\1/
17944 q
17945 }
17946 /^X\(\/\).*/{
17947 s//\1/
17948 q
17949 }
17950 s/.*/./; q'`
17951 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17952 # echo "creating $dirpart/$file"
17953 echo '# dummy' > "$dirpart/$file"
17954 done
17955 done
17956 }
17957 ;;
17958 "libtool":C)
17959
17960 # See if we are running on zsh, and set the options which allow our
17961 # commands through without removal of \ escapes.
17962 if test -n "${ZSH_VERSION+set}" ; then
17963 setopt NO_GLOB_SUBST
17964 fi
17965
17966 cfgfile="${ofile}T"
17967 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17968 $RM "$cfgfile"
17969
17970 cat <<_LT_EOF >> "$cfgfile"
17971 #! $SHELL
17972
17973 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17974 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17975 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17976 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17977 #
17978 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17979 # 2006, 2007, 2008 Free Software Foundation, Inc.
17980 # Written by Gordon Matzigkeit, 1996
17981 #
17982 # This file is part of GNU Libtool.
17983 #
17984 # GNU Libtool is free software; you can redistribute it and/or
17985 # modify it under the terms of the GNU General Public License as
17986 # published by the Free Software Foundation; either version 2 of
17987 # the License, or (at your option) any later version.
17988 #
17989 # As a special exception to the GNU General Public License,
17990 # if you distribute this file as part of a program or library that
17991 # is built using GNU Libtool, you may include this file under the
17992 # same distribution terms that you use for the rest of that program.
17993 #
17994 # GNU Libtool is distributed in the hope that it will be useful,
17995 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17996 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17997 # GNU General Public License for more details.
17998 #
17999 # You should have received a copy of the GNU General Public License
18000 # along with GNU Libtool; see the file COPYING. If not, a copy
18001 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18002 # obtained by writing to the Free Software Foundation, Inc.,
18003 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18004
18005
18006 # The names of the tagged configurations supported by this script.
18007 available_tags="CXX "
18008
18009 # ### BEGIN LIBTOOL CONFIG
18010
18011 # Which release of libtool.m4 was used?
18012 macro_version=$macro_version
18013 macro_revision=$macro_revision
18014
18015 # Whether or not to build shared libraries.
18016 build_libtool_libs=$enable_shared
18017
18018 # Whether or not to build static libraries.
18019 build_old_libs=$enable_static
18020
18021 # What type of objects to build.
18022 pic_mode=$pic_mode
18023
18024 # Whether or not to optimize for fast installation.
18025 fast_install=$enable_fast_install
18026
18027 # The host system.
18028 host_alias=$host_alias
18029 host=$host
18030 host_os=$host_os
18031
18032 # The build system.
18033 build_alias=$build_alias
18034 build=$build
18035 build_os=$build_os
18036
18037 # A sed program that does not truncate output.
18038 SED=$lt_SED
18039
18040 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18041 Xsed="\$SED -e 1s/^X//"
18042
18043 # A grep program that handles long lines.
18044 GREP=$lt_GREP
18045
18046 # An ERE matcher.
18047 EGREP=$lt_EGREP
18048
18049 # A literal string matcher.
18050 FGREP=$lt_FGREP
18051
18052 # A BSD- or MS-compatible name lister.
18053 NM=$lt_NM
18054
18055 # Whether we need soft or hard links.
18056 LN_S=$lt_LN_S
18057
18058 # What is the maximum length of a command?
18059 max_cmd_len=$max_cmd_len
18060
18061 # Object file suffix (normally "o").
18062 objext=$ac_objext
18063
18064 # Executable file suffix (normally "").
18065 exeext=$exeext
18066
18067 # whether the shell understands "unset".
18068 lt_unset=$lt_unset
18069
18070 # turn spaces into newlines.
18071 SP2NL=$lt_lt_SP2NL
18072
18073 # turn newlines into spaces.
18074 NL2SP=$lt_lt_NL2SP
18075
18076 # How to create reloadable object files.
18077 reload_flag=$lt_reload_flag
18078 reload_cmds=$lt_reload_cmds
18079
18080 # An object symbol dumper.
18081 OBJDUMP=$lt_OBJDUMP
18082
18083 # Method to check whether dependent libraries are shared objects.
18084 deplibs_check_method=$lt_deplibs_check_method
18085
18086 # Command to use when deplibs_check_method == "file_magic".
18087 file_magic_cmd=$lt_file_magic_cmd
18088
18089 # The archiver.
18090 AR=$lt_AR
18091 AR_FLAGS=$lt_AR_FLAGS
18092
18093 # A symbol stripping program.
18094 STRIP=$lt_STRIP
18095
18096 # Commands used to install an old-style archive.
18097 RANLIB=$lt_RANLIB
18098 old_postinstall_cmds=$lt_old_postinstall_cmds
18099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18100
18101 # A C compiler.
18102 LTCC=$lt_CC
18103
18104 # LTCC compiler flags.
18105 LTCFLAGS=$lt_CFLAGS
18106
18107 # Take the output of nm and produce a listing of raw symbols and C names.
18108 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18109
18110 # Transform the output of nm in a proper C declaration.
18111 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18112
18113 # Transform the output of nm in a C name address pair.
18114 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18115
18116 # Transform the output of nm in a C name address pair when lib prefix is needed.
18117 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18118
18119 # The name of the directory that contains temporary libtool files.
18120 objdir=$objdir
18121
18122 # Shell to use when invoking shell scripts.
18123 SHELL=$lt_SHELL
18124
18125 # An echo program that does not interpret backslashes.
18126 ECHO=$lt_ECHO
18127
18128 # Used to examine libraries when file_magic_cmd begins with "file".
18129 MAGIC_CMD=$MAGIC_CMD
18130
18131 # Must we lock files when doing compilation?
18132 need_locks=$lt_need_locks
18133
18134 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18135 DSYMUTIL=$lt_DSYMUTIL
18136
18137 # Tool to change global to local symbols on Mac OS X.
18138 NMEDIT=$lt_NMEDIT
18139
18140 # Tool to manipulate fat objects and archives on Mac OS X.
18141 LIPO=$lt_LIPO
18142
18143 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18144 OTOOL=$lt_OTOOL
18145
18146 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18147 OTOOL64=$lt_OTOOL64
18148
18149 # Old archive suffix (normally "a").
18150 libext=$libext
18151
18152 # Shared library suffix (normally ".so").
18153 shrext_cmds=$lt_shrext_cmds
18154
18155 # The commands to extract the exported symbol list from a shared archive.
18156 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18157
18158 # Variables whose values should be saved in libtool wrapper scripts and
18159 # restored at link time.
18160 variables_saved_for_relink=$lt_variables_saved_for_relink
18161
18162 # Do we need the "lib" prefix for modules?
18163 need_lib_prefix=$need_lib_prefix
18164
18165 # Do we need a version for libraries?
18166 need_version=$need_version
18167
18168 # Library versioning type.
18169 version_type=$version_type
18170
18171 # Shared library runtime path variable.
18172 runpath_var=$runpath_var
18173
18174 # Shared library path variable.
18175 shlibpath_var=$shlibpath_var
18176
18177 # Is shlibpath searched before the hard-coded library search path?
18178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18179
18180 # Format of library name prefix.
18181 libname_spec=$lt_libname_spec
18182
18183 # List of archive names. First name is the real one, the rest are links.
18184 # The last name is the one that the linker finds with -lNAME
18185 library_names_spec=$lt_library_names_spec
18186
18187 # The coded name of the library, if different from the real name.
18188 soname_spec=$lt_soname_spec
18189
18190 # Command to use after installation of a shared archive.
18191 postinstall_cmds=$lt_postinstall_cmds
18192
18193 # Command to use after uninstallation of a shared archive.
18194 postuninstall_cmds=$lt_postuninstall_cmds
18195
18196 # Commands used to finish a libtool library installation in a directory.
18197 finish_cmds=$lt_finish_cmds
18198
18199 # As "finish_cmds", except a single script fragment to be evaled but
18200 # not shown.
18201 finish_eval=$lt_finish_eval
18202
18203 # Whether we should hardcode library paths into libraries.
18204 hardcode_into_libs=$hardcode_into_libs
18205
18206 # Compile-time system search path for libraries.
18207 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18208
18209 # Run-time system search path for libraries.
18210 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18211
18212 # Whether dlopen is supported.
18213 dlopen_support=$enable_dlopen
18214
18215 # Whether dlopen of programs is supported.
18216 dlopen_self=$enable_dlopen_self
18217
18218 # Whether dlopen of statically linked programs is supported.
18219 dlopen_self_static=$enable_dlopen_self_static
18220
18221 # Commands to strip libraries.
18222 old_striplib=$lt_old_striplib
18223 striplib=$lt_striplib
18224
18225
18226 # The linker used to build libraries.
18227 LD=$lt_LD
18228
18229 # Commands used to build an old-style archive.
18230 old_archive_cmds=$lt_old_archive_cmds
18231
18232 # A language specific compiler.
18233 CC=$lt_compiler
18234
18235 # Is the compiler the GNU compiler?
18236 with_gcc=$GCC
18237
18238 # Compiler flag to turn off builtin functions.
18239 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18240
18241 # How to pass a linker flag through the compiler.
18242 wl=$lt_lt_prog_compiler_wl
18243
18244 # Additional compiler flags for building library objects.
18245 pic_flag=$lt_lt_prog_compiler_pic
18246
18247 # Compiler flag to prevent dynamic linking.
18248 link_static_flag=$lt_lt_prog_compiler_static
18249
18250 # Does compiler simultaneously support -c and -o options?
18251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18252
18253 # Whether or not to add -lc for building shared libraries.
18254 build_libtool_need_lc=$archive_cmds_need_lc
18255
18256 # Whether or not to disallow shared libs when runtime libs are static.
18257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18258
18259 # Compiler flag to allow reflexive dlopens.
18260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18261
18262 # Compiler flag to generate shared objects directly from archives.
18263 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18264
18265 # Whether the compiler copes with passing no objects directly.
18266 compiler_needs_object=$lt_compiler_needs_object
18267
18268 # Create an old-style archive from a shared archive.
18269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18270
18271 # Create a temporary old-style archive to link instead of a shared archive.
18272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18273
18274 # Commands used to build a shared archive.
18275 archive_cmds=$lt_archive_cmds
18276 archive_expsym_cmds=$lt_archive_expsym_cmds
18277
18278 # Commands used to build a loadable module if different from building
18279 # a shared archive.
18280 module_cmds=$lt_module_cmds
18281 module_expsym_cmds=$lt_module_expsym_cmds
18282
18283 # Whether we are building with GNU ld or not.
18284 with_gnu_ld=$lt_with_gnu_ld
18285
18286 # Flag that allows shared libraries with undefined symbols to be built.
18287 allow_undefined_flag=$lt_allow_undefined_flag
18288
18289 # Flag that enforces no undefined symbols.
18290 no_undefined_flag=$lt_no_undefined_flag
18291
18292 # Flag to hardcode \$libdir into a binary during linking.
18293 # This must work even if \$libdir does not exist
18294 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18295
18296 # If ld is used when linking, flag to hardcode \$libdir into a binary
18297 # during linking. This must work even if \$libdir does not exist.
18298 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18299
18300 # Whether we need a single "-rpath" flag with a separated argument.
18301 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18302
18303 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18304 # DIR into the resulting binary.
18305 hardcode_direct=$hardcode_direct
18306
18307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18308 # DIR into the resulting binary and the resulting library dependency is
18309 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18310 # library is relocated.
18311 hardcode_direct_absolute=$hardcode_direct_absolute
18312
18313 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18314 # into the resulting binary.
18315 hardcode_minus_L=$hardcode_minus_L
18316
18317 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18318 # into the resulting binary.
18319 hardcode_shlibpath_var=$hardcode_shlibpath_var
18320
18321 # Set to "yes" if building a shared library automatically hardcodes DIR
18322 # into the library and all subsequent libraries and executables linked
18323 # against it.
18324 hardcode_automatic=$hardcode_automatic
18325
18326 # Set to yes if linker adds runtime paths of dependent libraries
18327 # to runtime path list.
18328 inherit_rpath=$inherit_rpath
18329
18330 # Whether libtool must link a program against all its dependency libraries.
18331 link_all_deplibs=$link_all_deplibs
18332
18333 # Fix the shell variable \$srcfile for the compiler.
18334 fix_srcfile_path=$lt_fix_srcfile_path
18335
18336 # Set to "yes" if exported symbols are required.
18337 always_export_symbols=$always_export_symbols
18338
18339 # The commands to list exported symbols.
18340 export_symbols_cmds=$lt_export_symbols_cmds
18341
18342 # Symbols that should not be listed in the preloaded symbols.
18343 exclude_expsyms=$lt_exclude_expsyms
18344
18345 # Symbols that must always be exported.
18346 include_expsyms=$lt_include_expsyms
18347
18348 # Commands necessary for linking programs (against libraries) with templates.
18349 prelink_cmds=$lt_prelink_cmds
18350
18351 # Specify filename containing input files.
18352 file_list_spec=$lt_file_list_spec
18353
18354 # How to hardcode a shared library path into an executable.
18355 hardcode_action=$hardcode_action
18356
18357 # The directories searched by this compiler when creating a shared library.
18358 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18359
18360 # Dependencies to place before and after the objects being linked to
18361 # create a shared library.
18362 predep_objects=$lt_predep_objects
18363 postdep_objects=$lt_postdep_objects
18364 predeps=$lt_predeps
18365 postdeps=$lt_postdeps
18366
18367 # The library search path used internally by the compiler when linking
18368 # a shared library.
18369 compiler_lib_search_path=$lt_compiler_lib_search_path
18370
18371 # ### END LIBTOOL CONFIG
18372
18373 _LT_EOF
18374
18375 case $host_os in
18376 aix3*)
18377 cat <<\_LT_EOF >> "$cfgfile"
18378 # AIX sometimes has problems with the GCC collect2 program. For some
18379 # reason, if we set the COLLECT_NAMES environment variable, the problems
18380 # vanish in a puff of smoke.
18381 if test "X${COLLECT_NAMES+set}" != Xset; then
18382 COLLECT_NAMES=
18383 export COLLECT_NAMES
18384 fi
18385 _LT_EOF
18386 ;;
18387 esac
18388
18389
18390 ltmain="$ac_aux_dir/ltmain.sh"
18391
18392
18393 # We use sed instead of cat because bash on DJGPP gets confused if
18394 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18395 # text mode, it properly converts lines to CR/LF. This bash problem
18396 # is reportedly fixed, but why not run on old versions too?
18397 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18398 || (rm -f "$cfgfile"; exit 1)
18399
18400 case $xsi_shell in
18401 yes)
18402 cat << \_LT_EOF >> "$cfgfile"
18403
18404 # func_dirname file append nondir_replacement
18405 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18406 # otherwise set result to NONDIR_REPLACEMENT.
18407 func_dirname ()
18408 {
18409 case ${1} in
18410 */*) func_dirname_result="${1%/*}${2}" ;;
18411 * ) func_dirname_result="${3}" ;;
18412 esac
18413 }
18414
18415 # func_basename file
18416 func_basename ()
18417 {
18418 func_basename_result="${1##*/}"
18419 }
18420
18421 # func_dirname_and_basename file append nondir_replacement
18422 # perform func_basename and func_dirname in a single function
18423 # call:
18424 # dirname: Compute the dirname of FILE. If nonempty,
18425 # add APPEND to the result, otherwise set result
18426 # to NONDIR_REPLACEMENT.
18427 # value returned in "$func_dirname_result"
18428 # basename: Compute filename of FILE.
18429 # value retuned in "$func_basename_result"
18430 # Implementation must be kept synchronized with func_dirname
18431 # and func_basename. For efficiency, we do not delegate to
18432 # those functions but instead duplicate the functionality here.
18433 func_dirname_and_basename ()
18434 {
18435 case ${1} in
18436 */*) func_dirname_result="${1%/*}${2}" ;;
18437 * ) func_dirname_result="${3}" ;;
18438 esac
18439 func_basename_result="${1##*/}"
18440 }
18441
18442 # func_stripname prefix suffix name
18443 # strip PREFIX and SUFFIX off of NAME.
18444 # PREFIX and SUFFIX must not contain globbing or regex special
18445 # characters, hashes, percent signs, but SUFFIX may contain a leading
18446 # dot (in which case that matches only a dot).
18447 func_stripname ()
18448 {
18449 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18450 # positional parameters, so assign one to ordinary parameter first.
18451 func_stripname_result=${3}
18452 func_stripname_result=${func_stripname_result#"${1}"}
18453 func_stripname_result=${func_stripname_result%"${2}"}
18454 }
18455
18456 # func_opt_split
18457 func_opt_split ()
18458 {
18459 func_opt_split_opt=${1%%=*}
18460 func_opt_split_arg=${1#*=}
18461 }
18462
18463 # func_lo2o object
18464 func_lo2o ()
18465 {
18466 case ${1} in
18467 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18468 *) func_lo2o_result=${1} ;;
18469 esac
18470 }
18471
18472 # func_xform libobj-or-source
18473 func_xform ()
18474 {
18475 func_xform_result=${1%.*}.lo
18476 }
18477
18478 # func_arith arithmetic-term...
18479 func_arith ()
18480 {
18481 func_arith_result=$(( $* ))
18482 }
18483
18484 # func_len string
18485 # STRING may not start with a hyphen.
18486 func_len ()
18487 {
18488 func_len_result=${#1}
18489 }
18490
18491 _LT_EOF
18492 ;;
18493 *) # Bourne compatible functions.
18494 cat << \_LT_EOF >> "$cfgfile"
18495
18496 # func_dirname file append nondir_replacement
18497 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18498 # otherwise set result to NONDIR_REPLACEMENT.
18499 func_dirname ()
18500 {
18501 # Extract subdirectory from the argument.
18502 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18503 if test "X$func_dirname_result" = "X${1}"; then
18504 func_dirname_result="${3}"
18505 else
18506 func_dirname_result="$func_dirname_result${2}"
18507 fi
18508 }
18509
18510 # func_basename file
18511 func_basename ()
18512 {
18513 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18514 }
18515
18516
18517 # func_stripname prefix suffix name
18518 # strip PREFIX and SUFFIX off of NAME.
18519 # PREFIX and SUFFIX must not contain globbing or regex special
18520 # characters, hashes, percent signs, but SUFFIX may contain a leading
18521 # dot (in which case that matches only a dot).
18522 # func_strip_suffix prefix name
18523 func_stripname ()
18524 {
18525 case ${2} in
18526 .*) func_stripname_result=`$ECHO "X${3}" \
18527 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18528 *) func_stripname_result=`$ECHO "X${3}" \
18529 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18530 esac
18531 }
18532
18533 # sed scripts:
18534 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18535 my_sed_long_arg='1s/^-[^=]*=//'
18536
18537 # func_opt_split
18538 func_opt_split ()
18539 {
18540 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18541 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18542 }
18543
18544 # func_lo2o object
18545 func_lo2o ()
18546 {
18547 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18548 }
18549
18550 # func_xform libobj-or-source
18551 func_xform ()
18552 {
18553 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18554 }
18555
18556 # func_arith arithmetic-term...
18557 func_arith ()
18558 {
18559 func_arith_result=`expr "$@"`
18560 }
18561
18562 # func_len string
18563 # STRING may not start with a hyphen.
18564 func_len ()
18565 {
18566 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18567 }
18568
18569 _LT_EOF
18570 esac
18571
18572 case $lt_shell_append in
18573 yes)
18574 cat << \_LT_EOF >> "$cfgfile"
18575
18576 # func_append var value
18577 # Append VALUE to the end of shell variable VAR.
18578 func_append ()
18579 {
18580 eval "$1+=\$2"
18581 }
18582 _LT_EOF
18583 ;;
18584 *)
18585 cat << \_LT_EOF >> "$cfgfile"
18586
18587 # func_append var value
18588 # Append VALUE to the end of shell variable VAR.
18589 func_append ()
18590 {
18591 eval "$1=\$$1\$2"
18592 }
18593
18594 _LT_EOF
18595 ;;
18596 esac
18597
18598
18599 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18600 || (rm -f "$cfgfile"; exit 1)
18601
18602 mv -f "$cfgfile" "$ofile" ||
18603 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18604 chmod +x "$ofile"
18605
18606
18607 cat <<_LT_EOF >> "$ofile"
18608
18609 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18610
18611 # The linker used to build libraries.
18612 LD=$lt_LD_CXX
18613
18614 # Commands used to build an old-style archive.
18615 old_archive_cmds=$lt_old_archive_cmds_CXX
18616
18617 # A language specific compiler.
18618 CC=$lt_compiler_CXX
18619
18620 # Is the compiler the GNU compiler?
18621 with_gcc=$GCC_CXX
18622
18623 # Compiler flag to turn off builtin functions.
18624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18625
18626 # How to pass a linker flag through the compiler.
18627 wl=$lt_lt_prog_compiler_wl_CXX
18628
18629 # Additional compiler flags for building library objects.
18630 pic_flag=$lt_lt_prog_compiler_pic_CXX
18631
18632 # Compiler flag to prevent dynamic linking.
18633 link_static_flag=$lt_lt_prog_compiler_static_CXX
18634
18635 # Does compiler simultaneously support -c and -o options?
18636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18637
18638 # Whether or not to add -lc for building shared libraries.
18639 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18640
18641 # Whether or not to disallow shared libs when runtime libs are static.
18642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18643
18644 # Compiler flag to allow reflexive dlopens.
18645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18646
18647 # Compiler flag to generate shared objects directly from archives.
18648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18649
18650 # Whether the compiler copes with passing no objects directly.
18651 compiler_needs_object=$lt_compiler_needs_object_CXX
18652
18653 # Create an old-style archive from a shared archive.
18654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18655
18656 # Create a temporary old-style archive to link instead of a shared archive.
18657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18658
18659 # Commands used to build a shared archive.
18660 archive_cmds=$lt_archive_cmds_CXX
18661 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18662
18663 # Commands used to build a loadable module if different from building
18664 # a shared archive.
18665 module_cmds=$lt_module_cmds_CXX
18666 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18667
18668 # Whether we are building with GNU ld or not.
18669 with_gnu_ld=$lt_with_gnu_ld_CXX
18670
18671 # Flag that allows shared libraries with undefined symbols to be built.
18672 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18673
18674 # Flag that enforces no undefined symbols.
18675 no_undefined_flag=$lt_no_undefined_flag_CXX
18676
18677 # Flag to hardcode \$libdir into a binary during linking.
18678 # This must work even if \$libdir does not exist
18679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18680
18681 # If ld is used when linking, flag to hardcode \$libdir into a binary
18682 # during linking. This must work even if \$libdir does not exist.
18683 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18684
18685 # Whether we need a single "-rpath" flag with a separated argument.
18686 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18687
18688 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18689 # DIR into the resulting binary.
18690 hardcode_direct=$hardcode_direct_CXX
18691
18692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18693 # DIR into the resulting binary and the resulting library dependency is
18694 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18695 # library is relocated.
18696 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18697
18698 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18699 # into the resulting binary.
18700 hardcode_minus_L=$hardcode_minus_L_CXX
18701
18702 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18703 # into the resulting binary.
18704 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18705
18706 # Set to "yes" if building a shared library automatically hardcodes DIR
18707 # into the library and all subsequent libraries and executables linked
18708 # against it.
18709 hardcode_automatic=$hardcode_automatic_CXX
18710
18711 # Set to yes if linker adds runtime paths of dependent libraries
18712 # to runtime path list.
18713 inherit_rpath=$inherit_rpath_CXX
18714
18715 # Whether libtool must link a program against all its dependency libraries.
18716 link_all_deplibs=$link_all_deplibs_CXX
18717
18718 # Fix the shell variable \$srcfile for the compiler.
18719 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18720
18721 # Set to "yes" if exported symbols are required.
18722 always_export_symbols=$always_export_symbols_CXX
18723
18724 # The commands to list exported symbols.
18725 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18726
18727 # Symbols that should not be listed in the preloaded symbols.
18728 exclude_expsyms=$lt_exclude_expsyms_CXX
18729
18730 # Symbols that must always be exported.
18731 include_expsyms=$lt_include_expsyms_CXX
18732
18733 # Commands necessary for linking programs (against libraries) with templates.
18734 prelink_cmds=$lt_prelink_cmds_CXX
18735
18736 # Specify filename containing input files.
18737 file_list_spec=$lt_file_list_spec_CXX
18738
18739 # How to hardcode a shared library path into an executable.
18740 hardcode_action=$hardcode_action_CXX
18741
18742 # The directories searched by this compiler when creating a shared library.
18743 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18744
18745 # Dependencies to place before and after the objects being linked to
18746 # create a shared library.
18747 predep_objects=$lt_predep_objects_CXX
18748 postdep_objects=$lt_postdep_objects_CXX
18749 predeps=$lt_predeps_CXX
18750 postdeps=$lt_postdeps_CXX
18751
18752 # The library search path used internally by the compiler when linking
18753 # a shared library.
18754 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18755
18756 # ### END LIBTOOL TAG CONFIG: CXX
18757 _LT_EOF
18758
18759 ;;
18760
18761 esac
18762 done # for ac_tag
18763
18764
18765 as_fn_exit 0
18766 _ACEOF
18767 ac_clean_files=$ac_clean_files_save
18768
18769 test $ac_write_fail = 0 ||
18770 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18771
18772
18773 # configure is writing to config.log, and then calls config.status.
18774 # config.status does its own redirection, appending to config.log.
18775 # Unfortunately, on DOS this fails, as config.log is still kept open
18776 # by configure, so config.status won't be able to write to it; its
18777 # output is simply discarded. So we exec the FD to /dev/null,
18778 # effectively closing config.log, so it can be properly (re)opened and
18779 # appended to by config.status. When coming back to configure, we
18780 # need to make the FD available again.
18781 if test "$no_create" != yes; then
18782 ac_cs_success=:
18783 ac_config_status_args=
18784 test "$silent" = yes &&
18785 ac_config_status_args="$ac_config_status_args --quiet"
18786 exec 5>/dev/null
18787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18788 exec 5>>config.log
18789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18790 # would make configure fail if this is the last instruction.
18791 $ac_cs_success || as_fn_exit $?
18792 fi
18793 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18795 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18796 fi
18797