Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell [email protected] about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="src/mathtools.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 HAVE_DOXYGEN_FALSE
748 HAVE_DOXYGEN_TRUE
749 HAVE_DOXYGEN
750 CPP
751 OTOOL64
752 OTOOL
753 LIPO
754 NMEDIT
755 DSYMUTIL
756 lt_ECHO
757 RANLIB
758 AR
759 OBJDUMP
760 LN_S
761 NM
762 ac_ct_DUMPBIN
763 DUMPBIN
764 LD
765 FGREP
766 EGREP
767 GREP
768 SED
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 LIBTOOL
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 AMDEPBACKSLASH
782 AMDEP_FALSE
783 AMDEP_TRUE
784 am__quote
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 am__untar
795 am__tar
796 AMTAR
797 am__leading_dot
798 SET_MAKE
799 AWK
800 mkdir_p
801 MKDIR_P
802 INSTALL_STRIP_PROGRAM
803 STRIP
804 install_sh
805 MAKEINFO
806 AUTOHEADER
807 AUTOMAKE
808 AUTOCONF
809 ACLOCAL
810 VERSION
811 PACKAGE
812 CYGPATH_W
813 am__isrc
814 INSTALL_DATA
815 INSTALL_SCRIPT
816 INSTALL_PROGRAM
817 GENERIC_VERSION
818 GENERIC_RELEASE
819 GENERIC_LIBRARY_NAME
820 GENERIC_LIBRARY_VERSION
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files=''
860 ac_user_opts='
861 enable_option_checking
862 enable_dependency_tracking
863 enable_shared
864 enable_static
865 with_pic
866 enable_fast_install
867 with_gnu_ld
868 enable_libtool_lock
869 enable_docgen
870 '
871 ac_precious_vars='build_alias
872 host_alias
873 target_alias
874 CC
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
879 CPP'
880
881
882 # Initialize some variables set by options.
883 ac_init_help=
884 ac_init_version=false
885 ac_unrecognized_opts=
886 ac_unrecognized_sep=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
889 cache_file=/dev/null
890 exec_prefix=NONE
891 no_create=
892 no_recursion=
893 prefix=NONE
894 program_prefix=NONE
895 program_suffix=NONE
896 program_transform_name=s,x,x,
897 silent=
898 site=
899 srcdir=
900 verbose=
901 x_includes=NONE
902 x_libraries=NONE
903
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
929
930 ac_prev=
931 ac_dashdash=
932 for ac_option
933 do
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
937 ac_prev=
938 continue
939 fi
940
941 case $ac_option in
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *=) ac_optarg= ;;
944 *) ac_optarg=yes ;;
945 esac
946
947 # Accept the important Cygnus configure options, so we can diagnose typos.
948
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
957
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
972
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
977
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1010
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information"
1267 ;;
1268
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 ;;
1286
1287 esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error $? "missing argument to $ac_option"
1293 fi
1294
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301 fi
1302
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1308 do
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1323
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used" >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1338 cross_compiling=yes
1339 fi
1340 fi
1341
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345 test "$silent" = yes && exec 6>/dev/null
1346
1347
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error $? "working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error $? "pwd does not report name of working directory"
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387 else
1388 ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 fi
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397 pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1401 fi
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1414
1415 #
1416 # Report the --help message.
1417 #
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422 \`configure' configures this package to adapt to many kinds of systems.
1423
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1428
1429 Defaults for the options are specified in brackets.
1430
1431 Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking ...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1447
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1452
1453 For better control, use the options below.
1454
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475 _ACEOF
1476
1477 cat <<\_ACEOF
1478
1479 Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491
1492 cat <<\_ACEOF
1493
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505 --enable-docgen generate documentation with Doxygen
1506
1507 Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-pic try to use only PIC/non-PIC objects [default=use
1511 both]
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1522 CPP C preprocessor
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 configure
1591 generated by GNU Autoconf 2.67
1592
1593 Copyright (C) 2010 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_link ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 $as_test_x conftest$ac_exeext
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_link
1687
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval "test \"\${$3+set}\"" = set; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 $4
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } > conftest.i && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_cpp
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=$ac_status
1791 fi
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_run
1797
1798 # ac_fn_c_check_func LINENO FUNC VAR
1799 # ----------------------------------
1800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1801 ac_fn_c_check_func ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval "test \"\${$3+set}\"" = set; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1813 #define $2 innocuous_$2
1814
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $2 (); below.
1817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1818 <limits.h> exists even on freestanding compilers. */
1819
1820 #ifdef __STDC__
1821 # include <limits.h>
1822 #else
1823 # include <assert.h>
1824 #endif
1825
1826 #undef $2
1827
1828 /* Override any GCC internal prototype to avoid an error.
1829 Use char because int might match the return type of a GCC
1830 builtin and then its argument prototype would still apply. */
1831 #ifdef __cplusplus
1832 extern "C"
1833 #endif
1834 char $2 ();
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined __stub_$2 || defined __stub___$2
1839 choke me
1840 #endif
1841
1842 int
1843 main ()
1844 {
1845 return $2 ();
1846 ;
1847 return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_link "$LINENO"; then :
1851 eval "$3=yes"
1852 else
1853 eval "$3=no"
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext \
1856 conftest$ac_exeext conftest.$ac_ext
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862
1863 } # ac_fn_c_check_func
1864
1865 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1866 # -------------------------------------------
1867 # Tests whether TYPE exists after having included INCLUDES, setting cache
1868 # variable VAR accordingly.
1869 ac_fn_c_check_type ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval "test \"\${$3+set}\"" = set; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 eval "$3=no"
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 $4
1881 int
1882 main ()
1883 {
1884 if (sizeof ($2))
1885 return 0;
1886 ;
1887 return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 $4
1894 int
1895 main ()
1896 {
1897 if (sizeof (($2)))
1898 return 0;
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904
1905 else
1906 eval "$3=yes"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_type
1918
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1923 # accordingly.
1924 ac_fn_c_check_header_mongrel ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if eval "test \"\${$3+set}\"" = set; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval "test \"\${$3+set}\"" = set; then :
1931 $as_echo_n "(cached) " >&6
1932 fi
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 else
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1947 else
1948 ac_header_compiler=no
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1953
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1963 else
1964 ac_header_preproc=no
1965 fi
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1969
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 yes:no: )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 ;;
1978 no:yes:* )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 ;;
1990 esac
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval "test \"\${$3+set}\"" = set; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 eval "$3=\$ac_header_compiler"
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 fi
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_header_mongrel
2005 cat >config.log <<_ACEOF
2006 This file contains any messages produced by compilers while
2007 running configure, to aid debugging if configure makes a mistake.
2008
2009 It was created by $as_me, which was
2010 generated by GNU Autoconf 2.67. Invocation command line was
2011
2012 $ $0 $@
2013
2014 _ACEOF
2015 exec 5>>config.log
2016 {
2017 cat <<_ASUNAME
2018 ## --------- ##
2019 ## Platform. ##
2020 ## --------- ##
2021
2022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027
2028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030
2031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2038
2039 _ASUNAME
2040
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 $as_echo "PATH: $as_dir"
2047 done
2048 IFS=$as_save_IFS
2049
2050 } >&5
2051
2052 cat >&5 <<_ACEOF
2053
2054
2055 ## ----------- ##
2056 ## Core tests. ##
2057 ## ----------- ##
2058
2059 _ACEOF
2060
2061
2062 # Keep a trace of the command line.
2063 # Strip out --no-create and --no-recursion so they do not pile up.
2064 # Strip out --silent because we don't want to record it for future runs.
2065 # Also quote any args containing shell meta-characters.
2066 # Make two passes to allow for proper duplicate-argument suppression.
2067 ac_configure_args=
2068 ac_configure_args0=
2069 ac_configure_args1=
2070 ac_must_keep_next=false
2071 for ac_pass in 1 2
2072 do
2073 for ac_arg
2074 do
2075 case $ac_arg in
2076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078 | -silent | --silent | --silen | --sile | --sil)
2079 continue ;;
2080 *\'*)
2081 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082 esac
2083 case $ac_pass in
2084 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085 2)
2086 as_fn_append ac_configure_args1 " '$ac_arg'"
2087 if test $ac_must_keep_next = true; then
2088 ac_must_keep_next=false # Got value, back to normal.
2089 else
2090 case $ac_arg in
2091 *=* | --config-cache | -C | -disable-* | --disable-* \
2092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094 | -with-* | --with-* | -without-* | --without-* | --x)
2095 case "$ac_configure_args0 " in
2096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2097 esac
2098 ;;
2099 -* ) ac_must_keep_next=true ;;
2100 esac
2101 fi
2102 as_fn_append ac_configure_args " '$ac_arg'"
2103 ;;
2104 esac
2105 done
2106 done
2107 { ac_configure_args0=; unset ac_configure_args0;}
2108 { ac_configure_args1=; unset ac_configure_args1;}
2109
2110 # When interrupted or exit'd, cleanup temporary files, and complete
2111 # config.log. We remove comments because anyway the quotes in there
2112 # would cause problems or look ugly.
2113 # WARNING: Use '\'' to represent an apostrophe within the trap.
2114 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115 trap 'exit_status=$?
2116 # Save into config.log some information that might help in debugging.
2117 {
2118 echo
2119
2120 $as_echo "## ---------------- ##
2121 ## Cache variables. ##
2122 ## ---------------- ##"
2123 echo
2124 # The following way of writing the cache mishandles newlines in values,
2125 (
2126 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in #(
2129 *${as_nl}*)
2130 case $ac_var in #(
2131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2133 esac
2134 case $ac_var in #(
2135 _ | IFS | as_nl) ;; #(
2136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2137 *) { eval $ac_var=; unset $ac_var;} ;;
2138 esac ;;
2139 esac
2140 done
2141 (set) 2>&1 |
2142 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2143 *${as_nl}ac_space=\ *)
2144 sed -n \
2145 "s/'\''/'\''\\\\'\'''\''/g;
2146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2147 ;; #(
2148 *)
2149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2150 ;;
2151 esac |
2152 sort
2153 )
2154 echo
2155
2156 $as_echo "## ----------------- ##
2157 ## Output variables. ##
2158 ## ----------------- ##"
2159 echo
2160 for ac_var in $ac_subst_vars
2161 do
2162 eval ac_val=\$$ac_var
2163 case $ac_val in
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 esac
2166 $as_echo "$ac_var='\''$ac_val'\''"
2167 done | sort
2168 echo
2169
2170 if test -n "$ac_subst_files"; then
2171 $as_echo "## ------------------- ##
2172 ## File substitutions. ##
2173 ## ------------------- ##"
2174 echo
2175 for ac_var in $ac_subst_files
2176 do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in
2179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180 esac
2181 $as_echo "$ac_var='\''$ac_val'\''"
2182 done | sort
2183 echo
2184 fi
2185
2186 if test -s confdefs.h; then
2187 $as_echo "## ----------- ##
2188 ## confdefs.h. ##
2189 ## ----------- ##"
2190 echo
2191 cat confdefs.h
2192 echo
2193 fi
2194 test "$ac_signal" != 0 &&
2195 $as_echo "$as_me: caught signal $ac_signal"
2196 $as_echo "$as_me: exit $exit_status"
2197 } >&5
2198 rm -f core *.core core.conftest.* &&
2199 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2200 exit $exit_status
2201 ' 0
2202 for ac_signal in 1 2 13 15; do
2203 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2204 done
2205 ac_signal=0
2206
2207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2208 rm -f -r conftest* confdefs.h
2209
2210 $as_echo "/* confdefs.h */" > confdefs.h
2211
2212 # Predefined preprocessor variables.
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_NAME "$PACKAGE_NAME"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_STRING "$PACKAGE_STRING"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_URL "$PACKAGE_URL"
2236 _ACEOF
2237
2238
2239 # Let the site file select an alternate cache file if it wants to.
2240 # Prefer an explicitly selected file to automatically selected ones.
2241 ac_site_file1=NONE
2242 ac_site_file2=NONE
2243 if test -n "$CONFIG_SITE"; then
2244 # We do not want a PATH search for config.site.
2245 case $CONFIG_SITE in #((
2246 -*) ac_site_file1=./$CONFIG_SITE;;
2247 */*) ac_site_file1=$CONFIG_SITE;;
2248 *) ac_site_file1=./$CONFIG_SITE;;
2249 esac
2250 elif test "x$prefix" != xNONE; then
2251 ac_site_file1=$prefix/share/config.site
2252 ac_site_file2=$prefix/etc/config.site
2253 else
2254 ac_site_file1=$ac_default_prefix/share/config.site
2255 ac_site_file2=$ac_default_prefix/etc/config.site
2256 fi
2257 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258 do
2259 test "x$ac_site_file" = xNONE && continue
2260 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2262 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2263 sed 's/^/| /' "$ac_site_file" >&5
2264 . "$ac_site_file" \
2265 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267 as_fn_error $? "failed to load site script $ac_site_file
2268 See \`config.log' for more details" "$LINENO" 5 ; }
2269 fi
2270 done
2271
2272 if test -r "$cache_file"; then
2273 # Some versions of bash will fail to source /dev/null (special files
2274 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2275 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278 case $cache_file in
2279 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280 *) . "./$cache_file";;
2281 esac
2282 fi
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285 $as_echo "$as_me: creating cache $cache_file" >&6;}
2286 >$cache_file
2287 fi
2288
2289 # Check that the precious variables saved in the cache have kept the same
2290 # value.
2291 ac_cache_corrupted=false
2292 for ac_var in $ac_precious_vars; do
2293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294 eval ac_new_set=\$ac_env_${ac_var}_set
2295 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296 eval ac_new_val=\$ac_env_${ac_var}_value
2297 case $ac_old_set,$ac_new_set in
2298 set,)
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2302 ,set)
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2306 ,);;
2307 *)
2308 if test "x$ac_old_val" != "x$ac_new_val"; then
2309 # differences in whitespace do not lead to failure.
2310 ac_old_val_w=`echo x $ac_old_val`
2311 ac_new_val_w=`echo x $ac_new_val`
2312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315 ac_cache_corrupted=:
2316 else
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319 eval $ac_var=\$ac_old_val
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2322 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2324 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2325 fi;;
2326 esac
2327 # Pass precious variables to config.status.
2328 if test "$ac_new_set" = set; then
2329 case $ac_new_val in
2330 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 *) ac_arg=$ac_var=$ac_new_val ;;
2332 esac
2333 case " $ac_configure_args " in
2334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2335 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2336 esac
2337 fi
2338 done
2339 if $ac_cache_corrupted; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 fi
2346 ## -------------------- ##
2347 ## Main body of script. ##
2348 ## -------------------- ##
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
2358
2359 GENERIC_LIBRARY_NAME=libbrahe
2360
2361 #release versioning
2362 GENERIC_MAJOR_VERSION=1
2363 GENERIC_MINOR_VERSION=3
2364 GENERIC_MICRO_VERSION=2
2365
2366 #shared library versioning
2367 GENERIC_LIBRARY_VERSION=3:1:0
2368
2369
2370
2371 PACKAGE=$GENERIC_LIBRARY_NAME
2372
2373
2374 GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
2375 GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
2376
2377
2378
2379 VERSION=$GENERIC_VERSION
2380
2381 am__api_version='1.11'
2382
2383 ac_aux_dir=
2384 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 if test -f "$ac_dir/install-sh"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/install-sh -c"
2388 break
2389 elif test -f "$ac_dir/install.sh"; then
2390 ac_aux_dir=$ac_dir
2391 ac_install_sh="$ac_aux_dir/install.sh -c"
2392 break
2393 elif test -f "$ac_dir/shtool"; then
2394 ac_aux_dir=$ac_dir
2395 ac_install_sh="$ac_aux_dir/shtool install -c"
2396 break
2397 fi
2398 done
2399 if test -z "$ac_aux_dir"; then
2400 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401 fi
2402
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2410
2411
2412 # Find a good install program. We prefer a C program (faster),
2413 # so one script is as good as another. But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2418 # AIX /bin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 # Reject install programs that cannot install multiple files.
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2428 if test -z "$INSTALL"; then
2429 if test "${ac_cv_path_install+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 # Account for people who put trailing slashes in PATH elements.
2438 case $as_dir/ in #((
2439 ./ | .// | /[cC]/* | \
2440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2442 /usr/ucb/* ) ;;
2443 *)
2444 # OSF1 and SCO ODT 3.0 have their own names for install.
2445 # Don't use installbsd from OSF since it installs stuff as root
2446 # by default.
2447 for ac_prog in ginstall scoinst install; do
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2450 if test $ac_prog = install &&
2451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # AIX install. It has an incompatible calling convention.
2453 :
2454 elif test $ac_prog = install &&
2455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # program-specific install script used by HP pwplus--don't use.
2457 :
2458 else
2459 rm -rf conftest.one conftest.two conftest.dir
2460 echo one > conftest.one
2461 echo two > conftest.two
2462 mkdir conftest.dir
2463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464 test -s conftest.one && test -s conftest.two &&
2465 test -s conftest.dir/conftest.one &&
2466 test -s conftest.dir/conftest.two
2467 then
2468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469 break 3
2470 fi
2471 fi
2472 fi
2473 done
2474 done
2475 ;;
2476 esac
2477
2478 done
2479 IFS=$as_save_IFS
2480
2481 rm -rf conftest.one conftest.two conftest.dir
2482
2483 fi
2484 if test "${ac_cv_path_install+set}" = set; then
2485 INSTALL=$ac_cv_path_install
2486 else
2487 # As a last resort, use the slow shell script. Don't cache a
2488 # value for INSTALL within a source directory, because that will
2489 # break other packages using the cache if that directory is
2490 # removed, or if the value is a relative name.
2491 INSTALL=$ac_install_sh
2492 fi
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495 $as_echo "$INSTALL" >&6; }
2496
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506 $as_echo_n "checking whether build environment is sane... " >&6; }
2507 # Just in case
2508 sleep 1
2509 echo timestamp > conftest.file
2510 # Reject unsafe characters in $srcdir or the absolute working directory
2511 # name. Accept space and tab only in the latter.
2512 am_lf='
2513 '
2514 case `pwd` in
2515 *[\\\"\#\$\&\'\`$am_lf]*)
2516 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2517 esac
2518 case $srcdir in
2519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2520 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2521 esac
2522
2523 # Do `set' in a subshell so we don't clobber the current shell's
2524 # arguments. Must try -L first in case configure is actually a
2525 # symlink; some systems play weird games with the mod time of symlinks
2526 # (eg FreeBSD returns the mod time of the symlink's containing
2527 # directory).
2528 if (
2529 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530 if test "$*" = "X"; then
2531 # -L didn't work.
2532 set X `ls -t "$srcdir/configure" conftest.file`
2533 fi
2534 rm -f conftest.file
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544 fi
2545
2546 test "$2" = conftest.file
2547 )
2548 then
2549 # Ok.
2550 :
2551 else
2552 as_fn_error $? "newly created file is older than distributed files!
2553 Check your system clock" "$LINENO" 5
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2557 test "$program_prefix" != NONE &&
2558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2559 # Use a double $ so make ignores it.
2560 test "$program_suffix" != NONE &&
2561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2562 # Double any \ or $.
2563 # By default was `s,x,x', remove it if useless.
2564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2566
2567 # expand $ac_aux_dir to an absolute path
2568 am_aux_dir=`cd $ac_aux_dir && pwd`
2569
2570 if test x"${MISSING+set}" != xset; then
2571 case $am_aux_dir in
2572 *\ * | *\ *)
2573 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2574 *)
2575 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2576 esac
2577 fi
2578 # Use eval to expand $SHELL
2579 if eval "$MISSING --run true"; then
2580 am_missing_run="$MISSING --run "
2581 else
2582 am_missing_run=
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2585 fi
2586
2587 if test x"${install_sh}" != xset; then
2588 case $am_aux_dir in
2589 *\ * | *\ *)
2590 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2591 *)
2592 install_sh="\${SHELL} $am_aux_dir/install-sh"
2593 esac
2594 fi
2595
2596 # Installed binaries are usually stripped using `strip' when the user
2597 # run `make install-strip'. However `strip' might not be the right
2598 # tool to use in cross-compilation environments, therefore Automake
2599 # will honor the `STRIP' environment variable to overrule this program.
2600 if test "$cross_compiling" != no; then
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_STRIP+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$STRIP"; then
2610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 STRIP=$ac_cv_prog_STRIP
2630 if test -n "$STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2632 $as_echo "$STRIP" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 fi
2640 if test -z "$ac_cv_prog_STRIP"; then
2641 ac_ct_STRIP=$STRIP
2642 # Extract the first word of "strip", so it can be a program name with args.
2643 set dummy strip; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$ac_ct_STRIP"; then
2650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_STRIP="strip"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2670 if test -n "$ac_ct_STRIP"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2672 $as_echo "$ac_ct_STRIP" >&6; }
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678 if test "x$ac_ct_STRIP" = x; then
2679 STRIP=":"
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2686 esac
2687 STRIP=$ac_ct_STRIP
2688 fi
2689 else
2690 STRIP="$ac_cv_prog_STRIP"
2691 fi
2692
2693 fi
2694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2698 if test -z "$MKDIR_P"; then
2699 if test "${ac_cv_path_mkdir+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_prog in mkdir gmkdir; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2710 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2711 'mkdir (GNU coreutils) '* | \
2712 'mkdir (coreutils) '* | \
2713 'mkdir (fileutils) '4.1*)
2714 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2715 break 3;;
2716 esac
2717 done
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723
2724 test -d ./--version && rmdir ./--version
2725 if test "${ac_cv_path_mkdir+set}" = set; then
2726 MKDIR_P="$ac_cv_path_mkdir -p"
2727 else
2728 # As a last resort, use the slow shell script. Don't cache a
2729 # value for MKDIR_P within a source directory, because that will
2730 # break other packages using the cache if that directory is
2731 # removed, or if the value is a relative name.
2732 MKDIR_P="$ac_install_sh -d"
2733 fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2736 $as_echo "$MKDIR_P" >&6; }
2737
2738 mkdir_p="$MKDIR_P"
2739 case $mkdir_p in
2740 [\\/$]* | ?:[\\/]*) ;;
2741 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2742 esac
2743
2744 for ac_prog in gawk mawk nawk awk
2745 do
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_AWK+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$AWK"; then
2754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_AWK="$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 AWK=$ac_cv_prog_AWK
2774 if test -n "$AWK"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2776 $as_echo "$AWK" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 test -n "$AWK" && break
2784 done
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2788 set x ${MAKE-make}
2789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2790 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 cat >conftest.make <<\_ACEOF
2794 SHELL = /bin/sh
2795 all:
2796 @echo '@@@%%%=$(MAKE)=@@@%%%'
2797 _ACEOF
2798 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2800 *@@@%%%=?*=@@@%%%*)
2801 eval ac_cv_prog_make_${ac_make}_set=yes;;
2802 *)
2803 eval ac_cv_prog_make_${ac_make}_set=no;;
2804 esac
2805 rm -f conftest.make
2806 fi
2807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809 $as_echo "yes" >&6; }
2810 SET_MAKE=
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 SET_MAKE="MAKE=${MAKE-make}"
2815 fi
2816
2817 rm -rf .tst 2>/dev/null
2818 mkdir .tst 2>/dev/null
2819 if test -d .tst; then
2820 am__leading_dot=.
2821 else
2822 am__leading_dot=_
2823 fi
2824 rmdir .tst 2>/dev/null
2825
2826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2828 # is not polluted with repeated "-I."
2829 am__isrc=' -I$(srcdir)'
2830 # test to see if srcdir already configured
2831 if test -f $srcdir/config.status; then
2832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2833 fi
2834 fi
2835
2836 # test whether we have cygpath
2837 if test -z "$CYGPATH_W"; then
2838 if (cygpath --version) >/dev/null 2>/dev/null; then
2839 CYGPATH_W='cygpath -w'
2840 else
2841 CYGPATH_W=echo
2842 fi
2843 fi
2844
2845
2846 # Define the identity of the package.
2847 PACKAGE=$PACKAGE
2848 VERSION=$VERSION
2849
2850
2851 # Some tools Automake needs.
2852
2853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854
2855
2856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857
2858
2859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860
2861
2862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863
2864
2865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866
2867 # We need awk for the "check" target. The system "awk" is bad on
2868 # some platforms.
2869 # Always define AMTAR for backward compatibility.
2870
2871 AMTAR=${AMTAR-"${am_missing_run}tar"}
2872
2873 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2874
2875
2876
2877
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2880 $as_echo_n "checking whether build environment is sane... " >&6; }
2881 # Just in case
2882 sleep 1
2883 echo timestamp > conftest.file
2884 # Reject unsafe characters in $srcdir or the absolute working directory
2885 # name. Accept space and tab only in the latter.
2886 am_lf='
2887 '
2888 case `pwd` in
2889 *[\\\"\#\$\&\'\`$am_lf]*)
2890 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2891 esac
2892 case $srcdir in
2893 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2894 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2895 esac
2896
2897 # Do `set' in a subshell so we don't clobber the current shell's
2898 # arguments. Must try -L first in case configure is actually a
2899 # symlink; some systems play weird games with the mod time of symlinks
2900 # (eg FreeBSD returns the mod time of the symlink's containing
2901 # directory).
2902 if (
2903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2904 if test "$*" = "X"; then
2905 # -L didn't work.
2906 set X `ls -t "$srcdir/configure" conftest.file`
2907 fi
2908 rm -f conftest.file
2909 if test "$*" != "X $srcdir/configure conftest.file" \
2910 && test "$*" != "X conftest.file $srcdir/configure"; then
2911
2912 # If neither matched, then we have a broken ls. This can happen
2913 # if, for instance, CONFIG_SHELL is bash and it inherits a
2914 # broken ls alias from the environment. This has actually
2915 # happened. Such a system could not be considered "sane".
2916 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2917 alias in your environment" "$LINENO" 5
2918 fi
2919
2920 test "$2" = conftest.file
2921 )
2922 then
2923 # Ok.
2924 :
2925 else
2926 as_fn_error $? "newly created file is older than distributed files!
2927 Check your system clock" "$LINENO" 5
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2930 $as_echo "yes" >&6; }
2931
2932 ac_ext=c
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 fi
2976 if test -z "$ac_cv_prog_CC"; then
2977 ac_ct_CC=$CC
2978 # Extract the first word of "gcc", so it can be a program name with args.
2979 set dummy gcc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_ac_ct_CC="gcc"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014 if test "x$ac_ct_CC" = x; then
3015 CC=""
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023 CC=$ac_ct_CC
3024 fi
3025 else
3026 CC="$ac_cv_prog_CC"
3027 fi
3028
3029 if test -z "$CC"; then
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}cc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="${ac_tool_prefix}cc"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052 done
3053 done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 fi
3069 fi
3070 if test -z "$CC"; then
3071 # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 ac_prog_rejected=no
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3090 ac_prog_rejected=yes
3091 continue
3092 fi
3093 ac_cv_prog_CC="cc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 if test $ac_prog_rejected = yes; then
3102 # We found a bogon in the path, so make sure we never use it.
3103 set dummy $ac_cv_prog_CC
3104 shift
3105 if test $# != 0; then
3106 # We chose a different compiler from the bogus one.
3107 # However, it has the same basename, so the bogon will be chosen
3108 # first if we set CC to just the basename; use the full file name.
3109 shift
3110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3111 fi
3112 fi
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 fi
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in cl.exe
3129 do
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167 test -n "$CC" && break
3168 done
3169 fi
3170 if test -z "$CC"; then
3171 ac_ct_CC=$CC
3172 for ac_prog in cl.exe
3173 do
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_CC="$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 test -n "$ac_ct_CC" && break
3212 done
3213
3214 if test "x$ac_ct_CC" = x; then
3215 CC=""
3216 else
3217 case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223 CC=$ac_ct_CC
3224 fi
3225 fi
3226
3227 fi
3228
3229
3230 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error $? "no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details" "$LINENO" 5 ; }
3234
3235 # Provide some information about the compiler.
3236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3237 set X $ac_compile
3238 ac_compiler=$2
3239 for ac_option in --version -v -V -qversion; do
3240 { { ac_try="$ac_compiler $ac_option >&5"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3248 ac_status=$?
3249 if test -s conftest.err; then
3250 sed '10a\
3251 ... rest of stderr output deleted ...
3252 10q' conftest.err >conftest.er1
3253 cat conftest.er1 >&5
3254 fi
3255 rm -f conftest.er1 conftest.err
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 done
3259
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3262
3263 int
3264 main ()
3265 {
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 ac_clean_files_save=$ac_clean_files
3272 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3273 # Try to create an executable without -o first, disregard a.out.
3274 # It will help us diagnose broken compilers, and finding out an intuition
3275 # of exeext.
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3277 $as_echo_n "checking whether the C compiler works... " >&6; }
3278 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3279
3280 # The possible output files:
3281 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3282
3283 ac_rmfiles=
3284 for ac_file in $ac_files
3285 do
3286 case $ac_file in
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3288 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3289 esac
3290 done
3291 rm -f $ac_rmfiles
3292
3293 if { { ac_try="$ac_link_default"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_link_default") 2>&5
3301 ac_status=$?
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; then :
3304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3307 # so that the user can short-circuit this test for compilers unknown to
3308 # Autoconf.
3309 for ac_file in $ac_files ''
3310 do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3314 ;;
3315 [ab].out )
3316 # We found the default executable, but exeext='' is most
3317 # certainly right.
3318 break;;
3319 *.* )
3320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3321 then :; else
3322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 fi
3324 # We set ac_cv_exeext here because the later test for it is not
3325 # safe: cross compilers may not add the suffix if given an `-o'
3326 # argument, so we may need to know it at that point already.
3327 # Even if this section looks crufty: it has the advantage of
3328 # actually working.
3329 break;;
3330 * )
3331 break;;
3332 esac
3333 done
3334 test "$ac_cv_exeext" = no && ac_cv_exeext=
3335
3336 else
3337 ac_file=''
3338 fi
3339 if test -z "$ac_file"; then :
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 $as_echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error 77 "C compiler cannot create executables
3348 See \`config.log' for more details" "$LINENO" 5 ; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351 $as_echo "yes" >&6; }
3352 fi
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3354 $as_echo_n "checking for C compiler default output file name... " >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3356 $as_echo "$ac_file" >&6; }
3357 ac_exeext=$ac_cv_exeext
3358
3359 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3360 ac_clean_files=$ac_clean_files_save
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3362 $as_echo_n "checking for suffix of executables... " >&6; }
3363 if { { ac_try="$ac_link"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link") 2>&5
3371 ac_status=$?
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }; then :
3374 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3375 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3376 # work properly (i.e., refer to `conftest.exe'), while it won't with
3377 # `rm'.
3378 for ac_file in conftest.exe conftest conftest.*; do
3379 test -f "$ac_file" || continue
3380 case $ac_file in
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3382 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3383 break;;
3384 * ) break;;
3385 esac
3386 done
3387 else
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3391 See \`config.log' for more details" "$LINENO" 5 ; }
3392 fi
3393 rm -f conftest conftest$ac_cv_exeext
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3395 $as_echo "$ac_cv_exeext" >&6; }
3396
3397 rm -f conftest.$ac_ext
3398 EXEEXT=$ac_cv_exeext
3399 ac_exeext=$EXEEXT
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402 #include <stdio.h>
3403 int
3404 main ()
3405 {
3406 FILE *f = fopen ("conftest.out", "w");
3407 return ferror (f) || fclose (f) != 0;
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 ac_clean_files="$ac_clean_files conftest.out"
3414 # Check that the compiler produces executables we can run. If not, either
3415 # the compiler is broken, or we cross compile.
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3417 $as_echo_n "checking whether we are cross compiling... " >&6; }
3418 if test "$cross_compiling" != yes; then
3419 { { ac_try="$ac_link"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_link") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }
3430 if { ac_try='./conftest$ac_cv_exeext'
3431 { { case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_try") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; }; then
3441 cross_compiling=no
3442 else
3443 if test "$cross_compiling" = maybe; then
3444 cross_compiling=yes
3445 else
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "cannot run C compiled programs.
3449 If you meant to cross compile, use \`--host'.
3450 See \`config.log' for more details" "$LINENO" 5 ; }
3451 fi
3452 fi
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3455 $as_echo "$cross_compiling" >&6; }
3456
3457 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3458 ac_clean_files=$ac_clean_files_save
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3460 $as_echo_n "checking for suffix of object files... " >&6; }
3461 if test "${ac_cv_objext+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.o conftest.obj
3476 if { { ac_try="$ac_compile"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_compile") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 for ac_file in conftest.o conftest.obj conftest.*; do
3488 test -f "$ac_file" || continue;
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3492 break;;
3493 esac
3494 done
3495 else
3496 $as_echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "cannot compute suffix of object files: cannot compile
3502 See \`config.log' for more details" "$LINENO" 5 ; }
3503 fi
3504 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3507 $as_echo "$ac_cv_objext" >&6; }
3508 OBJEXT=$ac_cv_objext
3509 ac_objext=$OBJEXT
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3511 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3512 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main ()
3520 {
3521 #ifndef __GNUC__
3522 choke me
3523 #endif
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_compiler_gnu=yes
3531 else
3532 ac_compiler_gnu=no
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3539 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3540 if test $ac_compiler_gnu = yes; then
3541 GCC=yes
3542 else
3543 GCC=
3544 fi
3545 ac_test_CFLAGS=${CFLAGS+set}
3546 ac_save_CFLAGS=$CFLAGS
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3548 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3549 if test "${ac_cv_prog_cc_g+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 ac_save_c_werror_flag=$ac_c_werror_flag
3553 ac_c_werror_flag=yes
3554 ac_cv_prog_cc_g=no
3555 CFLAGS="-g"
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3568 ac_cv_prog_cc_g=yes
3569 else
3570 CFLAGS=""
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583
3584 else
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3586 CFLAGS="-g"
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_prog_cc_g=yes
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3609 $as_echo "$ac_cv_prog_cc_g" >&6; }
3610 if test "$ac_test_CFLAGS" = set; then
3611 CFLAGS=$ac_save_CFLAGS
3612 elif test $ac_cv_prog_cc_g = yes; then
3613 if test "$GCC" = yes; then
3614 CFLAGS="-g -O2"
3615 else
3616 CFLAGS="-g"
3617 fi
3618 else
3619 if test "$GCC" = yes; then
3620 CFLAGS="-O2"
3621 else
3622 CFLAGS=
3623 fi
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3626 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3627 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 ac_cv_prog_cc_c89=no
3631 ac_save_CC=$CC
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634 #include <stdarg.h>
3635 #include <stdio.h>
3636 #include <sys/types.h>
3637 #include <sys/stat.h>
3638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3639 struct buf { int x; };
3640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641 static char *e (p, i)
3642 char **p;
3643 int i;
3644 {
3645 return p[i];
3646 }
3647 static char *f (char * (*g) (char **, int), char **p, ...)
3648 {
3649 char *s;
3650 va_list v;
3651 va_start (v,p);
3652 s = g (p, va_arg (v,int));
3653 va_end (v);
3654 return s;
3655 }
3656
3657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3658 function prototypes and stuff, but not '\xHH' hex character constants.
3659 These don't provoke an error unfortunately, instead are silently treated
3660 as 'x'. The following induces an error, until -std is added to get
3661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3662 array size at least. It's necessary to write '\x00'==0 to get something
3663 that's true only with -std. */
3664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665
3666 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667 inside strings and character constants. */
3668 #define FOO(x) 'x'
3669 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670
3671 int test (int i, double x);
3672 struct s1 {int (*f) (int a);};
3673 struct s2 {int (*f) (double a);};
3674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675 int argc;
3676 char **argv;
3677 int
3678 main ()
3679 {
3680 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687 do
3688 CC="$ac_save_CC $ac_arg"
3689 if ac_fn_c_try_compile "$LINENO"; then :
3690 ac_cv_prog_cc_c89=$ac_arg
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext
3693 test "x$ac_cv_prog_cc_c89" != "xno" && break
3694 done
3695 rm -f conftest.$ac_ext
3696 CC=$ac_save_CC
3697
3698 fi
3699 # AC_CACHE_VAL
3700 case "x$ac_cv_prog_cc_c89" in
3701 x)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703 $as_echo "none needed" >&6; } ;;
3704 xno)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706 $as_echo "unsupported" >&6; } ;;
3707 *)
3708 CC="$CC $ac_cv_prog_cc_c89"
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3710 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711 esac
3712 if test "x$ac_cv_prog_cc_c89" != xno; then :
3713
3714 fi
3715
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 DEPDIR="${am__leading_dot}deps"
3722
3723 ac_config_commands="$ac_config_commands depfiles"
3724
3725
3726 am_make=${MAKE-make}
3727 cat > confinc << 'END'
3728 am__doit:
3729 @echo this is the am__doit target
3730 .PHONY: am__doit
3731 END
3732 # If we don't find an include directive, just comment out the code.
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3734 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3735 am__include="#"
3736 am__quote=
3737 _am_result=none
3738 # First try GNU make style include.
3739 echo "include confinc" > confmf
3740 # Ignore all kinds of additional output from `make'.
3741 case `$am_make -s -f confmf 2> /dev/null` in #(
3742 *the\ am__doit\ target*)
3743 am__include=include
3744 am__quote=
3745 _am_result=GNU
3746 ;;
3747 esac
3748 # Now try BSD make style include.
3749 if test "$am__include" = "#"; then
3750 echo '.include "confinc"' > confmf
3751 case `$am_make -s -f confmf 2> /dev/null` in #(
3752 *the\ am__doit\ target*)
3753 am__include=.include
3754 am__quote="\""
3755 _am_result=BSD
3756 ;;
3757 esac
3758 fi
3759
3760
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3762 $as_echo "$_am_result" >&6; }
3763 rm -f confinc confmf
3764
3765 # Check whether --enable-dependency-tracking was given.
3766 if test "${enable_dependency_tracking+set}" = set; then :
3767 enableval=$enable_dependency_tracking;
3768 fi
3769
3770 if test "x$enable_dependency_tracking" != xno; then
3771 am_depcomp="$ac_aux_dir/depcomp"
3772 AMDEPBACKSLASH='\'
3773 fi
3774 if test "x$enable_dependency_tracking" != xno; then
3775 AMDEP_TRUE=
3776 AMDEP_FALSE='#'
3777 else
3778 AMDEP_TRUE='#'
3779 AMDEP_FALSE=
3780 fi
3781
3782
3783
3784 depcc="$CC" am_compiler_list=
3785
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3787 $as_echo_n "checking dependency style of $depcc... " >&6; }
3788 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3792 # We make a subdir and do the tests there. Otherwise we can end up
3793 # making bogus files that we don't know about and never remove. For
3794 # instance it was reported that on HP-UX the gcc test will end up
3795 # making a dummy file named `D' -- because `-MD' means `put the output
3796 # in D'.
3797 mkdir conftest.dir
3798 # Copy depcomp to subdir because otherwise we won't find it if we're
3799 # using a relative directory.
3800 cp "$am_depcomp" conftest.dir
3801 cd conftest.dir
3802 # We will build objects and dependencies in a subdirectory because
3803 # it helps to detect inapplicable dependency modes. For instance
3804 # both Tru64's cc and ICC support -MD to output dependencies as a
3805 # side effect of compilation, but ICC will put the dependencies in
3806 # the current directory while Tru64 will put them in the object
3807 # directory.
3808 mkdir sub
3809
3810 am_cv_CC_dependencies_compiler_type=none
3811 if test "$am_compiler_list" = ""; then
3812 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813 fi
3814 am__universal=false
3815 case " $depcc " in #(
3816 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3817 esac
3818
3819 for depmode in $am_compiler_list; do
3820 # Setup a source with many dependencies, because some compilers
3821 # like to wrap large dependency lists on column 80 (with \), and
3822 # we should not choose a depcomp mode which is confused by this.
3823 #
3824 # We need to recreate these files for each test, as the compiler may
3825 # overwrite some of them when testing with obscure command lines.
3826 # This happens at least with the AIX C compiler.
3827 : > sub/conftest.c
3828 for i in 1 2 3 4 5 6; do
3829 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3830 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3831 # Solaris 8's {/usr,}/bin/sh.
3832 touch sub/conftst$i.h
3833 done
3834 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835
3836 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3837 # mode. It turns out that the SunPro C++ compiler does not properly
3838 # handle `-M -o', and we need to detect this. Also, some Intel
3839 # versions had trouble with output in subdirs
3840 am__obj=sub/conftest.${OBJEXT-o}
3841 am__minus_obj="-o $am__obj"
3842 case $depmode in
3843 gcc)
3844 # This depmode causes a compiler race in universal mode.
3845 test "$am__universal" = false || continue
3846 ;;
3847 nosideeffect)
3848 # after this tag, mechanisms are not by side-effect, so they'll
3849 # only be used when explicitly requested
3850 if test "x$enable_dependency_tracking" = xyes; then
3851 continue
3852 else
3853 break
3854 fi
3855 ;;
3856 msvisualcpp | msvcmsys)
3857 # This compiler won't grok `-c -o', but also, the minuso test has
3858 # not run yet. These depmodes are late enough in the game, and
3859 # so weak that their functioning should not be impacted.
3860 am__obj=conftest.${OBJEXT-o}
3861 am__minus_obj=
3862 ;;
3863 none) break ;;
3864 esac
3865 if depmode=$depmode \
3866 source=sub/conftest.c object=$am__obj \
3867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3868 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3869 >/dev/null 2>conftest.err &&
3870 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3872 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3874 # icc doesn't choke on unknown options, it will just issue warnings
3875 # or remarks (even with -Werror). So we grep stderr for any message
3876 # that says an option was ignored or not supported.
3877 # When given -MP, icc 7.0 and 7.1 complain thusly:
3878 # icc: Command line warning: ignoring option '-M'; no argument required
3879 # The diagnosis changed in icc 8.0:
3880 # icc: Command line remark: option '-MP' not supported
3881 if (grep 'ignoring option' conftest.err ||
3882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3883 am_cv_CC_dependencies_compiler_type=$depmode
3884 break
3885 fi
3886 fi
3887 done
3888
3889 cd ..
3890 rm -rf conftest.dir
3891 else
3892 am_cv_CC_dependencies_compiler_type=none
3893 fi
3894
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3897 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3898 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899
3900 if
3901 test "x$enable_dependency_tracking" != xno \
3902 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3903 am__fastdepCC_TRUE=
3904 am__fastdepCC_FALSE='#'
3905 else
3906 am__fastdepCC_TRUE='#'
3907 am__fastdepCC_FALSE=
3908 fi
3909
3910
3911 case `pwd` in
3912 *\ * | *\ *)
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3914 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3915 esac
3916
3917
3918
3919 macro_version='2.2.6b'
3920 macro_revision='1.3017'
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934 ltmain="$ac_aux_dir/ltmain.sh"
3935
3936 # Make sure we can run config.sub.
3937 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3938 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3941 $as_echo_n "checking build system type... " >&6; }
3942 if test "${ac_cv_build+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 ac_build_alias=$build_alias
3946 test "x$ac_build_alias" = x &&
3947 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3948 test "x$ac_build_alias" = x &&
3949 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3950 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3951 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3952
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3955 $as_echo "$ac_cv_build" >&6; }
3956 case $ac_cv_build in
3957 *-*-*) ;;
3958 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3959 esac
3960 build=$ac_cv_build
3961 ac_save_IFS=$IFS; IFS='-'
3962 set x $ac_cv_build
3963 shift
3964 build_cpu=$1
3965 build_vendor=$2
3966 shift; shift
3967 # Remember, the first character of IFS is used to create $*,
3968 # except with old shells:
3969 build_os=$*
3970 IFS=$ac_save_IFS
3971 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3972
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3975 $as_echo_n "checking host system type... " >&6; }
3976 if test "${ac_cv_host+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test "x$host_alias" = x; then
3980 ac_cv_host=$ac_cv_build
3981 else
3982 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3983 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3984 fi
3985
3986 fi
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3988 $as_echo "$ac_cv_host" >&6; }
3989 case $ac_cv_host in
3990 *-*-*) ;;
3991 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3992 esac
3993 host=$ac_cv_host
3994 ac_save_IFS=$IFS; IFS='-'
3995 set x $ac_cv_host
3996 shift
3997 host_cpu=$1
3998 host_vendor=$2
3999 shift; shift
4000 # Remember, the first character of IFS is used to create $*,
4001 # except with old shells:
4002 host_os=$*
4003 IFS=$ac_save_IFS
4004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4005
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4008 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4009 if test "${ac_cv_path_SED+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4013 for ac_i in 1 2 3 4 5 6 7; do
4014 ac_script="$ac_script$as_nl$ac_script"
4015 done
4016 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4017 { ac_script=; unset ac_script;}
4018 if test -z "$SED"; then
4019 ac_path_SED_found=false
4020 # Loop through the user's path and test for each of PROGNAME-LIST
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_prog in sed gsed; do
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4029 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4030 # Check for GNU ac_path_SED and select it if it is found.
4031 # Check for GNU $ac_path_SED
4032 case `"$ac_path_SED" --version 2>&1` in
4033 *GNU*)
4034 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4035 *)
4036 ac_count=0
4037 $as_echo_n 0123456789 >"conftest.in"
4038 while :
4039 do
4040 cat "conftest.in" "conftest.in" >"conftest.tmp"
4041 mv "conftest.tmp" "conftest.in"
4042 cp "conftest.in" "conftest.nl"
4043 $as_echo '' >> "conftest.nl"
4044 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4046 as_fn_arith $ac_count + 1 && ac_count=$as_val
4047 if test $ac_count -gt ${ac_path_SED_max-0}; then
4048 # Best one so far, save it but keep looking for a better one
4049 ac_cv_path_SED="$ac_path_SED"
4050 ac_path_SED_max=$ac_count
4051 fi
4052 # 10*(2^10) chars as input seems more than enough
4053 test $ac_count -gt 10 && break
4054 done
4055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 esac
4057
4058 $ac_path_SED_found && break 3
4059 done
4060 done
4061 done
4062 IFS=$as_save_IFS
4063 if test -z "$ac_cv_path_SED"; then
4064 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4065 fi
4066 else
4067 ac_cv_path_SED=$SED
4068 fi
4069
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4072 $as_echo "$ac_cv_path_SED" >&6; }
4073 SED="$ac_cv_path_SED"
4074 rm -f conftest.sed
4075
4076 test -z "$SED" && SED=sed
4077 Xsed="$SED -e 1s/^X//"
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4090 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4091 if test "${ac_cv_path_GREP+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 if test -z "$GREP"; then
4095 ac_path_GREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in grep ggrep; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4105 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4106 # Check for GNU ac_path_GREP and select it if it is found.
4107 # Check for GNU $ac_path_GREP
4108 case `"$ac_path_GREP" --version 2>&1` in
4109 *GNU*)
4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4111 *)
4112 ac_count=0
4113 $as_echo_n 0123456789 >"conftest.in"
4114 while :
4115 do
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 $as_echo 'GREP' >> "conftest.nl"
4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 as_fn_arith $ac_count + 1 && ac_count=$as_val
4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_GREP="$ac_path_GREP"
4126 ac_path_GREP_max=$ac_count
4127 fi
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4130 done
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132 esac
4133
4134 $ac_path_GREP_found && break 3
4135 done
4136 done
4137 done
4138 IFS=$as_save_IFS
4139 if test -z "$ac_cv_path_GREP"; then
4140 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4141 fi
4142 else
4143 ac_cv_path_GREP=$GREP
4144 fi
4145
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4148 $as_echo "$ac_cv_path_GREP" >&6; }
4149 GREP="$ac_cv_path_GREP"
4150
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4153 $as_echo_n "checking for egrep... " >&6; }
4154 if test "${ac_cv_path_EGREP+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4158 then ac_cv_path_EGREP="$GREP -E"
4159 else
4160 if test -z "$EGREP"; then
4161 ac_path_EGREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in egrep; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4171 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4172 # Check for GNU ac_path_EGREP and select it if it is found.
4173 # Check for GNU $ac_path_EGREP
4174 case `"$ac_path_EGREP" --version 2>&1` in
4175 *GNU*)
4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4177 *)
4178 ac_count=0
4179 $as_echo_n 0123456789 >"conftest.in"
4180 while :
4181 do
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo 'EGREP' >> "conftest.nl"
4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 as_fn_arith $ac_count + 1 && ac_count=$as_val
4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_EGREP="$ac_path_EGREP"
4192 ac_path_EGREP_max=$ac_count
4193 fi
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4196 done
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 esac
4199
4200 $ac_path_EGREP_found && break 3
4201 done
4202 done
4203 done
4204 IFS=$as_save_IFS
4205 if test -z "$ac_cv_path_EGREP"; then
4206 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207 fi
4208 else
4209 ac_cv_path_EGREP=$EGREP
4210 fi
4211
4212 fi
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4215 $as_echo "$ac_cv_path_EGREP" >&6; }
4216 EGREP="$ac_cv_path_EGREP"
4217
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4220 $as_echo_n "checking for fgrep... " >&6; }
4221 if test "${ac_cv_path_FGREP+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4225 then ac_cv_path_FGREP="$GREP -F"
4226 else
4227 if test -z "$FGREP"; then
4228 ac_path_FGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in fgrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4239 # Check for GNU ac_path_FGREP and select it if it is found.
4240 # Check for GNU $ac_path_FGREP
4241 case `"$ac_path_FGREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4244 *)
4245 ac_count=0
4246 $as_echo_n 0123456789 >"conftest.in"
4247 while :
4248 do
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'FGREP' >> "conftest.nl"
4253 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_FGREP="$ac_path_FGREP"
4259 ac_path_FGREP_max=$ac_count
4260 fi
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4266
4267 $ac_path_FGREP_found && break 3
4268 done
4269 done
4270 done
4271 IFS=$as_save_IFS
4272 if test -z "$ac_cv_path_FGREP"; then
4273 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4274 fi
4275 else
4276 ac_cv_path_FGREP=$FGREP
4277 fi
4278
4279 fi
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4282 $as_echo "$ac_cv_path_FGREP" >&6; }
4283 FGREP="$ac_cv_path_FGREP"
4284
4285
4286 test -z "$GREP" && GREP=grep
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306 # Check whether --with-gnu-ld was given.
4307 if test "${with_gnu_ld+set}" = set; then :
4308 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4309 else
4310 with_gnu_ld=no
4311 fi
4312
4313 ac_prog=ld
4314 if test "$GCC" = yes; then
4315 # Check if gcc -print-prog-name=ld gives a path.
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4317 $as_echo_n "checking for ld used by $CC... " >&6; }
4318 case $host in
4319 *-*-mingw*)
4320 # gcc leaves a trailing carriage return which upsets mingw
4321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4322 *)
4323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4324 esac
4325 case $ac_prog in
4326 # Accept absolute paths.
4327 [\\/]* | ?:[\\/]*)
4328 re_direlt='/[^/][^/]*/\.\./'
4329 # Canonicalize the pathname of ld
4330 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4331 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4332 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4333 done
4334 test -z "$LD" && LD="$ac_prog"
4335 ;;
4336 "")
4337 # If it fails, then pretend we aren't using GCC.
4338 ac_prog=ld
4339 ;;
4340 *)
4341 # If it is relative, then search for the first ld in PATH.
4342 with_gnu_ld=unknown
4343 ;;
4344 esac
4345 elif test "$with_gnu_ld" = yes; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4347 $as_echo_n "checking for GNU ld... " >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4350 $as_echo_n "checking for non-GNU ld... " >&6; }
4351 fi
4352 if test "${lt_cv_path_LD+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -z "$LD"; then
4356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4357 for ac_dir in $PATH; do
4358 IFS="$lt_save_ifs"
4359 test -z "$ac_dir" && ac_dir=.
4360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4361 lt_cv_path_LD="$ac_dir/$ac_prog"
4362 # Check to see if the program is GNU ld. I'd rather use --version,
4363 # but apparently some variants of GNU ld only accept -v.
4364 # Break only if it was the GNU/non-GNU ld that we prefer.
4365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4366 *GNU* | *'with BFD'*)
4367 test "$with_gnu_ld" != no && break
4368 ;;
4369 *)
4370 test "$with_gnu_ld" != yes && break
4371 ;;
4372 esac
4373 fi
4374 done
4375 IFS="$lt_save_ifs"
4376 else
4377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4378 fi
4379 fi
4380
4381 LD="$lt_cv_path_LD"
4382 if test -n "$LD"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4384 $as_echo "$LD" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4396 case `$LD -v 2>&1 </dev/null` in
4397 *GNU* | *'with BFD'*)
4398 lt_cv_prog_gnu_ld=yes
4399 ;;
4400 *)
4401 lt_cv_prog_gnu_ld=no
4402 ;;
4403 esac
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4407 with_gnu_ld=$lt_cv_prog_gnu_ld
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4418 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4419 if test "${lt_cv_path_NM+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -n "$NM"; then
4423 # Let the user override the test.
4424 lt_cv_path_NM="$NM"
4425 else
4426 lt_nm_to_check="${ac_tool_prefix}nm"
4427 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4428 lt_nm_to_check="$lt_nm_to_check nm"
4429 fi
4430 for lt_tmp_nm in $lt_nm_to_check; do
4431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4432 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4433 IFS="$lt_save_ifs"
4434 test -z "$ac_dir" && ac_dir=.
4435 tmp_nm="$ac_dir/$lt_tmp_nm"
4436 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4437 # Check to see if the nm accepts a BSD-compat flag.
4438 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4439 # nm: unknown option "B" ignored
4440 # Tru64's nm complains that /dev/null is an invalid object file
4441 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4442 */dev/null* | *'Invalid file or object type'*)
4443 lt_cv_path_NM="$tmp_nm -B"
4444 break
4445 ;;
4446 *)
4447 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4448 */dev/null*)
4449 lt_cv_path_NM="$tmp_nm -p"
4450 break
4451 ;;
4452 *)
4453 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4454 continue # so that we can try to find one that supports BSD flags
4455 ;;
4456 esac
4457 ;;
4458 esac
4459 fi
4460 done
4461 IFS="$lt_save_ifs"
4462 done
4463 : ${lt_cv_path_NM=no}
4464 fi
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4467 $as_echo "$lt_cv_path_NM" >&6; }
4468 if test "$lt_cv_path_NM" != "no"; then
4469 NM="$lt_cv_path_NM"
4470 else
4471 # Didn't find any BSD compatible name lister, look for dumpbin.
4472 if test -n "$ac_tool_prefix"; then
4473 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4474 do
4475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -n "$DUMPBIN"; then
4483 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500 fi
4501 fi
4502 DUMPBIN=$ac_cv_prog_DUMPBIN
4503 if test -n "$DUMPBIN"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4505 $as_echo "$DUMPBIN" >&6; }
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4509 fi
4510
4511
4512 test -n "$DUMPBIN" && break
4513 done
4514 fi
4515 if test -z "$DUMPBIN"; then
4516 ac_ct_DUMPBIN=$DUMPBIN
4517 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4518 do
4519 # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy $ac_prog; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if test -n "$ac_ct_DUMPBIN"; then
4527 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 fi
4545 fi
4546 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4547 if test -n "$ac_ct_DUMPBIN"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4549 $as_echo "$ac_ct_DUMPBIN" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4554
4555
4556 test -n "$ac_ct_DUMPBIN" && break
4557 done
4558
4559 if test "x$ac_ct_DUMPBIN" = x; then
4560 DUMPBIN=":"
4561 else
4562 case $cross_compiling:$ac_tool_warned in
4563 yes:)
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568 DUMPBIN=$ac_ct_DUMPBIN
4569 fi
4570 fi
4571
4572
4573 if test "$DUMPBIN" != ":"; then
4574 NM="$DUMPBIN"
4575 fi
4576 fi
4577 test -z "$NM" && NM=nm
4578
4579
4580
4581
4582
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4585 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4586 if test "${lt_cv_nm_interface+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 lt_cv_nm_interface="BSD nm"
4590 echo "int some_variable = 0;" > conftest.$ac_ext
4591 (eval echo "\"\$as_me:4591: $ac_compile\"" >&5)
4592 (eval "$ac_compile" 2>conftest.err)
4593 cat conftest.err >&5
4594 (eval echo "\"\$as_me:4594: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4595 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4596 cat conftest.err >&5
4597 (eval echo "\"\$as_me:4597: output\"" >&5)
4598 cat conftest.out >&5
4599 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4600 lt_cv_nm_interface="MS dumpbin"
4601 fi
4602 rm -f conftest*
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4605 $as_echo "$lt_cv_nm_interface" >&6; }
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4608 $as_echo_n "checking whether ln -s works... " >&6; }
4609 LN_S=$as_ln_s
4610 if test "$LN_S" = "ln -s"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4612 $as_echo "yes" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4615 $as_echo "no, using $LN_S" >&6; }
4616 fi
4617
4618 # find the maximum length of command line arguments
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4620 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4621 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 i=0
4625 teststring="ABCD"
4626
4627 case $build_os in
4628 msdosdjgpp*)
4629 # On DJGPP, this test can blow up pretty badly due to problems in libc
4630 # (any single argument exceeding 2000 bytes causes a buffer overrun
4631 # during glob expansion). Even if it were fixed, the result of this
4632 # check would be larger than it should be.
4633 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4634 ;;
4635
4636 gnu*)
4637 # Under GNU Hurd, this test is not required because there is
4638 # no limit to the length of command line arguments.
4639 # Libtool will interpret -1 as no limit whatsoever
4640 lt_cv_sys_max_cmd_len=-1;
4641 ;;
4642
4643 cygwin* | mingw* | cegcc*)
4644 # On Win9x/ME, this test blows up -- it succeeds, but takes
4645 # about 5 minutes as the teststring grows exponentially.
4646 # Worse, since 9x/ME are not pre-emptively multitasking,
4647 # you end up with a "frozen" computer, even though with patience
4648 # the test eventually succeeds (with a max line length of 256k).
4649 # Instead, let's just punt: use the minimum linelength reported by
4650 # all of the supported platforms: 8192 (on NT/2K/XP).
4651 lt_cv_sys_max_cmd_len=8192;
4652 ;;
4653
4654 amigaos*)
4655 # On AmigaOS with pdksh, this test takes hours, literally.
4656 # So we just punt and use a minimum line length of 8192.
4657 lt_cv_sys_max_cmd_len=8192;
4658 ;;
4659
4660 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4661 # This has been around since 386BSD, at least. Likely further.
4662 if test -x /sbin/sysctl; then
4663 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4664 elif test -x /usr/sbin/sysctl; then
4665 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4666 else
4667 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4668 fi
4669 # And add a safety zone
4670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4672 ;;
4673
4674 interix*)
4675 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4676 lt_cv_sys_max_cmd_len=196608
4677 ;;
4678
4679 osf*)
4680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4682 # nice to cause kernel panics so lets avoid the loop below.
4683 # First set a reasonable default.
4684 lt_cv_sys_max_cmd_len=16384
4685 #
4686 if test -x /sbin/sysconfig; then
4687 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4688 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4689 esac
4690 fi
4691 ;;
4692 sco3.2v5*)
4693 lt_cv_sys_max_cmd_len=102400
4694 ;;
4695 sysv5* | sco5v6* | sysv4.2uw2*)
4696 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4697 if test -n "$kargmax"; then
4698 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4699 else
4700 lt_cv_sys_max_cmd_len=32768
4701 fi
4702 ;;
4703 *)
4704 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4705 if test -n "$lt_cv_sys_max_cmd_len"; then
4706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4708 else
4709 # Make teststring a little bigger before we do anything with it.
4710 # a 1K string should be a reasonable start.
4711 for i in 1 2 3 4 5 6 7 8 ; do
4712 teststring=$teststring$teststring
4713 done
4714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4715 # If test is not a shell built-in, we'll probably end up computing a
4716 # maximum length that is only half of the actual maximum length, but
4717 # we can't tell.
4718 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4719 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4720 test $i != 17 # 1/2 MB should be enough
4721 do
4722 i=`expr $i + 1`
4723 teststring=$teststring$teststring
4724 done
4725 # Only check the string length outside the loop.
4726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4727 teststring=
4728 # Add a significant safety factor because C++ compilers can tack on
4729 # massive amounts of additional arguments before passing them to the
4730 # linker. It appears as though 1/2 is a usable value.
4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4732 fi
4733 ;;
4734 esac
4735
4736 fi
4737
4738 if test -n $lt_cv_sys_max_cmd_len ; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4740 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4743 $as_echo "none" >&6; }
4744 fi
4745 max_cmd_len=$lt_cv_sys_max_cmd_len
4746
4747
4748
4749
4750
4751
4752 : ${CP="cp -f"}
4753 : ${MV="mv -f"}
4754 : ${RM="rm -f"}
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4757 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4758 # Try some XSI features
4759 xsi_shell=no
4760 ( _lt_dummy="a/b/c"
4761 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4762 = c,a/b,, \
4763 && eval 'test $(( 1 + 1 )) -eq 2 \
4764 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4765 && xsi_shell=yes
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4767 $as_echo "$xsi_shell" >&6; }
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4771 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4772 lt_shell_append=no
4773 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4774 >/dev/null 2>&1 \
4775 && lt_shell_append=yes
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4777 $as_echo "$lt_shell_append" >&6; }
4778
4779
4780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4781 lt_unset=unset
4782 else
4783 lt_unset=false
4784 fi
4785
4786
4787
4788
4789
4790 # test EBCDIC or ASCII
4791 case `echo X|tr X '\101'` in
4792 A) # ASCII based system
4793 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4794 lt_SP2NL='tr \040 \012'
4795 lt_NL2SP='tr \015\012 \040\040'
4796 ;;
4797 *) # EBCDIC based system
4798 lt_SP2NL='tr \100 \n'
4799 lt_NL2SP='tr \r\n \100\100'
4800 ;;
4801 esac
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4812 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4813 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 lt_cv_ld_reload_flag='-r'
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4819 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4820 reload_flag=$lt_cv_ld_reload_flag
4821 case $reload_flag in
4822 "" | " "*) ;;
4823 *) reload_flag=" $reload_flag" ;;
4824 esac
4825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4826 case $host_os in
4827 darwin*)
4828 if test "$GCC" = yes; then
4829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4830 else
4831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4832 fi
4833 ;;
4834 esac
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844 if test -n "$ac_tool_prefix"; then
4845 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$OBJDUMP"; then
4853 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866 done
4867 done
4868 IFS=$as_save_IFS
4869
4870 fi
4871 fi
4872 OBJDUMP=$ac_cv_prog_OBJDUMP
4873 if test -n "$OBJDUMP"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4875 $as_echo "$OBJDUMP" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4879 fi
4880
4881
4882 fi
4883 if test -z "$ac_cv_prog_OBJDUMP"; then
4884 ac_ct_OBJDUMP=$OBJDUMP
4885 # Extract the first word of "objdump", so it can be a program name with args.
4886 set dummy objdump; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$ac_ct_OBJDUMP"; then
4893 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910 fi
4911 fi
4912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4913 if test -n "$ac_ct_OBJDUMP"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4915 $as_echo "$ac_ct_OBJDUMP" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 fi
4920
4921 if test "x$ac_ct_OBJDUMP" = x; then
4922 OBJDUMP="false"
4923 else
4924 case $cross_compiling:$ac_tool_warned in
4925 yes:)
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4928 ac_tool_warned=yes ;;
4929 esac
4930 OBJDUMP=$ac_ct_OBJDUMP
4931 fi
4932 else
4933 OBJDUMP="$ac_cv_prog_OBJDUMP"
4934 fi
4935
4936 test -z "$OBJDUMP" && OBJDUMP=objdump
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4948 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 lt_cv_file_magic_cmd='$MAGIC_CMD'
4952 lt_cv_file_magic_test_file=
4953 lt_cv_deplibs_check_method='unknown'
4954 # Need to set the preceding variable on all platforms that support
4955 # interlibrary dependencies.
4956 # 'none' -- dependencies not supported.
4957 # `unknown' -- same as none, but documents that we really don't know.
4958 # 'pass_all' -- all dependencies passed with no checks.
4959 # 'test_compile' -- check by making test program.
4960 # 'file_magic [[regex]]' -- check by looking for files in library path
4961 # which responds to the $file_magic_cmd with a given extended regex.
4962 # If you have `file' or equivalent on your system and you're not sure
4963 # whether `pass_all' will *always* work, you probably want this one.
4964
4965 case $host_os in
4966 aix[4-9]*)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969
4970 beos*)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974 bsdi[45]*)
4975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4976 lt_cv_file_magic_cmd='/usr/bin/file -L'
4977 lt_cv_file_magic_test_file=/shlib/libc.so
4978 ;;
4979
4980 cygwin*)
4981 # func_win32_libid is a shell function defined in ltmain.sh
4982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4983 lt_cv_file_magic_cmd='func_win32_libid'
4984 ;;
4985
4986 mingw* | pw32*)
4987 # Base MSYS/MinGW do not provide the 'file' command needed by
4988 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4989 # unless we find 'file', for example because we are cross-compiling.
4990 if ( file / ) >/dev/null 2>&1; then
4991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4992 lt_cv_file_magic_cmd='func_win32_libid'
4993 else
4994 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4995 lt_cv_file_magic_cmd='$OBJDUMP -f'
4996 fi
4997 ;;
4998
4999 cegcc)
5000 # use the weaker test based on 'objdump'. See mingw*.
5001 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5002 lt_cv_file_magic_cmd='$OBJDUMP -f'
5003 ;;
5004
5005 darwin* | rhapsody*)
5006 lt_cv_deplibs_check_method=pass_all
5007 ;;
5008
5009 freebsd* | dragonfly*)
5010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5011 case $host_cpu in
5012 i*86 )
5013 # Not sure whether the presence of OpenBSD here was a mistake.
5014 # Let's accept both of them until this is cleared up.
5015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5016 lt_cv_file_magic_cmd=/usr/bin/file
5017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5018 ;;
5019 esac
5020 else
5021 lt_cv_deplibs_check_method=pass_all
5022 fi
5023 ;;
5024
5025 gnu*)
5026 lt_cv_deplibs_check_method=pass_all
5027 ;;
5028
5029 hpux10.20* | hpux11*)
5030 lt_cv_file_magic_cmd=/usr/bin/file
5031 case $host_cpu in
5032 ia64*)
5033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5034 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5035 ;;
5036 hppa*64*)
5037 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]'
5038 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5039 ;;
5040 *)
5041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5042 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5043 ;;
5044 esac
5045 ;;
5046
5047 interix[3-9]*)
5048 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5050 ;;
5051
5052 irix5* | irix6* | nonstopux*)
5053 case $LD in
5054 *-32|*"-32 ") libmagic=32-bit;;
5055 *-n32|*"-n32 ") libmagic=N32;;
5056 *-64|*"-64 ") libmagic=64-bit;;
5057 *) libmagic=never-match;;
5058 esac
5059 lt_cv_deplibs_check_method=pass_all
5060 ;;
5061
5062 # This must be Linux ELF.
5063 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066
5067 netbsd* | netbsdelf*-gnu)
5068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5070 else
5071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5072 fi
5073 ;;
5074
5075 newos6*)
5076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5077 lt_cv_file_magic_cmd=/usr/bin/file
5078 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5079 ;;
5080
5081 *nto* | *qnx*)
5082 lt_cv_deplibs_check_method=pass_all
5083 ;;
5084
5085 openbsd*)
5086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5088 else
5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5090 fi
5091 ;;
5092
5093 osf3* | osf4* | osf5*)
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096
5097 rdos*)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100
5101 solaris*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104
5105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108
5109 sysv4 | sysv4.3*)
5110 case $host_vendor in
5111 motorola)
5112 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]'
5113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5114 ;;
5115 ncr)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118 sequent)
5119 lt_cv_file_magic_cmd='/bin/file'
5120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5121 ;;
5122 sni)
5123 lt_cv_file_magic_cmd='/bin/file'
5124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5125 lt_cv_file_magic_test_file=/lib/libc.so
5126 ;;
5127 siemens)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130 pc)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133 esac
5134 ;;
5135
5136 tpf*)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139 esac
5140
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5143 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5144 file_magic_cmd=$lt_cv_file_magic_cmd
5145 deplibs_check_method=$lt_cv_deplibs_check_method
5146 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}ar; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_prog_AR+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$AR"; then
5168 ac_cv_prog_AR="$AR" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_AR="${ac_tool_prefix}ar"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 AR=$ac_cv_prog_AR
5188 if test -n "$AR"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5190 $as_echo "$AR" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196
5197 fi
5198 if test -z "$ac_cv_prog_AR"; then
5199 ac_ct_AR=$AR
5200 # Extract the first word of "ar", so it can be a program name with args.
5201 set dummy ar; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ac_ct_AR"; then
5208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_AR="ar"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5228 if test -n "$ac_ct_AR"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5230 $as_echo "$ac_ct_AR" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236 if test "x$ac_ct_AR" = x; then
5237 AR="false"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240 yes:)
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245 AR=$ac_ct_AR
5246 fi
5247 else
5248 AR="$ac_cv_prog_AR"
5249 fi
5250
5251 test -z "$AR" && AR=ar
5252 test -z "$AR_FLAGS" && AR_FLAGS=cru
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264 if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}strip; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_STRIP+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$STRIP"; then
5273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 STRIP=$ac_cv_prog_STRIP
5293 if test -n "$STRIP"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5295 $as_echo "$STRIP" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 fi
5303 if test -z "$ac_cv_prog_STRIP"; then
5304 ac_ct_STRIP=$STRIP
5305 # Extract the first word of "strip", so it can be a program name with args.
5306 set dummy strip; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$ac_ct_STRIP"; then
5313 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_ac_ct_STRIP="strip"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5333 if test -n "$ac_ct_STRIP"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5335 $as_echo "$ac_ct_STRIP" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341 if test "x$ac_ct_STRIP" = x; then
5342 STRIP=":"
5343 else
5344 case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350 STRIP=$ac_ct_STRIP
5351 fi
5352 else
5353 STRIP="$ac_cv_prog_STRIP"
5354 fi
5355
5356 test -z "$STRIP" && STRIP=:
5357
5358
5359
5360
5361
5362
5363 if test -n "$ac_tool_prefix"; then
5364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5365 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$RANLIB"; then
5372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 fi
5390 fi
5391 RANLIB=$ac_cv_prog_RANLIB
5392 if test -n "$RANLIB"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5394 $as_echo "$RANLIB" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400
5401 fi
5402 if test -z "$ac_cv_prog_RANLIB"; then
5403 ac_ct_RANLIB=$RANLIB
5404 # Extract the first word of "ranlib", so it can be a program name with args.
5405 set dummy ranlib; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -n "$ac_ct_RANLIB"; then
5412 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_ac_ct_RANLIB="ranlib"
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5432 if test -n "$ac_ct_RANLIB"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5434 $as_echo "$ac_ct_RANLIB" >&6; }
5435 else
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440 if test "x$ac_ct_RANLIB" = x; then
5441 RANLIB=":"
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 RANLIB=$ac_ct_RANLIB
5450 fi
5451 else
5452 RANLIB="$ac_cv_prog_RANLIB"
5453 fi
5454
5455 test -z "$RANLIB" && RANLIB=:
5456
5457
5458
5459
5460
5461
5462 # Determine commands to create old-style static archives.
5463 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5464 old_postinstall_cmds='chmod 644 $oldlib'
5465 old_postuninstall_cmds=
5466
5467 if test -n "$RANLIB"; then
5468 case $host_os in
5469 openbsd*)
5470 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5471 ;;
5472 *)
5473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5474 ;;
5475 esac
5476 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5477 fi
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512 # If no C compiler was specified, use CC.
5513 LTCC=${LTCC-"$CC"}
5514
5515 # If no C compiler flags were specified, use CFLAGS.
5516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5517
5518 # Allow CC to be a program name with arguments.
5519 compiler=$CC
5520
5521
5522 # Check for command to grab the raw symbol name followed by C symbol from nm.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5524 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5525 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528
5529 # These are sane defaults that work on at least a few old systems.
5530 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5531
5532 # Character class describing NM global symbol codes.
5533 symcode='[BCDEGRST]'
5534
5535 # Regexp to match symbols that can be accessed directly from C.
5536 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5537
5538 # Define system-specific variables.
5539 case $host_os in
5540 aix*)
5541 symcode='[BCDT]'
5542 ;;
5543 cygwin* | mingw* | pw32* | cegcc*)
5544 symcode='[ABCDGISTW]'
5545 ;;
5546 hpux*)
5547 if test "$host_cpu" = ia64; then
5548 symcode='[ABCDEGRST]'
5549 fi
5550 ;;
5551 irix* | nonstopux*)
5552 symcode='[BCDEGRST]'
5553 ;;
5554 osf*)
5555 symcode='[BCDEGQRST]'
5556 ;;
5557 solaris*)
5558 symcode='[BDRT]'
5559 ;;
5560 sco3.2v5*)
5561 symcode='[DT]'
5562 ;;
5563 sysv4.2uw2*)
5564 symcode='[DT]'
5565 ;;
5566 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5567 symcode='[ABDT]'
5568 ;;
5569 sysv4)
5570 symcode='[DFNSTU]'
5571 ;;
5572 esac
5573
5574 # If we're using GNU nm, then use its standard symbol codes.
5575 case `$NM -V 2>&1` in
5576 *GNU* | *'with BFD'*)
5577 symcode='[ABCDGIRSTW]' ;;
5578 esac
5579
5580 # Transform an extracted symbol line into a proper C declaration.
5581 # Some systems (esp. on ia64) link data and code symbols differently,
5582 # so use this general approach.
5583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5584
5585 # Transform an extracted symbol line into symbol name and symbol address
5586 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5587 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'"
5588
5589 # Handle CRLF in mingw tool chain
5590 opt_cr=
5591 case $build_os in
5592 mingw*)
5593 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5594 ;;
5595 esac
5596
5597 # Try without a prefix underscore, then with it.
5598 for ac_symprfx in "" "_"; do
5599
5600 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5601 symxfrm="\\1 $ac_symprfx\\2 \\2"
5602
5603 # Write the raw and C identifiers.
5604 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5605 # Fake it for dumpbin and say T for any non-static function
5606 # and D for any global variable.
5607 # Also find C++ and __fastcall symbols from MSVC++,
5608 # which start with @ or ?.
5609 lt_cv_sys_global_symbol_pipe="$AWK '"\
5610 " {last_section=section; section=\$ 3};"\
5611 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5612 " \$ 0!~/External *\|/{next};"\
5613 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5614 " {if(hide[section]) next};"\
5615 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5616 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5617 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5618 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5619 " ' prfx=^$ac_symprfx"
5620 else
5621 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5622 fi
5623
5624 # Check to see that the pipe works correctly.
5625 pipe_works=no
5626
5627 rm -f conftest*
5628 cat > conftest.$ac_ext <<_LT_EOF
5629 #ifdef __cplusplus
5630 extern "C" {
5631 #endif
5632 char nm_test_var;
5633 void nm_test_func(void);
5634 void nm_test_func(void){}
5635 #ifdef __cplusplus
5636 }
5637 #endif
5638 int main(){nm_test_var='a';nm_test_func();return(0);}
5639 _LT_EOF
5640
5641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5642 (eval $ac_compile) 2>&5
5643 ac_status=$?
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; }; then
5646 # Now try to grab the symbols.
5647 nlist=conftest.nm
5648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5649 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5650 ac_status=$?
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; } && test -s "$nlist"; then
5653 # Try sorting and uniquifying the output.
5654 if sort "$nlist" | uniq > "$nlist"T; then
5655 mv -f "$nlist"T "$nlist"
5656 else
5657 rm -f "$nlist"T
5658 fi
5659
5660 # Make sure that we snagged all the symbols we need.
5661 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5662 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5663 cat <<_LT_EOF > conftest.$ac_ext
5664 #ifdef __cplusplus
5665 extern "C" {
5666 #endif
5667
5668 _LT_EOF
5669 # Now generate the symbol file.
5670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5671
5672 cat <<_LT_EOF >> conftest.$ac_ext
5673
5674 /* The mapping between symbol names and symbols. */
5675 const struct {
5676 const char *name;
5677 void *address;
5678 }
5679 lt__PROGRAM__LTX_preloaded_symbols[] =
5680 {
5681 { "@PROGRAM@", (void *) 0 },
5682 _LT_EOF
5683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5684 cat <<\_LT_EOF >> conftest.$ac_ext
5685 {0, (void *) 0}
5686 };
5687
5688 /* This works around a problem in FreeBSD linker */
5689 #ifdef FREEBSD_WORKAROUND
5690 static const void *lt_preloaded_setup() {
5691 return lt__PROGRAM__LTX_preloaded_symbols;
5692 }
5693 #endif
5694
5695 #ifdef __cplusplus
5696 }
5697 #endif
5698 _LT_EOF
5699 # Now try linking the two files.
5700 mv conftest.$ac_objext conftstm.$ac_objext
5701 lt_save_LIBS="$LIBS"
5702 lt_save_CFLAGS="$CFLAGS"
5703 LIBS="conftstm.$ac_objext"
5704 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5706 (eval $ac_link) 2>&5
5707 ac_status=$?
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5710 pipe_works=yes
5711 fi
5712 LIBS="$lt_save_LIBS"
5713 CFLAGS="$lt_save_CFLAGS"
5714 else
5715 echo "cannot find nm_test_func in $nlist" >&5
5716 fi
5717 else
5718 echo "cannot find nm_test_var in $nlist" >&5
5719 fi
5720 else
5721 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5722 fi
5723 else
5724 echo "$progname: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5726 fi
5727 rm -rf conftest* conftst*
5728
5729 # Do not use the global_symbol_pipe unless it works.
5730 if test "$pipe_works" = yes; then
5731 break
5732 else
5733 lt_cv_sys_global_symbol_pipe=
5734 fi
5735 done
5736
5737 fi
5738
5739 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5740 lt_cv_sys_global_symbol_to_cdecl=
5741 fi
5742 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5744 $as_echo "failed" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5747 $as_echo "ok" >&6; }
5748 fi
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 # Check whether --enable-libtool-lock was given.
5773 if test "${enable_libtool_lock+set}" = set; then :
5774 enableval=$enable_libtool_lock;
5775 fi
5776
5777 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5778
5779 # Some flags need to be propagated to the compiler or linker for good
5780 # libtool support.
5781 case $host in
5782 ia64-*-hpux*)
5783 # Find out which ABI we are using.
5784 echo 'int i;' > conftest.$ac_ext
5785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5786 (eval $ac_compile) 2>&5
5787 ac_status=$?
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5789 test $ac_status = 0; }; then
5790 case `/usr/bin/file conftest.$ac_objext` in
5791 *ELF-32*)
5792 HPUX_IA64_MODE="32"
5793 ;;
5794 *ELF-64*)
5795 HPUX_IA64_MODE="64"
5796 ;;
5797 esac
5798 fi
5799 rm -rf conftest*
5800 ;;
5801 *-*-irix6*)
5802 # Find out which ABI we are using.
5803 echo '#line 5803 "configure"' > conftest.$ac_ext
5804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5805 (eval $ac_compile) 2>&5
5806 ac_status=$?
5807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808 test $ac_status = 0; }; then
5809 if test "$lt_cv_prog_gnu_ld" = yes; then
5810 case `/usr/bin/file conftest.$ac_objext` in
5811 *32-bit*)
5812 LD="${LD-ld} -melf32bsmip"
5813 ;;
5814 *N32*)
5815 LD="${LD-ld} -melf32bmipn32"
5816 ;;
5817 *64-bit*)
5818 LD="${LD-ld} -melf64bmip"
5819 ;;
5820 esac
5821 else
5822 case `/usr/bin/file conftest.$ac_objext` in
5823 *32-bit*)
5824 LD="${LD-ld} -32"
5825 ;;
5826 *N32*)
5827 LD="${LD-ld} -n32"
5828 ;;
5829 *64-bit*)
5830 LD="${LD-ld} -64"
5831 ;;
5832 esac
5833 fi
5834 fi
5835 rm -rf conftest*
5836 ;;
5837
5838 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5839 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5840 # Find out which ABI we are using.
5841 echo 'int i;' > conftest.$ac_ext
5842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5843 (eval $ac_compile) 2>&5
5844 ac_status=$?
5845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846 test $ac_status = 0; }; then
5847 case `/usr/bin/file conftest.o` in
5848 *32-bit*)
5849 case $host in
5850 x86_64-*kfreebsd*-gnu)
5851 LD="${LD-ld} -m elf_i386_fbsd"
5852 ;;
5853 x86_64-*linux*)
5854 LD="${LD-ld} -m elf_i386"
5855 ;;
5856 ppc64-*linux*|powerpc64-*linux*)
5857 LD="${LD-ld} -m elf32ppclinux"
5858 ;;
5859 s390x-*linux*)
5860 LD="${LD-ld} -m elf_s390"
5861 ;;
5862 sparc64-*linux*)
5863 LD="${LD-ld} -m elf32_sparc"
5864 ;;
5865 esac
5866 ;;
5867 *64-bit*)
5868 case $host in
5869 x86_64-*kfreebsd*-gnu)
5870 LD="${LD-ld} -m elf_x86_64_fbsd"
5871 ;;
5872 x86_64-*linux*)
5873 LD="${LD-ld} -m elf_x86_64"
5874 ;;
5875 ppc*-*linux*|powerpc*-*linux*)
5876 LD="${LD-ld} -m elf64ppc"
5877 ;;
5878 s390*-*linux*|s390*-*tpf*)
5879 LD="${LD-ld} -m elf64_s390"
5880 ;;
5881 sparc*-*linux*)
5882 LD="${LD-ld} -m elf64_sparc"
5883 ;;
5884 esac
5885 ;;
5886 esac
5887 fi
5888 rm -rf conftest*
5889 ;;
5890
5891 *-*-sco3.2v5*)
5892 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5893 SAVE_CFLAGS="$CFLAGS"
5894 CFLAGS="$CFLAGS -belf"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5896 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5897 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 ac_ext=c
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908
5909 int
5910 main ()
5911 {
5912
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_link "$LINENO"; then :
5918 lt_cv_cc_needs_belf=yes
5919 else
5920 lt_cv_cc_needs_belf=no
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924 ac_ext=c
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5932 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5933 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5934 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5935 CFLAGS="$SAVE_CFLAGS"
5936 fi
5937 ;;
5938 sparc*-*solaris*)
5939 # Find out which ABI we are using.
5940 echo 'int i;' > conftest.$ac_ext
5941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5942 (eval $ac_compile) 2>&5
5943 ac_status=$?
5944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945 test $ac_status = 0; }; then
5946 case `/usr/bin/file conftest.o` in
5947 *64-bit*)
5948 case $lt_cv_prog_gnu_ld in
5949 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5950 *)
5951 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5952 LD="${LD-ld} -64"
5953 fi
5954 ;;
5955 esac
5956 ;;
5957 esac
5958 fi
5959 rm -rf conftest*
5960 ;;
5961 esac
5962
5963 need_locks="$enable_libtool_lock"
5964
5965
5966 case $host_os in
5967 rhapsody* | darwin*)
5968 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$DSYMUTIL"; then
5977 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5997 if test -n "$DSYMUTIL"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5999 $as_echo "$DSYMUTIL" >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005
6006 fi
6007 if test -z "$ac_cv_prog_DSYMUTIL"; then
6008 ac_ct_DSYMUTIL=$DSYMUTIL
6009 # Extract the first word of "dsymutil", so it can be a program name with args.
6010 set dummy dsymutil; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$ac_ct_DSYMUTIL"; then
6017 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6037 if test -n "$ac_ct_DSYMUTIL"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6039 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045 if test "x$ac_ct_DSYMUTIL" = x; then
6046 DSYMUTIL=":"
6047 else
6048 case $cross_compiling:$ac_tool_warned in
6049 yes:)
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6052 ac_tool_warned=yes ;;
6053 esac
6054 DSYMUTIL=$ac_ct_DSYMUTIL
6055 fi
6056 else
6057 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6058 fi
6059
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6062 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$NMEDIT"; then
6069 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 NMEDIT=$ac_cv_prog_NMEDIT
6089 if test -n "$NMEDIT"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6091 $as_echo "$NMEDIT" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6095 fi
6096
6097
6098 fi
6099 if test -z "$ac_cv_prog_NMEDIT"; then
6100 ac_ct_NMEDIT=$NMEDIT
6101 # Extract the first word of "nmedit", so it can be a program name with args.
6102 set dummy nmedit; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$ac_ct_NMEDIT"; then
6109 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122 done
6123 done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6129 if test -n "$ac_ct_NMEDIT"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6131 $as_echo "$ac_ct_NMEDIT" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137 if test "x$ac_ct_NMEDIT" = x; then
6138 NMEDIT=":"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141 yes:)
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6145 esac
6146 NMEDIT=$ac_ct_NMEDIT
6147 fi
6148 else
6149 NMEDIT="$ac_cv_prog_NMEDIT"
6150 fi
6151
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6154 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_LIPO+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$LIPO"; then
6161 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 LIPO=$ac_cv_prog_LIPO
6181 if test -n "$LIPO"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6183 $as_echo "$LIPO" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189
6190 fi
6191 if test -z "$ac_cv_prog_LIPO"; then
6192 ac_ct_LIPO=$LIPO
6193 # Extract the first word of "lipo", so it can be a program name with args.
6194 set dummy lipo; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$ac_ct_LIPO"; then
6201 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_ac_ct_LIPO="lipo"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6221 if test -n "$ac_ct_LIPO"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6223 $as_echo "$ac_ct_LIPO" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6227 fi
6228
6229 if test "x$ac_ct_LIPO" = x; then
6230 LIPO=":"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233 yes:)
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned=yes ;;
6237 esac
6238 LIPO=$ac_ct_LIPO
6239 fi
6240 else
6241 LIPO="$ac_cv_prog_LIPO"
6242 fi
6243
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}otool; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$OTOOL"; then
6253 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 OTOOL=$ac_cv_prog_OTOOL
6273 if test -n "$OTOOL"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6275 $as_echo "$OTOOL" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_OTOOL"; then
6284 ac_ct_OTOOL=$OTOOL
6285 # Extract the first word of "otool", so it can be a program name with args.
6286 set dummy otool; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$ac_ct_OTOOL"; then
6293 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_OTOOL="otool"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6313 if test -n "$ac_ct_OTOOL"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6315 $as_echo "$ac_ct_OTOOL" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321 if test "x$ac_ct_OTOOL" = x; then
6322 OTOOL=":"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330 OTOOL=$ac_ct_OTOOL
6331 fi
6332 else
6333 OTOOL="$ac_cv_prog_OTOOL"
6334 fi
6335
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$OTOOL64"; then
6345 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 OTOOL64=$ac_cv_prog_OTOOL64
6365 if test -n "$OTOOL64"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6367 $as_echo "$OTOOL64" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373
6374 fi
6375 if test -z "$ac_cv_prog_OTOOL64"; then
6376 ac_ct_OTOOL64=$OTOOL64
6377 # Extract the first word of "otool64", so it can be a program name with args.
6378 set dummy otool64; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$ac_ct_OTOOL64"; then
6385 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_OTOOL64="otool64"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6405 if test -n "$ac_ct_OTOOL64"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6407 $as_echo "$ac_ct_OTOOL64" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413 if test "x$ac_ct_OTOOL64" = x; then
6414 OTOOL64=":"
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417 yes:)
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420 ac_tool_warned=yes ;;
6421 esac
6422 OTOOL64=$ac_ct_OTOOL64
6423 fi
6424 else
6425 OTOOL64="$ac_cv_prog_OTOOL64"
6426 fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6455 $as_echo_n "checking for -single_module linker flag... " >&6; }
6456 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 lt_cv_apple_cc_single_mod=no
6460 if test -z "${LT_MULTI_MODULE}"; then
6461 # By default we will add the -single_module flag. You can override
6462 # by either setting the environment variable LT_MULTI_MODULE
6463 # non-empty at configure time, or by adding -multi_module to the
6464 # link flags.
6465 rm -rf libconftest.dylib*
6466 echo "int foo(void){return 1;}" > conftest.c
6467 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6468 -dynamiclib -Wl,-single_module conftest.c" >&5
6469 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6470 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6471 _lt_result=$?
6472 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6473 lt_cv_apple_cc_single_mod=yes
6474 else
6475 cat conftest.err >&5
6476 fi
6477 rm -rf libconftest.dylib*
6478 rm -f conftest.*
6479 fi
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6482 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6484 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6485 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 lt_cv_ld_exported_symbols_list=no
6489 save_LDFLAGS=$LDFLAGS
6490 echo "_main" > conftest.sym
6491 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494
6495 int
6496 main ()
6497 {
6498
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_c_try_link "$LINENO"; then :
6504 lt_cv_ld_exported_symbols_list=yes
6505 else
6506 lt_cv_ld_exported_symbols_list=no
6507 fi
6508 rm -f core conftest.err conftest.$ac_objext \
6509 conftest$ac_exeext conftest.$ac_ext
6510 LDFLAGS="$save_LDFLAGS"
6511
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6514 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6515 case $host_os in
6516 rhapsody* | darwin1.[012])
6517 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6518 darwin1.*)
6519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6520 darwin*) # darwin 5.x on
6521 # if running on 10.5 or later, the deployment target defaults
6522 # to the OS version, if on x86, and 10.4, the deployment
6523 # target defaults to 10.4. Don't you love it?
6524 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6525 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6527 10.[012]*)
6528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6529 10.*)
6530 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6531 esac
6532 ;;
6533 esac
6534 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6535 _lt_dar_single_mod='$single_module'
6536 fi
6537 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6538 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6539 else
6540 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6541 fi
6542 if test "$DSYMUTIL" != ":"; then
6543 _lt_dsymutil='~$DSYMUTIL $lib || :'
6544 else
6545 _lt_dsymutil=
6546 fi
6547 ;;
6548 esac
6549
6550 ac_ext=c
6551 ac_cpp='$CPP $CPPFLAGS'
6552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6557 # On Suns, sometimes $CPP names a directory.
6558 if test -n "$CPP" && test -d "$CPP"; then
6559 CPP=
6560 fi
6561 if test -z "$CPP"; then
6562 if test "${ac_cv_prog_CPP+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 # Double quotes because CPP needs to be expanded
6566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6567 do
6568 ac_preproc_ok=false
6569 for ac_c_preproc_warn_flag in '' yes
6570 do
6571 # Use a header file that comes with gcc, so configuring glibc
6572 # with a fresh cross-compiler works.
6573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574 # <limits.h> exists even on freestanding compilers.
6575 # On the NeXT, cc -E runs the code through the compiler's parser,
6576 # not just through cpp. "Syntax error" is here to catch this case.
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #ifdef __STDC__
6580 # include <limits.h>
6581 #else
6582 # include <assert.h>
6583 #endif
6584 Syntax error
6585 _ACEOF
6586 if ac_fn_c_try_cpp "$LINENO"; then :
6587
6588 else
6589 # Broken: fails on valid input.
6590 continue
6591 fi
6592 rm -f conftest.err conftest.i conftest.$ac_ext
6593
6594 # OK, works on sane cases. Now check whether nonexistent headers
6595 # can be detected and how.
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #include <ac_nonexistent.h>
6599 _ACEOF
6600 if ac_fn_c_try_cpp "$LINENO"; then :
6601 # Broken: success on invalid input.
6602 continue
6603 else
6604 # Passes both tests.
6605 ac_preproc_ok=:
6606 break
6607 fi
6608 rm -f conftest.err conftest.i conftest.$ac_ext
6609
6610 done
6611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6612 rm -f conftest.i conftest.err conftest.$ac_ext
6613 if $ac_preproc_ok; then :
6614 break
6615 fi
6616
6617 done
6618 ac_cv_prog_CPP=$CPP
6619
6620 fi
6621 CPP=$ac_cv_prog_CPP
6622 else
6623 ac_cv_prog_CPP=$CPP
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6626 $as_echo "$CPP" >&6; }
6627 ac_preproc_ok=false
6628 for ac_c_preproc_warn_flag in '' yes
6629 do
6630 # Use a header file that comes with gcc, so configuring glibc
6631 # with a fresh cross-compiler works.
6632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6633 # <limits.h> exists even on freestanding compilers.
6634 # On the NeXT, cc -E runs the code through the compiler's parser,
6635 # not just through cpp. "Syntax error" is here to catch this case.
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 #ifdef __STDC__
6639 # include <limits.h>
6640 #else
6641 # include <assert.h>
6642 #endif
6643 Syntax error
6644 _ACEOF
6645 if ac_fn_c_try_cpp "$LINENO"; then :
6646
6647 else
6648 # Broken: fails on valid input.
6649 continue
6650 fi
6651 rm -f conftest.err conftest.i conftest.$ac_ext
6652
6653 # OK, works on sane cases. Now check whether nonexistent headers
6654 # can be detected and how.
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 #include <ac_nonexistent.h>
6658 _ACEOF
6659 if ac_fn_c_try_cpp "$LINENO"; then :
6660 # Broken: success on invalid input.
6661 continue
6662 else
6663 # Passes both tests.
6664 ac_preproc_ok=:
6665 break
6666 fi
6667 rm -f conftest.err conftest.i conftest.$ac_ext
6668
6669 done
6670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6671 rm -f conftest.i conftest.err conftest.$ac_ext
6672 if $ac_preproc_ok; then :
6673
6674 else
6675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6677 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6678 See \`config.log' for more details" "$LINENO" 5 ; }
6679 fi
6680
6681 ac_ext=c
6682 ac_cpp='$CPP $CPPFLAGS'
6683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6686
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6689 $as_echo_n "checking for ANSI C header files... " >&6; }
6690 if test "${ac_cv_header_stdc+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 #include <stdlib.h>
6696 #include <stdarg.h>
6697 #include <string.h>
6698 #include <float.h>
6699
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 ac_cv_header_stdc=yes
6710 else
6711 ac_cv_header_stdc=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714
6715 if test $ac_cv_header_stdc = yes; then
6716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <string.h>
6720
6721 _ACEOF
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 $EGREP "memchr" >/dev/null 2>&1; then :
6724
6725 else
6726 ac_cv_header_stdc=no
6727 fi
6728 rm -f conftest*
6729
6730 fi
6731
6732 if test $ac_cv_header_stdc = yes; then
6733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <stdlib.h>
6737
6738 _ACEOF
6739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6740 $EGREP "free" >/dev/null 2>&1; then :
6741
6742 else
6743 ac_cv_header_stdc=no
6744 fi
6745 rm -f conftest*
6746
6747 fi
6748
6749 if test $ac_cv_header_stdc = yes; then
6750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6751 if test "$cross_compiling" = yes; then :
6752 :
6753 else
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <ctype.h>
6757 #include <stdlib.h>
6758 #if ((' ' & 0x0FF) == 0x020)
6759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6761 #else
6762 # define ISLOWER(c) \
6763 (('a' <= (c) && (c) <= 'i') \
6764 || ('j' <= (c) && (c) <= 'r') \
6765 || ('s' <= (c) && (c) <= 'z'))
6766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6767 #endif
6768
6769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6770 int
6771 main ()
6772 {
6773 int i;
6774 for (i = 0; i < 256; i++)
6775 if (XOR (islower (i), ISLOWER (i))
6776 || toupper (i) != TOUPPER (i))
6777 return 2;
6778 return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_run "$LINENO"; then :
6782
6783 else
6784 ac_cv_header_stdc=no
6785 fi
6786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6787 conftest.$ac_objext conftest.beam conftest.$ac_ext
6788 fi
6789
6790 fi
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6793 $as_echo "$ac_cv_header_stdc" >&6; }
6794 if test $ac_cv_header_stdc = yes; then
6795
6796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6797
6798 fi
6799
6800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6802 inttypes.h stdint.h unistd.h
6803 do :
6804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6806 "
6807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6808 cat >>confdefs.h <<_ACEOF
6809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 _ACEOF
6811
6812 fi
6813
6814 done
6815
6816
6817 for ac_header in dlfcn.h
6818 do :
6819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6820 "
6821 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DLFCN_H 1
6824 _ACEOF
6825
6826 fi
6827
6828 done
6829
6830
6831
6832 # Set options
6833
6834
6835
6836 enable_dlopen=no
6837
6838
6839 enable_win32_dll=no
6840
6841
6842 # Check whether --enable-shared was given.
6843 if test "${enable_shared+set}" = set; then :
6844 enableval=$enable_shared; p=${PACKAGE-default}
6845 case $enableval in
6846 yes) enable_shared=yes ;;
6847 no) enable_shared=no ;;
6848 *)
6849 enable_shared=no
6850 # Look at the argument we got. We use all the common list separators.
6851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6852 for pkg in $enableval; do
6853 IFS="$lt_save_ifs"
6854 if test "X$pkg" = "X$p"; then
6855 enable_shared=yes
6856 fi
6857 done
6858 IFS="$lt_save_ifs"
6859 ;;
6860 esac
6861 else
6862 enable_shared=yes
6863 fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 # Check whether --enable-static was given.
6874 if test "${enable_static+set}" = set; then :
6875 enableval=$enable_static; p=${PACKAGE-default}
6876 case $enableval in
6877 yes) enable_static=yes ;;
6878 no) enable_static=no ;;
6879 *)
6880 enable_static=no
6881 # Look at the argument we got. We use all the common list separators.
6882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6883 for pkg in $enableval; do
6884 IFS="$lt_save_ifs"
6885 if test "X$pkg" = "X$p"; then
6886 enable_static=yes
6887 fi
6888 done
6889 IFS="$lt_save_ifs"
6890 ;;
6891 esac
6892 else
6893 enable_static=yes
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 # Check whether --with-pic was given.
6906 if test "${with_pic+set}" = set; then :
6907 withval=$with_pic; pic_mode="$withval"
6908 else
6909 pic_mode=default
6910 fi
6911
6912
6913 test -z "$pic_mode" && pic_mode=default
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --enable-fast-install was given.
6922 if test "${enable_fast_install+set}" = set; then :
6923 enableval=$enable_fast_install; p=${PACKAGE-default}
6924 case $enableval in
6925 yes) enable_fast_install=yes ;;
6926 no) enable_fast_install=no ;;
6927 *)
6928 enable_fast_install=no
6929 # Look at the argument we got. We use all the common list separators.
6930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6931 for pkg in $enableval; do
6932 IFS="$lt_save_ifs"
6933 if test "X$pkg" = "X$p"; then
6934 enable_fast_install=yes
6935 fi
6936 done
6937 IFS="$lt_save_ifs"
6938 ;;
6939 esac
6940 else
6941 enable_fast_install=yes
6942 fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954 # This can be used to rebuild libtool when needed
6955 LIBTOOL_DEPS="$ltmain"
6956
6957 # Always use our own libtool.
6958 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984 test -z "$LN_S" && LN_S="ln -s"
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 if test -n "${ZSH_VERSION+set}" ; then
7000 setopt NO_GLOB_SUBST
7001 fi
7002
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7004 $as_echo_n "checking for objdir... " >&6; }
7005 if test "${lt_cv_objdir+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 rm -f .libs 2>/dev/null
7009 mkdir .libs 2>/dev/null
7010 if test -d .libs; then
7011 lt_cv_objdir=.libs
7012 else
7013 # MS-DOS does not allow filenames that begin with a dot.
7014 lt_cv_objdir=_libs
7015 fi
7016 rmdir .libs 2>/dev/null
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7019 $as_echo "$lt_cv_objdir" >&6; }
7020 objdir=$lt_cv_objdir
7021
7022
7023
7024
7025
7026 cat >>confdefs.h <<_ACEOF
7027 #define LT_OBJDIR "$lt_cv_objdir/"
7028 _ACEOF
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 case $host_os in
7047 aix3*)
7048 # AIX sometimes has problems with the GCC collect2 program. For some
7049 # reason, if we set the COLLECT_NAMES environment variable, the problems
7050 # vanish in a puff of smoke.
7051 if test "X${COLLECT_NAMES+set}" != Xset; then
7052 COLLECT_NAMES=
7053 export COLLECT_NAMES
7054 fi
7055 ;;
7056 esac
7057
7058 # Sed substitution that helps us do robust quoting. It backslashifies
7059 # metacharacters that are still active within double-quoted strings.
7060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7061
7062 # Same as above, but do not quote variable references.
7063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7064
7065 # Sed substitution to delay expansion of an escaped shell variable in a
7066 # double_quote_subst'ed string.
7067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7068
7069 # Sed substitution to delay expansion of an escaped single quote.
7070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7071
7072 # Sed substitution to avoid accidental globbing in evaled expressions
7073 no_glob_subst='s/\*/\\\*/g'
7074
7075 # Global variables:
7076 ofile=libtool
7077 can_build_shared=yes
7078
7079 # All known linkers require a `.a' archive for static linking (except MSVC,
7080 # which needs '.lib').
7081 libext=a
7082
7083 with_gnu_ld="$lt_cv_prog_gnu_ld"
7084
7085 old_CC="$CC"
7086 old_CFLAGS="$CFLAGS"
7087
7088 # Set sane defaults for various variables
7089 test -z "$CC" && CC=cc
7090 test -z "$LTCC" && LTCC=$CC
7091 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7092 test -z "$LD" && LD=ld
7093 test -z "$ac_objext" && ac_objext=o
7094
7095 for cc_temp in $compiler""; do
7096 case $cc_temp in
7097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7099 \-*) ;;
7100 *) break;;
7101 esac
7102 done
7103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7104
7105
7106 # Only perform the check for file, if the check method requires it
7107 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7108 case $deplibs_check_method in
7109 file_magic*)
7110 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7112 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 case $MAGIC_CMD in
7117 [\\/*] | ?:[\\/]*)
7118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7119 ;;
7120 *)
7121 lt_save_MAGIC_CMD="$MAGIC_CMD"
7122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7124 for ac_dir in $ac_dummy; do
7125 IFS="$lt_save_ifs"
7126 test -z "$ac_dir" && ac_dir=.
7127 if test -f $ac_dir/${ac_tool_prefix}file; then
7128 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7129 if test -n "$file_magic_test_file"; then
7130 case $deplibs_check_method in
7131 "file_magic "*)
7132 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7135 $EGREP "$file_magic_regex" > /dev/null; then
7136 :
7137 else
7138 cat <<_LT_EOF 1>&2
7139
7140 *** Warning: the command libtool uses to detect shared libraries,
7141 *** $file_magic_cmd, produces output that libtool cannot recognize.
7142 *** The result is that libtool may fail to recognize shared libraries
7143 *** as such. This will affect the creation of libtool libraries that
7144 *** depend on shared libraries, but programs linked with such libtool
7145 *** libraries will work regardless of this problem. Nevertheless, you
7146 *** may want to report the problem to your system manager and/or to
7147 *** [email protected]
7148
7149 _LT_EOF
7150 fi ;;
7151 esac
7152 fi
7153 break
7154 fi
7155 done
7156 IFS="$lt_save_ifs"
7157 MAGIC_CMD="$lt_save_MAGIC_CMD"
7158 ;;
7159 esac
7160 fi
7161
7162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7163 if test -n "$MAGIC_CMD"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7165 $as_echo "$MAGIC_CMD" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172
7173
7174
7175 if test -z "$lt_cv_path_MAGIC_CMD"; then
7176 if test -n "$ac_tool_prefix"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7178 $as_echo_n "checking for file... " >&6; }
7179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 case $MAGIC_CMD in
7183 [\\/*] | ?:[\\/]*)
7184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7185 ;;
7186 *)
7187 lt_save_MAGIC_CMD="$MAGIC_CMD"
7188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7190 for ac_dir in $ac_dummy; do
7191 IFS="$lt_save_ifs"
7192 test -z "$ac_dir" && ac_dir=.
7193 if test -f $ac_dir/file; then
7194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7195 if test -n "$file_magic_test_file"; then
7196 case $deplibs_check_method in
7197 "file_magic "*)
7198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7201 $EGREP "$file_magic_regex" > /dev/null; then
7202 :
7203 else
7204 cat <<_LT_EOF 1>&2
7205
7206 *** Warning: the command libtool uses to detect shared libraries,
7207 *** $file_magic_cmd, produces output that libtool cannot recognize.
7208 *** The result is that libtool may fail to recognize shared libraries
7209 *** as such. This will affect the creation of libtool libraries that
7210 *** depend on shared libraries, but programs linked with such libtool
7211 *** libraries will work regardless of this problem. Nevertheless, you
7212 *** may want to report the problem to your system manager and/or to
7213 *** [email protected]
7214
7215 _LT_EOF
7216 fi ;;
7217 esac
7218 fi
7219 break
7220 fi
7221 done
7222 IFS="$lt_save_ifs"
7223 MAGIC_CMD="$lt_save_MAGIC_CMD"
7224 ;;
7225 esac
7226 fi
7227
7228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7229 if test -n "$MAGIC_CMD"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7231 $as_echo "$MAGIC_CMD" >&6; }
7232 else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237
7238 else
7239 MAGIC_CMD=:
7240 fi
7241 fi
7242
7243 fi
7244 ;;
7245 esac
7246
7247 # Use C for the default configuration in the libtool script
7248
7249 lt_save_CC="$CC"
7250 ac_ext=c
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255
7256
7257 # Source file extension for C test sources.
7258 ac_ext=c
7259
7260 # Object file extension for compiled C test sources.
7261 objext=o
7262 objext=$objext
7263
7264 # Code to be used in simple compile tests
7265 lt_simple_compile_test_code="int some_variable = 0;"
7266
7267 # Code to be used in simple link tests
7268 lt_simple_link_test_code='int main(){return(0);}'
7269
7270
7271
7272
7273
7274
7275
7276 # If no C compiler was specified, use CC.
7277 LTCC=${LTCC-"$CC"}
7278
7279 # If no C compiler flags were specified, use CFLAGS.
7280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7281
7282 # Allow CC to be a program name with arguments.
7283 compiler=$CC
7284
7285 # Save the default compiler, since it gets overwritten when the other
7286 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7287 compiler_DEFAULT=$CC
7288
7289 # save warnings/boilerplate of simple test code
7290 ac_outfile=conftest.$ac_objext
7291 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7293 _lt_compiler_boilerplate=`cat conftest.err`
7294 $RM conftest*
7295
7296 ac_outfile=conftest.$ac_objext
7297 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7299 _lt_linker_boilerplate=`cat conftest.err`
7300 $RM -r conftest*
7301
7302
7303 if test -n "$compiler"; then
7304
7305 lt_prog_compiler_no_builtin_flag=
7306
7307 if test "$GCC" = yes; then
7308 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7309
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7311 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 lt_cv_prog_compiler_rtti_exceptions=no
7316 ac_outfile=conftest.$ac_objext
7317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7318 lt_compiler_flag="-fno-rtti -fno-exceptions"
7319 # Insert the option either (1) after the last *FLAGS variable, or
7320 # (2) before a word containing "conftest.", or (3) at the end.
7321 # Note that $ac_compile itself does not contain backslashes and begins
7322 # with a dollar sign (not a hyphen), so the echo should work correctly.
7323 # The option is referenced via a variable to avoid confusing sed.
7324 lt_compile=`echo "$ac_compile" | $SED \
7325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7327 -e 's:$: $lt_compiler_flag:'`
7328 (eval echo "\"\$as_me:7328: $lt_compile\"" >&5)
7329 (eval "$lt_compile" 2>conftest.err)
7330 ac_status=$?
7331 cat conftest.err >&5
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 if (exit $ac_status) && test -s "$ac_outfile"; then
7334 # The compiler can only warn and ignore the option if not recognized
7335 # So say no if there are warnings other than the usual output.
7336 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7339 lt_cv_prog_compiler_rtti_exceptions=yes
7340 fi
7341 fi
7342 $RM conftest*
7343
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7346 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7347
7348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7349 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7350 else
7351 :
7352 fi
7353
7354 fi
7355
7356
7357
7358
7359
7360
7361 lt_prog_compiler_wl=
7362 lt_prog_compiler_pic=
7363 lt_prog_compiler_static=
7364
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7367
7368 if test "$GCC" = yes; then
7369 lt_prog_compiler_wl='-Wl,'
7370 lt_prog_compiler_static='-static'
7371
7372 case $host_os in
7373 aix*)
7374 # All AIX code is PIC.
7375 if test "$host_cpu" = ia64; then
7376 # AIX 5 now supports IA64 processor
7377 lt_prog_compiler_static='-Bstatic'
7378 fi
7379 ;;
7380
7381 amigaos*)
7382 case $host_cpu in
7383 powerpc)
7384 # see comment about AmigaOS4 .so support
7385 lt_prog_compiler_pic='-fPIC'
7386 ;;
7387 m68k)
7388 # FIXME: we need at least 68020 code to build shared libraries, but
7389 # adding the `-m68020' flag to GCC prevents building anything better,
7390 # like `-m68040'.
7391 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7392 ;;
7393 esac
7394 ;;
7395
7396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7397 # PIC is the default for these OSes.
7398 ;;
7399
7400 mingw* | cygwin* | pw32* | os2* | cegcc*)
7401 # This hack is so that the source file can tell whether it is being
7402 # built for inclusion in a dll (and should export symbols for example).
7403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7404 # (--disable-auto-import) libraries
7405 lt_prog_compiler_pic='-DDLL_EXPORT'
7406 ;;
7407
7408 darwin* | rhapsody*)
7409 # PIC is the default on this platform
7410 # Common symbols not allowed in MH_DYLIB files
7411 lt_prog_compiler_pic='-fno-common'
7412 ;;
7413
7414 hpux*)
7415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7417 # sets the default TLS model and affects inlining.
7418 case $host_cpu in
7419 hppa*64*)
7420 # +Z the default
7421 ;;
7422 *)
7423 lt_prog_compiler_pic='-fPIC'
7424 ;;
7425 esac
7426 ;;
7427
7428 interix[3-9]*)
7429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7430 # Instead, we relocate shared libraries at runtime.
7431 ;;
7432
7433 msdosdjgpp*)
7434 # Just because we use GCC doesn't mean we suddenly get shared libraries
7435 # on systems that don't support them.
7436 lt_prog_compiler_can_build_shared=no
7437 enable_shared=no
7438 ;;
7439
7440 *nto* | *qnx*)
7441 # QNX uses GNU C++, but need to define -shared option too, otherwise
7442 # it will coredump.
7443 lt_prog_compiler_pic='-fPIC -shared'
7444 ;;
7445
7446 sysv4*MP*)
7447 if test -d /usr/nec; then
7448 lt_prog_compiler_pic=-Kconform_pic
7449 fi
7450 ;;
7451
7452 *)
7453 lt_prog_compiler_pic='-fPIC'
7454 ;;
7455 esac
7456 else
7457 # PORTME Check for flag to pass linker flags through the system compiler.
7458 case $host_os in
7459 aix*)
7460 lt_prog_compiler_wl='-Wl,'
7461 if test "$host_cpu" = ia64; then
7462 # AIX 5 now supports IA64 processor
7463 lt_prog_compiler_static='-Bstatic'
7464 else
7465 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7466 fi
7467 ;;
7468
7469 mingw* | cygwin* | pw32* | os2* | cegcc*)
7470 # This hack is so that the source file can tell whether it is being
7471 # built for inclusion in a dll (and should export symbols for example).
7472 lt_prog_compiler_pic='-DDLL_EXPORT'
7473 ;;
7474
7475 hpux9* | hpux10* | hpux11*)
7476 lt_prog_compiler_wl='-Wl,'
7477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7478 # not for PA HP-UX.
7479 case $host_cpu in
7480 hppa*64*|ia64*)
7481 # +Z the default
7482 ;;
7483 *)
7484 lt_prog_compiler_pic='+Z'
7485 ;;
7486 esac
7487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7488 lt_prog_compiler_static='${wl}-a ${wl}archive'
7489 ;;
7490
7491 irix5* | irix6* | nonstopux*)
7492 lt_prog_compiler_wl='-Wl,'
7493 # PIC (with -KPIC) is the default.
7494 lt_prog_compiler_static='-non_shared'
7495 ;;
7496
7497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7498 case $cc_basename in
7499 # old Intel for x86_64 which still supported -KPIC.
7500 ecc*)
7501 lt_prog_compiler_wl='-Wl,'
7502 lt_prog_compiler_pic='-KPIC'
7503 lt_prog_compiler_static='-static'
7504 ;;
7505 # icc used to be incompatible with GCC.
7506 # ICC 10 doesn't accept -KPIC any more.
7507 icc* | ifort*)
7508 lt_prog_compiler_wl='-Wl,'
7509 lt_prog_compiler_pic='-fPIC'
7510 lt_prog_compiler_static='-static'
7511 ;;
7512 # Lahey Fortran 8.1.
7513 lf95*)
7514 lt_prog_compiler_wl='-Wl,'
7515 lt_prog_compiler_pic='--shared'
7516 lt_prog_compiler_static='--static'
7517 ;;
7518 pgcc* | pgf77* | pgf90* | pgf95*)
7519 # Portland Group compilers (*not* the Pentium gcc compiler,
7520 # which looks to be a dead project)
7521 lt_prog_compiler_wl='-Wl,'
7522 lt_prog_compiler_pic='-fpic'
7523 lt_prog_compiler_static='-Bstatic'
7524 ;;
7525 ccc*)
7526 lt_prog_compiler_wl='-Wl,'
7527 # All Alpha code is PIC.
7528 lt_prog_compiler_static='-non_shared'
7529 ;;
7530 xl*)
7531 # IBM XL C 8.0/Fortran 10.1 on PPC
7532 lt_prog_compiler_wl='-Wl,'
7533 lt_prog_compiler_pic='-qpic'
7534 lt_prog_compiler_static='-qstaticlink'
7535 ;;
7536 *)
7537 case `$CC -V 2>&1 | sed 5q` in
7538 *Sun\ C*)
7539 # Sun C 5.9
7540 lt_prog_compiler_pic='-KPIC'
7541 lt_prog_compiler_static='-Bstatic'
7542 lt_prog_compiler_wl='-Wl,'
7543 ;;
7544 *Sun\ F*)
7545 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7546 lt_prog_compiler_pic='-KPIC'
7547 lt_prog_compiler_static='-Bstatic'
7548 lt_prog_compiler_wl=''
7549 ;;
7550 esac
7551 ;;
7552 esac
7553 ;;
7554
7555 newsos6)
7556 lt_prog_compiler_pic='-KPIC'
7557 lt_prog_compiler_static='-Bstatic'
7558 ;;
7559
7560 *nto* | *qnx*)
7561 # QNX uses GNU C++, but need to define -shared option too, otherwise
7562 # it will coredump.
7563 lt_prog_compiler_pic='-fPIC -shared'
7564 ;;
7565
7566 osf3* | osf4* | osf5*)
7567 lt_prog_compiler_wl='-Wl,'
7568 # All OSF/1 code is PIC.
7569 lt_prog_compiler_static='-non_shared'
7570 ;;
7571
7572 rdos*)
7573 lt_prog_compiler_static='-non_shared'
7574 ;;
7575
7576 solaris*)
7577 lt_prog_compiler_pic='-KPIC'
7578 lt_prog_compiler_static='-Bstatic'
7579 case $cc_basename in
7580 f77* | f90* | f95*)
7581 lt_prog_compiler_wl='-Qoption ld ';;
7582 *)
7583 lt_prog_compiler_wl='-Wl,';;
7584 esac
7585 ;;
7586
7587 sunos4*)
7588 lt_prog_compiler_wl='-Qoption ld '
7589 lt_prog_compiler_pic='-PIC'
7590 lt_prog_compiler_static='-Bstatic'
7591 ;;
7592
7593 sysv4 | sysv4.2uw2* | sysv4.3*)
7594 lt_prog_compiler_wl='-Wl,'
7595 lt_prog_compiler_pic='-KPIC'
7596 lt_prog_compiler_static='-Bstatic'
7597 ;;
7598
7599 sysv4*MP*)
7600 if test -d /usr/nec ;then
7601 lt_prog_compiler_pic='-Kconform_pic'
7602 lt_prog_compiler_static='-Bstatic'
7603 fi
7604 ;;
7605
7606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7607 lt_prog_compiler_wl='-Wl,'
7608 lt_prog_compiler_pic='-KPIC'
7609 lt_prog_compiler_static='-Bstatic'
7610 ;;
7611
7612 unicos*)
7613 lt_prog_compiler_wl='-Wl,'
7614 lt_prog_compiler_can_build_shared=no
7615 ;;
7616
7617 uts4*)
7618 lt_prog_compiler_pic='-pic'
7619 lt_prog_compiler_static='-Bstatic'
7620 ;;
7621
7622 *)
7623 lt_prog_compiler_can_build_shared=no
7624 ;;
7625 esac
7626 fi
7627
7628 case $host_os in
7629 # For platforms which do not support PIC, -DPIC is meaningless:
7630 *djgpp*)
7631 lt_prog_compiler_pic=
7632 ;;
7633 *)
7634 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7635 ;;
7636 esac
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7638 $as_echo "$lt_prog_compiler_pic" >&6; }
7639
7640
7641
7642
7643
7644
7645 #
7646 # Check to make sure the PIC flag actually works.
7647 #
7648 if test -n "$lt_prog_compiler_pic"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7650 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7651 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 lt_cv_prog_compiler_pic_works=no
7655 ac_outfile=conftest.$ac_objext
7656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7657 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7658 # Insert the option either (1) after the last *FLAGS variable, or
7659 # (2) before a word containing "conftest.", or (3) at the end.
7660 # Note that $ac_compile itself does not contain backslashes and begins
7661 # with a dollar sign (not a hyphen), so the echo should work correctly.
7662 # The option is referenced via a variable to avoid confusing sed.
7663 lt_compile=`echo "$ac_compile" | $SED \
7664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7666 -e 's:$: $lt_compiler_flag:'`
7667 (eval echo "\"\$as_me:7667: $lt_compile\"" >&5)
7668 (eval "$lt_compile" 2>conftest.err)
7669 ac_status=$?
7670 cat conftest.err >&5
7671 echo "$as_me:7671: \$? = $ac_status" >&5
7672 if (exit $ac_status) && test -s "$ac_outfile"; then
7673 # The compiler can only warn and ignore the option if not recognized
7674 # So say no if there are warnings other than the usual output.
7675 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7678 lt_cv_prog_compiler_pic_works=yes
7679 fi
7680 fi
7681 $RM conftest*
7682
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7685 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7686
7687 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7688 case $lt_prog_compiler_pic in
7689 "" | " "*) ;;
7690 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7691 esac
7692 else
7693 lt_prog_compiler_pic=
7694 lt_prog_compiler_can_build_shared=no
7695 fi
7696
7697 fi
7698
7699
7700
7701
7702
7703
7704 #
7705 # Check to make sure the static flag actually works.
7706 #
7707 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7709 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7710 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 lt_cv_prog_compiler_static_works=no
7714 save_LDFLAGS="$LDFLAGS"
7715 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7716 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7718 # The linker can only warn and ignore the option if not recognized
7719 # So say no if there are warnings
7720 if test -s conftest.err; then
7721 # Append any errors to the config.log.
7722 cat conftest.err 1>&5
7723 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7725 if diff conftest.exp conftest.er2 >/dev/null; then
7726 lt_cv_prog_compiler_static_works=yes
7727 fi
7728 else
7729 lt_cv_prog_compiler_static_works=yes
7730 fi
7731 fi
7732 $RM -r conftest*
7733 LDFLAGS="$save_LDFLAGS"
7734
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7737 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7738
7739 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7740 :
7741 else
7742 lt_prog_compiler_static=
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7753 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 lt_cv_prog_compiler_c_o=no
7757 $RM -r conftest 2>/dev/null
7758 mkdir conftest
7759 cd conftest
7760 mkdir out
7761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7762
7763 lt_compiler_flag="-o out/conftest2.$ac_objext"
7764 # Insert the option either (1) after the last *FLAGS variable, or
7765 # (2) before a word containing "conftest.", or (3) at the end.
7766 # Note that $ac_compile itself does not contain backslashes and begins
7767 # with a dollar sign (not a hyphen), so the echo should work correctly.
7768 lt_compile=`echo "$ac_compile" | $SED \
7769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7771 -e 's:$: $lt_compiler_flag:'`
7772 (eval echo "\"\$as_me:7772: $lt_compile\"" >&5)
7773 (eval "$lt_compile" 2>out/conftest.err)
7774 ac_status=$?
7775 cat out/conftest.err >&5
7776 echo "$as_me:7776: \$? = $ac_status" >&5
7777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7778 then
7779 # The compiler can only warn and ignore the option if not recognized
7780 # So say no if there are warnings
7781 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7784 lt_cv_prog_compiler_c_o=yes
7785 fi
7786 fi
7787 chmod u+w . 2>&5
7788 $RM conftest*
7789 # SGI C++ compiler will create directory out/ii_files/ for
7790 # template instantiation
7791 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7792 $RM out/* && rmdir out
7793 cd ..
7794 $RM -r conftest
7795 $RM conftest*
7796
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7799 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7800
7801
7802
7803
7804
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7808 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 lt_cv_prog_compiler_c_o=no
7812 $RM -r conftest 2>/dev/null
7813 mkdir conftest
7814 cd conftest
7815 mkdir out
7816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7817
7818 lt_compiler_flag="-o out/conftest2.$ac_objext"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 lt_compile=`echo "$ac_compile" | $SED \
7824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7826 -e 's:$: $lt_compiler_flag:'`
7827 (eval echo "\"\$as_me:7827: $lt_compile\"" >&5)
7828 (eval "$lt_compile" 2>out/conftest.err)
7829 ac_status=$?
7830 cat out/conftest.err >&5
7831 echo "$as_me:7831: \$? = $ac_status" >&5
7832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7833 then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings
7836 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_c_o=yes
7840 fi
7841 fi
7842 chmod u+w . 2>&5
7843 $RM conftest*
7844 # SGI C++ compiler will create directory out/ii_files/ for
7845 # template instantiation
7846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7847 $RM out/* && rmdir out
7848 cd ..
7849 $RM -r conftest
7850 $RM conftest*
7851
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7854 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7855
7856
7857
7858
7859 hard_links="nottested"
7860 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7861 # do not overwrite the value of need_locks provided by the user
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7863 $as_echo_n "checking if we can lock with hard links... " >&6; }
7864 hard_links=yes
7865 $RM conftest*
7866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867 touch conftest.a
7868 ln conftest.a conftest.b 2>&5 || hard_links=no
7869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7871 $as_echo "$hard_links" >&6; }
7872 if test "$hard_links" = no; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7874 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7875 need_locks=warn
7876 fi
7877 else
7878 need_locks=no
7879 fi
7880
7881
7882
7883
7884
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7887 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7888
7889 runpath_var=
7890 allow_undefined_flag=
7891 always_export_symbols=no
7892 archive_cmds=
7893 archive_expsym_cmds=
7894 compiler_needs_object=no
7895 enable_shared_with_static_runtimes=no
7896 export_dynamic_flag_spec=
7897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7898 hardcode_automatic=no
7899 hardcode_direct=no
7900 hardcode_direct_absolute=no
7901 hardcode_libdir_flag_spec=
7902 hardcode_libdir_flag_spec_ld=
7903 hardcode_libdir_separator=
7904 hardcode_minus_L=no
7905 hardcode_shlibpath_var=unsupported
7906 inherit_rpath=no
7907 link_all_deplibs=unknown
7908 module_cmds=
7909 module_expsym_cmds=
7910 old_archive_from_new_cmds=
7911 old_archive_from_expsyms_cmds=
7912 thread_safe_flag_spec=
7913 whole_archive_flag_spec=
7914 # include_expsyms should be a list of space-separated symbols to be *always*
7915 # included in the symbol list
7916 include_expsyms=
7917 # exclude_expsyms can be an extended regexp of symbols to exclude
7918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7920 # as well as any symbol that contains `d'.
7921 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7923 # platforms (ab)use it in PIC code, but their linkers get confused if
7924 # the symbol is explicitly referenced. Since portable code cannot
7925 # rely on this symbol name, it's probably fine to never include it in
7926 # preloaded symbol tables.
7927 # Exclude shared library initialization/finalization symbols.
7928 extract_expsyms_cmds=
7929
7930 case $host_os in
7931 cygwin* | mingw* | pw32* | cegcc*)
7932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7933 # When not using gcc, we currently assume that we are using
7934 # Microsoft Visual C++.
7935 if test "$GCC" != yes; then
7936 with_gnu_ld=no
7937 fi
7938 ;;
7939 interix*)
7940 # we just hope/assume this is gcc and not c89 (= MSVC++)
7941 with_gnu_ld=yes
7942 ;;
7943 openbsd*)
7944 with_gnu_ld=no
7945 ;;
7946 linux* | k*bsd*-gnu)
7947 link_all_deplibs=no
7948 ;;
7949 esac
7950
7951 ld_shlibs=yes
7952 if test "$with_gnu_ld" = yes; then
7953 # If archive_cmds runs LD, not CC, wlarc should be empty
7954 wlarc='${wl}'
7955
7956 # Set some defaults for GNU ld with shared library support. These
7957 # are reset later if shared libraries are not supported. Putting them
7958 # here allows them to be overridden if necessary.
7959 runpath_var=LD_RUN_PATH
7960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7961 export_dynamic_flag_spec='${wl}--export-dynamic'
7962 # ancient GNU ld didn't support --whole-archive et. al.
7963 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7965 else
7966 whole_archive_flag_spec=
7967 fi
7968 supports_anon_versioning=no
7969 case `$LD -v 2>&1` in
7970 *GNU\ gold*) supports_anon_versioning=yes ;;
7971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7974 *\ 2.11.*) ;; # other 2.11 versions
7975 *) supports_anon_versioning=yes ;;
7976 esac
7977
7978 # See if GNU ld supports shared libraries.
7979 case $host_os in
7980 aix[3-9]*)
7981 # On AIX/PPC, the GNU linker is very broken
7982 if test "$host_cpu" != ia64; then
7983 ld_shlibs=no
7984 cat <<_LT_EOF 1>&2
7985
7986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7987 *** to be unable to reliably create shared libraries on AIX.
7988 *** Therefore, libtool is disabling shared libraries support. If you
7989 *** really care for shared libraries, you may want to modify your PATH
7990 *** so that a non-GNU linker is found, and then restart.
7991
7992 _LT_EOF
7993 fi
7994 ;;
7995
7996 amigaos*)
7997 case $host_cpu in
7998 powerpc)
7999 # see comment about AmigaOS4 .so support
8000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001 archive_expsym_cmds=''
8002 ;;
8003 m68k)
8004 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)'
8005 hardcode_libdir_flag_spec='-L$libdir'
8006 hardcode_minus_L=yes
8007 ;;
8008 esac
8009 ;;
8010
8011 beos*)
8012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8013 allow_undefined_flag=unsupported
8014 # Joseph Beckenbach <[email protected]> says some releases of gcc
8015 # support --undefined. This deserves some investigation. FIXME
8016 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8017 else
8018 ld_shlibs=no
8019 fi
8020 ;;
8021
8022 cygwin* | mingw* | pw32* | cegcc*)
8023 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8024 # as there is no search path for DLLs.
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 allow_undefined_flag=unsupported
8027 always_export_symbols=no
8028 enable_shared_with_static_runtimes=yes
8029 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8030
8031 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8033 # If the export-symbols file already is a .def file (1st line
8034 # is EXPORTS), use it as is; otherwise, prepend...
8035 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8036 cp $export_symbols $output_objdir/$soname.def;
8037 else
8038 echo EXPORTS > $output_objdir/$soname.def;
8039 cat $export_symbols >> $output_objdir/$soname.def;
8040 fi~
8041 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8042 else
8043 ld_shlibs=no
8044 fi
8045 ;;
8046
8047 interix[3-9]*)
8048 hardcode_direct=no
8049 hardcode_shlibpath_var=no
8050 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8051 export_dynamic_flag_spec='${wl}-E'
8052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8053 # Instead, shared libraries are loaded at an image base (0x10000000 by
8054 # default) and relocated if they conflict, which is a slow very memory
8055 # consuming and fragmenting process. To avoid this, we pick a random,
8056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8059 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'
8060 ;;
8061
8062 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8063 tmp_diet=no
8064 if test "$host_os" = linux-dietlibc; then
8065 case $cc_basename in
8066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8067 esac
8068 fi
8069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8070 && test "$tmp_diet" = no
8071 then
8072 tmp_addflag=
8073 tmp_sharedflag='-shared'
8074 case $cc_basename,$host_cpu in
8075 pgcc*) # Portland Group C compiler
8076 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'
8077 tmp_addflag=' $pic_flag'
8078 ;;
8079 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8080 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'
8081 tmp_addflag=' $pic_flag -Mnomain' ;;
8082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8083 tmp_addflag=' -i_dynamic' ;;
8084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8085 tmp_addflag=' -i_dynamic -nofor_main' ;;
8086 ifc* | ifort*) # Intel Fortran compiler
8087 tmp_addflag=' -nofor_main' ;;
8088 lf95*) # Lahey Fortran 8.1
8089 whole_archive_flag_spec=
8090 tmp_sharedflag='--shared' ;;
8091 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8092 tmp_sharedflag='-qmkshrobj'
8093 tmp_addflag= ;;
8094 esac
8095 case `$CC -V 2>&1 | sed 5q` in
8096 *Sun\ C*) # Sun C 5.9
8097 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'
8098 compiler_needs_object=yes
8099 tmp_sharedflag='-G' ;;
8100 *Sun\ F*) # Sun Fortran 8.3
8101 tmp_sharedflag='-G' ;;
8102 esac
8103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104
8105 if test "x$supports_anon_versioning" = xyes; then
8106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8108 echo "local: *; };" >> $output_objdir/$libname.ver~
8109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8110 fi
8111
8112 case $cc_basename in
8113 xlf*)
8114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8116 hardcode_libdir_flag_spec=
8117 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8118 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8119 if test "x$supports_anon_versioning" = xyes; then
8120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8122 echo "local: *; };" >> $output_objdir/$libname.ver~
8123 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8124 fi
8125 ;;
8126 esac
8127 else
8128 ld_shlibs=no
8129 fi
8130 ;;
8131
8132 netbsd* | netbsdelf*-gnu)
8133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8134 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8135 wlarc=
8136 else
8137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8139 fi
8140 ;;
8141
8142 solaris*)
8143 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8144 ld_shlibs=no
8145 cat <<_LT_EOF 1>&2
8146
8147 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8148 *** create shared libraries on Solaris systems. Therefore, libtool
8149 *** is disabling shared libraries support. We urge you to upgrade GNU
8150 *** binutils to release 2.9.1 or newer. Another option is to modify
8151 *** your PATH or compiler configuration so that the native linker is
8152 *** used, and then restart.
8153
8154 _LT_EOF
8155 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8158 else
8159 ld_shlibs=no
8160 fi
8161 ;;
8162
8163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8164 case `$LD -v 2>&1` in
8165 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8166 ld_shlibs=no
8167 cat <<_LT_EOF 1>&2
8168
8169 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8170 *** reliably create shared libraries on SCO systems. Therefore, libtool
8171 *** is disabling shared libraries support. We urge you to upgrade GNU
8172 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8173 *** your PATH or compiler configuration so that the native linker is
8174 *** used, and then restart.
8175
8176 _LT_EOF
8177 ;;
8178 *)
8179 # For security reasons, it is highly recommended that you always
8180 # use absolute paths for naming shared libraries, and exclude the
8181 # DT_RUNPATH tag from executables and libraries. But doing so
8182 # requires that you compile everything twice, which is a pain.
8183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8187 else
8188 ld_shlibs=no
8189 fi
8190 ;;
8191 esac
8192 ;;
8193
8194 sunos4*)
8195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8196 wlarc=
8197 hardcode_direct=yes
8198 hardcode_shlibpath_var=no
8199 ;;
8200
8201 *)
8202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8205 else
8206 ld_shlibs=no
8207 fi
8208 ;;
8209 esac
8210
8211 if test "$ld_shlibs" = no; then
8212 runpath_var=
8213 hardcode_libdir_flag_spec=
8214 export_dynamic_flag_spec=
8215 whole_archive_flag_spec=
8216 fi
8217 else
8218 # PORTME fill in a description of your system's linker (not GNU ld)
8219 case $host_os in
8220 aix3*)
8221 allow_undefined_flag=unsupported
8222 always_export_symbols=yes
8223 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'
8224 # Note: this linker hardcodes the directories in LIBPATH if there
8225 # are no directories specified by -L.
8226 hardcode_minus_L=yes
8227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8228 # Neither direct hardcoding nor static linking is supported with a
8229 # broken collect2.
8230 hardcode_direct=unsupported
8231 fi
8232 ;;
8233
8234 aix[4-9]*)
8235 if test "$host_cpu" = ia64; then
8236 # On IA64, the linker does run time linking by default, so we don't
8237 # have to do anything special.
8238 aix_use_runtimelinking=no
8239 exp_sym_flag='-Bexport'
8240 no_entry_flag=""
8241 else
8242 # If we're using GNU nm, then we don't want the "-C" option.
8243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8244 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8245 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'
8246 else
8247 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'
8248 fi
8249 aix_use_runtimelinking=no
8250
8251 # Test if we are trying to use run time linking or normal
8252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8253 # need to do runtime linking.
8254 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8255 for ld_flag in $LDFLAGS; do
8256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8257 aix_use_runtimelinking=yes
8258 break
8259 fi
8260 done
8261 ;;
8262 esac
8263
8264 exp_sym_flag='-bexport'
8265 no_entry_flag='-bnoentry'
8266 fi
8267
8268 # When large executables or shared objects are built, AIX ld can
8269 # have problems creating the table of contents. If linking a library
8270 # or program results in "error TOC overflow" add -mminimal-toc to
8271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8273
8274 archive_cmds=''
8275 hardcode_direct=yes
8276 hardcode_direct_absolute=yes
8277 hardcode_libdir_separator=':'
8278 link_all_deplibs=yes
8279 file_list_spec='${wl}-f,'
8280
8281 if test "$GCC" = yes; then
8282 case $host_os in aix4.[012]|aix4.[012].*)
8283 # We only want to do this on AIX 4.2 and lower, the check
8284 # below for broken collect2 doesn't work under 4.3+
8285 collect2name=`${CC} -print-prog-name=collect2`
8286 if test -f "$collect2name" &&
8287 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8288 then
8289 # We have reworked collect2
8290 :
8291 else
8292 # We have old collect2
8293 hardcode_direct=unsupported
8294 # It fails to find uninstalled libraries when the uninstalled
8295 # path is not listed in the libpath. Setting hardcode_minus_L
8296 # to unsupported forces relinking
8297 hardcode_minus_L=yes
8298 hardcode_libdir_flag_spec='-L$libdir'
8299 hardcode_libdir_separator=
8300 fi
8301 ;;
8302 esac
8303 shared_flag='-shared'
8304 if test "$aix_use_runtimelinking" = yes; then
8305 shared_flag="$shared_flag "'${wl}-G'
8306 fi
8307 link_all_deplibs=no
8308 else
8309 # not using gcc
8310 if test "$host_cpu" = ia64; then
8311 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8312 # chokes on -Wl,-G. The following line is correct:
8313 shared_flag='-G'
8314 else
8315 if test "$aix_use_runtimelinking" = yes; then
8316 shared_flag='${wl}-G'
8317 else
8318 shared_flag='${wl}-bM:SRE'
8319 fi
8320 fi
8321 fi
8322
8323 export_dynamic_flag_spec='${wl}-bexpall'
8324 # It seems that -bexpall does not export symbols beginning with
8325 # underscore (_), so it is better to generate a list of symbols to export.
8326 always_export_symbols=yes
8327 if test "$aix_use_runtimelinking" = yes; then
8328 # Warning - without using the other runtime loading flags (-brtl),
8329 # -berok will link without error, but may produce a broken library.
8330 allow_undefined_flag='-berok'
8331 # Determine the default libpath from the value encoded in an
8332 # empty executable.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335
8336 int
8337 main ()
8338 {
8339
8340 ;
8341 return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_link "$LINENO"; then :
8345
8346 lt_aix_libpath_sed='
8347 /Import File Strings/,/^$/ {
8348 /^0/ {
8349 s/^0 *\(.*\)$/\1/
8350 p
8351 }
8352 }'
8353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8354 # Check for a 64-bit object if we didn't find anything.
8355 if test -z "$aix_libpath"; then
8356 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8357 fi
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8362
8363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8364 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"
8365 else
8366 if test "$host_cpu" = ia64; then
8367 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8368 allow_undefined_flag="-z nodefs"
8369 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"
8370 else
8371 # Determine the default libpath from the value encoded in an
8372 # empty executable.
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375
8376 int
8377 main ()
8378 {
8379
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385
8386 lt_aix_libpath_sed='
8387 /Import File Strings/,/^$/ {
8388 /^0/ {
8389 s/^0 *\(.*\)$/\1/
8390 p
8391 }
8392 }'
8393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394 # Check for a 64-bit object if we didn't find anything.
8395 if test -z "$aix_libpath"; then
8396 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 fi
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8402
8403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8404 # Warning - without using the other run time loading flags,
8405 # -berok will link without error, but may produce a broken library.
8406 no_undefined_flag=' ${wl}-bernotok'
8407 allow_undefined_flag=' ${wl}-berok'
8408 # Exported symbols can be pulled into shared objects from archives
8409 whole_archive_flag_spec='$convenience'
8410 archive_cmds_need_lc=yes
8411 # This is similar to how AIX traditionally builds its shared libraries.
8412 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'
8413 fi
8414 fi
8415 ;;
8416
8417 amigaos*)
8418 case $host_cpu in
8419 powerpc)
8420 # see comment about AmigaOS4 .so support
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds=''
8423 ;;
8424 m68k)
8425 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)'
8426 hardcode_libdir_flag_spec='-L$libdir'
8427 hardcode_minus_L=yes
8428 ;;
8429 esac
8430 ;;
8431
8432 bsdi[45]*)
8433 export_dynamic_flag_spec=-rdynamic
8434 ;;
8435
8436 cygwin* | mingw* | pw32* | cegcc*)
8437 # When not using gcc, we currently assume that we are using
8438 # Microsoft Visual C++.
8439 # hardcode_libdir_flag_spec is actually meaningless, as there is
8440 # no search path for DLLs.
8441 hardcode_libdir_flag_spec=' '
8442 allow_undefined_flag=unsupported
8443 # Tell ltmain to make .lib files, not .a files.
8444 libext=lib
8445 # Tell ltmain to make .dll files, not .so files.
8446 shrext_cmds=".dll"
8447 # FIXME: Setting linknames here is a bad hack.
8448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8449 # The linker will automatically build a .lib file if we build a DLL.
8450 old_archive_from_new_cmds='true'
8451 # FIXME: Should let the user specify the lib program.
8452 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8453 fix_srcfile_path='`cygpath -w "$srcfile"`'
8454 enable_shared_with_static_runtimes=yes
8455 ;;
8456
8457 darwin* | rhapsody*)
8458
8459
8460 archive_cmds_need_lc=no
8461 hardcode_direct=no
8462 hardcode_automatic=yes
8463 hardcode_shlibpath_var=unsupported
8464 whole_archive_flag_spec=''
8465 link_all_deplibs=yes
8466 allow_undefined_flag="$_lt_dar_allow_undefined"
8467 case $cc_basename in
8468 ifort*) _lt_dar_can_shared=yes ;;
8469 *) _lt_dar_can_shared=$GCC ;;
8470 esac
8471 if test "$_lt_dar_can_shared" = "yes"; then
8472 output_verbose_link_cmd=echo
8473 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8474 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8475 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}"
8476 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}"
8477
8478 else
8479 ld_shlibs=no
8480 fi
8481
8482 ;;
8483
8484 dgux*)
8485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_shlibpath_var=no
8488 ;;
8489
8490 freebsd1*)
8491 ld_shlibs=no
8492 ;;
8493
8494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8495 # support. Future versions do this automatically, but an explicit c++rt0.o
8496 # does not break anything, and helps significantly (at the cost of a little
8497 # extra space).
8498 freebsd2.2*)
8499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8500 hardcode_libdir_flag_spec='-R$libdir'
8501 hardcode_direct=yes
8502 hardcode_shlibpath_var=no
8503 ;;
8504
8505 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8506 freebsd2*)
8507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_direct=yes
8509 hardcode_minus_L=yes
8510 hardcode_shlibpath_var=no
8511 ;;
8512
8513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8514 freebsd* | dragonfly*)
8515 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8516 hardcode_libdir_flag_spec='-R$libdir'
8517 hardcode_direct=yes
8518 hardcode_shlibpath_var=no
8519 ;;
8520
8521 hpux9*)
8522 if test "$GCC" = yes; then
8523 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'
8524 else
8525 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'
8526 fi
8527 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8528 hardcode_libdir_separator=:
8529 hardcode_direct=yes
8530
8531 # hardcode_minus_L: Not really in the search PATH,
8532 # but as the default location of the library.
8533 hardcode_minus_L=yes
8534 export_dynamic_flag_spec='${wl}-E'
8535 ;;
8536
8537 hpux10*)
8538 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8539 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8540 else
8541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8542 fi
8543 if test "$with_gnu_ld" = no; then
8544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8545 hardcode_libdir_flag_spec_ld='+b $libdir'
8546 hardcode_libdir_separator=:
8547 hardcode_direct=yes
8548 hardcode_direct_absolute=yes
8549 export_dynamic_flag_spec='${wl}-E'
8550 # hardcode_minus_L: Not really in the search PATH,
8551 # but as the default location of the library.
8552 hardcode_minus_L=yes
8553 fi
8554 ;;
8555
8556 hpux11*)
8557 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8558 case $host_cpu in
8559 hppa*64*)
8560 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 ;;
8562 ia64*)
8563 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8564 ;;
8565 *)
8566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8567 ;;
8568 esac
8569 else
8570 case $host_cpu in
8571 hppa*64*)
8572 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8573 ;;
8574 ia64*)
8575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8576 ;;
8577 *)
8578 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8579 ;;
8580 esac
8581 fi
8582 if test "$with_gnu_ld" = no; then
8583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584 hardcode_libdir_separator=:
8585
8586 case $host_cpu in
8587 hppa*64*|ia64*)
8588 hardcode_direct=no
8589 hardcode_shlibpath_var=no
8590 ;;
8591 *)
8592 hardcode_direct=yes
8593 hardcode_direct_absolute=yes
8594 export_dynamic_flag_spec='${wl}-E'
8595
8596 # hardcode_minus_L: Not really in the search PATH,
8597 # but as the default location of the library.
8598 hardcode_minus_L=yes
8599 ;;
8600 esac
8601 fi
8602 ;;
8603
8604 irix5* | irix6* | nonstopux*)
8605 if test "$GCC" = yes; then
8606 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'
8607 # Try to use the -exported_symbol ld option, if it does not
8608 # work, assume that -exports_file does not work either and
8609 # implicitly export all symbols.
8610 save_LDFLAGS="$LDFLAGS"
8611 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int foo(void) {}
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 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'
8618
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LDFLAGS="$save_LDFLAGS"
8623 else
8624 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'
8625 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'
8626 fi
8627 archive_cmds_need_lc='no'
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 hardcode_libdir_separator=:
8630 inherit_rpath=yes
8631 link_all_deplibs=yes
8632 ;;
8633
8634 netbsd* | netbsdelf*-gnu)
8635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8637 else
8638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8639 fi
8640 hardcode_libdir_flag_spec='-R$libdir'
8641 hardcode_direct=yes
8642 hardcode_shlibpath_var=no
8643 ;;
8644
8645 newsos6)
8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_direct=yes
8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649 hardcode_libdir_separator=:
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 *nto* | *qnx*)
8654 ;;
8655
8656 openbsd*)
8657 if test -f /usr/libexec/ld.so; then
8658 hardcode_direct=yes
8659 hardcode_shlibpath_var=no
8660 hardcode_direct_absolute=yes
8661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665 export_dynamic_flag_spec='${wl}-E'
8666 else
8667 case $host_os in
8668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 ;;
8672 *)
8673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675 ;;
8676 esac
8677 fi
8678 else
8679 ld_shlibs=no
8680 fi
8681 ;;
8682
8683 os2*)
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_minus_L=yes
8686 allow_undefined_flag=unsupported
8687 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'
8688 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8689 ;;
8690
8691 osf3*)
8692 if test "$GCC" = yes; then
8693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694 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'
8695 else
8696 allow_undefined_flag=' -expect_unresolved \*'
8697 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'
8698 fi
8699 archive_cmds_need_lc='no'
8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701 hardcode_libdir_separator=:
8702 ;;
8703
8704 osf4* | osf5*) # as osf3* with the addition of -msym flag
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707 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'
8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 else
8710 allow_undefined_flag=' -expect_unresolved \*'
8711 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'
8712 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~
8713 $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'
8714
8715 # Both c and cxx compiler support -rpath directly
8716 hardcode_libdir_flag_spec='-rpath $libdir'
8717 fi
8718 archive_cmds_need_lc='no'
8719 hardcode_libdir_separator=:
8720 ;;
8721
8722 solaris*)
8723 no_undefined_flag=' -z defs'
8724 if test "$GCC" = yes; then
8725 wlarc='${wl}'
8726 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8729 else
8730 case `$CC -V 2>&1` in
8731 *"Compilers 5.0"*)
8732 wlarc=''
8733 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8736 ;;
8737 *)
8738 wlarc='${wl}'
8739 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8742 ;;
8743 esac
8744 fi
8745 hardcode_libdir_flag_spec='-R$libdir'
8746 hardcode_shlibpath_var=no
8747 case $host_os in
8748 solaris2.[0-5] | solaris2.[0-5].*) ;;
8749 *)
8750 # The compiler driver will combine and reorder linker options,
8751 # but understands `-z linker_flag'. GCC discards it without `$wl',
8752 # but is careful enough not to reorder.
8753 # Supported since Solaris 2.6 (maybe 2.5.1?)
8754 if test "$GCC" = yes; then
8755 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8756 else
8757 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8758 fi
8759 ;;
8760 esac
8761 link_all_deplibs=yes
8762 ;;
8763
8764 sunos4*)
8765 if test "x$host_vendor" = xsequent; then
8766 # Use $CC to link under sequent, because it throws in some extra .o
8767 # files that make .init and .fini sections work.
8768 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8769 else
8770 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8771 fi
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_direct=yes
8774 hardcode_minus_L=yes
8775 hardcode_shlibpath_var=no
8776 ;;
8777
8778 sysv4)
8779 case $host_vendor in
8780 sni)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_direct=yes # is this really true???
8783 ;;
8784 siemens)
8785 ## LD is ld it makes a PLAMLIB
8786 ## CC just makes a GrossModule.
8787 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8788 reload_cmds='$CC -r -o $output$reload_objs'
8789 hardcode_direct=no
8790 ;;
8791 motorola)
8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8794 ;;
8795 esac
8796 runpath_var='LD_RUN_PATH'
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 sysv4.3*)
8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_shlibpath_var=no
8803 export_dynamic_flag_spec='-Bexport'
8804 ;;
8805
8806 sysv4*MP*)
8807 if test -d /usr/nec; then
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_shlibpath_var=no
8810 runpath_var=LD_RUN_PATH
8811 hardcode_runpath_var=yes
8812 ld_shlibs=yes
8813 fi
8814 ;;
8815
8816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8817 no_undefined_flag='${wl}-z,text'
8818 archive_cmds_need_lc=no
8819 hardcode_shlibpath_var=no
8820 runpath_var='LD_RUN_PATH'
8821
8822 if test "$GCC" = yes; then
8823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 else
8826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 fi
8829 ;;
8830
8831 sysv5* | sco3.2v5* | sco5v6*)
8832 # Note: We can NOT use -z defs as we might desire, because we do not
8833 # link with -lc, and that would cause any symbols used from libc to
8834 # always be unresolved, which means just about no library would
8835 # ever link correctly. If we're not using GNU ld we use -z text
8836 # though, which does catch some bad symbols but isn't as heavy-handed
8837 # as -z defs.
8838 no_undefined_flag='${wl}-z,text'
8839 allow_undefined_flag='${wl}-z,nodefs'
8840 archive_cmds_need_lc=no
8841 hardcode_shlibpath_var=no
8842 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8843 hardcode_libdir_separator=':'
8844 link_all_deplibs=yes
8845 export_dynamic_flag_spec='${wl}-Bexport'
8846 runpath_var='LD_RUN_PATH'
8847
8848 if test "$GCC" = yes; then
8849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 fi
8855 ;;
8856
8857 uts4*)
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_libdir_flag_spec='-L$libdir'
8860 hardcode_shlibpath_var=no
8861 ;;
8862
8863 *)
8864 ld_shlibs=no
8865 ;;
8866 esac
8867
8868 if test x$host_vendor = xsni; then
8869 case $host in
8870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8871 export_dynamic_flag_spec='${wl}-Blargedynsym'
8872 ;;
8873 esac
8874 fi
8875 fi
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8878 $as_echo "$ld_shlibs" >&6; }
8879 test "$ld_shlibs" = no && can_build_shared=no
8880
8881 with_gnu_ld=$with_gnu_ld
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897 #
8898 # Do we need to explicitly link libc?
8899 #
8900 case "x$archive_cmds_need_lc" in
8901 x|xyes)
8902 # Assume -lc should be added
8903 archive_cmds_need_lc=yes
8904
8905 if test "$enable_shared" = yes && test "$GCC" = yes; then
8906 case $archive_cmds in
8907 *'~'*)
8908 # FIXME: we may have to deal with multi-command sequences.
8909 ;;
8910 '$CC '*)
8911 # Test whether the compiler implicitly links with -lc since on some
8912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8913 # to ld, don't add -lc before -lgcc.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8915 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8916 $RM conftest*
8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918
8919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8920 (eval $ac_compile) 2>&5
8921 ac_status=$?
8922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8923 test $ac_status = 0; } 2>conftest.err; then
8924 soname=conftest
8925 lib=conftest
8926 libobjs=conftest.$ac_objext
8927 deplibs=
8928 wl=$lt_prog_compiler_wl
8929 pic_flag=$lt_prog_compiler_pic
8930 compiler_flags=-v
8931 linker_flags=-v
8932 verstring=
8933 output_objdir=.
8934 libname=conftest
8935 lt_save_allow_undefined_flag=$allow_undefined_flag
8936 allow_undefined_flag=
8937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8938 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8939 ac_status=$?
8940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8941 test $ac_status = 0; }
8942 then
8943 archive_cmds_need_lc=no
8944 else
8945 archive_cmds_need_lc=yes
8946 fi
8947 allow_undefined_flag=$lt_save_allow_undefined_flag
8948 else
8949 cat conftest.err 1>&5
8950 fi
8951 $RM conftest*
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8953 $as_echo "$archive_cmds_need_lc" >&6; }
8954 ;;
8955 esac
8956 fi
8957 ;;
8958 esac
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9118
9119 if test "$GCC" = yes; then
9120 case $host_os in
9121 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9122 *) lt_awk_arg="/^libraries:/" ;;
9123 esac
9124 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9125 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9126 # if the path contains ";" then we assume it to be the separator
9127 # otherwise default to the standard path separator (i.e. ":") - it is
9128 # assumed that no part of a normal pathname contains ";" but that should
9129 # okay in the real world where ";" in dirpaths is itself problematic.
9130 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9131 else
9132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9133 fi
9134 # Ok, now we have the path, separated by spaces, we can step through it
9135 # and add multilib dir if necessary.
9136 lt_tmp_lt_search_path_spec=
9137 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9138 for lt_sys_path in $lt_search_path_spec; do
9139 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9140 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9141 else
9142 test -d "$lt_sys_path" && \
9143 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9144 fi
9145 done
9146 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9147 BEGIN {RS=" "; FS="/|\n";} {
9148 lt_foo="";
9149 lt_count=0;
9150 for (lt_i = NF; lt_i > 0; lt_i--) {
9151 if ($lt_i != "" && $lt_i != ".") {
9152 if ($lt_i == "..") {
9153 lt_count++;
9154 } else {
9155 if (lt_count == 0) {
9156 lt_foo="/" $lt_i lt_foo;
9157 } else {
9158 lt_count--;
9159 }
9160 }
9161 }
9162 }
9163 if (lt_foo != "") { lt_freq[lt_foo]++; }
9164 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9165 }'`
9166 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9167 else
9168 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9169 fi
9170 library_names_spec=
9171 libname_spec='lib$name'
9172 soname_spec=
9173 shrext_cmds=".so"
9174 postinstall_cmds=
9175 postuninstall_cmds=
9176 finish_cmds=
9177 finish_eval=
9178 shlibpath_var=
9179 shlibpath_overrides_runpath=unknown
9180 version_type=none
9181 dynamic_linker="$host_os ld.so"
9182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9183 need_lib_prefix=unknown
9184 hardcode_into_libs=no
9185
9186 # when you set need_version to no, make sure it does not cause -set_version
9187 # flags to be left without arguments
9188 need_version=unknown
9189
9190 case $host_os in
9191 aix3*)
9192 version_type=linux
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9194 shlibpath_var=LIBPATH
9195
9196 # AIX 3 has no versioning support, so we append a major version to the name.
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 ;;
9199
9200 aix[4-9]*)
9201 version_type=linux
9202 need_lib_prefix=no
9203 need_version=no
9204 hardcode_into_libs=yes
9205 if test "$host_cpu" = ia64; then
9206 # AIX 5 supports IA64
9207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 else
9210 # With GCC up to 2.95.x, collect2 would create an import file
9211 # for dependence libraries. The import file would start with
9212 # the line `#! .'. This would cause the generated library to
9213 # depend on `.', always an invalid library. This was fixed in
9214 # development snapshots of GCC prior to 3.0.
9215 case $host_os in
9216 aix4 | aix4.[01] | aix4.[01].*)
9217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9218 echo ' yes '
9219 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9220 :
9221 else
9222 can_build_shared=no
9223 fi
9224 ;;
9225 esac
9226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9227 # soname into executable. Probably we can add versioning support to
9228 # collect2, so additional links can be useful in future.
9229 if test "$aix_use_runtimelinking" = yes; then
9230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9231 # instead of lib<name>.a to let people know that these are not
9232 # typical AIX shared libraries.
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 else
9235 # We preserve .a as extension for shared libraries through AIX4.2
9236 # and later when we are not doing run time linking.
9237 library_names_spec='${libname}${release}.a $libname.a'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 fi
9240 shlibpath_var=LIBPATH
9241 fi
9242 ;;
9243
9244 amigaos*)
9245 case $host_cpu in
9246 powerpc)
9247 # Since July 2007 AmigaOS4 officially supports .so libraries.
9248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 ;;
9251 m68k)
9252 library_names_spec='$libname.ixlibrary $libname.a'
9253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9254 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'
9255 ;;
9256 esac
9257 ;;
9258
9259 beos*)
9260 library_names_spec='${libname}${shared_ext}'
9261 dynamic_linker="$host_os ld.so"
9262 shlibpath_var=LIBRARY_PATH
9263 ;;
9264
9265 bsdi[45]*)
9266 version_type=linux
9267 need_version=no
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274 # the default ld.so.conf also contains /usr/contrib/lib and
9275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276 # libtool to hard-code these into programs
9277 ;;
9278
9279 cygwin* | mingw* | pw32* | cegcc*)
9280 version_type=windows
9281 shrext_cmds=".dll"
9282 need_version=no
9283 need_lib_prefix=no
9284
9285 case $GCC,$host_os in
9286 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9287 library_names_spec='$libname.dll.a'
9288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289 postinstall_cmds='base_file=`basename \${file}`~
9290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9291 dldir=$destdir/`dirname \$dlpath`~
9292 test -d \$dldir || mkdir -p \$dldir~
9293 $install_prog $dir/$dlname \$dldir/$dlname~
9294 chmod a+x \$dldir/$dlname~
9295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9297 fi'
9298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9299 dlpath=$dir/\$dldll~
9300 $RM \$dlpath'
9301 shlibpath_overrides_runpath=yes
9302
9303 case $host_os in
9304 cygwin*)
9305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9308 ;;
9309 mingw* | cegcc*)
9310 # MinGW DLLs use traditional 'lib' prefix
9311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9312 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9313 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9314 # It is most probably a Windows format PATH printed by
9315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9316 # path with ; separators, and with drive letters. We can handle the
9317 # drive letters (cygwin fileutils understands them), so leave them,
9318 # especially as we might pass files found there to a mingw objdump,
9319 # which wouldn't understand a cygwinified path. Ahh.
9320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9321 else
9322 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9323 fi
9324 ;;
9325 pw32*)
9326 # pw32 DLLs use 'pw' prefix rather than 'lib'
9327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9328 ;;
9329 esac
9330 ;;
9331
9332 *)
9333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9334 ;;
9335 esac
9336 dynamic_linker='Win32 ld.exe'
9337 # FIXME: first we should search . and the directory the executable is in
9338 shlibpath_var=PATH
9339 ;;
9340
9341 darwin* | rhapsody*)
9342 dynamic_linker="$host_os dyld"
9343 version_type=darwin
9344 need_lib_prefix=no
9345 need_version=no
9346 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9347 soname_spec='${libname}${release}${major}$shared_ext'
9348 shlibpath_overrides_runpath=yes
9349 shlibpath_var=DYLD_LIBRARY_PATH
9350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9351
9352 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9354 ;;
9355
9356 dgux*)
9357 version_type=linux
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 ;;
9364
9365 freebsd1*)
9366 dynamic_linker=no
9367 ;;
9368
9369 freebsd* | dragonfly*)
9370 # DragonFly does not have aout. When/if they implement a new
9371 # versioning mechanism, adjust this.
9372 if test -x /usr/bin/objformat; then
9373 objformat=`/usr/bin/objformat`
9374 else
9375 case $host_os in
9376 freebsd[123]*) objformat=aout ;;
9377 *) objformat=elf ;;
9378 esac
9379 fi
9380 version_type=freebsd-$objformat
9381 case $version_type in
9382 freebsd-elf*)
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9384 need_version=no
9385 need_lib_prefix=no
9386 ;;
9387 freebsd-*)
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9389 need_version=yes
9390 ;;
9391 esac
9392 shlibpath_var=LD_LIBRARY_PATH
9393 case $host_os in
9394 freebsd2*)
9395 shlibpath_overrides_runpath=yes
9396 ;;
9397 freebsd3.[01]* | freebsdelf3.[01]*)
9398 shlibpath_overrides_runpath=yes
9399 hardcode_into_libs=yes
9400 ;;
9401 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9402 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9403 shlibpath_overrides_runpath=no
9404 hardcode_into_libs=yes
9405 ;;
9406 *) # from 4.6 on, and DragonFly
9407 shlibpath_overrides_runpath=yes
9408 hardcode_into_libs=yes
9409 ;;
9410 esac
9411 ;;
9412
9413 gnu*)
9414 version_type=linux
9415 need_lib_prefix=no
9416 need_version=no
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 hardcode_into_libs=yes
9421 ;;
9422
9423 hpux9* | hpux10* | hpux11*)
9424 # Give a soname corresponding to the major version so that dld.sl refuses to
9425 # link against other versions.
9426 version_type=sunos
9427 need_lib_prefix=no
9428 need_version=no
9429 case $host_cpu in
9430 ia64*)
9431 shrext_cmds='.so'
9432 hardcode_into_libs=yes
9433 dynamic_linker="$host_os dld.so"
9434 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 if test "X$HPUX_IA64_MODE" = X32; then
9439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9440 else
9441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9442 fi
9443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9444 ;;
9445 hppa*64*)
9446 shrext_cmds='.sl'
9447 hardcode_into_libs=yes
9448 dynamic_linker="$host_os dld.sl"
9449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 ;;
9456 *)
9457 shrext_cmds='.sl'
9458 dynamic_linker="$host_os dld.sl"
9459 shlibpath_var=SHLIB_PATH
9460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 ;;
9464 esac
9465 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9466 postinstall_cmds='chmod 555 $lib'
9467 ;;
9468
9469 interix[3-9]*)
9470 version_type=linux
9471 need_lib_prefix=no
9472 need_version=no
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 shlibpath_overrides_runpath=no
9478 hardcode_into_libs=yes
9479 ;;
9480
9481 irix5* | irix6* | nonstopux*)
9482 case $host_os in
9483 nonstopux*) version_type=nonstopux ;;
9484 *)
9485 if test "$lt_cv_prog_gnu_ld" = yes; then
9486 version_type=linux
9487 else
9488 version_type=irix
9489 fi ;;
9490 esac
9491 need_lib_prefix=no
9492 need_version=no
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9495 case $host_os in
9496 irix5* | nonstopux*)
9497 libsuff= shlibsuff=
9498 ;;
9499 *)
9500 case $LD in # libtool.m4 will add one of these switches to LD
9501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9502 libsuff= shlibsuff= libmagic=32-bit;;
9503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9504 libsuff=32 shlibsuff=N32 libmagic=N32;;
9505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9507 *) libsuff= shlibsuff= libmagic=never-match;;
9508 esac
9509 ;;
9510 esac
9511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9512 shlibpath_overrides_runpath=no
9513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9515 hardcode_into_libs=yes
9516 ;;
9517
9518 # No shared lib support for Linux oldld, aout, or coff.
9519 linux*oldld* | linux*aout* | linux*coff*)
9520 dynamic_linker=no
9521 ;;
9522
9523 # This must be Linux ELF.
9524 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9525 version_type=linux
9526 need_lib_prefix=no
9527 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=no
9533 # Some binutils ld are patched to set DT_RUNPATH
9534 save_LDFLAGS=$LDFLAGS
9535 save_libdir=$libdir
9536 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9537 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540
9541 int
9542 main ()
9543 {
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9551 shlibpath_overrides_runpath=yes
9552 fi
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LDFLAGS=$save_LDFLAGS
9557 libdir=$save_libdir
9558
9559 # This implies no fast_install, which is unacceptable.
9560 # Some rework will be needed to allow for fast_install
9561 # before this can be enabled.
9562 hardcode_into_libs=yes
9563
9564 # Append ld.so.conf contents to the search path
9565 if test -f /etc/ld.so.conf; then
9566 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' ' '`
9567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9568 fi
9569
9570 # We used to test for /lib/ld.so.1 and disable shared libraries on
9571 # powerpc, because MkLinux only supported shared libraries with the
9572 # GNU dynamic linker. Since this was broken with cross compilers,
9573 # most powerpc-linux boxes support dynamic linking these days and
9574 # people can always --disable-shared, the test was removed, and we
9575 # assume the GNU/Linux dynamic linker is in use.
9576 dynamic_linker='GNU/Linux ld.so'
9577 ;;
9578
9579 netbsdelf*-gnu)
9580 version_type=linux
9581 need_lib_prefix=no
9582 need_version=no
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9588 dynamic_linker='NetBSD ld.elf_so'
9589 ;;
9590
9591 netbsd*)
9592 version_type=sunos
9593 need_lib_prefix=no
9594 need_version=no
9595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9598 dynamic_linker='NetBSD (a.out) ld.so'
9599 else
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 dynamic_linker='NetBSD ld.elf_so'
9603 fi
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9606 hardcode_into_libs=yes
9607 ;;
9608
9609 newsos6)
9610 version_type=linux
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath=yes
9614 ;;
9615
9616 *nto* | *qnx*)
9617 version_type=qnx
9618 need_lib_prefix=no
9619 need_version=no
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 shlibpath_overrides_runpath=no
9624 hardcode_into_libs=yes
9625 dynamic_linker='ldqnx.so'
9626 ;;
9627
9628 openbsd*)
9629 version_type=sunos
9630 sys_lib_dlsearch_path_spec="/usr/lib"
9631 need_lib_prefix=no
9632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9633 case $host_os in
9634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9635 *) need_version=no ;;
9636 esac
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9641 case $host_os in
9642 openbsd2.[89] | openbsd2.[89].*)
9643 shlibpath_overrides_runpath=no
9644 ;;
9645 *)
9646 shlibpath_overrides_runpath=yes
9647 ;;
9648 esac
9649 else
9650 shlibpath_overrides_runpath=yes
9651 fi
9652 ;;
9653
9654 os2*)
9655 libname_spec='$name'
9656 shrext_cmds=".dll"
9657 need_lib_prefix=no
9658 library_names_spec='$libname${shared_ext} $libname.a'
9659 dynamic_linker='OS/2 ld.exe'
9660 shlibpath_var=LIBPATH
9661 ;;
9662
9663 osf3* | osf4* | osf5*)
9664 version_type=osf
9665 need_lib_prefix=no
9666 need_version=no
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9672 ;;
9673
9674 rdos*)
9675 dynamic_linker=no
9676 ;;
9677
9678 solaris*)
9679 version_type=linux
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath=yes
9686 hardcode_into_libs=yes
9687 # ldd complains unless libraries are executable
9688 postinstall_cmds='chmod +x $lib'
9689 ;;
9690
9691 sunos4*)
9692 version_type=sunos
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=yes
9697 if test "$with_gnu_ld" = yes; then
9698 need_lib_prefix=no
9699 fi
9700 need_version=yes
9701 ;;
9702
9703 sysv4 | sysv4.3*)
9704 version_type=linux
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 case $host_vendor in
9709 sni)
9710 shlibpath_overrides_runpath=no
9711 need_lib_prefix=no
9712 runpath_var=LD_RUN_PATH
9713 ;;
9714 siemens)
9715 need_lib_prefix=no
9716 ;;
9717 motorola)
9718 need_lib_prefix=no
9719 need_version=no
9720 shlibpath_overrides_runpath=no
9721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9722 ;;
9723 esac
9724 ;;
9725
9726 sysv4*MP*)
9727 if test -d /usr/nec ;then
9728 version_type=linux
9729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9730 soname_spec='$libname${shared_ext}.$major'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 fi
9733 ;;
9734
9735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9736 version_type=freebsd-elf
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 hardcode_into_libs=yes
9744 if test "$with_gnu_ld" = yes; then
9745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9746 else
9747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9748 case $host_os in
9749 sco3.2v5*)
9750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9751 ;;
9752 esac
9753 fi
9754 sys_lib_dlsearch_path_spec='/usr/lib'
9755 ;;
9756
9757 tpf*)
9758 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9759 version_type=linux
9760 need_lib_prefix=no
9761 need_version=no
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=no
9765 hardcode_into_libs=yes
9766 ;;
9767
9768 uts4*)
9769 version_type=linux
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 ;;
9774
9775 *)
9776 dynamic_linker=no
9777 ;;
9778 esac
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9780 $as_echo "$dynamic_linker" >&6; }
9781 test "$dynamic_linker" = no && can_build_shared=no
9782
9783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9784 if test "$GCC" = yes; then
9785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9786 fi
9787
9788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9789 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9790 fi
9791 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9792 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9793 fi
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9882 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9883 hardcode_action=
9884 if test -n "$hardcode_libdir_flag_spec" ||
9885 test -n "$runpath_var" ||
9886 test "X$hardcode_automatic" = "Xyes" ; then
9887
9888 # We can hardcode non-existent directories.
9889 if test "$hardcode_direct" != no &&
9890 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9891 # have to relink, otherwise we might link with an installed library
9892 # when we should be linking with a yet-to-be-installed one
9893 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9894 test "$hardcode_minus_L" != no; then
9895 # Linking always hardcodes the temporary library directory.
9896 hardcode_action=relink
9897 else
9898 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9899 hardcode_action=immediate
9900 fi
9901 else
9902 # We cannot hardcode anything, or else we can only hardcode existing
9903 # directories.
9904 hardcode_action=unsupported
9905 fi
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9907 $as_echo "$hardcode_action" >&6; }
9908
9909 if test "$hardcode_action" = relink ||
9910 test "$inherit_rpath" = yes; then
9911 # Fast installation is not supported
9912 enable_fast_install=no
9913 elif test "$shlibpath_overrides_runpath" = yes ||
9914 test "$enable_shared" = no; then
9915 # Fast installation is not necessary
9916 enable_fast_install=needless
9917 fi
9918
9919
9920
9921
9922
9923
9924 if test "x$enable_dlopen" != xyes; then
9925 enable_dlopen=unknown
9926 enable_dlopen_self=unknown
9927 enable_dlopen_self_static=unknown
9928 else
9929 lt_cv_dlopen=no
9930 lt_cv_dlopen_libs=
9931
9932 case $host_os in
9933 beos*)
9934 lt_cv_dlopen="load_add_on"
9935 lt_cv_dlopen_libs=
9936 lt_cv_dlopen_self=yes
9937 ;;
9938
9939 mingw* | pw32* | cegcc*)
9940 lt_cv_dlopen="LoadLibrary"
9941 lt_cv_dlopen_libs=
9942 ;;
9943
9944 cygwin*)
9945 lt_cv_dlopen="dlopen"
9946 lt_cv_dlopen_libs=
9947 ;;
9948
9949 darwin*)
9950 # if libdl is installed we need to link against it
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldl $LIBS"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 char dlopen ();
9968 int
9969 main ()
9970 {
9971 return dlopen ();
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 ac_cv_lib_dl_dlopen=yes
9978 else
9979 ac_cv_lib_dl_dlopen=no
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9987 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9989 else
9990
9991 lt_cv_dlopen="dyld"
9992 lt_cv_dlopen_libs=
9993 lt_cv_dlopen_self=yes
9994
9995 fi
9996
9997 ;;
9998
9999 *)
10000 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10001 if test "x$ac_cv_func_shl_load" = x""yes; then :
10002 lt_cv_dlopen="shl_load"
10003 else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10005 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 ac_check_lib_save_LIBS=$LIBS
10010 LIBS="-ldld $LIBS"
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char shl_load ();
10021 int
10022 main ()
10023 {
10024 return shl_load ();
10025 ;
10026 return 0;
10027 }
10028 _ACEOF
10029 if ac_fn_c_try_link "$LINENO"; then :
10030 ac_cv_lib_dld_shl_load=yes
10031 else
10032 ac_cv_lib_dld_shl_load=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10039 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10040 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10041 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10042 else
10043 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10044 if test "x$ac_cv_func_dlopen" = x""yes; then :
10045 lt_cv_dlopen="dlopen"
10046 else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 ac_check_lib_save_LIBS=$LIBS
10053 LIBS="-ldl $LIBS"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10060 #ifdef __cplusplus
10061 extern "C"
10062 #endif
10063 char dlopen ();
10064 int
10065 main ()
10066 {
10067 return dlopen ();
10068 ;
10069 return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_link "$LINENO"; then :
10073 ac_cv_lib_dl_dlopen=yes
10074 else
10075 ac_cv_lib_dl_dlopen=no
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10083 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10087 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10088 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lsvld $LIBS"
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 char dlopen ();
10103 int
10104 main ()
10105 {
10106 return dlopen ();
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 ac_cv_lib_svld_dlopen=yes
10113 else
10114 ac_cv_lib_svld_dlopen=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10121 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10122 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10126 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10127 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 ac_check_lib_save_LIBS=$LIBS
10131 LIBS="-ldld $LIBS"
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char dld_link ();
10142 int
10143 main ()
10144 {
10145 return dld_link ();
10146 ;
10147 return 0;
10148 }
10149 _ACEOF
10150 if ac_fn_c_try_link "$LINENO"; then :
10151 ac_cv_lib_dld_dld_link=yes
10152 else
10153 ac_cv_lib_dld_dld_link=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10158 fi
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10160 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10161 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10162 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10163 fi
10164
10165
10166 fi
10167
10168
10169 fi
10170
10171
10172 fi
10173
10174
10175 fi
10176
10177
10178 fi
10179
10180 ;;
10181 esac
10182
10183 if test "x$lt_cv_dlopen" != xno; then
10184 enable_dlopen=yes
10185 else
10186 enable_dlopen=no
10187 fi
10188
10189 case $lt_cv_dlopen in
10190 dlopen)
10191 save_CPPFLAGS="$CPPFLAGS"
10192 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10193
10194 save_LDFLAGS="$LDFLAGS"
10195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10196
10197 save_LIBS="$LIBS"
10198 LIBS="$lt_cv_dlopen_libs $LIBS"
10199
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10201 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10202 if test "${lt_cv_dlopen_self+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 if test "$cross_compiling" = yes; then :
10206 lt_cv_dlopen_self=cross
10207 else
10208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10209 lt_status=$lt_dlunknown
10210 cat > conftest.$ac_ext <<_LT_EOF
10211 #line 10211 "configure"
10212 #include "confdefs.h"
10213
10214 #if HAVE_DLFCN_H
10215 #include <dlfcn.h>
10216 #endif
10217
10218 #include <stdio.h>
10219
10220 #ifdef RTLD_GLOBAL
10221 # define LT_DLGLOBAL RTLD_GLOBAL
10222 #else
10223 # ifdef DL_GLOBAL
10224 # define LT_DLGLOBAL DL_GLOBAL
10225 # else
10226 # define LT_DLGLOBAL 0
10227 # endif
10228 #endif
10229
10230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10231 find out it does not work in some platform. */
10232 #ifndef LT_DLLAZY_OR_NOW
10233 # ifdef RTLD_LAZY
10234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10235 # else
10236 # ifdef DL_LAZY
10237 # define LT_DLLAZY_OR_NOW DL_LAZY
10238 # else
10239 # ifdef RTLD_NOW
10240 # define LT_DLLAZY_OR_NOW RTLD_NOW
10241 # else
10242 # ifdef DL_NOW
10243 # define LT_DLLAZY_OR_NOW DL_NOW
10244 # else
10245 # define LT_DLLAZY_OR_NOW 0
10246 # endif
10247 # endif
10248 # endif
10249 # endif
10250 #endif
10251
10252 void fnord() { int i=42;}
10253 int main ()
10254 {
10255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10256 int status = $lt_dlunknown;
10257
10258 if (self)
10259 {
10260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10262 /* dlclose (self); */
10263 }
10264 else
10265 puts (dlerror ());
10266
10267 return status;
10268 }
10269 _LT_EOF
10270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10271 (eval $ac_link) 2>&5
10272 ac_status=$?
10273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10275 (./conftest; exit; ) >&5 2>/dev/null
10276 lt_status=$?
10277 case x$lt_status in
10278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10280 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10281 esac
10282 else :
10283 # compilation failed
10284 lt_cv_dlopen_self=no
10285 fi
10286 fi
10287 rm -fr conftest*
10288
10289
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10292 $as_echo "$lt_cv_dlopen_self" >&6; }
10293
10294 if test "x$lt_cv_dlopen_self" = xyes; then
10295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10297 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10298 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 if test "$cross_compiling" = yes; then :
10302 lt_cv_dlopen_self_static=cross
10303 else
10304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10305 lt_status=$lt_dlunknown
10306 cat > conftest.$ac_ext <<_LT_EOF
10307 #line 10307 "configure"
10308 #include "confdefs.h"
10309
10310 #if HAVE_DLFCN_H
10311 #include <dlfcn.h>
10312 #endif
10313
10314 #include <stdio.h>
10315
10316 #ifdef RTLD_GLOBAL
10317 # define LT_DLGLOBAL RTLD_GLOBAL
10318 #else
10319 # ifdef DL_GLOBAL
10320 # define LT_DLGLOBAL DL_GLOBAL
10321 # else
10322 # define LT_DLGLOBAL 0
10323 # endif
10324 #endif
10325
10326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10327 find out it does not work in some platform. */
10328 #ifndef LT_DLLAZY_OR_NOW
10329 # ifdef RTLD_LAZY
10330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10331 # else
10332 # ifdef DL_LAZY
10333 # define LT_DLLAZY_OR_NOW DL_LAZY
10334 # else
10335 # ifdef RTLD_NOW
10336 # define LT_DLLAZY_OR_NOW RTLD_NOW
10337 # else
10338 # ifdef DL_NOW
10339 # define LT_DLLAZY_OR_NOW DL_NOW
10340 # else
10341 # define LT_DLLAZY_OR_NOW 0
10342 # endif
10343 # endif
10344 # endif
10345 # endif
10346 #endif
10347
10348 void fnord() { int i=42;}
10349 int main ()
10350 {
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10353
10354 if (self)
10355 {
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10359 }
10360 else
10361 puts (dlerror ());
10362
10363 return status;
10364 }
10365 _LT_EOF
10366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10367 (eval $ac_link) 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10370 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10371 (./conftest; exit; ) >&5 2>/dev/null
10372 lt_status=$?
10373 case x$lt_status in
10374 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10375 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10376 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10377 esac
10378 else :
10379 # compilation failed
10380 lt_cv_dlopen_self_static=no
10381 fi
10382 fi
10383 rm -fr conftest*
10384
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10389 fi
10390
10391 CPPFLAGS="$save_CPPFLAGS"
10392 LDFLAGS="$save_LDFLAGS"
10393 LIBS="$save_LIBS"
10394 ;;
10395 esac
10396
10397 case $lt_cv_dlopen_self in
10398 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10399 *) enable_dlopen_self=unknown ;;
10400 esac
10401
10402 case $lt_cv_dlopen_self_static in
10403 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10404 *) enable_dlopen_self_static=unknown ;;
10405 esac
10406 fi
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424 striplib=
10425 old_striplib=
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10428 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10429 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10430 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; }
10433 else
10434 # FIXME - insert some real tests, host_os isn't really good enough
10435 case $host_os in
10436 darwin*)
10437 if test -n "$STRIP" ; then
10438 striplib="$STRIP -x"
10439 old_striplib="$STRIP -S"
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10441 $as_echo "yes" >&6; }
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10445 fi
10446 ;;
10447 *)
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 ;;
10451 esac
10452 fi
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465 # Report which library types will actually be built
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10469 $as_echo "$can_build_shared" >&6; }
10470
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10472 $as_echo_n "checking whether to build shared libraries... " >&6; }
10473 test "$can_build_shared" = "no" && enable_shared=no
10474
10475 # On AIX, shared libraries and static libraries use the same namespace, and
10476 # are all built from PIC.
10477 case $host_os in
10478 aix3*)
10479 test "$enable_shared" = yes && enable_static=no
10480 if test -n "$RANLIB"; then
10481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10482 postinstall_cmds='$RANLIB $lib'
10483 fi
10484 ;;
10485
10486 aix[4-9]*)
10487 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10488 test "$enable_shared" = yes && enable_static=no
10489 fi
10490 ;;
10491 esac
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10493 $as_echo "$enable_shared" >&6; }
10494
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10496 $as_echo_n "checking whether to build static libraries... " >&6; }
10497 # Make sure either enable_shared or enable_static is yes.
10498 test "$enable_shared" = yes || enable_static=yes
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10500 $as_echo "$enable_static" >&6; }
10501
10502
10503
10504
10505 fi
10506 ac_ext=c
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512 CC="$lt_save_CC"
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526 ac_config_commands="$ac_config_commands libtool"
10527
10528
10529
10530
10531 # Only expand once:
10532
10533
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10536 $as_echo_n "checking for ANSI C header files... " >&6; }
10537 if test "${ac_cv_header_stdc+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 #include <stdlib.h>
10543 #include <stdarg.h>
10544 #include <string.h>
10545 #include <float.h>
10546
10547 int
10548 main ()
10549 {
10550
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_compile "$LINENO"; then :
10556 ac_cv_header_stdc=yes
10557 else
10558 ac_cv_header_stdc=no
10559 fi
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561
10562 if test $ac_cv_header_stdc = yes; then
10563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566 #include <string.h>
10567
10568 _ACEOF
10569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10570 $EGREP "memchr" >/dev/null 2>&1; then :
10571
10572 else
10573 ac_cv_header_stdc=no
10574 fi
10575 rm -f conftest*
10576
10577 fi
10578
10579 if test $ac_cv_header_stdc = yes; then
10580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583 #include <stdlib.h>
10584
10585 _ACEOF
10586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10587 $EGREP "free" >/dev/null 2>&1; then :
10588
10589 else
10590 ac_cv_header_stdc=no
10591 fi
10592 rm -f conftest*
10593
10594 fi
10595
10596 if test $ac_cv_header_stdc = yes; then
10597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10598 if test "$cross_compiling" = yes; then :
10599 :
10600 else
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 #include <ctype.h>
10604 #include <stdlib.h>
10605 #if ((' ' & 0x0FF) == 0x020)
10606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10608 #else
10609 # define ISLOWER(c) \
10610 (('a' <= (c) && (c) <= 'i') \
10611 || ('j' <= (c) && (c) <= 'r') \
10612 || ('s' <= (c) && (c) <= 'z'))
10613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10614 #endif
10615
10616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10617 int
10618 main ()
10619 {
10620 int i;
10621 for (i = 0; i < 256; i++)
10622 if (XOR (islower (i), ISLOWER (i))
10623 || toupper (i) != TOUPPER (i))
10624 return 2;
10625 return 0;
10626 }
10627 _ACEOF
10628 if ac_fn_c_try_run "$LINENO"; then :
10629
10630 else
10631 ac_cv_header_stdc=no
10632 fi
10633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10634 conftest.$ac_objext conftest.beam conftest.$ac_ext
10635 fi
10636
10637 fi
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10640 $as_echo "$ac_cv_header_stdc" >&6; }
10641 if test $ac_cv_header_stdc = yes; then
10642
10643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10644
10645 fi
10646
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10648 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10649 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654
10655 #include <stdbool.h>
10656 #ifndef bool
10657 "error: bool is not defined"
10658 #endif
10659 #ifndef false
10660 "error: false is not defined"
10661 #endif
10662 #if false
10663 "error: false is not 0"
10664 #endif
10665 #ifndef true
10666 "error: true is not defined"
10667 #endif
10668 #if true != 1
10669 "error: true is not 1"
10670 #endif
10671 #ifndef __bool_true_false_are_defined
10672 "error: __bool_true_false_are_defined is not defined"
10673 #endif
10674
10675 struct s { _Bool s: 1; _Bool t; } s;
10676
10677 char a[true == 1 ? 1 : -1];
10678 char b[false == 0 ? 1 : -1];
10679 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10680 char d[(bool) 0.5 == true ? 1 : -1];
10681 bool e = &s;
10682 char f[(_Bool) 0.0 == false ? 1 : -1];
10683 char g[true];
10684 char h[sizeof (_Bool)];
10685 char i[sizeof s.t];
10686 enum { j = false, k = true, l = false * true, m = true * 256 };
10687 /* The following fails for
10688 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10689 _Bool n[m];
10690 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10691 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10692 # if defined __xlc__ || defined __GNUC__
10693 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10694 reported by James Lemley on 2005-10-05; see
10695 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10696 This test is not quite right, since xlc is allowed to
10697 reject this program, as the initializer for xlcbug is
10698 not one of the forms that C requires support for.
10699 However, doing the test right would require a runtime
10700 test, and that would make cross-compilation harder.
10701 Let us hope that IBM fixes the xlc bug, and also adds
10702 support for this kind of constant expression. In the
10703 meantime, this test will reject xlc, which is OK, since
10704 our stdbool.h substitute should suffice. We also test
10705 this with GCC, where it should work, to detect more
10706 quickly whether someone messes up the test in the
10707 future. */
10708 char digs[] = "0123456789";
10709 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10710 # endif
10711 /* Catch a bug in an HP-UX C compiler. See
10712 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10713 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10714 */
10715 _Bool q = true;
10716 _Bool *pq = &q;
10717
10718 int
10719 main ()
10720 {
10721
10722 *pq |= q;
10723 *pq |= ! q;
10724 /* Refer to every declared value, to avoid compiler optimizations. */
10725 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10726 + !m + !n + !o + !p + !q + !pq);
10727
10728 ;
10729 return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_compile "$LINENO"; then :
10733 ac_cv_header_stdbool_h=yes
10734 else
10735 ac_cv_header_stdbool_h=no
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10740 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10741 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10742 if test "x$ac_cv_type__Bool" = x""yes; then :
10743
10744 cat >>confdefs.h <<_ACEOF
10745 #define HAVE__BOOL 1
10746 _ACEOF
10747
10748
10749 fi
10750
10751 if test $ac_cv_header_stdbool_h = yes; then
10752
10753 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
10754
10755 fi
10756
10757 for ac_header in stdint.h unistd.h fcntl.h
10758 do :
10759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10762 cat >>confdefs.h <<_ACEOF
10763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10764 _ACEOF
10765
10766 fi
10767
10768 done
10769
10770
10771 # Check whether --enable-docgen was given.
10772 if test "${enable_docgen+set}" = set; then :
10773 enableval=$enable_docgen; docgen=$enableval
10774 else
10775 docgen=no
10776 fi
10777
10778
10779 if test "x$docgen" = "xyes"
10780 then
10781 # Extract the first word of "doxygen", so it can be a program name with args.
10782 set dummy doxygen; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788 if test -n "$HAVE_DOXYGEN"; then
10789 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
10790 else
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_prog_HAVE_DOXYGEN="true"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802 done
10803 done
10804 IFS=$as_save_IFS
10805
10806 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
10807 fi
10808 fi
10809 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
10810 if test -n "$HAVE_DOXYGEN"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
10812 $as_echo "$HAVE_DOXYGEN" >&6; }
10813 else
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10816 fi
10817
10818
10819 if test $HAVE_DOXYGEN = "false"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, code documentation will not be built" >&5
10821 $as_echo "$as_me: WARNING: *** doxygen not found, code documentation will not be built" >&2;}
10822 fi
10823 if $HAVE_DOXYGEN; then
10824 HAVE_DOXYGEN_TRUE=
10825 HAVE_DOXYGEN_FALSE='#'
10826 else
10827 HAVE_DOXYGEN_TRUE='#'
10828 HAVE_DOXYGEN_FALSE=
10829 fi
10830
10831 else
10832 if "false"; then
10833 HAVE_DOXYGEN_TRUE=
10834 HAVE_DOXYGEN_FALSE='#'
10835 else
10836 HAVE_DOXYGEN_TRUE='#'
10837 HAVE_DOXYGEN_FALSE=
10838 fi
10839
10840 fi
10841
10842 ac_config_files="$ac_config_files Makefile libbrahe.pc src/Makefile test/Makefile docs/Makefile"
10843
10844 cat >confcache <<\_ACEOF
10845 # This file is a shell script that caches the results of configure
10846 # tests run on this system so they can be shared between configure
10847 # scripts and configure runs, see configure's option --config-cache.
10848 # It is not useful on other systems. If it contains results you don't
10849 # want to keep, you may remove or edit it.
10850 #
10851 # config.status only pays attention to the cache file if you give it
10852 # the --recheck option to rerun configure.
10853 #
10854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10856 # following values.
10857
10858 _ACEOF
10859
10860 # The following way of writing the cache mishandles newlines in values,
10861 # but we know of no workaround that is simple, portable, and efficient.
10862 # So, we kill variables containing newlines.
10863 # Ultrix sh set writes to stderr and can't be redirected directly,
10864 # and sets the high bit in the cache file unless we assign to the vars.
10865 (
10866 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10867 eval ac_val=\$$ac_var
10868 case $ac_val in #(
10869 *${as_nl}*)
10870 case $ac_var in #(
10871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10873 esac
10874 case $ac_var in #(
10875 _ | IFS | as_nl) ;; #(
10876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10877 *) { eval $ac_var=; unset $ac_var;} ;;
10878 esac ;;
10879 esac
10880 done
10881
10882 (set) 2>&1 |
10883 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10884 *${as_nl}ac_space=\ *)
10885 # `set' does not quote correctly, so add quotes: double-quote
10886 # substitution turns \\\\ into \\, and sed turns \\ into \.
10887 sed -n \
10888 "s/'/'\\\\''/g;
10889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10890 ;; #(
10891 *)
10892 # `set' quotes correctly as required by POSIX, so do not add quotes.
10893 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10894 ;;
10895 esac |
10896 sort
10897 ) |
10898 sed '
10899 /^ac_cv_env_/b end
10900 t clear
10901 :clear
10902 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10903 t end
10904 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10905 :end' >>confcache
10906 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10907 if test -w "$cache_file"; then
10908 test "x$cache_file" != "x/dev/null" &&
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10910 $as_echo "$as_me: updating cache $cache_file" >&6;}
10911 cat confcache >$cache_file
10912 else
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10914 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10915 fi
10916 fi
10917 rm -f confcache
10918
10919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10920 # Let make expand exec_prefix.
10921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10922
10923 # Transform confdefs.h into DEFS.
10924 # Protect against shell expansion while executing Makefile rules.
10925 # Protect against Makefile macro expansion.
10926 #
10927 # If the first sed substitution is executed (which looks for macros that
10928 # take arguments), then branch to the quote section. Otherwise,
10929 # look for a macro that doesn't take arguments.
10930 ac_script='
10931 :mline
10932 /\\$/{
10933 N
10934 s,\\\n,,
10935 b mline
10936 }
10937 t clear
10938 :clear
10939 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10940 t quote
10941 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10942 t quote
10943 b any
10944 :quote
10945 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10946 s/\[/\\&/g
10947 s/\]/\\&/g
10948 s/\$/$$/g
10949 H
10950 :any
10951 ${
10952 g
10953 s/^\n//
10954 s/\n/ /g
10955 p
10956 }
10957 '
10958 DEFS=`sed -n "$ac_script" confdefs.h`
10959
10960
10961 ac_libobjs=
10962 ac_ltlibobjs=
10963 U=
10964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10965 # 1. Remove the extension, and $U if already installed.
10966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10967 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10969 # will be set to the directory where LIBOBJS objects are built.
10970 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10971 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10972 done
10973 LIBOBJS=$ac_libobjs
10974
10975 LTLIBOBJS=$ac_ltlibobjs
10976
10977
10978 if test -n "$EXEEXT"; then
10979 am__EXEEXT_TRUE=
10980 am__EXEEXT_FALSE='#'
10981 else
10982 am__EXEEXT_TRUE='#'
10983 am__EXEEXT_FALSE=
10984 fi
10985
10986 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10987 as_fn_error $? "conditional \"AMDEP\" was never defined.
10988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10989 fi
10990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10991 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10993 fi
10994 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
10995 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
10996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10997 fi
10998 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
10999 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
11000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11001 fi
11002
11003 : ${CONFIG_STATUS=./config.status}
11004 ac_write_fail=0
11005 ac_clean_files_save=$ac_clean_files
11006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11008 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11009 as_write_fail=0
11010 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11011 #! $SHELL
11012 # Generated by $as_me.
11013 # Run this file to recreate the current configuration.
11014 # Compiler output produced by configure, useful for debugging
11015 # configure, is in config.log if it exists.
11016
11017 debug=false
11018 ac_cs_recheck=false
11019 ac_cs_silent=false
11020
11021 SHELL=\${CONFIG_SHELL-$SHELL}
11022 export SHELL
11023 _ASEOF
11024 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11025 ## -------------------- ##
11026 ## M4sh Initialization. ##
11027 ## -------------------- ##
11028
11029 # Be more Bourne compatible
11030 DUALCASE=1; export DUALCASE # for MKS sh
11031 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11032 emulate sh
11033 NULLCMD=:
11034 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11035 # is contrary to our usage. Disable this feature.
11036 alias -g '${1+"$@"}'='"$@"'
11037 setopt NO_GLOB_SUBST
11038 else
11039 case `(set -o) 2>/dev/null` in #(
11040 *posix*) :
11041 set -o posix ;; #(
11042 *) :
11043 ;;
11044 esac
11045 fi
11046
11047
11048 as_nl='
11049 '
11050 export as_nl
11051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11055 # Prefer a ksh shell builtin over an external printf program on Solaris,
11056 # but without wasting forks for bash or zsh.
11057 if test -z "$BASH_VERSION$ZSH_VERSION" \
11058 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11059 as_echo='print -r --'
11060 as_echo_n='print -rn --'
11061 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11062 as_echo='printf %s\n'
11063 as_echo_n='printf %s'
11064 else
11065 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11066 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11067 as_echo_n='/usr/ucb/echo -n'
11068 else
11069 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11070 as_echo_n_body='eval
11071 arg=$1;
11072 case $arg in #(
11073 *"$as_nl"*)
11074 expr "X$arg" : "X\\(.*\\)$as_nl";
11075 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11076 esac;
11077 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11078 '
11079 export as_echo_n_body
11080 as_echo_n='sh -c $as_echo_n_body as_echo'
11081 fi
11082 export as_echo_body
11083 as_echo='sh -c $as_echo_body as_echo'
11084 fi
11085
11086 # The user is always right.
11087 if test "${PATH_SEPARATOR+set}" != set; then
11088 PATH_SEPARATOR=:
11089 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11090 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11091 PATH_SEPARATOR=';'
11092 }
11093 fi
11094
11095
11096 # IFS
11097 # We need space, tab and new line, in precisely that order. Quoting is
11098 # there to prevent editors from complaining about space-tab.
11099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11100 # splitting by setting IFS to empty value.)
11101 IFS=" "" $as_nl"
11102
11103 # Find who we are. Look in the path if we contain no directory separator.
11104 case $0 in #((
11105 *[\\/]* ) as_myself=$0 ;;
11106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11112 done
11113 IFS=$as_save_IFS
11114
11115 ;;
11116 esac
11117 # We did not find ourselves, most probably we were run as `sh COMMAND'
11118 # in which case we are not to be found in the path.
11119 if test "x$as_myself" = x; then
11120 as_myself=$0
11121 fi
11122 if test ! -f "$as_myself"; then
11123 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11124 exit 1
11125 fi
11126
11127 # Unset variables that we do not need and which cause bugs (e.g. in
11128 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11129 # suppresses any "Segmentation fault" message there. '((' could
11130 # trigger a bug in pdksh 5.2.14.
11131 for as_var in BASH_ENV ENV MAIL MAILPATH
11132 do eval test x\${$as_var+set} = xset \
11133 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11134 done
11135 PS1='$ '
11136 PS2='> '
11137 PS4='+ '
11138
11139 # NLS nuisances.
11140 LC_ALL=C
11141 export LC_ALL
11142 LANGUAGE=C
11143 export LANGUAGE
11144
11145 # CDPATH.
11146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11147
11148
11149 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11150 # ----------------------------------------
11151 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11152 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11153 # script with STATUS, using 1 if that was 0.
11154 as_fn_error ()
11155 {
11156 as_status=$1; test $as_status -eq 0 && as_status=1
11157 if test "$4"; then
11158 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11159 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11160 fi
11161 $as_echo "$as_me: error: $2" >&2
11162 as_fn_exit $as_status
11163 } # as_fn_error
11164
11165
11166 # as_fn_set_status STATUS
11167 # -----------------------
11168 # Set $? to STATUS, without forking.
11169 as_fn_set_status ()
11170 {
11171 return $1
11172 } # as_fn_set_status
11173
11174 # as_fn_exit STATUS
11175 # -----------------
11176 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11177 as_fn_exit ()
11178 {
11179 set +e
11180 as_fn_set_status $1
11181 exit $1
11182 } # as_fn_exit
11183
11184 # as_fn_unset VAR
11185 # ---------------
11186 # Portably unset VAR.
11187 as_fn_unset ()
11188 {
11189 { eval $1=; unset $1;}
11190 }
11191 as_unset=as_fn_unset
11192 # as_fn_append VAR VALUE
11193 # ----------------------
11194 # Append the text in VALUE to the end of the definition contained in VAR. Take
11195 # advantage of any shell optimizations that allow amortized linear growth over
11196 # repeated appends, instead of the typical quadratic growth present in naive
11197 # implementations.
11198 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11199 eval 'as_fn_append ()
11200 {
11201 eval $1+=\$2
11202 }'
11203 else
11204 as_fn_append ()
11205 {
11206 eval $1=\$$1\$2
11207 }
11208 fi # as_fn_append
11209
11210 # as_fn_arith ARG...
11211 # ------------------
11212 # Perform arithmetic evaluation on the ARGs, and store the result in the
11213 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11214 # must be portable across $(()) and expr.
11215 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11216 eval 'as_fn_arith ()
11217 {
11218 as_val=$(( $* ))
11219 }'
11220 else
11221 as_fn_arith ()
11222 {
11223 as_val=`expr "$@" || test $? -eq 1`
11224 }
11225 fi # as_fn_arith
11226
11227
11228 if expr a : '\(a\)' >/dev/null 2>&1 &&
11229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11230 as_expr=expr
11231 else
11232 as_expr=false
11233 fi
11234
11235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11236 as_basename=basename
11237 else
11238 as_basename=false
11239 fi
11240
11241 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11242 as_dirname=dirname
11243 else
11244 as_dirname=false
11245 fi
11246
11247 as_me=`$as_basename -- "$0" ||
11248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11249 X"$0" : 'X\(//\)$' \| \
11250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11251 $as_echo X/"$0" |
11252 sed '/^.*\/\([^/][^/]*\)\/*$/{
11253 s//\1/
11254 q
11255 }
11256 /^X\/\(\/\/\)$/{
11257 s//\1/
11258 q
11259 }
11260 /^X\/\(\/\).*/{
11261 s//\1/
11262 q
11263 }
11264 s/.*/./; q'`
11265
11266 # Avoid depending upon Character Ranges.
11267 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11268 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11269 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11270 as_cr_digits='0123456789'
11271 as_cr_alnum=$as_cr_Letters$as_cr_digits
11272
11273 ECHO_C= ECHO_N= ECHO_T=
11274 case `echo -n x` in #(((((
11275 -n*)
11276 case `echo 'xy\c'` in
11277 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11278 xy) ECHO_C='\c';;
11279 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11280 ECHO_T=' ';;
11281 esac;;
11282 *)
11283 ECHO_N='-n';;
11284 esac
11285
11286 rm -f conf$$ conf$$.exe conf$$.file
11287 if test -d conf$$.dir; then
11288 rm -f conf$$.dir/conf$$.file
11289 else
11290 rm -f conf$$.dir
11291 mkdir conf$$.dir 2>/dev/null
11292 fi
11293 if (echo >conf$$.file) 2>/dev/null; then
11294 if ln -s conf$$.file conf$$ 2>/dev/null; then
11295 as_ln_s='ln -s'
11296 # ... but there are two gotchas:
11297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11299 # In both cases, we have to default to `cp -p'.
11300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11301 as_ln_s='cp -p'
11302 elif ln conf$$.file conf$$ 2>/dev/null; then
11303 as_ln_s=ln
11304 else
11305 as_ln_s='cp -p'
11306 fi
11307 else
11308 as_ln_s='cp -p'
11309 fi
11310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11311 rmdir conf$$.dir 2>/dev/null
11312
11313
11314 # as_fn_mkdir_p
11315 # -------------
11316 # Create "$as_dir" as a directory, including parents if necessary.
11317 as_fn_mkdir_p ()
11318 {
11319
11320 case $as_dir in #(
11321 -*) as_dir=./$as_dir;;
11322 esac
11323 test -d "$as_dir" || eval $as_mkdir_p || {
11324 as_dirs=
11325 while :; do
11326 case $as_dir in #(
11327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11328 *) as_qdir=$as_dir;;
11329 esac
11330 as_dirs="'$as_qdir' $as_dirs"
11331 as_dir=`$as_dirname -- "$as_dir" ||
11332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11333 X"$as_dir" : 'X\(//\)[^/]' \| \
11334 X"$as_dir" : 'X\(//\)$' \| \
11335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11336 $as_echo X"$as_dir" |
11337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11338 s//\1/
11339 q
11340 }
11341 /^X\(\/\/\)[^/].*/{
11342 s//\1/
11343 q
11344 }
11345 /^X\(\/\/\)$/{
11346 s//\1/
11347 q
11348 }
11349 /^X\(\/\).*/{
11350 s//\1/
11351 q
11352 }
11353 s/.*/./; q'`
11354 test -d "$as_dir" && break
11355 done
11356 test -z "$as_dirs" || eval "mkdir $as_dirs"
11357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11358
11359
11360 } # as_fn_mkdir_p
11361 if mkdir -p . 2>/dev/null; then
11362 as_mkdir_p='mkdir -p "$as_dir"'
11363 else
11364 test -d ./-p && rmdir ./-p
11365 as_mkdir_p=false
11366 fi
11367
11368 if test -x / >/dev/null 2>&1; then
11369 as_test_x='test -x'
11370 else
11371 if ls -dL / >/dev/null 2>&1; then
11372 as_ls_L_option=L
11373 else
11374 as_ls_L_option=
11375 fi
11376 as_test_x='
11377 eval sh -c '\''
11378 if test -d "$1"; then
11379 test -d "$1/.";
11380 else
11381 case $1 in #(
11382 -*)set "./$1";;
11383 esac;
11384 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11385 ???[sx]*):;;*)false;;esac;fi
11386 '\'' sh
11387 '
11388 fi
11389 as_executable_p=$as_test_x
11390
11391 # Sed expression to map a string onto a valid CPP name.
11392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11393
11394 # Sed expression to map a string onto a valid variable name.
11395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11396
11397
11398 exec 6>&1
11399 ## ----------------------------------- ##
11400 ## Main body of $CONFIG_STATUS script. ##
11401 ## ----------------------------------- ##
11402 _ASEOF
11403 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11404
11405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11406 # Save the log message, to keep $0 and so on meaningful, and to
11407 # report actual input values of CONFIG_FILES etc. instead of their
11408 # values after options handling.
11409 ac_log="
11410 This file was extended by $as_me, which was
11411 generated by GNU Autoconf 2.67. Invocation command line was
11412
11413 CONFIG_FILES = $CONFIG_FILES
11414 CONFIG_HEADERS = $CONFIG_HEADERS
11415 CONFIG_LINKS = $CONFIG_LINKS
11416 CONFIG_COMMANDS = $CONFIG_COMMANDS
11417 $ $0 $@
11418
11419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11420 "
11421
11422 _ACEOF
11423
11424 case $ac_config_files in *"
11425 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11426 esac
11427
11428
11429
11430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11431 # Files that config.status was made for.
11432 config_files="$ac_config_files"
11433 config_commands="$ac_config_commands"
11434
11435 _ACEOF
11436
11437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11438 ac_cs_usage="\
11439 \`$as_me' instantiates files and other configuration actions
11440 from templates according to the current configuration. Unless the files
11441 and actions are specified as TAGs, all are instantiated by default.
11442
11443 Usage: $0 [OPTION]... [TAG]...
11444
11445 -h, --help print this help, then exit
11446 -V, --version print version number and configuration settings, then exit
11447 --config print configuration, then exit
11448 -q, --quiet, --silent
11449 do not print progress messages
11450 -d, --debug don't remove temporary files
11451 --recheck update $as_me by reconfiguring in the same conditions
11452 --file=FILE[:TEMPLATE]
11453 instantiate the configuration file FILE
11454
11455 Configuration files:
11456 $config_files
11457
11458 Configuration commands:
11459 $config_commands
11460
11461 Report bugs to the package provider."
11462
11463 _ACEOF
11464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11466 ac_cs_version="\\
11467 config.status
11468 configured by $0, generated by GNU Autoconf 2.67,
11469 with options \\"\$ac_cs_config\\"
11470
11471 Copyright (C) 2010 Free Software Foundation, Inc.
11472 This config.status script is free software; the Free Software Foundation
11473 gives unlimited permission to copy, distribute and modify it."
11474
11475 ac_pwd='$ac_pwd'
11476 srcdir='$srcdir'
11477 INSTALL='$INSTALL'
11478 MKDIR_P='$MKDIR_P'
11479 AWK='$AWK'
11480 test -n "\$AWK" || AWK=awk
11481 _ACEOF
11482
11483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11484 # The default lists apply if the user does not specify any file.
11485 ac_need_defaults=:
11486 while test $# != 0
11487 do
11488 case $1 in
11489 --*=?*)
11490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11492 ac_shift=:
11493 ;;
11494 --*=)
11495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11496 ac_optarg=
11497 ac_shift=:
11498 ;;
11499 *)
11500 ac_option=$1
11501 ac_optarg=$2
11502 ac_shift=shift
11503 ;;
11504 esac
11505
11506 case $ac_option in
11507 # Handling of the options.
11508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11509 ac_cs_recheck=: ;;
11510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11511 $as_echo "$ac_cs_version"; exit ;;
11512 --config | --confi | --conf | --con | --co | --c )
11513 $as_echo "$ac_cs_config"; exit ;;
11514 --debug | --debu | --deb | --de | --d | -d )
11515 debug=: ;;
11516 --file | --fil | --fi | --f )
11517 $ac_shift
11518 case $ac_optarg in
11519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11520 '') as_fn_error $? "missing file argument" ;;
11521 esac
11522 as_fn_append CONFIG_FILES " '$ac_optarg'"
11523 ac_need_defaults=false;;
11524 --he | --h | --help | --hel | -h )
11525 $as_echo "$ac_cs_usage"; exit ;;
11526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11528 ac_cs_silent=: ;;
11529
11530 # This is an error.
11531 -*) as_fn_error $? "unrecognized option: \`$1'
11532 Try \`$0 --help' for more information." ;;
11533
11534 *) as_fn_append ac_config_targets " $1"
11535 ac_need_defaults=false ;;
11536
11537 esac
11538 shift
11539 done
11540
11541 ac_configure_extra_args=
11542
11543 if $ac_cs_silent; then
11544 exec 6>/dev/null
11545 ac_configure_extra_args="$ac_configure_extra_args --silent"
11546 fi
11547
11548 _ACEOF
11549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11550 if \$ac_cs_recheck; then
11551 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11552 shift
11553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11554 CONFIG_SHELL='$SHELL'
11555 export CONFIG_SHELL
11556 exec "\$@"
11557 fi
11558
11559 _ACEOF
11560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11561 exec 5>>config.log
11562 {
11563 echo
11564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11565 ## Running $as_me. ##
11566 _ASBOX
11567 $as_echo "$ac_log"
11568 } >&5
11569
11570 _ACEOF
11571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572 #
11573 # INIT-COMMANDS
11574 #
11575 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11576
11577
11578 # The HP-UX ksh and POSIX shell print the target directory to stdout
11579 # if CDPATH is set.
11580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11581
11582 sed_quote_subst='$sed_quote_subst'
11583 double_quote_subst='$double_quote_subst'
11584 delay_variable_subst='$delay_variable_subst'
11585 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11586 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11587 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11588 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11589 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11590 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11591 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11592 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11593 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11594 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11595 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11596 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11597 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11598 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11599 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11600 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11601 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11602 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11603 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11604 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11605 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11606 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11607 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11608 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11609 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11610 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11611 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11612 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11613 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11614 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11615 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11616 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11617 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11618 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11619 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11620 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11621 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11622 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11623 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11624 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11625 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11626 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11627 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11628 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11629 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"`'
11630 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"`'
11631 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11632 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11633 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11634 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11635 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11636 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11637 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11638 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11639 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11640 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11641 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11642 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11643 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11644 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11645 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11646 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11647 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11648 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11649 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11650 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11651 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11652 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11653 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11654 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11655 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11656 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11657 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11658 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11659 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11660 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11661 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11662 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11663 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11664 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11665 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11666 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11667 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11668 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11669 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11670 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11671 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11672 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11673 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11674 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11675 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11676 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11677 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11678 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11679 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11680 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11681 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11682 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11683 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11684 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11685 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11686 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11687 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11688 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11689 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11690 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11691 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11692 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11693 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11694 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11695 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11696 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11697 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11698 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11699 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11700 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11701 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11702 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11703
11704 LTCC='$LTCC'
11705 LTCFLAGS='$LTCFLAGS'
11706 compiler='$compiler_DEFAULT'
11707
11708 # Quote evaled strings.
11709 for var in SED \
11710 GREP \
11711 EGREP \
11712 FGREP \
11713 LD \
11714 NM \
11715 LN_S \
11716 lt_SP2NL \
11717 lt_NL2SP \
11718 reload_flag \
11719 OBJDUMP \
11720 deplibs_check_method \
11721 file_magic_cmd \
11722 AR \
11723 AR_FLAGS \
11724 STRIP \
11725 RANLIB \
11726 CC \
11727 CFLAGS \
11728 compiler \
11729 lt_cv_sys_global_symbol_pipe \
11730 lt_cv_sys_global_symbol_to_cdecl \
11731 lt_cv_sys_global_symbol_to_c_name_address \
11732 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11733 SHELL \
11734 ECHO \
11735 lt_prog_compiler_no_builtin_flag \
11736 lt_prog_compiler_wl \
11737 lt_prog_compiler_pic \
11738 lt_prog_compiler_static \
11739 lt_cv_prog_compiler_c_o \
11740 need_locks \
11741 DSYMUTIL \
11742 NMEDIT \
11743 LIPO \
11744 OTOOL \
11745 OTOOL64 \
11746 shrext_cmds \
11747 export_dynamic_flag_spec \
11748 whole_archive_flag_spec \
11749 compiler_needs_object \
11750 with_gnu_ld \
11751 allow_undefined_flag \
11752 no_undefined_flag \
11753 hardcode_libdir_flag_spec \
11754 hardcode_libdir_flag_spec_ld \
11755 hardcode_libdir_separator \
11756 fix_srcfile_path \
11757 exclude_expsyms \
11758 include_expsyms \
11759 file_list_spec \
11760 variables_saved_for_relink \
11761 libname_spec \
11762 library_names_spec \
11763 soname_spec \
11764 finish_eval \
11765 old_striplib \
11766 striplib; do
11767 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11768 *[\\\\\\\`\\"\\\$]*)
11769 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11770 ;;
11771 *)
11772 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11773 ;;
11774 esac
11775 done
11776
11777 # Double-quote double-evaled strings.
11778 for var in reload_cmds \
11779 old_postinstall_cmds \
11780 old_postuninstall_cmds \
11781 old_archive_cmds \
11782 extract_expsyms_cmds \
11783 old_archive_from_new_cmds \
11784 old_archive_from_expsyms_cmds \
11785 archive_cmds \
11786 archive_expsym_cmds \
11787 module_cmds \
11788 module_expsym_cmds \
11789 export_symbols_cmds \
11790 prelink_cmds \
11791 postinstall_cmds \
11792 postuninstall_cmds \
11793 finish_cmds \
11794 sys_lib_search_path_spec \
11795 sys_lib_dlsearch_path_spec; do
11796 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11797 *[\\\\\\\`\\"\\\$]*)
11798 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11799 ;;
11800 *)
11801 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11802 ;;
11803 esac
11804 done
11805
11806 # Fix-up fallback echo if it was mangled by the above quoting rules.
11807 case \$lt_ECHO in
11808 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11809 ;;
11810 esac
11811
11812 ac_aux_dir='$ac_aux_dir'
11813 xsi_shell='$xsi_shell'
11814 lt_shell_append='$lt_shell_append'
11815
11816 # See if we are running on zsh, and set the options which allow our
11817 # commands through without removal of \ escapes INIT.
11818 if test -n "\${ZSH_VERSION+set}" ; then
11819 setopt NO_GLOB_SUBST
11820 fi
11821
11822
11823 PACKAGE='$PACKAGE'
11824 VERSION='$VERSION'
11825 TIMESTAMP='$TIMESTAMP'
11826 RM='$RM'
11827 ofile='$ofile'
11828
11829
11830
11831
11832 _ACEOF
11833
11834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11835
11836 # Handling of arguments.
11837 for ac_config_target in $ac_config_targets
11838 do
11839 case $ac_config_target in
11840 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11841 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11842 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11843 "libbrahe.pc") CONFIG_FILES="$CONFIG_FILES libbrahe.pc" ;;
11844 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11845 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11846 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
11847
11848 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11849 esac
11850 done
11851
11852
11853 # If the user did not use the arguments to specify the items to instantiate,
11854 # then the envvar interface is used. Set only those that are not.
11855 # We use the long form for the default assignment because of an extremely
11856 # bizarre bug on SunOS 4.1.3.
11857 if $ac_need_defaults; then
11858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11860 fi
11861
11862 # Have a temporary directory for convenience. Make it in the build tree
11863 # simply because there is no reason against having it here, and in addition,
11864 # creating and moving files from /tmp can sometimes cause problems.
11865 # Hook for its removal unless debugging.
11866 # Note that there is a small window in which the directory will not be cleaned:
11867 # after its creation but before its name has been assigned to `$tmp'.
11868 $debug ||
11869 {
11870 tmp=
11871 trap 'exit_status=$?
11872 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11873 ' 0
11874 trap 'as_fn_exit 1' 1 2 13 15
11875 }
11876 # Create a (secure) tmp directory for tmp files.
11877
11878 {
11879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11880 test -n "$tmp" && test -d "$tmp"
11881 } ||
11882 {
11883 tmp=./conf$$-$RANDOM
11884 (umask 077 && mkdir "$tmp")
11885 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11886
11887 # Set up the scripts for CONFIG_FILES section.
11888 # No need to generate them if there are no CONFIG_FILES.
11889 # This happens for instance with `./config.status config.h'.
11890 if test -n "$CONFIG_FILES"; then
11891
11892
11893 ac_cr=`echo X | tr X '\015'`
11894 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11895 # But we know of no other shell where ac_cr would be empty at this
11896 # point, so we can use a bashism as a fallback.
11897 if test "x$ac_cr" = x; then
11898 eval ac_cr=\$\'\\r\'
11899 fi
11900 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11901 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11902 ac_cs_awk_cr='\\r'
11903 else
11904 ac_cs_awk_cr=$ac_cr
11905 fi
11906
11907 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11908 _ACEOF
11909
11910
11911 {
11912 echo "cat >conf$$subs.awk <<_ACEOF" &&
11913 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11914 echo "_ACEOF"
11915 } >conf$$subs.sh ||
11916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11917 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11918 ac_delim='%!_!# '
11919 for ac_last_try in false false false false false :; do
11920 . ./conf$$subs.sh ||
11921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11922
11923 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11924 if test $ac_delim_n = $ac_delim_num; then
11925 break
11926 elif $ac_last_try; then
11927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11928 else
11929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11930 fi
11931 done
11932 rm -f conf$$subs.sh
11933
11934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11935 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11936 _ACEOF
11937 sed -n '
11938 h
11939 s/^/S["/; s/!.*/"]=/
11940 p
11941 g
11942 s/^[^!]*!//
11943 :repl
11944 t repl
11945 s/'"$ac_delim"'$//
11946 t delim
11947 :nl
11948 h
11949 s/\(.\{148\}\)..*/\1/
11950 t more1
11951 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11952 p
11953 n
11954 b repl
11955 :more1
11956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11957 p
11958 g
11959 s/.\{148\}//
11960 t nl
11961 :delim
11962 h
11963 s/\(.\{148\}\)..*/\1/
11964 t more2
11965 s/["\\]/\\&/g; s/^/"/; s/$/"/
11966 p
11967 b
11968 :more2
11969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11970 p
11971 g
11972 s/.\{148\}//
11973 t delim
11974 ' <conf$$subs.awk | sed '
11975 /^[^""]/{
11976 N
11977 s/\n//
11978 }
11979 ' >>$CONFIG_STATUS || ac_write_fail=1
11980 rm -f conf$$subs.awk
11981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982 _ACAWK
11983 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11984 for (key in S) S_is_set[key] = 1
11985 FS = ""
11986
11987 }
11988 {
11989 line = $ 0
11990 nfields = split(line, field, "@")
11991 substed = 0
11992 len = length(field[1])
11993 for (i = 2; i < nfields; i++) {
11994 key = field[i]
11995 keylen = length(key)
11996 if (S_is_set[key]) {
11997 value = S[key]
11998 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11999 len += length(value) + length(field[++i])
12000 substed = 1
12001 } else
12002 len += 1 + keylen
12003 }
12004
12005 print line
12006 }
12007
12008 _ACAWK
12009 _ACEOF
12010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12011 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12012 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12013 else
12014 cat
12015 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12016 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12017 _ACEOF
12018
12019 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12020 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12021 # trailing colons and then remove the whole line if VPATH becomes empty
12022 # (actually we leave an empty line to preserve line numbers).
12023 if test "x$srcdir" = x.; then
12024 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12025 h
12026 s///
12027 s/^/:/
12028 s/[ ]*$/:/
12029 s/:\$(srcdir):/:/g
12030 s/:\${srcdir}:/:/g
12031 s/:@srcdir@:/:/g
12032 s/^:*//
12033 s/:*$//
12034 x
12035 s/\(=[ ]*\).*/\1/
12036 G
12037 s/\n//
12038 s/^[^=]*=[ ]*$//
12039 }'
12040 fi
12041
12042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12043 fi # test -n "$CONFIG_FILES"
12044
12045
12046 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12047 shift
12048 for ac_tag
12049 do
12050 case $ac_tag in
12051 :[FHLC]) ac_mode=$ac_tag; continue;;
12052 esac
12053 case $ac_mode$ac_tag in
12054 :[FHL]*:*);;
12055 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12056 :[FH]-) ac_tag=-:-;;
12057 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12058 esac
12059 ac_save_IFS=$IFS
12060 IFS=:
12061 set x $ac_tag
12062 IFS=$ac_save_IFS
12063 shift
12064 ac_file=$1
12065 shift
12066
12067 case $ac_mode in
12068 :L) ac_source=$1;;
12069 :[FH])
12070 ac_file_inputs=
12071 for ac_f
12072 do
12073 case $ac_f in
12074 -) ac_f="$tmp/stdin";;
12075 *) # Look for the file first in the build tree, then in the source tree
12076 # (if the path is not absolute). The absolute path cannot be DOS-style,
12077 # because $ac_f cannot contain `:'.
12078 test -f "$ac_f" ||
12079 case $ac_f in
12080 [\\/$]*) false;;
12081 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12082 esac ||
12083 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12084 esac
12085 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12086 as_fn_append ac_file_inputs " '$ac_f'"
12087 done
12088
12089 # Let's still pretend it is `configure' which instantiates (i.e., don't
12090 # use $as_me), people would be surprised to read:
12091 # /* config.h. Generated by config.status. */
12092 configure_input='Generated from '`
12093 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12094 `' by configure.'
12095 if test x"$ac_file" != x-; then
12096 configure_input="$ac_file. $configure_input"
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12098 $as_echo "$as_me: creating $ac_file" >&6;}
12099 fi
12100 # Neutralize special characters interpreted by sed in replacement strings.
12101 case $configure_input in #(
12102 *\&* | *\|* | *\\* )
12103 ac_sed_conf_input=`$as_echo "$configure_input" |
12104 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12105 *) ac_sed_conf_input=$configure_input;;
12106 esac
12107
12108 case $ac_tag in
12109 *:-:* | *:-) cat >"$tmp/stdin" \
12110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12111 esac
12112 ;;
12113 esac
12114
12115 ac_dir=`$as_dirname -- "$ac_file" ||
12116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12117 X"$ac_file" : 'X\(//\)[^/]' \| \
12118 X"$ac_file" : 'X\(//\)$' \| \
12119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12120 $as_echo X"$ac_file" |
12121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12122 s//\1/
12123 q
12124 }
12125 /^X\(\/\/\)[^/].*/{
12126 s//\1/
12127 q
12128 }
12129 /^X\(\/\/\)$/{
12130 s//\1/
12131 q
12132 }
12133 /^X\(\/\).*/{
12134 s//\1/
12135 q
12136 }
12137 s/.*/./; q'`
12138 as_dir="$ac_dir"; as_fn_mkdir_p
12139 ac_builddir=.
12140
12141 case "$ac_dir" in
12142 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12143 *)
12144 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12145 # A ".." for each directory in $ac_dir_suffix.
12146 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12147 case $ac_top_builddir_sub in
12148 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12149 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12150 esac ;;
12151 esac
12152 ac_abs_top_builddir=$ac_pwd
12153 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12154 # for backward compatibility:
12155 ac_top_builddir=$ac_top_build_prefix
12156
12157 case $srcdir in
12158 .) # We are building in place.
12159 ac_srcdir=.
12160 ac_top_srcdir=$ac_top_builddir_sub
12161 ac_abs_top_srcdir=$ac_pwd ;;
12162 [\\/]* | ?:[\\/]* ) # Absolute name.
12163 ac_srcdir=$srcdir$ac_dir_suffix;
12164 ac_top_srcdir=$srcdir
12165 ac_abs_top_srcdir=$srcdir ;;
12166 *) # Relative name.
12167 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12168 ac_top_srcdir=$ac_top_build_prefix$srcdir
12169 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12170 esac
12171 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12172
12173
12174 case $ac_mode in
12175 :F)
12176 #
12177 # CONFIG_FILE
12178 #
12179
12180 case $INSTALL in
12181 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12182 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12183 esac
12184 ac_MKDIR_P=$MKDIR_P
12185 case $MKDIR_P in
12186 [\\/$]* | ?:[\\/]* ) ;;
12187 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12188 esac
12189 _ACEOF
12190
12191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12192 # If the template does not know about datarootdir, expand it.
12193 # FIXME: This hack should be removed a few years after 2.60.
12194 ac_datarootdir_hack=; ac_datarootdir_seen=
12195 ac_sed_dataroot='
12196 /datarootdir/ {
12197 p
12198 q
12199 }
12200 /@datadir@/p
12201 /@docdir@/p
12202 /@infodir@/p
12203 /@localedir@/p
12204 /@mandir@/p'
12205 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12206 *datarootdir*) ac_datarootdir_seen=yes;;
12207 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12209 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12210 _ACEOF
12211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12212 ac_datarootdir_hack='
12213 s&@datadir@&$datadir&g
12214 s&@docdir@&$docdir&g
12215 s&@infodir@&$infodir&g
12216 s&@localedir@&$localedir&g
12217 s&@mandir@&$mandir&g
12218 s&\\\${datarootdir}&$datarootdir&g' ;;
12219 esac
12220 _ACEOF
12221
12222 # Neutralize VPATH when `$srcdir' = `.'.
12223 # Shell code in configure.ac might set extrasub.
12224 # FIXME: do we really want to maintain this feature?
12225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12226 ac_sed_extra="$ac_vpsub
12227 $extrasub
12228 _ACEOF
12229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230 :t
12231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12232 s|@configure_input@|$ac_sed_conf_input|;t t
12233 s&@top_builddir@&$ac_top_builddir_sub&;t t
12234 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12235 s&@srcdir@&$ac_srcdir&;t t
12236 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12237 s&@top_srcdir@&$ac_top_srcdir&;t t
12238 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12239 s&@builddir@&$ac_builddir&;t t
12240 s&@abs_builddir@&$ac_abs_builddir&;t t
12241 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12242 s&@INSTALL@&$ac_INSTALL&;t t
12243 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12244 $ac_datarootdir_hack
12245 "
12246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12248
12249 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12250 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12253 which seems to be undefined. Please make sure it is defined" >&5
12254 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12255 which seems to be undefined. Please make sure it is defined" >&2;}
12256
12257 rm -f "$tmp/stdin"
12258 case $ac_file in
12259 -) cat "$tmp/out" && rm -f "$tmp/out";;
12260 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12261 esac \
12262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12263 ;;
12264
12265
12266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12267 $as_echo "$as_me: executing $ac_file commands" >&6;}
12268 ;;
12269 esac
12270
12271
12272 case $ac_file$ac_mode in
12273 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12274 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12275 # are listed without --file. Let's play safe and only enable the eval
12276 # if we detect the quoting.
12277 case $CONFIG_FILES in
12278 *\'*) eval set x "$CONFIG_FILES" ;;
12279 *) set x $CONFIG_FILES ;;
12280 esac
12281 shift
12282 for mf
12283 do
12284 # Strip MF so we end up with the name of the file.
12285 mf=`echo "$mf" | sed -e 's/:.*$//'`
12286 # Check whether this is an Automake generated Makefile or not.
12287 # We used to match only the files named `Makefile.in', but
12288 # some people rename them; so instead we look at the file content.
12289 # Grep'ing the first line is not enough: some people post-process
12290 # each Makefile.in and add a new line on top of each file to say so.
12291 # Grep'ing the whole file is not good either: AIX grep has a line
12292 # limit of 2048, but all sed's we know have understand at least 4000.
12293 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12294 dirpart=`$as_dirname -- "$mf" ||
12295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12296 X"$mf" : 'X\(//\)[^/]' \| \
12297 X"$mf" : 'X\(//\)$' \| \
12298 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12299 $as_echo X"$mf" |
12300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12301 s//\1/
12302 q
12303 }
12304 /^X\(\/\/\)[^/].*/{
12305 s//\1/
12306 q
12307 }
12308 /^X\(\/\/\)$/{
12309 s//\1/
12310 q
12311 }
12312 /^X\(\/\).*/{
12313 s//\1/
12314 q
12315 }
12316 s/.*/./; q'`
12317 else
12318 continue
12319 fi
12320 # Extract the definition of DEPDIR, am__include, and am__quote
12321 # from the Makefile without running `make'.
12322 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12323 test -z "$DEPDIR" && continue
12324 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12325 test -z "am__include" && continue
12326 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12327 # When using ansi2knr, U may be empty or an underscore; expand it
12328 U=`sed -n 's/^U = //p' < "$mf"`
12329 # Find all dependency output files, they are included files with
12330 # $(DEPDIR) in their names. We invoke sed twice because it is the
12331 # simplest approach to changing $(DEPDIR) to its actual value in the
12332 # expansion.
12333 for file in `sed -n "
12334 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12335 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12336 # Make sure the directory exists.
12337 test -f "$dirpart/$file" && continue
12338 fdir=`$as_dirname -- "$file" ||
12339 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12340 X"$file" : 'X\(//\)[^/]' \| \
12341 X"$file" : 'X\(//\)$' \| \
12342 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12343 $as_echo X"$file" |
12344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12345 s//\1/
12346 q
12347 }
12348 /^X\(\/\/\)[^/].*/{
12349 s//\1/
12350 q
12351 }
12352 /^X\(\/\/\)$/{
12353 s//\1/
12354 q
12355 }
12356 /^X\(\/\).*/{
12357 s//\1/
12358 q
12359 }
12360 s/.*/./; q'`
12361 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12362 # echo "creating $dirpart/$file"
12363 echo '# dummy' > "$dirpart/$file"
12364 done
12365 done
12366 }
12367 ;;
12368 "libtool":C)
12369
12370 # See if we are running on zsh, and set the options which allow our
12371 # commands through without removal of \ escapes.
12372 if test -n "${ZSH_VERSION+set}" ; then
12373 setopt NO_GLOB_SUBST
12374 fi
12375
12376 cfgfile="${ofile}T"
12377 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12378 $RM "$cfgfile"
12379
12380 cat <<_LT_EOF >> "$cfgfile"
12381 #! $SHELL
12382
12383 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12384 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12386 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12387 #
12388 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12389 # 2006, 2007, 2008 Free Software Foundation, Inc.
12390 # Written by Gordon Matzigkeit, 1996
12391 #
12392 # This file is part of GNU Libtool.
12393 #
12394 # GNU Libtool is free software; you can redistribute it and/or
12395 # modify it under the terms of the GNU General Public License as
12396 # published by the Free Software Foundation; either version 2 of
12397 # the License, or (at your option) any later version.
12398 #
12399 # As a special exception to the GNU General Public License,
12400 # if you distribute this file as part of a program or library that
12401 # is built using GNU Libtool, you may include this file under the
12402 # same distribution terms that you use for the rest of that program.
12403 #
12404 # GNU Libtool is distributed in the hope that it will be useful,
12405 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12407 # GNU General Public License for more details.
12408 #
12409 # You should have received a copy of the GNU General Public License
12410 # along with GNU Libtool; see the file COPYING. If not, a copy
12411 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12412 # obtained by writing to the Free Software Foundation, Inc.,
12413 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12414
12415
12416 # The names of the tagged configurations supported by this script.
12417 available_tags=""
12418
12419 # ### BEGIN LIBTOOL CONFIG
12420
12421 # Which release of libtool.m4 was used?
12422 macro_version=$macro_version
12423 macro_revision=$macro_revision
12424
12425 # Whether or not to build shared libraries.
12426 build_libtool_libs=$enable_shared
12427
12428 # Whether or not to build static libraries.
12429 build_old_libs=$enable_static
12430
12431 # What type of objects to build.
12432 pic_mode=$pic_mode
12433
12434 # Whether or not to optimize for fast installation.
12435 fast_install=$enable_fast_install
12436
12437 # The host system.
12438 host_alias=$host_alias
12439 host=$host
12440 host_os=$host_os
12441
12442 # The build system.
12443 build_alias=$build_alias
12444 build=$build
12445 build_os=$build_os
12446
12447 # A sed program that does not truncate output.
12448 SED=$lt_SED
12449
12450 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12451 Xsed="\$SED -e 1s/^X//"
12452
12453 # A grep program that handles long lines.
12454 GREP=$lt_GREP
12455
12456 # An ERE matcher.
12457 EGREP=$lt_EGREP
12458
12459 # A literal string matcher.
12460 FGREP=$lt_FGREP
12461
12462 # A BSD- or MS-compatible name lister.
12463 NM=$lt_NM
12464
12465 # Whether we need soft or hard links.
12466 LN_S=$lt_LN_S
12467
12468 # What is the maximum length of a command?
12469 max_cmd_len=$max_cmd_len
12470
12471 # Object file suffix (normally "o").
12472 objext=$ac_objext
12473
12474 # Executable file suffix (normally "").
12475 exeext=$exeext
12476
12477 # whether the shell understands "unset".
12478 lt_unset=$lt_unset
12479
12480 # turn spaces into newlines.
12481 SP2NL=$lt_lt_SP2NL
12482
12483 # turn newlines into spaces.
12484 NL2SP=$lt_lt_NL2SP
12485
12486 # How to create reloadable object files.
12487 reload_flag=$lt_reload_flag
12488 reload_cmds=$lt_reload_cmds
12489
12490 # An object symbol dumper.
12491 OBJDUMP=$lt_OBJDUMP
12492
12493 # Method to check whether dependent libraries are shared objects.
12494 deplibs_check_method=$lt_deplibs_check_method
12495
12496 # Command to use when deplibs_check_method == "file_magic".
12497 file_magic_cmd=$lt_file_magic_cmd
12498
12499 # The archiver.
12500 AR=$lt_AR
12501 AR_FLAGS=$lt_AR_FLAGS
12502
12503 # A symbol stripping program.
12504 STRIP=$lt_STRIP
12505
12506 # Commands used to install an old-style archive.
12507 RANLIB=$lt_RANLIB
12508 old_postinstall_cmds=$lt_old_postinstall_cmds
12509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12510
12511 # A C compiler.
12512 LTCC=$lt_CC
12513
12514 # LTCC compiler flags.
12515 LTCFLAGS=$lt_CFLAGS
12516
12517 # Take the output of nm and produce a listing of raw symbols and C names.
12518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12519
12520 # Transform the output of nm in a proper C declaration.
12521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12522
12523 # Transform the output of nm in a C name address pair.
12524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12525
12526 # Transform the output of nm in a C name address pair when lib prefix is needed.
12527 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12528
12529 # The name of the directory that contains temporary libtool files.
12530 objdir=$objdir
12531
12532 # Shell to use when invoking shell scripts.
12533 SHELL=$lt_SHELL
12534
12535 # An echo program that does not interpret backslashes.
12536 ECHO=$lt_ECHO
12537
12538 # Used to examine libraries when file_magic_cmd begins with "file".
12539 MAGIC_CMD=$MAGIC_CMD
12540
12541 # Must we lock files when doing compilation?
12542 need_locks=$lt_need_locks
12543
12544 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12545 DSYMUTIL=$lt_DSYMUTIL
12546
12547 # Tool to change global to local symbols on Mac OS X.
12548 NMEDIT=$lt_NMEDIT
12549
12550 # Tool to manipulate fat objects and archives on Mac OS X.
12551 LIPO=$lt_LIPO
12552
12553 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12554 OTOOL=$lt_OTOOL
12555
12556 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12557 OTOOL64=$lt_OTOOL64
12558
12559 # Old archive suffix (normally "a").
12560 libext=$libext
12561
12562 # Shared library suffix (normally ".so").
12563 shrext_cmds=$lt_shrext_cmds
12564
12565 # The commands to extract the exported symbol list from a shared archive.
12566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12567
12568 # Variables whose values should be saved in libtool wrapper scripts and
12569 # restored at link time.
12570 variables_saved_for_relink=$lt_variables_saved_for_relink
12571
12572 # Do we need the "lib" prefix for modules?
12573 need_lib_prefix=$need_lib_prefix
12574
12575 # Do we need a version for libraries?
12576 need_version=$need_version
12577
12578 # Library versioning type.
12579 version_type=$version_type
12580
12581 # Shared library runtime path variable.
12582 runpath_var=$runpath_var
12583
12584 # Shared library path variable.
12585 shlibpath_var=$shlibpath_var
12586
12587 # Is shlibpath searched before the hard-coded library search path?
12588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12589
12590 # Format of library name prefix.
12591 libname_spec=$lt_libname_spec
12592
12593 # List of archive names. First name is the real one, the rest are links.
12594 # The last name is the one that the linker finds with -lNAME
12595 library_names_spec=$lt_library_names_spec
12596
12597 # The coded name of the library, if different from the real name.
12598 soname_spec=$lt_soname_spec
12599
12600 # Command to use after installation of a shared archive.
12601 postinstall_cmds=$lt_postinstall_cmds
12602
12603 # Command to use after uninstallation of a shared archive.
12604 postuninstall_cmds=$lt_postuninstall_cmds
12605
12606 # Commands used to finish a libtool library installation in a directory.
12607 finish_cmds=$lt_finish_cmds
12608
12609 # As "finish_cmds", except a single script fragment to be evaled but
12610 # not shown.
12611 finish_eval=$lt_finish_eval
12612
12613 # Whether we should hardcode library paths into libraries.
12614 hardcode_into_libs=$hardcode_into_libs
12615
12616 # Compile-time system search path for libraries.
12617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12618
12619 # Run-time system search path for libraries.
12620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12621
12622 # Whether dlopen is supported.
12623 dlopen_support=$enable_dlopen
12624
12625 # Whether dlopen of programs is supported.
12626 dlopen_self=$enable_dlopen_self
12627
12628 # Whether dlopen of statically linked programs is supported.
12629 dlopen_self_static=$enable_dlopen_self_static
12630
12631 # Commands to strip libraries.
12632 old_striplib=$lt_old_striplib
12633 striplib=$lt_striplib
12634
12635
12636 # The linker used to build libraries.
12637 LD=$lt_LD
12638
12639 # Commands used to build an old-style archive.
12640 old_archive_cmds=$lt_old_archive_cmds
12641
12642 # A language specific compiler.
12643 CC=$lt_compiler
12644
12645 # Is the compiler the GNU compiler?
12646 with_gcc=$GCC
12647
12648 # Compiler flag to turn off builtin functions.
12649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12650
12651 # How to pass a linker flag through the compiler.
12652 wl=$lt_lt_prog_compiler_wl
12653
12654 # Additional compiler flags for building library objects.
12655 pic_flag=$lt_lt_prog_compiler_pic
12656
12657 # Compiler flag to prevent dynamic linking.
12658 link_static_flag=$lt_lt_prog_compiler_static
12659
12660 # Does compiler simultaneously support -c and -o options?
12661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12662
12663 # Whether or not to add -lc for building shared libraries.
12664 build_libtool_need_lc=$archive_cmds_need_lc
12665
12666 # Whether or not to disallow shared libs when runtime libs are static.
12667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12668
12669 # Compiler flag to allow reflexive dlopens.
12670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12671
12672 # Compiler flag to generate shared objects directly from archives.
12673 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12674
12675 # Whether the compiler copes with passing no objects directly.
12676 compiler_needs_object=$lt_compiler_needs_object
12677
12678 # Create an old-style archive from a shared archive.
12679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12680
12681 # Create a temporary old-style archive to link instead of a shared archive.
12682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12683
12684 # Commands used to build a shared archive.
12685 archive_cmds=$lt_archive_cmds
12686 archive_expsym_cmds=$lt_archive_expsym_cmds
12687
12688 # Commands used to build a loadable module if different from building
12689 # a shared archive.
12690 module_cmds=$lt_module_cmds
12691 module_expsym_cmds=$lt_module_expsym_cmds
12692
12693 # Whether we are building with GNU ld or not.
12694 with_gnu_ld=$lt_with_gnu_ld
12695
12696 # Flag that allows shared libraries with undefined symbols to be built.
12697 allow_undefined_flag=$lt_allow_undefined_flag
12698
12699 # Flag that enforces no undefined symbols.
12700 no_undefined_flag=$lt_no_undefined_flag
12701
12702 # Flag to hardcode \$libdir into a binary during linking.
12703 # This must work even if \$libdir does not exist
12704 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12705
12706 # If ld is used when linking, flag to hardcode \$libdir into a binary
12707 # during linking. This must work even if \$libdir does not exist.
12708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12709
12710 # Whether we need a single "-rpath" flag with a separated argument.
12711 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12712
12713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12714 # DIR into the resulting binary.
12715 hardcode_direct=$hardcode_direct
12716
12717 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12718 # DIR into the resulting binary and the resulting library dependency is
12719 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12720 # library is relocated.
12721 hardcode_direct_absolute=$hardcode_direct_absolute
12722
12723 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12724 # into the resulting binary.
12725 hardcode_minus_L=$hardcode_minus_L
12726
12727 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12728 # into the resulting binary.
12729 hardcode_shlibpath_var=$hardcode_shlibpath_var
12730
12731 # Set to "yes" if building a shared library automatically hardcodes DIR
12732 # into the library and all subsequent libraries and executables linked
12733 # against it.
12734 hardcode_automatic=$hardcode_automatic
12735
12736 # Set to yes if linker adds runtime paths of dependent libraries
12737 # to runtime path list.
12738 inherit_rpath=$inherit_rpath
12739
12740 # Whether libtool must link a program against all its dependency libraries.
12741 link_all_deplibs=$link_all_deplibs
12742
12743 # Fix the shell variable \$srcfile for the compiler.
12744 fix_srcfile_path=$lt_fix_srcfile_path
12745
12746 # Set to "yes" if exported symbols are required.
12747 always_export_symbols=$always_export_symbols
12748
12749 # The commands to list exported symbols.
12750 export_symbols_cmds=$lt_export_symbols_cmds
12751
12752 # Symbols that should not be listed in the preloaded symbols.
12753 exclude_expsyms=$lt_exclude_expsyms
12754
12755 # Symbols that must always be exported.
12756 include_expsyms=$lt_include_expsyms
12757
12758 # Commands necessary for linking programs (against libraries) with templates.
12759 prelink_cmds=$lt_prelink_cmds
12760
12761 # Specify filename containing input files.
12762 file_list_spec=$lt_file_list_spec
12763
12764 # How to hardcode a shared library path into an executable.
12765 hardcode_action=$hardcode_action
12766
12767 # ### END LIBTOOL CONFIG
12768
12769 _LT_EOF
12770
12771 case $host_os in
12772 aix3*)
12773 cat <<\_LT_EOF >> "$cfgfile"
12774 # AIX sometimes has problems with the GCC collect2 program. For some
12775 # reason, if we set the COLLECT_NAMES environment variable, the problems
12776 # vanish in a puff of smoke.
12777 if test "X${COLLECT_NAMES+set}" != Xset; then
12778 COLLECT_NAMES=
12779 export COLLECT_NAMES
12780 fi
12781 _LT_EOF
12782 ;;
12783 esac
12784
12785
12786 ltmain="$ac_aux_dir/ltmain.sh"
12787
12788
12789 # We use sed instead of cat because bash on DJGPP gets confused if
12790 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12791 # text mode, it properly converts lines to CR/LF. This bash problem
12792 # is reportedly fixed, but why not run on old versions too?
12793 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12794 || (rm -f "$cfgfile"; exit 1)
12795
12796 case $xsi_shell in
12797 yes)
12798 cat << \_LT_EOF >> "$cfgfile"
12799
12800 # func_dirname file append nondir_replacement
12801 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12802 # otherwise set result to NONDIR_REPLACEMENT.
12803 func_dirname ()
12804 {
12805 case ${1} in
12806 */*) func_dirname_result="${1%/*}${2}" ;;
12807 * ) func_dirname_result="${3}" ;;
12808 esac
12809 }
12810
12811 # func_basename file
12812 func_basename ()
12813 {
12814 func_basename_result="${1##*/}"
12815 }
12816
12817 # func_dirname_and_basename file append nondir_replacement
12818 # perform func_basename and func_dirname in a single function
12819 # call:
12820 # dirname: Compute the dirname of FILE. If nonempty,
12821 # add APPEND to the result, otherwise set result
12822 # to NONDIR_REPLACEMENT.
12823 # value returned in "$func_dirname_result"
12824 # basename: Compute filename of FILE.
12825 # value retuned in "$func_basename_result"
12826 # Implementation must be kept synchronized with func_dirname
12827 # and func_basename. For efficiency, we do not delegate to
12828 # those functions but instead duplicate the functionality here.
12829 func_dirname_and_basename ()
12830 {
12831 case ${1} in
12832 */*) func_dirname_result="${1%/*}${2}" ;;
12833 * ) func_dirname_result="${3}" ;;
12834 esac
12835 func_basename_result="${1##*/}"
12836 }
12837
12838 # func_stripname prefix suffix name
12839 # strip PREFIX and SUFFIX off of NAME.
12840 # PREFIX and SUFFIX must not contain globbing or regex special
12841 # characters, hashes, percent signs, but SUFFIX may contain a leading
12842 # dot (in which case that matches only a dot).
12843 func_stripname ()
12844 {
12845 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12846 # positional parameters, so assign one to ordinary parameter first.
12847 func_stripname_result=${3}
12848 func_stripname_result=${func_stripname_result#"${1}"}
12849 func_stripname_result=${func_stripname_result%"${2}"}
12850 }
12851
12852 # func_opt_split
12853 func_opt_split ()
12854 {
12855 func_opt_split_opt=${1%%=*}
12856 func_opt_split_arg=${1#*=}
12857 }
12858
12859 # func_lo2o object
12860 func_lo2o ()
12861 {
12862 case ${1} in
12863 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12864 *) func_lo2o_result=${1} ;;
12865 esac
12866 }
12867
12868 # func_xform libobj-or-source
12869 func_xform ()
12870 {
12871 func_xform_result=${1%.*}.lo
12872 }
12873
12874 # func_arith arithmetic-term...
12875 func_arith ()
12876 {
12877 func_arith_result=$(( $* ))
12878 }
12879
12880 # func_len string
12881 # STRING may not start with a hyphen.
12882 func_len ()
12883 {
12884 func_len_result=${#1}
12885 }
12886
12887 _LT_EOF
12888 ;;
12889 *) # Bourne compatible functions.
12890 cat << \_LT_EOF >> "$cfgfile"
12891
12892 # func_dirname file append nondir_replacement
12893 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12894 # otherwise set result to NONDIR_REPLACEMENT.
12895 func_dirname ()
12896 {
12897 # Extract subdirectory from the argument.
12898 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12899 if test "X$func_dirname_result" = "X${1}"; then
12900 func_dirname_result="${3}"
12901 else
12902 func_dirname_result="$func_dirname_result${2}"
12903 fi
12904 }
12905
12906 # func_basename file
12907 func_basename ()
12908 {
12909 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12910 }
12911
12912
12913 # func_stripname prefix suffix name
12914 # strip PREFIX and SUFFIX off of NAME.
12915 # PREFIX and SUFFIX must not contain globbing or regex special
12916 # characters, hashes, percent signs, but SUFFIX may contain a leading
12917 # dot (in which case that matches only a dot).
12918 # func_strip_suffix prefix name
12919 func_stripname ()
12920 {
12921 case ${2} in
12922 .*) func_stripname_result=`$ECHO "X${3}" \
12923 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12924 *) func_stripname_result=`$ECHO "X${3}" \
12925 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12926 esac
12927 }
12928
12929 # sed scripts:
12930 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12931 my_sed_long_arg='1s/^-[^=]*=//'
12932
12933 # func_opt_split
12934 func_opt_split ()
12935 {
12936 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12937 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12938 }
12939
12940 # func_lo2o object
12941 func_lo2o ()
12942 {
12943 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12944 }
12945
12946 # func_xform libobj-or-source
12947 func_xform ()
12948 {
12949 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12950 }
12951
12952 # func_arith arithmetic-term...
12953 func_arith ()
12954 {
12955 func_arith_result=`expr "$@"`
12956 }
12957
12958 # func_len string
12959 # STRING may not start with a hyphen.
12960 func_len ()
12961 {
12962 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12963 }
12964
12965 _LT_EOF
12966 esac
12967
12968 case $lt_shell_append in
12969 yes)
12970 cat << \_LT_EOF >> "$cfgfile"
12971
12972 # func_append var value
12973 # Append VALUE to the end of shell variable VAR.
12974 func_append ()
12975 {
12976 eval "$1+=\$2"
12977 }
12978 _LT_EOF
12979 ;;
12980 *)
12981 cat << \_LT_EOF >> "$cfgfile"
12982
12983 # func_append var value
12984 # Append VALUE to the end of shell variable VAR.
12985 func_append ()
12986 {
12987 eval "$1=\$$1\$2"
12988 }
12989
12990 _LT_EOF
12991 ;;
12992 esac
12993
12994
12995 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12996 || (rm -f "$cfgfile"; exit 1)
12997
12998 mv -f "$cfgfile" "$ofile" ||
12999 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13000 chmod +x "$ofile"
13001
13002 ;;
13003
13004 esac
13005 done # for ac_tag
13006
13007
13008 as_fn_exit 0
13009 _ACEOF
13010 ac_clean_files=$ac_clean_files_save
13011
13012 test $ac_write_fail = 0 ||
13013 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13014
13015
13016 # configure is writing to config.log, and then calls config.status.
13017 # config.status does its own redirection, appending to config.log.
13018 # Unfortunately, on DOS this fails, as config.log is still kept open
13019 # by configure, so config.status won't be able to write to it; its
13020 # output is simply discarded. So we exec the FD to /dev/null,
13021 # effectively closing config.log, so it can be properly (re)opened and
13022 # appended to by config.status. When coming back to configure, we
13023 # need to make the FD available again.
13024 if test "$no_create" != yes; then
13025 ac_cs_success=:
13026 ac_config_status_args=
13027 test "$silent" = yes &&
13028 ac_config_status_args="$ac_config_status_args --quiet"
13029 exec 5>/dev/null
13030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13031 exec 5>>config.log
13032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13033 # would make configure fail if this is the last instruction.
13034 $ac_cs_success || as_fn_exit 1
13035 fi
13036 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13038 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13039 fi
13040