Rev Author Line No. Line
3297 kaklik 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14  
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32  
33  
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71  
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80  
81  
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88  
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100  
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112  
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124  
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130  
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133  
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156  
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163  
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179  
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209  
210  
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221  
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243  
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255  
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263  
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273  
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279  
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318  
319  
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338  
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355  
356  
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372  
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379  
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385  
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391  
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410  
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417  
418  
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441  
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449  
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462  
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489  
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496  
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519  
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522  
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525  
526  
527  
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530  
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536 esac
537  
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552  
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557 $*
558 _LT_EOF
559 exit 0
560 fi
561  
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565  
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578  
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589  
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602  
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643  
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651  
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664 fi
665  
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672  
673  
674  
675  
676 exec 7<&0 </dev/null 6>&1
677  
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682  
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694  
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
702  
703 ac_unique_file="configure.in"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739  
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 CPP
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 lt_ECHO
751 RANLIB
752 AR
753 OBJDUMP
754 LN_S
755 NM
756 ac_ct_DUMPBIN
757 DUMPBIN
758 LD
759 FGREP
760 EGREP
761 GREP
762 SED
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 LIBTOOL
772 am__fastdepCC_FALSE
773 am__fastdepCC_TRUE
774 CCDEPMODE
775 AMDEPBACKSLASH
776 AMDEP_FALSE
777 AMDEP_TRUE
778 am__quote
779 am__include
780 DEPDIR
781 OBJEXT
782 EXEEXT
783 ac_ct_CC
784 CPPFLAGS
785 LDFLAGS
786 CFLAGS
787 CC
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_URL
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_dependency_tracking
853 enable_shared
854 enable_static
855 with_pic
856 enable_fast_install
857 with_gnu_ld
858 enable_libtool_lock
859 '
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 CC
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
868 CPP'
869  
870  
871 # Initialize some variables set by options.
872 ac_init_help=
873 ac_init_version=false
874 ac_unrecognized_opts=
875 ac_unrecognized_sep=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
878 cache_file=/dev/null
879 exec_prefix=NONE
880 no_create=
881 no_recursion=
882 prefix=NONE
883 program_prefix=NONE
884 program_suffix=NONE
885 program_transform_name=s,x,x,
886 silent=
887 site=
888 srcdir=
889 verbose=
890 x_includes=NONE
891 x_libraries=NONE
892  
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918  
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929  
930 case $ac_option in
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *) ac_optarg=yes ;;
933 esac
934  
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936  
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
940  
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 bindir=$ac_optarg ;;
945  
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
950  
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
957  
958 --config-cache | -C)
959 cache_file=config.cache ;;
960  
961 -datadir | --datadir | --datadi | --datad)
962 ac_prev=datadir ;;
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
965  
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
972  
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
988  
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
993  
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
998  
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1014  
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1023  
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027  
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1034  
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1039  
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045  
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1052  
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1057  
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1062  
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1069  
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074  
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1081  
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1086  
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090  
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1094  
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098  
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1107  
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1112  
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1119  
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1126  
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1143  
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148  
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153  
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157  
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1163  
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1174  
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1179  
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1184  
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1191  
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1196  
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199  
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1202  
1203 -with-* | --with-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1218  
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
1234  
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238  
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245  
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252  
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information."
1255 ;;
1256  
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1266  
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 ;;
1274  
1275 esac
1276 done
1277  
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error "missing argument to $ac_option"
1281 fi
1282  
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1289 fi
1290  
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1296 do
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311  
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318  
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328 fi
1329  
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332  
1333 test "$silent" = yes && exec 6>/dev/null
1334  
1335  
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error "pwd does not report name of working directory"
1342  
1343  
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1374 fi
1375 else
1376 ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1385 pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402  
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410 \`configure' configures this package to adapt to many kinds of systems.
1411  
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413  
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1416  
1417 Defaults for the options are specified in brackets.
1418  
1419 Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429  
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 [PREFIX]
1435  
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440  
1441 For better control, use the options below.
1442  
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1464  
1465 cat <<\_ACEOF
1466  
1467 Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471  
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477  
1478 if test -n "$ac_init_help"; then
1479  
1480 cat <<\_ACEOF
1481  
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-dependency-tracking speeds up one-time build
1487 --enable-dependency-tracking do not reject slow dependency extractors
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493  
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500  
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 CPP C preprocessor
1510  
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513  
1514 Report bugs to the package provider.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518  
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526  
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542  
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558  
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572 fi
1573  
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 configure
1578 generated by GNU Autoconf 2.64
1579  
1580 Copyright (C) 2009 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586  
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1590  
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621  
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 return $ac_retval
1626  
1627 } # ac_fn_c_try_compile
1628  
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 $as_test_x conftest$ac_exeext
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662  
1663 ac_retval=1
1664 fi
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 return $ac_retval
1672  
1673 } # ac_fn_c_try_link
1674  
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 $4
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693 eval "$3=yes"
1694 else
1695 eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703  
1704 } # ac_fn_c_check_header_compile
1705  
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } >/dev/null && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735  
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
1740  
1741 } # ac_fn_c_try_cpp
1742  
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776  
1777 ac_retval=$ac_status
1778 fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782  
1783 } # ac_fn_c_try_run
1784  
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800 #define $2 innocuous_$2
1801  
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806  
1807 #ifdef __STDC__
1808 # include <limits.h>
1809 #else
1810 # include <assert.h>
1811 #endif
1812  
1813 #undef $2
1814  
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828  
1829 int
1830 main ()
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849  
1850 } # ac_fn_c_check_func
1851 cat >config.log <<_ACEOF
1852 This file contains any messages produced by compilers while
1853 running configure, to aid debugging if configure makes a mistake.
1854  
1855 It was created by $as_me, which was
1856 generated by GNU Autoconf 2.64. Invocation command line was
1857  
1858 $ $0 $@
1859  
1860 _ACEOF
1861 exec 5>>config.log
1862 {
1863 cat <<_ASUNAME
1864 ## --------- ##
1865 ## Platform. ##
1866 ## --------- ##
1867  
1868 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1869 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1870 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1871 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1872 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873  
1874 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1875 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876  
1877 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1878 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1879 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1880 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1881 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1882 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1883 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1884  
1885 _ASUNAME
1886  
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890 IFS=$as_save_IFS
1891 test -z "$as_dir" && as_dir=.
1892 $as_echo "PATH: $as_dir"
1893 done
1894 IFS=$as_save_IFS
1895  
1896 } >&5
1897  
1898 cat >&5 <<_ACEOF
1899  
1900  
1901 ## ----------- ##
1902 ## Core tests. ##
1903 ## ----------- ##
1904  
1905 _ACEOF
1906  
1907  
1908 # Keep a trace of the command line.
1909 # Strip out --no-create and --no-recursion so they do not pile up.
1910 # Strip out --silent because we don't want to record it for future runs.
1911 # Also quote any args containing shell meta-characters.
1912 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_configure_args=
1914 ac_configure_args0=
1915 ac_configure_args1=
1916 ac_must_keep_next=false
1917 for ac_pass in 1 2
1918 do
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924 | -silent | --silent | --silen | --sile | --sil)
1925 continue ;;
1926 *\'*)
1927 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 esac
1929 case $ac_pass in
1930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 2)
1932 as_fn_append ac_configure_args1 " '$ac_arg'"
1933 if test $ac_must_keep_next = true; then
1934 ac_must_keep_next=false # Got value, back to normal.
1935 else
1936 case $ac_arg in
1937 *=* | --config-cache | -C | -disable-* | --disable-* \
1938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940 | -with-* | --with-* | -without-* | --without-* | --x)
1941 case "$ac_configure_args0 " in
1942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 esac
1944 ;;
1945 -* ) ac_must_keep_next=true ;;
1946 esac
1947 fi
1948 as_fn_append ac_configure_args " '$ac_arg'"
1949 ;;
1950 esac
1951 done
1952 done
1953 { ac_configure_args0=; unset ac_configure_args0;}
1954 { ac_configure_args1=; unset ac_configure_args1;}
1955  
1956 # When interrupted or exit'd, cleanup temporary files, and complete
1957 # config.log. We remove comments because anyway the quotes in there
1958 # would cause problems or look ugly.
1959 # WARNING: Use '\'' to represent an apostrophe within the trap.
1960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961 trap 'exit_status=$?
1962 # Save into config.log some information that might help in debugging.
1963 {
1964 echo
1965  
1966 cat <<\_ASBOX
1967 ## ---------------- ##
1968 ## Cache variables. ##
1969 ## ---------------- ##
1970 _ASBOX
1971 echo
1972 # The following way of writing the cache mishandles newlines in values,
1973 (
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1976 case $ac_val in #(
1977 *${as_nl}*)
1978 case $ac_var in #(
1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981 esac
1982 case $ac_var in #(
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1986 esac ;;
1987 esac
1988 done
1989 (set) 2>&1 |
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1992 sed -n \
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995 ;; #(
1996 *)
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 ;;
1999 esac |
2000 sort
2001 )
2002 echo
2003  
2004 cat <<\_ASBOX
2005 ## ----------------- ##
2006 ## Output variables. ##
2007 ## ----------------- ##
2008 _ASBOX
2009 echo
2010 for ac_var in $ac_subst_vars
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 $as_echo "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019  
2020 if test -n "$ac_subst_files"; then
2021 cat <<\_ASBOX
2022 ## ------------------- ##
2023 ## File substitutions. ##
2024 ## ------------------- ##
2025 _ASBOX
2026 echo
2027 for ac_var in $ac_subst_files
2028 do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in
2031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032 esac
2033 $as_echo "$ac_var='\''$ac_val'\''"
2034 done | sort
2035 echo
2036 fi
2037  
2038 if test -s confdefs.h; then
2039 cat <<\_ASBOX
2040 ## ----------- ##
2041 ## confdefs.h. ##
2042 ## ----------- ##
2043 _ASBOX
2044 echo
2045 cat confdefs.h
2046 echo
2047 fi
2048 test "$ac_signal" != 0 &&
2049 $as_echo "$as_me: caught signal $ac_signal"
2050 $as_echo "$as_me: exit $exit_status"
2051 } >&5
2052 rm -f core *.core core.conftest.* &&
2053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054 exit $exit_status
2055 ' 0
2056 for ac_signal in 1 2 13 15; do
2057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2058 done
2059 ac_signal=0
2060  
2061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2062 rm -f -r conftest* confdefs.h
2063  
2064 $as_echo "/* confdefs.h */" > confdefs.h
2065  
2066 # Predefined preprocessor variables.
2067  
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_NAME "$PACKAGE_NAME"
2070 _ACEOF
2071  
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074 _ACEOF
2075  
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 _ACEOF
2079  
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_STRING "$PACKAGE_STRING"
2082 _ACEOF
2083  
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 _ACEOF
2087  
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_URL "$PACKAGE_URL"
2090 _ACEOF
2091  
2092  
2093 # Let the site file select an alternate cache file if it wants to.
2094 # Prefer an explicitly selected file to automatically selected ones.
2095 ac_site_file1=NONE
2096 ac_site_file2=NONE
2097 if test -n "$CONFIG_SITE"; then
2098 ac_site_file1=$CONFIG_SITE
2099 elif test "x$prefix" != xNONE; then
2100 ac_site_file1=$prefix/share/config.site
2101 ac_site_file2=$prefix/etc/config.site
2102 else
2103 ac_site_file1=$ac_default_prefix/share/config.site
2104 ac_site_file2=$ac_default_prefix/etc/config.site
2105 fi
2106 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2107 do
2108 test "x$ac_site_file" = xNONE && continue
2109 if test -r "$ac_site_file"; then
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2111 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2112 sed 's/^/| /' "$ac_site_file" >&5
2113 . "$ac_site_file"
2114 fi
2115 done
2116  
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special
2119 # files actually), so we avoid doing that.
2120 if test -f "$cache_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123 case $cache_file in
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2126 esac
2127 fi
2128 else
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131 >$cache_file
2132 fi
2133  
2134 # Check that the precious variables saved in the cache have kept the same
2135 # value.
2136 ac_cache_corrupted=false
2137 for ac_var in $ac_precious_vars; do
2138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139 eval ac_new_set=\$ac_env_${ac_var}_set
2140 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141 eval ac_new_val=\$ac_env_${ac_var}_value
2142 case $ac_old_set,$ac_new_set in
2143 set,)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,set)
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2151 ,);;
2152 *)
2153 if test "x$ac_old_val" != "x$ac_new_val"; then
2154 # differences in whitespace do not lead to failure.
2155 ac_old_val_w=`echo x $ac_old_val`
2156 ac_new_val_w=`echo x $ac_new_val`
2157 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160 ac_cache_corrupted=:
2161 else
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164 eval $ac_var=\$ac_old_val
2165 fi
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2167 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2169 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2170 fi;;
2171 esac
2172 # Pass precious variables to config.status.
2173 if test "$ac_new_set" = set; then
2174 case $ac_new_val in
2175 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 *) ac_arg=$ac_var=$ac_new_val ;;
2177 esac
2178 case " $ac_configure_args " in
2179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2180 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181 esac
2182 fi
2183 done
2184 if $ac_cache_corrupted; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190 fi
2191 ## -------------------- ##
2192 ## Main body of script. ##
2193 ## -------------------- ##
2194  
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200  
2201  
2202  
2203 ac_config_headers="$ac_config_headers config.h"
2204  
2205 am__api_version='1.11'
2206  
2207 ac_aux_dir=
2208 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2209 for ac_t in install-sh install.sh shtool; do
2210 if test -f "$ac_dir/$ac_t"; then
2211 ac_aux_dir=$ac_dir
2212 ac_install_sh="$ac_aux_dir/$ac_t -c"
2213 break 2
2214 fi
2215 done
2216 done
2217 if test -z "$ac_aux_dir"; then
2218 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2219 fi
2220  
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2228  
2229  
2230 # Find a good install program. We prefer a C program (faster),
2231 # so one script is as good as another. But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2236 # AIX /bin/install
2237 # AmigaOS /C/install, which installs bootblocks on floppy discs
2238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2241 # OS/2's system install, which has a completely different semantic
2242 # ./install, which can be erroneously created by make from ./install.sh.
2243 # Reject install programs that cannot install multiple files.
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2245 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2246 if test -z "$INSTALL"; then
2247 if test "${ac_cv_path_install+set}" = set; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 # Account for people who put trailing slashes in PATH elements.
2256 case $as_dir/ in #((
2257 ./ | .// | /[cC]/* | \
2258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2260 /usr/ucb/* ) ;;
2261 *)
2262 # OSF1 and SCO ODT 3.0 have their own names for install.
2263 # Don't use installbsd from OSF since it installs stuff as root
2264 # by default.
2265 for ac_prog in ginstall scoinst install; do
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2268 if test $ac_prog = install &&
2269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2270 # AIX install. It has an incompatible calling convention.
2271 :
2272 elif test $ac_prog = install &&
2273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # program-specific install script used by HP pwplus--don't use.
2275 :
2276 else
2277 rm -rf conftest.one conftest.two conftest.dir
2278 echo one > conftest.one
2279 echo two > conftest.two
2280 mkdir conftest.dir
2281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2282 test -s conftest.one && test -s conftest.two &&
2283 test -s conftest.dir/conftest.one &&
2284 test -s conftest.dir/conftest.two
2285 then
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287 break 3
2288 fi
2289 fi
2290 fi
2291 done
2292 done
2293 ;;
2294 esac
2295  
2296 done
2297 IFS=$as_save_IFS
2298  
2299 rm -rf conftest.one conftest.two conftest.dir
2300  
2301 fi
2302 if test "${ac_cv_path_install+set}" = set; then
2303 INSTALL=$ac_cv_path_install
2304 else
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for INSTALL within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 INSTALL=$ac_install_sh
2310 fi
2311 fi
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2313 $as_echo "$INSTALL" >&6; }
2314  
2315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2316 # It thinks the first close brace ends the variable substitution.
2317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2318  
2319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2320  
2321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2322  
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2324 $as_echo_n "checking whether build environment is sane... " >&6; }
2325 # Just in case
2326 sleep 1
2327 echo timestamp > conftest.file
2328 # Reject unsafe characters in $srcdir or the absolute working directory
2329 # name. Accept space and tab only in the latter.
2330 am_lf='
2331 '
2332 case `pwd` in
2333 *[\\\"\#\$\&\'\`$am_lf]*)
2334 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2335 esac
2336 case $srcdir in
2337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2338 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2339 esac
2340  
2341 # Do `set' in a subshell so we don't clobber the current shell's
2342 # arguments. Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2345 # directory).
2346 if (
2347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2348 if test "$*" = "X"; then
2349 # -L didn't work.
2350 set X `ls -t "$srcdir/configure" conftest.file`
2351 fi
2352 rm -f conftest.file
2353 if test "$*" != "X $srcdir/configure conftest.file" \
2354 && test "$*" != "X conftest.file $srcdir/configure"; then
2355  
2356 # If neither matched, then we have a broken ls. This can happen
2357 # if, for instance, CONFIG_SHELL is bash and it inherits a
2358 # broken ls alias from the environment. This has actually
2359 # happened. Such a system could not be considered "sane".
2360 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2361 alias in your environment" "$LINENO" 5
2362 fi
2363  
2364 test "$2" = conftest.file
2365 )
2366 then
2367 # Ok.
2368 :
2369 else
2370 as_fn_error "newly created file is older than distributed files!
2371 Check your system clock" "$LINENO" 5
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2374 $as_echo "yes" >&6; }
2375 test "$program_prefix" != NONE &&
2376 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2377 # Use a double $ so make ignores it.
2378 test "$program_suffix" != NONE &&
2379 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2380 # Double any \ or $.
2381 # By default was `s,x,x', remove it if useless.
2382 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2383 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2384  
2385 # expand $ac_aux_dir to an absolute path
2386 am_aux_dir=`cd $ac_aux_dir && pwd`
2387  
2388 if test x"${MISSING+set}" != xset; then
2389 case $am_aux_dir in
2390 *\ * | *\ *)
2391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2392 *)
2393 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2394 esac
2395 fi
2396 # Use eval to expand $SHELL
2397 if eval "$MISSING --run true"; then
2398 am_missing_run="$MISSING --run "
2399 else
2400 am_missing_run=
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2403 fi
2404  
2405 if test x"${install_sh}" != xset; then
2406 case $am_aux_dir in
2407 *\ * | *\ *)
2408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2409 *)
2410 install_sh="\${SHELL} $am_aux_dir/install-sh"
2411 esac
2412 fi
2413  
2414 # Installed binaries are usually stripped using `strip' when the user
2415 # run `make install-strip'. However `strip' might not be the right
2416 # tool to use in cross-compilation environments, therefore Automake
2417 # will honor the `STRIP' environment variable to overrule this program.
2418 if test "$cross_compiling" != no; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}strip; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_STRIP+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test -n "$STRIP"; then
2428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444  
2445 fi
2446 fi
2447 STRIP=$ac_cv_prog_STRIP
2448 if test -n "$STRIP"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2450 $as_echo "$STRIP" >&6; }
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455  
2456  
2457 fi
2458 if test -z "$ac_cv_prog_STRIP"; then
2459 ac_ct_STRIP=$STRIP
2460 # Extract the first word of "strip", so it can be a program name with args.
2461 set dummy strip; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$ac_ct_STRIP"; then
2468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_ac_ct_STRIP="strip"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484  
2485 fi
2486 fi
2487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2488 if test -n "$ac_ct_STRIP"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2490 $as_echo "$ac_ct_STRIP" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495  
2496 if test "x$ac_ct_STRIP" = x; then
2497 STRIP=":"
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 STRIP=$ac_ct_STRIP
2506 fi
2507 else
2508 STRIP="$ac_cv_prog_STRIP"
2509 fi
2510  
2511 fi
2512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2513  
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2515 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2516 if test -z "$MKDIR_P"; then
2517 if test "${ac_cv_path_mkdir+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_prog in mkdir gmkdir; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2529 'mkdir (GNU coreutils) '* | \
2530 'mkdir (coreutils) '* | \
2531 'mkdir (fileutils) '4.1*)
2532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533 break 3;;
2534 esac
2535 done
2536 done
2537 done
2538 IFS=$as_save_IFS
2539  
2540 fi
2541  
2542 if test "${ac_cv_path_mkdir+set}" = set; then
2543 MKDIR_P="$ac_cv_path_mkdir -p"
2544 else
2545 # As a last resort, use the slow shell script. Don't cache a
2546 # value for MKDIR_P within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the value is a relative name.
2549 test -d ./--version && rmdir ./--version
2550 MKDIR_P="$ac_install_sh -d"
2551 fi
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2554 $as_echo "$MKDIR_P" >&6; }
2555  
2556 mkdir_p="$MKDIR_P"
2557 case $mkdir_p in
2558 [\\/$]* | ?:[\\/]*) ;;
2559 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2560 esac
2561  
2562 for ac_prog in gawk mawk nawk awk
2563 do
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_AWK+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$AWK"; then
2572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_AWK="$ac_prog"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588  
2589 fi
2590 fi
2591 AWK=$ac_cv_prog_AWK
2592 if test -n "$AWK"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2594 $as_echo "$AWK" >&6; }
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599  
2600  
2601 test -n "$AWK" && break
2602 done
2603  
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2606 set x ${MAKE-make}
2607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2608 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat >conftest.make <<\_ACEOF
2612 SHELL = /bin/sh
2613 all:
2614 @echo '@@@%%%=$(MAKE)=@@@%%%'
2615 _ACEOF
2616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2618 *@@@%%%=?*=@@@%%%*)
2619 eval ac_cv_prog_make_${ac_make}_set=yes;;
2620 *)
2621 eval ac_cv_prog_make_${ac_make}_set=no;;
2622 esac
2623 rm -f conftest.make
2624 fi
2625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 SET_MAKE=
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 SET_MAKE="MAKE=${MAKE-make}"
2633 fi
2634  
2635 rm -rf .tst 2>/dev/null
2636 mkdir .tst 2>/dev/null
2637 if test -d .tst; then
2638 am__leading_dot=.
2639 else
2640 am__leading_dot=_
2641 fi
2642 rmdir .tst 2>/dev/null
2643  
2644 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2645 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2646 # is not polluted with repeated "-I."
2647 am__isrc=' -I$(srcdir)'
2648 # test to see if srcdir already configured
2649 if test -f $srcdir/config.status; then
2650 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2651 fi
2652 fi
2653  
2654 # test whether we have cygpath
2655 if test -z "$CYGPATH_W"; then
2656 if (cygpath --version) >/dev/null 2>/dev/null; then
2657 CYGPATH_W='cygpath -w'
2658 else
2659 CYGPATH_W=echo
2660 fi
2661 fi
2662  
2663  
2664 # Define the identity of the package.
2665 PACKAGE=sonar
2666 VERSION=0.1
2667  
2668  
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE "$PACKAGE"
2671 _ACEOF
2672  
2673  
2674 cat >>confdefs.h <<_ACEOF
2675 #define VERSION "$VERSION"
2676 _ACEOF
2677  
2678 # Some tools Automake needs.
2679  
2680 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2681  
2682  
2683 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2684  
2685  
2686 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2687  
2688  
2689 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2690  
2691  
2692 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2693  
2694 # We need awk for the "check" target. The system "awk" is bad on
2695 # some platforms.
2696 # Always define AMTAR for backward compatibility.
2697  
2698 AMTAR=${AMTAR-"${am_missing_run}tar"}
2699  
2700 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701  
2702  
2703  
2704  
2705  
2706  
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712  
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743  
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754  
2755  
2756 fi
2757 if test -z "$ac_cv_prog_CC"; then
2758 ac_ct_CC=$CC
2759 # Extract the first word of "gcc", so it can be a program name with args.
2760 set dummy gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783  
2784 fi
2785 fi
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2789 $as_echo "$ac_ct_CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794  
2795 if test "x$ac_ct_CC" = x; then
2796 CC=""
2797 else
2798 case $cross_compiling:$ac_tool_warned in
2799 yes:)
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804 CC=$ac_ct_CC
2805 fi
2806 else
2807 CC="$ac_cv_prog_CC"
2808 fi
2809  
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if test "${ac_cv_prog_CC+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC="${ac_tool_prefix}cc"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836  
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847  
2848  
2849 fi
2850 fi
2851 if test -z "$CC"; then
2852 # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 ac_prog_rejected=no
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871 ac_prog_rejected=yes
2872 continue
2873 fi
2874 ac_cv_prog_CC="cc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881  
2882 if test $ac_prog_rejected = yes; then
2883 # We found a bogon in the path, so make sure we never use it.
2884 set dummy $ac_cv_prog_CC
2885 shift
2886 if test $# != 0; then
2887 # We chose a different compiler from the bogus one.
2888 # However, it has the same basename, so the bogon will be chosen
2889 # first if we set CC to just the basename; use the full file name.
2890 shift
2891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892 fi
2893 fi
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904  
2905  
2906 fi
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl.exe
2910 do
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_CC+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935  
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946  
2947  
2948 test -n "$CC" && break
2949 done
2950 fi
2951 if test -z "$CC"; then
2952 ac_ct_CC=$CC
2953 for ac_prog in cl.exe
2954 do
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_CC="$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979  
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 $as_echo "$ac_ct_CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990  
2991  
2992 test -n "$ac_ct_CC" && break
2993 done
2994  
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CC=$ac_ct_CC
3005 fi
3006 fi
3007  
3008 fi
3009  
3010  
3011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 as_fn_error "no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." "$LINENO" 5; }
3015  
3016 # Provide some information about the compiler.
3017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3018 set X $ac_compile
3019 ac_compiler=$2
3020 for ac_option in --version -v -V -qversion; do
3021 { { ac_try="$ac_compiler $ac_option >&5"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3029 ac_status=$?
3030 if test -s conftest.err; then
3031 sed '10a\
3032 ... rest of stderr output deleted ...
3033 10q' conftest.err >conftest.er1
3034 cat conftest.er1 >&5
3035 rm -f conftest.er1 conftest.err
3036 fi
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }
3039 done
3040  
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3043 #include <stdio.h>
3044 int
3045 main ()
3046 {
3047 FILE *f = fopen ("conftest.out", "w");
3048 return ferror (f) || fclose (f) != 0;
3049  
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 ac_clean_files_save=$ac_clean_files
3055 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3058 # of exeext.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3060 $as_echo_n "checking for C compiler default output file name... " >&6; }
3061 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3062  
3063 # The possible output files:
3064 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3065  
3066 ac_rmfiles=
3067 for ac_file in $ac_files
3068 do
3069 case $ac_file in
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072 esac
3073 done
3074 rm -f $ac_rmfiles
3075  
3076 if { { ac_try="$ac_link_default"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link_default") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3088 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3089 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3090 # so that the user can short-circuit this test for compilers unknown to
3091 # Autoconf.
3092 for ac_file in $ac_files ''
3093 do
3094 test -f "$ac_file" || continue
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3097 ;;
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104 then :; else
3105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106 fi
3107 # We set ac_cv_exeext here because the later test for it is not
3108 # safe: cross compilers may not add the suffix if given an `-o'
3109 # argument, so we may need to know it at that point already.
3110 # Even if this section looks crufty: it has the advantage of
3111 # actually working.
3112 break;;
3113 * )
3114 break;;
3115 esac
3116 done
3117 test "$ac_cv_exeext" = no && ac_cv_exeext=
3118  
3119 else
3120 ac_file=''
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123 $as_echo "$ac_file" >&6; }
3124 if test -z "$ac_file"; then :
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127  
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 { as_fn_set_status 77
3131 as_fn_error "C compiler cannot create executables
3132 See \`config.log' for more details." "$LINENO" 5; }; }
3133 fi
3134 ac_exeext=$ac_cv_exeext
3135  
3136 # Check that the compiler produces executables we can run. If not, either
3137 # the compiler is broken, or we cross compile.
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3139 $as_echo_n "checking whether the C compiler works... " >&6; }
3140 # If not cross compiling, check that we can run a simple program.
3141 if test "$cross_compiling" != yes; then
3142 if { ac_try='./$ac_file'
3143 { { case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; }; then
3153 cross_compiling=no
3154 else
3155 if test "$cross_compiling" = maybe; then
3156 cross_compiling=yes
3157 else
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error "cannot run C compiled programs.
3161 If you meant to cross compile, use \`--host'.
3162 See \`config.log' for more details." "$LINENO" 5; }
3163 fi
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168  
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3170 ac_clean_files=$ac_clean_files_save
3171 # Check that the compiler produces executables we can run. If not, either
3172 # the compiler is broken, or we cross compile.
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3174 $as_echo_n "checking whether we are cross compiling... " >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3176 $as_echo "$cross_compiling" >&6; }
3177  
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3179 $as_echo_n "checking for suffix of executables... " >&6; }
3180 if { { ac_try="$ac_link"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_link") 2>&5
3188 ac_status=$?
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }; then :
3191 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3192 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3193 # work properly (i.e., refer to `conftest.exe'), while it won't with
3194 # `rm'.
3195 for ac_file in conftest.exe conftest conftest.*; do
3196 test -f "$ac_file" || continue
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 break;;
3201 * ) break;;
3202 esac
3203 done
3204 else
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error "cannot compute suffix of executables: cannot compile and link
3208 See \`config.log' for more details." "$LINENO" 5; }
3209 fi
3210 rm -f conftest$ac_cv_exeext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3212 $as_echo "$ac_cv_exeext" >&6; }
3213  
3214 rm -f conftest.$ac_ext
3215 EXEEXT=$ac_cv_exeext
3216 ac_exeext=$EXEEXT
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3218 $as_echo_n "checking for suffix of object files... " >&6; }
3219 if test "${ac_cv_objext+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224  
3225 int
3226 main ()
3227 {
3228  
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.o conftest.obj
3234 if { { ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compile") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 for ac_file in conftest.o conftest.obj conftest.*; do
3246 test -f "$ac_file" || continue;
3247 case $ac_file in
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 break;;
3251 esac
3252 done
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256  
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error "cannot compute suffix of object files: cannot compile
3260 See \`config.log' for more details." "$LINENO" 5; }
3261 fi
3262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3265 $as_echo "$ac_cv_objext" >&6; }
3266 OBJEXT=$ac_cv_objext
3267 ac_objext=$OBJEXT
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3269 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3270 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275  
3276 int
3277 main ()
3278 {
3279 #ifndef __GNUC__
3280 choke me
3281 #endif
3282  
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_compiler_gnu=yes
3289 else
3290 ac_compiler_gnu=no
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294  
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3297 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3298 if test $ac_compiler_gnu = yes; then
3299 GCC=yes
3300 else
3301 GCC=
3302 fi
3303 ac_test_CFLAGS=${CFLAGS+set}
3304 ac_save_CFLAGS=$CFLAGS
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3306 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3307 if test "${ac_cv_prog_cc_g+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 ac_save_c_werror_flag=$ac_c_werror_flag
3311 ac_c_werror_flag=yes
3312 ac_cv_prog_cc_g=no
3313 CFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316  
3317 int
3318 main ()
3319 {
3320  
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 if ac_fn_c_try_compile "$LINENO"; then :
3326 ac_cv_prog_cc_g=yes
3327 else
3328 CFLAGS=""
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331  
3332 int
3333 main ()
3334 {
3335  
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341  
3342 else
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 CFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347  
3348 int
3349 main ()
3350 {
3351  
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_cv_prog_cc_g=yes
3358 fi
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 fi
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_c_werror_flag=$ac_save_c_werror_flag
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3367 $as_echo "$ac_cv_prog_cc_g" >&6; }
3368 if test "$ac_test_CFLAGS" = set; then
3369 CFLAGS=$ac_save_CFLAGS
3370 elif test $ac_cv_prog_cc_g = yes; then
3371 if test "$GCC" = yes; then
3372 CFLAGS="-g -O2"
3373 else
3374 CFLAGS="-g"
3375 fi
3376 else
3377 if test "$GCC" = yes; then
3378 CFLAGS="-O2"
3379 else
3380 CFLAGS=
3381 fi
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3384 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3385 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 ac_cv_prog_cc_c89=no
3389 ac_save_CC=$CC
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3400 char **p;
3401 int i;
3402 {
3403 return p[i];
3404 }
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3406 {
3407 char *s;
3408 va_list v;
3409 va_start (v,p);
3410 s = g (p, va_arg (v,int));
3411 va_end (v);
3412 return s;
3413 }
3414  
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3416 function prototypes and stuff, but not '\xHH' hex character constants.
3417 These don't provoke an error unfortunately, instead are silently treated
3418 as 'x'. The following induces an error, until -std is added to get
3419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3420 array size at least. It's necessary to write '\x00'==0 to get something
3421 that's true only with -std. */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423  
3424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425 inside strings and character constants. */
3426 #define FOO(x) 'x'
3427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3428  
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 int argc;
3434 char **argv;
3435 int
3436 main ()
3437 {
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 do
3446 CC="$ac_save_CC $ac_arg"
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_c89=$ac_arg
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext
3451 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 done
3453 rm -f conftest.$ac_ext
3454 CC=$ac_save_CC
3455  
3456 fi
3457 # AC_CACHE_VAL
3458 case "x$ac_cv_prog_cc_c89" in
3459 x)
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3462 xno)
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3464 $as_echo "unsupported" >&6; } ;;
3465 *)
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469 esac
3470 if test "x$ac_cv_prog_cc_c89" != xno; then :
3471  
3472 fi
3473  
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 DEPDIR="${am__leading_dot}deps"
3480  
3481 ac_config_commands="$ac_config_commands depfiles"
3482  
3483  
3484 am_make=${MAKE-make}
3485 cat > confinc << 'END'
3486 am__doit:
3487 @echo this is the am__doit target
3488 .PHONY: am__doit
3489 END
3490 # If we don't find an include directive, just comment out the code.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3492 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3493 am__include="#"
3494 am__quote=
3495 _am_result=none
3496 # First try GNU make style include.
3497 echo "include confinc" > confmf
3498 # Ignore all kinds of additional output from `make'.
3499 case `$am_make -s -f confmf 2> /dev/null` in #(
3500 *the\ am__doit\ target*)
3501 am__include=include
3502 am__quote=
3503 _am_result=GNU
3504 ;;
3505 esac
3506 # Now try BSD make style include.
3507 if test "$am__include" = "#"; then
3508 echo '.include "confinc"' > confmf
3509 case `$am_make -s -f confmf 2> /dev/null` in #(
3510 *the\ am__doit\ target*)
3511 am__include=.include
3512 am__quote="\""
3513 _am_result=BSD
3514 ;;
3515 esac
3516 fi
3517  
3518  
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3520 $as_echo "$_am_result" >&6; }
3521 rm -f confinc confmf
3522  
3523 # Check whether --enable-dependency-tracking was given.
3524 if test "${enable_dependency_tracking+set}" = set; then :
3525 enableval=$enable_dependency_tracking;
3526 fi
3527  
3528 if test "x$enable_dependency_tracking" != xno; then
3529 am_depcomp="$ac_aux_dir/depcomp"
3530 AMDEPBACKSLASH='\'
3531 fi
3532 if test "x$enable_dependency_tracking" != xno; then
3533 AMDEP_TRUE=
3534 AMDEP_FALSE='#'
3535 else
3536 AMDEP_TRUE='#'
3537 AMDEP_FALSE=
3538 fi
3539  
3540  
3541  
3542 depcc="$CC" am_compiler_list=
3543  
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3545 $as_echo_n "checking dependency style of $depcc... " >&6; }
3546 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3550 # We make a subdir and do the tests there. Otherwise we can end up
3551 # making bogus files that we don't know about and never remove. For
3552 # instance it was reported that on HP-UX the gcc test will end up
3553 # making a dummy file named `D' -- because `-MD' means `put the output
3554 # in D'.
3555 mkdir conftest.dir
3556 # Copy depcomp to subdir because otherwise we won't find it if we're
3557 # using a relative directory.
3558 cp "$am_depcomp" conftest.dir
3559 cd conftest.dir
3560 # We will build objects and dependencies in a subdirectory because
3561 # it helps to detect inapplicable dependency modes. For instance
3562 # both Tru64's cc and ICC support -MD to output dependencies as a
3563 # side effect of compilation, but ICC will put the dependencies in
3564 # the current directory while Tru64 will put them in the object
3565 # directory.
3566 mkdir sub
3567  
3568 am_cv_CC_dependencies_compiler_type=none
3569 if test "$am_compiler_list" = ""; then
3570 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3571 fi
3572 am__universal=false
3573 case " $depcc " in #(
3574 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3575 esac
3576  
3577 for depmode in $am_compiler_list; do
3578 # Setup a source with many dependencies, because some compilers
3579 # like to wrap large dependency lists on column 80 (with \), and
3580 # we should not choose a depcomp mode which is confused by this.
3581 #
3582 # We need to recreate these files for each test, as the compiler may
3583 # overwrite some of them when testing with obscure command lines.
3584 # This happens at least with the AIX C compiler.
3585 : > sub/conftest.c
3586 for i in 1 2 3 4 5 6; do
3587 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3588 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3589 # Solaris 8's {/usr,}/bin/sh.
3590 touch sub/conftst$i.h
3591 done
3592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593  
3594 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3595 # mode. It turns out that the SunPro C++ compiler does not properly
3596 # handle `-M -o', and we need to detect this. Also, some Intel
3597 # versions had trouble with output in subdirs
3598 am__obj=sub/conftest.${OBJEXT-o}
3599 am__minus_obj="-o $am__obj"
3600 case $depmode in
3601 gcc)
3602 # This depmode causes a compiler race in universal mode.
3603 test "$am__universal" = false || continue
3604 ;;
3605 nosideeffect)
3606 # after this tag, mechanisms are not by side-effect, so they'll
3607 # only be used when explicitly requested
3608 if test "x$enable_dependency_tracking" = xyes; then
3609 continue
3610 else
3611 break
3612 fi
3613 ;;
3614 msvisualcpp | msvcmsys)
3615 # This compiler won't grok `-c -o', but also, the minuso test has
3616 # not run yet. These depmodes are late enough in the game, and
3617 # so weak that their functioning should not be impacted.
3618 am__obj=conftest.${OBJEXT-o}
3619 am__minus_obj=
3620 ;;
3621 none) break ;;
3622 esac
3623 if depmode=$depmode \
3624 source=sub/conftest.c object=$am__obj \
3625 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3626 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3627 >/dev/null 2>conftest.err &&
3628 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3629 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3631 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3632 # icc doesn't choke on unknown options, it will just issue warnings
3633 # or remarks (even with -Werror). So we grep stderr for any message
3634 # that says an option was ignored or not supported.
3635 # When given -MP, icc 7.0 and 7.1 complain thusly:
3636 # icc: Command line warning: ignoring option '-M'; no argument required
3637 # The diagnosis changed in icc 8.0:
3638 # icc: Command line remark: option '-MP' not supported
3639 if (grep 'ignoring option' conftest.err ||
3640 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3641 am_cv_CC_dependencies_compiler_type=$depmode
3642 break
3643 fi
3644 fi
3645 done
3646  
3647 cd ..
3648 rm -rf conftest.dir
3649 else
3650 am_cv_CC_dependencies_compiler_type=none
3651 fi
3652  
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3655 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3656 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3657  
3658 if
3659 test "x$enable_dependency_tracking" != xno \
3660 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3661 am__fastdepCC_TRUE=
3662 am__fastdepCC_FALSE='#'
3663 else
3664 am__fastdepCC_TRUE='#'
3665 am__fastdepCC_FALSE=
3666 fi
3667  
3668  
3669 case `pwd` in
3670 *\ * | *\ *)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3672 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3673 esac
3674  
3675  
3676  
3677 macro_version='2.2.6'
3678 macro_revision='1.3012'
3679  
3680  
3681  
3682  
3683  
3684  
3685  
3686  
3687  
3688  
3689  
3690  
3691  
3692 ltmain="$ac_aux_dir/ltmain.sh"
3693  
3694 # Make sure we can run config.sub.
3695 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3696 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3697  
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3699 $as_echo_n "checking build system type... " >&6; }
3700 if test "${ac_cv_build+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 ac_build_alias=$build_alias
3704 test "x$ac_build_alias" = x &&
3705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3706 test "x$ac_build_alias" = x &&
3707 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3708 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3709 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3710  
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3713 $as_echo "$ac_cv_build" >&6; }
3714 case $ac_cv_build in
3715 *-*-*) ;;
3716 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3717 esac
3718 build=$ac_cv_build
3719 ac_save_IFS=$IFS; IFS='-'
3720 set x $ac_cv_build
3721 shift
3722 build_cpu=$1
3723 build_vendor=$2
3724 shift; shift
3725 # Remember, the first character of IFS is used to create $*,
3726 # except with old shells:
3727 build_os=$*
3728 IFS=$ac_save_IFS
3729 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3730  
3731  
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3733 $as_echo_n "checking host system type... " >&6; }
3734 if test "${ac_cv_host+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test "x$host_alias" = x; then
3738 ac_cv_host=$ac_cv_build
3739 else
3740 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3741 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3742 fi
3743  
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3746 $as_echo "$ac_cv_host" >&6; }
3747 case $ac_cv_host in
3748 *-*-*) ;;
3749 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3750 esac
3751 host=$ac_cv_host
3752 ac_save_IFS=$IFS; IFS='-'
3753 set x $ac_cv_host
3754 shift
3755 host_cpu=$1
3756 host_vendor=$2
3757 shift; shift
3758 # Remember, the first character of IFS is used to create $*,
3759 # except with old shells:
3760 host_os=$*
3761 IFS=$ac_save_IFS
3762 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3763  
3764  
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3766 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3767 if test "${ac_cv_path_SED+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3771 for ac_i in 1 2 3 4 5 6 7; do
3772 ac_script="$ac_script$as_nl$ac_script"
3773 done
3774 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3775 { ac_script=; unset ac_script;}
3776 if test -z "$SED"; then
3777 ac_path_SED_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in sed gsed; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3787 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3788 # Check for GNU ac_path_SED and select it if it is found.
3789 # Check for GNU $ac_path_SED
3790 case `"$ac_path_SED" --version 2>&1` in
3791 *GNU*)
3792 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3793 *)
3794 ac_count=0
3795 $as_echo_n 0123456789 >"conftest.in"
3796 while :
3797 do
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 $as_echo '' >> "conftest.nl"
3802 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_SED_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_SED="$ac_path_SED"
3808 ac_path_SED_max=$ac_count
3809 fi
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3812 done
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815  
3816 $ac_path_SED_found && break 3
3817 done
3818 done
3819 done
3820 IFS=$as_save_IFS
3821 if test -z "$ac_cv_path_SED"; then
3822 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3823 fi
3824 else
3825 ac_cv_path_SED=$SED
3826 fi
3827  
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3830 $as_echo "$ac_cv_path_SED" >&6; }
3831 SED="$ac_cv_path_SED"
3832 rm -f conftest.sed
3833  
3834 test -z "$SED" && SED=sed
3835 Xsed="$SED -e 1s/^X//"
3836  
3837  
3838  
3839  
3840  
3841  
3842  
3843  
3844  
3845  
3846  
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3848 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3849 if test "${ac_cv_path_GREP+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 if test -z "$GREP"; then
3853 ac_path_GREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857 do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in grep ggrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3864 # Check for GNU ac_path_GREP and select it if it is found.
3865 # Check for GNU $ac_path_GREP
3866 case `"$ac_path_GREP" --version 2>&1` in
3867 *GNU*)
3868 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3869 *)
3870 ac_count=0
3871 $as_echo_n 0123456789 >"conftest.in"
3872 while :
3873 do
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 $as_echo 'GREP' >> "conftest.nl"
3878 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 as_fn_arith $ac_count + 1 && ac_count=$as_val
3881 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_GREP="$ac_path_GREP"
3884 ac_path_GREP_max=$ac_count
3885 fi
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 esac
3891  
3892 $ac_path_GREP_found && break 3
3893 done
3894 done
3895 done
3896 IFS=$as_save_IFS
3897 if test -z "$ac_cv_path_GREP"; then
3898 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3899 fi
3900 else
3901 ac_cv_path_GREP=$GREP
3902 fi
3903  
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3906 $as_echo "$ac_cv_path_GREP" >&6; }
3907 GREP="$ac_cv_path_GREP"
3908  
3909  
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3911 $as_echo_n "checking for egrep... " >&6; }
3912 if test "${ac_cv_path_EGREP+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3916 then ac_cv_path_EGREP="$GREP -E"
3917 else
3918 if test -z "$EGREP"; then
3919 ac_path_EGREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in egrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3930 # Check for GNU ac_path_EGREP and select it if it is found.
3931 # Check for GNU $ac_path_EGREP
3932 case `"$ac_path_EGREP" --version 2>&1` in
3933 *GNU*)
3934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3935 *)
3936 ac_count=0
3937 $as_echo_n 0123456789 >"conftest.in"
3938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 $as_echo 'EGREP' >> "conftest.nl"
3944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 as_fn_arith $ac_count + 1 && ac_count=$as_val
3947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_EGREP="$ac_path_EGREP"
3950 ac_path_EGREP_max=$ac_count
3951 fi
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957  
3958 $ac_path_EGREP_found && break 3
3959 done
3960 done
3961 done
3962 IFS=$as_save_IFS
3963 if test -z "$ac_cv_path_EGREP"; then
3964 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3965 fi
3966 else
3967 ac_cv_path_EGREP=$EGREP
3968 fi
3969  
3970 fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3973 $as_echo "$ac_cv_path_EGREP" >&6; }
3974 EGREP="$ac_cv_path_EGREP"
3975  
3976  
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3978 $as_echo_n "checking for fgrep... " >&6; }
3979 if test "${ac_cv_path_FGREP+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3983 then ac_cv_path_FGREP="$GREP -F"
3984 else
3985 if test -z "$FGREP"; then
3986 ac_path_FGREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in fgrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3997 # Check for GNU ac_path_FGREP and select it if it is found.
3998 # Check for GNU $ac_path_FGREP
3999 case `"$ac_path_FGREP" --version 2>&1` in
4000 *GNU*)
4001 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4002 *)
4003 ac_count=0
4004 $as_echo_n 0123456789 >"conftest.in"
4005 while :
4006 do
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 $as_echo 'FGREP' >> "conftest.nl"
4011 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 as_fn_arith $ac_count + 1 && ac_count=$as_val
4014 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_FGREP="$ac_path_FGREP"
4017 ac_path_FGREP_max=$ac_count
4018 fi
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4021 done
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024  
4025 $ac_path_FGREP_found && break 3
4026 done
4027 done
4028 done
4029 IFS=$as_save_IFS
4030 if test -z "$ac_cv_path_FGREP"; then
4031 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4032 fi
4033 else
4034 ac_cv_path_FGREP=$FGREP
4035 fi
4036  
4037 fi
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4040 $as_echo "$ac_cv_path_FGREP" >&6; }
4041 FGREP="$ac_cv_path_FGREP"
4042  
4043  
4044 test -z "$GREP" && GREP=grep
4045  
4046  
4047  
4048  
4049  
4050  
4051  
4052  
4053  
4054  
4055  
4056  
4057  
4058  
4059  
4060  
4061  
4062  
4063  
4064 # Check whether --with-gnu-ld was given.
4065 if test "${with_gnu_ld+set}" = set; then :
4066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4067 else
4068 with_gnu_ld=no
4069 fi
4070  
4071 ac_prog=ld
4072 if test "$GCC" = yes; then
4073 # Check if gcc -print-prog-name=ld gives a path.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4075 $as_echo_n "checking for ld used by $CC... " >&6; }
4076 case $host in
4077 *-*-mingw*)
4078 # gcc leaves a trailing carriage return which upsets mingw
4079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4080 *)
4081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4082 esac
4083 case $ac_prog in
4084 # Accept absolute paths.
4085 [\\/]* | ?:[\\/]*)
4086 re_direlt='/[^/][^/]*/\.\./'
4087 # Canonicalize the pathname of ld
4088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4091 done
4092 test -z "$LD" && LD="$ac_prog"
4093 ;;
4094 "")
4095 # If it fails, then pretend we aren't using GCC.
4096 ac_prog=ld
4097 ;;
4098 *)
4099 # If it is relative, then search for the first ld in PATH.
4100 with_gnu_ld=unknown
4101 ;;
4102 esac
4103 elif test "$with_gnu_ld" = yes; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4105 $as_echo_n "checking for GNU ld... " >&6; }
4106 else
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4108 $as_echo_n "checking for non-GNU ld... " >&6; }
4109 fi
4110 if test "${lt_cv_path_LD+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -z "$LD"; then
4114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4115 for ac_dir in $PATH; do
4116 IFS="$lt_save_ifs"
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119 lt_cv_path_LD="$ac_dir/$ac_prog"
4120 # Check to see if the program is GNU ld. I'd rather use --version,
4121 # but apparently some variants of GNU ld only accept -v.
4122 # Break only if it was the GNU/non-GNU ld that we prefer.
4123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4124 *GNU* | *'with BFD'*)
4125 test "$with_gnu_ld" != no && break
4126 ;;
4127 *)
4128 test "$with_gnu_ld" != yes && break
4129 ;;
4130 esac
4131 fi
4132 done
4133 IFS="$lt_save_ifs"
4134 else
4135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4136 fi
4137 fi
4138  
4139 LD="$lt_cv_path_LD"
4140 if test -n "$LD"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4142 $as_echo "$LD" >&6; }
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4149 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4150 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4154 case `$LD -v 2>&1 </dev/null` in
4155 *GNU* | *'with BFD'*)
4156 lt_cv_prog_gnu_ld=yes
4157 ;;
4158 *)
4159 lt_cv_prog_gnu_ld=no
4160 ;;
4161 esac
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4164 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4165 with_gnu_ld=$lt_cv_prog_gnu_ld
4166  
4167  
4168  
4169  
4170  
4171  
4172  
4173  
4174  
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4176 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4177 if test "${lt_cv_path_NM+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$NM"; then
4181 # Let the user override the test.
4182 lt_cv_path_NM="$NM"
4183 else
4184 lt_nm_to_check="${ac_tool_prefix}nm"
4185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4186 lt_nm_to_check="$lt_nm_to_check nm"
4187 fi
4188 for lt_tmp_nm in $lt_nm_to_check; do
4189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4191 IFS="$lt_save_ifs"
4192 test -z "$ac_dir" && ac_dir=.
4193 tmp_nm="$ac_dir/$lt_tmp_nm"
4194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4195 # Check to see if the nm accepts a BSD-compat flag.
4196 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4197 # nm: unknown option "B" ignored
4198 # Tru64's nm complains that /dev/null is an invalid object file
4199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4200 */dev/null* | *'Invalid file or object type'*)
4201 lt_cv_path_NM="$tmp_nm -B"
4202 break
4203 ;;
4204 *)
4205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4206 */dev/null*)
4207 lt_cv_path_NM="$tmp_nm -p"
4208 break
4209 ;;
4210 *)
4211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4212 continue # so that we can try to find one that supports BSD flags
4213 ;;
4214 esac
4215 ;;
4216 esac
4217 fi
4218 done
4219 IFS="$lt_save_ifs"
4220 done
4221 : ${lt_cv_path_NM=no}
4222 fi
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4225 $as_echo "$lt_cv_path_NM" >&6; }
4226 if test "$lt_cv_path_NM" != "no"; then
4227 NM="$lt_cv_path_NM"
4228 else
4229 # Didn't find any BSD compatible name lister, look for dumpbin.
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4232 do
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$DUMPBIN"; then
4241 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257  
4258 fi
4259 fi
4260 DUMPBIN=$ac_cv_prog_DUMPBIN
4261 if test -n "$DUMPBIN"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4263 $as_echo "$DUMPBIN" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268  
4269  
4270 test -n "$DUMPBIN" && break
4271 done
4272 fi
4273 if test -z "$DUMPBIN"; then
4274 ac_ct_DUMPBIN=$DUMPBIN
4275 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4276 do
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test -n "$ac_ct_DUMPBIN"; then
4285 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301  
4302 fi
4303 fi
4304 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4305 if test -n "$ac_ct_DUMPBIN"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4307 $as_echo "$ac_ct_DUMPBIN" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312  
4313  
4314 test -n "$ac_ct_DUMPBIN" && break
4315 done
4316  
4317 if test "x$ac_ct_DUMPBIN" = x; then
4318 DUMPBIN=":"
4319 else
4320 case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326 DUMPBIN=$ac_ct_DUMPBIN
4327 fi
4328 fi
4329  
4330  
4331 if test "$DUMPBIN" != ":"; then
4332 NM="$DUMPBIN"
4333 fi
4334 fi
4335 test -z "$NM" && NM=nm
4336  
4337  
4338  
4339  
4340  
4341  
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4343 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4344 if test "${lt_cv_nm_interface+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 lt_cv_nm_interface="BSD nm"
4348 echo "int some_variable = 0;" > conftest.$ac_ext
4349 (eval echo "\"\$as_me:4349: $ac_compile\"" >&5)
4350 (eval "$ac_compile" 2>conftest.err)
4351 cat conftest.err >&5
4352 (eval echo "\"\$as_me:4352: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4353 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4354 cat conftest.err >&5
4355 (eval echo "\"\$as_me:4355: output\"" >&5)
4356 cat conftest.out >&5
4357 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4358 lt_cv_nm_interface="MS dumpbin"
4359 fi
4360 rm -f conftest*
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4363 $as_echo "$lt_cv_nm_interface" >&6; }
4364  
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4366 $as_echo_n "checking whether ln -s works... " >&6; }
4367 LN_S=$as_ln_s
4368 if test "$LN_S" = "ln -s"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4373 $as_echo "no, using $LN_S" >&6; }
4374 fi
4375  
4376 # find the maximum length of command line arguments
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4378 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 i=0
4383 teststring="ABCD"
4384  
4385 case $build_os in
4386 msdosdjgpp*)
4387 # On DJGPP, this test can blow up pretty badly due to problems in libc
4388 # (any single argument exceeding 2000 bytes causes a buffer overrun
4389 # during glob expansion). Even if it were fixed, the result of this
4390 # check would be larger than it should be.
4391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4392 ;;
4393  
4394 gnu*)
4395 # Under GNU Hurd, this test is not required because there is
4396 # no limit to the length of command line arguments.
4397 # Libtool will interpret -1 as no limit whatsoever
4398 lt_cv_sys_max_cmd_len=-1;
4399 ;;
4400  
4401 cygwin* | mingw* | cegcc*)
4402 # On Win9x/ME, this test blows up -- it succeeds, but takes
4403 # about 5 minutes as the teststring grows exponentially.
4404 # Worse, since 9x/ME are not pre-emptively multitasking,
4405 # you end up with a "frozen" computer, even though with patience
4406 # the test eventually succeeds (with a max line length of 256k).
4407 # Instead, let's just punt: use the minimum linelength reported by
4408 # all of the supported platforms: 8192 (on NT/2K/XP).
4409 lt_cv_sys_max_cmd_len=8192;
4410 ;;
4411  
4412 amigaos*)
4413 # On AmigaOS with pdksh, this test takes hours, literally.
4414 # So we just punt and use a minimum line length of 8192.
4415 lt_cv_sys_max_cmd_len=8192;
4416 ;;
4417  
4418 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4419 # This has been around since 386BSD, at least. Likely further.
4420 if test -x /sbin/sysctl; then
4421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4422 elif test -x /usr/sbin/sysctl; then
4423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4424 else
4425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4426 fi
4427 # And add a safety zone
4428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4430 ;;
4431  
4432 interix*)
4433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4434 lt_cv_sys_max_cmd_len=196608
4435 ;;
4436  
4437 osf*)
4438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4440 # nice to cause kernel panics so lets avoid the loop below.
4441 # First set a reasonable default.
4442 lt_cv_sys_max_cmd_len=16384
4443 #
4444 if test -x /sbin/sysconfig; then
4445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4446 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4447 esac
4448 fi
4449 ;;
4450 sco3.2v5*)
4451 lt_cv_sys_max_cmd_len=102400
4452 ;;
4453 sysv5* | sco5v6* | sysv4.2uw2*)
4454 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4455 if test -n "$kargmax"; then
4456 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4457 else
4458 lt_cv_sys_max_cmd_len=32768
4459 fi
4460 ;;
4461 *)
4462 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4463 if test -n "$lt_cv_sys_max_cmd_len"; then
4464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4466 else
4467 # Make teststring a little bigger before we do anything with it.
4468 # a 1K string should be a reasonable start.
4469 for i in 1 2 3 4 5 6 7 8 ; do
4470 teststring=$teststring$teststring
4471 done
4472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4473 # If test is not a shell built-in, we'll probably end up computing a
4474 # maximum length that is only half of the actual maximum length, but
4475 # we can't tell.
4476 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4477 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4478 test $i != 17 # 1/2 MB should be enough
4479 do
4480 i=`expr $i + 1`
4481 teststring=$teststring$teststring
4482 done
4483 # Only check the string length outside the loop.
4484 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4485 teststring=
4486 # Add a significant safety factor because C++ compilers can tack on
4487 # massive amounts of additional arguments before passing them to the
4488 # linker. It appears as though 1/2 is a usable value.
4489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4490 fi
4491 ;;
4492 esac
4493  
4494 fi
4495  
4496 if test -n $lt_cv_sys_max_cmd_len ; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4498 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4499 else
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4501 $as_echo "none" >&6; }
4502 fi
4503 max_cmd_len=$lt_cv_sys_max_cmd_len
4504  
4505  
4506  
4507  
4508  
4509  
4510 : ${CP="cp -f"}
4511 : ${MV="mv -f"}
4512 : ${RM="rm -f"}
4513  
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4515 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4516 # Try some XSI features
4517 xsi_shell=no
4518 ( _lt_dummy="a/b/c"
4519 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4520 = c,a/b,, \
4521 && eval 'test $(( 1 + 1 )) -eq 2 \
4522 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4523 && xsi_shell=yes
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4525 $as_echo "$xsi_shell" >&6; }
4526  
4527  
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4529 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4530 lt_shell_append=no
4531 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4532 >/dev/null 2>&1 \
4533 && lt_shell_append=yes
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4535 $as_echo "$lt_shell_append" >&6; }
4536  
4537  
4538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4539 lt_unset=unset
4540 else
4541 lt_unset=false
4542 fi
4543  
4544  
4545  
4546  
4547  
4548 # test EBCDIC or ASCII
4549 case `echo X|tr X '\101'` in
4550 A) # ASCII based system
4551 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4552 lt_SP2NL='tr \040 \012'
4553 lt_NL2SP='tr \015\012 \040\040'
4554 ;;
4555 *) # EBCDIC based system
4556 lt_SP2NL='tr \100 \n'
4557 lt_NL2SP='tr \r\n \100\100'
4558 ;;
4559 esac
4560  
4561  
4562  
4563  
4564  
4565  
4566  
4567  
4568  
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4570 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4571 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 lt_cv_ld_reload_flag='-r'
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4577 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4578 reload_flag=$lt_cv_ld_reload_flag
4579 case $reload_flag in
4580 "" | " "*) ;;
4581 *) reload_flag=" $reload_flag" ;;
4582 esac
4583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4584 case $host_os in
4585 darwin*)
4586 if test "$GCC" = yes; then
4587 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4588 else
4589 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4590 fi
4591 ;;
4592 esac
4593  
4594  
4595  
4596  
4597  
4598  
4599  
4600  
4601  
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$OBJDUMP"; then
4611 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627  
4628 fi
4629 fi
4630 OBJDUMP=$ac_cv_prog_OBJDUMP
4631 if test -n "$OBJDUMP"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4633 $as_echo "$OBJDUMP" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638  
4639  
4640 fi
4641 if test -z "$ac_cv_prog_OBJDUMP"; then
4642 ac_ct_OBJDUMP=$OBJDUMP
4643 # Extract the first word of "objdump", so it can be a program name with args.
4644 set dummy objdump; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$ac_ct_OBJDUMP"; then
4651 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667  
4668 fi
4669 fi
4670 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4671 if test -n "$ac_ct_OBJDUMP"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4673 $as_echo "$ac_ct_OBJDUMP" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678  
4679 if test "x$ac_ct_OBJDUMP" = x; then
4680 OBJDUMP="false"
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 OBJDUMP=$ac_ct_OBJDUMP
4689 fi
4690 else
4691 OBJDUMP="$ac_cv_prog_OBJDUMP"
4692 fi
4693  
4694 test -z "$OBJDUMP" && OBJDUMP=objdump
4695  
4696  
4697  
4698  
4699  
4700  
4701  
4702  
4703  
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4705 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4706 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 lt_cv_file_magic_cmd='$MAGIC_CMD'
4710 lt_cv_file_magic_test_file=
4711 lt_cv_deplibs_check_method='unknown'
4712 # Need to set the preceding variable on all platforms that support
4713 # interlibrary dependencies.
4714 # 'none' -- dependencies not supported.
4715 # `unknown' -- same as none, but documents that we really don't know.
4716 # 'pass_all' -- all dependencies passed with no checks.
4717 # 'test_compile' -- check by making test program.
4718 # 'file_magic [[regex]]' -- check by looking for files in library path
4719 # which responds to the $file_magic_cmd with a given extended regex.
4720 # If you have `file' or equivalent on your system and you're not sure
4721 # whether `pass_all' will *always* work, you probably want this one.
4722  
4723 case $host_os in
4724 aix[4-9]*)
4725 lt_cv_deplibs_check_method=pass_all
4726 ;;
4727  
4728 beos*)
4729 lt_cv_deplibs_check_method=pass_all
4730 ;;
4731  
4732 bsdi[45]*)
4733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4734 lt_cv_file_magic_cmd='/usr/bin/file -L'
4735 lt_cv_file_magic_test_file=/shlib/libc.so
4736 ;;
4737  
4738 cygwin*)
4739 # func_win32_libid is a shell function defined in ltmain.sh
4740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4741 lt_cv_file_magic_cmd='func_win32_libid'
4742 ;;
4743  
4744 mingw* | pw32*)
4745 # Base MSYS/MinGW do not provide the 'file' command needed by
4746 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4747 # unless we find 'file', for example because we are cross-compiling.
4748 if ( file / ) >/dev/null 2>&1; then
4749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4750 lt_cv_file_magic_cmd='func_win32_libid'
4751 else
4752 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4753 lt_cv_file_magic_cmd='$OBJDUMP -f'
4754 fi
4755 ;;
4756  
4757 cegcc)
4758 # use the weaker test based on 'objdump'. See mingw*.
4759 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4760 lt_cv_file_magic_cmd='$OBJDUMP -f'
4761 ;;
4762  
4763 darwin* | rhapsody*)
4764 lt_cv_deplibs_check_method=pass_all
4765 ;;
4766  
4767 freebsd* | dragonfly*)
4768 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4769 case $host_cpu in
4770 i*86 )
4771 # Not sure whether the presence of OpenBSD here was a mistake.
4772 # Let's accept both of them until this is cleared up.
4773 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4774 lt_cv_file_magic_cmd=/usr/bin/file
4775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4776 ;;
4777 esac
4778 else
4779 lt_cv_deplibs_check_method=pass_all
4780 fi
4781 ;;
4782  
4783 gnu*)
4784 lt_cv_deplibs_check_method=pass_all
4785 ;;
4786  
4787 hpux10.20* | hpux11*)
4788 lt_cv_file_magic_cmd=/usr/bin/file
4789 case $host_cpu in
4790 ia64*)
4791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4792 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4793 ;;
4794 hppa*64*)
4795 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]'
4796 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4797 ;;
4798 *)
4799 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4800 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4801 ;;
4802 esac
4803 ;;
4804  
4805 interix[3-9]*)
4806 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4808 ;;
4809  
4810 irix5* | irix6* | nonstopux*)
4811 case $LD in
4812 *-32|*"-32 ") libmagic=32-bit;;
4813 *-n32|*"-n32 ") libmagic=N32;;
4814 *-64|*"-64 ") libmagic=64-bit;;
4815 *) libmagic=never-match;;
4816 esac
4817 lt_cv_deplibs_check_method=pass_all
4818 ;;
4819  
4820 # This must be Linux ELF.
4821 linux* | k*bsd*-gnu)
4822 lt_cv_deplibs_check_method=pass_all
4823 ;;
4824  
4825 netbsd* | netbsdelf*-gnu)
4826 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4828 else
4829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4830 fi
4831 ;;
4832  
4833 newos6*)
4834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4835 lt_cv_file_magic_cmd=/usr/bin/file
4836 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4837 ;;
4838  
4839 *nto* | *qnx*)
4840 lt_cv_deplibs_check_method=pass_all
4841 ;;
4842  
4843 openbsd*)
4844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4846 else
4847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4848 fi
4849 ;;
4850  
4851 osf3* | osf4* | osf5*)
4852 lt_cv_deplibs_check_method=pass_all
4853 ;;
4854  
4855 rdos*)
4856 lt_cv_deplibs_check_method=pass_all
4857 ;;
4858  
4859 solaris*)
4860 lt_cv_deplibs_check_method=pass_all
4861 ;;
4862  
4863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4864 lt_cv_deplibs_check_method=pass_all
4865 ;;
4866  
4867 sysv4 | sysv4.3*)
4868 case $host_vendor in
4869 motorola)
4870 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]'
4871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4872 ;;
4873 ncr)
4874 lt_cv_deplibs_check_method=pass_all
4875 ;;
4876 sequent)
4877 lt_cv_file_magic_cmd='/bin/file'
4878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4879 ;;
4880 sni)
4881 lt_cv_file_magic_cmd='/bin/file'
4882 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4883 lt_cv_file_magic_test_file=/lib/libc.so
4884 ;;
4885 siemens)
4886 lt_cv_deplibs_check_method=pass_all
4887 ;;
4888 pc)
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
4891 esac
4892 ;;
4893  
4894 tpf*)
4895 lt_cv_deplibs_check_method=pass_all
4896 ;;
4897 esac
4898  
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4901 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4902 file_magic_cmd=$lt_cv_file_magic_cmd
4903 deplibs_check_method=$lt_cv_deplibs_check_method
4904 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4905  
4906  
4907  
4908  
4909  
4910  
4911  
4912  
4913  
4914  
4915  
4916  
4917 if test -n "$ac_tool_prefix"; then
4918 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4919 set dummy ${ac_tool_prefix}ar; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_AR+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$AR"; then
4926 ac_cv_prog_AR="$AR" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_AR="${ac_tool_prefix}ar"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942  
4943 fi
4944 fi
4945 AR=$ac_cv_prog_AR
4946 if test -n "$AR"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4948 $as_echo "$AR" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953  
4954  
4955 fi
4956 if test -z "$ac_cv_prog_AR"; then
4957 ac_ct_AR=$AR
4958 # Extract the first word of "ar", so it can be a program name with args.
4959 set dummy ar; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$ac_ct_AR"; then
4966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_ac_ct_AR="ar"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4978 fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982  
4983 fi
4984 fi
4985 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4986 if test -n "$ac_ct_AR"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4988 $as_echo "$ac_ct_AR" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993  
4994 if test "x$ac_ct_AR" = x; then
4995 AR="false"
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 AR=$ac_ct_AR
5004 fi
5005 else
5006 AR="$ac_cv_prog_AR"
5007 fi
5008  
5009 test -z "$AR" && AR=ar
5010 test -z "$AR_FLAGS" && AR_FLAGS=cru
5011  
5012  
5013  
5014  
5015  
5016  
5017  
5018  
5019  
5020  
5021  
5022 if test -n "$ac_tool_prefix"; then
5023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5024 set dummy ${ac_tool_prefix}strip; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if test "${ac_cv_prog_STRIP+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$STRIP"; then
5031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047  
5048 fi
5049 fi
5050 STRIP=$ac_cv_prog_STRIP
5051 if test -n "$STRIP"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5053 $as_echo "$STRIP" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 fi
5058  
5059  
5060 fi
5061 if test -z "$ac_cv_prog_STRIP"; then
5062 ac_ct_STRIP=$STRIP
5063 # Extract the first word of "strip", so it can be a program name with args.
5064 set dummy strip; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$ac_ct_STRIP"; then
5071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_prog_ac_ct_STRIP="strip"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087  
5088 fi
5089 fi
5090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5091 if test -n "$ac_ct_STRIP"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5093 $as_echo "$ac_ct_STRIP" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098  
5099 if test "x$ac_ct_STRIP" = x; then
5100 STRIP=":"
5101 else
5102 case $cross_compiling:$ac_tool_warned in
5103 yes:)
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106 ac_tool_warned=yes ;;
5107 esac
5108 STRIP=$ac_ct_STRIP
5109 fi
5110 else
5111 STRIP="$ac_cv_prog_STRIP"
5112 fi
5113  
5114 test -z "$STRIP" && STRIP=:
5115  
5116  
5117  
5118  
5119  
5120  
5121 if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$RANLIB"; then
5130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5142 fi
5143 done
5144 done
5145 IFS=$as_save_IFS
5146  
5147 fi
5148 fi
5149 RANLIB=$ac_cv_prog_RANLIB
5150 if test -n "$RANLIB"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5152 $as_echo "$RANLIB" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157  
5158  
5159 fi
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_ac_ct_RANLIB="ranlib"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186  
5187 fi
5188 fi
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5192 $as_echo "$ac_ct_RANLIB" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 fi
5197  
5198 if test "x$ac_ct_RANLIB" = x; then
5199 RANLIB=":"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207 RANLIB=$ac_ct_RANLIB
5208 fi
5209 else
5210 RANLIB="$ac_cv_prog_RANLIB"
5211 fi
5212  
5213 test -z "$RANLIB" && RANLIB=:
5214  
5215  
5216  
5217  
5218  
5219  
5220 # Determine commands to create old-style static archives.
5221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5222 old_postinstall_cmds='chmod 644 $oldlib'
5223 old_postuninstall_cmds=
5224  
5225 if test -n "$RANLIB"; then
5226 case $host_os in
5227 openbsd*)
5228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5229 ;;
5230 *)
5231 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5232 ;;
5233 esac
5234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5235 fi
5236  
5237  
5238  
5239  
5240  
5241  
5242  
5243  
5244  
5245  
5246  
5247  
5248  
5249  
5250  
5251  
5252  
5253  
5254  
5255  
5256  
5257  
5258  
5259  
5260  
5261  
5262  
5263  
5264  
5265  
5266  
5267  
5268  
5269  
5270 # If no C compiler was specified, use CC.
5271 LTCC=${LTCC-"$CC"}
5272  
5273 # If no C compiler flags were specified, use CFLAGS.
5274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5275  
5276 # Allow CC to be a program name with arguments.
5277 compiler=$CC
5278  
5279  
5280 # Check for command to grab the raw symbol name followed by C symbol from nm.
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5283 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286  
5287 # These are sane defaults that work on at least a few old systems.
5288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5289  
5290 # Character class describing NM global symbol codes.
5291 symcode='[BCDEGRST]'
5292  
5293 # Regexp to match symbols that can be accessed directly from C.
5294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5295  
5296 # Define system-specific variables.
5297 case $host_os in
5298 aix*)
5299 symcode='[BCDT]'
5300 ;;
5301 cygwin* | mingw* | pw32* | cegcc*)
5302 symcode='[ABCDGISTW]'
5303 ;;
5304 hpux*)
5305 if test "$host_cpu" = ia64; then
5306 symcode='[ABCDEGRST]'
5307 fi
5308 ;;
5309 irix* | nonstopux*)
5310 symcode='[BCDEGRST]'
5311 ;;
5312 osf*)
5313 symcode='[BCDEGQRST]'
5314 ;;
5315 solaris*)
5316 symcode='[BDRT]'
5317 ;;
5318 sco3.2v5*)
5319 symcode='[DT]'
5320 ;;
5321 sysv4.2uw2*)
5322 symcode='[DT]'
5323 ;;
5324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5325 symcode='[ABDT]'
5326 ;;
5327 sysv4)
5328 symcode='[DFNSTU]'
5329 ;;
5330 esac
5331  
5332 # If we're using GNU nm, then use its standard symbol codes.
5333 case `$NM -V 2>&1` in
5334 *GNU* | *'with BFD'*)
5335 symcode='[ABCDGIRSTW]' ;;
5336 esac
5337  
5338 # Transform an extracted symbol line into a proper C declaration.
5339 # Some systems (esp. on ia64) link data and code symbols differently,
5340 # so use this general approach.
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342  
5343 # Transform an extracted symbol line into symbol name and symbol address
5344 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5345 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'"
5346  
5347 # Handle CRLF in mingw tool chain
5348 opt_cr=
5349 case $build_os in
5350 mingw*)
5351 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5352 ;;
5353 esac
5354  
5355 # Try without a prefix underscore, then with it.
5356 for ac_symprfx in "" "_"; do
5357  
5358 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5359 symxfrm="\\1 $ac_symprfx\\2 \\2"
5360  
5361 # Write the raw and C identifiers.
5362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5363 # Fake it for dumpbin and say T for any non-static function
5364 # and D for any global variable.
5365 # Also find C++ and __fastcall symbols from MSVC++,
5366 # which start with @ or ?.
5367 lt_cv_sys_global_symbol_pipe="$AWK '"\
5368 " {last_section=section; section=\$ 3};"\
5369 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5370 " \$ 0!~/External *\|/{next};"\
5371 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5372 " {if(hide[section]) next};"\
5373 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5374 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5375 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5376 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5377 " ' prfx=^$ac_symprfx"
5378 else
5379 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5380 fi
5381  
5382 # Check to see that the pipe works correctly.
5383 pipe_works=no
5384  
5385 rm -f conftest*
5386 cat > conftest.$ac_ext <<_LT_EOF
5387 #ifdef __cplusplus
5388 extern "C" {
5389 #endif
5390 char nm_test_var;
5391 void nm_test_func(void);
5392 void nm_test_func(void){}
5393 #ifdef __cplusplus
5394 }
5395 #endif
5396 int main(){nm_test_var='a';nm_test_func();return(0);}
5397 _LT_EOF
5398  
5399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5400 (eval $ac_compile) 2>&5
5401 ac_status=$?
5402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5403 test $ac_status = 0; }; then
5404 # Now try to grab the symbols.
5405 nlist=conftest.nm
5406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5407 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5408 ac_status=$?
5409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; } && test -s "$nlist"; then
5411 # Try sorting and uniquifying the output.
5412 if sort "$nlist" | uniq > "$nlist"T; then
5413 mv -f "$nlist"T "$nlist"
5414 else
5415 rm -f "$nlist"T
5416 fi
5417  
5418 # Make sure that we snagged all the symbols we need.
5419 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5420 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5421 cat <<_LT_EOF > conftest.$ac_ext
5422 #ifdef __cplusplus
5423 extern "C" {
5424 #endif
5425  
5426 _LT_EOF
5427 # Now generate the symbol file.
5428 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5429  
5430 cat <<_LT_EOF >> conftest.$ac_ext
5431  
5432 /* The mapping between symbol names and symbols. */
5433 const struct {
5434 const char *name;
5435 void *address;
5436 }
5437 lt__PROGRAM__LTX_preloaded_symbols[] =
5438 {
5439 { "@PROGRAM@", (void *) 0 },
5440 _LT_EOF
5441 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5442 cat <<\_LT_EOF >> conftest.$ac_ext
5443 {0, (void *) 0}
5444 };
5445  
5446 /* This works around a problem in FreeBSD linker */
5447 #ifdef FREEBSD_WORKAROUND
5448 static const void *lt_preloaded_setup() {
5449 return lt__PROGRAM__LTX_preloaded_symbols;
5450 }
5451 #endif
5452  
5453 #ifdef __cplusplus
5454 }
5455 #endif
5456 _LT_EOF
5457 # Now try linking the two files.
5458 mv conftest.$ac_objext conftstm.$ac_objext
5459 lt_save_LIBS="$LIBS"
5460 lt_save_CFLAGS="$CFLAGS"
5461 LIBS="conftstm.$ac_objext"
5462 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5464 (eval $ac_link) 2>&5
5465 ac_status=$?
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5468 pipe_works=yes
5469 fi
5470 LIBS="$lt_save_LIBS"
5471 CFLAGS="$lt_save_CFLAGS"
5472 else
5473 echo "cannot find nm_test_func in $nlist" >&5
5474 fi
5475 else
5476 echo "cannot find nm_test_var in $nlist" >&5
5477 fi
5478 else
5479 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5480 fi
5481 else
5482 echo "$progname: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5484 fi
5485 rm -rf conftest* conftst*
5486  
5487 # Do not use the global_symbol_pipe unless it works.
5488 if test "$pipe_works" = yes; then
5489 break
5490 else
5491 lt_cv_sys_global_symbol_pipe=
5492 fi
5493 done
5494  
5495 fi
5496  
5497 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5498 lt_cv_sys_global_symbol_to_cdecl=
5499 fi
5500 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5502 $as_echo "failed" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5505 $as_echo "ok" >&6; }
5506 fi
5507  
5508  
5509  
5510  
5511  
5512  
5513  
5514  
5515  
5516  
5517  
5518  
5519  
5520  
5521  
5522  
5523  
5524  
5525  
5526  
5527  
5528  
5529  
5530 # Check whether --enable-libtool-lock was given.
5531 if test "${enable_libtool_lock+set}" = set; then :
5532 enableval=$enable_libtool_lock;
5533 fi
5534  
5535 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5536  
5537 # Some flags need to be propagated to the compiler or linker for good
5538 # libtool support.
5539 case $host in
5540 ia64-*-hpux*)
5541 # Find out which ABI we are using.
5542 echo 'int i;' > conftest.$ac_ext
5543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5544 (eval $ac_compile) 2>&5
5545 ac_status=$?
5546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5547 test $ac_status = 0; }; then
5548 case `/usr/bin/file conftest.$ac_objext` in
5549 *ELF-32*)
5550 HPUX_IA64_MODE="32"
5551 ;;
5552 *ELF-64*)
5553 HPUX_IA64_MODE="64"
5554 ;;
5555 esac
5556 fi
5557 rm -rf conftest*
5558 ;;
5559 *-*-irix6*)
5560 # Find out which ABI we are using.
5561 echo '#line 5561 "configure"' > conftest.$ac_ext
5562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5563 (eval $ac_compile) 2>&5
5564 ac_status=$?
5565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5566 test $ac_status = 0; }; then
5567 if test "$lt_cv_prog_gnu_ld" = yes; then
5568 case `/usr/bin/file conftest.$ac_objext` in
5569 *32-bit*)
5570 LD="${LD-ld} -melf32bsmip"
5571 ;;
5572 *N32*)
5573 LD="${LD-ld} -melf32bmipn32"
5574 ;;
5575 *64-bit*)
5576 LD="${LD-ld} -melf64bmip"
5577 ;;
5578 esac
5579 else
5580 case `/usr/bin/file conftest.$ac_objext` in
5581 *32-bit*)
5582 LD="${LD-ld} -32"
5583 ;;
5584 *N32*)
5585 LD="${LD-ld} -n32"
5586 ;;
5587 *64-bit*)
5588 LD="${LD-ld} -64"
5589 ;;
5590 esac
5591 fi
5592 fi
5593 rm -rf conftest*
5594 ;;
5595  
5596 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5597 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5598 # Find out which ABI we are using.
5599 echo 'int i;' > conftest.$ac_ext
5600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5601 (eval $ac_compile) 2>&5
5602 ac_status=$?
5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604 test $ac_status = 0; }; then
5605 case `/usr/bin/file conftest.o` in
5606 *32-bit*)
5607 case $host in
5608 x86_64-*kfreebsd*-gnu)
5609 LD="${LD-ld} -m elf_i386_fbsd"
5610 ;;
5611 x86_64-*linux*)
5612 LD="${LD-ld} -m elf_i386"
5613 ;;
5614 ppc64-*linux*|powerpc64-*linux*)
5615 LD="${LD-ld} -m elf32ppclinux"
5616 ;;
5617 s390x-*linux*)
5618 LD="${LD-ld} -m elf_s390"
5619 ;;
5620 sparc64-*linux*)
5621 LD="${LD-ld} -m elf32_sparc"
5622 ;;
5623 esac
5624 ;;
5625 *64-bit*)
5626 case $host in
5627 x86_64-*kfreebsd*-gnu)
5628 LD="${LD-ld} -m elf_x86_64_fbsd"
5629 ;;
5630 x86_64-*linux*)
5631 LD="${LD-ld} -m elf_x86_64"
5632 ;;
5633 ppc*-*linux*|powerpc*-*linux*)
5634 LD="${LD-ld} -m elf64ppc"
5635 ;;
5636 s390*-*linux*|s390*-*tpf*)
5637 LD="${LD-ld} -m elf64_s390"
5638 ;;
5639 sparc*-*linux*)
5640 LD="${LD-ld} -m elf64_sparc"
5641 ;;
5642 esac
5643 ;;
5644 esac
5645 fi
5646 rm -rf conftest*
5647 ;;
5648  
5649 *-*-sco3.2v5*)
5650 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5651 SAVE_CFLAGS="$CFLAGS"
5652 CFLAGS="$CFLAGS -belf"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5654 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5655 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 ac_ext=c
5659 ac_cpp='$CPP $CPPFLAGS'
5660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5663  
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666  
5667 int
5668 main ()
5669 {
5670  
5671 ;
5672 return 0;
5673 }
5674 _ACEOF
5675 if ac_fn_c_try_link "$LINENO"; then :
5676 lt_cv_cc_needs_belf=yes
5677 else
5678 lt_cv_cc_needs_belf=no
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext \
5681 conftest$ac_exeext conftest.$ac_ext
5682 ac_ext=c
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687  
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5690 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5691 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5692 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5693 CFLAGS="$SAVE_CFLAGS"
5694 fi
5695 ;;
5696 sparc*-*solaris*)
5697 # Find out which ABI we are using.
5698 echo 'int i;' > conftest.$ac_ext
5699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5700 (eval $ac_compile) 2>&5
5701 ac_status=$?
5702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703 test $ac_status = 0; }; then
5704 case `/usr/bin/file conftest.o` in
5705 *64-bit*)
5706 case $lt_cv_prog_gnu_ld in
5707 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5708 *)
5709 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5710 LD="${LD-ld} -64"
5711 fi
5712 ;;
5713 esac
5714 ;;
5715 esac
5716 fi
5717 rm -rf conftest*
5718 ;;
5719 esac
5720  
5721 need_locks="$enable_libtool_lock"
5722  
5723  
5724 case $host_os in
5725 rhapsody* | darwin*)
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$DSYMUTIL"; then
5735 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751  
5752 fi
5753 fi
5754 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5755 if test -n "$DSYMUTIL"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5757 $as_echo "$DSYMUTIL" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762  
5763  
5764 fi
5765 if test -z "$ac_cv_prog_DSYMUTIL"; then
5766 ac_ct_DSYMUTIL=$DSYMUTIL
5767 # Extract the first word of "dsymutil", so it can be a program name with args.
5768 set dummy dsymutil; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$ac_ct_DSYMUTIL"; then
5775 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791  
5792 fi
5793 fi
5794 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5795 if test -n "$ac_ct_DSYMUTIL"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5797 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802  
5803 if test "x$ac_ct_DSYMUTIL" = x; then
5804 DSYMUTIL=":"
5805 else
5806 case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812 DSYMUTIL=$ac_ct_DSYMUTIL
5813 fi
5814 else
5815 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5816 fi
5817  
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$NMEDIT"; then
5827 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843  
5844 fi
5845 fi
5846 NMEDIT=$ac_cv_prog_NMEDIT
5847 if test -n "$NMEDIT"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5849 $as_echo "$NMEDIT" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854  
5855  
5856 fi
5857 if test -z "$ac_cv_prog_NMEDIT"; then
5858 ac_ct_NMEDIT=$NMEDIT
5859 # Extract the first word of "nmedit", so it can be a program name with args.
5860 set dummy nmedit; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$ac_ct_NMEDIT"; then
5867 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883  
5884 fi
5885 fi
5886 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5887 if test -n "$ac_ct_NMEDIT"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5889 $as_echo "$ac_ct_NMEDIT" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894  
5895 if test "x$ac_ct_NMEDIT" = x; then
5896 NMEDIT=":"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904 NMEDIT=$ac_ct_NMEDIT
5905 fi
5906 else
5907 NMEDIT="$ac_cv_prog_NMEDIT"
5908 fi
5909  
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_LIPO+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$LIPO"; then
5919 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935  
5936 fi
5937 fi
5938 LIPO=$ac_cv_prog_LIPO
5939 if test -n "$LIPO"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5941 $as_echo "$LIPO" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946  
5947  
5948 fi
5949 if test -z "$ac_cv_prog_LIPO"; then
5950 ac_ct_LIPO=$LIPO
5951 # Extract the first word of "lipo", so it can be a program name with args.
5952 set dummy lipo; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -n "$ac_ct_LIPO"; then
5959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_prog_ac_ct_LIPO="lipo"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972 done
5973 done
5974 IFS=$as_save_IFS
5975  
5976 fi
5977 fi
5978 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5979 if test -n "$ac_ct_LIPO"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5981 $as_echo "$ac_ct_LIPO" >&6; }
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986  
5987 if test "x$ac_ct_LIPO" = x; then
5988 LIPO=":"
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996 LIPO=$ac_ct_LIPO
5997 fi
5998 else
5999 LIPO="$ac_cv_prog_LIPO"
6000 fi
6001  
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}otool; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$OTOOL"; then
6011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027  
6028 fi
6029 fi
6030 OTOOL=$ac_cv_prog_OTOOL
6031 if test -n "$OTOOL"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6033 $as_echo "$OTOOL" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038  
6039  
6040 fi
6041 if test -z "$ac_cv_prog_OTOOL"; then
6042 ac_ct_OTOOL=$OTOOL
6043 # Extract the first word of "otool", so it can be a program name with args.
6044 set dummy otool; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$ac_ct_OTOOL"; then
6051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_OTOOL="otool"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067  
6068 fi
6069 fi
6070 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6071 if test -n "$ac_ct_OTOOL"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6073 $as_echo "$ac_ct_OTOOL" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078  
6079 if test "x$ac_ct_OTOOL" = x; then
6080 OTOOL=":"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088 OTOOL=$ac_ct_OTOOL
6089 fi
6090 else
6091 OTOOL="$ac_cv_prog_OTOOL"
6092 fi
6093  
6094 if test -n "$ac_tool_prefix"; then
6095 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6096 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -n "$OTOOL64"; then
6103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119  
6120 fi
6121 fi
6122 OTOOL64=$ac_cv_prog_OTOOL64
6123 if test -n "$OTOOL64"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6125 $as_echo "$OTOOL64" >&6; }
6126 else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130  
6131  
6132 fi
6133 if test -z "$ac_cv_prog_OTOOL64"; then
6134 ac_ct_OTOOL64=$OTOOL64
6135 # Extract the first word of "otool64", so it can be a program name with args.
6136 set dummy otool64; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 if test -n "$ac_ct_OTOOL64"; then
6143 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_ac_ct_OTOOL64="otool64"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159  
6160 fi
6161 fi
6162 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6163 if test -n "$ac_ct_OTOOL64"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6165 $as_echo "$ac_ct_OTOOL64" >&6; }
6166 else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170  
6171 if test "x$ac_ct_OTOOL64" = x; then
6172 OTOOL64=":"
6173 else
6174 case $cross_compiling:$ac_tool_warned in
6175 yes:)
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178 ac_tool_warned=yes ;;
6179 esac
6180 OTOOL64=$ac_ct_OTOOL64
6181 fi
6182 else
6183 OTOOL64="$ac_cv_prog_OTOOL64"
6184 fi
6185  
6186  
6187  
6188  
6189  
6190  
6191  
6192  
6193  
6194  
6195  
6196  
6197  
6198  
6199  
6200  
6201  
6202  
6203  
6204  
6205  
6206  
6207  
6208  
6209  
6210  
6211  
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6213 $as_echo_n "checking for -single_module linker flag... " >&6; }
6214 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 lt_cv_apple_cc_single_mod=no
6218 if test -z "${LT_MULTI_MODULE}"; then
6219 # By default we will add the -single_module flag. You can override
6220 # by either setting the environment variable LT_MULTI_MODULE
6221 # non-empty at configure time, or by adding -multi_module to the
6222 # link flags.
6223 rm -rf libconftest.dylib*
6224 echo "int foo(void){return 1;}" > conftest.c
6225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6226 -dynamiclib -Wl,-single_module conftest.c" >&5
6227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6229 _lt_result=$?
6230 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6231 lt_cv_apple_cc_single_mod=yes
6232 else
6233 cat conftest.err >&5
6234 fi
6235 rm -rf libconftest.dylib*
6236 rm -f conftest.*
6237 fi
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6240 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6242 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6243 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 lt_cv_ld_exported_symbols_list=no
6247 save_LDFLAGS=$LDFLAGS
6248 echo "_main" > conftest.sym
6249 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252  
6253 int
6254 main ()
6255 {
6256  
6257 ;
6258 return 0;
6259 }
6260 _ACEOF
6261 if ac_fn_c_try_link "$LINENO"; then :
6262 lt_cv_ld_exported_symbols_list=yes
6263 else
6264 lt_cv_ld_exported_symbols_list=no
6265 fi
6266 rm -f core conftest.err conftest.$ac_objext \
6267 conftest$ac_exeext conftest.$ac_ext
6268 LDFLAGS="$save_LDFLAGS"
6269  
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6272 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6273 case $host_os in
6274 rhapsody* | darwin1.[012])
6275 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6276 darwin1.*)
6277 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6278 darwin*) # darwin 5.x on
6279 # if running on 10.5 or later, the deployment target defaults
6280 # to the OS version, if on x86, and 10.4, the deployment
6281 # target defaults to 10.4. Don't you love it?
6282 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6283 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6284 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6285 10.[012]*)
6286 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6287 10.*)
6288 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6289 esac
6290 ;;
6291 esac
6292 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6293 _lt_dar_single_mod='$single_module'
6294 fi
6295 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6296 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6297 else
6298 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6299 fi
6300 if test "$DSYMUTIL" != ":"; then
6301 _lt_dsymutil='~$DSYMUTIL $lib || :'
6302 else
6303 _lt_dsymutil=
6304 fi
6305 ;;
6306 esac
6307  
6308 ac_ext=c
6309 ac_cpp='$CPP $CPPFLAGS'
6310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6315 # On Suns, sometimes $CPP names a directory.
6316 if test -n "$CPP" && test -d "$CPP"; then
6317 CPP=
6318 fi
6319 if test -z "$CPP"; then
6320 if test "${ac_cv_prog_CPP+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 # Double quotes because CPP needs to be expanded
6324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6325 do
6326 ac_preproc_ok=false
6327 for ac_c_preproc_warn_flag in '' yes
6328 do
6329 # Use a header file that comes with gcc, so configuring glibc
6330 # with a fresh cross-compiler works.
6331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6332 # <limits.h> exists even on freestanding compilers.
6333 # On the NeXT, cc -E runs the code through the compiler's parser,
6334 # not just through cpp. "Syntax error" is here to catch this case.
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #ifdef __STDC__
6338 # include <limits.h>
6339 #else
6340 # include <assert.h>
6341 #endif
6342 Syntax error
6343 _ACEOF
6344 if ac_fn_c_try_cpp "$LINENO"; then :
6345  
6346 else
6347 # Broken: fails on valid input.
6348 continue
6349 fi
6350 rm -f conftest.err conftest.$ac_ext
6351  
6352 # OK, works on sane cases. Now check whether nonexistent headers
6353 # can be detected and how.
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 #include <ac_nonexistent.h>
6357 _ACEOF
6358 if ac_fn_c_try_cpp "$LINENO"; then :
6359 # Broken: success on invalid input.
6360 continue
6361 else
6362 # Passes both tests.
6363 ac_preproc_ok=:
6364 break
6365 fi
6366 rm -f conftest.err conftest.$ac_ext
6367  
6368 done
6369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6370 rm -f conftest.err conftest.$ac_ext
6371 if $ac_preproc_ok; then :
6372 break
6373 fi
6374  
6375 done
6376 ac_cv_prog_CPP=$CPP
6377  
6378 fi
6379 CPP=$ac_cv_prog_CPP
6380 else
6381 ac_cv_prog_CPP=$CPP
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6384 $as_echo "$CPP" >&6; }
6385 ac_preproc_ok=false
6386 for ac_c_preproc_warn_flag in '' yes
6387 do
6388 # Use a header file that comes with gcc, so configuring glibc
6389 # with a fresh cross-compiler works.
6390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6391 # <limits.h> exists even on freestanding compilers.
6392 # On the NeXT, cc -E runs the code through the compiler's parser,
6393 # not just through cpp. "Syntax error" is here to catch this case.
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 #ifdef __STDC__
6397 # include <limits.h>
6398 #else
6399 # include <assert.h>
6400 #endif
6401 Syntax error
6402 _ACEOF
6403 if ac_fn_c_try_cpp "$LINENO"; then :
6404  
6405 else
6406 # Broken: fails on valid input.
6407 continue
6408 fi
6409 rm -f conftest.err conftest.$ac_ext
6410  
6411 # OK, works on sane cases. Now check whether nonexistent headers
6412 # can be detected and how.
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 #include <ac_nonexistent.h>
6416 _ACEOF
6417 if ac_fn_c_try_cpp "$LINENO"; then :
6418 # Broken: success on invalid input.
6419 continue
6420 else
6421 # Passes both tests.
6422 ac_preproc_ok=:
6423 break
6424 fi
6425 rm -f conftest.err conftest.$ac_ext
6426  
6427 done
6428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6429 rm -f conftest.err conftest.$ac_ext
6430 if $ac_preproc_ok; then :
6431  
6432 else
6433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6435 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6436 See \`config.log' for more details." "$LINENO" 5; }
6437 fi
6438  
6439 ac_ext=c
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444  
6445  
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6447 $as_echo_n "checking for ANSI C header files... " >&6; }
6448 if test "${ac_cv_header_stdc+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <stdlib.h>
6454 #include <stdarg.h>
6455 #include <string.h>
6456 #include <float.h>
6457  
6458 int
6459 main ()
6460 {
6461  
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 ac_cv_header_stdc=yes
6468 else
6469 ac_cv_header_stdc=no
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472  
6473 if test $ac_cv_header_stdc = yes; then
6474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <string.h>
6478  
6479 _ACEOF
6480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6481 $EGREP "memchr" >/dev/null 2>&1; then :
6482  
6483 else
6484 ac_cv_header_stdc=no
6485 fi
6486 rm -f conftest*
6487  
6488 fi
6489  
6490 if test $ac_cv_header_stdc = yes; then
6491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 #include <stdlib.h>
6495  
6496 _ACEOF
6497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6498 $EGREP "free" >/dev/null 2>&1; then :
6499  
6500 else
6501 ac_cv_header_stdc=no
6502 fi
6503 rm -f conftest*
6504  
6505 fi
6506  
6507 if test $ac_cv_header_stdc = yes; then
6508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6509 if test "$cross_compiling" = yes; then :
6510 :
6511 else
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <ctype.h>
6515 #include <stdlib.h>
6516 #if ((' ' & 0x0FF) == 0x020)
6517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6519 #else
6520 # define ISLOWER(c) \
6521 (('a' <= (c) && (c) <= 'i') \
6522 || ('j' <= (c) && (c) <= 'r') \
6523 || ('s' <= (c) && (c) <= 'z'))
6524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6525 #endif
6526  
6527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6528 int
6529 main ()
6530 {
6531 int i;
6532 for (i = 0; i < 256; i++)
6533 if (XOR (islower (i), ISLOWER (i))
6534 || toupper (i) != TOUPPER (i))
6535 return 2;
6536 return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_c_try_run "$LINENO"; then :
6540  
6541 else
6542 ac_cv_header_stdc=no
6543 fi
6544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6545 conftest.$ac_objext conftest.beam conftest.$ac_ext
6546 fi
6547  
6548 fi
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6551 $as_echo "$ac_cv_header_stdc" >&6; }
6552 if test $ac_cv_header_stdc = yes; then
6553  
6554 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6555  
6556 fi
6557  
6558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6560 inttypes.h stdint.h unistd.h
6561 do :
6562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6564 "
6565 eval as_val=\$$as_ac_Header
6566 if test "x$as_val" = x""yes; then :
6567 cat >>confdefs.h <<_ACEOF
6568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 _ACEOF
6570  
6571 fi
6572  
6573 done
6574  
6575  
6576 for ac_header in dlfcn.h
6577 do :
6578 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6579 "
6580 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6581 cat >>confdefs.h <<_ACEOF
6582 #define HAVE_DLFCN_H 1
6583 _ACEOF
6584  
6585 fi
6586  
6587 done
6588  
6589  
6590  
6591 # Set options
6592  
6593  
6594  
6595 enable_dlopen=no
6596  
6597  
6598 enable_win32_dll=no
6599  
6600  
6601 # Check whether --enable-shared was given.
6602 if test "${enable_shared+set}" = set; then :
6603 enableval=$enable_shared; p=${PACKAGE-default}
6604 case $enableval in
6605 yes) enable_shared=yes ;;
6606 no) enable_shared=no ;;
6607 *)
6608 enable_shared=no
6609 # Look at the argument we got. We use all the common list separators.
6610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6611 for pkg in $enableval; do
6612 IFS="$lt_save_ifs"
6613 if test "X$pkg" = "X$p"; then
6614 enable_shared=yes
6615 fi
6616 done
6617 IFS="$lt_save_ifs"
6618 ;;
6619 esac
6620 else
6621 enable_shared=yes
6622 fi
6623  
6624  
6625  
6626  
6627  
6628  
6629  
6630  
6631  
6632 # Check whether --enable-static was given.
6633 if test "${enable_static+set}" = set; then :
6634 enableval=$enable_static; p=${PACKAGE-default}
6635 case $enableval in
6636 yes) enable_static=yes ;;
6637 no) enable_static=no ;;
6638 *)
6639 enable_static=no
6640 # Look at the argument we got. We use all the common list separators.
6641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6642 for pkg in $enableval; do
6643 IFS="$lt_save_ifs"
6644 if test "X$pkg" = "X$p"; then
6645 enable_static=yes
6646 fi
6647 done
6648 IFS="$lt_save_ifs"
6649 ;;
6650 esac
6651 else
6652 enable_static=yes
6653 fi
6654  
6655  
6656  
6657  
6658  
6659  
6660  
6661  
6662  
6663  
6664 # Check whether --with-pic was given.
6665 if test "${with_pic+set}" = set; then :
6666 withval=$with_pic; pic_mode="$withval"
6667 else
6668 pic_mode=default
6669 fi
6670  
6671  
6672 test -z "$pic_mode" && pic_mode=default
6673  
6674  
6675  
6676  
6677  
6678  
6679  
6680 # Check whether --enable-fast-install was given.
6681 if test "${enable_fast_install+set}" = set; then :
6682 enableval=$enable_fast_install; p=${PACKAGE-default}
6683 case $enableval in
6684 yes) enable_fast_install=yes ;;
6685 no) enable_fast_install=no ;;
6686 *)
6687 enable_fast_install=no
6688 # Look at the argument we got. We use all the common list separators.
6689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6690 for pkg in $enableval; do
6691 IFS="$lt_save_ifs"
6692 if test "X$pkg" = "X$p"; then
6693 enable_fast_install=yes
6694 fi
6695 done
6696 IFS="$lt_save_ifs"
6697 ;;
6698 esac
6699 else
6700 enable_fast_install=yes
6701 fi
6702  
6703  
6704  
6705  
6706  
6707  
6708  
6709  
6710  
6711  
6712  
6713 # This can be used to rebuild libtool when needed
6714 LIBTOOL_DEPS="$ltmain"
6715  
6716 # Always use our own libtool.
6717 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6718  
6719  
6720  
6721  
6722  
6723  
6724  
6725  
6726  
6727  
6728  
6729  
6730  
6731  
6732  
6733  
6734  
6735  
6736  
6737  
6738  
6739  
6740  
6741  
6742  
6743 test -z "$LN_S" && LN_S="ln -s"
6744  
6745  
6746  
6747  
6748  
6749  
6750  
6751  
6752  
6753  
6754  
6755  
6756  
6757  
6758 if test -n "${ZSH_VERSION+set}" ; then
6759 setopt NO_GLOB_SUBST
6760 fi
6761  
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6763 $as_echo_n "checking for objdir... " >&6; }
6764 if test "${lt_cv_objdir+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 rm -f .libs 2>/dev/null
6768 mkdir .libs 2>/dev/null
6769 if test -d .libs; then
6770 lt_cv_objdir=.libs
6771 else
6772 # MS-DOS does not allow filenames that begin with a dot.
6773 lt_cv_objdir=_libs
6774 fi
6775 rmdir .libs 2>/dev/null
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6778 $as_echo "$lt_cv_objdir" >&6; }
6779 objdir=$lt_cv_objdir
6780  
6781  
6782  
6783  
6784  
6785 cat >>confdefs.h <<_ACEOF
6786 #define LT_OBJDIR "$lt_cv_objdir/"
6787 _ACEOF
6788  
6789  
6790  
6791  
6792  
6793  
6794  
6795  
6796  
6797  
6798  
6799  
6800  
6801  
6802  
6803  
6804  
6805 case $host_os in
6806 aix3*)
6807 # AIX sometimes has problems with the GCC collect2 program. For some
6808 # reason, if we set the COLLECT_NAMES environment variable, the problems
6809 # vanish in a puff of smoke.
6810 if test "X${COLLECT_NAMES+set}" != Xset; then
6811 COLLECT_NAMES=
6812 export COLLECT_NAMES
6813 fi
6814 ;;
6815 esac
6816  
6817 # Sed substitution that helps us do robust quoting. It backslashifies
6818 # metacharacters that are still active within double-quoted strings.
6819 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6820  
6821 # Same as above, but do not quote variable references.
6822 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6823  
6824 # Sed substitution to delay expansion of an escaped shell variable in a
6825 # double_quote_subst'ed string.
6826 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6827  
6828 # Sed substitution to delay expansion of an escaped single quote.
6829 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6830  
6831 # Sed substitution to avoid accidental globbing in evaled expressions
6832 no_glob_subst='s/\*/\\\*/g'
6833  
6834 # Global variables:
6835 ofile=libtool
6836 can_build_shared=yes
6837  
6838 # All known linkers require a `.a' archive for static linking (except MSVC,
6839 # which needs '.lib').
6840 libext=a
6841  
6842 with_gnu_ld="$lt_cv_prog_gnu_ld"
6843  
6844 old_CC="$CC"
6845 old_CFLAGS="$CFLAGS"
6846  
6847 # Set sane defaults for various variables
6848 test -z "$CC" && CC=cc
6849 test -z "$LTCC" && LTCC=$CC
6850 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6851 test -z "$LD" && LD=ld
6852 test -z "$ac_objext" && ac_objext=o
6853  
6854 for cc_temp in $compiler""; do
6855 case $cc_temp in
6856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6858 \-*) ;;
6859 *) break;;
6860 esac
6861 done
6862 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6863  
6864  
6865 # Only perform the check for file, if the check method requires it
6866 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6867 case $deplibs_check_method in
6868 file_magic*)
6869 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6871 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6872 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 case $MAGIC_CMD in
6876 [\\/*] | ?:[\\/]*)
6877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6878 ;;
6879 *)
6880 lt_save_MAGIC_CMD="$MAGIC_CMD"
6881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6882 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6883 for ac_dir in $ac_dummy; do
6884 IFS="$lt_save_ifs"
6885 test -z "$ac_dir" && ac_dir=.
6886 if test -f $ac_dir/${ac_tool_prefix}file; then
6887 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6888 if test -n "$file_magic_test_file"; then
6889 case $deplibs_check_method in
6890 "file_magic "*)
6891 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6894 $EGREP "$file_magic_regex" > /dev/null; then
6895 :
6896 else
6897 cat <<_LT_EOF 1>&2
6898  
6899 *** Warning: the command libtool uses to detect shared libraries,
6900 *** $file_magic_cmd, produces output that libtool cannot recognize.
6901 *** The result is that libtool may fail to recognize shared libraries
6902 *** as such. This will affect the creation of libtool libraries that
6903 *** depend on shared libraries, but programs linked with such libtool
6904 *** libraries will work regardless of this problem. Nevertheless, you
6905 *** may want to report the problem to your system manager and/or to
6906 *** bug-libtool@gnu.org
6907  
6908 _LT_EOF
6909 fi ;;
6910 esac
6911 fi
6912 break
6913 fi
6914 done
6915 IFS="$lt_save_ifs"
6916 MAGIC_CMD="$lt_save_MAGIC_CMD"
6917 ;;
6918 esac
6919 fi
6920  
6921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922 if test -n "$MAGIC_CMD"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6924 $as_echo "$MAGIC_CMD" >&6; }
6925 else
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929  
6930  
6931  
6932  
6933  
6934 if test -z "$lt_cv_path_MAGIC_CMD"; then
6935 if test -n "$ac_tool_prefix"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6937 $as_echo_n "checking for file... " >&6; }
6938 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 case $MAGIC_CMD in
6942 [\\/*] | ?:[\\/]*)
6943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6944 ;;
6945 *)
6946 lt_save_MAGIC_CMD="$MAGIC_CMD"
6947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6949 for ac_dir in $ac_dummy; do
6950 IFS="$lt_save_ifs"
6951 test -z "$ac_dir" && ac_dir=.
6952 if test -f $ac_dir/file; then
6953 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6954 if test -n "$file_magic_test_file"; then
6955 case $deplibs_check_method in
6956 "file_magic "*)
6957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6960 $EGREP "$file_magic_regex" > /dev/null; then
6961 :
6962 else
6963 cat <<_LT_EOF 1>&2
6964  
6965 *** Warning: the command libtool uses to detect shared libraries,
6966 *** $file_magic_cmd, produces output that libtool cannot recognize.
6967 *** The result is that libtool may fail to recognize shared libraries
6968 *** as such. This will affect the creation of libtool libraries that
6969 *** depend on shared libraries, but programs linked with such libtool
6970 *** libraries will work regardless of this problem. Nevertheless, you
6971 *** may want to report the problem to your system manager and/or to
6972 *** bug-libtool@gnu.org
6973  
6974 _LT_EOF
6975 fi ;;
6976 esac
6977 fi
6978 break
6979 fi
6980 done
6981 IFS="$lt_save_ifs"
6982 MAGIC_CMD="$lt_save_MAGIC_CMD"
6983 ;;
6984 esac
6985 fi
6986  
6987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988 if test -n "$MAGIC_CMD"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6990 $as_echo "$MAGIC_CMD" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995  
6996  
6997 else
6998 MAGIC_CMD=:
6999 fi
7000 fi
7001  
7002 fi
7003 ;;
7004 esac
7005  
7006 # Use C for the default configuration in the libtool script
7007  
7008 lt_save_CC="$CC"
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014  
7015  
7016 # Source file extension for C test sources.
7017 ac_ext=c
7018  
7019 # Object file extension for compiled C test sources.
7020 objext=o
7021 objext=$objext
7022  
7023 # Code to be used in simple compile tests
7024 lt_simple_compile_test_code="int some_variable = 0;"
7025  
7026 # Code to be used in simple link tests
7027 lt_simple_link_test_code='int main(){return(0);}'
7028  
7029  
7030  
7031  
7032  
7033  
7034  
7035 # If no C compiler was specified, use CC.
7036 LTCC=${LTCC-"$CC"}
7037  
7038 # If no C compiler flags were specified, use CFLAGS.
7039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7040  
7041 # Allow CC to be a program name with arguments.
7042 compiler=$CC
7043  
7044 # Save the default compiler, since it gets overwritten when the other
7045 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7046 compiler_DEFAULT=$CC
7047  
7048 # save warnings/boilerplate of simple test code
7049 ac_outfile=conftest.$ac_objext
7050 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7051 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7052 _lt_compiler_boilerplate=`cat conftest.err`
7053 $RM conftest*
7054  
7055 ac_outfile=conftest.$ac_objext
7056 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7057 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7058 _lt_linker_boilerplate=`cat conftest.err`
7059 $RM -r conftest*
7060  
7061  
7062 if test -n "$compiler"; then
7063  
7064 lt_prog_compiler_no_builtin_flag=
7065  
7066 if test "$GCC" = yes; then
7067 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7068  
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7070 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7071 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 lt_cv_prog_compiler_rtti_exceptions=no
7075 ac_outfile=conftest.$ac_objext
7076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7077 lt_compiler_flag="-fno-rtti -fno-exceptions"
7078 # Insert the option either (1) after the last *FLAGS variable, or
7079 # (2) before a word containing "conftest.", or (3) at the end.
7080 # Note that $ac_compile itself does not contain backslashes and begins
7081 # with a dollar sign (not a hyphen), so the echo should work correctly.
7082 # The option is referenced via a variable to avoid confusing sed.
7083 lt_compile=`echo "$ac_compile" | $SED \
7084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7086 -e 's:$: $lt_compiler_flag:'`
7087 (eval echo "\"\$as_me:7087: $lt_compile\"" >&5)
7088 (eval "$lt_compile" 2>conftest.err)
7089 ac_status=$?
7090 cat conftest.err >&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 if (exit $ac_status) && test -s "$ac_outfile"; then
7093 # The compiler can only warn and ignore the option if not recognized
7094 # So say no if there are warnings other than the usual output.
7095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7098 lt_cv_prog_compiler_rtti_exceptions=yes
7099 fi
7100 fi
7101 $RM conftest*
7102  
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7105 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7106  
7107 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7108 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7109 else
7110 :
7111 fi
7112  
7113 fi
7114  
7115  
7116  
7117  
7118  
7119  
7120 lt_prog_compiler_wl=
7121 lt_prog_compiler_pic=
7122 lt_prog_compiler_static=
7123  
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7125 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7126  
7127 if test "$GCC" = yes; then
7128 lt_prog_compiler_wl='-Wl,'
7129 lt_prog_compiler_static='-static'
7130  
7131 case $host_os in
7132 aix*)
7133 # All AIX code is PIC.
7134 if test "$host_cpu" = ia64; then
7135 # AIX 5 now supports IA64 processor
7136 lt_prog_compiler_static='-Bstatic'
7137 fi
7138 ;;
7139  
7140 amigaos*)
7141 case $host_cpu in
7142 powerpc)
7143 # see comment about AmigaOS4 .so support
7144 lt_prog_compiler_pic='-fPIC'
7145 ;;
7146 m68k)
7147 # FIXME: we need at least 68020 code to build shared libraries, but
7148 # adding the `-m68020' flag to GCC prevents building anything better,
7149 # like `-m68040'.
7150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7151 ;;
7152 esac
7153 ;;
7154  
7155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7156 # PIC is the default for these OSes.
7157 ;;
7158  
7159 mingw* | cygwin* | pw32* | os2* | cegcc*)
7160 # This hack is so that the source file can tell whether it is being
7161 # built for inclusion in a dll (and should export symbols for example).
7162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7163 # (--disable-auto-import) libraries
7164 lt_prog_compiler_pic='-DDLL_EXPORT'
7165 ;;
7166  
7167 darwin* | rhapsody*)
7168 # PIC is the default on this platform
7169 # Common symbols not allowed in MH_DYLIB files
7170 lt_prog_compiler_pic='-fno-common'
7171 ;;
7172  
7173 hpux*)
7174 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7175 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7176 # sets the default TLS model and affects inlining.
7177 case $host_cpu in
7178 hppa*64*)
7179 # +Z the default
7180 ;;
7181 *)
7182 lt_prog_compiler_pic='-fPIC'
7183 ;;
7184 esac
7185 ;;
7186  
7187 interix[3-9]*)
7188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7189 # Instead, we relocate shared libraries at runtime.
7190 ;;
7191  
7192 msdosdjgpp*)
7193 # Just because we use GCC doesn't mean we suddenly get shared libraries
7194 # on systems that don't support them.
7195 lt_prog_compiler_can_build_shared=no
7196 enable_shared=no
7197 ;;
7198  
7199 *nto* | *qnx*)
7200 # QNX uses GNU C++, but need to define -shared option too, otherwise
7201 # it will coredump.
7202 lt_prog_compiler_pic='-fPIC -shared'
7203 ;;
7204  
7205 sysv4*MP*)
7206 if test -d /usr/nec; then
7207 lt_prog_compiler_pic=-Kconform_pic
7208 fi
7209 ;;
7210  
7211 *)
7212 lt_prog_compiler_pic='-fPIC'
7213 ;;
7214 esac
7215 else
7216 # PORTME Check for flag to pass linker flags through the system compiler.
7217 case $host_os in
7218 aix*)
7219 lt_prog_compiler_wl='-Wl,'
7220 if test "$host_cpu" = ia64; then
7221 # AIX 5 now supports IA64 processor
7222 lt_prog_compiler_static='-Bstatic'
7223 else
7224 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7225 fi
7226 ;;
7227  
7228 mingw* | cygwin* | pw32* | os2* | cegcc*)
7229 # This hack is so that the source file can tell whether it is being
7230 # built for inclusion in a dll (and should export symbols for example).
7231 lt_prog_compiler_pic='-DDLL_EXPORT'
7232 ;;
7233  
7234 hpux9* | hpux10* | hpux11*)
7235 lt_prog_compiler_wl='-Wl,'
7236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7237 # not for PA HP-UX.
7238 case $host_cpu in
7239 hppa*64*|ia64*)
7240 # +Z the default
7241 ;;
7242 *)
7243 lt_prog_compiler_pic='+Z'
7244 ;;
7245 esac
7246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7247 lt_prog_compiler_static='${wl}-a ${wl}archive'
7248 ;;
7249  
7250 irix5* | irix6* | nonstopux*)
7251 lt_prog_compiler_wl='-Wl,'
7252 # PIC (with -KPIC) is the default.
7253 lt_prog_compiler_static='-non_shared'
7254 ;;
7255  
7256 linux* | k*bsd*-gnu)
7257 case $cc_basename in
7258 # old Intel for x86_64 which still supported -KPIC.
7259 ecc*)
7260 lt_prog_compiler_wl='-Wl,'
7261 lt_prog_compiler_pic='-KPIC'
7262 lt_prog_compiler_static='-static'
7263 ;;
7264 # icc used to be incompatible with GCC.
7265 # ICC 10 doesn't accept -KPIC any more.
7266 icc* | ifort*)
7267 lt_prog_compiler_wl='-Wl,'
7268 lt_prog_compiler_pic='-fPIC'
7269 lt_prog_compiler_static='-static'
7270 ;;
7271 # Lahey Fortran 8.1.
7272 lf95*)
7273 lt_prog_compiler_wl='-Wl,'
7274 lt_prog_compiler_pic='--shared'
7275 lt_prog_compiler_static='--static'
7276 ;;
7277 pgcc* | pgf77* | pgf90* | pgf95*)
7278 # Portland Group compilers (*not* the Pentium gcc compiler,
7279 # which looks to be a dead project)
7280 lt_prog_compiler_wl='-Wl,'
7281 lt_prog_compiler_pic='-fpic'
7282 lt_prog_compiler_static='-Bstatic'
7283 ;;
7284 ccc*)
7285 lt_prog_compiler_wl='-Wl,'
7286 # All Alpha code is PIC.
7287 lt_prog_compiler_static='-non_shared'
7288 ;;
7289 xl*)
7290 # IBM XL C 8.0/Fortran 10.1 on PPC
7291 lt_prog_compiler_wl='-Wl,'
7292 lt_prog_compiler_pic='-qpic'
7293 lt_prog_compiler_static='-qstaticlink'
7294 ;;
7295 *)
7296 case `$CC -V 2>&1 | sed 5q` in
7297 *Sun\ C*)
7298 # Sun C 5.9
7299 lt_prog_compiler_pic='-KPIC'
7300 lt_prog_compiler_static='-Bstatic'
7301 lt_prog_compiler_wl='-Wl,'
7302 ;;
7303 *Sun\ F*)
7304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7305 lt_prog_compiler_pic='-KPIC'
7306 lt_prog_compiler_static='-Bstatic'
7307 lt_prog_compiler_wl=''
7308 ;;
7309 esac
7310 ;;
7311 esac
7312 ;;
7313  
7314 newsos6)
7315 lt_prog_compiler_pic='-KPIC'
7316 lt_prog_compiler_static='-Bstatic'
7317 ;;
7318  
7319 *nto* | *qnx*)
7320 # QNX uses GNU C++, but need to define -shared option too, otherwise
7321 # it will coredump.
7322 lt_prog_compiler_pic='-fPIC -shared'
7323 ;;
7324  
7325 osf3* | osf4* | osf5*)
7326 lt_prog_compiler_wl='-Wl,'
7327 # All OSF/1 code is PIC.
7328 lt_prog_compiler_static='-non_shared'
7329 ;;
7330  
7331 rdos*)
7332 lt_prog_compiler_static='-non_shared'
7333 ;;
7334  
7335 solaris*)
7336 lt_prog_compiler_pic='-KPIC'
7337 lt_prog_compiler_static='-Bstatic'
7338 case $cc_basename in
7339 f77* | f90* | f95*)
7340 lt_prog_compiler_wl='-Qoption ld ';;
7341 *)
7342 lt_prog_compiler_wl='-Wl,';;
7343 esac
7344 ;;
7345  
7346 sunos4*)
7347 lt_prog_compiler_wl='-Qoption ld '
7348 lt_prog_compiler_pic='-PIC'
7349 lt_prog_compiler_static='-Bstatic'
7350 ;;
7351  
7352 sysv4 | sysv4.2uw2* | sysv4.3*)
7353 lt_prog_compiler_wl='-Wl,'
7354 lt_prog_compiler_pic='-KPIC'
7355 lt_prog_compiler_static='-Bstatic'
7356 ;;
7357  
7358 sysv4*MP*)
7359 if test -d /usr/nec ;then
7360 lt_prog_compiler_pic='-Kconform_pic'
7361 lt_prog_compiler_static='-Bstatic'
7362 fi
7363 ;;
7364  
7365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7366 lt_prog_compiler_wl='-Wl,'
7367 lt_prog_compiler_pic='-KPIC'
7368 lt_prog_compiler_static='-Bstatic'
7369 ;;
7370  
7371 unicos*)
7372 lt_prog_compiler_wl='-Wl,'
7373 lt_prog_compiler_can_build_shared=no
7374 ;;
7375  
7376 uts4*)
7377 lt_prog_compiler_pic='-pic'
7378 lt_prog_compiler_static='-Bstatic'
7379 ;;
7380  
7381 *)
7382 lt_prog_compiler_can_build_shared=no
7383 ;;
7384 esac
7385 fi
7386  
7387 case $host_os in
7388 # For platforms which do not support PIC, -DPIC is meaningless:
7389 *djgpp*)
7390 lt_prog_compiler_pic=
7391 ;;
7392 *)
7393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7394 ;;
7395 esac
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7397 $as_echo "$lt_prog_compiler_pic" >&6; }
7398  
7399  
7400  
7401  
7402  
7403  
7404 #
7405 # Check to make sure the PIC flag actually works.
7406 #
7407 if test -n "$lt_prog_compiler_pic"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7410 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 lt_cv_prog_compiler_pic_works=no
7414 ac_outfile=conftest.$ac_objext
7415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7417 # Insert the option either (1) after the last *FLAGS variable, or
7418 # (2) before a word containing "conftest.", or (3) at the end.
7419 # Note that $ac_compile itself does not contain backslashes and begins
7420 # with a dollar sign (not a hyphen), so the echo should work correctly.
7421 # The option is referenced via a variable to avoid confusing sed.
7422 lt_compile=`echo "$ac_compile" | $SED \
7423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7425 -e 's:$: $lt_compiler_flag:'`
7426 (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
7427 (eval "$lt_compile" 2>conftest.err)
7428 ac_status=$?
7429 cat conftest.err >&5
7430 echo "$as_me:7430: \$? = $ac_status" >&5
7431 if (exit $ac_status) && test -s "$ac_outfile"; then
7432 # The compiler can only warn and ignore the option if not recognized
7433 # So say no if there are warnings other than the usual output.
7434 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7437 lt_cv_prog_compiler_pic_works=yes
7438 fi
7439 fi
7440 $RM conftest*
7441  
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7445  
7446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7447 case $lt_prog_compiler_pic in
7448 "" | " "*) ;;
7449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7450 esac
7451 else
7452 lt_prog_compiler_pic=
7453 lt_prog_compiler_can_build_shared=no
7454 fi
7455  
7456 fi
7457  
7458  
7459  
7460  
7461  
7462  
7463 #
7464 # Check to make sure the static flag actually works.
7465 #
7466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7469 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 lt_cv_prog_compiler_static_works=no
7473 save_LDFLAGS="$LDFLAGS"
7474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7477 # The linker can only warn and ignore the option if not recognized
7478 # So say no if there are warnings
7479 if test -s conftest.err; then
7480 # Append any errors to the config.log.
7481 cat conftest.err 1>&5
7482 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7484 if diff conftest.exp conftest.er2 >/dev/null; then
7485 lt_cv_prog_compiler_static_works=yes
7486 fi
7487 else
7488 lt_cv_prog_compiler_static_works=yes
7489 fi
7490 fi
7491 $RM -r conftest*
7492 LDFLAGS="$save_LDFLAGS"
7493  
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7497  
7498 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7499 :
7500 else
7501 lt_prog_compiler_static=
7502 fi
7503  
7504  
7505  
7506  
7507  
7508  
7509  
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 lt_cv_prog_compiler_c_o=no
7516 $RM -r conftest 2>/dev/null
7517 mkdir conftest
7518 cd conftest
7519 mkdir out
7520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7521  
7522 lt_compiler_flag="-o out/conftest2.$ac_objext"
7523 # Insert the option either (1) after the last *FLAGS variable, or
7524 # (2) before a word containing "conftest.", or (3) at the end.
7525 # Note that $ac_compile itself does not contain backslashes and begins
7526 # with a dollar sign (not a hyphen), so the echo should work correctly.
7527 lt_compile=`echo "$ac_compile" | $SED \
7528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7530 -e 's:$: $lt_compiler_flag:'`
7531 (eval echo "\"\$as_me:7531: $lt_compile\"" >&5)
7532 (eval "$lt_compile" 2>out/conftest.err)
7533 ac_status=$?
7534 cat out/conftest.err >&5
7535 echo "$as_me:7535: \$? = $ac_status" >&5
7536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7537 then
7538 # The compiler can only warn and ignore the option if not recognized
7539 # So say no if there are warnings
7540 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7543 lt_cv_prog_compiler_c_o=yes
7544 fi
7545 fi
7546 chmod u+w . 2>&5
7547 $RM conftest*
7548 # SGI C++ compiler will create directory out/ii_files/ for
7549 # template instantiation
7550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7551 $RM out/* && rmdir out
7552 cd ..
7553 $RM -r conftest
7554 $RM conftest*
7555  
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7559  
7560  
7561  
7562  
7563  
7564  
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7567 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 lt_cv_prog_compiler_c_o=no
7571 $RM -r conftest 2>/dev/null
7572 mkdir conftest
7573 cd conftest
7574 mkdir out
7575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7576  
7577 lt_compiler_flag="-o out/conftest2.$ac_objext"
7578 # Insert the option either (1) after the last *FLAGS variable, or
7579 # (2) before a word containing "conftest.", or (3) at the end.
7580 # Note that $ac_compile itself does not contain backslashes and begins
7581 # with a dollar sign (not a hyphen), so the echo should work correctly.
7582 lt_compile=`echo "$ac_compile" | $SED \
7583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7585 -e 's:$: $lt_compiler_flag:'`
7586 (eval echo "\"\$as_me:7586: $lt_compile\"" >&5)
7587 (eval "$lt_compile" 2>out/conftest.err)
7588 ac_status=$?
7589 cat out/conftest.err >&5
7590 echo "$as_me:7590: \$? = $ac_status" >&5
7591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7592 then
7593 # The compiler can only warn and ignore the option if not recognized
7594 # So say no if there are warnings
7595 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7598 lt_cv_prog_compiler_c_o=yes
7599 fi
7600 fi
7601 chmod u+w . 2>&5
7602 $RM conftest*
7603 # SGI C++ compiler will create directory out/ii_files/ for
7604 # template instantiation
7605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7606 $RM out/* && rmdir out
7607 cd ..
7608 $RM -r conftest
7609 $RM conftest*
7610  
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7614  
7615  
7616  
7617  
7618 hard_links="nottested"
7619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7620 # do not overwrite the value of need_locks provided by the user
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7622 $as_echo_n "checking if we can lock with hard links... " >&6; }
7623 hard_links=yes
7624 $RM conftest*
7625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7626 touch conftest.a
7627 ln conftest.a conftest.b 2>&5 || hard_links=no
7628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7630 $as_echo "$hard_links" >&6; }
7631 if test "$hard_links" = no; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7634 need_locks=warn
7635 fi
7636 else
7637 need_locks=no
7638 fi
7639  
7640  
7641  
7642  
7643  
7644  
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7647  
7648 runpath_var=
7649 allow_undefined_flag=
7650 always_export_symbols=no
7651 archive_cmds=
7652 archive_expsym_cmds=
7653 compiler_needs_object=no
7654 enable_shared_with_static_runtimes=no
7655 export_dynamic_flag_spec=
7656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7657 hardcode_automatic=no
7658 hardcode_direct=no
7659 hardcode_direct_absolute=no
7660 hardcode_libdir_flag_spec=
7661 hardcode_libdir_flag_spec_ld=
7662 hardcode_libdir_separator=
7663 hardcode_minus_L=no
7664 hardcode_shlibpath_var=unsupported
7665 inherit_rpath=no
7666 link_all_deplibs=unknown
7667 module_cmds=
7668 module_expsym_cmds=
7669 old_archive_from_new_cmds=
7670 old_archive_from_expsyms_cmds=
7671 thread_safe_flag_spec=
7672 whole_archive_flag_spec=
7673 # include_expsyms should be a list of space-separated symbols to be *always*
7674 # included in the symbol list
7675 include_expsyms=
7676 # exclude_expsyms can be an extended regexp of symbols to exclude
7677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7679 # as well as any symbol that contains `d'.
7680 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7682 # platforms (ab)use it in PIC code, but their linkers get confused if
7683 # the symbol is explicitly referenced. Since portable code cannot
7684 # rely on this symbol name, it's probably fine to never include it in
7685 # preloaded symbol tables.
7686 # Exclude shared library initialization/finalization symbols.
7687 extract_expsyms_cmds=
7688  
7689 case $host_os in
7690 cygwin* | mingw* | pw32* | cegcc*)
7691 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7692 # When not using gcc, we currently assume that we are using
7693 # Microsoft Visual C++.
7694 if test "$GCC" != yes; then
7695 with_gnu_ld=no
7696 fi
7697 ;;
7698 interix*)
7699 # we just hope/assume this is gcc and not c89 (= MSVC++)
7700 with_gnu_ld=yes
7701 ;;
7702 openbsd*)
7703 with_gnu_ld=no
7704 ;;
7705 linux* | k*bsd*-gnu)
7706 link_all_deplibs=no
7707 ;;
7708 esac
7709  
7710 ld_shlibs=yes
7711 if test "$with_gnu_ld" = yes; then
7712 # If archive_cmds runs LD, not CC, wlarc should be empty
7713 wlarc='${wl}'
7714  
7715 # Set some defaults for GNU ld with shared library support. These
7716 # are reset later if shared libraries are not supported. Putting them
7717 # here allows them to be overridden if necessary.
7718 runpath_var=LD_RUN_PATH
7719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7720 export_dynamic_flag_spec='${wl}--export-dynamic'
7721 # ancient GNU ld didn't support --whole-archive et. al.
7722 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7723 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7724 else
7725 whole_archive_flag_spec=
7726 fi
7727 supports_anon_versioning=no
7728 case `$LD -v 2>&1` in
7729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7732 *\ 2.11.*) ;; # other 2.11 versions
7733 *) supports_anon_versioning=yes ;;
7734 esac
7735  
7736 # See if GNU ld supports shared libraries.
7737 case $host_os in
7738 aix[3-9]*)
7739 # On AIX/PPC, the GNU linker is very broken
7740 if test "$host_cpu" != ia64; then
7741 ld_shlibs=no
7742 cat <<_LT_EOF 1>&2
7743  
7744 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7745 *** to be unable to reliably create shared libraries on AIX.
7746 *** Therefore, libtool is disabling shared libraries support. If you
7747 *** really care for shared libraries, you may want to modify your PATH
7748 *** so that a non-GNU linker is found, and then restart.
7749  
7750 _LT_EOF
7751 fi
7752 ;;
7753  
7754 amigaos*)
7755 case $host_cpu in
7756 powerpc)
7757 # see comment about AmigaOS4 .so support
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds=''
7760 ;;
7761 m68k)
7762 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)'
7763 hardcode_libdir_flag_spec='-L$libdir'
7764 hardcode_minus_L=yes
7765 ;;
7766 esac
7767 ;;
7768  
7769 beos*)
7770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7771 allow_undefined_flag=unsupported
7772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7773 # support --undefined. This deserves some investigation. FIXME
7774 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7775 else
7776 ld_shlibs=no
7777 fi
7778 ;;
7779  
7780 cygwin* | mingw* | pw32* | cegcc*)
7781 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7782 # as there is no search path for DLLs.
7783 hardcode_libdir_flag_spec='-L$libdir'
7784 allow_undefined_flag=unsupported
7785 always_export_symbols=no
7786 enable_shared_with_static_runtimes=yes
7787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7788  
7789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7791 # If the export-symbols file already is a .def file (1st line
7792 # is EXPORTS), use it as is; otherwise, prepend...
7793 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7794 cp $export_symbols $output_objdir/$soname.def;
7795 else
7796 echo EXPORTS > $output_objdir/$soname.def;
7797 cat $export_symbols >> $output_objdir/$soname.def;
7798 fi~
7799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7800 else
7801 ld_shlibs=no
7802 fi
7803 ;;
7804  
7805 interix[3-9]*)
7806 hardcode_direct=no
7807 hardcode_shlibpath_var=no
7808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7809 export_dynamic_flag_spec='${wl}-E'
7810 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7811 # Instead, shared libraries are loaded at an image base (0x10000000 by
7812 # default) and relocated if they conflict, which is a slow very memory
7813 # consuming and fragmenting process. To avoid this, we pick a random,
7814 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7815 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7816 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7817 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'
7818 ;;
7819  
7820 gnu* | linux* | tpf* | k*bsd*-gnu)
7821 tmp_diet=no
7822 if test "$host_os" = linux-dietlibc; then
7823 case $cc_basename in
7824 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7825 esac
7826 fi
7827 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7828 && test "$tmp_diet" = no
7829 then
7830 tmp_addflag=
7831 tmp_sharedflag='-shared'
7832 case $cc_basename,$host_cpu in
7833 pgcc*) # Portland Group C compiler
7834 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'
7835 tmp_addflag=' $pic_flag'
7836 ;;
7837 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7838 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'
7839 tmp_addflag=' $pic_flag -Mnomain' ;;
7840 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7841 tmp_addflag=' -i_dynamic' ;;
7842 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7843 tmp_addflag=' -i_dynamic -nofor_main' ;;
7844 ifc* | ifort*) # Intel Fortran compiler
7845 tmp_addflag=' -nofor_main' ;;
7846 lf95*) # Lahey Fortran 8.1
7847 whole_archive_flag_spec=
7848 tmp_sharedflag='--shared' ;;
7849 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7850 tmp_sharedflag='-qmkshrobj'
7851 tmp_addflag= ;;
7852 esac
7853 case `$CC -V 2>&1 | sed 5q` in
7854 *Sun\ C*) # Sun C 5.9
7855 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'
7856 compiler_needs_object=yes
7857 tmp_sharedflag='-G' ;;
7858 *Sun\ F*) # Sun Fortran 8.3
7859 tmp_sharedflag='-G' ;;
7860 esac
7861 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7862  
7863 if test "x$supports_anon_versioning" = xyes; then
7864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7866 echo "local: *; };" >> $output_objdir/$libname.ver~
7867 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7868 fi
7869  
7870 case $cc_basename in
7871 xlf*)
7872 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7873 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7874 hardcode_libdir_flag_spec=
7875 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7876 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7877 if test "x$supports_anon_versioning" = xyes; then
7878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7880 echo "local: *; };" >> $output_objdir/$libname.ver~
7881 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7882 fi
7883 ;;
7884 esac
7885 else
7886 ld_shlibs=no
7887 fi
7888 ;;
7889  
7890 netbsd* | netbsdelf*-gnu)
7891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7892 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7893 wlarc=
7894 else
7895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7897 fi
7898 ;;
7899  
7900 solaris*)
7901 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7902 ld_shlibs=no
7903 cat <<_LT_EOF 1>&2
7904  
7905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7906 *** create shared libraries on Solaris systems. Therefore, libtool
7907 *** is disabling shared libraries support. We urge you to upgrade GNU
7908 *** binutils to release 2.9.1 or newer. Another option is to modify
7909 *** your PATH or compiler configuration so that the native linker is
7910 *** used, and then restart.
7911  
7912 _LT_EOF
7913 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7916 else
7917 ld_shlibs=no
7918 fi
7919 ;;
7920  
7921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7922 case `$LD -v 2>&1` in
7923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7924 ld_shlibs=no
7925 cat <<_LT_EOF 1>&2
7926  
7927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7928 *** reliably create shared libraries on SCO systems. Therefore, libtool
7929 *** is disabling shared libraries support. We urge you to upgrade GNU
7930 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7931 *** your PATH or compiler configuration so that the native linker is
7932 *** used, and then restart.
7933  
7934 _LT_EOF
7935 ;;
7936 *)
7937 # For security reasons, it is highly recommended that you always
7938 # use absolute paths for naming shared libraries, and exclude the
7939 # DT_RUNPATH tag from executables and libraries. But doing so
7940 # requires that you compile everything twice, which is a pain.
7941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7945 else
7946 ld_shlibs=no
7947 fi
7948 ;;
7949 esac
7950 ;;
7951  
7952 sunos4*)
7953 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7954 wlarc=
7955 hardcode_direct=yes
7956 hardcode_shlibpath_var=no
7957 ;;
7958  
7959 *)
7960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7963 else
7964 ld_shlibs=no
7965 fi
7966 ;;
7967 esac
7968  
7969 if test "$ld_shlibs" = no; then
7970 runpath_var=
7971 hardcode_libdir_flag_spec=
7972 export_dynamic_flag_spec=
7973 whole_archive_flag_spec=
7974 fi
7975 else
7976 # PORTME fill in a description of your system's linker (not GNU ld)
7977 case $host_os in
7978 aix3*)
7979 allow_undefined_flag=unsupported
7980 always_export_symbols=yes
7981 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'
7982 # Note: this linker hardcodes the directories in LIBPATH if there
7983 # are no directories specified by -L.
7984 hardcode_minus_L=yes
7985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7986 # Neither direct hardcoding nor static linking is supported with a
7987 # broken collect2.
7988 hardcode_direct=unsupported
7989 fi
7990 ;;
7991  
7992 aix[4-9]*)
7993 if test "$host_cpu" = ia64; then
7994 # On IA64, the linker does run time linking by default, so we don't
7995 # have to do anything special.
7996 aix_use_runtimelinking=no
7997 exp_sym_flag='-Bexport'
7998 no_entry_flag=""
7999 else
8000 # If we're using GNU nm, then we don't want the "-C" option.
8001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8003 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'
8004 else
8005 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'
8006 fi
8007 aix_use_runtimelinking=no
8008  
8009 # Test if we are trying to use run time linking or normal
8010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8011 # need to do runtime linking.
8012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8013 for ld_flag in $LDFLAGS; do
8014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8015 aix_use_runtimelinking=yes
8016 break
8017 fi
8018 done
8019 ;;
8020 esac
8021  
8022 exp_sym_flag='-bexport'
8023 no_entry_flag='-bnoentry'
8024 fi
8025  
8026 # When large executables or shared objects are built, AIX ld can
8027 # have problems creating the table of contents. If linking a library
8028 # or program results in "error TOC overflow" add -mminimal-toc to
8029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8031  
8032 archive_cmds=''
8033 hardcode_direct=yes
8034 hardcode_direct_absolute=yes
8035 hardcode_libdir_separator=':'
8036 link_all_deplibs=yes
8037 file_list_spec='${wl}-f,'
8038  
8039 if test "$GCC" = yes; then
8040 case $host_os in aix4.[012]|aix4.[012].*)
8041 # We only want to do this on AIX 4.2 and lower, the check
8042 # below for broken collect2 doesn't work under 4.3+
8043 collect2name=`${CC} -print-prog-name=collect2`
8044 if test -f "$collect2name" &&
8045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8046 then
8047 # We have reworked collect2
8048 :
8049 else
8050 # We have old collect2
8051 hardcode_direct=unsupported
8052 # It fails to find uninstalled libraries when the uninstalled
8053 # path is not listed in the libpath. Setting hardcode_minus_L
8054 # to unsupported forces relinking
8055 hardcode_minus_L=yes
8056 hardcode_libdir_flag_spec='-L$libdir'
8057 hardcode_libdir_separator=
8058 fi
8059 ;;
8060 esac
8061 shared_flag='-shared'
8062 if test "$aix_use_runtimelinking" = yes; then
8063 shared_flag="$shared_flag "'${wl}-G'
8064 fi
8065 link_all_deplibs=no
8066 else
8067 # not using gcc
8068 if test "$host_cpu" = ia64; then
8069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8070 # chokes on -Wl,-G. The following line is correct:
8071 shared_flag='-G'
8072 else
8073 if test "$aix_use_runtimelinking" = yes; then
8074 shared_flag='${wl}-G'
8075 else
8076 shared_flag='${wl}-bM:SRE'
8077 fi
8078 fi
8079 fi
8080  
8081 export_dynamic_flag_spec='${wl}-bexpall'
8082 # It seems that -bexpall does not export symbols beginning with
8083 # underscore (_), so it is better to generate a list of symbols to export.
8084 always_export_symbols=yes
8085 if test "$aix_use_runtimelinking" = yes; then
8086 # Warning - without using the other runtime loading flags (-brtl),
8087 # -berok will link without error, but may produce a broken library.
8088 allow_undefined_flag='-berok'
8089 # Determine the default libpath from the value encoded in an
8090 # empty executable.
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093  
8094 int
8095 main ()
8096 {
8097  
8098 ;
8099 return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_link "$LINENO"; then :
8103  
8104 lt_aix_libpath_sed='
8105 /Import File Strings/,/^$/ {
8106 /^0/ {
8107 s/^0 *\(.*\)$/\1/
8108 p
8109 }
8110 }'
8111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8112 # Check for a 64-bit object if we didn't find anything.
8113 if test -z "$aix_libpath"; then
8114 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8115 fi
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8120  
8121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8122 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"
8123 else
8124 if test "$host_cpu" = ia64; then
8125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8126 allow_undefined_flag="-z nodefs"
8127 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"
8128 else
8129 # Determine the default libpath from the value encoded in an
8130 # empty executable.
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133  
8134 int
8135 main ()
8136 {
8137  
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 if ac_fn_c_try_link "$LINENO"; then :
8143  
8144 lt_aix_libpath_sed='
8145 /Import File Strings/,/^$/ {
8146 /^0/ {
8147 s/^0 *\(.*\)$/\1/
8148 p
8149 }
8150 }'
8151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8152 # Check for a 64-bit object if we didn't find anything.
8153 if test -z "$aix_libpath"; then
8154 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8155 fi
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8160  
8161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8162 # Warning - without using the other run time loading flags,
8163 # -berok will link without error, but may produce a broken library.
8164 no_undefined_flag=' ${wl}-bernotok'
8165 allow_undefined_flag=' ${wl}-berok'
8166 # Exported symbols can be pulled into shared objects from archives
8167 whole_archive_flag_spec='$convenience'
8168 archive_cmds_need_lc=yes
8169 # This is similar to how AIX traditionally builds its shared libraries.
8170 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'
8171 fi
8172 fi
8173 ;;
8174  
8175 amigaos*)
8176 case $host_cpu in
8177 powerpc)
8178 # see comment about AmigaOS4 .so support
8179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8180 archive_expsym_cmds=''
8181 ;;
8182 m68k)
8183 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)'
8184 hardcode_libdir_flag_spec='-L$libdir'
8185 hardcode_minus_L=yes
8186 ;;
8187 esac
8188 ;;
8189  
8190 bsdi[45]*)
8191 export_dynamic_flag_spec=-rdynamic
8192 ;;
8193  
8194 cygwin* | mingw* | pw32* | cegcc*)
8195 # When not using gcc, we currently assume that we are using
8196 # Microsoft Visual C++.
8197 # hardcode_libdir_flag_spec is actually meaningless, as there is
8198 # no search path for DLLs.
8199 hardcode_libdir_flag_spec=' '
8200 allow_undefined_flag=unsupported
8201 # Tell ltmain to make .lib files, not .a files.
8202 libext=lib
8203 # Tell ltmain to make .dll files, not .so files.
8204 shrext_cmds=".dll"
8205 # FIXME: Setting linknames here is a bad hack.
8206 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8207 # The linker will automatically build a .lib file if we build a DLL.
8208 old_archive_from_new_cmds='true'
8209 # FIXME: Should let the user specify the lib program.
8210 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8211 fix_srcfile_path='`cygpath -w "$srcfile"`'
8212 enable_shared_with_static_runtimes=yes
8213 ;;
8214  
8215 darwin* | rhapsody*)
8216  
8217  
8218 archive_cmds_need_lc=no
8219 hardcode_direct=no
8220 hardcode_automatic=yes
8221 hardcode_shlibpath_var=unsupported
8222 whole_archive_flag_spec=''
8223 link_all_deplibs=yes
8224 allow_undefined_flag="$_lt_dar_allow_undefined"
8225 case $cc_basename in
8226 ifort*) _lt_dar_can_shared=yes ;;
8227 *) _lt_dar_can_shared=$GCC ;;
8228 esac
8229 if test "$_lt_dar_can_shared" = "yes"; then
8230 output_verbose_link_cmd=echo
8231 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8232 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8233 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}"
8234 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}"
8235  
8236 else
8237 ld_shlibs=no
8238 fi
8239  
8240 ;;
8241  
8242 dgux*)
8243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8244 hardcode_libdir_flag_spec='-L$libdir'
8245 hardcode_shlibpath_var=no
8246 ;;
8247  
8248 freebsd1*)
8249 ld_shlibs=no
8250 ;;
8251  
8252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8253 # support. Future versions do this automatically, but an explicit c++rt0.o
8254 # does not break anything, and helps significantly (at the cost of a little
8255 # extra space).
8256 freebsd2.2*)
8257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8258 hardcode_libdir_flag_spec='-R$libdir'
8259 hardcode_direct=yes
8260 hardcode_shlibpath_var=no
8261 ;;
8262  
8263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8264 freebsd2*)
8265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8266 hardcode_direct=yes
8267 hardcode_minus_L=yes
8268 hardcode_shlibpath_var=no
8269 ;;
8270  
8271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8272 freebsd* | dragonfly*)
8273 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8274 hardcode_libdir_flag_spec='-R$libdir'
8275 hardcode_direct=yes
8276 hardcode_shlibpath_var=no
8277 ;;
8278  
8279 hpux9*)
8280 if test "$GCC" = yes; then
8281 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'
8282 else
8283 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'
8284 fi
8285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8286 hardcode_libdir_separator=:
8287 hardcode_direct=yes
8288  
8289 # hardcode_minus_L: Not really in the search PATH,
8290 # but as the default location of the library.
8291 hardcode_minus_L=yes
8292 export_dynamic_flag_spec='${wl}-E'
8293 ;;
8294  
8295 hpux10*)
8296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8297 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8298 else
8299 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8300 fi
8301 if test "$with_gnu_ld" = no; then
8302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8303 hardcode_libdir_flag_spec_ld='+b $libdir'
8304 hardcode_libdir_separator=:
8305 hardcode_direct=yes
8306 hardcode_direct_absolute=yes
8307 export_dynamic_flag_spec='${wl}-E'
8308 # hardcode_minus_L: Not really in the search PATH,
8309 # but as the default location of the library.
8310 hardcode_minus_L=yes
8311 fi
8312 ;;
8313  
8314 hpux11*)
8315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8316 case $host_cpu in
8317 hppa*64*)
8318 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8319 ;;
8320 ia64*)
8321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8322 ;;
8323 *)
8324 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8325 ;;
8326 esac
8327 else
8328 case $host_cpu in
8329 hppa*64*)
8330 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8331 ;;
8332 ia64*)
8333 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8334 ;;
8335 *)
8336 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8337 ;;
8338 esac
8339 fi
8340 if test "$with_gnu_ld" = no; then
8341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8342 hardcode_libdir_separator=:
8343  
8344 case $host_cpu in
8345 hppa*64*|ia64*)
8346 hardcode_direct=no
8347 hardcode_shlibpath_var=no
8348 ;;
8349 *)
8350 hardcode_direct=yes
8351 hardcode_direct_absolute=yes
8352 export_dynamic_flag_spec='${wl}-E'
8353  
8354 # hardcode_minus_L: Not really in the search PATH,
8355 # but as the default location of the library.
8356 hardcode_minus_L=yes
8357 ;;
8358 esac
8359 fi
8360 ;;
8361  
8362 irix5* | irix6* | nonstopux*)
8363 if test "$GCC" = yes; then
8364 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'
8365 # Try to use the -exported_symbol ld option, if it does not
8366 # work, assume that -exports_file does not work either and
8367 # implicitly export all symbols.
8368 save_LDFLAGS="$LDFLAGS"
8369 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 int foo(void) {}
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 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'
8376  
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 LDFLAGS="$save_LDFLAGS"
8381 else
8382 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'
8383 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'
8384 fi
8385 archive_cmds_need_lc='no'
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 hardcode_libdir_separator=:
8388 inherit_rpath=yes
8389 link_all_deplibs=yes
8390 ;;
8391  
8392 netbsd* | netbsdelf*-gnu)
8393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8395 else
8396 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8397 fi
8398 hardcode_libdir_flag_spec='-R$libdir'
8399 hardcode_direct=yes
8400 hardcode_shlibpath_var=no
8401 ;;
8402  
8403 newsos6)
8404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8405 hardcode_direct=yes
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 hardcode_libdir_separator=:
8408 hardcode_shlibpath_var=no
8409 ;;
8410  
8411 *nto* | *qnx*)
8412 ;;
8413  
8414 openbsd*)
8415 if test -f /usr/libexec/ld.so; then
8416 hardcode_direct=yes
8417 hardcode_shlibpath_var=no
8418 hardcode_direct_absolute=yes
8419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8421 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8422 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8423 export_dynamic_flag_spec='${wl}-E'
8424 else
8425 case $host_os in
8426 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_libdir_flag_spec='-R$libdir'
8429 ;;
8430 *)
8431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8433 ;;
8434 esac
8435 fi
8436 else
8437 ld_shlibs=no
8438 fi
8439 ;;
8440  
8441 os2*)
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_minus_L=yes
8444 allow_undefined_flag=unsupported
8445 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'
8446 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8447 ;;
8448  
8449 osf3*)
8450 if test "$GCC" = yes; then
8451 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8452 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'
8453 else
8454 allow_undefined_flag=' -expect_unresolved \*'
8455 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'
8456 fi
8457 archive_cmds_need_lc='no'
8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8459 hardcode_libdir_separator=:
8460 ;;
8461  
8462 osf4* | osf5*) # as osf3* with the addition of -msym flag
8463 if test "$GCC" = yes; then
8464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8465 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'
8466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8467 else
8468 allow_undefined_flag=' -expect_unresolved \*'
8469 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'
8470 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~
8471 $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'
8472  
8473 # Both c and cxx compiler support -rpath directly
8474 hardcode_libdir_flag_spec='-rpath $libdir'
8475 fi
8476 archive_cmds_need_lc='no'
8477 hardcode_libdir_separator=:
8478 ;;
8479  
8480 solaris*)
8481 no_undefined_flag=' -z defs'
8482 if test "$GCC" = yes; then
8483 wlarc='${wl}'
8484 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8486 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8487 else
8488 case `$CC -V 2>&1` in
8489 *"Compilers 5.0"*)
8490 wlarc=''
8491 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8493 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8494 ;;
8495 *)
8496 wlarc='${wl}'
8497 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8498 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8499 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8500 ;;
8501 esac
8502 fi
8503 hardcode_libdir_flag_spec='-R$libdir'
8504 hardcode_shlibpath_var=no
8505 case $host_os in
8506 solaris2.[0-5] | solaris2.[0-5].*) ;;
8507 *)
8508 # The compiler driver will combine and reorder linker options,
8509 # but understands `-z linker_flag'. GCC discards it without `$wl',
8510 # but is careful enough not to reorder.
8511 # Supported since Solaris 2.6 (maybe 2.5.1?)
8512 if test "$GCC" = yes; then
8513 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8514 else
8515 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8516 fi
8517 ;;
8518 esac
8519 link_all_deplibs=yes
8520 ;;
8521  
8522 sunos4*)
8523 if test "x$host_vendor" = xsequent; then
8524 # Use $CC to link under sequent, because it throws in some extra .o
8525 # files that make .init and .fini sections work.
8526 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8527 else
8528 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8529 fi
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_direct=yes
8532 hardcode_minus_L=yes
8533 hardcode_shlibpath_var=no
8534 ;;
8535  
8536 sysv4)
8537 case $host_vendor in
8538 sni)
8539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8540 hardcode_direct=yes # is this really true???
8541 ;;
8542 siemens)
8543 ## LD is ld it makes a PLAMLIB
8544 ## CC just makes a GrossModule.
8545 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8546 reload_cmds='$CC -r -o $output$reload_objs'
8547 hardcode_direct=no
8548 ;;
8549 motorola)
8550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8551 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8552 ;;
8553 esac
8554 runpath_var='LD_RUN_PATH'
8555 hardcode_shlibpath_var=no
8556 ;;
8557  
8558 sysv4.3*)
8559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8560 hardcode_shlibpath_var=no
8561 export_dynamic_flag_spec='-Bexport'
8562 ;;
8563  
8564 sysv4*MP*)
8565 if test -d /usr/nec; then
8566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8567 hardcode_shlibpath_var=no
8568 runpath_var=LD_RUN_PATH
8569 hardcode_runpath_var=yes
8570 ld_shlibs=yes
8571 fi
8572 ;;
8573  
8574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8575 no_undefined_flag='${wl}-z,text'
8576 archive_cmds_need_lc=no
8577 hardcode_shlibpath_var=no
8578 runpath_var='LD_RUN_PATH'
8579  
8580 if test "$GCC" = yes; then
8581 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 else
8584 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 fi
8587 ;;
8588  
8589 sysv5* | sco3.2v5* | sco5v6*)
8590 # Note: We can NOT use -z defs as we might desire, because we do not
8591 # link with -lc, and that would cause any symbols used from libc to
8592 # always be unresolved, which means just about no library would
8593 # ever link correctly. If we're not using GNU ld we use -z text
8594 # though, which does catch some bad symbols but isn't as heavy-handed
8595 # as -z defs.
8596 no_undefined_flag='${wl}-z,text'
8597 allow_undefined_flag='${wl}-z,nodefs'
8598 archive_cmds_need_lc=no
8599 hardcode_shlibpath_var=no
8600 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8601 hardcode_libdir_separator=':'
8602 link_all_deplibs=yes
8603 export_dynamic_flag_spec='${wl}-Bexport'
8604 runpath_var='LD_RUN_PATH'
8605  
8606 if test "$GCC" = yes; then
8607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 else
8610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8612 fi
8613 ;;
8614  
8615 uts4*)
8616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617 hardcode_libdir_flag_spec='-L$libdir'
8618 hardcode_shlibpath_var=no
8619 ;;
8620  
8621 *)
8622 ld_shlibs=no
8623 ;;
8624 esac
8625  
8626 if test x$host_vendor = xsni; then
8627 case $host in
8628 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8629 export_dynamic_flag_spec='${wl}-Blargedynsym'
8630 ;;
8631 esac
8632 fi
8633 fi
8634  
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8636 $as_echo "$ld_shlibs" >&6; }
8637 test "$ld_shlibs" = no && can_build_shared=no
8638  
8639 with_gnu_ld=$with_gnu_ld
8640  
8641  
8642  
8643  
8644  
8645  
8646  
8647  
8648  
8649  
8650  
8651  
8652  
8653  
8654  
8655 #
8656 # Do we need to explicitly link libc?
8657 #
8658 case "x$archive_cmds_need_lc" in
8659 x|xyes)
8660 # Assume -lc should be added
8661 archive_cmds_need_lc=yes
8662  
8663 if test "$enable_shared" = yes && test "$GCC" = yes; then
8664 case $archive_cmds in
8665 *'~'*)
8666 # FIXME: we may have to deal with multi-command sequences.
8667 ;;
8668 '$CC '*)
8669 # Test whether the compiler implicitly links with -lc since on some
8670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8671 # to ld, don't add -lc before -lgcc.
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8673 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8674 $RM conftest*
8675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8676  
8677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8678 (eval $ac_compile) 2>&5
8679 ac_status=$?
8680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8681 test $ac_status = 0; } 2>conftest.err; then
8682 soname=conftest
8683 lib=conftest
8684 libobjs=conftest.$ac_objext
8685 deplibs=
8686 wl=$lt_prog_compiler_wl
8687 pic_flag=$lt_prog_compiler_pic
8688 compiler_flags=-v
8689 linker_flags=-v
8690 verstring=
8691 output_objdir=.
8692 libname=conftest
8693 lt_save_allow_undefined_flag=$allow_undefined_flag
8694 allow_undefined_flag=
8695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8696 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8697 ac_status=$?
8698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8699 test $ac_status = 0; }
8700 then
8701 archive_cmds_need_lc=no
8702 else
8703 archive_cmds_need_lc=yes
8704 fi
8705 allow_undefined_flag=$lt_save_allow_undefined_flag
8706 else
8707 cat conftest.err 1>&5
8708 fi
8709 $RM conftest*
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8711 $as_echo "$archive_cmds_need_lc" >&6; }
8712 ;;
8713 esac
8714 fi
8715 ;;
8716 esac
8717  
8718  
8719  
8720  
8721  
8722  
8723  
8724  
8725  
8726  
8727  
8728  
8729  
8730  
8731  
8732  
8733  
8734  
8735  
8736  
8737  
8738  
8739  
8740  
8741  
8742  
8743  
8744  
8745  
8746  
8747  
8748  
8749  
8750  
8751  
8752  
8753  
8754  
8755  
8756  
8757  
8758  
8759  
8760  
8761  
8762  
8763  
8764  
8765  
8766  
8767  
8768  
8769  
8770  
8771  
8772  
8773  
8774  
8775  
8776  
8777  
8778  
8779  
8780  
8781  
8782  
8783  
8784  
8785  
8786  
8787  
8788  
8789  
8790  
8791  
8792  
8793  
8794  
8795  
8796  
8797  
8798  
8799  
8800  
8801  
8802  
8803  
8804  
8805  
8806  
8807  
8808  
8809  
8810  
8811  
8812  
8813  
8814  
8815  
8816  
8817  
8818  
8819  
8820  
8821  
8822  
8823  
8824  
8825  
8826  
8827  
8828  
8829  
8830  
8831  
8832  
8833  
8834  
8835  
8836  
8837  
8838  
8839  
8840  
8841  
8842  
8843  
8844  
8845  
8846  
8847  
8848  
8849  
8850  
8851  
8852  
8853  
8854  
8855  
8856  
8857  
8858  
8859  
8860  
8861  
8862  
8863  
8864  
8865  
8866  
8867  
8868  
8869  
8870  
8871  
8872  
8873  
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8875 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8876  
8877 if test "$GCC" = yes; then
8878 case $host_os in
8879 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8880 *) lt_awk_arg="/^libraries:/" ;;
8881 esac
8882 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8883 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8884 # if the path contains ";" then we assume it to be the separator
8885 # otherwise default to the standard path separator (i.e. ":") - it is
8886 # assumed that no part of a normal pathname contains ";" but that should
8887 # okay in the real world where ";" in dirpaths is itself problematic.
8888 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8889 else
8890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8891 fi
8892 # Ok, now we have the path, separated by spaces, we can step through it
8893 # and add multilib dir if necessary.
8894 lt_tmp_lt_search_path_spec=
8895 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8896 for lt_sys_path in $lt_search_path_spec; do
8897 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8899 else
8900 test -d "$lt_sys_path" && \
8901 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8902 fi
8903 done
8904 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8905 BEGIN {RS=" "; FS="/|\n";} {
8906 lt_foo="";
8907 lt_count=0;
8908 for (lt_i = NF; lt_i > 0; lt_i--) {
8909 if ($lt_i != "" && $lt_i != ".") {
8910 if ($lt_i == "..") {
8911 lt_count++;
8912 } else {
8913 if (lt_count == 0) {
8914 lt_foo="/" $lt_i lt_foo;
8915 } else {
8916 lt_count--;
8917 }
8918 }
8919 }
8920 }
8921 if (lt_foo != "") { lt_freq[lt_foo]++; }
8922 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8923 }'`
8924 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8925 else
8926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8927 fi
8928 library_names_spec=
8929 libname_spec='lib$name'
8930 soname_spec=
8931 shrext_cmds=".so"
8932 postinstall_cmds=
8933 postuninstall_cmds=
8934 finish_cmds=
8935 finish_eval=
8936 shlibpath_var=
8937 shlibpath_overrides_runpath=unknown
8938 version_type=none
8939 dynamic_linker="$host_os ld.so"
8940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8941 need_lib_prefix=unknown
8942 hardcode_into_libs=no
8943  
8944 # when you set need_version to no, make sure it does not cause -set_version
8945 # flags to be left without arguments
8946 need_version=unknown
8947  
8948 case $host_os in
8949 aix3*)
8950 version_type=linux
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8952 shlibpath_var=LIBPATH
8953  
8954 # AIX 3 has no versioning support, so we append a major version to the name.
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 ;;
8957  
8958 aix[4-9]*)
8959 version_type=linux
8960 need_lib_prefix=no
8961 need_version=no
8962 hardcode_into_libs=yes
8963 if test "$host_cpu" = ia64; then
8964 # AIX 5 supports IA64
8965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 else
8968 # With GCC up to 2.95.x, collect2 would create an import file
8969 # for dependence libraries. The import file would start with
8970 # the line `#! .'. This would cause the generated library to
8971 # depend on `.', always an invalid library. This was fixed in
8972 # development snapshots of GCC prior to 3.0.
8973 case $host_os in
8974 aix4 | aix4.[01] | aix4.[01].*)
8975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8976 echo ' yes '
8977 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8978 :
8979 else
8980 can_build_shared=no
8981 fi
8982 ;;
8983 esac
8984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8985 # soname into executable. Probably we can add versioning support to
8986 # collect2, so additional links can be useful in future.
8987 if test "$aix_use_runtimelinking" = yes; then
8988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8989 # instead of lib<name>.a to let people know that these are not
8990 # typical AIX shared libraries.
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 else
8993 # We preserve .a as extension for shared libraries through AIX4.2
8994 # and later when we are not doing run time linking.
8995 library_names_spec='${libname}${release}.a $libname.a'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 fi
8998 shlibpath_var=LIBPATH
8999 fi
9000 ;;
9001  
9002 amigaos*)
9003 case $host_cpu in
9004 powerpc)
9005 # Since July 2007 AmigaOS4 officially supports .so libraries.
9006 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 ;;
9009 m68k)
9010 library_names_spec='$libname.ixlibrary $libname.a'
9011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9012 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'
9013 ;;
9014 esac
9015 ;;
9016  
9017 beos*)
9018 library_names_spec='${libname}${shared_ext}'
9019 dynamic_linker="$host_os ld.so"
9020 shlibpath_var=LIBRARY_PATH
9021 ;;
9022  
9023 bsdi[45]*)
9024 version_type=linux
9025 need_version=no
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9032 # the default ld.so.conf also contains /usr/contrib/lib and
9033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9034 # libtool to hard-code these into programs
9035 ;;
9036  
9037 cygwin* | mingw* | pw32* | cegcc*)
9038 version_type=windows
9039 shrext_cmds=".dll"
9040 need_version=no
9041 need_lib_prefix=no
9042  
9043 case $GCC,$host_os in
9044 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9045 library_names_spec='$libname.dll.a'
9046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9047 postinstall_cmds='base_file=`basename \${file}`~
9048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9049 dldir=$destdir/`dirname \$dlpath`~
9050 test -d \$dldir || mkdir -p \$dldir~
9051 $install_prog $dir/$dlname \$dldir/$dlname~
9052 chmod a+x \$dldir/$dlname~
9053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9055 fi'
9056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9057 dlpath=$dir/\$dldll~
9058 $RM \$dlpath'
9059 shlibpath_overrides_runpath=yes
9060  
9061 case $host_os in
9062 cygwin*)
9063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9065 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9066 ;;
9067 mingw* | cegcc*)
9068 # MinGW DLLs use traditional 'lib' prefix
9069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9070 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9071 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9072 # It is most probably a Windows format PATH printed by
9073 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9074 # path with ; separators, and with drive letters. We can handle the
9075 # drive letters (cygwin fileutils understands them), so leave them,
9076 # especially as we might pass files found there to a mingw objdump,
9077 # which wouldn't understand a cygwinified path. Ahh.
9078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9079 else
9080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9081 fi
9082 ;;
9083 pw32*)
9084 # pw32 DLLs use 'pw' prefix rather than 'lib'
9085 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9086 ;;
9087 esac
9088 ;;
9089  
9090 *)
9091 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9092 ;;
9093 esac
9094 dynamic_linker='Win32 ld.exe'
9095 # FIXME: first we should search . and the directory the executable is in
9096 shlibpath_var=PATH
9097 ;;
9098  
9099 darwin* | rhapsody*)
9100 dynamic_linker="$host_os dyld"
9101 version_type=darwin
9102 need_lib_prefix=no
9103 need_version=no
9104 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9105 soname_spec='${libname}${release}${major}$shared_ext'
9106 shlibpath_overrides_runpath=yes
9107 shlibpath_var=DYLD_LIBRARY_PATH
9108 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9109  
9110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9112 ;;
9113  
9114 dgux*)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 ;;
9122  
9123 freebsd1*)
9124 dynamic_linker=no
9125 ;;
9126  
9127 freebsd* | dragonfly*)
9128 # DragonFly does not have aout. When/if they implement a new
9129 # versioning mechanism, adjust this.
9130 if test -x /usr/bin/objformat; then
9131 objformat=`/usr/bin/objformat`
9132 else
9133 case $host_os in
9134 freebsd[123]*) objformat=aout ;;
9135 *) objformat=elf ;;
9136 esac
9137 fi
9138 version_type=freebsd-$objformat
9139 case $version_type in
9140 freebsd-elf*)
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9142 need_version=no
9143 need_lib_prefix=no
9144 ;;
9145 freebsd-*)
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9147 need_version=yes
9148 ;;
9149 esac
9150 shlibpath_var=LD_LIBRARY_PATH
9151 case $host_os in
9152 freebsd2*)
9153 shlibpath_overrides_runpath=yes
9154 ;;
9155 freebsd3.[01]* | freebsdelf3.[01]*)
9156 shlibpath_overrides_runpath=yes
9157 hardcode_into_libs=yes
9158 ;;
9159 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9160 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9161 shlibpath_overrides_runpath=no
9162 hardcode_into_libs=yes
9163 ;;
9164 *) # from 4.6 on, and DragonFly
9165 shlibpath_overrides_runpath=yes
9166 hardcode_into_libs=yes
9167 ;;
9168 esac
9169 ;;
9170  
9171 gnu*)
9172 version_type=linux
9173 need_lib_prefix=no
9174 need_version=no
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 hardcode_into_libs=yes
9179 ;;
9180  
9181 hpux9* | hpux10* | hpux11*)
9182 # Give a soname corresponding to the major version so that dld.sl refuses to
9183 # link against other versions.
9184 version_type=sunos
9185 need_lib_prefix=no
9186 need_version=no
9187 case $host_cpu in
9188 ia64*)
9189 shrext_cmds='.so'
9190 hardcode_into_libs=yes
9191 dynamic_linker="$host_os dld.so"
9192 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 if test "X$HPUX_IA64_MODE" = X32; then
9197 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9198 else
9199 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9200 fi
9201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9202 ;;
9203 hppa*64*)
9204 shrext_cmds='.sl'
9205 hardcode_into_libs=yes
9206 dynamic_linker="$host_os dld.sl"
9207 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9213 ;;
9214 *)
9215 shrext_cmds='.sl'
9216 dynamic_linker="$host_os dld.sl"
9217 shlibpath_var=SHLIB_PATH
9218 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 ;;
9222 esac
9223 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9224 postinstall_cmds='chmod 555 $lib'
9225 ;;
9226  
9227 interix[3-9]*)
9228 version_type=linux
9229 need_lib_prefix=no
9230 need_version=no
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=no
9236 hardcode_into_libs=yes
9237 ;;
9238  
9239 irix5* | irix6* | nonstopux*)
9240 case $host_os in
9241 nonstopux*) version_type=nonstopux ;;
9242 *)
9243 if test "$lt_cv_prog_gnu_ld" = yes; then
9244 version_type=linux
9245 else
9246 version_type=irix
9247 fi ;;
9248 esac
9249 need_lib_prefix=no
9250 need_version=no
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9253 case $host_os in
9254 irix5* | nonstopux*)
9255 libsuff= shlibsuff=
9256 ;;
9257 *)
9258 case $LD in # libtool.m4 will add one of these switches to LD
9259 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9260 libsuff= shlibsuff= libmagic=32-bit;;
9261 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9262 libsuff=32 shlibsuff=N32 libmagic=N32;;
9263 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9264 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9265 *) libsuff= shlibsuff= libmagic=never-match;;
9266 esac
9267 ;;
9268 esac
9269 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9270 shlibpath_overrides_runpath=no
9271 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9272 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9273 hardcode_into_libs=yes
9274 ;;
9275  
9276 # No shared lib support for Linux oldld, aout, or coff.
9277 linux*oldld* | linux*aout* | linux*coff*)
9278 dynamic_linker=no
9279 ;;
9280  
9281 # This must be Linux ELF.
9282 linux* | k*bsd*-gnu)
9283 version_type=linux
9284 need_lib_prefix=no
9285 need_version=no
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 shlibpath_overrides_runpath=no
9291 # Some binutils ld are patched to set DT_RUNPATH
9292 save_LDFLAGS=$LDFLAGS
9293 save_libdir=$libdir
9294 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9295 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298  
9299 int
9300 main ()
9301 {
9302  
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9309 shlibpath_overrides_runpath=yes
9310 fi
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 LDFLAGS=$save_LDFLAGS
9315 libdir=$save_libdir
9316  
9317 # This implies no fast_install, which is unacceptable.
9318 # Some rework will be needed to allow for fast_install
9319 # before this can be enabled.
9320 hardcode_into_libs=yes
9321  
9322 # Append ld.so.conf contents to the search path
9323 if test -f /etc/ld.so.conf; then
9324 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' ' '`
9325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9326 fi
9327  
9328 # We used to test for /lib/ld.so.1 and disable shared libraries on
9329 # powerpc, because MkLinux only supported shared libraries with the
9330 # GNU dynamic linker. Since this was broken with cross compilers,
9331 # most powerpc-linux boxes support dynamic linking these days and
9332 # people can always --disable-shared, the test was removed, and we
9333 # assume the GNU/Linux dynamic linker is in use.
9334 dynamic_linker='GNU/Linux ld.so'
9335 ;;
9336  
9337 netbsdelf*-gnu)
9338 version_type=linux
9339 need_lib_prefix=no
9340 need_version=no
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9342 soname_spec='${libname}${release}${shared_ext}$major'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 shlibpath_overrides_runpath=no
9345 hardcode_into_libs=yes
9346 dynamic_linker='NetBSD ld.elf_so'
9347 ;;
9348  
9349 netbsd*)
9350 version_type=sunos
9351 need_lib_prefix=no
9352 need_version=no
9353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9356 dynamic_linker='NetBSD (a.out) ld.so'
9357 else
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 dynamic_linker='NetBSD ld.elf_so'
9361 fi
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9364 hardcode_into_libs=yes
9365 ;;
9366  
9367 newsos6)
9368 version_type=linux
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 shlibpath_overrides_runpath=yes
9372 ;;
9373  
9374 *nto* | *qnx*)
9375 version_type=qnx
9376 need_lib_prefix=no
9377 need_version=no
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=no
9382 hardcode_into_libs=yes
9383 dynamic_linker='ldqnx.so'
9384 ;;
9385  
9386 openbsd*)
9387 version_type=sunos
9388 sys_lib_dlsearch_path_spec="/usr/lib"
9389 need_lib_prefix=no
9390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9391 case $host_os in
9392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9393 *) need_version=no ;;
9394 esac
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9397 shlibpath_var=LD_LIBRARY_PATH
9398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9399 case $host_os in
9400 openbsd2.[89] | openbsd2.[89].*)
9401 shlibpath_overrides_runpath=no
9402 ;;
9403 *)
9404 shlibpath_overrides_runpath=yes
9405 ;;
9406 esac
9407 else
9408 shlibpath_overrides_runpath=yes
9409 fi
9410 ;;
9411  
9412 os2*)
9413 libname_spec='$name'
9414 shrext_cmds=".dll"
9415 need_lib_prefix=no
9416 library_names_spec='$libname${shared_ext} $libname.a'
9417 dynamic_linker='OS/2 ld.exe'
9418 shlibpath_var=LIBPATH
9419 ;;
9420  
9421 osf3* | osf4* | osf5*)
9422 version_type=osf
9423 need_lib_prefix=no
9424 need_version=no
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9430 ;;
9431  
9432 rdos*)
9433 dynamic_linker=no
9434 ;;
9435  
9436 solaris*)
9437 version_type=linux
9438 need_lib_prefix=no
9439 need_version=no
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes
9444 hardcode_into_libs=yes
9445 # ldd complains unless libraries are executable
9446 postinstall_cmds='chmod +x $lib'
9447 ;;
9448  
9449 sunos4*)
9450 version_type=sunos
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=yes
9455 if test "$with_gnu_ld" = yes; then
9456 need_lib_prefix=no
9457 fi
9458 need_version=yes
9459 ;;
9460  
9461 sysv4 | sysv4.3*)
9462 version_type=linux
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 case $host_vendor in
9467 sni)
9468 shlibpath_overrides_runpath=no
9469 need_lib_prefix=no
9470 runpath_var=LD_RUN_PATH
9471 ;;
9472 siemens)
9473 need_lib_prefix=no
9474 ;;
9475 motorola)
9476 need_lib_prefix=no
9477 need_version=no
9478 shlibpath_overrides_runpath=no
9479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9480 ;;
9481 esac
9482 ;;
9483  
9484 sysv4*MP*)
9485 if test -d /usr/nec ;then
9486 version_type=linux
9487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9488 soname_spec='$libname${shared_ext}.$major'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 fi
9491 ;;
9492  
9493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9494 version_type=freebsd-elf
9495 need_lib_prefix=no
9496 need_version=no
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 shlibpath_overrides_runpath=yes
9501 hardcode_into_libs=yes
9502 if test "$with_gnu_ld" = yes; then
9503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9504 else
9505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9506 case $host_os in
9507 sco3.2v5*)
9508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9509 ;;
9510 esac
9511 fi
9512 sys_lib_dlsearch_path_spec='/usr/lib'
9513 ;;
9514  
9515 tpf*)
9516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9517 version_type=linux
9518 need_lib_prefix=no
9519 need_version=no
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 shlibpath_overrides_runpath=no
9523 hardcode_into_libs=yes
9524 ;;
9525  
9526 uts4*)
9527 version_type=linux
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 ;;
9532  
9533 *)
9534 dynamic_linker=no
9535 ;;
9536 esac
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9538 $as_echo "$dynamic_linker" >&6; }
9539 test "$dynamic_linker" = no && can_build_shared=no
9540  
9541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9542 if test "$GCC" = yes; then
9543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9544 fi
9545  
9546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9548 fi
9549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9551 fi
9552  
9553  
9554  
9555  
9556  
9557  
9558  
9559  
9560  
9561  
9562  
9563  
9564  
9565  
9566  
9567  
9568  
9569  
9570  
9571  
9572  
9573  
9574  
9575  
9576  
9577  
9578  
9579  
9580  
9581  
9582  
9583  
9584  
9585  
9586  
9587  
9588  
9589  
9590  
9591  
9592  
9593  
9594  
9595  
9596  
9597  
9598  
9599  
9600  
9601  
9602  
9603  
9604  
9605  
9606  
9607  
9608  
9609  
9610  
9611  
9612  
9613  
9614  
9615  
9616  
9617  
9618  
9619  
9620  
9621  
9622  
9623  
9624  
9625  
9626  
9627  
9628  
9629  
9630  
9631  
9632  
9633  
9634  
9635  
9636  
9637  
9638  
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9640 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9641 hardcode_action=
9642 if test -n "$hardcode_libdir_flag_spec" ||
9643 test -n "$runpath_var" ||
9644 test "X$hardcode_automatic" = "Xyes" ; then
9645  
9646 # We can hardcode non-existent directories.
9647 if test "$hardcode_direct" != no &&
9648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9649 # have to relink, otherwise we might link with an installed library
9650 # when we should be linking with a yet-to-be-installed one
9651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9652 test "$hardcode_minus_L" != no; then
9653 # Linking always hardcodes the temporary library directory.
9654 hardcode_action=relink
9655 else
9656 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9657 hardcode_action=immediate
9658 fi
9659 else
9660 # We cannot hardcode anything, or else we can only hardcode existing
9661 # directories.
9662 hardcode_action=unsupported
9663 fi
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9665 $as_echo "$hardcode_action" >&6; }
9666  
9667 if test "$hardcode_action" = relink ||
9668 test "$inherit_rpath" = yes; then
9669 # Fast installation is not supported
9670 enable_fast_install=no
9671 elif test "$shlibpath_overrides_runpath" = yes ||
9672 test "$enable_shared" = no; then
9673 # Fast installation is not necessary
9674 enable_fast_install=needless
9675 fi
9676  
9677  
9678  
9679  
9680  
9681  
9682 if test "x$enable_dlopen" != xyes; then
9683 enable_dlopen=unknown
9684 enable_dlopen_self=unknown
9685 enable_dlopen_self_static=unknown
9686 else
9687 lt_cv_dlopen=no
9688 lt_cv_dlopen_libs=
9689  
9690 case $host_os in
9691 beos*)
9692 lt_cv_dlopen="load_add_on"
9693 lt_cv_dlopen_libs=
9694 lt_cv_dlopen_self=yes
9695 ;;
9696  
9697 mingw* | pw32* | cegcc*)
9698 lt_cv_dlopen="LoadLibrary"
9699 lt_cv_dlopen_libs=
9700 ;;
9701  
9702 cygwin*)
9703 lt_cv_dlopen="dlopen"
9704 lt_cv_dlopen_libs=
9705 ;;
9706  
9707 darwin*)
9708 # if libdl is installed we need to link against it
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9710 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 ac_check_lib_save_LIBS=$LIBS
9715 LIBS="-ldl $LIBS"
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718  
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char dlopen ();
9726 int
9727 main ()
9728 {
9729 return dlopen ();
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"; then :
9735 ac_cv_lib_dl_dlopen=yes
9736 else
9737 ac_cv_lib_dl_dlopen=no
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9744 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9745 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9747 else
9748  
9749 lt_cv_dlopen="dyld"
9750 lt_cv_dlopen_libs=
9751 lt_cv_dlopen_self=yes
9752  
9753 fi
9754  
9755 ;;
9756  
9757 *)
9758 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9759 if test "x$ac_cv_func_shl_load" = x""yes; then :
9760 lt_cv_dlopen="shl_load"
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9763 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9764 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 ac_check_lib_save_LIBS=$LIBS
9768 LIBS="-ldld $LIBS"
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771  
9772 /* Override any GCC internal prototype to avoid an error.
9773 Use char because int might match the return type of a GCC
9774 builtin and then its argument prototype would still apply. */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 char shl_load ();
9779 int
9780 main ()
9781 {
9782 return shl_load ();
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788 ac_cv_lib_dld_shl_load=yes
9789 else
9790 ac_cv_lib_dld_shl_load=no
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LIBS=$ac_check_lib_save_LIBS
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9797 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9798 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9800 else
9801 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9802 if test "x$ac_cv_func_dlopen" = x""yes; then :
9803 lt_cv_dlopen="dlopen"
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9807 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 ac_check_lib_save_LIBS=$LIBS
9811 LIBS="-ldl $LIBS"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814  
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 char dlopen ();
9822 int
9823 main ()
9824 {
9825 return dlopen ();
9826 ;
9827 return 0;
9828 }
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831 ac_cv_lib_dl_dlopen=yes
9832 else
9833 ac_cv_lib_dl_dlopen=no
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9841 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9845 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9846 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 ac_check_lib_save_LIBS=$LIBS
9850 LIBS="-lsvld $LIBS"
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853  
9854 /* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9857 #ifdef __cplusplus
9858 extern "C"
9859 #endif
9860 char dlopen ();
9861 int
9862 main ()
9863 {
9864 return dlopen ();
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_link "$LINENO"; then :
9870 ac_cv_lib_svld_dlopen=yes
9871 else
9872 ac_cv_lib_svld_dlopen=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 LIBS=$ac_check_lib_save_LIBS
9877 fi
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9879 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9880 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9884 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9885 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 ac_check_lib_save_LIBS=$LIBS
9889 LIBS="-ldld $LIBS"
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892  
9893 /* Override any GCC internal prototype to avoid an error.
9894 Use char because int might match the return type of a GCC
9895 builtin and then its argument prototype would still apply. */
9896 #ifdef __cplusplus
9897 extern "C"
9898 #endif
9899 char dld_link ();
9900 int
9901 main ()
9902 {
9903 return dld_link ();
9904 ;
9905 return 0;
9906 }
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"; then :
9909 ac_cv_lib_dld_dld_link=yes
9910 else
9911 ac_cv_lib_dld_dld_link=no
9912 fi
9913 rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915 LIBS=$ac_check_lib_save_LIBS
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9918 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9919 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9920 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9921 fi
9922  
9923  
9924 fi
9925  
9926  
9927 fi
9928  
9929  
9930 fi
9931  
9932  
9933 fi
9934  
9935  
9936 fi
9937  
9938 ;;
9939 esac
9940  
9941 if test "x$lt_cv_dlopen" != xno; then
9942 enable_dlopen=yes
9943 else
9944 enable_dlopen=no
9945 fi
9946  
9947 case $lt_cv_dlopen in
9948 dlopen)
9949 save_CPPFLAGS="$CPPFLAGS"
9950 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9951  
9952 save_LDFLAGS="$LDFLAGS"
9953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9954  
9955 save_LIBS="$LIBS"
9956 LIBS="$lt_cv_dlopen_libs $LIBS"
9957  
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9959 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9960 if test "${lt_cv_dlopen_self+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 if test "$cross_compiling" = yes; then :
9964 lt_cv_dlopen_self=cross
9965 else
9966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9967 lt_status=$lt_dlunknown
9968 cat > conftest.$ac_ext <<_LT_EOF
9969 #line 9969 "configure"
9970 #include "confdefs.h"
9971  
9972 #if HAVE_DLFCN_H
9973 #include <dlfcn.h>
9974 #endif
9975  
9976 #include <stdio.h>
9977  
9978 #ifdef RTLD_GLOBAL
9979 # define LT_DLGLOBAL RTLD_GLOBAL
9980 #else
9981 # ifdef DL_GLOBAL
9982 # define LT_DLGLOBAL DL_GLOBAL
9983 # else
9984 # define LT_DLGLOBAL 0
9985 # endif
9986 #endif
9987  
9988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9989 find out it does not work in some platform. */
9990 #ifndef LT_DLLAZY_OR_NOW
9991 # ifdef RTLD_LAZY
9992 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9993 # else
9994 # ifdef DL_LAZY
9995 # define LT_DLLAZY_OR_NOW DL_LAZY
9996 # else
9997 # ifdef RTLD_NOW
9998 # define LT_DLLAZY_OR_NOW RTLD_NOW
9999 # else
10000 # ifdef DL_NOW
10001 # define LT_DLLAZY_OR_NOW DL_NOW
10002 # else
10003 # define LT_DLLAZY_OR_NOW 0
10004 # endif
10005 # endif
10006 # endif
10007 # endif
10008 #endif
10009  
10010 void fnord() { int i=42;}
10011 int main ()
10012 {
10013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10014 int status = $lt_dlunknown;
10015  
10016 if (self)
10017 {
10018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10020 /* dlclose (self); */
10021 }
10022 else
10023 puts (dlerror ());
10024  
10025 return status;
10026 }
10027 _LT_EOF
10028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10029 (eval $ac_link) 2>&5
10030 ac_status=$?
10031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10032 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10033 (./conftest; exit; ) >&5 2>/dev/null
10034 lt_status=$?
10035 case x$lt_status in
10036 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10037 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10038 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10039 esac
10040 else :
10041 # compilation failed
10042 lt_cv_dlopen_self=no
10043 fi
10044 fi
10045 rm -fr conftest*
10046  
10047  
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10050 $as_echo "$lt_cv_dlopen_self" >&6; }
10051  
10052 if test "x$lt_cv_dlopen_self" = xyes; then
10053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10055 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10056 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 if test "$cross_compiling" = yes; then :
10060 lt_cv_dlopen_self_static=cross
10061 else
10062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10063 lt_status=$lt_dlunknown
10064 cat > conftest.$ac_ext <<_LT_EOF
10065 #line 10065 "configure"
10066 #include "confdefs.h"
10067  
10068 #if HAVE_DLFCN_H
10069 #include <dlfcn.h>
10070 #endif
10071  
10072 #include <stdio.h>
10073  
10074 #ifdef RTLD_GLOBAL
10075 # define LT_DLGLOBAL RTLD_GLOBAL
10076 #else
10077 # ifdef DL_GLOBAL
10078 # define LT_DLGLOBAL DL_GLOBAL
10079 # else
10080 # define LT_DLGLOBAL 0
10081 # endif
10082 #endif
10083  
10084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10085 find out it does not work in some platform. */
10086 #ifndef LT_DLLAZY_OR_NOW
10087 # ifdef RTLD_LAZY
10088 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10089 # else
10090 # ifdef DL_LAZY
10091 # define LT_DLLAZY_OR_NOW DL_LAZY
10092 # else
10093 # ifdef RTLD_NOW
10094 # define LT_DLLAZY_OR_NOW RTLD_NOW
10095 # else
10096 # ifdef DL_NOW
10097 # define LT_DLLAZY_OR_NOW DL_NOW
10098 # else
10099 # define LT_DLLAZY_OR_NOW 0
10100 # endif
10101 # endif
10102 # endif
10103 # endif
10104 #endif
10105  
10106 void fnord() { int i=42;}
10107 int main ()
10108 {
10109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10110 int status = $lt_dlunknown;
10111  
10112 if (self)
10113 {
10114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10115 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10116 /* dlclose (self); */
10117 }
10118 else
10119 puts (dlerror ());
10120  
10121 return status;
10122 }
10123 _LT_EOF
10124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10125 (eval $ac_link) 2>&5
10126 ac_status=$?
10127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10128 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10129 (./conftest; exit; ) >&5 2>/dev/null
10130 lt_status=$?
10131 case x$lt_status in
10132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10134 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10135 esac
10136 else :
10137 # compilation failed
10138 lt_cv_dlopen_self_static=no
10139 fi
10140 fi
10141 rm -fr conftest*
10142  
10143  
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10146 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10147 fi
10148  
10149 CPPFLAGS="$save_CPPFLAGS"
10150 LDFLAGS="$save_LDFLAGS"
10151 LIBS="$save_LIBS"
10152 ;;
10153 esac
10154  
10155 case $lt_cv_dlopen_self in
10156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10157 *) enable_dlopen_self=unknown ;;
10158 esac
10159  
10160 case $lt_cv_dlopen_self_static in
10161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10162 *) enable_dlopen_self_static=unknown ;;
10163 esac
10164 fi
10165  
10166  
10167  
10168  
10169  
10170  
10171  
10172  
10173  
10174  
10175  
10176  
10177  
10178  
10179  
10180  
10181  
10182 striplib=
10183 old_striplib=
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10185 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10186 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10187 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10188 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10190 $as_echo "yes" >&6; }
10191 else
10192 # FIXME - insert some real tests, host_os isn't really good enough
10193 case $host_os in
10194 darwin*)
10195 if test -n "$STRIP" ; then
10196 striplib="$STRIP -x"
10197 old_striplib="$STRIP -S"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10199 $as_echo "yes" >&6; }
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10203 fi
10204 ;;
10205 *)
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 ;;
10209 esac
10210 fi
10211  
10212  
10213  
10214  
10215  
10216  
10217  
10218  
10219  
10220  
10221  
10222  
10223 # Report which library types will actually be built
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10225 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10227 $as_echo "$can_build_shared" >&6; }
10228  
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10230 $as_echo_n "checking whether to build shared libraries... " >&6; }
10231 test "$can_build_shared" = "no" && enable_shared=no
10232  
10233 # On AIX, shared libraries and static libraries use the same namespace, and
10234 # are all built from PIC.
10235 case $host_os in
10236 aix3*)
10237 test "$enable_shared" = yes && enable_static=no
10238 if test -n "$RANLIB"; then
10239 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10240 postinstall_cmds='$RANLIB $lib'
10241 fi
10242 ;;
10243  
10244 aix[4-9]*)
10245 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10246 test "$enable_shared" = yes && enable_static=no
10247 fi
10248 ;;
10249 esac
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10251 $as_echo "$enable_shared" >&6; }
10252  
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10254 $as_echo_n "checking whether to build static libraries... " >&6; }
10255 # Make sure either enable_shared or enable_static is yes.
10256 test "$enable_shared" = yes || enable_static=yes
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10258 $as_echo "$enable_static" >&6; }
10259  
10260  
10261  
10262  
10263 fi
10264 ac_ext=c
10265 ac_cpp='$CPP $CPPFLAGS'
10266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10269  
10270 CC="$lt_save_CC"
10271  
10272  
10273  
10274  
10275  
10276  
10277  
10278  
10279  
10280  
10281  
10282  
10283  
10284 ac_config_commands="$ac_config_commands libtool"
10285  
10286  
10287  
10288  
10289 # Only expand once:
10290  
10291  
10292  
10293 ac_config_files="$ac_config_files Makefile src/Makefile"
10294  
10295 cat >confcache <<\_ACEOF
10296 # This file is a shell script that caches the results of configure
10297 # tests run on this system so they can be shared between configure
10298 # scripts and configure runs, see configure's option --config-cache.
10299 # It is not useful on other systems. If it contains results you don't
10300 # want to keep, you may remove or edit it.
10301 #
10302 # config.status only pays attention to the cache file if you give it
10303 # the --recheck option to rerun configure.
10304 #
10305 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10306 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10307 # following values.
10308  
10309 _ACEOF
10310  
10311 # The following way of writing the cache mishandles newlines in values,
10312 # but we know of no workaround that is simple, portable, and efficient.
10313 # So, we kill variables containing newlines.
10314 # Ultrix sh set writes to stderr and can't be redirected directly,
10315 # and sets the high bit in the cache file unless we assign to the vars.
10316 (
10317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10318 eval ac_val=\$$ac_var
10319 case $ac_val in #(
10320 *${as_nl}*)
10321 case $ac_var in #(
10322 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10323 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10324 esac
10325 case $ac_var in #(
10326 _ | IFS | as_nl) ;; #(
10327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10328 *) { eval $ac_var=; unset $ac_var;} ;;
10329 esac ;;
10330 esac
10331 done
10332  
10333 (set) 2>&1 |
10334 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10335 *${as_nl}ac_space=\ *)
10336 # `set' does not quote correctly, so add quotes: double-quote
10337 # substitution turns \\\\ into \\, and sed turns \\ into \.
10338 sed -n \
10339 "s/'/'\\\\''/g;
10340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10341 ;; #(
10342 *)
10343 # `set' quotes correctly as required by POSIX, so do not add quotes.
10344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10345 ;;
10346 esac |
10347 sort
10348 ) |
10349 sed '
10350 /^ac_cv_env_/b end
10351 t clear
10352 :clear
10353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10354 t end
10355 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10356 :end' >>confcache
10357 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10358 if test -w "$cache_file"; then
10359 test "x$cache_file" != "x/dev/null" &&
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10361 $as_echo "$as_me: updating cache $cache_file" >&6;}
10362 cat confcache >$cache_file
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10365 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10366 fi
10367 fi
10368 rm -f confcache
10369  
10370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10371 # Let make expand exec_prefix.
10372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10373  
10374 DEFS=-DHAVE_CONFIG_H
10375  
10376 ac_libobjs=
10377 ac_ltlibobjs=
10378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10379 # 1. Remove the extension, and $U if already installed.
10380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10381 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10383 # will be set to the directory where LIBOBJS objects are built.
10384 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10385 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10386 done
10387 LIBOBJS=$ac_libobjs
10388  
10389 LTLIBOBJS=$ac_ltlibobjs
10390  
10391  
10392 if test -n "$EXEEXT"; then
10393 am__EXEEXT_TRUE=
10394 am__EXEEXT_FALSE='#'
10395 else
10396 am__EXEEXT_TRUE='#'
10397 am__EXEEXT_FALSE=
10398 fi
10399  
10400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10401 as_fn_error "conditional \"AMDEP\" was never defined.
10402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10403 fi
10404 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10405 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10407 fi
10408  
10409 : ${CONFIG_STATUS=./config.status}
10410 ac_write_fail=0
10411 ac_clean_files_save=$ac_clean_files
10412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10415 as_write_fail=0
10416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10417 #! $SHELL
10418 # Generated by $as_me.
10419 # Run this file to recreate the current configuration.
10420 # Compiler output produced by configure, useful for debugging
10421 # configure, is in config.log if it exists.
10422  
10423 debug=false
10424 ac_cs_recheck=false
10425 ac_cs_silent=false
10426  
10427 SHELL=\${CONFIG_SHELL-$SHELL}
10428 export SHELL
10429 _ASEOF
10430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10431 ## -------------------- ##
10432 ## M4sh Initialization. ##
10433 ## -------------------- ##
10434  
10435 # Be more Bourne compatible
10436 DUALCASE=1; export DUALCASE # for MKS sh
10437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10438 emulate sh
10439 NULLCMD=:
10440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10441 # is contrary to our usage. Disable this feature.
10442 alias -g '${1+"$@"}'='"$@"'
10443 setopt NO_GLOB_SUBST
10444 else
10445 case `(set -o) 2>/dev/null` in #(
10446 *posix*) :
10447 set -o posix ;; #(
10448 *) :
10449 ;;
10450 esac
10451 fi
10452  
10453  
10454 as_nl='
10455 '
10456 export as_nl
10457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10458 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10461 # Prefer a ksh shell builtin over an external printf program on Solaris,
10462 # but without wasting forks for bash or zsh.
10463 if test -z "$BASH_VERSION$ZSH_VERSION" \
10464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10465 as_echo='print -r --'
10466 as_echo_n='print -rn --'
10467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10468 as_echo='printf %s\n'
10469 as_echo_n='printf %s'
10470 else
10471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10473 as_echo_n='/usr/ucb/echo -n'
10474 else
10475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10476 as_echo_n_body='eval
10477 arg=$1;
10478 case $arg in #(
10479 *"$as_nl"*)
10480 expr "X$arg" : "X\\(.*\\)$as_nl";
10481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10482 esac;
10483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10484 '
10485 export as_echo_n_body
10486 as_echo_n='sh -c $as_echo_n_body as_echo'
10487 fi
10488 export as_echo_body
10489 as_echo='sh -c $as_echo_body as_echo'
10490 fi
10491  
10492 # The user is always right.
10493 if test "${PATH_SEPARATOR+set}" != set; then
10494 PATH_SEPARATOR=:
10495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10497 PATH_SEPARATOR=';'
10498 }
10499 fi
10500  
10501  
10502 # IFS
10503 # We need space, tab and new line, in precisely that order. Quoting is
10504 # there to prevent editors from complaining about space-tab.
10505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10506 # splitting by setting IFS to empty value.)
10507 IFS=" "" $as_nl"
10508  
10509 # Find who we are. Look in the path if we contain no directory separator.
10510 case $0 in #((
10511 *[\\/]* ) as_myself=$0 ;;
10512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10514 do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10518 done
10519 IFS=$as_save_IFS
10520  
10521 ;;
10522 esac
10523 # We did not find ourselves, most probably we were run as `sh COMMAND'
10524 # in which case we are not to be found in the path.
10525 if test "x$as_myself" = x; then
10526 as_myself=$0
10527 fi
10528 if test ! -f "$as_myself"; then
10529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10530 exit 1
10531 fi
10532  
10533 # Unset variables that we do not need and which cause bugs (e.g. in
10534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10535 # suppresses any "Segmentation fault" message there. '((' could
10536 # trigger a bug in pdksh 5.2.14.
10537 for as_var in BASH_ENV ENV MAIL MAILPATH
10538 do eval test x\${$as_var+set} = xset \
10539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10540 done
10541 PS1='$ '
10542 PS2='> '
10543 PS4='+ '
10544  
10545 # NLS nuisances.
10546 LC_ALL=C
10547 export LC_ALL
10548 LANGUAGE=C
10549 export LANGUAGE
10550  
10551 # CDPATH.
10552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10553  
10554  
10555 # as_fn_error ERROR [LINENO LOG_FD]
10556 # ---------------------------------
10557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10559 # script with status $?, using 1 if that was 0.
10560 as_fn_error ()
10561 {
10562 as_status=$?; test $as_status -eq 0 && as_status=1
10563 if test "$3"; then
10564 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10566 fi
10567 $as_echo "$as_me: error: $1" >&2
10568 as_fn_exit $as_status
10569 } # as_fn_error
10570  
10571  
10572 # as_fn_set_status STATUS
10573 # -----------------------
10574 # Set $? to STATUS, without forking.
10575 as_fn_set_status ()
10576 {
10577 return $1
10578 } # as_fn_set_status
10579  
10580 # as_fn_exit STATUS
10581 # -----------------
10582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10583 as_fn_exit ()
10584 {
10585 set +e
10586 as_fn_set_status $1
10587 exit $1
10588 } # as_fn_exit
10589  
10590 # as_fn_unset VAR
10591 # ---------------
10592 # Portably unset VAR.
10593 as_fn_unset ()
10594 {
10595 { eval $1=; unset $1;}
10596 }
10597 as_unset=as_fn_unset
10598 # as_fn_append VAR VALUE
10599 # ----------------------
10600 # Append the text in VALUE to the end of the definition contained in VAR. Take
10601 # advantage of any shell optimizations that allow amortized linear growth over
10602 # repeated appends, instead of the typical quadratic growth present in naive
10603 # implementations.
10604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10605 eval 'as_fn_append ()
10606 {
10607 eval $1+=\$2
10608 }'
10609 else
10610 as_fn_append ()
10611 {
10612 eval $1=\$$1\$2
10613 }
10614 fi # as_fn_append
10615  
10616 # as_fn_arith ARG...
10617 # ------------------
10618 # Perform arithmetic evaluation on the ARGs, and store the result in the
10619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10620 # must be portable across $(()) and expr.
10621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10622 eval 'as_fn_arith ()
10623 {
10624 as_val=$(( $* ))
10625 }'
10626 else
10627 as_fn_arith ()
10628 {
10629 as_val=`expr "$@" || test $? -eq 1`
10630 }
10631 fi # as_fn_arith
10632  
10633  
10634 if expr a : '\(a\)' >/dev/null 2>&1 &&
10635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10636 as_expr=expr
10637 else
10638 as_expr=false
10639 fi
10640  
10641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10642 as_basename=basename
10643 else
10644 as_basename=false
10645 fi
10646  
10647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10648 as_dirname=dirname
10649 else
10650 as_dirname=false
10651 fi
10652  
10653 as_me=`$as_basename -- "$0" ||
10654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10655 X"$0" : 'X\(//\)$' \| \
10656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10657 $as_echo X/"$0" |
10658 sed '/^.*\/\([^/][^/]*\)\/*$/{
10659 s//\1/
10660 q
10661 }
10662 /^X\/\(\/\/\)$/{
10663 s//\1/
10664 q
10665 }
10666 /^X\/\(\/\).*/{
10667 s//\1/
10668 q
10669 }
10670 s/.*/./; q'`
10671  
10672 # Avoid depending upon Character Ranges.
10673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10676 as_cr_digits='0123456789'
10677 as_cr_alnum=$as_cr_Letters$as_cr_digits
10678  
10679 ECHO_C= ECHO_N= ECHO_T=
10680 case `echo -n x` in #(((((
10681 -n*)
10682 case `echo 'xy\c'` in
10683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10684 xy) ECHO_C='\c';;
10685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10686 ECHO_T=' ';;
10687 esac;;
10688 *)
10689 ECHO_N='-n';;
10690 esac
10691  
10692 rm -f conf$$ conf$$.exe conf$$.file
10693 if test -d conf$$.dir; then
10694 rm -f conf$$.dir/conf$$.file
10695 else
10696 rm -f conf$$.dir
10697 mkdir conf$$.dir 2>/dev/null
10698 fi
10699 if (echo >conf$$.file) 2>/dev/null; then
10700 if ln -s conf$$.file conf$$ 2>/dev/null; then
10701 as_ln_s='ln -s'
10702 # ... but there are two gotchas:
10703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10705 # In both cases, we have to default to `cp -p'.
10706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10707 as_ln_s='cp -p'
10708 elif ln conf$$.file conf$$ 2>/dev/null; then
10709 as_ln_s=ln
10710 else
10711 as_ln_s='cp -p'
10712 fi
10713 else
10714 as_ln_s='cp -p'
10715 fi
10716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10717 rmdir conf$$.dir 2>/dev/null
10718  
10719  
10720 # as_fn_mkdir_p
10721 # -------------
10722 # Create "$as_dir" as a directory, including parents if necessary.
10723 as_fn_mkdir_p ()
10724 {
10725  
10726 case $as_dir in #(
10727 -*) as_dir=./$as_dir;;
10728 esac
10729 test -d "$as_dir" || eval $as_mkdir_p || {
10730 as_dirs=
10731 while :; do
10732 case $as_dir in #(
10733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10734 *) as_qdir=$as_dir;;
10735 esac
10736 as_dirs="'$as_qdir' $as_dirs"
10737 as_dir=`$as_dirname -- "$as_dir" ||
10738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10739 X"$as_dir" : 'X\(//\)[^/]' \| \
10740 X"$as_dir" : 'X\(//\)$' \| \
10741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10742 $as_echo X"$as_dir" |
10743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10744 s//\1/
10745 q
10746 }
10747 /^X\(\/\/\)[^/].*/{
10748 s//\1/
10749 q
10750 }
10751 /^X\(\/\/\)$/{
10752 s//\1/
10753 q
10754 }
10755 /^X\(\/\).*/{
10756 s//\1/
10757 q
10758 }
10759 s/.*/./; q'`
10760 test -d "$as_dir" && break
10761 done
10762 test -z "$as_dirs" || eval "mkdir $as_dirs"
10763 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10764  
10765  
10766 } # as_fn_mkdir_p
10767 if mkdir -p . 2>/dev/null; then
10768 as_mkdir_p='mkdir -p "$as_dir"'
10769 else
10770 test -d ./-p && rmdir ./-p
10771 as_mkdir_p=false
10772 fi
10773  
10774 if test -x / >/dev/null 2>&1; then
10775 as_test_x='test -x'
10776 else
10777 if ls -dL / >/dev/null 2>&1; then
10778 as_ls_L_option=L
10779 else
10780 as_ls_L_option=
10781 fi
10782 as_test_x='
10783 eval sh -c '\''
10784 if test -d "$1"; then
10785 test -d "$1/.";
10786 else
10787 case $1 in #(
10788 -*)set "./$1";;
10789 esac;
10790 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10791 ???[sx]*):;;*)false;;esac;fi
10792 '\'' sh
10793 '
10794 fi
10795 as_executable_p=$as_test_x
10796  
10797 # Sed expression to map a string onto a valid CPP name.
10798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10799  
10800 # Sed expression to map a string onto a valid variable name.
10801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10802  
10803  
10804 exec 6>&1
10805 ## ----------------------------------- ##
10806 ## Main body of $CONFIG_STATUS script. ##
10807 ## ----------------------------------- ##
10808 _ASEOF
10809 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10810  
10811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10812 # Save the log message, to keep $0 and so on meaningful, and to
10813 # report actual input values of CONFIG_FILES etc. instead of their
10814 # values after options handling.
10815 ac_log="
10816 This file was extended by $as_me, which was
10817 generated by GNU Autoconf 2.64. Invocation command line was
10818  
10819 CONFIG_FILES = $CONFIG_FILES
10820 CONFIG_HEADERS = $CONFIG_HEADERS
10821 CONFIG_LINKS = $CONFIG_LINKS
10822 CONFIG_COMMANDS = $CONFIG_COMMANDS
10823 $ $0 $@
10824  
10825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10826 "
10827  
10828 _ACEOF
10829  
10830 case $ac_config_files in *"
10831 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10832 esac
10833  
10834 case $ac_config_headers in *"
10835 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10836 esac
10837  
10838  
10839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10840 # Files that config.status was made for.
10841 config_files="$ac_config_files"
10842 config_headers="$ac_config_headers"
10843 config_commands="$ac_config_commands"
10844  
10845 _ACEOF
10846  
10847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10848 ac_cs_usage="\
10849 \`$as_me' instantiates files and other configuration actions
10850 from templates according to the current configuration. Unless the files
10851 and actions are specified as TAGs, all are instantiated by default.
10852  
10853 Usage: $0 [OPTION]... [TAG]...
10854  
10855 -h, --help print this help, then exit
10856 -V, --version print version number and configuration settings, then exit
10857 -q, --quiet, --silent
10858 do not print progress messages
10859 -d, --debug don't remove temporary files
10860 --recheck update $as_me by reconfiguring in the same conditions
10861 --file=FILE[:TEMPLATE]
10862 instantiate the configuration file FILE
10863 --header=FILE[:TEMPLATE]
10864 instantiate the configuration header FILE
10865  
10866 Configuration files:
10867 $config_files
10868  
10869 Configuration headers:
10870 $config_headers
10871  
10872 Configuration commands:
10873 $config_commands
10874  
10875 Report bugs to the package provider."
10876  
10877 _ACEOF
10878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10879 ac_cs_version="\\
10880 config.status
10881 configured by $0, generated by GNU Autoconf 2.64,
10882 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10883  
10884 Copyright (C) 2009 Free Software Foundation, Inc.
10885 This config.status script is free software; the Free Software Foundation
10886 gives unlimited permission to copy, distribute and modify it."
10887  
10888 ac_pwd='$ac_pwd'
10889 srcdir='$srcdir'
10890 INSTALL='$INSTALL'
10891 MKDIR_P='$MKDIR_P'
10892 AWK='$AWK'
10893 test -n "\$AWK" || AWK=awk
10894 _ACEOF
10895  
10896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10897 # The default lists apply if the user does not specify any file.
10898 ac_need_defaults=:
10899 while test $# != 0
10900 do
10901 case $1 in
10902 --*=*)
10903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10905 ac_shift=:
10906 ;;
10907 *)
10908 ac_option=$1
10909 ac_optarg=$2
10910 ac_shift=shift
10911 ;;
10912 esac
10913  
10914 case $ac_option in
10915 # Handling of the options.
10916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10917 ac_cs_recheck=: ;;
10918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10919 $as_echo "$ac_cs_version"; exit ;;
10920 --debug | --debu | --deb | --de | --d | -d )
10921 debug=: ;;
10922 --file | --fil | --fi | --f )
10923 $ac_shift
10924 case $ac_optarg in
10925 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10926 esac
10927 as_fn_append CONFIG_FILES " '$ac_optarg'"
10928 ac_need_defaults=false;;
10929 --header | --heade | --head | --hea )
10930 $ac_shift
10931 case $ac_optarg in
10932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10933 esac
10934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10935 ac_need_defaults=false;;
10936 --he | --h)
10937 # Conflict between --help and --header
10938 as_fn_error "ambiguous option: \`$1'
10939 Try \`$0 --help' for more information.";;
10940 --help | --hel | -h )
10941 $as_echo "$ac_cs_usage"; exit ;;
10942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10944 ac_cs_silent=: ;;
10945  
10946 # This is an error.
10947 -*) as_fn_error "unrecognized option: \`$1'
10948 Try \`$0 --help' for more information." ;;
10949  
10950 *) as_fn_append ac_config_targets " $1"
10951 ac_need_defaults=false ;;
10952  
10953 esac
10954 shift
10955 done
10956  
10957 ac_configure_extra_args=
10958  
10959 if $ac_cs_silent; then
10960 exec 6>/dev/null
10961 ac_configure_extra_args="$ac_configure_extra_args --silent"
10962 fi
10963  
10964 _ACEOF
10965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10966 if \$ac_cs_recheck; then
10967 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10968 shift
10969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10970 CONFIG_SHELL='$SHELL'
10971 export CONFIG_SHELL
10972 exec "\$@"
10973 fi
10974  
10975 _ACEOF
10976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10977 exec 5>>config.log
10978 {
10979 echo
10980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10981 ## Running $as_me. ##
10982 _ASBOX
10983 $as_echo "$ac_log"
10984 } >&5
10985  
10986 _ACEOF
10987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10988 #
10989 # INIT-COMMANDS
10990 #
10991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10992  
10993  
10994 # The HP-UX ksh and POSIX shell print the target directory to stdout
10995 # if CDPATH is set.
10996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10997  
10998 sed_quote_subst='$sed_quote_subst'
10999 double_quote_subst='$double_quote_subst'
11000 delay_variable_subst='$delay_variable_subst'
11001 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11002 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11003 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11004 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11005 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11006 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11007 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11008 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11009 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11010 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11011 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11012 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11013 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11014 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11015 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11016 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11017 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11018 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11019 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11020 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11021 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11022 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11023 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11024 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11025 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11026 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11027 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11028 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11029 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11030 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11031 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11032 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11033 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11034 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11035 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11036 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11037 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11038 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11039 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11040 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11041 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11042 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11043 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11044 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11045 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"`'
11046 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"`'
11047 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11048 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11049 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11050 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11051 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11052 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11053 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11054 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11055 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11056 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11057 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11058 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11059 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11060 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11061 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11062 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11063 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11064 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11065 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11066 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11067 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11068 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11069 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11070 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11071 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11072 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11073 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11074 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11075 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11076 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11077 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11078 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11079 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11080 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11081 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11082 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11083 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11084 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11085 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11086 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11087 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11088 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11089 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11090 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11091 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11092 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11093 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11094 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11095 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11096 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11097 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11098 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11099 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11100 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11101 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11102 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11103 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11104 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11105 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11106 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11107 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11108 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11109 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11110 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11111 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11112 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11113 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11114 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11115 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11116 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11117 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11118 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11119  
11120 LTCC='$LTCC'
11121 LTCFLAGS='$LTCFLAGS'
11122 compiler='$compiler_DEFAULT'
11123  
11124 # Quote evaled strings.
11125 for var in SED \
11126 GREP \
11127 EGREP \
11128 FGREP \
11129 LD \
11130 NM \
11131 LN_S \
11132 lt_SP2NL \
11133 lt_NL2SP \
11134 reload_flag \
11135 OBJDUMP \
11136 deplibs_check_method \
11137 file_magic_cmd \
11138 AR \
11139 AR_FLAGS \
11140 STRIP \
11141 RANLIB \
11142 CC \
11143 CFLAGS \
11144 compiler \
11145 lt_cv_sys_global_symbol_pipe \
11146 lt_cv_sys_global_symbol_to_cdecl \
11147 lt_cv_sys_global_symbol_to_c_name_address \
11148 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11149 SHELL \
11150 ECHO \
11151 lt_prog_compiler_no_builtin_flag \
11152 lt_prog_compiler_wl \
11153 lt_prog_compiler_pic \
11154 lt_prog_compiler_static \
11155 lt_cv_prog_compiler_c_o \
11156 need_locks \
11157 DSYMUTIL \
11158 NMEDIT \
11159 LIPO \
11160 OTOOL \
11161 OTOOL64 \
11162 shrext_cmds \
11163 export_dynamic_flag_spec \
11164 whole_archive_flag_spec \
11165 compiler_needs_object \
11166 with_gnu_ld \
11167 allow_undefined_flag \
11168 no_undefined_flag \
11169 hardcode_libdir_flag_spec \
11170 hardcode_libdir_flag_spec_ld \
11171 hardcode_libdir_separator \
11172 fix_srcfile_path \
11173 exclude_expsyms \
11174 include_expsyms \
11175 file_list_spec \
11176 variables_saved_for_relink \
11177 libname_spec \
11178 library_names_spec \
11179 soname_spec \
11180 finish_eval \
11181 old_striplib \
11182 striplib; do
11183 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11184 *[\\\\\\\`\\"\\\$]*)
11185 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11186 ;;
11187 *)
11188 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11189 ;;
11190 esac
11191 done
11192  
11193 # Double-quote double-evaled strings.
11194 for var in reload_cmds \
11195 old_postinstall_cmds \
11196 old_postuninstall_cmds \
11197 old_archive_cmds \
11198 extract_expsyms_cmds \
11199 old_archive_from_new_cmds \
11200 old_archive_from_expsyms_cmds \
11201 archive_cmds \
11202 archive_expsym_cmds \
11203 module_cmds \
11204 module_expsym_cmds \
11205 export_symbols_cmds \
11206 prelink_cmds \
11207 postinstall_cmds \
11208 postuninstall_cmds \
11209 finish_cmds \
11210 sys_lib_search_path_spec \
11211 sys_lib_dlsearch_path_spec; do
11212 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11213 *[\\\\\\\`\\"\\\$]*)
11214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11215 ;;
11216 *)
11217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11218 ;;
11219 esac
11220 done
11221  
11222 # Fix-up fallback echo if it was mangled by the above quoting rules.
11223 case \$lt_ECHO in
11224 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11225 ;;
11226 esac
11227  
11228 ac_aux_dir='$ac_aux_dir'
11229 xsi_shell='$xsi_shell'
11230 lt_shell_append='$lt_shell_append'
11231  
11232 # See if we are running on zsh, and set the options which allow our
11233 # commands through without removal of \ escapes INIT.
11234 if test -n "\${ZSH_VERSION+set}" ; then
11235 setopt NO_GLOB_SUBST
11236 fi
11237  
11238  
11239 PACKAGE='$PACKAGE'
11240 VERSION='$VERSION'
11241 TIMESTAMP='$TIMESTAMP'
11242 RM='$RM'
11243 ofile='$ofile'
11244  
11245  
11246  
11247  
11248 _ACEOF
11249  
11250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11251  
11252 # Handling of arguments.
11253 for ac_config_target in $ac_config_targets
11254 do
11255 case $ac_config_target in
11256 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11257 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11258 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11259 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11260 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11261  
11262 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11263 esac
11264 done
11265  
11266  
11267 # If the user did not use the arguments to specify the items to instantiate,
11268 # then the envvar interface is used. Set only those that are not.
11269 # We use the long form for the default assignment because of an extremely
11270 # bizarre bug on SunOS 4.1.3.
11271 if $ac_need_defaults; then
11272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11275 fi
11276  
11277 # Have a temporary directory for convenience. Make it in the build tree
11278 # simply because there is no reason against having it here, and in addition,
11279 # creating and moving files from /tmp can sometimes cause problems.
11280 # Hook for its removal unless debugging.
11281 # Note that there is a small window in which the directory will not be cleaned:
11282 # after its creation but before its name has been assigned to `$tmp'.
11283 $debug ||
11284 {
11285 tmp=
11286 trap 'exit_status=$?
11287 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11288 ' 0
11289 trap 'as_fn_exit 1' 1 2 13 15
11290 }
11291 # Create a (secure) tmp directory for tmp files.
11292  
11293 {
11294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11295 test -n "$tmp" && test -d "$tmp"
11296 } ||
11297 {
11298 tmp=./conf$$-$RANDOM
11299 (umask 077 && mkdir "$tmp")
11300 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11301  
11302 # Set up the scripts for CONFIG_FILES section.
11303 # No need to generate them if there are no CONFIG_FILES.
11304 # This happens for instance with `./config.status config.h'.
11305 if test -n "$CONFIG_FILES"; then
11306  
11307  
11308 ac_cr=`echo X | tr X '\015'`
11309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11310 # But we know of no other shell where ac_cr would be empty at this
11311 # point, so we can use a bashism as a fallback.
11312 if test "x$ac_cr" = x; then
11313 eval ac_cr=\$\'\\r\'
11314 fi
11315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11317 ac_cs_awk_cr='\r'
11318 else
11319 ac_cs_awk_cr=$ac_cr
11320 fi
11321  
11322 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11323 _ACEOF
11324  
11325  
11326 {
11327 echo "cat >conf$$subs.awk <<_ACEOF" &&
11328 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11329 echo "_ACEOF"
11330 } >conf$$subs.sh ||
11331 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11333 ac_delim='%!_!# '
11334 for ac_last_try in false false false false false :; do
11335 . ./conf$$subs.sh ||
11336 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11337  
11338 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11339 if test $ac_delim_n = $ac_delim_num; then
11340 break
11341 elif $ac_last_try; then
11342 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11343 else
11344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11345 fi
11346 done
11347 rm -f conf$$subs.sh
11348  
11349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11350 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11351 _ACEOF
11352 sed -n '
11353 h
11354 s/^/S["/; s/!.*/"]=/
11355 p
11356 g
11357 s/^[^!]*!//
11358 :repl
11359 t repl
11360 s/'"$ac_delim"'$//
11361 t delim
11362 :nl
11363 h
11364 s/\(.\{148\}\).*/\1/
11365 t more1
11366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11367 p
11368 n
11369 b repl
11370 :more1
11371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11372 p
11373 g
11374 s/.\{148\}//
11375 t nl
11376 :delim
11377 h
11378 s/\(.\{148\}\).*/\1/
11379 t more2
11380 s/["\\]/\\&/g; s/^/"/; s/$/"/
11381 p
11382 b
11383 :more2
11384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11385 p
11386 g
11387 s/.\{148\}//
11388 t delim
11389 ' <conf$$subs.awk | sed '
11390 /^[^""]/{
11391 N
11392 s/\n//
11393 }
11394 ' >>$CONFIG_STATUS || ac_write_fail=1
11395 rm -f conf$$subs.awk
11396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 _ACAWK
11398 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11399 for (key in S) S_is_set[key] = 1
11400 FS = ""
11401  
11402 }
11403 {
11404 line = $ 0
11405 nfields = split(line, field, "@")
11406 substed = 0
11407 len = length(field[1])
11408 for (i = 2; i < nfields; i++) {
11409 key = field[i]
11410 keylen = length(key)
11411 if (S_is_set[key]) {
11412 value = S[key]
11413 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11414 len += length(value) + length(field[++i])
11415 substed = 1
11416 } else
11417 len += 1 + keylen
11418 }
11419  
11420 print line
11421 }
11422  
11423 _ACAWK
11424 _ACEOF
11425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11427 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11428 else
11429 cat
11430 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11431 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11432 _ACEOF
11433  
11434 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11435 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11436 # trailing colons and then remove the whole line if VPATH becomes empty
11437 # (actually we leave an empty line to preserve line numbers).
11438 if test "x$srcdir" = x.; then
11439 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11440 s/:*\$(srcdir):*/:/
11441 s/:*\${srcdir}:*/:/
11442 s/:*@srcdir@:*/:/
11443 s/^\([^=]*=[ ]*\):*/\1/
11444 s/:*$//
11445 s/^[^=]*=[ ]*$//
11446 }'
11447 fi
11448  
11449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11450 fi # test -n "$CONFIG_FILES"
11451  
11452 # Set up the scripts for CONFIG_HEADERS section.
11453 # No need to generate them if there are no CONFIG_HEADERS.
11454 # This happens for instance with `./config.status Makefile'.
11455 if test -n "$CONFIG_HEADERS"; then
11456 cat >"$tmp/defines.awk" <<\_ACAWK ||
11457 BEGIN {
11458 _ACEOF
11459  
11460 # Transform confdefs.h into an awk script `defines.awk', embedded as
11461 # here-document in config.status, that substitutes the proper values into
11462 # config.h.in to produce config.h.
11463  
11464 # Create a delimiter string that does not exist in confdefs.h, to ease
11465 # handling of long lines.
11466 ac_delim='%!_!# '
11467 for ac_last_try in false false :; do
11468 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11469 if test -z "$ac_t"; then
11470 break
11471 elif $ac_last_try; then
11472 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11473 else
11474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11475 fi
11476 done
11477  
11478 # For the awk script, D is an array of macro values keyed by name,
11479 # likewise P contains macro parameters if any. Preserve backslash
11480 # newline sequences.
11481  
11482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11483 sed -n '
11484 s/.\{148\}/&'"$ac_delim"'/g
11485 t rset
11486 :rset
11487 s/^[ ]*#[ ]*define[ ][ ]*/ /
11488 t def
11489 d
11490 :def
11491 s/\\$//
11492 t bsnl
11493 s/["\\]/\\&/g
11494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11495 D["\1"]=" \3"/p
11496 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11497 d
11498 :bsnl
11499 s/["\\]/\\&/g
11500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11501 D["\1"]=" \3\\\\\\n"\\/p
11502 t cont
11503 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11504 t cont
11505 d
11506 :cont
11507 n
11508 s/.\{148\}/&'"$ac_delim"'/g
11509 t clear
11510 :clear
11511 s/\\$//
11512 t bsnlc
11513 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11514 d
11515 :bsnlc
11516 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11517 b cont
11518 ' <confdefs.h | sed '
11519 s/'"$ac_delim"'/"\\\
11520 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11521  
11522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11523 for (key in D) D_is_set[key] = 1
11524 FS = ""
11525 }
11526 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11527 line = \$ 0
11528 split(line, arg, " ")
11529 if (arg[1] == "#") {
11530 defundef = arg[2]
11531 mac1 = arg[3]
11532 } else {
11533 defundef = substr(arg[1], 2)
11534 mac1 = arg[2]
11535 }
11536 split(mac1, mac2, "(") #)
11537 macro = mac2[1]
11538 prefix = substr(line, 1, index(line, defundef) - 1)
11539 if (D_is_set[macro]) {
11540 # Preserve the white space surrounding the "#".
11541 print prefix "define", macro P[macro] D[macro]
11542 next
11543 } else {
11544 # Replace #undef with comments. This is necessary, for example,
11545 # in the case of _POSIX_SOURCE, which is predefined and required
11546 # on some systems where configure will not decide to define it.
11547 if (defundef == "undef") {
11548 print "/*", prefix defundef, macro, "*/"
11549 next
11550 }
11551 }
11552 }
11553 { print }
11554 _ACAWK
11555 _ACEOF
11556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11557 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11558 fi # test -n "$CONFIG_HEADERS"
11559  
11560  
11561 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11562 shift
11563 for ac_tag
11564 do
11565 case $ac_tag in
11566 :[FHLC]) ac_mode=$ac_tag; continue;;
11567 esac
11568 case $ac_mode$ac_tag in
11569 :[FHL]*:*);;
11570 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11571 :[FH]-) ac_tag=-:-;;
11572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11573 esac
11574 ac_save_IFS=$IFS
11575 IFS=:
11576 set x $ac_tag
11577 IFS=$ac_save_IFS
11578 shift
11579 ac_file=$1
11580 shift
11581  
11582 case $ac_mode in
11583 :L) ac_source=$1;;
11584 :[FH])
11585 ac_file_inputs=
11586 for ac_f
11587 do
11588 case $ac_f in
11589 -) ac_f="$tmp/stdin";;
11590 *) # Look for the file first in the build tree, then in the source tree
11591 # (if the path is not absolute). The absolute path cannot be DOS-style,
11592 # because $ac_f cannot contain `:'.
11593 test -f "$ac_f" ||
11594 case $ac_f in
11595 [\\/$]*) false;;
11596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11597 esac ||
11598 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11599 esac
11600 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11601 as_fn_append ac_file_inputs " '$ac_f'"
11602 done
11603  
11604 # Let's still pretend it is `configure' which instantiates (i.e., don't
11605 # use $as_me), people would be surprised to read:
11606 # /* config.h. Generated by config.status. */
11607 configure_input='Generated from '`
11608 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11609 `' by configure.'
11610 if test x"$ac_file" != x-; then
11611 configure_input="$ac_file. $configure_input"
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11613 $as_echo "$as_me: creating $ac_file" >&6;}
11614 fi
11615 # Neutralize special characters interpreted by sed in replacement strings.
11616 case $configure_input in #(
11617 *\&* | *\|* | *\\* )
11618 ac_sed_conf_input=`$as_echo "$configure_input" |
11619 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11620 *) ac_sed_conf_input=$configure_input;;
11621 esac
11622  
11623 case $ac_tag in
11624 *:-:* | *:-) cat >"$tmp/stdin" \
11625 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11626 esac
11627 ;;
11628 esac
11629  
11630 ac_dir=`$as_dirname -- "$ac_file" ||
11631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11632 X"$ac_file" : 'X\(//\)[^/]' \| \
11633 X"$ac_file" : 'X\(//\)$' \| \
11634 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11635 $as_echo X"$ac_file" |
11636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11637 s//\1/
11638 q
11639 }
11640 /^X\(\/\/\)[^/].*/{
11641 s//\1/
11642 q
11643 }
11644 /^X\(\/\/\)$/{
11645 s//\1/
11646 q
11647 }
11648 /^X\(\/\).*/{
11649 s//\1/
11650 q
11651 }
11652 s/.*/./; q'`
11653 as_dir="$ac_dir"; as_fn_mkdir_p
11654 ac_builddir=.
11655  
11656 case "$ac_dir" in
11657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11658 *)
11659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11660 # A ".." for each directory in $ac_dir_suffix.
11661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11662 case $ac_top_builddir_sub in
11663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11665 esac ;;
11666 esac
11667 ac_abs_top_builddir=$ac_pwd
11668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11669 # for backward compatibility:
11670 ac_top_builddir=$ac_top_build_prefix
11671  
11672 case $srcdir in
11673 .) # We are building in place.
11674 ac_srcdir=.
11675 ac_top_srcdir=$ac_top_builddir_sub
11676 ac_abs_top_srcdir=$ac_pwd ;;
11677 [\\/]* | ?:[\\/]* ) # Absolute name.
11678 ac_srcdir=$srcdir$ac_dir_suffix;
11679 ac_top_srcdir=$srcdir
11680 ac_abs_top_srcdir=$srcdir ;;
11681 *) # Relative name.
11682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11683 ac_top_srcdir=$ac_top_build_prefix$srcdir
11684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11685 esac
11686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11687  
11688  
11689 case $ac_mode in
11690 :F)
11691 #
11692 # CONFIG_FILE
11693 #
11694  
11695 case $INSTALL in
11696 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11697 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11698 esac
11699 ac_MKDIR_P=$MKDIR_P
11700 case $MKDIR_P in
11701 [\\/$]* | ?:[\\/]* ) ;;
11702 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11703 esac
11704 _ACEOF
11705  
11706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11707 # If the template does not know about datarootdir, expand it.
11708 # FIXME: This hack should be removed a few years after 2.60.
11709 ac_datarootdir_hack=; ac_datarootdir_seen=
11710 ac_sed_dataroot='
11711 /datarootdir/ {
11712 p
11713 q
11714 }
11715 /@datadir@/p
11716 /@docdir@/p
11717 /@infodir@/p
11718 /@localedir@/p
11719 /@mandir@/p'
11720 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11721 *datarootdir*) ac_datarootdir_seen=yes;;
11722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11724 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11725 _ACEOF
11726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11727 ac_datarootdir_hack='
11728 s&@datadir@&$datadir&g
11729 s&@docdir@&$docdir&g
11730 s&@infodir@&$infodir&g
11731 s&@localedir@&$localedir&g
11732 s&@mandir@&$mandir&g
11733 s&\\\${datarootdir}&$datarootdir&g' ;;
11734 esac
11735 _ACEOF
11736  
11737 # Neutralize VPATH when `$srcdir' = `.'.
11738 # Shell code in configure.ac might set extrasub.
11739 # FIXME: do we really want to maintain this feature?
11740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11741 ac_sed_extra="$ac_vpsub
11742 $extrasub
11743 _ACEOF
11744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11745 :t
11746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11747 s|@configure_input@|$ac_sed_conf_input|;t t
11748 s&@top_builddir@&$ac_top_builddir_sub&;t t
11749 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11750 s&@srcdir@&$ac_srcdir&;t t
11751 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11752 s&@top_srcdir@&$ac_top_srcdir&;t t
11753 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11754 s&@builddir@&$ac_builddir&;t t
11755 s&@abs_builddir@&$ac_abs_builddir&;t t
11756 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11757 s&@INSTALL@&$ac_INSTALL&;t t
11758 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11759 $ac_datarootdir_hack
11760 "
11761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11762 || as_fn_error "could not create $ac_file" "$LINENO" 5
11763  
11764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11765 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11768 which seems to be undefined. Please make sure it is defined." >&5
11769 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11770 which seems to be undefined. Please make sure it is defined." >&2;}
11771  
11772 rm -f "$tmp/stdin"
11773 case $ac_file in
11774 -) cat "$tmp/out" && rm -f "$tmp/out";;
11775 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11776 esac \
11777 || as_fn_error "could not create $ac_file" "$LINENO" 5
11778 ;;
11779 :H)
11780 #
11781 # CONFIG_HEADER
11782 #
11783 if test x"$ac_file" != x-; then
11784 {
11785 $as_echo "/* $configure_input */" \
11786 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11787 } >"$tmp/config.h" \
11788 || as_fn_error "could not create $ac_file" "$LINENO" 5
11789 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11791 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11792 else
11793 rm -f "$ac_file"
11794 mv "$tmp/config.h" "$ac_file" \
11795 || as_fn_error "could not create $ac_file" "$LINENO" 5
11796 fi
11797 else
11798 $as_echo "/* $configure_input */" \
11799 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11800 || as_fn_error "could not create -" "$LINENO" 5
11801 fi
11802 # Compute "$ac_file"'s index in $config_headers.
11803 _am_arg="$ac_file"
11804 _am_stamp_count=1
11805 for _am_header in $config_headers :; do
11806 case $_am_header in
11807 $_am_arg | $_am_arg:* )
11808 break ;;
11809 * )
11810 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11811 esac
11812 done
11813 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11814 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11815 X"$_am_arg" : 'X\(//\)[^/]' \| \
11816 X"$_am_arg" : 'X\(//\)$' \| \
11817 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11818 $as_echo X"$_am_arg" |
11819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11820 s//\1/
11821 q
11822 }
11823 /^X\(\/\/\)[^/].*/{
11824 s//\1/
11825 q
11826 }
11827 /^X\(\/\/\)$/{
11828 s//\1/
11829 q
11830 }
11831 /^X\(\/\).*/{
11832 s//\1/
11833 q
11834 }
11835 s/.*/./; q'`/stamp-h$_am_stamp_count
11836 ;;
11837  
11838 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11839 $as_echo "$as_me: executing $ac_file commands" >&6;}
11840 ;;
11841 esac
11842  
11843  
11844 case $ac_file$ac_mode in
11845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11846 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11847 # are listed without --file. Let's play safe and only enable the eval
11848 # if we detect the quoting.
11849 case $CONFIG_FILES in
11850 *\'*) eval set x "$CONFIG_FILES" ;;
11851 *) set x $CONFIG_FILES ;;
11852 esac
11853 shift
11854 for mf
11855 do
11856 # Strip MF so we end up with the name of the file.
11857 mf=`echo "$mf" | sed -e 's/:.*$//'`
11858 # Check whether this is an Automake generated Makefile or not.
11859 # We used to match only the files named `Makefile.in', but
11860 # some people rename them; so instead we look at the file content.
11861 # Grep'ing the first line is not enough: some people post-process
11862 # each Makefile.in and add a new line on top of each file to say so.
11863 # Grep'ing the whole file is not good either: AIX grep has a line
11864 # limit of 2048, but all sed's we know have understand at least 4000.
11865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11866 dirpart=`$as_dirname -- "$mf" ||
11867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11868 X"$mf" : 'X\(//\)[^/]' \| \
11869 X"$mf" : 'X\(//\)$' \| \
11870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11871 $as_echo X"$mf" |
11872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11873 s//\1/
11874 q
11875 }
11876 /^X\(\/\/\)[^/].*/{
11877 s//\1/
11878 q
11879 }
11880 /^X\(\/\/\)$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\(\/\).*/{
11885 s//\1/
11886 q
11887 }
11888 s/.*/./; q'`
11889 else
11890 continue
11891 fi
11892 # Extract the definition of DEPDIR, am__include, and am__quote
11893 # from the Makefile without running `make'.
11894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11895 test -z "$DEPDIR" && continue
11896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11897 test -z "am__include" && continue
11898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11899 # When using ansi2knr, U may be empty or an underscore; expand it
11900 U=`sed -n 's/^U = //p' < "$mf"`
11901 # Find all dependency output files, they are included files with
11902 # $(DEPDIR) in their names. We invoke sed twice because it is the
11903 # simplest approach to changing $(DEPDIR) to its actual value in the
11904 # expansion.
11905 for file in `sed -n "
11906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11908 # Make sure the directory exists.
11909 test -f "$dirpart/$file" && continue
11910 fdir=`$as_dirname -- "$file" ||
11911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11912 X"$file" : 'X\(//\)[^/]' \| \
11913 X"$file" : 'X\(//\)$' \| \
11914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11915 $as_echo X"$file" |
11916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11917 s//\1/
11918 q
11919 }
11920 /^X\(\/\/\)[^/].*/{
11921 s//\1/
11922 q
11923 }
11924 /^X\(\/\/\)$/{
11925 s//\1/
11926 q
11927 }
11928 /^X\(\/\).*/{
11929 s//\1/
11930 q
11931 }
11932 s/.*/./; q'`
11933 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11934 # echo "creating $dirpart/$file"
11935 echo '# dummy' > "$dirpart/$file"
11936 done
11937 done
11938 }
11939 ;;
11940 "libtool":C)
11941  
11942 # See if we are running on zsh, and set the options which allow our
11943 # commands through without removal of \ escapes.
11944 if test -n "${ZSH_VERSION+set}" ; then
11945 setopt NO_GLOB_SUBST
11946 fi
11947  
11948 cfgfile="${ofile}T"
11949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11950 $RM "$cfgfile"
11951  
11952 cat <<_LT_EOF >> "$cfgfile"
11953 #! $SHELL
11954  
11955 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11956 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
11957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11959 #
11960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11961 # 2006, 2007, 2008 Free Software Foundation, Inc.
11962 # Written by Gordon Matzigkeit, 1996
11963 #
11964 # This file is part of GNU Libtool.
11965 #
11966 # GNU Libtool is free software; you can redistribute it and/or
11967 # modify it under the terms of the GNU General Public License as
11968 # published by the Free Software Foundation; either version 2 of
11969 # the License, or (at your option) any later version.
11970 #
11971 # As a special exception to the GNU General Public License,
11972 # if you distribute this file as part of a program or library that
11973 # is built using GNU Libtool, you may include this file under the
11974 # same distribution terms that you use for the rest of that program.
11975 #
11976 # GNU Libtool is distributed in the hope that it will be useful,
11977 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11979 # GNU General Public License for more details.
11980 #
11981 # You should have received a copy of the GNU General Public License
11982 # along with GNU Libtool; see the file COPYING. If not, a copy
11983 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
11984 # obtained by writing to the Free Software Foundation, Inc.,
11985 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11986  
11987  
11988 # The names of the tagged configurations supported by this script.
11989 available_tags=""
11990  
11991 # ### BEGIN LIBTOOL CONFIG
11992  
11993 # Which release of libtool.m4 was used?
11994 macro_version=$macro_version
11995 macro_revision=$macro_revision
11996  
11997 # Whether or not to build shared libraries.
11998 build_libtool_libs=$enable_shared
11999  
12000 # Whether or not to build static libraries.
12001 build_old_libs=$enable_static
12002  
12003 # What type of objects to build.
12004 pic_mode=$pic_mode
12005  
12006 # Whether or not to optimize for fast installation.
12007 fast_install=$enable_fast_install
12008  
12009 # The host system.
12010 host_alias=$host_alias
12011 host=$host
12012 host_os=$host_os
12013  
12014 # The build system.
12015 build_alias=$build_alias
12016 build=$build
12017 build_os=$build_os
12018  
12019 # A sed program that does not truncate output.
12020 SED=$lt_SED
12021  
12022 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12023 Xsed="\$SED -e 1s/^X//"
12024  
12025 # A grep program that handles long lines.
12026 GREP=$lt_GREP
12027  
12028 # An ERE matcher.
12029 EGREP=$lt_EGREP
12030  
12031 # A literal string matcher.
12032 FGREP=$lt_FGREP
12033  
12034 # A BSD- or MS-compatible name lister.
12035 NM=$lt_NM
12036  
12037 # Whether we need soft or hard links.
12038 LN_S=$lt_LN_S
12039  
12040 # What is the maximum length of a command?
12041 max_cmd_len=$max_cmd_len
12042  
12043 # Object file suffix (normally "o").
12044 objext=$ac_objext
12045  
12046 # Executable file suffix (normally "").
12047 exeext=$exeext
12048  
12049 # whether the shell understands "unset".
12050 lt_unset=$lt_unset
12051  
12052 # turn spaces into newlines.
12053 SP2NL=$lt_lt_SP2NL
12054  
12055 # turn newlines into spaces.
12056 NL2SP=$lt_lt_NL2SP
12057  
12058 # How to create reloadable object files.
12059 reload_flag=$lt_reload_flag
12060 reload_cmds=$lt_reload_cmds
12061  
12062 # An object symbol dumper.
12063 OBJDUMP=$lt_OBJDUMP
12064  
12065 # Method to check whether dependent libraries are shared objects.
12066 deplibs_check_method=$lt_deplibs_check_method
12067  
12068 # Command to use when deplibs_check_method == "file_magic".
12069 file_magic_cmd=$lt_file_magic_cmd
12070  
12071 # The archiver.
12072 AR=$lt_AR
12073 AR_FLAGS=$lt_AR_FLAGS
12074  
12075 # A symbol stripping program.
12076 STRIP=$lt_STRIP
12077  
12078 # Commands used to install an old-style archive.
12079 RANLIB=$lt_RANLIB
12080 old_postinstall_cmds=$lt_old_postinstall_cmds
12081 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12082  
12083 # A C compiler.
12084 LTCC=$lt_CC
12085  
12086 # LTCC compiler flags.
12087 LTCFLAGS=$lt_CFLAGS
12088  
12089 # Take the output of nm and produce a listing of raw symbols and C names.
12090 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12091  
12092 # Transform the output of nm in a proper C declaration.
12093 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12094  
12095 # Transform the output of nm in a C name address pair.
12096 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12097  
12098 # Transform the output of nm in a C name address pair when lib prefix is needed.
12099 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12100  
12101 # The name of the directory that contains temporary libtool files.
12102 objdir=$objdir
12103  
12104 # Shell to use when invoking shell scripts.
12105 SHELL=$lt_SHELL
12106  
12107 # An echo program that does not interpret backslashes.
12108 ECHO=$lt_ECHO
12109  
12110 # Used to examine libraries when file_magic_cmd begins with "file".
12111 MAGIC_CMD=$MAGIC_CMD
12112  
12113 # Must we lock files when doing compilation?
12114 need_locks=$lt_need_locks
12115  
12116 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12117 DSYMUTIL=$lt_DSYMUTIL
12118  
12119 # Tool to change global to local symbols on Mac OS X.
12120 NMEDIT=$lt_NMEDIT
12121  
12122 # Tool to manipulate fat objects and archives on Mac OS X.
12123 LIPO=$lt_LIPO
12124  
12125 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12126 OTOOL=$lt_OTOOL
12127  
12128 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12129 OTOOL64=$lt_OTOOL64
12130  
12131 # Old archive suffix (normally "a").
12132 libext=$libext
12133  
12134 # Shared library suffix (normally ".so").
12135 shrext_cmds=$lt_shrext_cmds
12136  
12137 # The commands to extract the exported symbol list from a shared archive.
12138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12139  
12140 # Variables whose values should be saved in libtool wrapper scripts and
12141 # restored at link time.
12142 variables_saved_for_relink=$lt_variables_saved_for_relink
12143  
12144 # Do we need the "lib" prefix for modules?
12145 need_lib_prefix=$need_lib_prefix
12146  
12147 # Do we need a version for libraries?
12148 need_version=$need_version
12149  
12150 # Library versioning type.
12151 version_type=$version_type
12152  
12153 # Shared library runtime path variable.
12154 runpath_var=$runpath_var
12155  
12156 # Shared library path variable.
12157 shlibpath_var=$shlibpath_var
12158  
12159 # Is shlibpath searched before the hard-coded library search path?
12160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12161  
12162 # Format of library name prefix.
12163 libname_spec=$lt_libname_spec
12164  
12165 # List of archive names. First name is the real one, the rest are links.
12166 # The last name is the one that the linker finds with -lNAME
12167 library_names_spec=$lt_library_names_spec
12168  
12169 # The coded name of the library, if different from the real name.
12170 soname_spec=$lt_soname_spec
12171  
12172 # Command to use after installation of a shared archive.
12173 postinstall_cmds=$lt_postinstall_cmds
12174  
12175 # Command to use after uninstallation of a shared archive.
12176 postuninstall_cmds=$lt_postuninstall_cmds
12177  
12178 # Commands used to finish a libtool library installation in a directory.
12179 finish_cmds=$lt_finish_cmds
12180  
12181 # As "finish_cmds", except a single script fragment to be evaled but
12182 # not shown.
12183 finish_eval=$lt_finish_eval
12184  
12185 # Whether we should hardcode library paths into libraries.
12186 hardcode_into_libs=$hardcode_into_libs
12187  
12188 # Compile-time system search path for libraries.
12189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12190  
12191 # Run-time system search path for libraries.
12192 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12193  
12194 # Whether dlopen is supported.
12195 dlopen_support=$enable_dlopen
12196  
12197 # Whether dlopen of programs is supported.
12198 dlopen_self=$enable_dlopen_self
12199  
12200 # Whether dlopen of statically linked programs is supported.
12201 dlopen_self_static=$enable_dlopen_self_static
12202  
12203 # Commands to strip libraries.
12204 old_striplib=$lt_old_striplib
12205 striplib=$lt_striplib
12206  
12207  
12208 # The linker used to build libraries.
12209 LD=$lt_LD
12210  
12211 # Commands used to build an old-style archive.
12212 old_archive_cmds=$lt_old_archive_cmds
12213  
12214 # A language specific compiler.
12215 CC=$lt_compiler
12216  
12217 # Is the compiler the GNU compiler?
12218 with_gcc=$GCC
12219  
12220 # Compiler flag to turn off builtin functions.
12221 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12222  
12223 # How to pass a linker flag through the compiler.
12224 wl=$lt_lt_prog_compiler_wl
12225  
12226 # Additional compiler flags for building library objects.
12227 pic_flag=$lt_lt_prog_compiler_pic
12228  
12229 # Compiler flag to prevent dynamic linking.
12230 link_static_flag=$lt_lt_prog_compiler_static
12231  
12232 # Does compiler simultaneously support -c and -o options?
12233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12234  
12235 # Whether or not to add -lc for building shared libraries.
12236 build_libtool_need_lc=$archive_cmds_need_lc
12237  
12238 # Whether or not to disallow shared libs when runtime libs are static.
12239 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12240  
12241 # Compiler flag to allow reflexive dlopens.
12242 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12243  
12244 # Compiler flag to generate shared objects directly from archives.
12245 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12246  
12247 # Whether the compiler copes with passing no objects directly.
12248 compiler_needs_object=$lt_compiler_needs_object
12249  
12250 # Create an old-style archive from a shared archive.
12251 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12252  
12253 # Create a temporary old-style archive to link instead of a shared archive.
12254 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12255  
12256 # Commands used to build a shared archive.
12257 archive_cmds=$lt_archive_cmds
12258 archive_expsym_cmds=$lt_archive_expsym_cmds
12259  
12260 # Commands used to build a loadable module if different from building
12261 # a shared archive.
12262 module_cmds=$lt_module_cmds
12263 module_expsym_cmds=$lt_module_expsym_cmds
12264  
12265 # Whether we are building with GNU ld or not.
12266 with_gnu_ld=$lt_with_gnu_ld
12267  
12268 # Flag that allows shared libraries with undefined symbols to be built.
12269 allow_undefined_flag=$lt_allow_undefined_flag
12270  
12271 # Flag that enforces no undefined symbols.
12272 no_undefined_flag=$lt_no_undefined_flag
12273  
12274 # Flag to hardcode \$libdir into a binary during linking.
12275 # This must work even if \$libdir does not exist
12276 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12277  
12278 # If ld is used when linking, flag to hardcode \$libdir into a binary
12279 # during linking. This must work even if \$libdir does not exist.
12280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12281  
12282 # Whether we need a single "-rpath" flag with a separated argument.
12283 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12284  
12285 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12286 # DIR into the resulting binary.
12287 hardcode_direct=$hardcode_direct
12288  
12289 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12290 # DIR into the resulting binary and the resulting library dependency is
12291 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12292 # library is relocated.
12293 hardcode_direct_absolute=$hardcode_direct_absolute
12294  
12295 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12296 # into the resulting binary.
12297 hardcode_minus_L=$hardcode_minus_L
12298  
12299 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12300 # into the resulting binary.
12301 hardcode_shlibpath_var=$hardcode_shlibpath_var
12302  
12303 # Set to "yes" if building a shared library automatically hardcodes DIR
12304 # into the library and all subsequent libraries and executables linked
12305 # against it.
12306 hardcode_automatic=$hardcode_automatic
12307  
12308 # Set to yes if linker adds runtime paths of dependent libraries
12309 # to runtime path list.
12310 inherit_rpath=$inherit_rpath
12311  
12312 # Whether libtool must link a program against all its dependency libraries.
12313 link_all_deplibs=$link_all_deplibs
12314  
12315 # Fix the shell variable \$srcfile for the compiler.
12316 fix_srcfile_path=$lt_fix_srcfile_path
12317  
12318 # Set to "yes" if exported symbols are required.
12319 always_export_symbols=$always_export_symbols
12320  
12321 # The commands to list exported symbols.
12322 export_symbols_cmds=$lt_export_symbols_cmds
12323  
12324 # Symbols that should not be listed in the preloaded symbols.
12325 exclude_expsyms=$lt_exclude_expsyms
12326  
12327 # Symbols that must always be exported.
12328 include_expsyms=$lt_include_expsyms
12329  
12330 # Commands necessary for linking programs (against libraries) with templates.
12331 prelink_cmds=$lt_prelink_cmds
12332  
12333 # Specify filename containing input files.
12334 file_list_spec=$lt_file_list_spec
12335  
12336 # How to hardcode a shared library path into an executable.
12337 hardcode_action=$hardcode_action
12338  
12339 # ### END LIBTOOL CONFIG
12340  
12341 _LT_EOF
12342  
12343 case $host_os in
12344 aix3*)
12345 cat <<\_LT_EOF >> "$cfgfile"
12346 # AIX sometimes has problems with the GCC collect2 program. For some
12347 # reason, if we set the COLLECT_NAMES environment variable, the problems
12348 # vanish in a puff of smoke.
12349 if test "X${COLLECT_NAMES+set}" != Xset; then
12350 COLLECT_NAMES=
12351 export COLLECT_NAMES
12352 fi
12353 _LT_EOF
12354 ;;
12355 esac
12356  
12357  
12358 ltmain="$ac_aux_dir/ltmain.sh"
12359  
12360  
12361 # We use sed instead of cat because bash on DJGPP gets confused if
12362 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12363 # text mode, it properly converts lines to CR/LF. This bash problem
12364 # is reportedly fixed, but why not run on old versions too?
12365 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12366 || (rm -f "$cfgfile"; exit 1)
12367  
12368 case $xsi_shell in
12369 yes)
12370 cat << \_LT_EOF >> "$cfgfile"
12371  
12372 # func_dirname file append nondir_replacement
12373 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12374 # otherwise set result to NONDIR_REPLACEMENT.
12375 func_dirname ()
12376 {
12377 case ${1} in
12378 */*) func_dirname_result="${1%/*}${2}" ;;
12379 * ) func_dirname_result="${3}" ;;
12380 esac
12381 }
12382  
12383 # func_basename file
12384 func_basename ()
12385 {
12386 func_basename_result="${1##*/}"
12387 }
12388  
12389 # func_dirname_and_basename file append nondir_replacement
12390 # perform func_basename and func_dirname in a single function
12391 # call:
12392 # dirname: Compute the dirname of FILE. If nonempty,
12393 # add APPEND to the result, otherwise set result
12394 # to NONDIR_REPLACEMENT.
12395 # value returned in "$func_dirname_result"
12396 # basename: Compute filename of FILE.
12397 # value retuned in "$func_basename_result"
12398 # Implementation must be kept synchronized with func_dirname
12399 # and func_basename. For efficiency, we do not delegate to
12400 # those functions but instead duplicate the functionality here.
12401 func_dirname_and_basename ()
12402 {
12403 case ${1} in
12404 */*) func_dirname_result="${1%/*}${2}" ;;
12405 * ) func_dirname_result="${3}" ;;
12406 esac
12407 func_basename_result="${1##*/}"
12408 }
12409  
12410 # func_stripname prefix suffix name
12411 # strip PREFIX and SUFFIX off of NAME.
12412 # PREFIX and SUFFIX must not contain globbing or regex special
12413 # characters, hashes, percent signs, but SUFFIX may contain a leading
12414 # dot (in which case that matches only a dot).
12415 func_stripname ()
12416 {
12417 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12418 # positional parameters, so assign one to ordinary parameter first.
12419 func_stripname_result=${3}
12420 func_stripname_result=${func_stripname_result#"${1}"}
12421 func_stripname_result=${func_stripname_result%"${2}"}
12422 }
12423  
12424 # func_opt_split
12425 func_opt_split ()
12426 {
12427 func_opt_split_opt=${1%%=*}
12428 func_opt_split_arg=${1#*=}
12429 }
12430  
12431 # func_lo2o object
12432 func_lo2o ()
12433 {
12434 case ${1} in
12435 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12436 *) func_lo2o_result=${1} ;;
12437 esac
12438 }
12439  
12440 # func_xform libobj-or-source
12441 func_xform ()
12442 {
12443 func_xform_result=${1%.*}.lo
12444 }
12445  
12446 # func_arith arithmetic-term...
12447 func_arith ()
12448 {
12449 func_arith_result=$(( $* ))
12450 }
12451  
12452 # func_len string
12453 # STRING may not start with a hyphen.
12454 func_len ()
12455 {
12456 func_len_result=${#1}
12457 }
12458  
12459 _LT_EOF
12460 ;;
12461 *) # Bourne compatible functions.
12462 cat << \_LT_EOF >> "$cfgfile"
12463  
12464 # func_dirname file append nondir_replacement
12465 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12466 # otherwise set result to NONDIR_REPLACEMENT.
12467 func_dirname ()
12468 {
12469 # Extract subdirectory from the argument.
12470 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12471 if test "X$func_dirname_result" = "X${1}"; then
12472 func_dirname_result="${3}"
12473 else
12474 func_dirname_result="$func_dirname_result${2}"
12475 fi
12476 }
12477  
12478 # func_basename file
12479 func_basename ()
12480 {
12481 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12482 }
12483  
12484  
12485 # func_stripname prefix suffix name
12486 # strip PREFIX and SUFFIX off of NAME.
12487 # PREFIX and SUFFIX must not contain globbing or regex special
12488 # characters, hashes, percent signs, but SUFFIX may contain a leading
12489 # dot (in which case that matches only a dot).
12490 # func_strip_suffix prefix name
12491 func_stripname ()
12492 {
12493 case ${2} in
12494 .*) func_stripname_result=`$ECHO "X${3}" \
12495 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12496 *) func_stripname_result=`$ECHO "X${3}" \
12497 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12498 esac
12499 }
12500  
12501 # sed scripts:
12502 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12503 my_sed_long_arg='1s/^-[^=]*=//'
12504  
12505 # func_opt_split
12506 func_opt_split ()
12507 {
12508 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12509 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12510 }
12511  
12512 # func_lo2o object
12513 func_lo2o ()
12514 {
12515 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12516 }
12517  
12518 # func_xform libobj-or-source
12519 func_xform ()
12520 {
12521 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12522 }
12523  
12524 # func_arith arithmetic-term...
12525 func_arith ()
12526 {
12527 func_arith_result=`expr "$@"`
12528 }
12529  
12530 # func_len string
12531 # STRING may not start with a hyphen.
12532 func_len ()
12533 {
12534 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12535 }
12536  
12537 _LT_EOF
12538 esac
12539  
12540 case $lt_shell_append in
12541 yes)
12542 cat << \_LT_EOF >> "$cfgfile"
12543  
12544 # func_append var value
12545 # Append VALUE to the end of shell variable VAR.
12546 func_append ()
12547 {
12548 eval "$1+=\$2"
12549 }
12550 _LT_EOF
12551 ;;
12552 *)
12553 cat << \_LT_EOF >> "$cfgfile"
12554  
12555 # func_append var value
12556 # Append VALUE to the end of shell variable VAR.
12557 func_append ()
12558 {
12559 eval "$1=\$$1\$2"
12560 }
12561  
12562 _LT_EOF
12563 ;;
12564 esac
12565  
12566  
12567 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12568 || (rm -f "$cfgfile"; exit 1)
12569  
12570 mv -f "$cfgfile" "$ofile" ||
12571 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12572 chmod +x "$ofile"
12573  
12574 ;;
12575  
12576 esac
12577 done # for ac_tag
12578  
12579  
12580 as_fn_exit 0
12581 _ACEOF
12582 ac_clean_files=$ac_clean_files_save
12583  
12584 test $ac_write_fail = 0 ||
12585 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12586  
12587  
12588 # configure is writing to config.log, and then calls config.status.
12589 # config.status does its own redirection, appending to config.log.
12590 # Unfortunately, on DOS this fails, as config.log is still kept open
12591 # by configure, so config.status won't be able to write to it; its
12592 # output is simply discarded. So we exec the FD to /dev/null,
12593 # effectively closing config.log, so it can be properly (re)opened and
12594 # appended to by config.status. When coming back to configure, we
12595 # need to make the FD available again.
12596 if test "$no_create" != yes; then
12597 ac_cs_success=:
12598 ac_config_status_args=
12599 test "$silent" = yes &&
12600 ac_config_status_args="$ac_config_status_args --quiet"
12601 exec 5>/dev/null
12602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12603 exec 5>>config.log
12604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12605 # would make configure fail if this is the last instruction.
12606 $ac_cs_success || as_fn_exit $?
12607 fi
12608 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12610 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12611 fi
12612