]> git.ipfire.org Git - thirdparty/gcc.git/blob - libobjc/configure
Regenerate tree using Autoconf 2.64 and Automake 1.11.
[thirdparty/gcc.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557 $*
558 _LT_EOF
559 exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='package-unused'
697 PACKAGE_TARNAME='libobjc'
698 PACKAGE_VERSION='version-unused'
699 PACKAGE_STRING='package-unused version-unused'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 ac_unique_file="objc/objc.h"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 ac_subst_vars='LTLIBOBJS
741 LIBOBJS
742 SET_MAKE
743 CPP
744 OTOOL64
745 OTOOL
746 LIPO
747 NMEDIT
748 DSYMUTIL
749 lt_ECHO
750 STRIP
751 LN_S
752 NM
753 ac_ct_DUMPBIN
754 DUMPBIN
755 LD
756 FGREP
757 EGREP
758 GREP
759 SED
760 LIBTOOL
761 OBJDUMP
762 DLLTOOL
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 RANLIB
770 AR
771 AS
772 extra_ldflags_libobjc
773 OBJEXT
774 EXEEXT
775 ac_ct_CC
776 CPPFLAGS
777 LDFLAGS
778 CFLAGS
779 CC
780 libsuffix
781 includedirname
782 toolexeclibdir
783 toolexecdir
784 glibcpp_srcdir
785 target_noncanonical
786 target_os
787 target_vendor
788 target_cpu
789 target
790 host_os
791 host_vendor
792 host_cpu
793 host
794 multi_basedir
795 OBJC_BOEHM_GC_INCLUDES
796 OBJC_BOEHM_GC
797 VERSION
798 target_subdir
799 host_subdir
800 build_subdir
801 build_libsubdir
802 build_os
803 build_vendor
804 build_cpu
805 build
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 localstatedir
826 sharedstatedir
827 sysconfdir
828 datadir
829 datarootdir
830 libexecdir
831 sbindir
832 bindir
833 program_transform_name
834 prefix
835 exec_prefix
836 PACKAGE_URL
837 PACKAGE_BUGREPORT
838 PACKAGE_STRING
839 PACKAGE_VERSION
840 PACKAGE_TARNAME
841 PACKAGE_NAME
842 PATH_SEPARATOR
843 SHELL'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 with_build_libsubdir
848 with_target_subdir
849 with_cross_host
850 enable_version_specific_runtime_libs
851 enable_objc_gc
852 enable_multilib
853 enable_maintainer_mode
854 enable_shared
855 enable_static
856 with_pic
857 enable_fast_install
858 with_gnu_ld
859 enable_libtool_lock
860 enable_sjlj_exceptions
861 '
862 ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CPP
866 CPPFLAGS'
867
868
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
890
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
926 fi
927
928 case $ac_option in
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *) ac_optarg=yes ;;
931 esac
932
933 # Accept the important Cygnus configure options, so we can diagnose typos.
934
935 case $ac_dashdash$ac_option in
936 --)
937 ac_dashdash=yes ;;
938
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 ac_prev=bindir ;;
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 bindir=$ac_optarg ;;
943
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
948
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
955
956 --config-cache | -C)
957 cache_file=config.cache ;;
958
959 -datadir | --datadir | --datadi | --datad)
960 ac_prev=datadir ;;
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
963
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
970
971 -disable-* | --disable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=no ;;
986
987 -docdir | --docdir | --docdi | --doc | --do)
988 ac_prev=docdir ;;
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 docdir=$ac_optarg ;;
991
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 ac_prev=dvidir ;;
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 dvidir=$ac_optarg ;;
996
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
1020 exec_prefix=$ac_optarg ;;
1021
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1024 with_gas=yes ;;
1025
1026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
1032
1033 -host | --host | --hos | --ho)
1034 ac_prev=host_alias ;;
1035 -host=* | --host=* | --hos=* | --ho=*)
1036 host_alias=$ac_optarg ;;
1037
1038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 ac_prev=htmldir ;;
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 | --ht=*)
1042 htmldir=$ac_optarg ;;
1043
1044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
1049 includedir=$ac_optarg ;;
1050
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 ac_prev=infodir ;;
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054 infodir=$ac_optarg ;;
1055
1056 -libdir | --libdir | --libdi | --libd)
1057 ac_prev=libdir ;;
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059 libdir=$ac_optarg ;;
1060
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
1066 libexecdir=$ac_optarg ;;
1067
1068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1072
1073 -localstatedir | --localstatedir | --localstatedi | --localstated \
1074 | --localstate | --localstat | --localsta | --localst | --locals)
1075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078 localstatedir=$ac_optarg ;;
1079
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 ac_prev=mandir ;;
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083 mandir=$ac_optarg ;;
1084
1085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1087 with_fp=no ;;
1088
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090 | --no-cr | --no-c | -n)
1091 no_create=yes ;;
1092
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 no_recursion=yes ;;
1096
1097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104 oldincludedir=$ac_optarg ;;
1105
1106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 ac_prev=prefix ;;
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109 prefix=$ac_optarg ;;
1110
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116 program_prefix=$ac_optarg ;;
1117
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123 program_suffix=$ac_optarg ;;
1124
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
1140 program_transform_name=$ac_optarg ;;
1141
1142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 ac_prev=pdfdir ;;
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1146
1147 -psdir | --psdir | --psdi | --psd | --ps)
1148 ac_prev=psdir ;;
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 psdir=$ac_optarg ;;
1151
1152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1154 silent=yes ;;
1155
1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 ac_prev=sbindir ;;
1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 | --sbi=* | --sb=*)
1160 sbindir=$ac_optarg ;;
1161
1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164 | --sharedst | --shareds | --shared | --share | --shar \
1165 | --sha | --sh)
1166 ac_prev=sharedstatedir ;;
1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 | --sha=* | --sh=*)
1171 sharedstatedir=$ac_optarg ;;
1172
1173 -site | --site | --sit)
1174 ac_prev=site ;;
1175 -site=* | --site=* | --sit=*)
1176 site=$ac_optarg ;;
1177
1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 ac_prev=srcdir ;;
1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181 srcdir=$ac_optarg ;;
1182
1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184 | --syscon | --sysco | --sysc | --sys | --sy)
1185 ac_prev=sysconfdir ;;
1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188 sysconfdir=$ac_optarg ;;
1189
1190 -target | --target | --targe | --targ | --tar | --ta | --t)
1191 ac_prev=target_alias ;;
1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193 target_alias=$ac_optarg ;;
1194
1195 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 verbose=yes ;;
1197
1198 -version | --version | --versio | --versi | --vers | -V)
1199 ac_init_version=: ;;
1200
1201 -with-* | --with-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=\$ac_optarg ;;
1216
1217 -without-* | --without-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error "invalid package name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=no ;;
1232
1233 --x)
1234 # Obsolete; use --with-x.
1235 with_x=yes ;;
1236
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1243
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1250
1251 -*) as_fn_error "unrecognized option: \`$ac_option'
1252 Try \`$0 --help' for more information."
1253 ;;
1254
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 case $ac_envvar in #(
1259 '' | [0-9]* | *[!_$as_cr_alnum]* )
1260 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1261 esac
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1264
1265 *)
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 ;;
1272
1273 esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 as_fn_error "missing argument to $ac_option"
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1283 no) ;;
1284 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286 esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1294 do
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1297 case $ac_val in
1298 */ )
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1301 esac
1302 # Be sure to have absolute directory names.
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1308 done
1309
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1313 build=$build_alias
1314 host=$host_alias
1315 target=$target_alias
1316
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319 if test "x$build_alias" = x; then
1320 cross_compiling=maybe
1321 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1322 If a cross compiler is detected then cross compile mode will be used." >&2
1323 elif test "x$build_alias" != "x$host_alias"; then
1324 cross_compiling=yes
1325 fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 as_fn_error "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 as_fn_error "pwd does not report name of working directory"
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$as_myself" : 'X\(//\)[^/]' \| \
1349 X"$as_myself" : 'X\(//\)$' \| \
1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)[^/].*/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\).*/{
1365 s//\1/
1366 q
1367 }
1368 s/.*/./; q'`
1369 srcdir=$ac_confdir
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 srcdir=..
1372 fi
1373 else
1374 ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1379 fi
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1383 pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1407 cat <<_ACEOF
1408 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1461 _ACEOF
1462
1463 cat <<\_ACEOF
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 --target=TARGET configure for building compilers for TARGET [HOST]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of package-unused version-unused:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1483 --enable-objc-gc enable the use of Boehm's garbage collector with
1484 the GNU Objective-C runtime.
1485 --enable-multilib build many library versions (default)
1486 --enable-maintainer-mode enable make rules and dependencies not useful
1487 (and sometimes confusing) to the casual installer
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-sjlj-exceptions
1494 force use of builtin_setjmp for exceptions
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-build-libsubdir=DIR Directory where to find libraries for build system
1500 --with-target-subdir=SUBDIR
1501 configuring in a subdirectory
1502 --with-cross-host=HOST configuring with a cross compiler
1503 --with-pic try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 CPP C preprocessor
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to the package provider.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 package-unused configure version-unused
1584 generated by GNU Autoconf 2.64
1585
1586 Copyright (C) 2009 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 return $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_c_try_link LINENO
1636 # -----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_link ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext conftest$ac_exeext
1642 if { { ac_try="$ac_link"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest$ac_exeext && {
1661 test "$cross_compiling" = yes ||
1662 $as_test_x conftest$ac_exeext
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1673 # interfere with the next link command; also delete a directory that is
1674 # left behind by Apple's compiler. We do this before executing the actions.
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 return $ac_retval
1678
1679 } # ac_fn_c_try_link
1680
1681 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1682 # -------------------------------------------------------
1683 # Tests whether HEADER exists and can be compiled using the include files in
1684 # INCLUDES, setting the cache variable VAR accordingly.
1685 ac_fn_c_check_header_compile ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1691 $as_echo_n "(cached) " >&6
1692 else
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 $4
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"; then :
1699 eval "$3=yes"
1700 else
1701 eval "$3=no"
1702 fi
1703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 fi
1705 eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709
1710 } # ac_fn_c_check_header_compile
1711
1712 # ac_fn_c_try_cpp LINENO
1713 # ----------------------
1714 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_cpp ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } >/dev/null && {
1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1746
1747 } # ac_fn_c_try_cpp
1748
1749 # ac_fn_c_try_run LINENO
1750 # ----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1752 # that executables *can* be run.
1753 ac_fn_c_try_run ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1767 { { case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_try") 2>&5
1774 ac_status=$?
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; }; }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: program exited with status $ac_status" >&5
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=$ac_status
1784 fi
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 return $ac_retval
1788
1789 } # ac_fn_c_try_run
1790
1791 # ac_fn_c_check_func LINENO FUNC VAR
1792 # ----------------------------------
1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1794 ac_fn_c_check_func ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 if test x$gcc_no_link = xyes; then
1803 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1804 fi
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1810
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1815
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1821
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main ()
1840 {
1841 return $2 ();
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858
1859 } # ac_fn_c_check_func
1860
1861 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1864 # the include files in INCLUDES and setting the cache variable VAR
1865 # accordingly.
1866 ac_fn_c_check_header_mongrel ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 else
1879 # Is the header compilable?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1881 $as_echo_n "checking $2 usability... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $4
1885 #include <$2>
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 ac_header_compiler=yes
1889 else
1890 ac_header_compiler=no
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1894 $as_echo "$ac_header_compiler" >&6; }
1895
1896 # Is the header present?
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1898 $as_echo_n "checking $2 presence... " >&6; }
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_cpp "$LINENO"; then :
1904 ac_header_preproc=yes
1905 else
1906 ac_header_preproc=no
1907 fi
1908 rm -f conftest.err conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1910 $as_echo "$ac_header_preproc" >&6; }
1911
1912 # So? What about this header?
1913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1914 yes:no: )
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1916 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ;;
1920 no:yes:* )
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1922 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1924 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1926 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1928 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 ;;
1932 esac
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 eval "$3=\$ac_header_compiler"
1939 fi
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 fi
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946 } # ac_fn_c_check_header_mongrel
1947 cat >config.log <<_ACEOF
1948 This file contains any messages produced by compilers while
1949 running configure, to aid debugging if configure makes a mistake.
1950
1951 It was created by package-unused $as_me version-unused, which was
1952 generated by GNU Autoconf 2.64. Invocation command line was
1953
1954 $ $0 $@
1955
1956 _ACEOF
1957 exec 5>>config.log
1958 {
1959 cat <<_ASUNAME
1960 ## --------- ##
1961 ## Platform. ##
1962 ## --------- ##
1963
1964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1972
1973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980
1981 _ASUNAME
1982
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 $as_echo "PATH: $as_dir"
1989 done
1990 IFS=$as_save_IFS
1991
1992 } >&5
1993
1994 cat >&5 <<_ACEOF
1995
1996
1997 ## ----------- ##
1998 ## Core tests. ##
1999 ## ----------- ##
2000
2001 _ACEOF
2002
2003
2004 # Keep a trace of the command line.
2005 # Strip out --no-create and --no-recursion so they do not pile up.
2006 # Strip out --silent because we don't want to record it for future runs.
2007 # Also quote any args containing shell meta-characters.
2008 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_configure_args=
2010 ac_configure_args0=
2011 ac_configure_args1=
2012 ac_must_keep_next=false
2013 for ac_pass in 1 2
2014 do
2015 for ac_arg
2016 do
2017 case $ac_arg in
2018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020 | -silent | --silent | --silen | --sile | --sil)
2021 continue ;;
2022 *\'*)
2023 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 esac
2025 case $ac_pass in
2026 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027 2)
2028 as_fn_append ac_configure_args1 " '$ac_arg'"
2029 if test $ac_must_keep_next = true; then
2030 ac_must_keep_next=false # Got value, back to normal.
2031 else
2032 case $ac_arg in
2033 *=* | --config-cache | -C | -disable-* | --disable-* \
2034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036 | -with-* | --with-* | -without-* | --without-* | --x)
2037 case "$ac_configure_args0 " in
2038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039 esac
2040 ;;
2041 -* ) ac_must_keep_next=true ;;
2042 esac
2043 fi
2044 as_fn_append ac_configure_args " '$ac_arg'"
2045 ;;
2046 esac
2047 done
2048 done
2049 { ac_configure_args0=; unset ac_configure_args0;}
2050 { ac_configure_args1=; unset ac_configure_args1;}
2051
2052 # When interrupted or exit'd, cleanup temporary files, and complete
2053 # config.log. We remove comments because anyway the quotes in there
2054 # would cause problems or look ugly.
2055 # WARNING: Use '\'' to represent an apostrophe within the trap.
2056 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057 trap 'exit_status=$?
2058 # Save into config.log some information that might help in debugging.
2059 {
2060 echo
2061
2062 cat <<\_ASBOX
2063 ## ---------------- ##
2064 ## Cache variables. ##
2065 ## ---------------- ##
2066 _ASBOX
2067 echo
2068 # The following way of writing the cache mishandles newlines in values,
2069 (
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in #(
2073 *${as_nl}*)
2074 case $ac_var in #(
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077 esac
2078 case $ac_var in #(
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2082 esac ;;
2083 esac
2084 done
2085 (set) 2>&1 |
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
2088 sed -n \
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091 ;; #(
2092 *)
2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094 ;;
2095 esac |
2096 sort
2097 )
2098 echo
2099
2100 cat <<\_ASBOX
2101 ## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##
2104 _ASBOX
2105 echo
2106 for ac_var in $ac_subst_vars
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115
2116 if test -n "$ac_subst_files"; then
2117 cat <<\_ASBOX
2118 ## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##
2121 _ASBOX
2122 echo
2123 for ac_var in $ac_subst_files
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 esac
2129 $as_echo "$ac_var='\''$ac_val'\''"
2130 done | sort
2131 echo
2132 fi
2133
2134 if test -s confdefs.h; then
2135 cat <<\_ASBOX
2136 ## ----------- ##
2137 ## confdefs.h. ##
2138 ## ----------- ##
2139 _ASBOX
2140 echo
2141 cat confdefs.h
2142 echo
2143 fi
2144 test "$ac_signal" != 0 &&
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
2147 } >&5
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150 exit $exit_status
2151 ' 0
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2156
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2159
2160 $as_echo "/* confdefs.h */" > confdefs.h
2161
2162 # Predefined preprocessor variables.
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2186 _ACEOF
2187
2188
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 ac_site_file1=NONE
2192 ac_site_file2=NONE
2193 if test -n "$CONFIG_SITE"; then
2194 ac_site_file1=$CONFIG_SITE
2195 elif test "x$prefix" != xNONE; then
2196 ac_site_file1=$prefix/share/config.site
2197 ac_site_file2=$prefix/etc/config.site
2198 else
2199 ac_site_file1=$ac_default_prefix/share/config.site
2200 ac_site_file2=$ac_default_prefix/etc/config.site
2201 fi
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 do
2204 test "x$ac_site_file" = xNONE && continue
2205 if test -r "$ac_site_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208 sed 's/^/| /' "$ac_site_file" >&5
2209 . "$ac_site_file"
2210 fi
2211 done
2212
2213 if test -r "$cache_file"; then
2214 # Some versions of bash will fail to source /dev/null (special
2215 # files actually), so we avoid doing that.
2216 if test -f "$cache_file"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218 $as_echo "$as_me: loading cache $cache_file" >&6;}
2219 case $cache_file in
2220 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221 *) . "./$cache_file";;
2222 esac
2223 fi
2224 else
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226 $as_echo "$as_me: creating cache $cache_file" >&6;}
2227 >$cache_file
2228 fi
2229
2230 # Check that the precious variables saved in the cache have kept the same
2231 # value.
2232 ac_cache_corrupted=false
2233 for ac_var in $ac_precious_vars; do
2234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235 eval ac_new_set=\$ac_env_${ac_var}_set
2236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237 eval ac_new_val=\$ac_env_${ac_var}_value
2238 case $ac_old_set,$ac_new_set in
2239 set,)
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242 ac_cache_corrupted=: ;;
2243 ,set)
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2247 ,);;
2248 *)
2249 if test "x$ac_old_val" != "x$ac_new_val"; then
2250 # differences in whitespace do not lead to failure.
2251 ac_old_val_w=`echo x $ac_old_val`
2252 ac_new_val_w=`echo x $ac_new_val`
2253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256 ac_cache_corrupted=:
2257 else
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260 eval $ac_var=\$ac_old_val
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2266 fi;;
2267 esac
2268 # Pass precious variables to config.status.
2269 if test "$ac_new_set" = set; then
2270 case $ac_new_val in
2271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 *) ac_arg=$ac_var=$ac_new_val ;;
2273 esac
2274 case " $ac_configure_args " in
2275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277 esac
2278 fi
2279 done
2280 if $ac_cache_corrupted; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 fi
2287 ## -------------------- ##
2288 ## Main body of script. ##
2289 ## -------------------- ##
2290
2291 ac_ext=c
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298
2299
2300
2301
2302 ac_aux_dir=
2303 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2304 for ac_t in install-sh install.sh shtool; do
2305 if test -f "$ac_dir/$ac_t"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/$ac_t -c"
2308 break 2
2309 fi
2310 done
2311 done
2312 if test -z "$ac_aux_dir"; then
2313 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2314 fi
2315
2316 # These three variables are undocumented and unsupported,
2317 # and are intended to be withdrawn in a future Autoconf release.
2318 # They can cause serious problems if a builder's source tree is in a directory
2319 # whose full name contains unusual characters.
2320 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2321 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2322 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2323
2324
2325 # Make sure we can run config.sub.
2326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2327 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2328
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2330 $as_echo_n "checking build system type... " >&6; }
2331 if test "${ac_cv_build+set}" = set; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 ac_build_alias=$build_alias
2335 test "x$ac_build_alias" = x &&
2336 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2337 test "x$ac_build_alias" = x &&
2338 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2341
2342 fi
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2344 $as_echo "$ac_cv_build" >&6; }
2345 case $ac_cv_build in
2346 *-*-*) ;;
2347 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2348 esac
2349 build=$ac_cv_build
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_build
2352 shift
2353 build_cpu=$1
2354 build_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 build_os=$*
2359 IFS=$ac_save_IFS
2360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2361
2362
2363 case ${build_alias} in
2364 "") build_noncanonical=${build} ;;
2365 *) build_noncanonical=${build_alias} ;;
2366 esac
2367
2368 case ${host_alias} in
2369 "") host_noncanonical=${build_noncanonical} ;;
2370 *) host_noncanonical=${host_alias} ;;
2371 esac
2372
2373 case ${target_alias} in
2374 "") target_noncanonical=${host_noncanonical} ;;
2375 *) target_noncanonical=${target_alias} ;;
2376 esac
2377
2378
2379 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2380 # have matching libraries, they should use host libraries: Makefile.tpl
2381 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2382 # However, they still use the build modules, because the corresponding
2383 # host modules (e.g. bison) are only built for the host when bootstrap
2384 # finishes. So:
2385 # - build_subdir is where we find build modules, and never changes.
2386 # - build_libsubdir is where we find build libraries, and can be overridden.
2387
2388 # Prefix 'build-' so this never conflicts with target_subdir.
2389 build_subdir="build-${build_noncanonical}"
2390
2391 # Check whether --with-build-libsubdir was given.
2392 if test "${with_build_libsubdir+set}" = set; then :
2393 withval=$with_build_libsubdir; build_libsubdir="$withval"
2394 else
2395 build_libsubdir="$build_subdir"
2396 fi
2397
2398 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2399 if ( test $srcdir = . && test -d gcc ) \
2400 || test -d $srcdir/../host-${host_noncanonical}; then
2401 host_subdir="host-${host_noncanonical}"
2402 else
2403 host_subdir=.
2404 fi
2405 # No prefix.
2406 target_subdir=${target_noncanonical}
2407
2408
2409 # We need the following definitions because AC_PROG_LIBTOOL relies on them
2410 PACKAGE=libobjc
2411 # Version is pulled out to make it a bit easier to change using sed.
2412 VERSION=2:0:0
2413
2414
2415 # This works around the fact that libtool configuration may change LD
2416 # for this particular configuration, but some shells, instead of
2417 # keeping the changes in LD private, export them just because LD is
2418 # exported.
2419 ORIGINAL_LD_FOR_MULTILIBS=$LD
2420
2421 # -------
2422 # Options
2423 # -------
2424
2425 # We use these options to decide which functions to include.
2426
2427 # Check whether --with-target-subdir was given.
2428 if test "${with_target_subdir+set}" = set; then :
2429 withval=$with_target_subdir;
2430 fi
2431
2432
2433 # Check whether --with-cross-host was given.
2434 if test "${with_cross_host+set}" = set; then :
2435 withval=$with_cross_host;
2436 fi
2437
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2440 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2441 # Check whether --enable-version-specific-runtime-libs was given.
2442 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2443 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2444 yes) version_specific_libs=yes ;;
2445 no) version_specific_libs=no ;;
2446 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2447 esac
2448 else
2449 version_specific_libs=no
2450 fi
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2453 $as_echo "$version_specific_libs" >&6; }
2454
2455 # Check whether --enable-objc-gc was given.
2456 if test "${enable_objc_gc+set}" = set; then :
2457 enableval=$enable_objc_gc; case $enable_objc_gc in
2458 no)
2459 OBJC_BOEHM_GC=''
2460 OBJC_BOEHM_GC_INCLUDES=''
2461 ;;
2462 *)
2463 OBJC_BOEHM_GC=libobjc_gc.la
2464 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
2465 ;;
2466 esac
2467 else
2468 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
2469 fi
2470
2471
2472
2473
2474 # -----------
2475 # Directories
2476 # -----------
2477
2478 # Find the rest of the source tree framework.
2479 # Default to --enable-multilib
2480 # Check whether --enable-multilib was given.
2481 if test "${enable_multilib+set}" = set; then :
2482 enableval=$enable_multilib; case "$enableval" in
2483 yes) multilib=yes ;;
2484 no) multilib=no ;;
2485 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2486 esac
2487 else
2488 multilib=yes
2489 fi
2490
2491
2492 # We may get other options which we leave undocumented:
2493 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2494 # See config-ml.in if you want the gory details.
2495
2496 if test "$srcdir" = "."; then
2497 if test "$with_target_subdir" != "."; then
2498 multi_basedir="$srcdir/$with_multisrctop../.."
2499 else
2500 multi_basedir="$srcdir/$with_multisrctop.."
2501 fi
2502 else
2503 multi_basedir="$srcdir/.."
2504 fi
2505
2506
2507 # Even if the default multilib is not a cross compilation,
2508 # it may be that some of the other multilibs are.
2509 if test $cross_compiling = no && test $multilib = yes \
2510 && test "x${with_multisubdir}" != x ; then
2511 cross_compiling=maybe
2512 fi
2513
2514 ac_config_commands="$ac_config_commands default-1"
2515
2516
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2518 $as_echo_n "checking host system type... " >&6; }
2519 if test "${ac_cv_host+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test "x$host_alias" = x; then
2523 ac_cv_host=$ac_cv_build
2524 else
2525 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2526 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2527 fi
2528
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2531 $as_echo "$ac_cv_host" >&6; }
2532 case $ac_cv_host in
2533 *-*-*) ;;
2534 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2535 esac
2536 host=$ac_cv_host
2537 ac_save_IFS=$IFS; IFS='-'
2538 set x $ac_cv_host
2539 shift
2540 host_cpu=$1
2541 host_vendor=$2
2542 shift; shift
2543 # Remember, the first character of IFS is used to create $*,
2544 # except with old shells:
2545 host_os=$*
2546 IFS=$ac_save_IFS
2547 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2548
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2551 $as_echo_n "checking target system type... " >&6; }
2552 if test "${ac_cv_target+set}" = set; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test "x$target_alias" = x; then
2556 ac_cv_target=$ac_cv_host
2557 else
2558 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2559 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2560 fi
2561
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2564 $as_echo "$ac_cv_target" >&6; }
2565 case $ac_cv_target in
2566 *-*-*) ;;
2567 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2568 esac
2569 target=$ac_cv_target
2570 ac_save_IFS=$IFS; IFS='-'
2571 set x $ac_cv_target
2572 shift
2573 target_cpu=$1
2574 target_vendor=$2
2575 shift; shift
2576 # Remember, the first character of IFS is used to create $*,
2577 # except with old shells:
2578 target_os=$*
2579 IFS=$ac_save_IFS
2580 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2581
2582
2583 # The aliases save the names the user supplied, while $host etc.
2584 # will get canonicalized.
2585 test -n "$target_alias" &&
2586 test "$program_prefix$program_suffix$program_transform_name" = \
2587 NONENONEs,x,x, &&
2588 program_prefix=${target_alias}-
2589
2590
2591
2592
2593 # Export source directory.
2594 # These need to be absolute paths, yet at the same time need to
2595 # canonicalize only relative paths, because then amd will not unmount
2596 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2597 case $srcdir in
2598 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2599 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2600 esac
2601
2602
2603 # Calculate toolexeclibdir
2604 # Also toolexecdir, though it's only used in toolexeclibdir
2605 case ${version_specific_libs} in
2606 yes)
2607 # Need the gcc compiler version to know where to install libraries
2608 # and header files if --enable-version-specific-runtime-libs option
2609 # is selected.
2610 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2611 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2612 ;;
2613 no)
2614 if test -n "$with_cross_host" &&
2615 test x"$with_cross_host" != x"no"; then
2616 # Install a library built with a cross compiler in tooldir, not libdir.
2617 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2618 toolexeclibdir='$(toolexecdir)/lib'
2619 else
2620 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2621 toolexeclibdir='$(libdir)'
2622 fi
2623 multi_os_directory=`$CC -print-multi-os-directory`
2624 case $multi_os_directory in
2625 .) ;; # Avoid trailing /.
2626 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2627 esac
2628 ;;
2629 esac
2630
2631
2632
2633 # Figure out if we want to name the include directory and the
2634 # library name changes differently.
2635 includedirname=include
2636 libsuffix=
2637 case "${host}" in
2638 *-darwin*)
2639 # Darwin is the only target so far that needs a different include directory.
2640 includedirname=include-gnu-runtime
2641 libsuffix=-gnu
2642 ;;
2643 esac
2644
2645
2646
2647 ac_config_headers="$ac_config_headers config.h"
2648
2649
2650 # --------
2651 # Programs
2652 # --------
2653
2654
2655
2656 # We must force CC to /not/ be a precious variable; otherwise
2657 # the wrong, non-multilib-adjusted value will be used in multilibs.
2658 # As a side effect, we have to subst CFLAGS ourselves.
2659
2660
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2697 $as_echo "$CC" >&6; }
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 fi
2705 if test -z "$ac_cv_prog_CC"; then
2706 ac_ct_CC=$CC
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708 set dummy gcc; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CC="gcc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735 if test -n "$ac_ct_CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737 $as_echo "$ac_ct_CC" >&6; }
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2751 esac
2752 CC=$ac_ct_CC
2753 fi
2754 else
2755 CC="$ac_cv_prog_CC"
2756 fi
2757
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2761 set dummy ${ac_tool_prefix}cc; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_CC+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CC="${ac_tool_prefix}cc"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 CC=$ac_cv_prog_CC
2788 if test -n "$CC"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2790 $as_echo "$CC" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797 fi
2798 fi
2799 if test -z "$CC"; then
2800 # Extract the first word of "cc", so it can be a program name with args.
2801 set dummy cc; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 ac_prog_rejected=no
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2819 ac_prog_rejected=yes
2820 continue
2821 fi
2822 ac_cv_prog_CC="cc"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 if test $ac_prog_rejected = yes; then
2831 # We found a bogon in the path, so make sure we never use it.
2832 set dummy $ac_cv_prog_CC
2833 shift
2834 if test $# != 0; then
2835 # We chose a different compiler from the bogus one.
2836 # However, it has the same basename, so the bogon will be chosen
2837 # first if we set CC to just the basename; use the full file name.
2838 shift
2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 fi
2841 fi
2842 fi
2843 fi
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847 $as_echo "$CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853
2854 fi
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 for ac_prog in cl.exe
2858 do
2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 test -n "$CC" && break
2897 done
2898 fi
2899 if test -z "$CC"; then
2900 ac_ct_CC=$CC
2901 for ac_prog in cl.exe
2902 do
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_CC="$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931 if test -n "$ac_ct_CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933 $as_echo "$ac_ct_CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 test -n "$ac_ct_CC" && break
2941 done
2942
2943 if test "x$ac_ct_CC" = x; then
2944 CC=""
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952 CC=$ac_ct_CC
2953 fi
2954 fi
2955
2956 fi
2957
2958
2959 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 as_fn_error "no acceptable C compiler found in \$PATH
2962 See \`config.log' for more details." "$LINENO" 5; }
2963
2964 # Provide some information about the compiler.
2965 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2966 set X $ac_compile
2967 ac_compiler=$2
2968 for ac_option in --version -v -V -qversion; do
2969 { { ac_try="$ac_compiler $ac_option >&5"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2977 ac_status=$?
2978 if test -s conftest.err; then
2979 sed '10a\
2980 ... rest of stderr output deleted ...
2981 10q' conftest.err >conftest.er1
2982 cat conftest.er1 >&5
2983 rm -f conftest.er1 conftest.err
2984 fi
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }
2987 done
2988
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h. */
2991
2992 int
2993 main ()
2994 {
2995
2996 ;
2997 return 0;
2998 }
2999 _ACEOF
3000 # FIXME: Cleanup?
3001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3002 (eval $ac_link) 2>&5
3003 ac_status=$?
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }; then :
3006 gcc_no_link=no
3007 else
3008 gcc_no_link=yes
3009 fi
3010 if test x$gcc_no_link = xyes; then
3011 # Setting cross_compile will disable run tests; it will
3012 # also disable AC_CHECK_FILE but that's generally
3013 # correct if we can't link.
3014 cross_compiling=yes
3015 EXEEXT=
3016 else
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3019
3020 int
3021 main ()
3022 {
3023
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 ac_clean_files_save=$ac_clean_files
3029 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3030 # Try to create an executable without -o first, disregard a.out.
3031 # It will help us diagnose broken compilers, and finding out an intuition
3032 # of exeext.
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3034 $as_echo_n "checking for C compiler default output file name... " >&6; }
3035 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036
3037 # The possible output files:
3038 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3039
3040 ac_rmfiles=
3041 for ac_file in $ac_files
3042 do
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3045 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3046 esac
3047 done
3048 rm -f $ac_rmfiles
3049
3050 if { { ac_try="$ac_link_default"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_link_default") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; then :
3061 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3062 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3063 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3064 # so that the user can short-circuit this test for compilers unknown to
3065 # Autoconf.
3066 for ac_file in $ac_files ''
3067 do
3068 test -f "$ac_file" || continue
3069 case $ac_file in
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3071 ;;
3072 [ab].out )
3073 # We found the default executable, but exeext='' is most
3074 # certainly right.
3075 break;;
3076 *.* )
3077 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3078 then :; else
3079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 fi
3081 # We set ac_cv_exeext here because the later test for it is not
3082 # safe: cross compilers may not add the suffix if given an `-o'
3083 # argument, so we may need to know it at that point already.
3084 # Even if this section looks crufty: it has the advantage of
3085 # actually working.
3086 break;;
3087 * )
3088 break;;
3089 esac
3090 done
3091 test "$ac_cv_exeext" = no && ac_cv_exeext=
3092
3093 else
3094 ac_file=''
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3097 $as_echo "$ac_file" >&6; }
3098 if test -z "$ac_file"; then :
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 { as_fn_set_status 77
3105 as_fn_error "C compiler cannot create executables
3106 See \`config.log' for more details." "$LINENO" 5; }; }
3107 fi
3108 ac_exeext=$ac_cv_exeext
3109
3110 # Check that the compiler produces executables we can run. If not, either
3111 # the compiler is broken, or we cross compile.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3113 $as_echo_n "checking whether the C compiler works... " >&6; }
3114 # If not cross compiling, check that we can run a simple program.
3115 if test "$cross_compiling" != yes; then
3116 if { ac_try='./$ac_file'
3117 { { case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_try") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; }; then
3127 cross_compiling=no
3128 else
3129 if test "$cross_compiling" = maybe; then
3130 cross_compiling=yes
3131 else
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error "cannot run C compiled programs.
3135 If you meant to cross compile, use \`--host'.
3136 See \`config.log' for more details." "$LINENO" 5; }
3137 fi
3138 fi
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 $as_echo "yes" >&6; }
3142
3143 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3144 ac_clean_files=$ac_clean_files_save
3145 # Check that the compiler produces executables we can run. If not, either
3146 # the compiler is broken, or we cross compile.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3148 $as_echo_n "checking whether we are cross compiling... " >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3150 $as_echo "$cross_compiling" >&6; }
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3153 $as_echo_n "checking for suffix of executables... " >&6; }
3154 if { { ac_try="$ac_link"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3166 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3167 # work properly (i.e., refer to `conftest.exe'), while it won't with
3168 # `rm'.
3169 for ac_file in conftest.exe conftest conftest.*; do
3170 test -f "$ac_file" || continue
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 break;;
3175 * ) break;;
3176 esac
3177 done
3178 else
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error "cannot compute suffix of executables: cannot compile and link
3182 See \`config.log' for more details." "$LINENO" 5; }
3183 fi
3184 rm -f conftest$ac_cv_exeext
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3186 $as_echo "$ac_cv_exeext" >&6; }
3187
3188 rm -f conftest.$ac_ext
3189 EXEEXT=$ac_cv_exeext
3190 ac_exeext=$EXEEXT
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193 $as_echo_n "checking for suffix of object files... " >&6; }
3194 if test "${ac_cv_objext+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3199
3200 int
3201 main ()
3202 {
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.o conftest.obj
3209 if { { ac_try="$ac_compile"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compile") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 for ac_file in conftest.o conftest.obj conftest.*; do
3221 test -f "$ac_file" || continue;
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225 break;;
3226 esac
3227 done
3228 else
3229 $as_echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot compute suffix of object files: cannot compile
3235 See \`config.log' for more details." "$LINENO" 5; }
3236 fi
3237 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240 $as_echo "$ac_cv_objext" >&6; }
3241 OBJEXT=$ac_cv_objext
3242 ac_objext=$OBJEXT
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3245 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250
3251 int
3252 main ()
3253 {
3254 #ifndef __GNUC__
3255 choke me
3256 #endif
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_compiler_gnu=yes
3264 else
3265 ac_compiler_gnu=no
3266 fi
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273 if test $ac_compiler_gnu = yes; then
3274 GCC=yes
3275 else
3276 GCC=
3277 fi
3278 ac_test_CFLAGS=${CFLAGS+set}
3279 ac_save_CFLAGS=$CFLAGS
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3282 if test "${ac_cv_prog_cc_g+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 ac_save_c_werror_flag=$ac_c_werror_flag
3286 ac_c_werror_flag=yes
3287 ac_cv_prog_cc_g=no
3288 CFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3291
3292 int
3293 main ()
3294 {
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_g=yes
3302 else
3303 CFLAGS=""
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3316
3317 else
3318 ac_c_werror_flag=$ac_save_c_werror_flag
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3333 fi
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342 $as_echo "$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3350 fi
3351 else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3356 fi
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 ac_cv_prog_cc_c89=no
3364 ac_save_CC=$CC
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdio.h>
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3375 char **p;
3376 int i;
3377 {
3378 return p[i];
3379 }
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3381 {
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3388 }
3389
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398
3399 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3401 #define FOO(x) 'x'
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3403
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 int argc;
3409 char **argv;
3410 int
3411 main ()
3412 {
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3420 do
3421 CC="$ac_save_CC $ac_arg"
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_c89=$ac_arg
3424 fi
3425 rm -f core conftest.err conftest.$ac_objext
3426 test "x$ac_cv_prog_cc_c89" != "xno" && break
3427 done
3428 rm -f conftest.$ac_ext
3429 CC=$ac_save_CC
3430
3431 fi
3432 # AC_CACHE_VAL
3433 case "x$ac_cv_prog_cc_c89" in
3434 x)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3436 $as_echo "none needed" >&6; } ;;
3437 xno)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3439 $as_echo "unsupported" >&6; } ;;
3440 *)
3441 CC="$CC $ac_cv_prog_cc_c89"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3443 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3444 esac
3445 if test "x$ac_cv_prog_cc_c89" != xno; then :
3446
3447 fi
3448
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
3455
3456
3457 # extra LD Flags which are required for targets
3458 case "${host}" in
3459 *-darwin*)
3460 # Darwin needs -single_module when linking libobjc
3461 extra_ldflags_libobjc=-Wl,-single_module
3462 ;;
3463 esac
3464
3465
3466
3467
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}as; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_AS+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$AS"; then
3477 ac_cv_prog_AS="$AS" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_AS="${ac_tool_prefix}as"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 AS=$ac_cv_prog_AS
3497 if test -n "$AS"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3499 $as_echo "$AS" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505
3506 fi
3507 if test -z "$ac_cv_prog_AS"; then
3508 ac_ct_AS=$AS
3509 # Extract the first word of "as", so it can be a program name with args.
3510 set dummy as; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$ac_ct_AS"; then
3517 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_ac_ct_AS="as"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3537 if test -n "$ac_ct_AS"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3539 $as_echo "$ac_ct_AS" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545 if test "x$ac_ct_AS" = x; then
3546 AS=""
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 AS=$ac_ct_AS
3555 fi
3556 else
3557 AS="$ac_cv_prog_AS"
3558 fi
3559
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}ar; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_AR+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$AR"; then
3569 ac_cv_prog_AR="$AR" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_AR="${ac_tool_prefix}ar"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 AR=$ac_cv_prog_AR
3589 if test -n "$AR"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3591 $as_echo "$AR" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598 fi
3599 if test -z "$ac_cv_prog_AR"; then
3600 ac_ct_AR=$AR
3601 # Extract the first word of "ar", so it can be a program name with args.
3602 set dummy ar; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$ac_ct_AR"; then
3609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_ac_ct_AR="ar"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3629 if test -n "$ac_ct_AR"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3631 $as_echo "$ac_ct_AR" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637 if test "x$ac_ct_AR" = x; then
3638 AR=""
3639 else
3640 case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646 AR=$ac_ct_AR
3647 fi
3648 else
3649 AR="$ac_cv_prog_AR"
3650 fi
3651
3652 if test -n "$ac_tool_prefix"; then
3653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 if test -n "$RANLIB"; then
3661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 RANLIB=$ac_cv_prog_RANLIB
3681 if test -n "$RANLIB"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3683 $as_echo "$RANLIB" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$ac_cv_prog_RANLIB"; then
3692 ac_ct_RANLIB=$RANLIB
3693 # Extract the first word of "ranlib", so it can be a program name with args.
3694 set dummy ranlib; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 if test -n "$ac_ct_RANLIB"; then
3701 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_ac_ct_RANLIB="ranlib"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714 done
3715 done
3716 IFS=$as_save_IFS
3717
3718 fi
3719 fi
3720 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3721 if test -n "$ac_ct_RANLIB"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3723 $as_echo "$ac_ct_RANLIB" >&6; }
3724 else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729 if test "x$ac_ct_RANLIB" = x; then
3730 RANLIB=":"
3731 else
3732 case $cross_compiling:$ac_tool_warned in
3733 yes:)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736 ac_tool_warned=yes ;;
3737 esac
3738 RANLIB=$ac_ct_RANLIB
3739 fi
3740 else
3741 RANLIB="$ac_cv_prog_RANLIB"
3742 fi
3743
3744 # Find a good install program. We prefer a C program (faster),
3745 # so one script is as good as another. But avoid the broken or
3746 # incompatible versions:
3747 # SysV /etc/install, /usr/sbin/install
3748 # SunOS /usr/etc/install
3749 # IRIX /sbin/install
3750 # AIX /bin/install
3751 # AmigaOS /C/install, which installs bootblocks on floppy discs
3752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755 # OS/2's system install, which has a completely different semantic
3756 # ./install, which can be erroneously created by make from ./install.sh.
3757 # Reject install programs that cannot install multiple files.
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3759 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3760 if test -z "$INSTALL"; then
3761 if test "${ac_cv_path_install+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 # Account for people who put trailing slashes in PATH elements.
3770 case $as_dir/ in #((
3771 ./ | .// | /[cC]/* | \
3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3774 /usr/ucb/* ) ;;
3775 *)
3776 # OSF1 and SCO ODT 3.0 have their own names for install.
3777 # Don't use installbsd from OSF since it installs stuff as root
3778 # by default.
3779 for ac_prog in ginstall scoinst install; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3782 if test $ac_prog = install &&
3783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784 # AIX install. It has an incompatible calling convention.
3785 :
3786 elif test $ac_prog = install &&
3787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # program-specific install script used by HP pwplus--don't use.
3789 :
3790 else
3791 rm -rf conftest.one conftest.two conftest.dir
3792 echo one > conftest.one
3793 echo two > conftest.two
3794 mkdir conftest.dir
3795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796 test -s conftest.one && test -s conftest.two &&
3797 test -s conftest.dir/conftest.one &&
3798 test -s conftest.dir/conftest.two
3799 then
3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801 break 3
3802 fi
3803 fi
3804 fi
3805 done
3806 done
3807 ;;
3808 esac
3809
3810 done
3811 IFS=$as_save_IFS
3812
3813 rm -rf conftest.one conftest.two conftest.dir
3814
3815 fi
3816 if test "${ac_cv_path_install+set}" = set; then
3817 INSTALL=$ac_cv_path_install
3818 else
3819 # As a last resort, use the slow shell script. Don't cache a
3820 # value for INSTALL within a source directory, because that will
3821 # break other packages using the cache if that directory is
3822 # removed, or if the value is a relative name.
3823 INSTALL=$ac_install_sh
3824 fi
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3827 $as_echo "$INSTALL" >&6; }
3828
3829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830 # It thinks the first close brace ends the variable substitution.
3831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3832
3833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3834
3835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836
3837
3838
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3840 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3841 # Check whether --enable-maintainer-mode was given.
3842 if test "${enable_maintainer_mode+set}" = set; then :
3843 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3844 else
3845 USE_MAINTAINER_MODE=no
3846 fi
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3849 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3850 if test $USE_MAINTAINER_MODE = yes; then
3851 MAINTAINER_MODE_TRUE=
3852 MAINTAINER_MODE_FALSE='#'
3853 else
3854 MAINTAINER_MODE_TRUE='#'
3855 MAINTAINER_MODE_FALSE=
3856 fi
3857
3858 MAINT=$MAINTAINER_MODE_TRUE
3859
3860
3861
3862 # Enable Win32 DLL on MS Windows - FIXME
3863 enable_win32_dll=yes
3864
3865 case $host in
3866 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3869 set dummy ${ac_tool_prefix}as; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if test "${ac_cv_prog_AS+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$AS"; then
3876 ac_cv_prog_AS="$AS" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_AS="${ac_tool_prefix}as"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889 done
3890 done
3891 IFS=$as_save_IFS
3892
3893 fi
3894 fi
3895 AS=$ac_cv_prog_AS
3896 if test -n "$AS"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3898 $as_echo "$AS" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 fi
3903
3904
3905 fi
3906 if test -z "$ac_cv_prog_AS"; then
3907 ac_ct_AS=$AS
3908 # Extract the first word of "as", so it can be a program name with args.
3909 set dummy as; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -n "$ac_ct_AS"; then
3916 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 ac_cv_prog_ac_ct_AS="as"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3936 if test -n "$ac_ct_AS"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3938 $as_echo "$ac_ct_AS" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944 if test "x$ac_ct_AS" = x; then
3945 AS="false"
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3952 esac
3953 AS=$ac_ct_AS
3954 fi
3955 else
3956 AS="$ac_cv_prog_AS"
3957 fi
3958
3959 if test -n "$ac_tool_prefix"; then
3960 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3961 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$DLLTOOL"; then
3968 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981 done
3982 done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 DLLTOOL=$ac_cv_prog_DLLTOOL
3988 if test -n "$DLLTOOL"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3990 $as_echo "$DLLTOOL" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996
3997 fi
3998 if test -z "$ac_cv_prog_DLLTOOL"; then
3999 ac_ct_DLLTOOL=$DLLTOOL
4000 # Extract the first word of "dlltool", so it can be a program name with args.
4001 set dummy dlltool; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -n "$ac_ct_DLLTOOL"; then
4008 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4017 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021 done
4022 done
4023 IFS=$as_save_IFS
4024
4025 fi
4026 fi
4027 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4028 if test -n "$ac_ct_DLLTOOL"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4030 $as_echo "$ac_ct_DLLTOOL" >&6; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4034 fi
4035
4036 if test "x$ac_ct_DLLTOOL" = x; then
4037 DLLTOOL="false"
4038 else
4039 case $cross_compiling:$ac_tool_warned in
4040 yes:)
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043 ac_tool_warned=yes ;;
4044 esac
4045 DLLTOOL=$ac_ct_DLLTOOL
4046 fi
4047 else
4048 DLLTOOL="$ac_cv_prog_DLLTOOL"
4049 fi
4050
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if test -n "$OBJDUMP"; then
4060 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073 done
4074 done
4075 IFS=$as_save_IFS
4076
4077 fi
4078 fi
4079 OBJDUMP=$ac_cv_prog_OBJDUMP
4080 if test -n "$OBJDUMP"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4082 $as_echo "$OBJDUMP" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086 fi
4087
4088
4089 fi
4090 if test -z "$ac_cv_prog_OBJDUMP"; then
4091 ac_ct_OBJDUMP=$OBJDUMP
4092 # Extract the first word of "objdump", so it can be a program name with args.
4093 set dummy objdump; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 if test -n "$ac_ct_OBJDUMP"; then
4100 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113 done
4114 done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4120 if test -n "$ac_ct_OBJDUMP"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4122 $as_echo "$ac_ct_OBJDUMP" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 fi
4127
4128 if test "x$ac_ct_OBJDUMP" = x; then
4129 OBJDUMP="false"
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4136 esac
4137 OBJDUMP=$ac_ct_OBJDUMP
4138 fi
4139 else
4140 OBJDUMP="$ac_cv_prog_OBJDUMP"
4141 fi
4142
4143 ;;
4144 esac
4145
4146 test -z "$AS" && AS=as
4147
4148
4149
4150
4151
4152 test -z "$DLLTOOL" && DLLTOOL=dlltool
4153
4154
4155
4156
4157
4158 test -z "$OBJDUMP" && OBJDUMP=objdump
4159
4160
4161
4162
4163
4164
4165
4166
4167 case `pwd` in
4168 *\ * | *\ *)
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4170 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4171 esac
4172
4173
4174
4175 macro_version='2.2.6'
4176 macro_revision='1.3012'
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190 ltmain="$ac_aux_dir/ltmain.sh"
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4193 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4194 if test "${ac_cv_path_SED+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4198 for ac_i in 1 2 3 4 5 6 7; do
4199 ac_script="$ac_script$as_nl$ac_script"
4200 done
4201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4202 { ac_script=; unset ac_script;}
4203 if test -z "$SED"; then
4204 ac_path_SED_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in sed gsed; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4214 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4215 # Check for GNU ac_path_SED and select it if it is found.
4216 # Check for GNU $ac_path_SED
4217 case `"$ac_path_SED" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4220 *)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo '' >> "conftest.nl"
4229 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 as_fn_arith $ac_count + 1 && ac_count=$as_val
4232 if test $ac_count -gt ${ac_path_SED_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_SED="$ac_path_SED"
4235 ac_path_SED_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4242
4243 $ac_path_SED_found && break 3
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_SED"; then
4249 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4250 fi
4251 else
4252 ac_cv_path_SED=$SED
4253 fi
4254
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4257 $as_echo "$ac_cv_path_SED" >&6; }
4258 SED="$ac_cv_path_SED"
4259 rm -f conftest.sed
4260
4261 test -z "$SED" && SED=sed
4262 Xsed="$SED -e 1s/^X//"
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4275 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4276 if test "${ac_cv_path_GREP+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -z "$GREP"; then
4280 ac_path_GREP_found=false
4281 # Loop through the user's path and test for each of PROGNAME-LIST
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_prog in grep ggrep; do
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4290 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4291 # Check for GNU ac_path_GREP and select it if it is found.
4292 # Check for GNU $ac_path_GREP
4293 case `"$ac_path_GREP" --version 2>&1` in
4294 *GNU*)
4295 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4296 *)
4297 ac_count=0
4298 $as_echo_n 0123456789 >"conftest.in"
4299 while :
4300 do
4301 cat "conftest.in" "conftest.in" >"conftest.tmp"
4302 mv "conftest.tmp" "conftest.in"
4303 cp "conftest.in" "conftest.nl"
4304 $as_echo 'GREP' >> "conftest.nl"
4305 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4307 as_fn_arith $ac_count + 1 && ac_count=$as_val
4308 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4309 # Best one so far, save it but keep looking for a better one
4310 ac_cv_path_GREP="$ac_path_GREP"
4311 ac_path_GREP_max=$ac_count
4312 fi
4313 # 10*(2^10) chars as input seems more than enough
4314 test $ac_count -gt 10 && break
4315 done
4316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317 esac
4318
4319 $ac_path_GREP_found && break 3
4320 done
4321 done
4322 done
4323 IFS=$as_save_IFS
4324 if test -z "$ac_cv_path_GREP"; then
4325 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4326 fi
4327 else
4328 ac_cv_path_GREP=$GREP
4329 fi
4330
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4333 $as_echo "$ac_cv_path_GREP" >&6; }
4334 GREP="$ac_cv_path_GREP"
4335
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4338 $as_echo_n "checking for egrep... " >&6; }
4339 if test "${ac_cv_path_EGREP+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4343 then ac_cv_path_EGREP="$GREP -E"
4344 else
4345 if test -z "$EGREP"; then
4346 ac_path_EGREP_found=false
4347 # Loop through the user's path and test for each of PROGNAME-LIST
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_prog in egrep; do
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4356 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4357 # Check for GNU ac_path_EGREP and select it if it is found.
4358 # Check for GNU $ac_path_EGREP
4359 case `"$ac_path_EGREP" --version 2>&1` in
4360 *GNU*)
4361 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4362 *)
4363 ac_count=0
4364 $as_echo_n 0123456789 >"conftest.in"
4365 while :
4366 do
4367 cat "conftest.in" "conftest.in" >"conftest.tmp"
4368 mv "conftest.tmp" "conftest.in"
4369 cp "conftest.in" "conftest.nl"
4370 $as_echo 'EGREP' >> "conftest.nl"
4371 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373 as_fn_arith $ac_count + 1 && ac_count=$as_val
4374 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4375 # Best one so far, save it but keep looking for a better one
4376 ac_cv_path_EGREP="$ac_path_EGREP"
4377 ac_path_EGREP_max=$ac_count
4378 fi
4379 # 10*(2^10) chars as input seems more than enough
4380 test $ac_count -gt 10 && break
4381 done
4382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383 esac
4384
4385 $ac_path_EGREP_found && break 3
4386 done
4387 done
4388 done
4389 IFS=$as_save_IFS
4390 if test -z "$ac_cv_path_EGREP"; then
4391 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392 fi
4393 else
4394 ac_cv_path_EGREP=$EGREP
4395 fi
4396
4397 fi
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP="$ac_cv_path_EGREP"
4402
4403
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4405 $as_echo_n "checking for fgrep... " >&6; }
4406 if test "${ac_cv_path_FGREP+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4410 then ac_cv_path_FGREP="$GREP -F"
4411 else
4412 if test -z "$FGREP"; then
4413 ac_path_FGREP_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_prog in fgrep; do
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4423 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4424 # Check for GNU ac_path_FGREP and select it if it is found.
4425 # Check for GNU $ac_path_FGREP
4426 case `"$ac_path_FGREP" --version 2>&1` in
4427 *GNU*)
4428 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4429 *)
4430 ac_count=0
4431 $as_echo_n 0123456789 >"conftest.in"
4432 while :
4433 do
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo 'FGREP' >> "conftest.nl"
4438 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 as_fn_arith $ac_count + 1 && ac_count=$as_val
4441 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_FGREP="$ac_path_FGREP"
4444 ac_path_FGREP_max=$ac_count
4445 fi
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4448 done
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 esac
4451
4452 $ac_path_FGREP_found && break 3
4453 done
4454 done
4455 done
4456 IFS=$as_save_IFS
4457 if test -z "$ac_cv_path_FGREP"; then
4458 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459 fi
4460 else
4461 ac_cv_path_FGREP=$FGREP
4462 fi
4463
4464 fi
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4467 $as_echo "$ac_cv_path_FGREP" >&6; }
4468 FGREP="$ac_cv_path_FGREP"
4469
4470
4471 test -z "$GREP" && GREP=grep
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491 # Check whether --with-gnu-ld was given.
4492 if test "${with_gnu_ld+set}" = set; then :
4493 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4494 else
4495 with_gnu_ld=no
4496 fi
4497
4498 ac_prog=ld
4499 if test "$GCC" = yes; then
4500 # Check if gcc -print-prog-name=ld gives a path.
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4502 $as_echo_n "checking for ld used by $CC... " >&6; }
4503 case $host in
4504 *-*-mingw*)
4505 # gcc leaves a trailing carriage return which upsets mingw
4506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4507 *)
4508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4509 esac
4510 case $ac_prog in
4511 # Accept absolute paths.
4512 [\\/]* | ?:[\\/]*)
4513 re_direlt='/[^/][^/]*/\.\./'
4514 # Canonicalize the pathname of ld
4515 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4516 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4517 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4518 done
4519 test -z "$LD" && LD="$ac_prog"
4520 ;;
4521 "")
4522 # If it fails, then pretend we aren't using GCC.
4523 ac_prog=ld
4524 ;;
4525 *)
4526 # If it is relative, then search for the first ld in PATH.
4527 with_gnu_ld=unknown
4528 ;;
4529 esac
4530 elif test "$with_gnu_ld" = yes; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4532 $as_echo_n "checking for GNU ld... " >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4535 $as_echo_n "checking for non-GNU ld... " >&6; }
4536 fi
4537 if test "${lt_cv_path_LD+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -z "$LD"; then
4541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4542 for ac_dir in $PATH; do
4543 IFS="$lt_save_ifs"
4544 test -z "$ac_dir" && ac_dir=.
4545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4546 lt_cv_path_LD="$ac_dir/$ac_prog"
4547 # Check to see if the program is GNU ld. I'd rather use --version,
4548 # but apparently some variants of GNU ld only accept -v.
4549 # Break only if it was the GNU/non-GNU ld that we prefer.
4550 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4551 *GNU* | *'with BFD'*)
4552 test "$with_gnu_ld" != no && break
4553 ;;
4554 *)
4555 test "$with_gnu_ld" != yes && break
4556 ;;
4557 esac
4558 fi
4559 done
4560 IFS="$lt_save_ifs"
4561 else
4562 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4563 fi
4564 fi
4565
4566 LD="$lt_cv_path_LD"
4567 if test -n "$LD"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4569 $as_echo "$LD" >&6; }
4570 else
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4576 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4577 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4581 case `$LD -v 2>&1 </dev/null` in
4582 *GNU* | *'with BFD'*)
4583 lt_cv_prog_gnu_ld=yes
4584 ;;
4585 *)
4586 lt_cv_prog_gnu_ld=no
4587 ;;
4588 esac
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4591 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4592 with_gnu_ld=$lt_cv_prog_gnu_ld
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4603 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4604 if test "${lt_cv_path_NM+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$NM"; then
4608 # Let the user override the test.
4609 lt_cv_path_NM="$NM"
4610 else
4611 lt_nm_to_check="${ac_tool_prefix}nm"
4612 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4613 lt_nm_to_check="$lt_nm_to_check nm"
4614 fi
4615 for lt_tmp_nm in $lt_nm_to_check; do
4616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4617 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4618 IFS="$lt_save_ifs"
4619 test -z "$ac_dir" && ac_dir=.
4620 tmp_nm="$ac_dir/$lt_tmp_nm"
4621 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4622 # Check to see if the nm accepts a BSD-compat flag.
4623 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4624 # nm: unknown option "B" ignored
4625 # Tru64's nm complains that /dev/null is an invalid object file
4626 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4627 */dev/null* | *'Invalid file or object type'*)
4628 lt_cv_path_NM="$tmp_nm -B"
4629 break
4630 ;;
4631 *)
4632 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4633 */dev/null*)
4634 lt_cv_path_NM="$tmp_nm -p"
4635 break
4636 ;;
4637 *)
4638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4639 continue # so that we can try to find one that supports BSD flags
4640 ;;
4641 esac
4642 ;;
4643 esac
4644 fi
4645 done
4646 IFS="$lt_save_ifs"
4647 done
4648 : ${lt_cv_path_NM=no}
4649 fi
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4652 $as_echo "$lt_cv_path_NM" >&6; }
4653 if test "$lt_cv_path_NM" != "no"; then
4654 NM="$lt_cv_path_NM"
4655 else
4656 # Didn't find any BSD compatible name lister, look for dumpbin.
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4659 do
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$DUMPBIN"; then
4668 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 DUMPBIN=$ac_cv_prog_DUMPBIN
4688 if test -n "$DUMPBIN"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4690 $as_echo "$DUMPBIN" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4696
4697 test -n "$DUMPBIN" && break
4698 done
4699 fi
4700 if test -z "$DUMPBIN"; then
4701 ac_ct_DUMPBIN=$DUMPBIN
4702 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4703 do
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$ac_ct_DUMPBIN"; then
4712 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4732 if test -n "$ac_ct_DUMPBIN"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4734 $as_echo "$ac_ct_DUMPBIN" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4738 fi
4739
4740
4741 test -n "$ac_ct_DUMPBIN" && break
4742 done
4743
4744 if test "x$ac_ct_DUMPBIN" = x; then
4745 DUMPBIN=":"
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 DUMPBIN=$ac_ct_DUMPBIN
4754 fi
4755 fi
4756
4757
4758 if test "$DUMPBIN" != ":"; then
4759 NM="$DUMPBIN"
4760 fi
4761 fi
4762 test -z "$NM" && NM=nm
4763
4764
4765
4766
4767
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4771 if test "${lt_cv_nm_interface+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 lt_cv_nm_interface="BSD nm"
4775 echo "int some_variable = 0;" > conftest.$ac_ext
4776 (eval echo "\"\$as_me:4776: $ac_compile\"" >&5)
4777 (eval "$ac_compile" 2>conftest.err)
4778 cat conftest.err >&5
4779 (eval echo "\"\$as_me:4779: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4781 cat conftest.err >&5
4782 (eval echo "\"\$as_me:4782: output\"" >&5)
4783 cat conftest.out >&5
4784 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4785 lt_cv_nm_interface="MS dumpbin"
4786 fi
4787 rm -f conftest*
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4790 $as_echo "$lt_cv_nm_interface" >&6; }
4791
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4793 $as_echo_n "checking whether ln -s works... " >&6; }
4794 LN_S=$as_ln_s
4795 if test "$LN_S" = "ln -s"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4797 $as_echo "yes" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4800 $as_echo "no, using $LN_S" >&6; }
4801 fi
4802
4803 # find the maximum length of command line arguments
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4806 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 i=0
4810 teststring="ABCD"
4811
4812 case $build_os in
4813 msdosdjgpp*)
4814 # On DJGPP, this test can blow up pretty badly due to problems in libc
4815 # (any single argument exceeding 2000 bytes causes a buffer overrun
4816 # during glob expansion). Even if it were fixed, the result of this
4817 # check would be larger than it should be.
4818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4819 ;;
4820
4821 gnu*)
4822 # Under GNU Hurd, this test is not required because there is
4823 # no limit to the length of command line arguments.
4824 # Libtool will interpret -1 as no limit whatsoever
4825 lt_cv_sys_max_cmd_len=-1;
4826 ;;
4827
4828 cygwin* | mingw* | cegcc*)
4829 # On Win9x/ME, this test blows up -- it succeeds, but takes
4830 # about 5 minutes as the teststring grows exponentially.
4831 # Worse, since 9x/ME are not pre-emptively multitasking,
4832 # you end up with a "frozen" computer, even though with patience
4833 # the test eventually succeeds (with a max line length of 256k).
4834 # Instead, let's just punt: use the minimum linelength reported by
4835 # all of the supported platforms: 8192 (on NT/2K/XP).
4836 lt_cv_sys_max_cmd_len=8192;
4837 ;;
4838
4839 amigaos*)
4840 # On AmigaOS with pdksh, this test takes hours, literally.
4841 # So we just punt and use a minimum line length of 8192.
4842 lt_cv_sys_max_cmd_len=8192;
4843 ;;
4844
4845 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4846 # This has been around since 386BSD, at least. Likely further.
4847 if test -x /sbin/sysctl; then
4848 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4849 elif test -x /usr/sbin/sysctl; then
4850 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4851 else
4852 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4853 fi
4854 # And add a safety zone
4855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4857 ;;
4858
4859 interix*)
4860 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4861 lt_cv_sys_max_cmd_len=196608
4862 ;;
4863
4864 osf*)
4865 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4866 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4867 # nice to cause kernel panics so lets avoid the loop below.
4868 # First set a reasonable default.
4869 lt_cv_sys_max_cmd_len=16384
4870 #
4871 if test -x /sbin/sysconfig; then
4872 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4873 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4874 esac
4875 fi
4876 ;;
4877 sco3.2v5*)
4878 lt_cv_sys_max_cmd_len=102400
4879 ;;
4880 sysv5* | sco5v6* | sysv4.2uw2*)
4881 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4882 if test -n "$kargmax"; then
4883 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4884 else
4885 lt_cv_sys_max_cmd_len=32768
4886 fi
4887 ;;
4888 *)
4889 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4890 if test -n "$lt_cv_sys_max_cmd_len"; then
4891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4893 else
4894 # Make teststring a little bigger before we do anything with it.
4895 # a 1K string should be a reasonable start.
4896 for i in 1 2 3 4 5 6 7 8 ; do
4897 teststring=$teststring$teststring
4898 done
4899 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4900 # If test is not a shell built-in, we'll probably end up computing a
4901 # maximum length that is only half of the actual maximum length, but
4902 # we can't tell.
4903 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4904 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4905 test $i != 17 # 1/2 MB should be enough
4906 do
4907 i=`expr $i + 1`
4908 teststring=$teststring$teststring
4909 done
4910 # Only check the string length outside the loop.
4911 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4912 teststring=
4913 # Add a significant safety factor because C++ compilers can tack on
4914 # massive amounts of additional arguments before passing them to the
4915 # linker. It appears as though 1/2 is a usable value.
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4917 fi
4918 ;;
4919 esac
4920
4921 fi
4922
4923 if test -n $lt_cv_sys_max_cmd_len ; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4925 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4928 $as_echo "none" >&6; }
4929 fi
4930 max_cmd_len=$lt_cv_sys_max_cmd_len
4931
4932
4933
4934
4935
4936
4937 : ${CP="cp -f"}
4938 : ${MV="mv -f"}
4939 : ${RM="rm -f"}
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4942 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4943 # Try some XSI features
4944 xsi_shell=no
4945 ( _lt_dummy="a/b/c"
4946 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4947 = c,a/b,, \
4948 && eval 'test $(( 1 + 1 )) -eq 2 \
4949 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4950 && xsi_shell=yes
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4952 $as_echo "$xsi_shell" >&6; }
4953
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4956 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4957 lt_shell_append=no
4958 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4959 >/dev/null 2>&1 \
4960 && lt_shell_append=yes
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4962 $as_echo "$lt_shell_append" >&6; }
4963
4964
4965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4966 lt_unset=unset
4967 else
4968 lt_unset=false
4969 fi
4970
4971
4972
4973
4974
4975 # test EBCDIC or ASCII
4976 case `echo X|tr X '\101'` in
4977 A) # ASCII based system
4978 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4979 lt_SP2NL='tr \040 \012'
4980 lt_NL2SP='tr \015\012 \040\040'
4981 ;;
4982 *) # EBCDIC based system
4983 lt_SP2NL='tr \100 \n'
4984 lt_NL2SP='tr \r\n \100\100'
4985 ;;
4986 esac
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4997 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4998 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 lt_cv_ld_reload_flag='-r'
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5004 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5005 reload_flag=$lt_cv_ld_reload_flag
5006 case $reload_flag in
5007 "" | " "*) ;;
5008 *) reload_flag=" $reload_flag" ;;
5009 esac
5010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5011 case $host_os in
5012 darwin*)
5013 if test "$GCC" = yes; then
5014 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5015 else
5016 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5017 fi
5018 ;;
5019 esac
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 if test -n "$ac_tool_prefix"; then
5030 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5031 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$OBJDUMP"; then
5038 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 OBJDUMP=$ac_cv_prog_OBJDUMP
5058 if test -n "$OBJDUMP"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5060 $as_echo "$OBJDUMP" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 fi
5068 if test -z "$ac_cv_prog_OBJDUMP"; then
5069 ac_ct_OBJDUMP=$OBJDUMP
5070 # Extract the first word of "objdump", so it can be a program name with args.
5071 set dummy objdump; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$ac_ct_OBJDUMP"; then
5078 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5098 if test -n "$ac_ct_OBJDUMP"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5100 $as_echo "$ac_ct_OBJDUMP" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106 if test "x$ac_ct_OBJDUMP" = x; then
5107 OBJDUMP="false"
5108 else
5109 case $cross_compiling:$ac_tool_warned in
5110 yes:)
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5113 ac_tool_warned=yes ;;
5114 esac
5115 OBJDUMP=$ac_ct_OBJDUMP
5116 fi
5117 else
5118 OBJDUMP="$ac_cv_prog_OBJDUMP"
5119 fi
5120
5121 test -z "$OBJDUMP" && OBJDUMP=objdump
5122
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5129 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5130 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 lt_cv_file_magic_cmd='$MAGIC_CMD'
5134 lt_cv_file_magic_test_file=
5135 lt_cv_deplibs_check_method='unknown'
5136 # Need to set the preceding variable on all platforms that support
5137 # interlibrary dependencies.
5138 # 'none' -- dependencies not supported.
5139 # `unknown' -- same as none, but documents that we really don't know.
5140 # 'pass_all' -- all dependencies passed with no checks.
5141 # 'test_compile' -- check by making test program.
5142 # 'file_magic [[regex]]' -- check by looking for files in library path
5143 # which responds to the $file_magic_cmd with a given extended regex.
5144 # If you have `file' or equivalent on your system and you're not sure
5145 # whether `pass_all' will *always* work, you probably want this one.
5146
5147 case $host_os in
5148 aix[4-9]*)
5149 lt_cv_deplibs_check_method=pass_all
5150 ;;
5151
5152 beos*)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155
5156 bsdi[45]*)
5157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5158 lt_cv_file_magic_cmd='/usr/bin/file -L'
5159 lt_cv_file_magic_test_file=/shlib/libc.so
5160 ;;
5161
5162 cygwin*)
5163 # func_win32_libid is a shell function defined in ltmain.sh
5164 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5165 lt_cv_file_magic_cmd='func_win32_libid'
5166 ;;
5167
5168 mingw* | pw32*)
5169 # Base MSYS/MinGW do not provide the 'file' command needed by
5170 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5171 # unless we find 'file', for example because we are cross-compiling.
5172 if ( file / ) >/dev/null 2>&1; then
5173 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5174 lt_cv_file_magic_cmd='func_win32_libid'
5175 else
5176 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5177 lt_cv_file_magic_cmd='$OBJDUMP -f'
5178 fi
5179 ;;
5180
5181 cegcc)
5182 # use the weaker test based on 'objdump'. See mingw*.
5183 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5184 lt_cv_file_magic_cmd='$OBJDUMP -f'
5185 ;;
5186
5187 darwin* | rhapsody*)
5188 lt_cv_deplibs_check_method=pass_all
5189 ;;
5190
5191 freebsd* | dragonfly*)
5192 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5193 case $host_cpu in
5194 i*86 )
5195 # Not sure whether the presence of OpenBSD here was a mistake.
5196 # Let's accept both of them until this is cleared up.
5197 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5198 lt_cv_file_magic_cmd=/usr/bin/file
5199 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5200 ;;
5201 esac
5202 else
5203 lt_cv_deplibs_check_method=pass_all
5204 fi
5205 ;;
5206
5207 gnu*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 hpux10.20* | hpux11*)
5212 lt_cv_file_magic_cmd=/usr/bin/file
5213 case $host_cpu in
5214 ia64*)
5215 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5216 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5217 ;;
5218 hppa*64*)
5219 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]'
5220 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5221 ;;
5222 *)
5223 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5224 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5225 ;;
5226 esac
5227 ;;
5228
5229 interix[3-9]*)
5230 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5232 ;;
5233
5234 irix5* | irix6* | nonstopux*)
5235 case $LD in
5236 *-32|*"-32 ") libmagic=32-bit;;
5237 *-n32|*"-n32 ") libmagic=N32;;
5238 *-64|*"-64 ") libmagic=64-bit;;
5239 *) libmagic=never-match;;
5240 esac
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
5244 # This must be Linux ELF.
5245 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5246 lt_cv_deplibs_check_method=pass_all
5247 ;;
5248
5249 netbsd*)
5250 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5252 else
5253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5254 fi
5255 ;;
5256
5257 newos6*)
5258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5259 lt_cv_file_magic_cmd=/usr/bin/file
5260 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5261 ;;
5262
5263 *nto* | *qnx*)
5264 lt_cv_deplibs_check_method=pass_all
5265 ;;
5266
5267 openbsd*)
5268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5270 else
5271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5272 fi
5273 ;;
5274
5275 osf3* | osf4* | osf5*)
5276 lt_cv_deplibs_check_method=pass_all
5277 ;;
5278
5279 rdos*)
5280 lt_cv_deplibs_check_method=pass_all
5281 ;;
5282
5283 solaris*)
5284 lt_cv_deplibs_check_method=pass_all
5285 ;;
5286
5287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290
5291 sysv4 | sysv4.3*)
5292 case $host_vendor in
5293 motorola)
5294 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]'
5295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5296 ;;
5297 ncr)
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5300 sequent)
5301 lt_cv_file_magic_cmd='/bin/file'
5302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5303 ;;
5304 sni)
5305 lt_cv_file_magic_cmd='/bin/file'
5306 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5307 lt_cv_file_magic_test_file=/lib/libc.so
5308 ;;
5309 siemens)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312 pc)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315 esac
5316 ;;
5317
5318 tpf*)
5319 lt_cv_deplibs_check_method=pass_all
5320 ;;
5321 esac
5322
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5325 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5326 file_magic_cmd=$lt_cv_file_magic_cmd
5327 deplibs_check_method=$lt_cv_deplibs_check_method
5328 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}ar; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_AR+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -n "$AR"; then
5350 ac_cv_prog_AR="$AR" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_AR="${ac_tool_prefix}ar"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 AR=$ac_cv_prog_AR
5370 if test -n "$AR"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5372 $as_echo "$AR" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 fi
5380 if test -z "$ac_cv_prog_AR"; then
5381 ac_ct_AR=$AR
5382 # Extract the first word of "ar", so it can be a program name with args.
5383 set dummy ar; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 if test -n "$ac_ct_AR"; then
5390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_prog_ac_ct_AR="ar"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403 done
5404 done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5410 if test -n "$ac_ct_AR"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5412 $as_echo "$ac_ct_AR" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418 if test "x$ac_ct_AR" = x; then
5419 AR="false"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427 AR=$ac_ct_AR
5428 fi
5429 else
5430 AR="$ac_cv_prog_AR"
5431 fi
5432
5433 test -z "$AR" && AR=ar
5434 test -z "$AR_FLAGS" && AR_FLAGS=cru
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}strip; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_STRIP+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$STRIP"; then
5455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 STRIP=$ac_cv_prog_STRIP
5475 if test -n "$STRIP"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5477 $as_echo "$STRIP" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 fi
5485 if test -z "$ac_cv_prog_STRIP"; then
5486 ac_ct_STRIP=$STRIP
5487 # Extract the first word of "strip", so it can be a program name with args.
5488 set dummy strip; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$ac_ct_STRIP"; then
5495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_STRIP="strip"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5515 if test -n "$ac_ct_STRIP"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5517 $as_echo "$ac_ct_STRIP" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523 if test "x$ac_ct_STRIP" = x; then
5524 STRIP=":"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532 STRIP=$ac_ct_STRIP
5533 fi
5534 else
5535 STRIP="$ac_cv_prog_STRIP"
5536 fi
5537
5538 test -z "$STRIP" && STRIP=:
5539
5540
5541
5542
5543
5544
5545 if test -n "$ac_tool_prefix"; then
5546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$RANLIB"; then
5554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 RANLIB=$ac_cv_prog_RANLIB
5574 if test -n "$RANLIB"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5576 $as_echo "$RANLIB" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582
5583 fi
5584 if test -z "$ac_cv_prog_RANLIB"; then
5585 ac_ct_RANLIB=$RANLIB
5586 # Extract the first word of "ranlib", so it can be a program name with args.
5587 set dummy ranlib; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$ac_ct_RANLIB"; then
5594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_ac_ct_RANLIB="ranlib"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607 done
5608 done
5609 IFS=$as_save_IFS
5610
5611 fi
5612 fi
5613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5614 if test -n "$ac_ct_RANLIB"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5616 $as_echo "$ac_ct_RANLIB" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 fi
5621
5622 if test "x$ac_ct_RANLIB" = x; then
5623 RANLIB=":"
5624 else
5625 case $cross_compiling:$ac_tool_warned in
5626 yes:)
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629 ac_tool_warned=yes ;;
5630 esac
5631 RANLIB=$ac_ct_RANLIB
5632 fi
5633 else
5634 RANLIB="$ac_cv_prog_RANLIB"
5635 fi
5636
5637 test -z "$RANLIB" && RANLIB=:
5638
5639
5640
5641
5642
5643
5644 # Determine commands to create old-style static archives.
5645 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5646 old_postinstall_cmds='chmod 644 $oldlib'
5647 old_postuninstall_cmds=
5648
5649 if test -n "$RANLIB"; then
5650 case $host_os in
5651 openbsd*)
5652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5653 ;;
5654 *)
5655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5656 ;;
5657 esac
5658 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5659 fi
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 # If no C compiler was specified, use CC.
5695 LTCC=${LTCC-"$CC"}
5696
5697 # If no C compiler flags were specified, use CFLAGS.
5698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5699
5700 # Allow CC to be a program name with arguments.
5701 compiler=$CC
5702
5703
5704 # Check for command to grab the raw symbol name followed by C symbol from nm.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5706 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5707 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710
5711 # These are sane defaults that work on at least a few old systems.
5712 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5713
5714 # Character class describing NM global symbol codes.
5715 symcode='[BCDEGRST]'
5716
5717 # Regexp to match symbols that can be accessed directly from C.
5718 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5719
5720 # Define system-specific variables.
5721 case $host_os in
5722 aix*)
5723 symcode='[BCDT]'
5724 ;;
5725 cygwin* | mingw* | pw32* | cegcc*)
5726 symcode='[ABCDGISTW]'
5727 ;;
5728 hpux*)
5729 if test "$host_cpu" = ia64; then
5730 symcode='[ABCDEGRST]'
5731 fi
5732 ;;
5733 irix* | nonstopux*)
5734 symcode='[BCDEGRST]'
5735 ;;
5736 osf*)
5737 symcode='[BCDEGQRST]'
5738 ;;
5739 solaris*)
5740 symcode='[BDRT]'
5741 ;;
5742 sco3.2v5*)
5743 symcode='[DT]'
5744 ;;
5745 sysv4.2uw2*)
5746 symcode='[DT]'
5747 ;;
5748 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5749 symcode='[ABDT]'
5750 ;;
5751 sysv4)
5752 symcode='[DFNSTU]'
5753 ;;
5754 esac
5755
5756 # If we're using GNU nm, then use its standard symbol codes.
5757 case `$NM -V 2>&1` in
5758 *GNU* | *'with BFD'*)
5759 symcode='[ABCDGIRSTW]' ;;
5760 esac
5761
5762 # Transform an extracted symbol line into a proper C declaration.
5763 # Some systems (esp. on ia64) link data and code symbols differently,
5764 # so use this general approach.
5765 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5766
5767 # Transform an extracted symbol line into symbol name and symbol address
5768 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5769 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'"
5770
5771 # Handle CRLF in mingw tool chain
5772 opt_cr=
5773 case $build_os in
5774 mingw*)
5775 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5776 ;;
5777 esac
5778
5779 # Try without a prefix underscore, then with it.
5780 for ac_symprfx in "" "_"; do
5781
5782 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5783 symxfrm="\\1 $ac_symprfx\\2 \\2"
5784
5785 # Write the raw and C identifiers.
5786 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5787 # Fake it for dumpbin and say T for any non-static function
5788 # and D for any global variable.
5789 # Also find C++ and __fastcall symbols from MSVC++,
5790 # which start with @ or ?.
5791 lt_cv_sys_global_symbol_pipe="$AWK '"\
5792 " {last_section=section; section=\$ 3};"\
5793 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5794 " \$ 0!~/External *\|/{next};"\
5795 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5796 " {if(hide[section]) next};"\
5797 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5798 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5799 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5800 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5801 " ' prfx=^$ac_symprfx"
5802 else
5803 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5804 fi
5805
5806 # Check to see that the pipe works correctly.
5807 pipe_works=no
5808
5809 rm -f conftest*
5810 cat > conftest.$ac_ext <<_LT_EOF
5811 #ifdef __cplusplus
5812 extern "C" {
5813 #endif
5814 char nm_test_var;
5815 void nm_test_func(void);
5816 void nm_test_func(void){}
5817 #ifdef __cplusplus
5818 }
5819 #endif
5820 int main(){nm_test_var='a';nm_test_func();return(0);}
5821 _LT_EOF
5822
5823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5824 (eval $ac_compile) 2>&5
5825 ac_status=$?
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; }; then
5828 # Now try to grab the symbols.
5829 nlist=conftest.nm
5830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5831 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5832 ac_status=$?
5833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834 test $ac_status = 0; } && test -s "$nlist"; then
5835 # Try sorting and uniquifying the output.
5836 if sort "$nlist" | uniq > "$nlist"T; then
5837 mv -f "$nlist"T "$nlist"
5838 else
5839 rm -f "$nlist"T
5840 fi
5841
5842 # Make sure that we snagged all the symbols we need.
5843 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5844 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5845 cat <<_LT_EOF > conftest.$ac_ext
5846 #ifdef __cplusplus
5847 extern "C" {
5848 #endif
5849
5850 _LT_EOF
5851 # Now generate the symbol file.
5852 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5853
5854 cat <<_LT_EOF >> conftest.$ac_ext
5855
5856 /* The mapping between symbol names and symbols. */
5857 const struct {
5858 const char *name;
5859 void *address;
5860 }
5861 lt__PROGRAM__LTX_preloaded_symbols[] =
5862 {
5863 { "@PROGRAM@", (void *) 0 },
5864 _LT_EOF
5865 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5866 cat <<\_LT_EOF >> conftest.$ac_ext
5867 {0, (void *) 0}
5868 };
5869
5870 /* This works around a problem in FreeBSD linker */
5871 #ifdef FREEBSD_WORKAROUND
5872 static const void *lt_preloaded_setup() {
5873 return lt__PROGRAM__LTX_preloaded_symbols;
5874 }
5875 #endif
5876
5877 #ifdef __cplusplus
5878 }
5879 #endif
5880 _LT_EOF
5881 # Now try linking the two files.
5882 mv conftest.$ac_objext conftstm.$ac_objext
5883 lt_save_LIBS="$LIBS"
5884 lt_save_CFLAGS="$CFLAGS"
5885 LIBS="conftstm.$ac_objext"
5886 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5888 (eval $ac_link) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5892 pipe_works=yes
5893 fi
5894 LIBS="$lt_save_LIBS"
5895 CFLAGS="$lt_save_CFLAGS"
5896 else
5897 echo "cannot find nm_test_func in $nlist" >&5
5898 fi
5899 else
5900 echo "cannot find nm_test_var in $nlist" >&5
5901 fi
5902 else
5903 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5904 fi
5905 else
5906 echo "$progname: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 fi
5909 rm -rf conftest* conftst*
5910
5911 # Do not use the global_symbol_pipe unless it works.
5912 if test "$pipe_works" = yes; then
5913 break
5914 else
5915 lt_cv_sys_global_symbol_pipe=
5916 fi
5917 done
5918
5919 fi
5920
5921 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5922 lt_cv_sys_global_symbol_to_cdecl=
5923 fi
5924 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5926 $as_echo "failed" >&6; }
5927 else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5929 $as_echo "ok" >&6; }
5930 fi
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 # Check whether --enable-libtool-lock was given.
5955 if test "${enable_libtool_lock+set}" = set; then :
5956 enableval=$enable_libtool_lock;
5957 fi
5958
5959 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5960
5961 # Some flags need to be propagated to the compiler or linker for good
5962 # libtool support.
5963 case $host in
5964 ia64-*-hpux*)
5965 # Find out which ABI we are using.
5966 echo 'int i;' > conftest.$ac_ext
5967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5968 (eval $ac_compile) 2>&5
5969 ac_status=$?
5970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971 test $ac_status = 0; }; then
5972 case `/usr/bin/file conftest.$ac_objext` in
5973 *ELF-32*)
5974 HPUX_IA64_MODE="32"
5975 ;;
5976 *ELF-64*)
5977 HPUX_IA64_MODE="64"
5978 ;;
5979 esac
5980 fi
5981 rm -rf conftest*
5982 ;;
5983 *-*-irix6*)
5984 # Find out which ABI we are using.
5985 echo '#line 5985 "configure"' > conftest.$ac_ext
5986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5987 (eval $ac_compile) 2>&5
5988 ac_status=$?
5989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5990 test $ac_status = 0; }; then
5991 if test "$lt_cv_prog_gnu_ld" = yes; then
5992 case `/usr/bin/file conftest.$ac_objext` in
5993 *32-bit*)
5994 LD="${LD-ld} -melf32bsmip"
5995 ;;
5996 *N32*)
5997 LD="${LD-ld} -melf32bmipn32"
5998 ;;
5999 *64-bit*)
6000 LD="${LD-ld} -melf64bmip"
6001 ;;
6002 esac
6003 else
6004 case `/usr/bin/file conftest.$ac_objext` in
6005 *32-bit*)
6006 LD="${LD-ld} -32"
6007 ;;
6008 *N32*)
6009 LD="${LD-ld} -n32"
6010 ;;
6011 *64-bit*)
6012 LD="${LD-ld} -64"
6013 ;;
6014 esac
6015 fi
6016 fi
6017 rm -rf conftest*
6018 ;;
6019
6020 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6021 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6022 # Find out which ABI we are using.
6023 echo 'int i;' > conftest.$ac_ext
6024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6025 (eval $ac_compile) 2>&5
6026 ac_status=$?
6027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6028 test $ac_status = 0; }; then
6029 case `/usr/bin/file conftest.o` in
6030 *32-bit*)
6031 case $host in
6032 x86_64-*kfreebsd*-gnu)
6033 LD="${LD-ld} -m elf_i386_fbsd"
6034 ;;
6035 x86_64-*linux*)
6036 LD="${LD-ld} -m elf_i386"
6037 ;;
6038 ppc64-*linux*|powerpc64-*linux*)
6039 LD="${LD-ld} -m elf32ppclinux"
6040 ;;
6041 s390x-*linux*)
6042 LD="${LD-ld} -m elf_s390"
6043 ;;
6044 sparc64-*linux*)
6045 LD="${LD-ld} -m elf32_sparc"
6046 ;;
6047 esac
6048 ;;
6049 *64-bit*)
6050 case $host in
6051 x86_64-*kfreebsd*-gnu)
6052 LD="${LD-ld} -m elf_x86_64_fbsd"
6053 ;;
6054 x86_64-*linux*)
6055 LD="${LD-ld} -m elf_x86_64"
6056 ;;
6057 ppc*-*linux*|powerpc*-*linux*)
6058 LD="${LD-ld} -m elf64ppc"
6059 ;;
6060 s390*-*linux*|s390*-*tpf*)
6061 LD="${LD-ld} -m elf64_s390"
6062 ;;
6063 sparc*-*linux*)
6064 LD="${LD-ld} -m elf64_sparc"
6065 ;;
6066 esac
6067 ;;
6068 esac
6069 fi
6070 rm -rf conftest*
6071 ;;
6072
6073 *-*-sco3.2v5*)
6074 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6075 SAVE_CFLAGS="$CFLAGS"
6076 CFLAGS="$CFLAGS -belf"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6078 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6079 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 ac_ext=c
6083 ac_cpp='$CPP $CPPFLAGS'
6084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087
6088 if test x$gcc_no_link = xyes; then
6089 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6090 fi
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093
6094 int
6095 main ()
6096 {
6097
6098 ;
6099 return 0;
6100 }
6101 _ACEOF
6102 if ac_fn_c_try_link "$LINENO"; then :
6103 lt_cv_cc_needs_belf=yes
6104 else
6105 lt_cv_cc_needs_belf=no
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext \
6108 conftest$ac_exeext conftest.$ac_ext
6109 ac_ext=c
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6117 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6118 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6119 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6120 CFLAGS="$SAVE_CFLAGS"
6121 fi
6122 ;;
6123 sparc*-*solaris*)
6124 # Find out which ABI we are using.
6125 echo 'int i;' > conftest.$ac_ext
6126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6127 (eval $ac_compile) 2>&5
6128 ac_status=$?
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }; then
6131 case `/usr/bin/file conftest.o` in
6132 *64-bit*)
6133 case $lt_cv_prog_gnu_ld in
6134 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6135 *)
6136 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6137 LD="${LD-ld} -64"
6138 fi
6139 ;;
6140 esac
6141 ;;
6142 esac
6143 fi
6144 rm -rf conftest*
6145 ;;
6146 esac
6147
6148 need_locks="$enable_libtool_lock"
6149
6150
6151 case $host_os in
6152 rhapsody* | darwin*)
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$DSYMUTIL"; then
6162 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6182 if test -n "$DSYMUTIL"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6184 $as_echo "$DSYMUTIL" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190
6191 fi
6192 if test -z "$ac_cv_prog_DSYMUTIL"; then
6193 ac_ct_DSYMUTIL=$DSYMUTIL
6194 # Extract the first word of "dsymutil", so it can be a program name with args.
6195 set dummy dsymutil; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$ac_ct_DSYMUTIL"; then
6202 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215 done
6216 done
6217 IFS=$as_save_IFS
6218
6219 fi
6220 fi
6221 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6222 if test -n "$ac_ct_DSYMUTIL"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6224 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229
6230 if test "x$ac_ct_DSYMUTIL" = x; then
6231 DSYMUTIL=":"
6232 else
6233 case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239 DSYMUTIL=$ac_ct_DSYMUTIL
6240 fi
6241 else
6242 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6243 fi
6244
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$NMEDIT"; then
6254 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 NMEDIT=$ac_cv_prog_NMEDIT
6274 if test -n "$NMEDIT"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6276 $as_echo "$NMEDIT" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282
6283 fi
6284 if test -z "$ac_cv_prog_NMEDIT"; then
6285 ac_ct_NMEDIT=$NMEDIT
6286 # Extract the first word of "nmedit", so it can be a program name with args.
6287 set dummy nmedit; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$ac_ct_NMEDIT"; then
6294 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6314 if test -n "$ac_ct_NMEDIT"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6316 $as_echo "$ac_ct_NMEDIT" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322 if test "x$ac_ct_NMEDIT" = x; then
6323 NMEDIT=":"
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331 NMEDIT=$ac_ct_NMEDIT
6332 fi
6333 else
6334 NMEDIT="$ac_cv_prog_NMEDIT"
6335 fi
6336
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_LIPO+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$LIPO"; then
6346 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi
6364 fi
6365 LIPO=$ac_cv_prog_LIPO
6366 if test -n "$LIPO"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6368 $as_echo "$LIPO" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6373
6374
6375 fi
6376 if test -z "$ac_cv_prog_LIPO"; then
6377 ac_ct_LIPO=$LIPO
6378 # Extract the first word of "lipo", so it can be a program name with args.
6379 set dummy lipo; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$ac_ct_LIPO"; then
6386 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_ac_ct_LIPO="lipo"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399 done
6400 done
6401 IFS=$as_save_IFS
6402
6403 fi
6404 fi
6405 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6406 if test -n "$ac_ct_LIPO"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6408 $as_echo "$ac_ct_LIPO" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6413
6414 if test "x$ac_ct_LIPO" = x; then
6415 LIPO=":"
6416 else
6417 case $cross_compiling:$ac_tool_warned in
6418 yes:)
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423 LIPO=$ac_ct_LIPO
6424 fi
6425 else
6426 LIPO="$ac_cv_prog_LIPO"
6427 fi
6428
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}otool; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$OTOOL"; then
6438 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 OTOOL=$ac_cv_prog_OTOOL
6458 if test -n "$OTOOL"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6460 $as_echo "$OTOOL" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_OTOOL"; then
6469 ac_ct_OTOOL=$OTOOL
6470 # Extract the first word of "otool", so it can be a program name with args.
6471 set dummy otool; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$ac_ct_OTOOL"; then
6478 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_ac_ct_OTOOL="otool"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6498 if test -n "$ac_ct_OTOOL"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6500 $as_echo "$ac_ct_OTOOL" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506 if test "x$ac_ct_OTOOL" = x; then
6507 OTOOL=":"
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515 OTOOL=$ac_ct_OTOOL
6516 fi
6517 else
6518 OTOOL="$ac_cv_prog_OTOOL"
6519 fi
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$OTOOL64"; then
6530 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 OTOOL64=$ac_cv_prog_OTOOL64
6550 if test -n "$OTOOL64"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6552 $as_echo "$OTOOL64" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_OTOOL64"; then
6561 ac_ct_OTOOL64=$OTOOL64
6562 # Extract the first word of "otool64", so it can be a program name with args.
6563 set dummy otool64; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$ac_ct_OTOOL64"; then
6570 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_OTOOL64="otool64"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6590 if test -n "$ac_ct_OTOOL64"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6592 $as_echo "$ac_ct_OTOOL64" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598 if test "x$ac_ct_OTOOL64" = x; then
6599 OTOOL64=":"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 OTOOL64=$ac_ct_OTOOL64
6608 fi
6609 else
6610 OTOOL64="$ac_cv_prog_OTOOL64"
6611 fi
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6640 $as_echo_n "checking for -single_module linker flag... " >&6; }
6641 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 lt_cv_apple_cc_single_mod=no
6645 if test -z "${LT_MULTI_MODULE}"; then
6646 # By default we will add the -single_module flag. You can override
6647 # by either setting the environment variable LT_MULTI_MODULE
6648 # non-empty at configure time, or by adding -multi_module to the
6649 # link flags.
6650 rm -rf libconftest.dylib*
6651 echo "int foo(void){return 1;}" > conftest.c
6652 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6653 -dynamiclib -Wl,-single_module conftest.c" >&5
6654 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6655 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6656 _lt_result=$?
6657 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6658 lt_cv_apple_cc_single_mod=yes
6659 else
6660 cat conftest.err >&5
6661 fi
6662 rm -rf libconftest.dylib*
6663 rm -f conftest.*
6664 fi
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6667 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6669 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6670 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 lt_cv_ld_exported_symbols_list=no
6674 save_LDFLAGS=$LDFLAGS
6675 echo "_main" > conftest.sym
6676 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6677 if test x$gcc_no_link = xyes; then
6678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6679 fi
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682
6683 int
6684 main ()
6685 {
6686
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 if ac_fn_c_try_link "$LINENO"; then :
6692 lt_cv_ld_exported_symbols_list=yes
6693 else
6694 lt_cv_ld_exported_symbols_list=no
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698 LDFLAGS="$save_LDFLAGS"
6699
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6702 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6703 case $host_os in
6704 rhapsody* | darwin1.[012])
6705 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6706 darwin1.*)
6707 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6708 darwin*) # darwin 5.x on
6709 # if running on 10.5 or later, the deployment target defaults
6710 # to the OS version, if on x86, and 10.4, the deployment
6711 # target defaults to 10.4. Don't you love it?
6712 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6713 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6715 10.[012]*)
6716 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6717 10.*)
6718 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6719 esac
6720 ;;
6721 esac
6722 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6723 _lt_dar_single_mod='$single_module'
6724 fi
6725 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6726 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6727 else
6728 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6729 fi
6730 if test "$DSYMUTIL" != ":"; then
6731 _lt_dsymutil='~$DSYMUTIL $lib || :'
6732 else
6733 _lt_dsymutil=
6734 fi
6735 ;;
6736 esac
6737
6738 ac_ext=c
6739 ac_cpp='$CPP $CPPFLAGS'
6740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6744 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6745 # On Suns, sometimes $CPP names a directory.
6746 if test -n "$CPP" && test -d "$CPP"; then
6747 CPP=
6748 fi
6749 if test -z "$CPP"; then
6750 if test "${ac_cv_prog_CPP+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 # Double quotes because CPP needs to be expanded
6754 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6755 do
6756 ac_preproc_ok=false
6757 for ac_c_preproc_warn_flag in '' yes
6758 do
6759 # Use a header file that comes with gcc, so configuring glibc
6760 # with a fresh cross-compiler works.
6761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 # <limits.h> exists even on freestanding compilers.
6763 # On the NeXT, cc -E runs the code through the compiler's parser,
6764 # not just through cpp. "Syntax error" is here to catch this case.
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #ifdef __STDC__
6768 # include <limits.h>
6769 #else
6770 # include <assert.h>
6771 #endif
6772 Syntax error
6773 _ACEOF
6774 if ac_fn_c_try_cpp "$LINENO"; then :
6775
6776 else
6777 # Broken: fails on valid input.
6778 continue
6779 fi
6780 rm -f conftest.err conftest.$ac_ext
6781
6782 # OK, works on sane cases. Now check whether nonexistent headers
6783 # can be detected and how.
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <ac_nonexistent.h>
6787 _ACEOF
6788 if ac_fn_c_try_cpp "$LINENO"; then :
6789 # Broken: success on invalid input.
6790 continue
6791 else
6792 # Passes both tests.
6793 ac_preproc_ok=:
6794 break
6795 fi
6796 rm -f conftest.err conftest.$ac_ext
6797
6798 done
6799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6800 rm -f conftest.err conftest.$ac_ext
6801 if $ac_preproc_ok; then :
6802 break
6803 fi
6804
6805 done
6806 ac_cv_prog_CPP=$CPP
6807
6808 fi
6809 CPP=$ac_cv_prog_CPP
6810 else
6811 ac_cv_prog_CPP=$CPP
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6814 $as_echo "$CPP" >&6; }
6815 ac_preproc_ok=false
6816 for ac_c_preproc_warn_flag in '' yes
6817 do
6818 # Use a header file that comes with gcc, so configuring glibc
6819 # with a fresh cross-compiler works.
6820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6821 # <limits.h> exists even on freestanding compilers.
6822 # On the NeXT, cc -E runs the code through the compiler's parser,
6823 # not just through cpp. "Syntax error" is here to catch this case.
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 #ifdef __STDC__
6827 # include <limits.h>
6828 #else
6829 # include <assert.h>
6830 #endif
6831 Syntax error
6832 _ACEOF
6833 if ac_fn_c_try_cpp "$LINENO"; then :
6834
6835 else
6836 # Broken: fails on valid input.
6837 continue
6838 fi
6839 rm -f conftest.err conftest.$ac_ext
6840
6841 # OK, works on sane cases. Now check whether nonexistent headers
6842 # can be detected and how.
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <ac_nonexistent.h>
6846 _ACEOF
6847 if ac_fn_c_try_cpp "$LINENO"; then :
6848 # Broken: success on invalid input.
6849 continue
6850 else
6851 # Passes both tests.
6852 ac_preproc_ok=:
6853 break
6854 fi
6855 rm -f conftest.err conftest.$ac_ext
6856
6857 done
6858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6859 rm -f conftest.err conftest.$ac_ext
6860 if $ac_preproc_ok; then :
6861
6862 else
6863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6865 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6866 See \`config.log' for more details." "$LINENO" 5; }
6867 fi
6868
6869 ac_ext=c
6870 ac_cpp='$CPP $CPPFLAGS'
6871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6877 $as_echo_n "checking for ANSI C header files... " >&6; }
6878 if test "${ac_cv_header_stdc+set}" = set; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <stdlib.h>
6884 #include <stdarg.h>
6885 #include <string.h>
6886 #include <float.h>
6887
6888 int
6889 main ()
6890 {
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 ac_cv_header_stdc=yes
6898 else
6899 ac_cv_header_stdc=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902
6903 if test $ac_cv_header_stdc = yes; then
6904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 #include <string.h>
6908
6909 _ACEOF
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "memchr" >/dev/null 2>&1; then :
6912
6913 else
6914 ac_cv_header_stdc=no
6915 fi
6916 rm -f conftest*
6917
6918 fi
6919
6920 if test $ac_cv_header_stdc = yes; then
6921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 #include <stdlib.h>
6925
6926 _ACEOF
6927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6928 $EGREP "free" >/dev/null 2>&1; then :
6929
6930 else
6931 ac_cv_header_stdc=no
6932 fi
6933 rm -f conftest*
6934
6935 fi
6936
6937 if test $ac_cv_header_stdc = yes; then
6938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6939 if test "$cross_compiling" = yes; then :
6940 :
6941 else
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #include <ctype.h>
6945 #include <stdlib.h>
6946 #if ((' ' & 0x0FF) == 0x020)
6947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6949 #else
6950 # define ISLOWER(c) \
6951 (('a' <= (c) && (c) <= 'i') \
6952 || ('j' <= (c) && (c) <= 'r') \
6953 || ('s' <= (c) && (c) <= 'z'))
6954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6955 #endif
6956
6957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6958 int
6959 main ()
6960 {
6961 int i;
6962 for (i = 0; i < 256; i++)
6963 if (XOR (islower (i), ISLOWER (i))
6964 || toupper (i) != TOUPPER (i))
6965 return 2;
6966 return 0;
6967 }
6968 _ACEOF
6969 if ac_fn_c_try_run "$LINENO"; then :
6970
6971 else
6972 ac_cv_header_stdc=no
6973 fi
6974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6975 conftest.$ac_objext conftest.beam conftest.$ac_ext
6976 fi
6977
6978 fi
6979 fi
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6981 $as_echo "$ac_cv_header_stdc" >&6; }
6982 if test $ac_cv_header_stdc = yes; then
6983
6984 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6985
6986 fi
6987
6988 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6989 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6990 inttypes.h stdint.h unistd.h
6991 do :
6992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6994 "
6995 eval as_val=\$$as_ac_Header
6996 if test "x$as_val" = x""yes; then :
6997 cat >>confdefs.h <<_ACEOF
6998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6999 _ACEOF
7000
7001 fi
7002
7003 done
7004
7005
7006 for ac_header in dlfcn.h
7007 do :
7008 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7009 "
7010 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_DLFCN_H 1
7013 _ACEOF
7014
7015 fi
7016
7017 done
7018
7019
7020
7021 # Set options
7022
7023
7024
7025 enable_dlopen=no
7026
7027
7028
7029 # Check whether --enable-shared was given.
7030 if test "${enable_shared+set}" = set; then :
7031 enableval=$enable_shared; p=${PACKAGE-default}
7032 case $enableval in
7033 yes) enable_shared=yes ;;
7034 no) enable_shared=no ;;
7035 *)
7036 enable_shared=no
7037 # Look at the argument we got. We use all the common list separators.
7038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7039 for pkg in $enableval; do
7040 IFS="$lt_save_ifs"
7041 if test "X$pkg" = "X$p"; then
7042 enable_shared=yes
7043 fi
7044 done
7045 IFS="$lt_save_ifs"
7046 ;;
7047 esac
7048 else
7049 enable_shared=yes
7050 fi
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 # Check whether --enable-static was given.
7061 if test "${enable_static+set}" = set; then :
7062 enableval=$enable_static; p=${PACKAGE-default}
7063 case $enableval in
7064 yes) enable_static=yes ;;
7065 no) enable_static=no ;;
7066 *)
7067 enable_static=no
7068 # Look at the argument we got. We use all the common list separators.
7069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7070 for pkg in $enableval; do
7071 IFS="$lt_save_ifs"
7072 if test "X$pkg" = "X$p"; then
7073 enable_static=yes
7074 fi
7075 done
7076 IFS="$lt_save_ifs"
7077 ;;
7078 esac
7079 else
7080 enable_static=yes
7081 fi
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092 # Check whether --with-pic was given.
7093 if test "${with_pic+set}" = set; then :
7094 withval=$with_pic; pic_mode="$withval"
7095 else
7096 pic_mode=default
7097 fi
7098
7099
7100 test -z "$pic_mode" && pic_mode=default
7101
7102
7103
7104
7105
7106
7107
7108 # Check whether --enable-fast-install was given.
7109 if test "${enable_fast_install+set}" = set; then :
7110 enableval=$enable_fast_install; p=${PACKAGE-default}
7111 case $enableval in
7112 yes) enable_fast_install=yes ;;
7113 no) enable_fast_install=no ;;
7114 *)
7115 enable_fast_install=no
7116 # Look at the argument we got. We use all the common list separators.
7117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7118 for pkg in $enableval; do
7119 IFS="$lt_save_ifs"
7120 if test "X$pkg" = "X$p"; then
7121 enable_fast_install=yes
7122 fi
7123 done
7124 IFS="$lt_save_ifs"
7125 ;;
7126 esac
7127 else
7128 enable_fast_install=yes
7129 fi
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 # This can be used to rebuild libtool when needed
7142 LIBTOOL_DEPS="$ltmain"
7143
7144 # Always use our own libtool.
7145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171 test -z "$LN_S" && LN_S="ln -s"
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186 if test -n "${ZSH_VERSION+set}" ; then
7187 setopt NO_GLOB_SUBST
7188 fi
7189
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7191 $as_echo_n "checking for objdir... " >&6; }
7192 if test "${lt_cv_objdir+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 rm -f .libs 2>/dev/null
7196 mkdir .libs 2>/dev/null
7197 if test -d .libs; then
7198 lt_cv_objdir=.libs
7199 else
7200 # MS-DOS does not allow filenames that begin with a dot.
7201 lt_cv_objdir=_libs
7202 fi
7203 rmdir .libs 2>/dev/null
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7206 $as_echo "$lt_cv_objdir" >&6; }
7207 objdir=$lt_cv_objdir
7208
7209
7210
7211
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define LT_OBJDIR "$lt_cv_objdir/"
7215 _ACEOF
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 case $host_os in
7234 aix3*)
7235 # AIX sometimes has problems with the GCC collect2 program. For some
7236 # reason, if we set the COLLECT_NAMES environment variable, the problems
7237 # vanish in a puff of smoke.
7238 if test "X${COLLECT_NAMES+set}" != Xset; then
7239 COLLECT_NAMES=
7240 export COLLECT_NAMES
7241 fi
7242 ;;
7243 esac
7244
7245 # Sed substitution that helps us do robust quoting. It backslashifies
7246 # metacharacters that are still active within double-quoted strings.
7247 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7248
7249 # Same as above, but do not quote variable references.
7250 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7251
7252 # Sed substitution to delay expansion of an escaped shell variable in a
7253 # double_quote_subst'ed string.
7254 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7255
7256 # Sed substitution to delay expansion of an escaped single quote.
7257 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7258
7259 # Sed substitution to avoid accidental globbing in evaled expressions
7260 no_glob_subst='s/\*/\\\*/g'
7261
7262 # Global variables:
7263 ofile=libtool
7264 can_build_shared=yes
7265
7266 # All known linkers require a `.a' archive for static linking (except MSVC,
7267 # which needs '.lib').
7268 libext=a
7269
7270 with_gnu_ld="$lt_cv_prog_gnu_ld"
7271
7272 old_CC="$CC"
7273 old_CFLAGS="$CFLAGS"
7274
7275 # Set sane defaults for various variables
7276 test -z "$CC" && CC=cc
7277 test -z "$LTCC" && LTCC=$CC
7278 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7279 test -z "$LD" && LD=ld
7280 test -z "$ac_objext" && ac_objext=o
7281
7282 for cc_temp in $compiler""; do
7283 case $cc_temp in
7284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7286 \-*) ;;
7287 *) break;;
7288 esac
7289 done
7290 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7291
7292
7293 # Only perform the check for file, if the check method requires it
7294 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7295 case $deplibs_check_method in
7296 file_magic*)
7297 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7299 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7300 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 case $MAGIC_CMD in
7304 [\\/*] | ?:[\\/]*)
7305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 lt_save_MAGIC_CMD="$MAGIC_CMD"
7309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7310 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7311 for ac_dir in $ac_dummy; do
7312 IFS="$lt_save_ifs"
7313 test -z "$ac_dir" && ac_dir=.
7314 if test -f $ac_dir/${ac_tool_prefix}file; then
7315 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7316 if test -n "$file_magic_test_file"; then
7317 case $deplibs_check_method in
7318 "file_magic "*)
7319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7322 $EGREP "$file_magic_regex" > /dev/null; then
7323 :
7324 else
7325 cat <<_LT_EOF 1>&2
7326
7327 *** Warning: the command libtool uses to detect shared libraries,
7328 *** $file_magic_cmd, produces output that libtool cannot recognize.
7329 *** The result is that libtool may fail to recognize shared libraries
7330 *** as such. This will affect the creation of libtool libraries that
7331 *** depend on shared libraries, but programs linked with such libtool
7332 *** libraries will work regardless of this problem. Nevertheless, you
7333 *** may want to report the problem to your system manager and/or to
7334 *** bug-libtool@gnu.org
7335
7336 _LT_EOF
7337 fi ;;
7338 esac
7339 fi
7340 break
7341 fi
7342 done
7343 IFS="$lt_save_ifs"
7344 MAGIC_CMD="$lt_save_MAGIC_CMD"
7345 ;;
7346 esac
7347 fi
7348
7349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7350 if test -n "$MAGIC_CMD"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7352 $as_echo "$MAGIC_CMD" >&6; }
7353 else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357
7358
7359
7360
7361
7362 if test -z "$lt_cv_path_MAGIC_CMD"; then
7363 if test -n "$ac_tool_prefix"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7365 $as_echo_n "checking for file... " >&6; }
7366 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 case $MAGIC_CMD in
7370 [\\/*] | ?:[\\/]*)
7371 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7372 ;;
7373 *)
7374 lt_save_MAGIC_CMD="$MAGIC_CMD"
7375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7376 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7377 for ac_dir in $ac_dummy; do
7378 IFS="$lt_save_ifs"
7379 test -z "$ac_dir" && ac_dir=.
7380 if test -f $ac_dir/file; then
7381 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7382 if test -n "$file_magic_test_file"; then
7383 case $deplibs_check_method in
7384 "file_magic "*)
7385 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7388 $EGREP "$file_magic_regex" > /dev/null; then
7389 :
7390 else
7391 cat <<_LT_EOF 1>&2
7392
7393 *** Warning: the command libtool uses to detect shared libraries,
7394 *** $file_magic_cmd, produces output that libtool cannot recognize.
7395 *** The result is that libtool may fail to recognize shared libraries
7396 *** as such. This will affect the creation of libtool libraries that
7397 *** depend on shared libraries, but programs linked with such libtool
7398 *** libraries will work regardless of this problem. Nevertheless, you
7399 *** may want to report the problem to your system manager and/or to
7400 *** bug-libtool@gnu.org
7401
7402 _LT_EOF
7403 fi ;;
7404 esac
7405 fi
7406 break
7407 fi
7408 done
7409 IFS="$lt_save_ifs"
7410 MAGIC_CMD="$lt_save_MAGIC_CMD"
7411 ;;
7412 esac
7413 fi
7414
7415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416 if test -n "$MAGIC_CMD"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7418 $as_echo "$MAGIC_CMD" >&6; }
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424
7425 else
7426 MAGIC_CMD=:
7427 fi
7428 fi
7429
7430 fi
7431 ;;
7432 esac
7433
7434 # Use C for the default configuration in the libtool script
7435
7436 lt_save_CC="$CC"
7437 ac_ext=c
7438 ac_cpp='$CPP $CPPFLAGS'
7439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
7443
7444 # Source file extension for C test sources.
7445 ac_ext=c
7446
7447 # Object file extension for compiled C test sources.
7448 objext=o
7449 objext=$objext
7450
7451 # Code to be used in simple compile tests
7452 lt_simple_compile_test_code="int some_variable = 0;"
7453
7454 # Code to be used in simple link tests
7455 lt_simple_link_test_code='int main(){return(0);}'
7456
7457
7458
7459
7460
7461
7462
7463 # If no C compiler was specified, use CC.
7464 LTCC=${LTCC-"$CC"}
7465
7466 # If no C compiler flags were specified, use CFLAGS.
7467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7468
7469 # Allow CC to be a program name with arguments.
7470 compiler=$CC
7471
7472 # Save the default compiler, since it gets overwritten when the other
7473 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7474 compiler_DEFAULT=$CC
7475
7476 # save warnings/boilerplate of simple test code
7477 ac_outfile=conftest.$ac_objext
7478 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7479 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7480 _lt_compiler_boilerplate=`cat conftest.err`
7481 $RM conftest*
7482
7483 ac_outfile=conftest.$ac_objext
7484 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7485 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7486 _lt_linker_boilerplate=`cat conftest.err`
7487 $RM -r conftest*
7488
7489
7490 ## CAVEAT EMPTOR:
7491 ## There is no encapsulation within the following macros, do not change
7492 ## the running order or otherwise move them around unless you know exactly
7493 ## what you are doing...
7494 if test -n "$compiler"; then
7495
7496 lt_prog_compiler_no_builtin_flag=
7497
7498 if test "$GCC" = yes; then
7499 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7502 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7503 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 lt_cv_prog_compiler_rtti_exceptions=no
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7509 lt_compiler_flag="-fno-rtti -fno-exceptions"
7510 # Insert the option either (1) after the last *FLAGS variable, or
7511 # (2) before a word containing "conftest.", or (3) at the end.
7512 # Note that $ac_compile itself does not contain backslashes and begins
7513 # with a dollar sign (not a hyphen), so the echo should work correctly.
7514 # The option is referenced via a variable to avoid confusing sed.
7515 lt_compile=`echo "$ac_compile" | $SED \
7516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7518 -e 's:$: $lt_compiler_flag:'`
7519 (eval echo "\"\$as_me:7519: $lt_compile\"" >&5)
7520 (eval "$lt_compile" 2>conftest.err)
7521 ac_status=$?
7522 cat conftest.err >&5
7523 echo "$as_me:7523: \$? = $ac_status" >&5
7524 if (exit $ac_status) && test -s "$ac_outfile"; then
7525 # The compiler can only warn and ignore the option if not recognized
7526 # So say no if there are warnings other than the usual output.
7527 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7530 lt_cv_prog_compiler_rtti_exceptions=yes
7531 fi
7532 fi
7533 $RM conftest*
7534
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7537 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7538
7539 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7540 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7541 else
7542 :
7543 fi
7544
7545 fi
7546
7547
7548
7549
7550
7551
7552 lt_prog_compiler_wl=
7553 lt_prog_compiler_pic=
7554 lt_prog_compiler_static=
7555
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7557 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7558
7559 if test "$GCC" = yes; then
7560 lt_prog_compiler_wl='-Wl,'
7561 lt_prog_compiler_static='-static'
7562
7563 case $host_os in
7564 aix*)
7565 # All AIX code is PIC.
7566 if test "$host_cpu" = ia64; then
7567 # AIX 5 now supports IA64 processor
7568 lt_prog_compiler_static='-Bstatic'
7569 fi
7570 ;;
7571
7572 amigaos*)
7573 case $host_cpu in
7574 powerpc)
7575 # see comment about AmigaOS4 .so support
7576 lt_prog_compiler_pic='-fPIC'
7577 ;;
7578 m68k)
7579 # FIXME: we need at least 68020 code to build shared libraries, but
7580 # adding the `-m68020' flag to GCC prevents building anything better,
7581 # like `-m68040'.
7582 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7583 ;;
7584 esac
7585 ;;
7586
7587 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7588 # PIC is the default for these OSes.
7589 ;;
7590
7591 mingw* | cygwin* | pw32* | os2* | cegcc*)
7592 # This hack is so that the source file can tell whether it is being
7593 # built for inclusion in a dll (and should export symbols for example).
7594 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7595 # (--disable-auto-import) libraries
7596 lt_prog_compiler_pic='-DDLL_EXPORT'
7597 ;;
7598
7599 darwin* | rhapsody*)
7600 # PIC is the default on this platform
7601 # Common symbols not allowed in MH_DYLIB files
7602 lt_prog_compiler_pic='-fno-common'
7603 ;;
7604
7605 hpux*)
7606 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7607 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7608 # sets the default TLS model and affects inlining.
7609 case $host_cpu in
7610 hppa*64*)
7611 # +Z the default
7612 ;;
7613 *)
7614 lt_prog_compiler_pic='-fPIC'
7615 ;;
7616 esac
7617 ;;
7618
7619 interix[3-9]*)
7620 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7621 # Instead, we relocate shared libraries at runtime.
7622 ;;
7623
7624 msdosdjgpp*)
7625 # Just because we use GCC doesn't mean we suddenly get shared libraries
7626 # on systems that don't support them.
7627 lt_prog_compiler_can_build_shared=no
7628 enable_shared=no
7629 ;;
7630
7631 *nto* | *qnx*)
7632 # QNX uses GNU C++, but need to define -shared option too, otherwise
7633 # it will coredump.
7634 lt_prog_compiler_pic='-fPIC -shared'
7635 ;;
7636
7637 sysv4*MP*)
7638 if test -d /usr/nec; then
7639 lt_prog_compiler_pic=-Kconform_pic
7640 fi
7641 ;;
7642
7643 *)
7644 lt_prog_compiler_pic='-fPIC'
7645 ;;
7646 esac
7647 else
7648 # PORTME Check for flag to pass linker flags through the system compiler.
7649 case $host_os in
7650 aix*)
7651 lt_prog_compiler_wl='-Wl,'
7652 if test "$host_cpu" = ia64; then
7653 # AIX 5 now supports IA64 processor
7654 lt_prog_compiler_static='-Bstatic'
7655 else
7656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7657 fi
7658 ;;
7659
7660 mingw* | cygwin* | pw32* | os2* | cegcc*)
7661 # This hack is so that the source file can tell whether it is being
7662 # built for inclusion in a dll (and should export symbols for example).
7663 lt_prog_compiler_pic='-DDLL_EXPORT'
7664 ;;
7665
7666 hpux9* | hpux10* | hpux11*)
7667 lt_prog_compiler_wl='-Wl,'
7668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7669 # not for PA HP-UX.
7670 case $host_cpu in
7671 hppa*64*|ia64*)
7672 # +Z the default
7673 ;;
7674 *)
7675 lt_prog_compiler_pic='+Z'
7676 ;;
7677 esac
7678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7679 lt_prog_compiler_static='${wl}-a ${wl}archive'
7680 ;;
7681
7682 irix5* | irix6* | nonstopux*)
7683 lt_prog_compiler_wl='-Wl,'
7684 # PIC (with -KPIC) is the default.
7685 lt_prog_compiler_static='-non_shared'
7686 ;;
7687
7688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7689 case $cc_basename in
7690 # old Intel for x86_64 which still supported -KPIC.
7691 ecc*)
7692 lt_prog_compiler_wl='-Wl,'
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-static'
7695 ;;
7696 # icc used to be incompatible with GCC.
7697 # ICC 10 doesn't accept -KPIC any more.
7698 icc* | ifort*)
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_pic='-fPIC'
7701 lt_prog_compiler_static='-static'
7702 ;;
7703 # Lahey Fortran 8.1.
7704 lf95*)
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_pic='--shared'
7707 lt_prog_compiler_static='--static'
7708 ;;
7709 pgcc* | pgf77* | pgf90* | pgf95*)
7710 # Portland Group compilers (*not* the Pentium gcc compiler,
7711 # which looks to be a dead project)
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_pic='-fpic'
7714 lt_prog_compiler_static='-Bstatic'
7715 ;;
7716 ccc*)
7717 lt_prog_compiler_wl='-Wl,'
7718 # All Alpha code is PIC.
7719 lt_prog_compiler_static='-non_shared'
7720 ;;
7721 xl*)
7722 # IBM XL C 8.0/Fortran 10.1 on PPC
7723 lt_prog_compiler_wl='-Wl,'
7724 lt_prog_compiler_pic='-qpic'
7725 lt_prog_compiler_static='-qstaticlink'
7726 ;;
7727 *)
7728 case `$CC -V 2>&1 | sed 5q` in
7729 *Sun\ C*)
7730 # Sun C 5.9
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-Bstatic'
7733 lt_prog_compiler_wl='-Wl,'
7734 ;;
7735 *Sun\ F*)
7736 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-Bstatic'
7739 lt_prog_compiler_wl=''
7740 ;;
7741 esac
7742 ;;
7743 esac
7744 ;;
7745
7746 newsos6)
7747 lt_prog_compiler_pic='-KPIC'
7748 lt_prog_compiler_static='-Bstatic'
7749 ;;
7750
7751 *nto* | *qnx*)
7752 # QNX uses GNU C++, but need to define -shared option too, otherwise
7753 # it will coredump.
7754 lt_prog_compiler_pic='-fPIC -shared'
7755 ;;
7756
7757 osf3* | osf4* | osf5*)
7758 lt_prog_compiler_wl='-Wl,'
7759 # All OSF/1 code is PIC.
7760 lt_prog_compiler_static='-non_shared'
7761 ;;
7762
7763 rdos*)
7764 lt_prog_compiler_static='-non_shared'
7765 ;;
7766
7767 solaris*)
7768 lt_prog_compiler_pic='-KPIC'
7769 lt_prog_compiler_static='-Bstatic'
7770 case $cc_basename in
7771 f77* | f90* | f95*)
7772 lt_prog_compiler_wl='-Qoption ld ';;
7773 *)
7774 lt_prog_compiler_wl='-Wl,';;
7775 esac
7776 ;;
7777
7778 sunos4*)
7779 lt_prog_compiler_wl='-Qoption ld '
7780 lt_prog_compiler_pic='-PIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 ;;
7783
7784 sysv4 | sysv4.2uw2* | sysv4.3*)
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7788 ;;
7789
7790 sysv4*MP*)
7791 if test -d /usr/nec ;then
7792 lt_prog_compiler_pic='-Kconform_pic'
7793 lt_prog_compiler_static='-Bstatic'
7794 fi
7795 ;;
7796
7797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7798 lt_prog_compiler_wl='-Wl,'
7799 lt_prog_compiler_pic='-KPIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 ;;
7802
7803 unicos*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_can_build_shared=no
7806 ;;
7807
7808 uts4*)
7809 lt_prog_compiler_pic='-pic'
7810 lt_prog_compiler_static='-Bstatic'
7811 ;;
7812
7813 *)
7814 lt_prog_compiler_can_build_shared=no
7815 ;;
7816 esac
7817 fi
7818
7819 case $host_os in
7820 # For platforms which do not support PIC, -DPIC is meaningless:
7821 *djgpp*)
7822 lt_prog_compiler_pic=
7823 ;;
7824 *)
7825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7826 ;;
7827 esac
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7829 $as_echo "$lt_prog_compiler_pic" >&6; }
7830
7831
7832
7833
7834
7835
7836 #
7837 # Check to make sure the PIC flag actually works.
7838 #
7839 if test -n "$lt_prog_compiler_pic"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7841 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7842 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 lt_cv_prog_compiler_pic_works=no
7846 ac_outfile=conftest.$ac_objext
7847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7849 # Insert the option either (1) after the last *FLAGS variable, or
7850 # (2) before a word containing "conftest.", or (3) at the end.
7851 # Note that $ac_compile itself does not contain backslashes and begins
7852 # with a dollar sign (not a hyphen), so the echo should work correctly.
7853 # The option is referenced via a variable to avoid confusing sed.
7854 lt_compile=`echo "$ac_compile" | $SED \
7855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
7858 (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859 (eval "$lt_compile" 2>conftest.err)
7860 ac_status=$?
7861 cat conftest.err >&5
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 if (exit $ac_status) && test -s "$ac_outfile"; then
7864 # The compiler can only warn and ignore the option if not recognized
7865 # So say no if there are warnings other than the usual output.
7866 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869 lt_cv_prog_compiler_pic_works=yes
7870 fi
7871 fi
7872 $RM conftest*
7873
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7876 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7877
7878 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7879 case $lt_prog_compiler_pic in
7880 "" | " "*) ;;
7881 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7882 esac
7883 else
7884 lt_prog_compiler_pic=
7885 lt_prog_compiler_can_build_shared=no
7886 fi
7887
7888 fi
7889
7890
7891
7892
7893
7894
7895 #
7896 # Check to make sure the static flag actually works.
7897 #
7898 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7900 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7901 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 lt_cv_prog_compiler_static_works=no
7905 save_LDFLAGS="$LDFLAGS"
7906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7909 # The linker can only warn and ignore the option if not recognized
7910 # So say no if there are warnings
7911 if test -s conftest.err; then
7912 # Append any errors to the config.log.
7913 cat conftest.err 1>&5
7914 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7916 if diff conftest.exp conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_static_works=yes
7918 fi
7919 else
7920 lt_cv_prog_compiler_static_works=yes
7921 fi
7922 fi
7923 $RM -r conftest*
7924 LDFLAGS="$save_LDFLAGS"
7925
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7928 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7929
7930 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7931 :
7932 else
7933 lt_prog_compiler_static=
7934 fi
7935
7936
7937
7938
7939
7940
7941
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7944 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 lt_cv_prog_compiler_c_o=no
7948 $RM -r conftest 2>/dev/null
7949 mkdir conftest
7950 cd conftest
7951 mkdir out
7952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7953
7954 lt_compiler_flag="-o out/conftest2.$ac_objext"
7955 # Insert the option either (1) after the last *FLAGS variable, or
7956 # (2) before a word containing "conftest.", or (3) at the end.
7957 # Note that $ac_compile itself does not contain backslashes and begins
7958 # with a dollar sign (not a hyphen), so the echo should work correctly.
7959 lt_compile=`echo "$ac_compile" | $SED \
7960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962 -e 's:$: $lt_compiler_flag:'`
7963 (eval echo "\"\$as_me:7963: $lt_compile\"" >&5)
7964 (eval "$lt_compile" 2>out/conftest.err)
7965 ac_status=$?
7966 cat out/conftest.err >&5
7967 echo "$as_me:7967: \$? = $ac_status" >&5
7968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7969 then
7970 # The compiler can only warn and ignore the option if not recognized
7971 # So say no if there are warnings
7972 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7975 lt_cv_prog_compiler_c_o=yes
7976 fi
7977 fi
7978 chmod u+w . 2>&5
7979 $RM conftest*
7980 # SGI C++ compiler will create directory out/ii_files/ for
7981 # template instantiation
7982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7983 $RM out/* && rmdir out
7984 cd ..
7985 $RM -r conftest
7986 $RM conftest*
7987
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7990 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7991
7992
7993
7994
7995
7996
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7999 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 lt_cv_prog_compiler_c_o=no
8003 $RM -r conftest 2>/dev/null
8004 mkdir conftest
8005 cd conftest
8006 mkdir out
8007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8008
8009 lt_compiler_flag="-o out/conftest2.$ac_objext"
8010 # Insert the option either (1) after the last *FLAGS variable, or
8011 # (2) before a word containing "conftest.", or (3) at the end.
8012 # Note that $ac_compile itself does not contain backslashes and begins
8013 # with a dollar sign (not a hyphen), so the echo should work correctly.
8014 lt_compile=`echo "$ac_compile" | $SED \
8015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8017 -e 's:$: $lt_compiler_flag:'`
8018 (eval echo "\"\$as_me:8018: $lt_compile\"" >&5)
8019 (eval "$lt_compile" 2>out/conftest.err)
8020 ac_status=$?
8021 cat out/conftest.err >&5
8022 echo "$as_me:8022: \$? = $ac_status" >&5
8023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8024 then
8025 # The compiler can only warn and ignore the option if not recognized
8026 # So say no if there are warnings
8027 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8030 lt_cv_prog_compiler_c_o=yes
8031 fi
8032 fi
8033 chmod u+w . 2>&5
8034 $RM conftest*
8035 # SGI C++ compiler will create directory out/ii_files/ for
8036 # template instantiation
8037 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8038 $RM out/* && rmdir out
8039 cd ..
8040 $RM -r conftest
8041 $RM conftest*
8042
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8046
8047
8048
8049
8050 hard_links="nottested"
8051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8052 # do not overwrite the value of need_locks provided by the user
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8054 $as_echo_n "checking if we can lock with hard links... " >&6; }
8055 hard_links=yes
8056 $RM conftest*
8057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058 touch conftest.a
8059 ln conftest.a conftest.b 2>&5 || hard_links=no
8060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8062 $as_echo "$hard_links" >&6; }
8063 if test "$hard_links" = no; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8065 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8066 need_locks=warn
8067 fi
8068 else
8069 need_locks=no
8070 fi
8071
8072
8073
8074
8075
8076
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8078 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8079
8080 runpath_var=
8081 allow_undefined_flag=
8082 always_export_symbols=no
8083 archive_cmds=
8084 archive_expsym_cmds=
8085 compiler_needs_object=no
8086 enable_shared_with_static_runtimes=no
8087 export_dynamic_flag_spec=
8088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8089 hardcode_automatic=no
8090 hardcode_direct=no
8091 hardcode_direct_absolute=no
8092 hardcode_libdir_flag_spec=
8093 hardcode_libdir_flag_spec_ld=
8094 hardcode_libdir_separator=
8095 hardcode_minus_L=no
8096 hardcode_shlibpath_var=unsupported
8097 inherit_rpath=no
8098 link_all_deplibs=unknown
8099 module_cmds=
8100 module_expsym_cmds=
8101 old_archive_from_new_cmds=
8102 old_archive_from_expsyms_cmds=
8103 thread_safe_flag_spec=
8104 whole_archive_flag_spec=
8105 # include_expsyms should be a list of space-separated symbols to be *always*
8106 # included in the symbol list
8107 include_expsyms=
8108 # exclude_expsyms can be an extended regexp of symbols to exclude
8109 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8110 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8111 # as well as any symbol that contains `d'.
8112 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8113 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8114 # platforms (ab)use it in PIC code, but their linkers get confused if
8115 # the symbol is explicitly referenced. Since portable code cannot
8116 # rely on this symbol name, it's probably fine to never include it in
8117 # preloaded symbol tables.
8118 # Exclude shared library initialization/finalization symbols.
8119 extract_expsyms_cmds=
8120
8121 case $host_os in
8122 cygwin* | mingw* | pw32* | cegcc*)
8123 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8124 # When not using gcc, we currently assume that we are using
8125 # Microsoft Visual C++.
8126 if test "$GCC" != yes; then
8127 with_gnu_ld=no
8128 fi
8129 ;;
8130 interix*)
8131 # we just hope/assume this is gcc and not c89 (= MSVC++)
8132 with_gnu_ld=yes
8133 ;;
8134 openbsd*)
8135 with_gnu_ld=no
8136 ;;
8137 esac
8138
8139 ld_shlibs=yes
8140 if test "$with_gnu_ld" = yes; then
8141 # If archive_cmds runs LD, not CC, wlarc should be empty
8142 wlarc='${wl}'
8143
8144 # Set some defaults for GNU ld with shared library support. These
8145 # are reset later if shared libraries are not supported. Putting them
8146 # here allows them to be overridden if necessary.
8147 runpath_var=LD_RUN_PATH
8148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8149 export_dynamic_flag_spec='${wl}--export-dynamic'
8150 # ancient GNU ld didn't support --whole-archive et. al.
8151 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8152 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8153 else
8154 whole_archive_flag_spec=
8155 fi
8156 supports_anon_versioning=no
8157 case `$LD -v 2>&1` in
8158 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8159 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8160 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8161 *\ 2.11.*) ;; # other 2.11 versions
8162 *) supports_anon_versioning=yes ;;
8163 esac
8164
8165 # See if GNU ld supports shared libraries.
8166 case $host_os in
8167 aix[3-9]*)
8168 # On AIX/PPC, the GNU linker is very broken
8169 if test "$host_cpu" != ia64; then
8170 ld_shlibs=no
8171 cat <<_LT_EOF 1>&2
8172
8173 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8174 *** to be unable to reliably create shared libraries on AIX.
8175 *** Therefore, libtool is disabling shared libraries support. If you
8176 *** really care for shared libraries, you may want to modify your PATH
8177 *** so that a non-GNU linker is found, and then restart.
8178
8179 _LT_EOF
8180 fi
8181 ;;
8182
8183 amigaos*)
8184 case $host_cpu in
8185 powerpc)
8186 # see comment about AmigaOS4 .so support
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188 archive_expsym_cmds=''
8189 ;;
8190 m68k)
8191 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)'
8192 hardcode_libdir_flag_spec='-L$libdir'
8193 hardcode_minus_L=yes
8194 ;;
8195 esac
8196 ;;
8197
8198 beos*)
8199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8200 allow_undefined_flag=unsupported
8201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8202 # support --undefined. This deserves some investigation. FIXME
8203 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 else
8205 ld_shlibs=no
8206 fi
8207 ;;
8208
8209 cygwin* | mingw* | pw32* | cegcc*)
8210 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8211 # as there is no search path for DLLs.
8212 hardcode_libdir_flag_spec='-L$libdir'
8213 allow_undefined_flag=unsupported
8214 always_export_symbols=no
8215 enable_shared_with_static_runtimes=yes
8216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8217
8218 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8220 # If the export-symbols file already is a .def file (1st line
8221 # is EXPORTS), use it as is; otherwise, prepend...
8222 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8223 cp $export_symbols $output_objdir/$soname.def;
8224 else
8225 echo EXPORTS > $output_objdir/$soname.def;
8226 cat $export_symbols >> $output_objdir/$soname.def;
8227 fi~
8228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8229 else
8230 ld_shlibs=no
8231 fi
8232 ;;
8233
8234 interix[3-9]*)
8235 hardcode_direct=no
8236 hardcode_shlibpath_var=no
8237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238 export_dynamic_flag_spec='${wl}-E'
8239 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8240 # Instead, shared libraries are loaded at an image base (0x10000000 by
8241 # default) and relocated if they conflict, which is a slow very memory
8242 # consuming and fragmenting process. To avoid this, we pick a random,
8243 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8244 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8246 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'
8247 ;;
8248
8249 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8250 tmp_diet=no
8251 if test "$host_os" = linux-dietlibc; then
8252 case $cc_basename in
8253 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8254 esac
8255 fi
8256 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8257 && test "$tmp_diet" = no
8258 then
8259 tmp_addflag=
8260 tmp_sharedflag='-shared'
8261 case $cc_basename,$host_cpu in
8262 pgcc*) # Portland Group C compiler
8263 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'
8264 tmp_addflag=' $pic_flag'
8265 ;;
8266 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8267 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'
8268 tmp_addflag=' $pic_flag -Mnomain' ;;
8269 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8270 tmp_addflag=' -i_dynamic' ;;
8271 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8272 tmp_addflag=' -i_dynamic -nofor_main' ;;
8273 ifc* | ifort*) # Intel Fortran compiler
8274 tmp_addflag=' -nofor_main' ;;
8275 lf95*) # Lahey Fortran 8.1
8276 whole_archive_flag_spec=
8277 tmp_sharedflag='--shared' ;;
8278 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8279 tmp_sharedflag='-qmkshrobj'
8280 tmp_addflag= ;;
8281 esac
8282 case `$CC -V 2>&1 | sed 5q` in
8283 *Sun\ C*) # Sun C 5.9
8284 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'
8285 compiler_needs_object=yes
8286 tmp_sharedflag='-G' ;;
8287 *Sun\ F*) # Sun Fortran 8.3
8288 tmp_sharedflag='-G' ;;
8289 esac
8290 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291
8292 if test "x$supports_anon_versioning" = xyes; then
8293 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8295 echo "local: *; };" >> $output_objdir/$libname.ver~
8296 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8297 fi
8298
8299 case $cc_basename in
8300 xlf*)
8301 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8302 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8303 hardcode_libdir_flag_spec=
8304 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8305 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8306 if test "x$supports_anon_versioning" = xyes; then
8307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8309 echo "local: *; };" >> $output_objdir/$libname.ver~
8310 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8311 fi
8312 ;;
8313 esac
8314 else
8315 ld_shlibs=no
8316 fi
8317 ;;
8318
8319 netbsd*)
8320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8322 wlarc=
8323 else
8324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326 fi
8327 ;;
8328
8329 solaris*)
8330 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8331 ld_shlibs=no
8332 cat <<_LT_EOF 1>&2
8333
8334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8335 *** create shared libraries on Solaris systems. Therefore, libtool
8336 *** is disabling shared libraries support. We urge you to upgrade GNU
8337 *** binutils to release 2.9.1 or newer. Another option is to modify
8338 *** your PATH or compiler configuration so that the native linker is
8339 *** used, and then restart.
8340
8341 _LT_EOF
8342 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345 else
8346 ld_shlibs=no
8347 fi
8348 ;;
8349
8350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8351 case `$LD -v 2>&1` in
8352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8353 ld_shlibs=no
8354 cat <<_LT_EOF 1>&2
8355
8356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8357 *** reliably create shared libraries on SCO systems. Therefore, libtool
8358 *** is disabling shared libraries support. We urge you to upgrade GNU
8359 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8360 *** your PATH or compiler configuration so that the native linker is
8361 *** used, and then restart.
8362
8363 _LT_EOF
8364 ;;
8365 *)
8366 # For security reasons, it is highly recommended that you always
8367 # use absolute paths for naming shared libraries, and exclude the
8368 # DT_RUNPATH tag from executables and libraries. But doing so
8369 # requires that you compile everything twice, which is a pain.
8370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374 else
8375 ld_shlibs=no
8376 fi
8377 ;;
8378 esac
8379 ;;
8380
8381 sunos4*)
8382 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8383 wlarc=
8384 hardcode_direct=yes
8385 hardcode_shlibpath_var=no
8386 ;;
8387
8388 *)
8389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8392 else
8393 ld_shlibs=no
8394 fi
8395 ;;
8396 esac
8397
8398 if test "$ld_shlibs" = no; then
8399 runpath_var=
8400 hardcode_libdir_flag_spec=
8401 export_dynamic_flag_spec=
8402 whole_archive_flag_spec=
8403 fi
8404 else
8405 # PORTME fill in a description of your system's linker (not GNU ld)
8406 case $host_os in
8407 aix3*)
8408 allow_undefined_flag=unsupported
8409 always_export_symbols=yes
8410 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'
8411 # Note: this linker hardcodes the directories in LIBPATH if there
8412 # are no directories specified by -L.
8413 hardcode_minus_L=yes
8414 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8415 # Neither direct hardcoding nor static linking is supported with a
8416 # broken collect2.
8417 hardcode_direct=unsupported
8418 fi
8419 ;;
8420
8421 aix[4-9]*)
8422 if test "$host_cpu" = ia64; then
8423 # On IA64, the linker does run time linking by default, so we don't
8424 # have to do anything special.
8425 aix_use_runtimelinking=no
8426 exp_sym_flag='-Bexport'
8427 no_entry_flag=""
8428 else
8429 # If we're using GNU nm, then we don't want the "-C" option.
8430 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8432 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'
8433 else
8434 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'
8435 fi
8436 aix_use_runtimelinking=no
8437
8438 # Test if we are trying to use run time linking or normal
8439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8440 # need to do runtime linking.
8441 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8442 for ld_flag in $LDFLAGS; do
8443 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8444 aix_use_runtimelinking=yes
8445 break
8446 fi
8447 done
8448 ;;
8449 esac
8450
8451 exp_sym_flag='-bexport'
8452 no_entry_flag='-bnoentry'
8453 fi
8454
8455 # When large executables or shared objects are built, AIX ld can
8456 # have problems creating the table of contents. If linking a library
8457 # or program results in "error TOC overflow" add -mminimal-toc to
8458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8460
8461 archive_cmds=''
8462 hardcode_direct=yes
8463 hardcode_direct_absolute=yes
8464 hardcode_libdir_separator=':'
8465 link_all_deplibs=yes
8466 file_list_spec='${wl}-f,'
8467
8468 if test "$GCC" = yes; then
8469 case $host_os in aix4.[012]|aix4.[012].*)
8470 # We only want to do this on AIX 4.2 and lower, the check
8471 # below for broken collect2 doesn't work under 4.3+
8472 collect2name=`${CC} -print-prog-name=collect2`
8473 if test -f "$collect2name" &&
8474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8475 then
8476 # We have reworked collect2
8477 :
8478 else
8479 # We have old collect2
8480 hardcode_direct=unsupported
8481 # It fails to find uninstalled libraries when the uninstalled
8482 # path is not listed in the libpath. Setting hardcode_minus_L
8483 # to unsupported forces relinking
8484 hardcode_minus_L=yes
8485 hardcode_libdir_flag_spec='-L$libdir'
8486 hardcode_libdir_separator=
8487 fi
8488 ;;
8489 esac
8490 shared_flag='-shared'
8491 if test "$aix_use_runtimelinking" = yes; then
8492 shared_flag="$shared_flag "'${wl}-G'
8493 fi
8494 else
8495 # not using gcc
8496 if test "$host_cpu" = ia64; then
8497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8498 # chokes on -Wl,-G. The following line is correct:
8499 shared_flag='-G'
8500 else
8501 if test "$aix_use_runtimelinking" = yes; then
8502 shared_flag='${wl}-G'
8503 else
8504 shared_flag='${wl}-bM:SRE'
8505 fi
8506 fi
8507 fi
8508
8509 export_dynamic_flag_spec='${wl}-bexpall'
8510 # It seems that -bexpall does not export symbols beginning with
8511 # underscore (_), so it is better to generate a list of symbols to export.
8512 always_export_symbols=yes
8513 if test "$aix_use_runtimelinking" = yes; then
8514 # Warning - without using the other runtime loading flags (-brtl),
8515 # -berok will link without error, but may produce a broken library.
8516 allow_undefined_flag='-berok'
8517 # Determine the default libpath from the value encoded in an
8518 # empty executable.
8519 if test x$gcc_no_link = xyes; then
8520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8521 fi
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524
8525 int
8526 main ()
8527 {
8528
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_c_try_link "$LINENO"; then :
8534
8535 lt_aix_libpath_sed='
8536 /Import File Strings/,/^$/ {
8537 /^0/ {
8538 s/^0 *\(.*\)$/\1/
8539 p
8540 }
8541 }'
8542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543 # Check for a 64-bit object if we didn't find anything.
8544 if test -z "$aix_libpath"; then
8545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8546 fi
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext \
8549 conftest$ac_exeext conftest.$ac_ext
8550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8551
8552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8553 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"
8554 else
8555 if test "$host_cpu" = ia64; then
8556 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8557 allow_undefined_flag="-z nodefs"
8558 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"
8559 else
8560 # Determine the default libpath from the value encoded in an
8561 # empty executable.
8562 if test x$gcc_no_link = xyes; then
8563 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8564 fi
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567
8568 int
8569 main ()
8570 {
8571
8572 ;
8573 return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_c_try_link "$LINENO"; then :
8577
8578 lt_aix_libpath_sed='
8579 /Import File Strings/,/^$/ {
8580 /^0/ {
8581 s/^0 *\(.*\)$/\1/
8582 p
8583 }
8584 }'
8585 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8586 # Check for a 64-bit object if we didn't find anything.
8587 if test -z "$aix_libpath"; then
8588 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8589 fi
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8594
8595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8596 # Warning - without using the other run time loading flags,
8597 # -berok will link without error, but may produce a broken library.
8598 no_undefined_flag=' ${wl}-bernotok'
8599 allow_undefined_flag=' ${wl}-berok'
8600 # Exported symbols can be pulled into shared objects from archives
8601 whole_archive_flag_spec='$convenience'
8602 archive_cmds_need_lc=yes
8603 # This is similar to how AIX traditionally builds its shared libraries.
8604 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'
8605 fi
8606 fi
8607 ;;
8608
8609 amigaos*)
8610 case $host_cpu in
8611 powerpc)
8612 # see comment about AmigaOS4 .so support
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds=''
8615 ;;
8616 m68k)
8617 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)'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_minus_L=yes
8620 ;;
8621 esac
8622 ;;
8623
8624 bsdi[45]*)
8625 export_dynamic_flag_spec=-rdynamic
8626 ;;
8627
8628 cygwin* | mingw* | pw32* | cegcc*)
8629 # When not using gcc, we currently assume that we are using
8630 # Microsoft Visual C++.
8631 # hardcode_libdir_flag_spec is actually meaningless, as there is
8632 # no search path for DLLs.
8633 hardcode_libdir_flag_spec=' '
8634 allow_undefined_flag=unsupported
8635 # Tell ltmain to make .lib files, not .a files.
8636 libext=lib
8637 # Tell ltmain to make .dll files, not .so files.
8638 shrext_cmds=".dll"
8639 # FIXME: Setting linknames here is a bad hack.
8640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8641 # The linker will automatically build a .lib file if we build a DLL.
8642 old_archive_from_new_cmds='true'
8643 # FIXME: Should let the user specify the lib program.
8644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8645 fix_srcfile_path='`cygpath -w "$srcfile"`'
8646 enable_shared_with_static_runtimes=yes
8647 ;;
8648
8649 darwin* | rhapsody*)
8650
8651
8652 archive_cmds_need_lc=no
8653 hardcode_direct=no
8654 hardcode_automatic=yes
8655 hardcode_shlibpath_var=unsupported
8656 whole_archive_flag_spec=''
8657 link_all_deplibs=yes
8658 allow_undefined_flag="$_lt_dar_allow_undefined"
8659 case $cc_basename in
8660 ifort*) _lt_dar_can_shared=yes ;;
8661 *) _lt_dar_can_shared=$GCC ;;
8662 esac
8663 if test "$_lt_dar_can_shared" = "yes"; then
8664 output_verbose_link_cmd=echo
8665 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8666 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8667 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}"
8668 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}"
8669
8670 else
8671 ld_shlibs=no
8672 fi
8673
8674 ;;
8675
8676 dgux*)
8677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 hardcode_libdir_flag_spec='-L$libdir'
8679 hardcode_shlibpath_var=no
8680 ;;
8681
8682 freebsd1*)
8683 ld_shlibs=no
8684 ;;
8685
8686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8687 # support. Future versions do this automatically, but an explicit c++rt0.o
8688 # does not break anything, and helps significantly (at the cost of a little
8689 # extra space).
8690 freebsd2.2*)
8691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8692 hardcode_libdir_flag_spec='-R$libdir'
8693 hardcode_direct=yes
8694 hardcode_shlibpath_var=no
8695 ;;
8696
8697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8698 freebsd2*)
8699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8700 hardcode_direct=yes
8701 hardcode_minus_L=yes
8702 hardcode_shlibpath_var=no
8703 ;;
8704
8705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8706 freebsd* | dragonfly*)
8707 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8708 hardcode_libdir_flag_spec='-R$libdir'
8709 hardcode_direct=yes
8710 hardcode_shlibpath_var=no
8711 ;;
8712
8713 hpux9*)
8714 if test "$GCC" = yes; then
8715 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'
8716 else
8717 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'
8718 fi
8719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8720 hardcode_libdir_separator=:
8721 hardcode_direct=yes
8722
8723 # hardcode_minus_L: Not really in the search PATH,
8724 # but as the default location of the library.
8725 hardcode_minus_L=yes
8726 export_dynamic_flag_spec='${wl}-E'
8727 ;;
8728
8729 hpux10*)
8730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8732 else
8733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8734 fi
8735 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_flag_spec_ld='+b $libdir'
8738 hardcode_libdir_separator=:
8739 hardcode_direct=yes
8740 hardcode_direct_absolute=yes
8741 export_dynamic_flag_spec='${wl}-E'
8742 # hardcode_minus_L: Not really in the search PATH,
8743 # but as the default location of the library.
8744 hardcode_minus_L=yes
8745 fi
8746 ;;
8747
8748 hpux11*)
8749 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8750 case $host_cpu in
8751 hppa*64*)
8752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 ;;
8754 ia64*)
8755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8756 ;;
8757 *)
8758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8759 ;;
8760 esac
8761 else
8762 case $host_cpu in
8763 hppa*64*)
8764 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8765 ;;
8766 ia64*)
8767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8768 ;;
8769 *)
8770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8771 ;;
8772 esac
8773 fi
8774 if test "$with_gnu_ld" = no; then
8775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8776 hardcode_libdir_separator=:
8777
8778 case $host_cpu in
8779 hppa*64*|ia64*)
8780 hardcode_direct=no
8781 hardcode_shlibpath_var=no
8782 ;;
8783 *)
8784 hardcode_direct=yes
8785 hardcode_direct_absolute=yes
8786 export_dynamic_flag_spec='${wl}-E'
8787
8788 # hardcode_minus_L: Not really in the search PATH,
8789 # but as the default location of the library.
8790 hardcode_minus_L=yes
8791 ;;
8792 esac
8793 fi
8794 ;;
8795
8796 irix5* | irix6* | nonstopux*)
8797 if test "$GCC" = yes; then
8798 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'
8799 # Try to use the -exported_symbol ld option, if it does not
8800 # work, assume that -exports_file does not work either and
8801 # implicitly export all symbols.
8802 save_LDFLAGS="$LDFLAGS"
8803 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8804 if test x$gcc_no_link = xyes; then
8805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8806 fi
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 int foo(void) {}
8810 _ACEOF
8811 if ac_fn_c_try_link "$LINENO"; then :
8812 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'
8813
8814 fi
8815 rm -f core conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LDFLAGS="$save_LDFLAGS"
8818 else
8819 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'
8820 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'
8821 fi
8822 archive_cmds_need_lc='no'
8823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824 hardcode_libdir_separator=:
8825 inherit_rpath=yes
8826 link_all_deplibs=yes
8827 ;;
8828
8829 netbsd*)
8830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8832 else
8833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8834 fi
8835 hardcode_libdir_flag_spec='-R$libdir'
8836 hardcode_direct=yes
8837 hardcode_shlibpath_var=no
8838 ;;
8839
8840 newsos6)
8841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842 hardcode_direct=yes
8843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844 hardcode_libdir_separator=:
8845 hardcode_shlibpath_var=no
8846 ;;
8847
8848 *nto* | *qnx*)
8849 ;;
8850
8851 openbsd*)
8852 if test -f /usr/libexec/ld.so; then
8853 hardcode_direct=yes
8854 hardcode_shlibpath_var=no
8855 hardcode_direct_absolute=yes
8856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8860 export_dynamic_flag_spec='${wl}-E'
8861 else
8862 case $host_os in
8863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_libdir_flag_spec='-R$libdir'
8866 ;;
8867 *)
8868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8870 ;;
8871 esac
8872 fi
8873 else
8874 ld_shlibs=no
8875 fi
8876 ;;
8877
8878 os2*)
8879 hardcode_libdir_flag_spec='-L$libdir'
8880 hardcode_minus_L=yes
8881 allow_undefined_flag=unsupported
8882 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'
8883 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8884 ;;
8885
8886 osf3*)
8887 if test "$GCC" = yes; then
8888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8889 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'
8890 else
8891 allow_undefined_flag=' -expect_unresolved \*'
8892 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'
8893 fi
8894 archive_cmds_need_lc='no'
8895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896 hardcode_libdir_separator=:
8897 ;;
8898
8899 osf4* | osf5*) # as osf3* with the addition of -msym flag
8900 if test "$GCC" = yes; then
8901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8902 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'
8903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904 else
8905 allow_undefined_flag=' -expect_unresolved \*'
8906 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'
8907 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~
8908 $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'
8909
8910 # Both c and cxx compiler support -rpath directly
8911 hardcode_libdir_flag_spec='-rpath $libdir'
8912 fi
8913 archive_cmds_need_lc='no'
8914 hardcode_libdir_separator=:
8915 ;;
8916
8917 solaris*)
8918 no_undefined_flag=' -z defs'
8919 if test "$GCC" = yes; then
8920 wlarc='${wl}'
8921 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8923 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8924 else
8925 case `$CC -V 2>&1` in
8926 *"Compilers 5.0"*)
8927 wlarc=''
8928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8931 ;;
8932 *)
8933 wlarc='${wl}'
8934 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8936 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8937 ;;
8938 esac
8939 fi
8940 hardcode_libdir_flag_spec='-R$libdir'
8941 hardcode_shlibpath_var=no
8942 case $host_os in
8943 solaris2.[0-5] | solaris2.[0-5].*) ;;
8944 *)
8945 # The compiler driver will combine and reorder linker options,
8946 # but understands `-z linker_flag'. GCC discards it without `$wl',
8947 # but is careful enough not to reorder.
8948 # Supported since Solaris 2.6 (maybe 2.5.1?)
8949 if test "$GCC" = yes; then
8950 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8951 else
8952 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8953 fi
8954 ;;
8955 esac
8956 link_all_deplibs=yes
8957 ;;
8958
8959 sunos4*)
8960 if test "x$host_vendor" = xsequent; then
8961 # Use $CC to link under sequent, because it throws in some extra .o
8962 # files that make .init and .fini sections work.
8963 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8964 else
8965 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8966 fi
8967 hardcode_libdir_flag_spec='-L$libdir'
8968 hardcode_direct=yes
8969 hardcode_minus_L=yes
8970 hardcode_shlibpath_var=no
8971 ;;
8972
8973 sysv4)
8974 case $host_vendor in
8975 sni)
8976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977 hardcode_direct=yes # is this really true???
8978 ;;
8979 siemens)
8980 ## LD is ld it makes a PLAMLIB
8981 ## CC just makes a GrossModule.
8982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8983 reload_cmds='$CC -r -o $output$reload_objs'
8984 hardcode_direct=no
8985 ;;
8986 motorola)
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8989 ;;
8990 esac
8991 runpath_var='LD_RUN_PATH'
8992 hardcode_shlibpath_var=no
8993 ;;
8994
8995 sysv4.3*)
8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_shlibpath_var=no
8998 export_dynamic_flag_spec='-Bexport'
8999 ;;
9000
9001 sysv4*MP*)
9002 if test -d /usr/nec; then
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_shlibpath_var=no
9005 runpath_var=LD_RUN_PATH
9006 hardcode_runpath_var=yes
9007 ld_shlibs=yes
9008 fi
9009 ;;
9010
9011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9012 no_undefined_flag='${wl}-z,text'
9013 archive_cmds_need_lc=no
9014 hardcode_shlibpath_var=no
9015 runpath_var='LD_RUN_PATH'
9016
9017 if test "$GCC" = yes; then
9018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020 else
9021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9023 fi
9024 ;;
9025
9026 sysv5* | sco3.2v5* | sco5v6*)
9027 # Note: We can NOT use -z defs as we might desire, because we do not
9028 # link with -lc, and that would cause any symbols used from libc to
9029 # always be unresolved, which means just about no library would
9030 # ever link correctly. If we're not using GNU ld we use -z text
9031 # though, which does catch some bad symbols but isn't as heavy-handed
9032 # as -z defs.
9033 no_undefined_flag='${wl}-z,text'
9034 allow_undefined_flag='${wl}-z,nodefs'
9035 archive_cmds_need_lc=no
9036 hardcode_shlibpath_var=no
9037 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9038 hardcode_libdir_separator=':'
9039 link_all_deplibs=yes
9040 export_dynamic_flag_spec='${wl}-Bexport'
9041 runpath_var='LD_RUN_PATH'
9042
9043 if test "$GCC" = yes; then
9044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 else
9047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 fi
9050 ;;
9051
9052 uts4*)
9053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054 hardcode_libdir_flag_spec='-L$libdir'
9055 hardcode_shlibpath_var=no
9056 ;;
9057
9058 *)
9059 ld_shlibs=no
9060 ;;
9061 esac
9062
9063 if test x$host_vendor = xsni; then
9064 case $host in
9065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9066 export_dynamic_flag_spec='${wl}-Blargedynsym'
9067 ;;
9068 esac
9069 fi
9070 fi
9071
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9073 $as_echo "$ld_shlibs" >&6; }
9074 test "$ld_shlibs" = no && can_build_shared=no
9075
9076 with_gnu_ld=$with_gnu_ld
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 #
9093 # Do we need to explicitly link libc?
9094 #
9095 case "x$archive_cmds_need_lc" in
9096 x|xyes)
9097 # Assume -lc should be added
9098 archive_cmds_need_lc=yes
9099
9100 if test "$enable_shared" = yes && test "$GCC" = yes; then
9101 case $archive_cmds in
9102 *'~'*)
9103 # FIXME: we may have to deal with multi-command sequences.
9104 ;;
9105 '$CC '*)
9106 # Test whether the compiler implicitly links with -lc since on some
9107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9108 # to ld, don't add -lc before -lgcc.
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9110 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9111 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 $RM conftest*
9115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9116
9117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9118 (eval $ac_compile) 2>&5
9119 ac_status=$?
9120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9121 test $ac_status = 0; } 2>conftest.err; then
9122 soname=conftest
9123 lib=conftest
9124 libobjs=conftest.$ac_objext
9125 deplibs=
9126 wl=$lt_prog_compiler_wl
9127 pic_flag=$lt_prog_compiler_pic
9128 compiler_flags=-v
9129 linker_flags=-v
9130 verstring=
9131 output_objdir=.
9132 libname=conftest
9133 lt_save_allow_undefined_flag=$allow_undefined_flag
9134 allow_undefined_flag=
9135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9136 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9137 ac_status=$?
9138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9139 test $ac_status = 0; }
9140 then
9141 lt_cv_archive_cmds_need_lc=no
9142 else
9143 lt_cv_archive_cmds_need_lc=yes
9144 fi
9145 allow_undefined_flag=$lt_save_allow_undefined_flag
9146 else
9147 cat conftest.err 1>&5
9148 fi
9149 $RM conftest*
9150
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9153 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9154 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9155 ;;
9156 esac
9157 fi
9158 ;;
9159 esac
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9318 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9319
9320 if test "$GCC" = yes; then
9321 case $host_os in
9322 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9323 *) lt_awk_arg="/^libraries:/" ;;
9324 esac
9325 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9326 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9327 # if the path contains ";" then we assume it to be the separator
9328 # otherwise default to the standard path separator (i.e. ":") - it is
9329 # assumed that no part of a normal pathname contains ";" but that should
9330 # okay in the real world where ";" in dirpaths is itself problematic.
9331 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9332 else
9333 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9334 fi
9335 # Ok, now we have the path, separated by spaces, we can step through it
9336 # and add multilib dir if necessary.
9337 lt_tmp_lt_search_path_spec=
9338 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9339 for lt_sys_path in $lt_search_path_spec; do
9340 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9342 else
9343 test -d "$lt_sys_path" && \
9344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9345 fi
9346 done
9347 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9348 BEGIN {RS=" "; FS="/|\n";} {
9349 lt_foo="";
9350 lt_count=0;
9351 for (lt_i = NF; lt_i > 0; lt_i--) {
9352 if ($lt_i != "" && $lt_i != ".") {
9353 if ($lt_i == "..") {
9354 lt_count++;
9355 } else {
9356 if (lt_count == 0) {
9357 lt_foo="/" $lt_i lt_foo;
9358 } else {
9359 lt_count--;
9360 }
9361 }
9362 }
9363 }
9364 if (lt_foo != "") { lt_freq[lt_foo]++; }
9365 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9366 }'`
9367 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9368 else
9369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9370 fi
9371 library_names_spec=
9372 libname_spec='lib$name'
9373 soname_spec=
9374 shrext_cmds=".so"
9375 postinstall_cmds=
9376 postuninstall_cmds=
9377 finish_cmds=
9378 finish_eval=
9379 shlibpath_var=
9380 shlibpath_overrides_runpath=unknown
9381 version_type=none
9382 dynamic_linker="$host_os ld.so"
9383 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9384 need_lib_prefix=unknown
9385 hardcode_into_libs=no
9386
9387 # when you set need_version to no, make sure it does not cause -set_version
9388 # flags to be left without arguments
9389 need_version=unknown
9390
9391 case $host_os in
9392 aix3*)
9393 version_type=linux
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9395 shlibpath_var=LIBPATH
9396
9397 # AIX 3 has no versioning support, so we append a major version to the name.
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 ;;
9400
9401 aix[4-9]*)
9402 version_type=linux
9403 need_lib_prefix=no
9404 need_version=no
9405 hardcode_into_libs=yes
9406 if test "$host_cpu" = ia64; then
9407 # AIX 5 supports IA64
9408 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 else
9411 # With GCC up to 2.95.x, collect2 would create an import file
9412 # for dependence libraries. The import file would start with
9413 # the line `#! .'. This would cause the generated library to
9414 # depend on `.', always an invalid library. This was fixed in
9415 # development snapshots of GCC prior to 3.0.
9416 case $host_os in
9417 aix4 | aix4.[01] | aix4.[01].*)
9418 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9419 echo ' yes '
9420 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9421 :
9422 else
9423 can_build_shared=no
9424 fi
9425 ;;
9426 esac
9427 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9428 # soname into executable. Probably we can add versioning support to
9429 # collect2, so additional links can be useful in future.
9430 if test "$aix_use_runtimelinking" = yes; then
9431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9432 # instead of lib<name>.a to let people know that these are not
9433 # typical AIX shared libraries.
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9435 else
9436 # We preserve .a as extension for shared libraries through AIX4.2
9437 # and later when we are not doing run time linking.
9438 library_names_spec='${libname}${release}.a $libname.a'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 fi
9441 shlibpath_var=LIBPATH
9442 fi
9443 ;;
9444
9445 amigaos*)
9446 case $host_cpu in
9447 powerpc)
9448 # Since July 2007 AmigaOS4 officially supports .so libraries.
9449 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 ;;
9452 m68k)
9453 library_names_spec='$libname.ixlibrary $libname.a'
9454 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9455 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'
9456 ;;
9457 esac
9458 ;;
9459
9460 beos*)
9461 library_names_spec='${libname}${shared_ext}'
9462 dynamic_linker="$host_os ld.so"
9463 shlibpath_var=LIBRARY_PATH
9464 ;;
9465
9466 bsdi[45]*)
9467 version_type=linux
9468 need_version=no
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9475 # the default ld.so.conf also contains /usr/contrib/lib and
9476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9477 # libtool to hard-code these into programs
9478 ;;
9479
9480 cygwin* | mingw* | pw32* | cegcc*)
9481 version_type=windows
9482 shrext_cmds=".dll"
9483 need_version=no
9484 need_lib_prefix=no
9485
9486 case $GCC,$host_os in
9487 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9488 library_names_spec='$libname.dll.a'
9489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9490 postinstall_cmds='base_file=`basename \${file}`~
9491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9492 dldir=$destdir/`dirname \$dlpath`~
9493 test -d \$dldir || mkdir -p \$dldir~
9494 $install_prog $dir/$dlname \$dldir/$dlname~
9495 chmod a+x \$dldir/$dlname~
9496 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9497 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9498 fi'
9499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9500 dlpath=$dir/\$dldll~
9501 $RM \$dlpath'
9502 shlibpath_overrides_runpath=yes
9503
9504 case $host_os in
9505 cygwin*)
9506 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9507 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9508 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9509 ;;
9510 mingw* | cegcc*)
9511 # MinGW DLLs use traditional 'lib' prefix
9512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9513 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9514 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9515 # It is most probably a Windows format PATH printed by
9516 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9517 # path with ; separators, and with drive letters. We can handle the
9518 # drive letters (cygwin fileutils understands them), so leave them,
9519 # especially as we might pass files found there to a mingw objdump,
9520 # which wouldn't understand a cygwinified path. Ahh.
9521 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9522 else
9523 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9524 fi
9525 ;;
9526 pw32*)
9527 # pw32 DLLs use 'pw' prefix rather than 'lib'
9528 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9529 ;;
9530 esac
9531 ;;
9532
9533 *)
9534 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9535 ;;
9536 esac
9537 dynamic_linker='Win32 ld.exe'
9538 # FIXME: first we should search . and the directory the executable is in
9539 shlibpath_var=PATH
9540 ;;
9541
9542 darwin* | rhapsody*)
9543 dynamic_linker="$host_os dyld"
9544 version_type=darwin
9545 need_lib_prefix=no
9546 need_version=no
9547 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9548 soname_spec='${libname}${release}${major}$shared_ext'
9549 shlibpath_overrides_runpath=yes
9550 shlibpath_var=DYLD_LIBRARY_PATH
9551 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9552
9553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9555 ;;
9556
9557 dgux*)
9558 version_type=linux
9559 need_lib_prefix=no
9560 need_version=no
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 ;;
9565
9566 freebsd1*)
9567 dynamic_linker=no
9568 ;;
9569
9570 freebsd* | dragonfly*)
9571 # DragonFly does not have aout. When/if they implement a new
9572 # versioning mechanism, adjust this.
9573 if test -x /usr/bin/objformat; then
9574 objformat=`/usr/bin/objformat`
9575 else
9576 case $host_os in
9577 freebsd[123]*) objformat=aout ;;
9578 *) objformat=elf ;;
9579 esac
9580 fi
9581 version_type=freebsd-$objformat
9582 case $version_type in
9583 freebsd-elf*)
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9585 need_version=no
9586 need_lib_prefix=no
9587 ;;
9588 freebsd-*)
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9590 need_version=yes
9591 ;;
9592 esac
9593 shlibpath_var=LD_LIBRARY_PATH
9594 case $host_os in
9595 freebsd2*)
9596 shlibpath_overrides_runpath=yes
9597 ;;
9598 freebsd3.[01]* | freebsdelf3.[01]*)
9599 shlibpath_overrides_runpath=yes
9600 hardcode_into_libs=yes
9601 ;;
9602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9604 shlibpath_overrides_runpath=no
9605 hardcode_into_libs=yes
9606 ;;
9607 *) # from 4.6 on, and DragonFly
9608 shlibpath_overrides_runpath=yes
9609 hardcode_into_libs=yes
9610 ;;
9611 esac
9612 ;;
9613
9614 gnu*)
9615 version_type=linux
9616 need_lib_prefix=no
9617 need_version=no
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9619 soname_spec='${libname}${release}${shared_ext}$major'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 hardcode_into_libs=yes
9622 ;;
9623
9624 hpux9* | hpux10* | hpux11*)
9625 # Give a soname corresponding to the major version so that dld.sl refuses to
9626 # link against other versions.
9627 version_type=sunos
9628 need_lib_prefix=no
9629 need_version=no
9630 case $host_cpu in
9631 ia64*)
9632 shrext_cmds='.so'
9633 hardcode_into_libs=yes
9634 dynamic_linker="$host_os dld.so"
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 if test "X$HPUX_IA64_MODE" = X32; then
9640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9641 else
9642 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9643 fi
9644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9645 ;;
9646 hppa*64*)
9647 shrext_cmds='.sl'
9648 hardcode_into_libs=yes
9649 dynamic_linker="$host_os dld.sl"
9650 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9656 ;;
9657 *)
9658 shrext_cmds='.sl'
9659 dynamic_linker="$host_os dld.sl"
9660 shlibpath_var=SHLIB_PATH
9661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 ;;
9665 esac
9666 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9667 postinstall_cmds='chmod 555 $lib'
9668 ;;
9669
9670 interix[3-9]*)
9671 version_type=linux
9672 need_lib_prefix=no
9673 need_version=no
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 shlibpath_overrides_runpath=no
9679 hardcode_into_libs=yes
9680 ;;
9681
9682 irix5* | irix6* | nonstopux*)
9683 case $host_os in
9684 nonstopux*) version_type=nonstopux ;;
9685 *)
9686 if test "$lt_cv_prog_gnu_ld" = yes; then
9687 version_type=linux
9688 else
9689 version_type=irix
9690 fi ;;
9691 esac
9692 need_lib_prefix=no
9693 need_version=no
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9696 case $host_os in
9697 irix5* | nonstopux*)
9698 libsuff= shlibsuff=
9699 ;;
9700 *)
9701 case $LD in # libtool.m4 will add one of these switches to LD
9702 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9703 libsuff= shlibsuff= libmagic=32-bit;;
9704 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9705 libsuff=32 shlibsuff=N32 libmagic=N32;;
9706 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9707 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9708 *) libsuff= shlibsuff= libmagic=never-match;;
9709 esac
9710 ;;
9711 esac
9712 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9713 shlibpath_overrides_runpath=no
9714 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9715 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9716 hardcode_into_libs=yes
9717 ;;
9718
9719 # No shared lib support for Linux oldld, aout, or coff.
9720 linux*oldld* | linux*aout* | linux*coff*)
9721 dynamic_linker=no
9722 ;;
9723
9724 # This must be Linux ELF.
9725 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9726 version_type=linux
9727 need_lib_prefix=no
9728 need_version=no
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9732 shlibpath_var=LD_LIBRARY_PATH
9733 shlibpath_overrides_runpath=no
9734
9735 # Some binutils ld are patched to set DT_RUNPATH
9736 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 lt_cv_shlibpath_overrides_runpath=no
9740 save_LDFLAGS=$LDFLAGS
9741 save_libdir=$libdir
9742 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9743 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9744 if test x$gcc_no_link = xyes; then
9745 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9746 fi
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749
9750 int
9751 main ()
9752 {
9753
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"; then :
9759 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9760 lt_cv_shlibpath_overrides_runpath=yes
9761 fi
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LDFLAGS=$save_LDFLAGS
9766 libdir=$save_libdir
9767
9768 fi
9769
9770 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9771
9772 # This implies no fast_install, which is unacceptable.
9773 # Some rework will be needed to allow for fast_install
9774 # before this can be enabled.
9775 hardcode_into_libs=yes
9776
9777 # Append ld.so.conf contents to the search path
9778 if test -f /etc/ld.so.conf; then
9779 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' ' '`
9780 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9781 fi
9782
9783 # We used to test for /lib/ld.so.1 and disable shared libraries on
9784 # powerpc, because MkLinux only supported shared libraries with the
9785 # GNU dynamic linker. Since this was broken with cross compilers,
9786 # most powerpc-linux boxes support dynamic linking these days and
9787 # people can always --disable-shared, the test was removed, and we
9788 # assume the GNU/Linux dynamic linker is in use.
9789 dynamic_linker='GNU/Linux ld.so'
9790 ;;
9791
9792 netbsd*)
9793 version_type=sunos
9794 need_lib_prefix=no
9795 need_version=no
9796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9799 dynamic_linker='NetBSD (a.out) ld.so'
9800 else
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 dynamic_linker='NetBSD ld.elf_so'
9804 fi
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=yes
9807 hardcode_into_libs=yes
9808 ;;
9809
9810 newsos6)
9811 version_type=linux
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 shlibpath_overrides_runpath=yes
9815 ;;
9816
9817 *nto* | *qnx*)
9818 version_type=qnx
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 shlibpath_overrides_runpath=no
9825 hardcode_into_libs=yes
9826 dynamic_linker='ldqnx.so'
9827 ;;
9828
9829 openbsd*)
9830 version_type=sunos
9831 sys_lib_dlsearch_path_spec="/usr/lib"
9832 need_lib_prefix=no
9833 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9834 case $host_os in
9835 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9836 *) need_version=no ;;
9837 esac
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9842 case $host_os in
9843 openbsd2.[89] | openbsd2.[89].*)
9844 shlibpath_overrides_runpath=no
9845 ;;
9846 *)
9847 shlibpath_overrides_runpath=yes
9848 ;;
9849 esac
9850 else
9851 shlibpath_overrides_runpath=yes
9852 fi
9853 ;;
9854
9855 os2*)
9856 libname_spec='$name'
9857 shrext_cmds=".dll"
9858 need_lib_prefix=no
9859 library_names_spec='$libname${shared_ext} $libname.a'
9860 dynamic_linker='OS/2 ld.exe'
9861 shlibpath_var=LIBPATH
9862 ;;
9863
9864 osf3* | osf4* | osf5*)
9865 version_type=osf
9866 need_lib_prefix=no
9867 need_version=no
9868 soname_spec='${libname}${release}${shared_ext}$major'
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9872 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9873 ;;
9874
9875 rdos*)
9876 dynamic_linker=no
9877 ;;
9878
9879 solaris*)
9880 version_type=linux
9881 need_lib_prefix=no
9882 need_version=no
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 shlibpath_overrides_runpath=yes
9887 hardcode_into_libs=yes
9888 # ldd complains unless libraries are executable
9889 postinstall_cmds='chmod +x $lib'
9890 ;;
9891
9892 sunos4*)
9893 version_type=sunos
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9895 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 shlibpath_overrides_runpath=yes
9898 if test "$with_gnu_ld" = yes; then
9899 need_lib_prefix=no
9900 fi
9901 need_version=yes
9902 ;;
9903
9904 sysv4 | sysv4.3*)
9905 version_type=linux
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 case $host_vendor in
9910 sni)
9911 shlibpath_overrides_runpath=no
9912 need_lib_prefix=no
9913 runpath_var=LD_RUN_PATH
9914 ;;
9915 siemens)
9916 need_lib_prefix=no
9917 ;;
9918 motorola)
9919 need_lib_prefix=no
9920 need_version=no
9921 shlibpath_overrides_runpath=no
9922 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9923 ;;
9924 esac
9925 ;;
9926
9927 sysv4*MP*)
9928 if test -d /usr/nec ;then
9929 version_type=linux
9930 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9931 soname_spec='$libname${shared_ext}.$major'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 fi
9934 ;;
9935
9936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9937 version_type=freebsd-elf
9938 need_lib_prefix=no
9939 need_version=no
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 shlibpath_overrides_runpath=yes
9944 hardcode_into_libs=yes
9945 if test "$with_gnu_ld" = yes; then
9946 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9947 else
9948 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9949 case $host_os in
9950 sco3.2v5*)
9951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9952 ;;
9953 esac
9954 fi
9955 sys_lib_dlsearch_path_spec='/usr/lib'
9956 ;;
9957
9958 tpf*)
9959 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 shlibpath_overrides_runpath=no
9966 hardcode_into_libs=yes
9967 ;;
9968
9969 uts4*)
9970 version_type=linux
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 ;;
9975
9976 *)
9977 dynamic_linker=no
9978 ;;
9979 esac
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9981 $as_echo "$dynamic_linker" >&6; }
9982 test "$dynamic_linker" = no && can_build_shared=no
9983
9984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9985 if test "$GCC" = yes; then
9986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9987 fi
9988
9989 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9990 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9991 fi
9992 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9993 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9994 fi
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10083 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10084 hardcode_action=
10085 if test -n "$hardcode_libdir_flag_spec" ||
10086 test -n "$runpath_var" ||
10087 test "X$hardcode_automatic" = "Xyes" ; then
10088
10089 # We can hardcode non-existent directories.
10090 if test "$hardcode_direct" != no &&
10091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10092 # have to relink, otherwise we might link with an installed library
10093 # when we should be linking with a yet-to-be-installed one
10094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10095 test "$hardcode_minus_L" != no; then
10096 # Linking always hardcodes the temporary library directory.
10097 hardcode_action=relink
10098 else
10099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10100 hardcode_action=immediate
10101 fi
10102 else
10103 # We cannot hardcode anything, or else we can only hardcode existing
10104 # directories.
10105 hardcode_action=unsupported
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10108 $as_echo "$hardcode_action" >&6; }
10109
10110 if test "$hardcode_action" = relink ||
10111 test "$inherit_rpath" = yes; then
10112 # Fast installation is not supported
10113 enable_fast_install=no
10114 elif test "$shlibpath_overrides_runpath" = yes ||
10115 test "$enable_shared" = no; then
10116 # Fast installation is not necessary
10117 enable_fast_install=needless
10118 fi
10119
10120
10121
10122
10123
10124
10125 if test "x$enable_dlopen" != xyes; then
10126 enable_dlopen=unknown
10127 enable_dlopen_self=unknown
10128 enable_dlopen_self_static=unknown
10129 else
10130 lt_cv_dlopen=no
10131 lt_cv_dlopen_libs=
10132
10133 case $host_os in
10134 beos*)
10135 lt_cv_dlopen="load_add_on"
10136 lt_cv_dlopen_libs=
10137 lt_cv_dlopen_self=yes
10138 ;;
10139
10140 mingw* | pw32* | cegcc*)
10141 lt_cv_dlopen="LoadLibrary"
10142 lt_cv_dlopen_libs=
10143 ;;
10144
10145 cygwin*)
10146 lt_cv_dlopen="dlopen"
10147 lt_cv_dlopen_libs=
10148 ;;
10149
10150 darwin*)
10151 # if libdl is installed we need to link against it
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10153 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-ldl $LIBS"
10159 if test x$gcc_no_link = xyes; then
10160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10161 fi
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char dlopen ();
10172 int
10173 main ()
10174 {
10175 return dlopen ();
10176 ;
10177 return 0;
10178 }
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10181 ac_cv_lib_dl_dlopen=yes
10182 else
10183 ac_cv_lib_dl_dlopen=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10188 fi
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10190 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10191 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10193 else
10194
10195 lt_cv_dlopen="dyld"
10196 lt_cv_dlopen_libs=
10197 lt_cv_dlopen_self=yes
10198
10199 fi
10200
10201 ;;
10202
10203 *)
10204 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10205 if test "x$ac_cv_func_shl_load" = x""yes; then :
10206 lt_cv_dlopen="shl_load"
10207 else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10209 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10210 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 ac_check_lib_save_LIBS=$LIBS
10214 LIBS="-ldld $LIBS"
10215 if test x$gcc_no_link = xyes; then
10216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10217 fi
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char shl_load ();
10228 int
10229 main ()
10230 {
10231 return shl_load ();
10232 ;
10233 return 0;
10234 }
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 ac_cv_lib_dld_shl_load=yes
10238 else
10239 ac_cv_lib_dld_shl_load=no
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 LIBS=$ac_check_lib_save_LIBS
10244 fi
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10246 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10247 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10249 else
10250 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10251 if test "x$ac_cv_func_dlopen" = x""yes; then :
10252 lt_cv_dlopen="dlopen"
10253 else
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10255 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 ac_check_lib_save_LIBS=$LIBS
10260 LIBS="-ldl $LIBS"
10261 if test x$gcc_no_link = xyes; then
10262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10263 fi
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10270 #ifdef __cplusplus
10271 extern "C"
10272 #endif
10273 char dlopen ();
10274 int
10275 main ()
10276 {
10277 return dlopen ();
10278 ;
10279 return 0;
10280 }
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 ac_cv_lib_dl_dlopen=yes
10284 else
10285 ac_cv_lib_dl_dlopen=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10293 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10297 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10298 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-lsvld $LIBS"
10303 if test x$gcc_no_link = xyes; then
10304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10305 fi
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10308
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char dlopen ();
10316 int
10317 main ()
10318 {
10319 return dlopen ();
10320 ;
10321 return 0;
10322 }
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325 ac_cv_lib_svld_dlopen=yes
10326 else
10327 ac_cv_lib_svld_dlopen=no
10328 fi
10329 rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10331 LIBS=$ac_check_lib_save_LIBS
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10334 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10335 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10339 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10340 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 ac_check_lib_save_LIBS=$LIBS
10344 LIBS="-ldld $LIBS"
10345 if test x$gcc_no_link = xyes; then
10346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10347 fi
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char dld_link ();
10358 int
10359 main ()
10360 {
10361 return dld_link ();
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_lib_dld_dld_link=yes
10368 else
10369 ac_cv_lib_dld_dld_link=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10376 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10377 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10378 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10379 fi
10380
10381
10382 fi
10383
10384
10385 fi
10386
10387
10388 fi
10389
10390
10391 fi
10392
10393
10394 fi
10395
10396 ;;
10397 esac
10398
10399 if test "x$lt_cv_dlopen" != xno; then
10400 enable_dlopen=yes
10401 else
10402 enable_dlopen=no
10403 fi
10404
10405 case $lt_cv_dlopen in
10406 dlopen)
10407 save_CPPFLAGS="$CPPFLAGS"
10408 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10409
10410 save_LDFLAGS="$LDFLAGS"
10411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10412
10413 save_LIBS="$LIBS"
10414 LIBS="$lt_cv_dlopen_libs $LIBS"
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10417 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10418 if test "${lt_cv_dlopen_self+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 if test "$cross_compiling" = yes; then :
10422 lt_cv_dlopen_self=cross
10423 else
10424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10425 lt_status=$lt_dlunknown
10426 cat > conftest.$ac_ext <<_LT_EOF
10427 #line 10427 "configure"
10428 #include "confdefs.h"
10429
10430 #if HAVE_DLFCN_H
10431 #include <dlfcn.h>
10432 #endif
10433
10434 #include <stdio.h>
10435
10436 #ifdef RTLD_GLOBAL
10437 # define LT_DLGLOBAL RTLD_GLOBAL
10438 #else
10439 # ifdef DL_GLOBAL
10440 # define LT_DLGLOBAL DL_GLOBAL
10441 # else
10442 # define LT_DLGLOBAL 0
10443 # endif
10444 #endif
10445
10446 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10447 find out it does not work in some platform. */
10448 #ifndef LT_DLLAZY_OR_NOW
10449 # ifdef RTLD_LAZY
10450 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10451 # else
10452 # ifdef DL_LAZY
10453 # define LT_DLLAZY_OR_NOW DL_LAZY
10454 # else
10455 # ifdef RTLD_NOW
10456 # define LT_DLLAZY_OR_NOW RTLD_NOW
10457 # else
10458 # ifdef DL_NOW
10459 # define LT_DLLAZY_OR_NOW DL_NOW
10460 # else
10461 # define LT_DLLAZY_OR_NOW 0
10462 # endif
10463 # endif
10464 # endif
10465 # endif
10466 #endif
10467
10468 void fnord() { int i=42;}
10469 int main ()
10470 {
10471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10472 int status = $lt_dlunknown;
10473
10474 if (self)
10475 {
10476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10478 /* dlclose (self); */
10479 }
10480 else
10481 puts (dlerror ());
10482
10483 return status;
10484 }
10485 _LT_EOF
10486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10487 (eval $ac_link) 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10491 (./conftest; exit; ) >&5 2>/dev/null
10492 lt_status=$?
10493 case x$lt_status in
10494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10497 esac
10498 else :
10499 # compilation failed
10500 lt_cv_dlopen_self=no
10501 fi
10502 fi
10503 rm -fr conftest*
10504
10505
10506 fi
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10508 $as_echo "$lt_cv_dlopen_self" >&6; }
10509
10510 if test "x$lt_cv_dlopen_self" = xyes; then
10511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10514 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 if test "$cross_compiling" = yes; then :
10518 lt_cv_dlopen_self_static=cross
10519 else
10520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10521 lt_status=$lt_dlunknown
10522 cat > conftest.$ac_ext <<_LT_EOF
10523 #line 10523 "configure"
10524 #include "confdefs.h"
10525
10526 #if HAVE_DLFCN_H
10527 #include <dlfcn.h>
10528 #endif
10529
10530 #include <stdio.h>
10531
10532 #ifdef RTLD_GLOBAL
10533 # define LT_DLGLOBAL RTLD_GLOBAL
10534 #else
10535 # ifdef DL_GLOBAL
10536 # define LT_DLGLOBAL DL_GLOBAL
10537 # else
10538 # define LT_DLGLOBAL 0
10539 # endif
10540 #endif
10541
10542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10543 find out it does not work in some platform. */
10544 #ifndef LT_DLLAZY_OR_NOW
10545 # ifdef RTLD_LAZY
10546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10547 # else
10548 # ifdef DL_LAZY
10549 # define LT_DLLAZY_OR_NOW DL_LAZY
10550 # else
10551 # ifdef RTLD_NOW
10552 # define LT_DLLAZY_OR_NOW RTLD_NOW
10553 # else
10554 # ifdef DL_NOW
10555 # define LT_DLLAZY_OR_NOW DL_NOW
10556 # else
10557 # define LT_DLLAZY_OR_NOW 0
10558 # endif
10559 # endif
10560 # endif
10561 # endif
10562 #endif
10563
10564 void fnord() { int i=42;}
10565 int main ()
10566 {
10567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10568 int status = $lt_dlunknown;
10569
10570 if (self)
10571 {
10572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10573 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10574 /* dlclose (self); */
10575 }
10576 else
10577 puts (dlerror ());
10578
10579 return status;
10580 }
10581 _LT_EOF
10582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10583 (eval $ac_link) 2>&5
10584 ac_status=$?
10585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10586 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10587 (./conftest; exit; ) >&5 2>/dev/null
10588 lt_status=$?
10589 case x$lt_status in
10590 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10591 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10592 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10593 esac
10594 else :
10595 # compilation failed
10596 lt_cv_dlopen_self_static=no
10597 fi
10598 fi
10599 rm -fr conftest*
10600
10601
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10604 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10605 fi
10606
10607 CPPFLAGS="$save_CPPFLAGS"
10608 LDFLAGS="$save_LDFLAGS"
10609 LIBS="$save_LIBS"
10610 ;;
10611 esac
10612
10613 case $lt_cv_dlopen_self in
10614 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10615 *) enable_dlopen_self=unknown ;;
10616 esac
10617
10618 case $lt_cv_dlopen_self_static in
10619 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10620 *) enable_dlopen_self_static=unknown ;;
10621 esac
10622 fi
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640 striplib=
10641 old_striplib=
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10643 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10644 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10646 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }
10649 else
10650 # FIXME - insert some real tests, host_os isn't really good enough
10651 case $host_os in
10652 darwin*)
10653 if test -n "$STRIP" ; then
10654 striplib="$STRIP -x"
10655 old_striplib="$STRIP -S"
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10661 fi
10662 ;;
10663 *)
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10666 ;;
10667 esac
10668 fi
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681 # Report which library types will actually be built
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10683 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10685 $as_echo "$can_build_shared" >&6; }
10686
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10688 $as_echo_n "checking whether to build shared libraries... " >&6; }
10689 test "$can_build_shared" = "no" && enable_shared=no
10690
10691 # On AIX, shared libraries and static libraries use the same namespace, and
10692 # are all built from PIC.
10693 case $host_os in
10694 aix3*)
10695 test "$enable_shared" = yes && enable_static=no
10696 if test -n "$RANLIB"; then
10697 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10698 postinstall_cmds='$RANLIB $lib'
10699 fi
10700 ;;
10701
10702 aix[4-9]*)
10703 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10704 test "$enable_shared" = yes && enable_static=no
10705 fi
10706 ;;
10707 esac
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10709 $as_echo "$enable_shared" >&6; }
10710
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10712 $as_echo_n "checking whether to build static libraries... " >&6; }
10713 # Make sure either enable_shared or enable_static is yes.
10714 test "$enable_shared" = yes || enable_static=yes
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10716 $as_echo "$enable_static" >&6; }
10717
10718
10719
10720
10721 fi
10722 ac_ext=c
10723 ac_cpp='$CPP $CPPFLAGS'
10724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10727
10728 CC="$lt_save_CC"
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742 ac_config_commands="$ac_config_commands libtool"
10743
10744
10745
10746
10747 # Only expand once:
10748
10749
10750
10751 if test "x$CC" != xcc; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10753 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10754 else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10756 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10757 fi
10758 set dummy $CC; ac_cc=`$as_echo "$2" |
10759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10760 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765
10766 int
10767 main ()
10768 {
10769
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 # Make sure it works both with $CC and with simple cc.
10775 # We do the test twice because some compilers refuse to overwrite an
10776 # existing .o file with -o, though they will create one.
10777 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10778 rm -f conftest2.*
10779 if { { case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10784 $as_echo "$ac_try_echo"; } >&5
10785 (eval "$ac_try") 2>&5
10786 ac_status=$?
10787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10788 test $ac_status = 0; } &&
10789 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10794 $as_echo "$ac_try_echo"; } >&5
10795 (eval "$ac_try") 2>&5
10796 ac_status=$?
10797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10798 test $ac_status = 0; };
10799 then
10800 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10801 if test "x$CC" != xcc; then
10802 # Test first that cc exists at all.
10803 if { ac_try='cc -c conftest.$ac_ext >&5'
10804 { { case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807 esac
10808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10809 $as_echo "$ac_try_echo"; } >&5
10810 (eval "$ac_try") 2>&5
10811 ac_status=$?
10812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813 test $ac_status = 0; }; }; then
10814 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10815 rm -f conftest2.*
10816 if { { case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10821 $as_echo "$ac_try_echo"; } >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825 test $ac_status = 0; } &&
10826 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829 esac
10830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10831 $as_echo "$ac_try_echo"; } >&5
10832 (eval "$ac_try") 2>&5
10833 ac_status=$?
10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; };
10836 then
10837 # cc works too.
10838 :
10839 else
10840 # cc exists but doesn't like -o.
10841 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10842 fi
10843 fi
10844 fi
10845 else
10846 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10847 fi
10848 rm -f core conftest*
10849
10850 fi
10851 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857
10858 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
10859
10860 fi
10861
10862 # expand $ac_aux_dir to an absolute path
10863 am_aux_dir=`cd $ac_aux_dir && pwd`
10864
10865 # FIXME: we rely on the cache variable name because
10866 # there is no other way.
10867 set dummy $CC
10868 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10869 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10870 if test "$am_t" != yes; then
10871 # Losing compiler, so override with the script.
10872 # FIXME: It is wrong to rewrite CC.
10873 # But if we don't then we get into trouble of one sort or another.
10874 # A longer-term fix would be to have automake use am__CC in this case,
10875 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10876 CC="$am_aux_dir/compile $CC"
10877 fi
10878
10879
10880
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10882 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10883 set x ${MAKE-make}
10884 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10885 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 cat >conftest.make <<\_ACEOF
10889 SHELL = /bin/sh
10890 all:
10891 @echo '@@@%%%=$(MAKE)=@@@%%%'
10892 _ACEOF
10893 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10894 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10895 *@@@%%%=?*=@@@%%%*)
10896 eval ac_cv_prog_make_${ac_make}_set=yes;;
10897 *)
10898 eval ac_cv_prog_make_${ac_make}_set=no;;
10899 esac
10900 rm -f conftest.make
10901 fi
10902 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10904 $as_echo "yes" >&6; }
10905 SET_MAKE=
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10909 SET_MAKE="MAKE=${MAKE-make}"
10910 fi
10911
10912
10913 # -------
10914 # Headers
10915 # -------
10916
10917 # Sanity check for the cross-compilation case:
10918 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
10919 if test "x$ac_cv_header_stdio_h" = x""yes; then :
10920 :
10921 else
10922 as_fn_error "Can't find stdio.h.
10923 You must have a usable C system for the target already installed, at least
10924 including headers and, preferably, the library, before you can configure
10925 the Objective C runtime system. If necessary, install gcc now with
10926 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
10927 fi
10928
10929
10930
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10932 $as_echo_n "checking for ANSI C header files... " >&6; }
10933 if test "${ac_cv_header_stdc+set}" = set; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 #include <stdlib.h>
10939 #include <stdarg.h>
10940 #include <string.h>
10941 #include <float.h>
10942
10943 int
10944 main ()
10945 {
10946
10947 ;
10948 return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_compile "$LINENO"; then :
10952 ac_cv_header_stdc=yes
10953 else
10954 ac_cv_header_stdc=no
10955 fi
10956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957
10958 if test $ac_cv_header_stdc = yes; then
10959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #include <string.h>
10963
10964 _ACEOF
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966 $EGREP "memchr" >/dev/null 2>&1; then :
10967
10968 else
10969 ac_cv_header_stdc=no
10970 fi
10971 rm -f conftest*
10972
10973 fi
10974
10975 if test $ac_cv_header_stdc = yes; then
10976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979 #include <stdlib.h>
10980
10981 _ACEOF
10982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10983 $EGREP "free" >/dev/null 2>&1; then :
10984
10985 else
10986 ac_cv_header_stdc=no
10987 fi
10988 rm -f conftest*
10989
10990 fi
10991
10992 if test $ac_cv_header_stdc = yes; then
10993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10994 if test "$cross_compiling" = yes; then :
10995 :
10996 else
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
10999 #include <ctype.h>
11000 #include <stdlib.h>
11001 #if ((' ' & 0x0FF) == 0x020)
11002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11004 #else
11005 # define ISLOWER(c) \
11006 (('a' <= (c) && (c) <= 'i') \
11007 || ('j' <= (c) && (c) <= 'r') \
11008 || ('s' <= (c) && (c) <= 'z'))
11009 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11010 #endif
11011
11012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11013 int
11014 main ()
11015 {
11016 int i;
11017 for (i = 0; i < 256; i++)
11018 if (XOR (islower (i), ISLOWER (i))
11019 || toupper (i) != TOUPPER (i))
11020 return 2;
11021 return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_run "$LINENO"; then :
11025
11026 else
11027 ac_cv_header_stdc=no
11028 fi
11029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11030 conftest.$ac_objext conftest.beam conftest.$ac_ext
11031 fi
11032
11033 fi
11034 fi
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11036 $as_echo "$ac_cv_header_stdc" >&6; }
11037 if test $ac_cv_header_stdc = yes; then
11038
11039 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11040
11041 fi
11042
11043
11044 for ac_header in sched.h
11045 do :
11046 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11047 if test "x$ac_cv_header_sched_h" = x""yes; then :
11048 cat >>confdefs.h <<_ACEOF
11049 #define HAVE_SCHED_H 1
11050 _ACEOF
11051
11052 fi
11053
11054 done
11055
11056
11057 # -----------
11058 # Miscellanea
11059 # -----------
11060
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11062 $as_echo_n "checking for thread model used by GCC... " >&6; }
11063 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11065 $as_echo "$target_thread_file" >&6; }
11066
11067 if test $target_thread_file != single; then
11068
11069 $as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
11070
11071 fi
11072
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
11075 $as_echo_n "checking for exception model to use... " >&6; }
11076 ac_ext=c
11077 ac_cpp='$CPP $CPPFLAGS'
11078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11081
11082 # Check whether --enable-sjlj-exceptions was given.
11083 if test "${enable_sjlj_exceptions+set}" = set; then :
11084 enableval=$enable_sjlj_exceptions; :
11085 else
11086 cat > conftest.$ac_ext << EOF
11087 #line 11087 "configure"
11088 @interface Frob
11089 @end
11090 @implementation Frob
11091 @end
11092 int proc();
11093 int foo()
11094 {
11095 @try {
11096 return proc();
11097 }
11098 @catch (Frob* ex) {
11099 return 0;
11100 }
11101 }
11102 EOF
11103 old_CFLAGS="$CFLAGS"
11104 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
11105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11106 (eval $ac_compile) 2>&5
11107 ac_status=$?
11108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11109 test $ac_status = 0; }; then
11110 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
11111 enable_sjlj_exceptions=yes
11112 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
11113 enable_sjlj_exceptions=no
11114 fi
11115 fi
11116 CFLAGS="$old_CFLAGS"
11117 rm -f conftest*
11118 fi
11119
11120 if test x$enable_sjlj_exceptions = xyes; then
11121
11122 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
11123
11124 ac_exception_model_name=sjlj
11125 elif test x$enable_sjlj_exceptions = xno; then
11126 ac_exception_model_name="call frame"
11127 else
11128 as_fn_error "unable to detect exception model" "$LINENO" 5
11129 fi
11130 ac_ext=c
11131 ac_cpp='$CPP $CPPFLAGS'
11132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11135
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
11137 $as_echo "$ac_exception_model_name" >&6; }
11138
11139 # ------
11140 # Output
11141 # ------
11142
11143 if test ${multilib} = yes; then
11144 multilib_arg="--enable-multilib"
11145 else
11146 multilib_arg=
11147 fi
11148
11149 ac_config_files="$ac_config_files Makefile"
11150
11151 cat >confcache <<\_ACEOF
11152 # This file is a shell script that caches the results of configure
11153 # tests run on this system so they can be shared between configure
11154 # scripts and configure runs, see configure's option --config-cache.
11155 # It is not useful on other systems. If it contains results you don't
11156 # want to keep, you may remove or edit it.
11157 #
11158 # config.status only pays attention to the cache file if you give it
11159 # the --recheck option to rerun configure.
11160 #
11161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11163 # following values.
11164
11165 _ACEOF
11166
11167 # The following way of writing the cache mishandles newlines in values,
11168 # but we know of no workaround that is simple, portable, and efficient.
11169 # So, we kill variables containing newlines.
11170 # Ultrix sh set writes to stderr and can't be redirected directly,
11171 # and sets the high bit in the cache file unless we assign to the vars.
11172 (
11173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11174 eval ac_val=\$$ac_var
11175 case $ac_val in #(
11176 *${as_nl}*)
11177 case $ac_var in #(
11178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11180 esac
11181 case $ac_var in #(
11182 _ | IFS | as_nl) ;; #(
11183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11184 *) { eval $ac_var=; unset $ac_var;} ;;
11185 esac ;;
11186 esac
11187 done
11188
11189 (set) 2>&1 |
11190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11191 *${as_nl}ac_space=\ *)
11192 # `set' does not quote correctly, so add quotes: double-quote
11193 # substitution turns \\\\ into \\, and sed turns \\ into \.
11194 sed -n \
11195 "s/'/'\\\\''/g;
11196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11197 ;; #(
11198 *)
11199 # `set' quotes correctly as required by POSIX, so do not add quotes.
11200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11201 ;;
11202 esac |
11203 sort
11204 ) |
11205 sed '
11206 /^ac_cv_env_/b end
11207 t clear
11208 :clear
11209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11210 t end
11211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11212 :end' >>confcache
11213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11214 if test -w "$cache_file"; then
11215 test "x$cache_file" != "x/dev/null" &&
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11217 $as_echo "$as_me: updating cache $cache_file" >&6;}
11218 cat confcache >$cache_file
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11221 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11222 fi
11223 fi
11224 rm -f confcache
11225
11226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11227 # Let make expand exec_prefix.
11228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11229
11230 DEFS=-DHAVE_CONFIG_H
11231
11232 ac_libobjs=
11233 ac_ltlibobjs=
11234 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11235 # 1. Remove the extension, and $U if already installed.
11236 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11237 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11238 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11239 # will be set to the directory where LIBOBJS objects are built.
11240 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11241 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11242 done
11243 LIBOBJS=$ac_libobjs
11244
11245 LTLIBOBJS=$ac_ltlibobjs
11246
11247
11248 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11249 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11251 fi
11252
11253 : ${CONFIG_STATUS=./config.status}
11254 ac_write_fail=0
11255 ac_clean_files_save=$ac_clean_files
11256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11258 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11259 as_write_fail=0
11260 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11261 #! $SHELL
11262 # Generated by $as_me.
11263 # Run this file to recreate the current configuration.
11264 # Compiler output produced by configure, useful for debugging
11265 # configure, is in config.log if it exists.
11266
11267 debug=false
11268 ac_cs_recheck=false
11269 ac_cs_silent=false
11270
11271 SHELL=\${CONFIG_SHELL-$SHELL}
11272 export SHELL
11273 _ASEOF
11274 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11275 ## -------------------- ##
11276 ## M4sh Initialization. ##
11277 ## -------------------- ##
11278
11279 # Be more Bourne compatible
11280 DUALCASE=1; export DUALCASE # for MKS sh
11281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11282 emulate sh
11283 NULLCMD=:
11284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11285 # is contrary to our usage. Disable this feature.
11286 alias -g '${1+"$@"}'='"$@"'
11287 setopt NO_GLOB_SUBST
11288 else
11289 case `(set -o) 2>/dev/null` in #(
11290 *posix*) :
11291 set -o posix ;; #(
11292 *) :
11293 ;;
11294 esac
11295 fi
11296
11297
11298 as_nl='
11299 '
11300 export as_nl
11301 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11302 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11304 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11305 # Prefer a ksh shell builtin over an external printf program on Solaris,
11306 # but without wasting forks for bash or zsh.
11307 if test -z "$BASH_VERSION$ZSH_VERSION" \
11308 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11309 as_echo='print -r --'
11310 as_echo_n='print -rn --'
11311 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11312 as_echo='printf %s\n'
11313 as_echo_n='printf %s'
11314 else
11315 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11316 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11317 as_echo_n='/usr/ucb/echo -n'
11318 else
11319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11320 as_echo_n_body='eval
11321 arg=$1;
11322 case $arg in #(
11323 *"$as_nl"*)
11324 expr "X$arg" : "X\\(.*\\)$as_nl";
11325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11326 esac;
11327 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11328 '
11329 export as_echo_n_body
11330 as_echo_n='sh -c $as_echo_n_body as_echo'
11331 fi
11332 export as_echo_body
11333 as_echo='sh -c $as_echo_body as_echo'
11334 fi
11335
11336 # The user is always right.
11337 if test "${PATH_SEPARATOR+set}" != set; then
11338 PATH_SEPARATOR=:
11339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11340 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11341 PATH_SEPARATOR=';'
11342 }
11343 fi
11344
11345
11346 # IFS
11347 # We need space, tab and new line, in precisely that order. Quoting is
11348 # there to prevent editors from complaining about space-tab.
11349 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11350 # splitting by setting IFS to empty value.)
11351 IFS=" "" $as_nl"
11352
11353 # Find who we are. Look in the path if we contain no directory separator.
11354 case $0 in #((
11355 *[\\/]* ) as_myself=$0 ;;
11356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11362 done
11363 IFS=$as_save_IFS
11364
11365 ;;
11366 esac
11367 # We did not find ourselves, most probably we were run as `sh COMMAND'
11368 # in which case we are not to be found in the path.
11369 if test "x$as_myself" = x; then
11370 as_myself=$0
11371 fi
11372 if test ! -f "$as_myself"; then
11373 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11374 exit 1
11375 fi
11376
11377 # Unset variables that we do not need and which cause bugs (e.g. in
11378 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11379 # suppresses any "Segmentation fault" message there. '((' could
11380 # trigger a bug in pdksh 5.2.14.
11381 for as_var in BASH_ENV ENV MAIL MAILPATH
11382 do eval test x\${$as_var+set} = xset \
11383 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11384 done
11385 PS1='$ '
11386 PS2='> '
11387 PS4='+ '
11388
11389 # NLS nuisances.
11390 LC_ALL=C
11391 export LC_ALL
11392 LANGUAGE=C
11393 export LANGUAGE
11394
11395 # CDPATH.
11396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11397
11398
11399 # as_fn_error ERROR [LINENO LOG_FD]
11400 # ---------------------------------
11401 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11402 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11403 # script with status $?, using 1 if that was 0.
11404 as_fn_error ()
11405 {
11406 as_status=$?; test $as_status -eq 0 && as_status=1
11407 if test "$3"; then
11408 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11409 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11410 fi
11411 $as_echo "$as_me: error: $1" >&2
11412 as_fn_exit $as_status
11413 } # as_fn_error
11414
11415
11416 # as_fn_set_status STATUS
11417 # -----------------------
11418 # Set $? to STATUS, without forking.
11419 as_fn_set_status ()
11420 {
11421 return $1
11422 } # as_fn_set_status
11423
11424 # as_fn_exit STATUS
11425 # -----------------
11426 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11427 as_fn_exit ()
11428 {
11429 set +e
11430 as_fn_set_status $1
11431 exit $1
11432 } # as_fn_exit
11433
11434 # as_fn_unset VAR
11435 # ---------------
11436 # Portably unset VAR.
11437 as_fn_unset ()
11438 {
11439 { eval $1=; unset $1;}
11440 }
11441 as_unset=as_fn_unset
11442 # as_fn_append VAR VALUE
11443 # ----------------------
11444 # Append the text in VALUE to the end of the definition contained in VAR. Take
11445 # advantage of any shell optimizations that allow amortized linear growth over
11446 # repeated appends, instead of the typical quadratic growth present in naive
11447 # implementations.
11448 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11449 eval 'as_fn_append ()
11450 {
11451 eval $1+=\$2
11452 }'
11453 else
11454 as_fn_append ()
11455 {
11456 eval $1=\$$1\$2
11457 }
11458 fi # as_fn_append
11459
11460 # as_fn_arith ARG...
11461 # ------------------
11462 # Perform arithmetic evaluation on the ARGs, and store the result in the
11463 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11464 # must be portable across $(()) and expr.
11465 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11466 eval 'as_fn_arith ()
11467 {
11468 as_val=$(( $* ))
11469 }'
11470 else
11471 as_fn_arith ()
11472 {
11473 as_val=`expr "$@" || test $? -eq 1`
11474 }
11475 fi # as_fn_arith
11476
11477
11478 if expr a : '\(a\)' >/dev/null 2>&1 &&
11479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11480 as_expr=expr
11481 else
11482 as_expr=false
11483 fi
11484
11485 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11486 as_basename=basename
11487 else
11488 as_basename=false
11489 fi
11490
11491 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11492 as_dirname=dirname
11493 else
11494 as_dirname=false
11495 fi
11496
11497 as_me=`$as_basename -- "$0" ||
11498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11499 X"$0" : 'X\(//\)$' \| \
11500 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11501 $as_echo X/"$0" |
11502 sed '/^.*\/\([^/][^/]*\)\/*$/{
11503 s//\1/
11504 q
11505 }
11506 /^X\/\(\/\/\)$/{
11507 s//\1/
11508 q
11509 }
11510 /^X\/\(\/\).*/{
11511 s//\1/
11512 q
11513 }
11514 s/.*/./; q'`
11515
11516 # Avoid depending upon Character Ranges.
11517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11520 as_cr_digits='0123456789'
11521 as_cr_alnum=$as_cr_Letters$as_cr_digits
11522
11523 ECHO_C= ECHO_N= ECHO_T=
11524 case `echo -n x` in #(((((
11525 -n*)
11526 case `echo 'xy\c'` in
11527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11528 xy) ECHO_C='\c';;
11529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11530 ECHO_T=' ';;
11531 esac;;
11532 *)
11533 ECHO_N='-n';;
11534 esac
11535
11536 rm -f conf$$ conf$$.exe conf$$.file
11537 if test -d conf$$.dir; then
11538 rm -f conf$$.dir/conf$$.file
11539 else
11540 rm -f conf$$.dir
11541 mkdir conf$$.dir 2>/dev/null
11542 fi
11543 if (echo >conf$$.file) 2>/dev/null; then
11544 if ln -s conf$$.file conf$$ 2>/dev/null; then
11545 as_ln_s='ln -s'
11546 # ... but there are two gotchas:
11547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11549 # In both cases, we have to default to `cp -p'.
11550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11551 as_ln_s='cp -p'
11552 elif ln conf$$.file conf$$ 2>/dev/null; then
11553 as_ln_s=ln
11554 else
11555 as_ln_s='cp -p'
11556 fi
11557 else
11558 as_ln_s='cp -p'
11559 fi
11560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11561 rmdir conf$$.dir 2>/dev/null
11562
11563
11564 # as_fn_mkdir_p
11565 # -------------
11566 # Create "$as_dir" as a directory, including parents if necessary.
11567 as_fn_mkdir_p ()
11568 {
11569
11570 case $as_dir in #(
11571 -*) as_dir=./$as_dir;;
11572 esac
11573 test -d "$as_dir" || eval $as_mkdir_p || {
11574 as_dirs=
11575 while :; do
11576 case $as_dir in #(
11577 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11578 *) as_qdir=$as_dir;;
11579 esac
11580 as_dirs="'$as_qdir' $as_dirs"
11581 as_dir=`$as_dirname -- "$as_dir" ||
11582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11583 X"$as_dir" : 'X\(//\)[^/]' \| \
11584 X"$as_dir" : 'X\(//\)$' \| \
11585 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11586 $as_echo X"$as_dir" |
11587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11588 s//\1/
11589 q
11590 }
11591 /^X\(\/\/\)[^/].*/{
11592 s//\1/
11593 q
11594 }
11595 /^X\(\/\/\)$/{
11596 s//\1/
11597 q
11598 }
11599 /^X\(\/\).*/{
11600 s//\1/
11601 q
11602 }
11603 s/.*/./; q'`
11604 test -d "$as_dir" && break
11605 done
11606 test -z "$as_dirs" || eval "mkdir $as_dirs"
11607 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11608
11609
11610 } # as_fn_mkdir_p
11611 if mkdir -p . 2>/dev/null; then
11612 as_mkdir_p='mkdir -p "$as_dir"'
11613 else
11614 test -d ./-p && rmdir ./-p
11615 as_mkdir_p=false
11616 fi
11617
11618 if test -x / >/dev/null 2>&1; then
11619 as_test_x='test -x'
11620 else
11621 if ls -dL / >/dev/null 2>&1; then
11622 as_ls_L_option=L
11623 else
11624 as_ls_L_option=
11625 fi
11626 as_test_x='
11627 eval sh -c '\''
11628 if test -d "$1"; then
11629 test -d "$1/.";
11630 else
11631 case $1 in #(
11632 -*)set "./$1";;
11633 esac;
11634 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11635 ???[sx]*):;;*)false;;esac;fi
11636 '\'' sh
11637 '
11638 fi
11639 as_executable_p=$as_test_x
11640
11641 # Sed expression to map a string onto a valid CPP name.
11642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11643
11644 # Sed expression to map a string onto a valid variable name.
11645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11646
11647
11648 exec 6>&1
11649 ## ----------------------------------- ##
11650 ## Main body of $CONFIG_STATUS script. ##
11651 ## ----------------------------------- ##
11652 _ASEOF
11653 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11654
11655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11656 # Save the log message, to keep $0 and so on meaningful, and to
11657 # report actual input values of CONFIG_FILES etc. instead of their
11658 # values after options handling.
11659 ac_log="
11660 This file was extended by package-unused $as_me version-unused, which was
11661 generated by GNU Autoconf 2.64. Invocation command line was
11662
11663 CONFIG_FILES = $CONFIG_FILES
11664 CONFIG_HEADERS = $CONFIG_HEADERS
11665 CONFIG_LINKS = $CONFIG_LINKS
11666 CONFIG_COMMANDS = $CONFIG_COMMANDS
11667 $ $0 $@
11668
11669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11670 "
11671
11672 _ACEOF
11673
11674 case $ac_config_files in *"
11675 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11676 esac
11677
11678 case $ac_config_headers in *"
11679 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11680 esac
11681
11682
11683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11684 # Files that config.status was made for.
11685 config_files="$ac_config_files"
11686 config_headers="$ac_config_headers"
11687 config_commands="$ac_config_commands"
11688
11689 _ACEOF
11690
11691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11692 ac_cs_usage="\
11693 \`$as_me' instantiates files and other configuration actions
11694 from templates according to the current configuration. Unless the files
11695 and actions are specified as TAGs, all are instantiated by default.
11696
11697 Usage: $0 [OPTION]... [TAG]...
11698
11699 -h, --help print this help, then exit
11700 -V, --version print version number and configuration settings, then exit
11701 -q, --quiet, --silent
11702 do not print progress messages
11703 -d, --debug don't remove temporary files
11704 --recheck update $as_me by reconfiguring in the same conditions
11705 --file=FILE[:TEMPLATE]
11706 instantiate the configuration file FILE
11707 --header=FILE[:TEMPLATE]
11708 instantiate the configuration header FILE
11709
11710 Configuration files:
11711 $config_files
11712
11713 Configuration headers:
11714 $config_headers
11715
11716 Configuration commands:
11717 $config_commands
11718
11719 Report bugs to the package provider."
11720
11721 _ACEOF
11722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723 ac_cs_version="\\
11724 package-unused config.status version-unused
11725 configured by $0, generated by GNU Autoconf 2.64,
11726 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11727
11728 Copyright (C) 2009 Free Software Foundation, Inc.
11729 This config.status script is free software; the Free Software Foundation
11730 gives unlimited permission to copy, distribute and modify it."
11731
11732 ac_pwd='$ac_pwd'
11733 srcdir='$srcdir'
11734 INSTALL='$INSTALL'
11735 test -n "\$AWK" || AWK=awk
11736 _ACEOF
11737
11738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11739 # The default lists apply if the user does not specify any file.
11740 ac_need_defaults=:
11741 while test $# != 0
11742 do
11743 case $1 in
11744 --*=*)
11745 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11746 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11747 ac_shift=:
11748 ;;
11749 *)
11750 ac_option=$1
11751 ac_optarg=$2
11752 ac_shift=shift
11753 ;;
11754 esac
11755
11756 case $ac_option in
11757 # Handling of the options.
11758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11759 ac_cs_recheck=: ;;
11760 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11761 $as_echo "$ac_cs_version"; exit ;;
11762 --debug | --debu | --deb | --de | --d | -d )
11763 debug=: ;;
11764 --file | --fil | --fi | --f )
11765 $ac_shift
11766 case $ac_optarg in
11767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11768 esac
11769 as_fn_append CONFIG_FILES " '$ac_optarg'"
11770 ac_need_defaults=false;;
11771 --header | --heade | --head | --hea )
11772 $ac_shift
11773 case $ac_optarg in
11774 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11775 esac
11776 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11777 ac_need_defaults=false;;
11778 --he | --h)
11779 # Conflict between --help and --header
11780 as_fn_error "ambiguous option: \`$1'
11781 Try \`$0 --help' for more information.";;
11782 --help | --hel | -h )
11783 $as_echo "$ac_cs_usage"; exit ;;
11784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11786 ac_cs_silent=: ;;
11787
11788 # This is an error.
11789 -*) as_fn_error "unrecognized option: \`$1'
11790 Try \`$0 --help' for more information." ;;
11791
11792 *) as_fn_append ac_config_targets " $1"
11793 ac_need_defaults=false ;;
11794
11795 esac
11796 shift
11797 done
11798
11799 ac_configure_extra_args=
11800
11801 if $ac_cs_silent; then
11802 exec 6>/dev/null
11803 ac_configure_extra_args="$ac_configure_extra_args --silent"
11804 fi
11805
11806 _ACEOF
11807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11808 if \$ac_cs_recheck; then
11809 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11810 shift
11811 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11812 CONFIG_SHELL='$SHELL'
11813 export CONFIG_SHELL
11814 exec "\$@"
11815 fi
11816
11817 _ACEOF
11818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819 exec 5>>config.log
11820 {
11821 echo
11822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11823 ## Running $as_me. ##
11824 _ASBOX
11825 $as_echo "$ac_log"
11826 } >&5
11827
11828 _ACEOF
11829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830 #
11831 # INIT-COMMANDS
11832 #
11833
11834 srcdir="$srcdir"
11835 host="$host"
11836 target="$target"
11837 with_multisubdir="$with_multisubdir"
11838 with_multisrctop="$with_multisrctop"
11839 with_target_subdir="$with_target_subdir"
11840 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11841 multi_basedir="$multi_basedir"
11842 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11843 CC="$CC"
11844 CXX="$CXX"
11845 GFORTRAN="$GFORTRAN"
11846 GCJ="$GCJ"
11847
11848
11849 # The HP-UX ksh and POSIX shell print the target directory to stdout
11850 # if CDPATH is set.
11851 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11852
11853 sed_quote_subst='$sed_quote_subst'
11854 double_quote_subst='$double_quote_subst'
11855 delay_variable_subst='$delay_variable_subst'
11856 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11857 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11858 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11859 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11860 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11861 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11862 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11863 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11864 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11865 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11866 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11867 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11868 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11869 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11870 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11871 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11872 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11873 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11874 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11875 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11876 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11877 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11878 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11879 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11880 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11881 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11882 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11883 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11884 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11885 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11886 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11887 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11888 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11889 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11890 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11891 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11892 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11893 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11894 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11895 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11896 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11897 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11898 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11899 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11900 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11901 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11902 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"`'
11903 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"`'
11904 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11905 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11906 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11907 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11908 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11909 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11910 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11911 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11912 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11913 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11914 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11915 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11916 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11917 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11918 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11919 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11920 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11921 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11922 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11923 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11924 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11925 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11926 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11927 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11928 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11929 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11930 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11931 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11932 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11933 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11934 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11935 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11936 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11937 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11938 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11939 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11940 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11941 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11942 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11943 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11944 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11945 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11946 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11947 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11948 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11949 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11950 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11951 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11952 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11953 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11954 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11955 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11956 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11957 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11958 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11959 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11960 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11961 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11962 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11963 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11964 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11965 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11966 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11967 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11968 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11969 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11970 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11971 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11972 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11973 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11974 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11975 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11976
11977 LTCC='$LTCC'
11978 LTCFLAGS='$LTCFLAGS'
11979 compiler='$compiler_DEFAULT'
11980
11981 # Quote evaled strings.
11982 for var in SED \
11983 GREP \
11984 EGREP \
11985 FGREP \
11986 LD \
11987 NM \
11988 LN_S \
11989 lt_SP2NL \
11990 lt_NL2SP \
11991 reload_flag \
11992 deplibs_check_method \
11993 file_magic_cmd \
11994 AR \
11995 AR_FLAGS \
11996 STRIP \
11997 RANLIB \
11998 CC \
11999 CFLAGS \
12000 compiler \
12001 lt_cv_sys_global_symbol_pipe \
12002 lt_cv_sys_global_symbol_to_cdecl \
12003 lt_cv_sys_global_symbol_to_c_name_address \
12004 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12005 SHELL \
12006 ECHO \
12007 lt_prog_compiler_no_builtin_flag \
12008 lt_prog_compiler_wl \
12009 lt_prog_compiler_pic \
12010 lt_prog_compiler_static \
12011 lt_cv_prog_compiler_c_o \
12012 need_locks \
12013 DSYMUTIL \
12014 NMEDIT \
12015 LIPO \
12016 OTOOL \
12017 OTOOL64 \
12018 shrext_cmds \
12019 export_dynamic_flag_spec \
12020 whole_archive_flag_spec \
12021 compiler_needs_object \
12022 with_gnu_ld \
12023 allow_undefined_flag \
12024 no_undefined_flag \
12025 hardcode_libdir_flag_spec \
12026 hardcode_libdir_flag_spec_ld \
12027 hardcode_libdir_separator \
12028 fix_srcfile_path \
12029 exclude_expsyms \
12030 include_expsyms \
12031 file_list_spec \
12032 variables_saved_for_relink \
12033 libname_spec \
12034 library_names_spec \
12035 soname_spec \
12036 finish_eval \
12037 old_striplib \
12038 striplib; do
12039 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12040 *[\\\\\\\`\\"\\\$]*)
12041 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12042 ;;
12043 *)
12044 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12045 ;;
12046 esac
12047 done
12048
12049 # Double-quote double-evaled strings.
12050 for var in reload_cmds \
12051 old_postinstall_cmds \
12052 old_postuninstall_cmds \
12053 old_archive_cmds \
12054 extract_expsyms_cmds \
12055 old_archive_from_new_cmds \
12056 old_archive_from_expsyms_cmds \
12057 archive_cmds \
12058 archive_expsym_cmds \
12059 module_cmds \
12060 module_expsym_cmds \
12061 export_symbols_cmds \
12062 prelink_cmds \
12063 postinstall_cmds \
12064 postuninstall_cmds \
12065 finish_cmds \
12066 sys_lib_search_path_spec \
12067 sys_lib_dlsearch_path_spec; do
12068 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12069 *[\\\\\\\`\\"\\\$]*)
12070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12071 ;;
12072 *)
12073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12074 ;;
12075 esac
12076 done
12077
12078 # Fix-up fallback echo if it was mangled by the above quoting rules.
12079 case \$lt_ECHO in
12080 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12081 ;;
12082 esac
12083
12084 ac_aux_dir='$ac_aux_dir'
12085 xsi_shell='$xsi_shell'
12086 lt_shell_append='$lt_shell_append'
12087
12088 # See if we are running on zsh, and set the options which allow our
12089 # commands through without removal of \ escapes INIT.
12090 if test -n "\${ZSH_VERSION+set}" ; then
12091 setopt NO_GLOB_SUBST
12092 fi
12093
12094
12095 PACKAGE='$PACKAGE'
12096 VERSION='$VERSION'
12097 TIMESTAMP='$TIMESTAMP'
12098 RM='$RM'
12099 ofile='$ofile'
12100
12101
12102
12103
12104 _ACEOF
12105
12106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12107
12108 # Handling of arguments.
12109 for ac_config_target in $ac_config_targets
12110 do
12111 case $ac_config_target in
12112 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12113 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12114 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12115 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12116
12117 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12118 esac
12119 done
12120
12121
12122 # If the user did not use the arguments to specify the items to instantiate,
12123 # then the envvar interface is used. Set only those that are not.
12124 # We use the long form for the default assignment because of an extremely
12125 # bizarre bug on SunOS 4.1.3.
12126 if $ac_need_defaults; then
12127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12130 fi
12131
12132 # Have a temporary directory for convenience. Make it in the build tree
12133 # simply because there is no reason against having it here, and in addition,
12134 # creating and moving files from /tmp can sometimes cause problems.
12135 # Hook for its removal unless debugging.
12136 # Note that there is a small window in which the directory will not be cleaned:
12137 # after its creation but before its name has been assigned to `$tmp'.
12138 $debug ||
12139 {
12140 tmp=
12141 trap 'exit_status=$?
12142 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12143 ' 0
12144 trap 'as_fn_exit 1' 1 2 13 15
12145 }
12146 # Create a (secure) tmp directory for tmp files.
12147
12148 {
12149 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12150 test -n "$tmp" && test -d "$tmp"
12151 } ||
12152 {
12153 tmp=./conf$$-$RANDOM
12154 (umask 077 && mkdir "$tmp")
12155 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12156
12157 # Set up the scripts for CONFIG_FILES section.
12158 # No need to generate them if there are no CONFIG_FILES.
12159 # This happens for instance with `./config.status config.h'.
12160 if test -n "$CONFIG_FILES"; then
12161
12162
12163 ac_cr=`echo X | tr X '\015'`
12164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12165 # But we know of no other shell where ac_cr would be empty at this
12166 # point, so we can use a bashism as a fallback.
12167 if test "x$ac_cr" = x; then
12168 eval ac_cr=\$\'\\r\'
12169 fi
12170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12172 ac_cs_awk_cr='\r'
12173 else
12174 ac_cs_awk_cr=$ac_cr
12175 fi
12176
12177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12178 _ACEOF
12179
12180
12181 {
12182 echo "cat >conf$$subs.awk <<_ACEOF" &&
12183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12184 echo "_ACEOF"
12185 } >conf$$subs.sh ||
12186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12188 ac_delim='%!_!# '
12189 for ac_last_try in false false false false false :; do
12190 . ./conf$$subs.sh ||
12191 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12192
12193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12194 if test $ac_delim_n = $ac_delim_num; then
12195 break
12196 elif $ac_last_try; then
12197 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12198 else
12199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12200 fi
12201 done
12202 rm -f conf$$subs.sh
12203
12204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12205 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12206 _ACEOF
12207 sed -n '
12208 h
12209 s/^/S["/; s/!.*/"]=/
12210 p
12211 g
12212 s/^[^!]*!//
12213 :repl
12214 t repl
12215 s/'"$ac_delim"'$//
12216 t delim
12217 :nl
12218 h
12219 s/\(.\{148\}\).*/\1/
12220 t more1
12221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12222 p
12223 n
12224 b repl
12225 :more1
12226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12227 p
12228 g
12229 s/.\{148\}//
12230 t nl
12231 :delim
12232 h
12233 s/\(.\{148\}\).*/\1/
12234 t more2
12235 s/["\\]/\\&/g; s/^/"/; s/$/"/
12236 p
12237 b
12238 :more2
12239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12240 p
12241 g
12242 s/.\{148\}//
12243 t delim
12244 ' <conf$$subs.awk | sed '
12245 /^[^""]/{
12246 N
12247 s/\n//
12248 }
12249 ' >>$CONFIG_STATUS || ac_write_fail=1
12250 rm -f conf$$subs.awk
12251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12252 _ACAWK
12253 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12254 for (key in S) S_is_set[key] = 1
12255 FS = "\a"
12256
12257 }
12258 {
12259 line = $ 0
12260 nfields = split(line, field, "@")
12261 substed = 0
12262 len = length(field[1])
12263 for (i = 2; i < nfields; i++) {
12264 key = field[i]
12265 keylen = length(key)
12266 if (S_is_set[key]) {
12267 value = S[key]
12268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12269 len += length(value) + length(field[++i])
12270 substed = 1
12271 } else
12272 len += 1 + keylen
12273 }
12274
12275 print line
12276 }
12277
12278 _ACAWK
12279 _ACEOF
12280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12283 else
12284 cat
12285 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12286 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12287 _ACEOF
12288
12289 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12290 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12291 # trailing colons and then remove the whole line if VPATH becomes empty
12292 # (actually we leave an empty line to preserve line numbers).
12293 if test "x$srcdir" = x.; then
12294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12295 s/:*\$(srcdir):*/:/
12296 s/:*\${srcdir}:*/:/
12297 s/:*@srcdir@:*/:/
12298 s/^\([^=]*=[ ]*\):*/\1/
12299 s/:*$//
12300 s/^[^=]*=[ ]*$//
12301 }'
12302 fi
12303
12304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12305 fi # test -n "$CONFIG_FILES"
12306
12307 # Set up the scripts for CONFIG_HEADERS section.
12308 # No need to generate them if there are no CONFIG_HEADERS.
12309 # This happens for instance with `./config.status Makefile'.
12310 if test -n "$CONFIG_HEADERS"; then
12311 cat >"$tmp/defines.awk" <<\_ACAWK ||
12312 BEGIN {
12313 _ACEOF
12314
12315 # Transform confdefs.h into an awk script `defines.awk', embedded as
12316 # here-document in config.status, that substitutes the proper values into
12317 # config.h.in to produce config.h.
12318
12319 # Create a delimiter string that does not exist in confdefs.h, to ease
12320 # handling of long lines.
12321 ac_delim='%!_!# '
12322 for ac_last_try in false false :; do
12323 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12324 if test -z "$ac_t"; then
12325 break
12326 elif $ac_last_try; then
12327 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12328 else
12329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12330 fi
12331 done
12332
12333 # For the awk script, D is an array of macro values keyed by name,
12334 # likewise P contains macro parameters if any. Preserve backslash
12335 # newline sequences.
12336
12337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12338 sed -n '
12339 s/.\{148\}/&'"$ac_delim"'/g
12340 t rset
12341 :rset
12342 s/^[ ]*#[ ]*define[ ][ ]*/ /
12343 t def
12344 d
12345 :def
12346 s/\\$//
12347 t bsnl
12348 s/["\\]/\\&/g
12349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12350 D["\1"]=" \3"/p
12351 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12352 d
12353 :bsnl
12354 s/["\\]/\\&/g
12355 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12356 D["\1"]=" \3\\\\\\n"\\/p
12357 t cont
12358 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12359 t cont
12360 d
12361 :cont
12362 n
12363 s/.\{148\}/&'"$ac_delim"'/g
12364 t clear
12365 :clear
12366 s/\\$//
12367 t bsnlc
12368 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12369 d
12370 :bsnlc
12371 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12372 b cont
12373 ' <confdefs.h | sed '
12374 s/'"$ac_delim"'/"\\\
12375 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12376
12377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12378 for (key in D) D_is_set[key] = 1
12379 FS = "\a"
12380 }
12381 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12382 line = \$ 0
12383 split(line, arg, " ")
12384 if (arg[1] == "#") {
12385 defundef = arg[2]
12386 mac1 = arg[3]
12387 } else {
12388 defundef = substr(arg[1], 2)
12389 mac1 = arg[2]
12390 }
12391 split(mac1, mac2, "(") #)
12392 macro = mac2[1]
12393 prefix = substr(line, 1, index(line, defundef) - 1)
12394 if (D_is_set[macro]) {
12395 # Preserve the white space surrounding the "#".
12396 print prefix "define", macro P[macro] D[macro]
12397 next
12398 } else {
12399 # Replace #undef with comments. This is necessary, for example,
12400 # in the case of _POSIX_SOURCE, which is predefined and required
12401 # on some systems where configure will not decide to define it.
12402 if (defundef == "undef") {
12403 print "/*", prefix defundef, macro, "*/"
12404 next
12405 }
12406 }
12407 }
12408 { print }
12409 _ACAWK
12410 _ACEOF
12411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12412 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12413 fi # test -n "$CONFIG_HEADERS"
12414
12415
12416 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12417 shift
12418 for ac_tag
12419 do
12420 case $ac_tag in
12421 :[FHLC]) ac_mode=$ac_tag; continue;;
12422 esac
12423 case $ac_mode$ac_tag in
12424 :[FHL]*:*);;
12425 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12426 :[FH]-) ac_tag=-:-;;
12427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12428 esac
12429 ac_save_IFS=$IFS
12430 IFS=:
12431 set x $ac_tag
12432 IFS=$ac_save_IFS
12433 shift
12434 ac_file=$1
12435 shift
12436
12437 case $ac_mode in
12438 :L) ac_source=$1;;
12439 :[FH])
12440 ac_file_inputs=
12441 for ac_f
12442 do
12443 case $ac_f in
12444 -) ac_f="$tmp/stdin";;
12445 *) # Look for the file first in the build tree, then in the source tree
12446 # (if the path is not absolute). The absolute path cannot be DOS-style,
12447 # because $ac_f cannot contain `:'.
12448 test -f "$ac_f" ||
12449 case $ac_f in
12450 [\\/$]*) false;;
12451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12452 esac ||
12453 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12454 esac
12455 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12456 as_fn_append ac_file_inputs " '$ac_f'"
12457 done
12458
12459 # Let's still pretend it is `configure' which instantiates (i.e., don't
12460 # use $as_me), people would be surprised to read:
12461 # /* config.h. Generated by config.status. */
12462 configure_input='Generated from '`
12463 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12464 `' by configure.'
12465 if test x"$ac_file" != x-; then
12466 configure_input="$ac_file. $configure_input"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12468 $as_echo "$as_me: creating $ac_file" >&6;}
12469 fi
12470 # Neutralize special characters interpreted by sed in replacement strings.
12471 case $configure_input in #(
12472 *\&* | *\|* | *\\* )
12473 ac_sed_conf_input=`$as_echo "$configure_input" |
12474 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12475 *) ac_sed_conf_input=$configure_input;;
12476 esac
12477
12478 case $ac_tag in
12479 *:-:* | *:-) cat >"$tmp/stdin" \
12480 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12481 esac
12482 ;;
12483 esac
12484
12485 ac_dir=`$as_dirname -- "$ac_file" ||
12486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12487 X"$ac_file" : 'X\(//\)[^/]' \| \
12488 X"$ac_file" : 'X\(//\)$' \| \
12489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12490 $as_echo X"$ac_file" |
12491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12492 s//\1/
12493 q
12494 }
12495 /^X\(\/\/\)[^/].*/{
12496 s//\1/
12497 q
12498 }
12499 /^X\(\/\/\)$/{
12500 s//\1/
12501 q
12502 }
12503 /^X\(\/\).*/{
12504 s//\1/
12505 q
12506 }
12507 s/.*/./; q'`
12508 as_dir="$ac_dir"; as_fn_mkdir_p
12509 ac_builddir=.
12510
12511 case "$ac_dir" in
12512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12513 *)
12514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12515 # A ".." for each directory in $ac_dir_suffix.
12516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12517 case $ac_top_builddir_sub in
12518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12520 esac ;;
12521 esac
12522 ac_abs_top_builddir=$ac_pwd
12523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12524 # for backward compatibility:
12525 ac_top_builddir=$ac_top_build_prefix
12526
12527 case $srcdir in
12528 .) # We are building in place.
12529 ac_srcdir=.
12530 ac_top_srcdir=$ac_top_builddir_sub
12531 ac_abs_top_srcdir=$ac_pwd ;;
12532 [\\/]* | ?:[\\/]* ) # Absolute name.
12533 ac_srcdir=$srcdir$ac_dir_suffix;
12534 ac_top_srcdir=$srcdir
12535 ac_abs_top_srcdir=$srcdir ;;
12536 *) # Relative name.
12537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12538 ac_top_srcdir=$ac_top_build_prefix$srcdir
12539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12540 esac
12541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12542
12543
12544 case $ac_mode in
12545 :F)
12546 #
12547 # CONFIG_FILE
12548 #
12549
12550 case $INSTALL in
12551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12553 esac
12554 _ACEOF
12555
12556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12557 # If the template does not know about datarootdir, expand it.
12558 # FIXME: This hack should be removed a few years after 2.60.
12559 ac_datarootdir_hack=; ac_datarootdir_seen=
12560 ac_sed_dataroot='
12561 /datarootdir/ {
12562 p
12563 q
12564 }
12565 /@datadir@/p
12566 /@docdir@/p
12567 /@infodir@/p
12568 /@localedir@/p
12569 /@mandir@/p'
12570 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12571 *datarootdir*) ac_datarootdir_seen=yes;;
12572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12574 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12575 _ACEOF
12576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577 ac_datarootdir_hack='
12578 s&@datadir@&$datadir&g
12579 s&@docdir@&$docdir&g
12580 s&@infodir@&$infodir&g
12581 s&@localedir@&$localedir&g
12582 s&@mandir@&$mandir&g
12583 s&\\\${datarootdir}&$datarootdir&g' ;;
12584 esac
12585 _ACEOF
12586
12587 # Neutralize VPATH when `$srcdir' = `.'.
12588 # Shell code in configure.ac might set extrasub.
12589 # FIXME: do we really want to maintain this feature?
12590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12591 ac_sed_extra="$ac_vpsub
12592 $extrasub
12593 _ACEOF
12594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12595 :t
12596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12597 s|@configure_input@|$ac_sed_conf_input|;t t
12598 s&@top_builddir@&$ac_top_builddir_sub&;t t
12599 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12600 s&@srcdir@&$ac_srcdir&;t t
12601 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12602 s&@top_srcdir@&$ac_top_srcdir&;t t
12603 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12604 s&@builddir@&$ac_builddir&;t t
12605 s&@abs_builddir@&$ac_abs_builddir&;t t
12606 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12607 s&@INSTALL@&$ac_INSTALL&;t t
12608 $ac_datarootdir_hack
12609 "
12610 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12611 || as_fn_error "could not create $ac_file" "$LINENO" 5
12612
12613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12617 which seems to be undefined. Please make sure it is defined." >&5
12618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12619 which seems to be undefined. Please make sure it is defined." >&2;}
12620
12621 rm -f "$tmp/stdin"
12622 case $ac_file in
12623 -) cat "$tmp/out" && rm -f "$tmp/out";;
12624 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12625 esac \
12626 || as_fn_error "could not create $ac_file" "$LINENO" 5
12627 ;;
12628 :H)
12629 #
12630 # CONFIG_HEADER
12631 #
12632 if test x"$ac_file" != x-; then
12633 {
12634 $as_echo "/* $configure_input */" \
12635 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12636 } >"$tmp/config.h" \
12637 || as_fn_error "could not create $ac_file" "$LINENO" 5
12638 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12640 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12641 else
12642 rm -f "$ac_file"
12643 mv "$tmp/config.h" "$ac_file" \
12644 || as_fn_error "could not create $ac_file" "$LINENO" 5
12645 fi
12646 else
12647 $as_echo "/* $configure_input */" \
12648 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12649 || as_fn_error "could not create -" "$LINENO" 5
12650 fi
12651 ;;
12652
12653 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12654 $as_echo "$as_me: executing $ac_file commands" >&6;}
12655 ;;
12656 esac
12657
12658
12659 case $ac_file$ac_mode in
12660 "default-1":C)
12661 # Only add multilib support code if we just rebuilt the top-level
12662 # Makefile.
12663 case " $CONFIG_FILES " in
12664 *" Makefile "*)
12665 ac_file=Makefile . ${multi_basedir}/config-ml.in
12666 ;;
12667 esac ;;
12668 "libtool":C)
12669
12670 # See if we are running on zsh, and set the options which allow our
12671 # commands through without removal of \ escapes.
12672 if test -n "${ZSH_VERSION+set}" ; then
12673 setopt NO_GLOB_SUBST
12674 fi
12675
12676 cfgfile="${ofile}T"
12677 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12678 $RM "$cfgfile"
12679
12680 cat <<_LT_EOF >> "$cfgfile"
12681 #! $SHELL
12682
12683 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12684 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12686 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12687 #
12688 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12689 # 2006, 2007, 2008 Free Software Foundation, Inc.
12690 # Written by Gordon Matzigkeit, 1996
12691 #
12692 # This file is part of GNU Libtool.
12693 #
12694 # GNU Libtool is free software; you can redistribute it and/or
12695 # modify it under the terms of the GNU General Public License as
12696 # published by the Free Software Foundation; either version 2 of
12697 # the License, or (at your option) any later version.
12698 #
12699 # As a special exception to the GNU General Public License,
12700 # if you distribute this file as part of a program or library that
12701 # is built using GNU Libtool, you may include this file under the
12702 # same distribution terms that you use for the rest of that program.
12703 #
12704 # GNU Libtool is distributed in the hope that it will be useful,
12705 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12706 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12707 # GNU General Public License for more details.
12708 #
12709 # You should have received a copy of the GNU General Public License
12710 # along with GNU Libtool; see the file COPYING. If not, a copy
12711 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12712 # obtained by writing to the Free Software Foundation, Inc.,
12713 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12714
12715
12716 # The names of the tagged configurations supported by this script.
12717 available_tags=""
12718
12719 # ### BEGIN LIBTOOL CONFIG
12720
12721 # Assembler program.
12722 AS=$AS
12723
12724 # DLL creation program.
12725 DLLTOOL=$DLLTOOL
12726
12727 # Object dumper program.
12728 OBJDUMP=$OBJDUMP
12729
12730 # Which release of libtool.m4 was used?
12731 macro_version=$macro_version
12732 macro_revision=$macro_revision
12733
12734 # Whether or not to build shared libraries.
12735 build_libtool_libs=$enable_shared
12736
12737 # Whether or not to build static libraries.
12738 build_old_libs=$enable_static
12739
12740 # What type of objects to build.
12741 pic_mode=$pic_mode
12742
12743 # Whether or not to optimize for fast installation.
12744 fast_install=$enable_fast_install
12745
12746 # The host system.
12747 host_alias=$host_alias
12748 host=$host
12749 host_os=$host_os
12750
12751 # The build system.
12752 build_alias=$build_alias
12753 build=$build
12754 build_os=$build_os
12755
12756 # A sed program that does not truncate output.
12757 SED=$lt_SED
12758
12759 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12760 Xsed="\$SED -e 1s/^X//"
12761
12762 # A grep program that handles long lines.
12763 GREP=$lt_GREP
12764
12765 # An ERE matcher.
12766 EGREP=$lt_EGREP
12767
12768 # A literal string matcher.
12769 FGREP=$lt_FGREP
12770
12771 # A BSD- or MS-compatible name lister.
12772 NM=$lt_NM
12773
12774 # Whether we need soft or hard links.
12775 LN_S=$lt_LN_S
12776
12777 # What is the maximum length of a command?
12778 max_cmd_len=$max_cmd_len
12779
12780 # Object file suffix (normally "o").
12781 objext=$ac_objext
12782
12783 # Executable file suffix (normally "").
12784 exeext=$exeext
12785
12786 # whether the shell understands "unset".
12787 lt_unset=$lt_unset
12788
12789 # turn spaces into newlines.
12790 SP2NL=$lt_lt_SP2NL
12791
12792 # turn newlines into spaces.
12793 NL2SP=$lt_lt_NL2SP
12794
12795 # How to create reloadable object files.
12796 reload_flag=$lt_reload_flag
12797 reload_cmds=$lt_reload_cmds
12798
12799 # Method to check whether dependent libraries are shared objects.
12800 deplibs_check_method=$lt_deplibs_check_method
12801
12802 # Command to use when deplibs_check_method == "file_magic".
12803 file_magic_cmd=$lt_file_magic_cmd
12804
12805 # The archiver.
12806 AR=$lt_AR
12807 AR_FLAGS=$lt_AR_FLAGS
12808
12809 # A symbol stripping program.
12810 STRIP=$lt_STRIP
12811
12812 # Commands used to install an old-style archive.
12813 RANLIB=$lt_RANLIB
12814 old_postinstall_cmds=$lt_old_postinstall_cmds
12815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12816
12817 # A C compiler.
12818 LTCC=$lt_CC
12819
12820 # LTCC compiler flags.
12821 LTCFLAGS=$lt_CFLAGS
12822
12823 # Take the output of nm and produce a listing of raw symbols and C names.
12824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12825
12826 # Transform the output of nm in a proper C declaration.
12827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12828
12829 # Transform the output of nm in a C name address pair.
12830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12831
12832 # Transform the output of nm in a C name address pair when lib prefix is needed.
12833 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12834
12835 # The name of the directory that contains temporary libtool files.
12836 objdir=$objdir
12837
12838 # Shell to use when invoking shell scripts.
12839 SHELL=$lt_SHELL
12840
12841 # An echo program that does not interpret backslashes.
12842 ECHO=$lt_ECHO
12843
12844 # Used to examine libraries when file_magic_cmd begins with "file".
12845 MAGIC_CMD=$MAGIC_CMD
12846
12847 # Must we lock files when doing compilation?
12848 need_locks=$lt_need_locks
12849
12850 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12851 DSYMUTIL=$lt_DSYMUTIL
12852
12853 # Tool to change global to local symbols on Mac OS X.
12854 NMEDIT=$lt_NMEDIT
12855
12856 # Tool to manipulate fat objects and archives on Mac OS X.
12857 LIPO=$lt_LIPO
12858
12859 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12860 OTOOL=$lt_OTOOL
12861
12862 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12863 OTOOL64=$lt_OTOOL64
12864
12865 # Old archive suffix (normally "a").
12866 libext=$libext
12867
12868 # Shared library suffix (normally ".so").
12869 shrext_cmds=$lt_shrext_cmds
12870
12871 # The commands to extract the exported symbol list from a shared archive.
12872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12873
12874 # Variables whose values should be saved in libtool wrapper scripts and
12875 # restored at link time.
12876 variables_saved_for_relink=$lt_variables_saved_for_relink
12877
12878 # Do we need the "lib" prefix for modules?
12879 need_lib_prefix=$need_lib_prefix
12880
12881 # Do we need a version for libraries?
12882 need_version=$need_version
12883
12884 # Library versioning type.
12885 version_type=$version_type
12886
12887 # Shared library runtime path variable.
12888 runpath_var=$runpath_var
12889
12890 # Shared library path variable.
12891 shlibpath_var=$shlibpath_var
12892
12893 # Is shlibpath searched before the hard-coded library search path?
12894 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12895
12896 # Format of library name prefix.
12897 libname_spec=$lt_libname_spec
12898
12899 # List of archive names. First name is the real one, the rest are links.
12900 # The last name is the one that the linker finds with -lNAME
12901 library_names_spec=$lt_library_names_spec
12902
12903 # The coded name of the library, if different from the real name.
12904 soname_spec=$lt_soname_spec
12905
12906 # Command to use after installation of a shared archive.
12907 postinstall_cmds=$lt_postinstall_cmds
12908
12909 # Command to use after uninstallation of a shared archive.
12910 postuninstall_cmds=$lt_postuninstall_cmds
12911
12912 # Commands used to finish a libtool library installation in a directory.
12913 finish_cmds=$lt_finish_cmds
12914
12915 # As "finish_cmds", except a single script fragment to be evaled but
12916 # not shown.
12917 finish_eval=$lt_finish_eval
12918
12919 # Whether we should hardcode library paths into libraries.
12920 hardcode_into_libs=$hardcode_into_libs
12921
12922 # Compile-time system search path for libraries.
12923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12924
12925 # Run-time system search path for libraries.
12926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12927
12928 # Whether dlopen is supported.
12929 dlopen_support=$enable_dlopen
12930
12931 # Whether dlopen of programs is supported.
12932 dlopen_self=$enable_dlopen_self
12933
12934 # Whether dlopen of statically linked programs is supported.
12935 dlopen_self_static=$enable_dlopen_self_static
12936
12937 # Commands to strip libraries.
12938 old_striplib=$lt_old_striplib
12939 striplib=$lt_striplib
12940
12941
12942 # The linker used to build libraries.
12943 LD=$lt_LD
12944
12945 # Commands used to build an old-style archive.
12946 old_archive_cmds=$lt_old_archive_cmds
12947
12948 # A language specific compiler.
12949 CC=$lt_compiler
12950
12951 # Is the compiler the GNU compiler?
12952 with_gcc=$GCC
12953
12954 # Compiler flag to turn off builtin functions.
12955 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12956
12957 # How to pass a linker flag through the compiler.
12958 wl=$lt_lt_prog_compiler_wl
12959
12960 # Additional compiler flags for building library objects.
12961 pic_flag=$lt_lt_prog_compiler_pic
12962
12963 # Compiler flag to prevent dynamic linking.
12964 link_static_flag=$lt_lt_prog_compiler_static
12965
12966 # Does compiler simultaneously support -c and -o options?
12967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12968
12969 # Whether or not to add -lc for building shared libraries.
12970 build_libtool_need_lc=$archive_cmds_need_lc
12971
12972 # Whether or not to disallow shared libs when runtime libs are static.
12973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12974
12975 # Compiler flag to allow reflexive dlopens.
12976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12977
12978 # Compiler flag to generate shared objects directly from archives.
12979 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12980
12981 # Whether the compiler copes with passing no objects directly.
12982 compiler_needs_object=$lt_compiler_needs_object
12983
12984 # Create an old-style archive from a shared archive.
12985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12986
12987 # Create a temporary old-style archive to link instead of a shared archive.
12988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12989
12990 # Commands used to build a shared archive.
12991 archive_cmds=$lt_archive_cmds
12992 archive_expsym_cmds=$lt_archive_expsym_cmds
12993
12994 # Commands used to build a loadable module if different from building
12995 # a shared archive.
12996 module_cmds=$lt_module_cmds
12997 module_expsym_cmds=$lt_module_expsym_cmds
12998
12999 # Whether we are building with GNU ld or not.
13000 with_gnu_ld=$lt_with_gnu_ld
13001
13002 # Flag that allows shared libraries with undefined symbols to be built.
13003 allow_undefined_flag=$lt_allow_undefined_flag
13004
13005 # Flag that enforces no undefined symbols.
13006 no_undefined_flag=$lt_no_undefined_flag
13007
13008 # Flag to hardcode \$libdir into a binary during linking.
13009 # This must work even if \$libdir does not exist
13010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13011
13012 # If ld is used when linking, flag to hardcode \$libdir into a binary
13013 # during linking. This must work even if \$libdir does not exist.
13014 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13015
13016 # Whether we need a single "-rpath" flag with a separated argument.
13017 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13018
13019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13020 # DIR into the resulting binary.
13021 hardcode_direct=$hardcode_direct
13022
13023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13024 # DIR into the resulting binary and the resulting library dependency is
13025 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13026 # library is relocated.
13027 hardcode_direct_absolute=$hardcode_direct_absolute
13028
13029 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13030 # into the resulting binary.
13031 hardcode_minus_L=$hardcode_minus_L
13032
13033 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13034 # into the resulting binary.
13035 hardcode_shlibpath_var=$hardcode_shlibpath_var
13036
13037 # Set to "yes" if building a shared library automatically hardcodes DIR
13038 # into the library and all subsequent libraries and executables linked
13039 # against it.
13040 hardcode_automatic=$hardcode_automatic
13041
13042 # Set to yes if linker adds runtime paths of dependent libraries
13043 # to runtime path list.
13044 inherit_rpath=$inherit_rpath
13045
13046 # Whether libtool must link a program against all its dependency libraries.
13047 link_all_deplibs=$link_all_deplibs
13048
13049 # Fix the shell variable \$srcfile for the compiler.
13050 fix_srcfile_path=$lt_fix_srcfile_path
13051
13052 # Set to "yes" if exported symbols are required.
13053 always_export_symbols=$always_export_symbols
13054
13055 # The commands to list exported symbols.
13056 export_symbols_cmds=$lt_export_symbols_cmds
13057
13058 # Symbols that should not be listed in the preloaded symbols.
13059 exclude_expsyms=$lt_exclude_expsyms
13060
13061 # Symbols that must always be exported.
13062 include_expsyms=$lt_include_expsyms
13063
13064 # Commands necessary for linking programs (against libraries) with templates.
13065 prelink_cmds=$lt_prelink_cmds
13066
13067 # Specify filename containing input files.
13068 file_list_spec=$lt_file_list_spec
13069
13070 # How to hardcode a shared library path into an executable.
13071 hardcode_action=$hardcode_action
13072
13073 # ### END LIBTOOL CONFIG
13074
13075 _LT_EOF
13076
13077 case $host_os in
13078 aix3*)
13079 cat <<\_LT_EOF >> "$cfgfile"
13080 # AIX sometimes has problems with the GCC collect2 program. For some
13081 # reason, if we set the COLLECT_NAMES environment variable, the problems
13082 # vanish in a puff of smoke.
13083 if test "X${COLLECT_NAMES+set}" != Xset; then
13084 COLLECT_NAMES=
13085 export COLLECT_NAMES
13086 fi
13087 _LT_EOF
13088 ;;
13089 esac
13090
13091
13092 ltmain="$ac_aux_dir/ltmain.sh"
13093
13094
13095 # We use sed instead of cat because bash on DJGPP gets confused if
13096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13097 # text mode, it properly converts lines to CR/LF. This bash problem
13098 # is reportedly fixed, but why not run on old versions too?
13099 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13100 || (rm -f "$cfgfile"; exit 1)
13101
13102 case $xsi_shell in
13103 yes)
13104 cat << \_LT_EOF >> "$cfgfile"
13105
13106 # func_dirname file append nondir_replacement
13107 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13108 # otherwise set result to NONDIR_REPLACEMENT.
13109 func_dirname ()
13110 {
13111 case ${1} in
13112 */*) func_dirname_result="${1%/*}${2}" ;;
13113 * ) func_dirname_result="${3}" ;;
13114 esac
13115 }
13116
13117 # func_basename file
13118 func_basename ()
13119 {
13120 func_basename_result="${1##*/}"
13121 }
13122
13123 # func_dirname_and_basename file append nondir_replacement
13124 # perform func_basename and func_dirname in a single function
13125 # call:
13126 # dirname: Compute the dirname of FILE. If nonempty,
13127 # add APPEND to the result, otherwise set result
13128 # to NONDIR_REPLACEMENT.
13129 # value returned in "$func_dirname_result"
13130 # basename: Compute filename of FILE.
13131 # value retuned in "$func_basename_result"
13132 # Implementation must be kept synchronized with func_dirname
13133 # and func_basename. For efficiency, we do not delegate to
13134 # those functions but instead duplicate the functionality here.
13135 func_dirname_and_basename ()
13136 {
13137 case ${1} in
13138 */*) func_dirname_result="${1%/*}${2}" ;;
13139 * ) func_dirname_result="${3}" ;;
13140 esac
13141 func_basename_result="${1##*/}"
13142 }
13143
13144 # func_stripname prefix suffix name
13145 # strip PREFIX and SUFFIX off of NAME.
13146 # PREFIX and SUFFIX must not contain globbing or regex special
13147 # characters, hashes, percent signs, but SUFFIX may contain a leading
13148 # dot (in which case that matches only a dot).
13149 func_stripname ()
13150 {
13151 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13152 # positional parameters, so assign one to ordinary parameter first.
13153 func_stripname_result=${3}
13154 func_stripname_result=${func_stripname_result#"${1}"}
13155 func_stripname_result=${func_stripname_result%"${2}"}
13156 }
13157
13158 # func_opt_split
13159 func_opt_split ()
13160 {
13161 func_opt_split_opt=${1%%=*}
13162 func_opt_split_arg=${1#*=}
13163 }
13164
13165 # func_lo2o object
13166 func_lo2o ()
13167 {
13168 case ${1} in
13169 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13170 *) func_lo2o_result=${1} ;;
13171 esac
13172 }
13173
13174 # func_xform libobj-or-source
13175 func_xform ()
13176 {
13177 func_xform_result=${1%.*}.lo
13178 }
13179
13180 # func_arith arithmetic-term...
13181 func_arith ()
13182 {
13183 func_arith_result=$(( $* ))
13184 }
13185
13186 # func_len string
13187 # STRING may not start with a hyphen.
13188 func_len ()
13189 {
13190 func_len_result=${#1}
13191 }
13192
13193 _LT_EOF
13194 ;;
13195 *) # Bourne compatible functions.
13196 cat << \_LT_EOF >> "$cfgfile"
13197
13198 # func_dirname file append nondir_replacement
13199 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13200 # otherwise set result to NONDIR_REPLACEMENT.
13201 func_dirname ()
13202 {
13203 # Extract subdirectory from the argument.
13204 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13205 if test "X$func_dirname_result" = "X${1}"; then
13206 func_dirname_result="${3}"
13207 else
13208 func_dirname_result="$func_dirname_result${2}"
13209 fi
13210 }
13211
13212 # func_basename file
13213 func_basename ()
13214 {
13215 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13216 }
13217
13218
13219 # func_stripname prefix suffix name
13220 # strip PREFIX and SUFFIX off of NAME.
13221 # PREFIX and SUFFIX must not contain globbing or regex special
13222 # characters, hashes, percent signs, but SUFFIX may contain a leading
13223 # dot (in which case that matches only a dot).
13224 # func_strip_suffix prefix name
13225 func_stripname ()
13226 {
13227 case ${2} in
13228 .*) func_stripname_result=`$ECHO "X${3}" \
13229 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13230 *) func_stripname_result=`$ECHO "X${3}" \
13231 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13232 esac
13233 }
13234
13235 # sed scripts:
13236 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13237 my_sed_long_arg='1s/^-[^=]*=//'
13238
13239 # func_opt_split
13240 func_opt_split ()
13241 {
13242 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13243 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13244 }
13245
13246 # func_lo2o object
13247 func_lo2o ()
13248 {
13249 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13250 }
13251
13252 # func_xform libobj-or-source
13253 func_xform ()
13254 {
13255 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13256 }
13257
13258 # func_arith arithmetic-term...
13259 func_arith ()
13260 {
13261 func_arith_result=`expr "$@"`
13262 }
13263
13264 # func_len string
13265 # STRING may not start with a hyphen.
13266 func_len ()
13267 {
13268 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13269 }
13270
13271 _LT_EOF
13272 esac
13273
13274 case $lt_shell_append in
13275 yes)
13276 cat << \_LT_EOF >> "$cfgfile"
13277
13278 # func_append var value
13279 # Append VALUE to the end of shell variable VAR.
13280 func_append ()
13281 {
13282 eval "$1+=\$2"
13283 }
13284 _LT_EOF
13285 ;;
13286 *)
13287 cat << \_LT_EOF >> "$cfgfile"
13288
13289 # func_append var value
13290 # Append VALUE to the end of shell variable VAR.
13291 func_append ()
13292 {
13293 eval "$1=\$$1\$2"
13294 }
13295
13296 _LT_EOF
13297 ;;
13298 esac
13299
13300
13301 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13302 || (rm -f "$cfgfile"; exit 1)
13303
13304 mv -f "$cfgfile" "$ofile" ||
13305 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13306 chmod +x "$ofile"
13307
13308 ;;
13309
13310 esac
13311 done # for ac_tag
13312
13313
13314 as_fn_exit 0
13315 _ACEOF
13316 ac_clean_files=$ac_clean_files_save
13317
13318 test $ac_write_fail = 0 ||
13319 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13320
13321
13322 # configure is writing to config.log, and then calls config.status.
13323 # config.status does its own redirection, appending to config.log.
13324 # Unfortunately, on DOS this fails, as config.log is still kept open
13325 # by configure, so config.status won't be able to write to it; its
13326 # output is simply discarded. So we exec the FD to /dev/null,
13327 # effectively closing config.log, so it can be properly (re)opened and
13328 # appended to by config.status. When coming back to configure, we
13329 # need to make the FD available again.
13330 if test "$no_create" != yes; then
13331 ac_cs_success=:
13332 ac_config_status_args=
13333 test "$silent" = yes &&
13334 ac_config_status_args="$ac_config_status_args --quiet"
13335 exec 5>/dev/null
13336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13337 exec 5>>config.log
13338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13339 # would make configure fail if this is the last instruction.
13340 $ac_cs_success || as_fn_exit $?
13341 fi
13342 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13344 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13345 fi
13346