Update automatically managed build utilities.
[sod] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sod 0.2.0-29-g54c0.
4 #
5 # Report bugs to <mdw@distorted.org.uk>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: mdw@distorted.org.uk about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='sod'
592 PACKAGE_TARNAME='sod'
593 PACKAGE_VERSION='0.2.0-29-g54c0'
594 PACKAGE_STRING='sod 0.2.0-29-g54c0'
595 PACKAGE_BUGREPORT='mdw@distorted.org.uk'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/sod.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 lispsysdir
640 lispsrcdir
641 fasl
642 LISPSYS
643 CL_LAUNCH
644 LIBTOOL_VERSION_INFO
645 CPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 ac_ct_AR
654 AR
655 DLLTOOL
656 OBJDUMP
657 LN_S
658 NM
659 ac_ct_DUMPBIN
660 DUMPBIN
661 LD
662 FGREP
663 EGREP
664 GREP
665 SED
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 LIBTOOL
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_dependency_tracking
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 with_lisp_system
770 with_lisp_source_dir
771 with_lisp_system_dir
772 '
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
776 CC
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
781 CPP'
782
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
841 fi
842
843 case $ac_option in
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
847 esac
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
879
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
912
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1132
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
1167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information"
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 ;;
1188
1189 esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error $? "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1210 do
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1286 fi
1287 else
1288 ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures sod 0.2.0-29-g54c0 to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/sod]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1376
1377 cat <<\_ACEOF
1378
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of sod 0.2.0-29-g54c0:";;
1393 esac
1394 cat <<\_ACEOF
1395
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-silent-rules less verbose build output (undo: `make V=1')
1401 --disable-silent-rules verbose build output (undo: `make V=0')
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409
1410 Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1414 both]
1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1416 --with-sysroot=DIR Search for dependent libraries within DIR
1417 (or the compiler's sysroot if not specified).
1418 --with-lisp-system=SYSTEMS
1419 preference order of cl-launch Lisp systems
1420 --with-lisp-source-dir=DIR
1421 where to install Common Lisp source files
1422 --with-lisp-system-dir=DIR
1423 where to install ASDF system links
1424
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to <mdw@distorted.org.uk>.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 sod configure 0.2.0-29-g54c0
1502 generated by GNU Autoconf 2.69
1503
1504 Copyright (C) 2012 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547 fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_link ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 test -x conftest$ac_exeext
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_link
1598
1599 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists and can be compiled using the include files in
1602 # INCLUDES, setting the cache variable VAR accordingly.
1603 ac_fn_c_check_header_compile ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1610 else
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 $4
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_compile "$LINENO"; then :
1617 eval "$3=yes"
1618 else
1619 eval "$3=no"
1620 fi
1621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622 fi
1623 eval ac_res=\$$3
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 $as_echo "$ac_res" >&6; }
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628 } # ac_fn_c_check_header_compile
1629
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_cpp ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } > conftest.i && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_cpp
1666
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1671 ac_fn_c_try_run ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=$ac_status
1702 fi
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_run
1708
1709 # ac_fn_c_check_func LINENO FUNC VAR
1710 # ----------------------------------
1711 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1712 ac_fn_c_check_func ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1724 #define $2 innocuous_$2
1725
1726 /* System header to define __stub macros and hopefully few prototypes,
1727 which can conflict with char $2 (); below.
1728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1729 <limits.h> exists even on freestanding compilers. */
1730
1731 #ifdef __STDC__
1732 # include <limits.h>
1733 #else
1734 # include <assert.h>
1735 #endif
1736
1737 #undef $2
1738
1739 /* Override any GCC internal prototype to avoid an error.
1740 Use char because int might match the return type of a GCC
1741 builtin and then its argument prototype would still apply. */
1742 #ifdef __cplusplus
1743 extern "C"
1744 #endif
1745 char $2 ();
1746 /* The GNU C library defines this for functions which it implements
1747 to always fail with ENOSYS. Some functions are actually named
1748 something starting with __ and the normal name is an alias. */
1749 #if defined __stub_$2 || defined __stub___$2
1750 choke me
1751 #endif
1752
1753 int
1754 main ()
1755 {
1756 return $2 ();
1757 ;
1758 return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_link "$LINENO"; then :
1762 eval "$3=yes"
1763 else
1764 eval "$3=no"
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext \
1767 conftest$ac_exeext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_func
1775 cat >config.log <<_ACEOF
1776 This file contains any messages produced by compilers while
1777 running configure, to aid debugging if configure makes a mistake.
1778
1779 It was created by sod $as_me 0.2.0-29-g54c0, which was
1780 generated by GNU Autoconf 2.69. Invocation command line was
1781
1782 $ $0 $@
1783
1784 _ACEOF
1785 exec 5>>config.log
1786 {
1787 cat <<_ASUNAME
1788 ## --------- ##
1789 ## Platform. ##
1790 ## --------- ##
1791
1792 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1793 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1794 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1795 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1796 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1797
1798 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1799 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1800
1801 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1802 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1803 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1804 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1805 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1806 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1807 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1808
1809 _ASUNAME
1810
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 $as_echo "PATH: $as_dir"
1817 done
1818 IFS=$as_save_IFS
1819
1820 } >&5
1821
1822 cat >&5 <<_ACEOF
1823
1824
1825 ## ----------- ##
1826 ## Core tests. ##
1827 ## ----------- ##
1828
1829 _ACEOF
1830
1831
1832 # Keep a trace of the command line.
1833 # Strip out --no-create and --no-recursion so they do not pile up.
1834 # Strip out --silent because we don't want to record it for future runs.
1835 # Also quote any args containing shell meta-characters.
1836 # Make two passes to allow for proper duplicate-argument suppression.
1837 ac_configure_args=
1838 ac_configure_args0=
1839 ac_configure_args1=
1840 ac_must_keep_next=false
1841 for ac_pass in 1 2
1842 do
1843 for ac_arg
1844 do
1845 case $ac_arg in
1846 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1848 | -silent | --silent | --silen | --sile | --sil)
1849 continue ;;
1850 *\'*)
1851 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1852 esac
1853 case $ac_pass in
1854 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1855 2)
1856 as_fn_append ac_configure_args1 " '$ac_arg'"
1857 if test $ac_must_keep_next = true; then
1858 ac_must_keep_next=false # Got value, back to normal.
1859 else
1860 case $ac_arg in
1861 *=* | --config-cache | -C | -disable-* | --disable-* \
1862 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1863 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1864 | -with-* | --with-* | -without-* | --without-* | --x)
1865 case "$ac_configure_args0 " in
1866 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1867 esac
1868 ;;
1869 -* ) ac_must_keep_next=true ;;
1870 esac
1871 fi
1872 as_fn_append ac_configure_args " '$ac_arg'"
1873 ;;
1874 esac
1875 done
1876 done
1877 { ac_configure_args0=; unset ac_configure_args0;}
1878 { ac_configure_args1=; unset ac_configure_args1;}
1879
1880 # When interrupted or exit'd, cleanup temporary files, and complete
1881 # config.log. We remove comments because anyway the quotes in there
1882 # would cause problems or look ugly.
1883 # WARNING: Use '\'' to represent an apostrophe within the trap.
1884 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1885 trap 'exit_status=$?
1886 # Save into config.log some information that might help in debugging.
1887 {
1888 echo
1889
1890 $as_echo "## ---------------- ##
1891 ## Cache variables. ##
1892 ## ---------------- ##"
1893 echo
1894 # The following way of writing the cache mishandles newlines in values,
1895 (
1896 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1897 eval ac_val=\$$ac_var
1898 case $ac_val in #(
1899 *${as_nl}*)
1900 case $ac_var in #(
1901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1902 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1903 esac
1904 case $ac_var in #(
1905 _ | IFS | as_nl) ;; #(
1906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1907 *) { eval $ac_var=; unset $ac_var;} ;;
1908 esac ;;
1909 esac
1910 done
1911 (set) 2>&1 |
1912 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1913 *${as_nl}ac_space=\ *)
1914 sed -n \
1915 "s/'\''/'\''\\\\'\'''\''/g;
1916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1917 ;; #(
1918 *)
1919 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1920 ;;
1921 esac |
1922 sort
1923 )
1924 echo
1925
1926 $as_echo "## ----------------- ##
1927 ## Output variables. ##
1928 ## ----------------- ##"
1929 echo
1930 for ac_var in $ac_subst_vars
1931 do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in
1934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935 esac
1936 $as_echo "$ac_var='\''$ac_val'\''"
1937 done | sort
1938 echo
1939
1940 if test -n "$ac_subst_files"; then
1941 $as_echo "## ------------------- ##
1942 ## File substitutions. ##
1943 ## ------------------- ##"
1944 echo
1945 for ac_var in $ac_subst_files
1946 do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in
1949 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950 esac
1951 $as_echo "$ac_var='\''$ac_val'\''"
1952 done | sort
1953 echo
1954 fi
1955
1956 if test -s confdefs.h; then
1957 $as_echo "## ----------- ##
1958 ## confdefs.h. ##
1959 ## ----------- ##"
1960 echo
1961 cat confdefs.h
1962 echo
1963 fi
1964 test "$ac_signal" != 0 &&
1965 $as_echo "$as_me: caught signal $ac_signal"
1966 $as_echo "$as_me: exit $exit_status"
1967 } >&5
1968 rm -f core *.core core.conftest.* &&
1969 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1970 exit $exit_status
1971 ' 0
1972 for ac_signal in 1 2 13 15; do
1973 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1974 done
1975 ac_signal=0
1976
1977 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1978 rm -f -r conftest* confdefs.h
1979
1980 $as_echo "/* confdefs.h */" > confdefs.h
1981
1982 # Predefined preprocessor variables.
1983
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_NAME "$PACKAGE_NAME"
1986 _ACEOF
1987
1988 cat >>confdefs.h <<_ACEOF
1989 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1990 _ACEOF
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1994 _ACEOF
1995
1996 cat >>confdefs.h <<_ACEOF
1997 #define PACKAGE_STRING "$PACKAGE_STRING"
1998 _ACEOF
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2002 _ACEOF
2003
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_URL "$PACKAGE_URL"
2006 _ACEOF
2007
2008
2009 # Let the site file select an alternate cache file if it wants to.
2010 # Prefer an explicitly selected file to automatically selected ones.
2011 ac_site_file1=NONE
2012 ac_site_file2=NONE
2013 if test -n "$CONFIG_SITE"; then
2014 # We do not want a PATH search for config.site.
2015 case $CONFIG_SITE in #((
2016 -*) ac_site_file1=./$CONFIG_SITE;;
2017 */*) ac_site_file1=$CONFIG_SITE;;
2018 *) ac_site_file1=./$CONFIG_SITE;;
2019 esac
2020 elif test "x$prefix" != xNONE; then
2021 ac_site_file1=$prefix/share/config.site
2022 ac_site_file2=$prefix/etc/config.site
2023 else
2024 ac_site_file1=$ac_default_prefix/share/config.site
2025 ac_site_file2=$ac_default_prefix/etc/config.site
2026 fi
2027 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2028 do
2029 test "x$ac_site_file" = xNONE && continue
2030 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2032 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2033 sed 's/^/| /' "$ac_site_file" >&5
2034 . "$ac_site_file" \
2035 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2037 as_fn_error $? "failed to load site script $ac_site_file
2038 See \`config.log' for more details" "$LINENO" 5; }
2039 fi
2040 done
2041
2042 if test -r "$cache_file"; then
2043 # Some versions of bash will fail to source /dev/null (special files
2044 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2045 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2047 $as_echo "$as_me: loading cache $cache_file" >&6;}
2048 case $cache_file in
2049 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2050 *) . "./$cache_file";;
2051 esac
2052 fi
2053 else
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2055 $as_echo "$as_me: creating cache $cache_file" >&6;}
2056 >$cache_file
2057 fi
2058
2059 # Check that the precious variables saved in the cache have kept the same
2060 # value.
2061 ac_cache_corrupted=false
2062 for ac_var in $ac_precious_vars; do
2063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2064 eval ac_new_set=\$ac_env_${ac_var}_set
2065 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2066 eval ac_new_val=\$ac_env_${ac_var}_value
2067 case $ac_old_set,$ac_new_set in
2068 set,)
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2070 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2071 ac_cache_corrupted=: ;;
2072 ,set)
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2074 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2075 ac_cache_corrupted=: ;;
2076 ,);;
2077 *)
2078 if test "x$ac_old_val" != "x$ac_new_val"; then
2079 # differences in whitespace do not lead to failure.
2080 ac_old_val_w=`echo x $ac_old_val`
2081 ac_new_val_w=`echo x $ac_new_val`
2082 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2084 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2085 ac_cache_corrupted=:
2086 else
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2088 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2089 eval $ac_var=\$ac_old_val
2090 fi
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2092 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2094 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2095 fi;;
2096 esac
2097 # Pass precious variables to config.status.
2098 if test "$ac_new_set" = set; then
2099 case $ac_new_val in
2100 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2101 *) ac_arg=$ac_var=$ac_new_val ;;
2102 esac
2103 case " $ac_configure_args " in
2104 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2105 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2106 esac
2107 fi
2108 done
2109 if $ac_cache_corrupted; then
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2113 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2114 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2115 fi
2116 ## -------------------- ##
2117 ## Main body of script. ##
2118 ## -------------------- ##
2119
2120 ac_ext=c
2121 ac_cpp='$CPP $CPPFLAGS'
2122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2125
2126
2127
2128 ac_aux_dir=
2129 for ac_dir in config "$srcdir"/config; do
2130 if test -f "$ac_dir/install-sh"; then
2131 ac_aux_dir=$ac_dir
2132 ac_install_sh="$ac_aux_dir/install-sh -c"
2133 break
2134 elif test -f "$ac_dir/install.sh"; then
2135 ac_aux_dir=$ac_dir
2136 ac_install_sh="$ac_aux_dir/install.sh -c"
2137 break
2138 elif test -f "$ac_dir/shtool"; then
2139 ac_aux_dir=$ac_dir
2140 ac_install_sh="$ac_aux_dir/shtool install -c"
2141 break
2142 fi
2143 done
2144 if test -z "$ac_aux_dir"; then
2145 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2146 fi
2147
2148 # These three variables are undocumented and unsupported,
2149 # and are intended to be withdrawn in a future Autoconf release.
2150 # They can cause serious problems if a builder's source tree is in a directory
2151 # whose full name contains unusual characters.
2152 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2153 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2154 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2155
2156
2157 am__api_version='1.11'
2158
2159 # Find a good install program. We prefer a C program (faster),
2160 # so one script is as good as another. But avoid the broken or
2161 # incompatible versions:
2162 # SysV /etc/install, /usr/sbin/install
2163 # SunOS /usr/etc/install
2164 # IRIX /sbin/install
2165 # AIX /bin/install
2166 # AmigaOS /C/install, which installs bootblocks on floppy discs
2167 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2168 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2169 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2170 # OS/2's system install, which has a completely different semantic
2171 # ./install, which can be erroneously created by make from ./install.sh.
2172 # Reject install programs that cannot install multiple files.
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2174 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2175 if test -z "$INSTALL"; then
2176 if ${ac_cv_path_install+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 # Account for people who put trailing slashes in PATH elements.
2185 case $as_dir/ in #((
2186 ./ | .// | /[cC]/* | \
2187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2188 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2189 /usr/ucb/* ) ;;
2190 *)
2191 # OSF1 and SCO ODT 3.0 have their own names for install.
2192 # Don't use installbsd from OSF since it installs stuff as root
2193 # by default.
2194 for ac_prog in ginstall scoinst install; do
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2197 if test $ac_prog = install &&
2198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2199 # AIX install. It has an incompatible calling convention.
2200 :
2201 elif test $ac_prog = install &&
2202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # program-specific install script used by HP pwplus--don't use.
2204 :
2205 else
2206 rm -rf conftest.one conftest.two conftest.dir
2207 echo one > conftest.one
2208 echo two > conftest.two
2209 mkdir conftest.dir
2210 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2211 test -s conftest.one && test -s conftest.two &&
2212 test -s conftest.dir/conftest.one &&
2213 test -s conftest.dir/conftest.two
2214 then
2215 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2216 break 3
2217 fi
2218 fi
2219 fi
2220 done
2221 done
2222 ;;
2223 esac
2224
2225 done
2226 IFS=$as_save_IFS
2227
2228 rm -rf conftest.one conftest.two conftest.dir
2229
2230 fi
2231 if test "${ac_cv_path_install+set}" = set; then
2232 INSTALL=$ac_cv_path_install
2233 else
2234 # As a last resort, use the slow shell script. Don't cache a
2235 # value for INSTALL within a source directory, because that will
2236 # break other packages using the cache if that directory is
2237 # removed, or if the value is a relative name.
2238 INSTALL=$ac_install_sh
2239 fi
2240 fi
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2242 $as_echo "$INSTALL" >&6; }
2243
2244 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2245 # It thinks the first close brace ends the variable substitution.
2246 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2247
2248 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2249
2250 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2251
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2253 $as_echo_n "checking whether build environment is sane... " >&6; }
2254 # Just in case
2255 sleep 1
2256 echo timestamp > conftest.file
2257 # Reject unsafe characters in $srcdir or the absolute working directory
2258 # name. Accept space and tab only in the latter.
2259 am_lf='
2260 '
2261 case `pwd` in
2262 *[\\\"\#\$\&\'\`$am_lf]*)
2263 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2264 esac
2265 case $srcdir in
2266 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2267 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2268 esac
2269
2270 # Do `set' in a subshell so we don't clobber the current shell's
2271 # arguments. Must try -L first in case configure is actually a
2272 # symlink; some systems play weird games with the mod time of symlinks
2273 # (eg FreeBSD returns the mod time of the symlink's containing
2274 # directory).
2275 if (
2276 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2277 if test "$*" = "X"; then
2278 # -L didn't work.
2279 set X `ls -t "$srcdir/configure" conftest.file`
2280 fi
2281 rm -f conftest.file
2282 if test "$*" != "X $srcdir/configure conftest.file" \
2283 && test "$*" != "X conftest.file $srcdir/configure"; then
2284
2285 # If neither matched, then we have a broken ls. This can happen
2286 # if, for instance, CONFIG_SHELL is bash and it inherits a
2287 # broken ls alias from the environment. This has actually
2288 # happened. Such a system could not be considered "sane".
2289 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2290 alias in your environment" "$LINENO" 5
2291 fi
2292
2293 test "$2" = conftest.file
2294 )
2295 then
2296 # Ok.
2297 :
2298 else
2299 as_fn_error $? "newly created file is older than distributed files!
2300 Check your system clock" "$LINENO" 5
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2303 $as_echo "yes" >&6; }
2304 test "$program_prefix" != NONE &&
2305 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2306 # Use a double $ so make ignores it.
2307 test "$program_suffix" != NONE &&
2308 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2309 # Double any \ or $.
2310 # By default was `s,x,x', remove it if useless.
2311 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2312 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2313
2314 # expand $ac_aux_dir to an absolute path
2315 am_aux_dir=`cd $ac_aux_dir && pwd`
2316
2317 if test x"${MISSING+set}" != xset; then
2318 case $am_aux_dir in
2319 *\ * | *\ *)
2320 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2321 *)
2322 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2323 esac
2324 fi
2325 # Use eval to expand $SHELL
2326 if eval "$MISSING --run true"; then
2327 am_missing_run="$MISSING --run "
2328 else
2329 am_missing_run=
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2331 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2332 fi
2333
2334 if test x"${install_sh}" != xset; then
2335 case $am_aux_dir in
2336 *\ * | *\ *)
2337 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2338 *)
2339 install_sh="\${SHELL} $am_aux_dir/install-sh"
2340 esac
2341 fi
2342
2343 # Installed binaries are usually stripped using `strip' when the user
2344 # run `make install-strip'. However `strip' might not be the right
2345 # tool to use in cross-compilation environments, therefore Automake
2346 # will honor the `STRIP' environment variable to overrule this program.
2347 if test "$cross_compiling" != no; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2350 set dummy ${ac_tool_prefix}strip; ac_word=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_STRIP+:} false; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$STRIP"; then
2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 STRIP=$ac_cv_prog_STRIP
2377 if test -n "$STRIP"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2379 $as_echo "$STRIP" >&6; }
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385
2386 fi
2387 if test -z "$ac_cv_prog_STRIP"; then
2388 ac_ct_STRIP=$STRIP
2389 # Extract the first word of "strip", so it can be a program name with args.
2390 set dummy strip; ac_word=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test -n "$ac_ct_STRIP"; then
2397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406 ac_cv_prog_ac_ct_STRIP="strip"
2407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2409 fi
2410 done
2411 done
2412 IFS=$as_save_IFS
2413
2414 fi
2415 fi
2416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2417 if test -n "$ac_ct_STRIP"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2419 $as_echo "$ac_ct_STRIP" >&6; }
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422 $as_echo "no" >&6; }
2423 fi
2424
2425 if test "x$ac_ct_STRIP" = x; then
2426 STRIP=":"
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429 yes:)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 STRIP=$ac_ct_STRIP
2435 fi
2436 else
2437 STRIP="$ac_cv_prog_STRIP"
2438 fi
2439
2440 fi
2441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2444 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2445 if test -z "$MKDIR_P"; then
2446 if ${ac_cv_path_mkdir+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_prog in mkdir gmkdir; do
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2457 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2458 'mkdir (GNU coreutils) '* | \
2459 'mkdir (coreutils) '* | \
2460 'mkdir (fileutils) '4.1*)
2461 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2462 break 3;;
2463 esac
2464 done
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470
2471 test -d ./--version && rmdir ./--version
2472 if test "${ac_cv_path_mkdir+set}" = set; then
2473 MKDIR_P="$ac_cv_path_mkdir -p"
2474 else
2475 # As a last resort, use the slow shell script. Don't cache a
2476 # value for MKDIR_P within a source directory, because that will
2477 # break other packages using the cache if that directory is
2478 # removed, or if the value is a relative name.
2479 MKDIR_P="$ac_install_sh -d"
2480 fi
2481 fi
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2483 $as_echo "$MKDIR_P" >&6; }
2484
2485 mkdir_p="$MKDIR_P"
2486 case $mkdir_p in
2487 [\\/$]* | ?:[\\/]*) ;;
2488 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2489 esac
2490
2491 for ac_prog in gawk mawk nawk awk
2492 do
2493 # Extract the first word of "$ac_prog", so it can be a program name with args.
2494 set dummy $ac_prog; ac_word=$2
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496 $as_echo_n "checking for $ac_word... " >&6; }
2497 if ${ac_cv_prog_AWK+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 if test -n "$AWK"; then
2501 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2510 ac_cv_prog_AWK="$ac_prog"
2511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2513 fi
2514 done
2515 done
2516 IFS=$as_save_IFS
2517
2518 fi
2519 fi
2520 AWK=$ac_cv_prog_AWK
2521 if test -n "$AWK"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2523 $as_echo "$AWK" >&6; }
2524 else
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2527 fi
2528
2529
2530 test -n "$AWK" && break
2531 done
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2534 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2535 set x ${MAKE-make}
2536 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2537 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 cat >conftest.make <<\_ACEOF
2541 SHELL = /bin/sh
2542 all:
2543 @echo '@@@%%%=$(MAKE)=@@@%%%'
2544 _ACEOF
2545 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2546 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2547 *@@@%%%=?*=@@@%%%*)
2548 eval ac_cv_prog_make_${ac_make}_set=yes;;
2549 *)
2550 eval ac_cv_prog_make_${ac_make}_set=no;;
2551 esac
2552 rm -f conftest.make
2553 fi
2554 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2557 SET_MAKE=
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 SET_MAKE="MAKE=${MAKE-make}"
2562 fi
2563
2564 rm -rf .tst 2>/dev/null
2565 mkdir .tst 2>/dev/null
2566 if test -d .tst; then
2567 am__leading_dot=.
2568 else
2569 am__leading_dot=_
2570 fi
2571 rmdir .tst 2>/dev/null
2572
2573 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2574 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2575 # is not polluted with repeated "-I."
2576 am__isrc=' -I$(srcdir)'
2577 # test to see if srcdir already configured
2578 if test -f $srcdir/config.status; then
2579 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2580 fi
2581 fi
2582
2583 # test whether we have cygpath
2584 if test -z "$CYGPATH_W"; then
2585 if (cygpath --version) >/dev/null 2>/dev/null; then
2586 CYGPATH_W='cygpath -w'
2587 else
2588 CYGPATH_W=echo
2589 fi
2590 fi
2591
2592
2593 # Define the identity of the package.
2594 PACKAGE='sod'
2595 VERSION='0.2.0-29-g54c0'
2596
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE "$PACKAGE"
2600 _ACEOF
2601
2602
2603 cat >>confdefs.h <<_ACEOF
2604 #define VERSION "$VERSION"
2605 _ACEOF
2606
2607 # Some tools Automake needs.
2608
2609 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2610
2611
2612 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2613
2614
2615 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2616
2617
2618 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2619
2620
2621 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2622
2623 # We need awk for the "check" target. The system "awk" is bad on
2624 # some platforms.
2625 # Always define AMTAR for backward compatibility. Yes, it's still used
2626 # in the wild :-( We should find a proper way to deprecate it ...
2627 AMTAR='$${TAR-tar}'
2628
2629 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2630
2631
2632
2633
2634
2635
2636
2637 # Check whether --enable-silent-rules was given.
2638 if test "${enable_silent_rules+set}" = set; then :
2639 enableval=$enable_silent_rules;
2640 fi
2641
2642 case $enable_silent_rules in
2643 yes) AM_DEFAULT_VERBOSITY=0;;
2644 no) AM_DEFAULT_VERBOSITY=1;;
2645 *) AM_DEFAULT_VERBOSITY=0;;
2646 esac
2647 am_make=${MAKE-make}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2649 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2650 if ${am_cv_make_support_nested_variables+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if $as_echo 'TRUE=$(BAR$(V))
2654 BAR0=false
2655 BAR1=true
2656 V=1
2657 am__doit:
2658 @$(TRUE)
2659 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2660 am_cv_make_support_nested_variables=yes
2661 else
2662 am_cv_make_support_nested_variables=no
2663 fi
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2666 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2667 if test $am_cv_make_support_nested_variables = yes; then
2668 AM_V='$(V)'
2669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2670 else
2671 AM_V=$AM_DEFAULT_VERBOSITY
2672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2673 fi
2674 AM_BACKSLASH='\'
2675
2676
2677
2678
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 CC=$ac_cv_prog_CC
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721
2722 fi
2723 if test -z "$ac_cv_prog_CC"; then
2724 ac_ct_CC=$CC
2725 # Extract the first word of "gcc", so it can be a program name with args.
2726 set dummy gcc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$ac_ct_CC"; then
2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_ac_ct_CC="gcc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753 if test -n "$ac_ct_CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2755 $as_echo "$ac_ct_CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761 if test "x$ac_ct_CC" = x; then
2762 CC=""
2763 else
2764 case $cross_compiling:$ac_tool_warned in
2765 yes:)
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned=yes ;;
2769 esac
2770 CC=$ac_ct_CC
2771 fi
2772 else
2773 CC="$ac_cv_prog_CC"
2774 fi
2775
2776 if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}cc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}cc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CC=$ac_cv_prog_CC
2806 if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 fi
2817 if test -z "$CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_CC+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828 ac_prog_rejected=no
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837 ac_prog_rejected=yes
2838 continue
2839 fi
2840 ac_cv_prog_CC="cc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 if test $ac_prog_rejected = yes; then
2849 # We found a bogon in the path, so make sure we never use it.
2850 set dummy $ac_cv_prog_CC
2851 shift
2852 if test $# != 0; then
2853 # We chose a different compiler from the bogus one.
2854 # However, it has the same basename, so the bogon will be chosen
2855 # first if we set CC to just the basename; use the full file name.
2856 shift
2857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2858 fi
2859 fi
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 fi
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 for ac_prog in cl.exe
2876 do
2877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914 test -n "$CC" && break
2915 done
2916 fi
2917 if test -z "$CC"; then
2918 ac_ct_CC=$CC
2919 for ac_prog in cl.exe
2920 do
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_CC="$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 test -n "$ac_ct_CC" && break
2959 done
2960
2961 if test "x$ac_ct_CC" = x; then
2962 CC=""
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970 CC=$ac_ct_CC
2971 fi
2972 fi
2973
2974 fi
2975
2976
2977 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 as_fn_error $? "no acceptable C compiler found in \$PATH
2980 See \`config.log' for more details" "$LINENO" 5; }
2981
2982 # Provide some information about the compiler.
2983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2984 set X $ac_compile
2985 ac_compiler=$2
2986 for ac_option in --version -v -V -qversion; do
2987 { { ac_try="$ac_compiler $ac_option >&5"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2995 ac_status=$?
2996 if test -s conftest.err; then
2997 sed '10a\
2998 ... rest of stderr output deleted ...
2999 10q' conftest.err >conftest.er1
3000 cat conftest.er1 >&5
3001 fi
3002 rm -f conftest.er1 conftest.err
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }
3005 done
3006
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3009
3010 int
3011 main ()
3012 {
3013
3014 ;
3015 return 0;
3016 }
3017 _ACEOF
3018 ac_clean_files_save=$ac_clean_files
3019 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3020 # Try to create an executable without -o first, disregard a.out.
3021 # It will help us diagnose broken compilers, and finding out an intuition
3022 # of exeext.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3024 $as_echo_n "checking whether the C compiler works... " >&6; }
3025 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3026
3027 # The possible output files:
3028 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3029
3030 ac_rmfiles=
3031 for ac_file in $ac_files
3032 do
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3035 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3036 esac
3037 done
3038 rm -f $ac_rmfiles
3039
3040 if { { ac_try="$ac_link_default"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link_default") 2>&5
3048 ac_status=$?
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }; then :
3051 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3055 # Autoconf.
3056 for ac_file in $ac_files ''
3057 do
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3061 ;;
3062 [ab].out )
3063 # We found the default executable, but exeext='' is most
3064 # certainly right.
3065 break;;
3066 *.* )
3067 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3068 then :; else
3069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 fi
3071 # We set ac_cv_exeext here because the later test for it is not
3072 # safe: cross compilers may not add the suffix if given an `-o'
3073 # argument, so we may need to know it at that point already.
3074 # Even if this section looks crufty: it has the advantage of
3075 # actually working.
3076 break;;
3077 * )
3078 break;;
3079 esac
3080 done
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3082
3083 else
3084 ac_file=''
3085 fi
3086 if test -z "$ac_file"; then :
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error 77 "C compiler cannot create executables
3095 See \`config.log' for more details" "$LINENO" 5; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3101 $as_echo_n "checking for C compiler default output file name... " >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3103 $as_echo "$ac_file" >&6; }
3104 ac_exeext=$ac_cv_exeext
3105
3106 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3107 ac_clean_files=$ac_clean_files_save
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3109 $as_echo_n "checking for suffix of executables... " >&6; }
3110 if { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
3121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3123 # work properly (i.e., refer to `conftest.exe'), while it won't with
3124 # `rm'.
3125 for ac_file in conftest.exe conftest conftest.*; do
3126 test -f "$ac_file" || continue
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 break;;
3131 * ) break;;
3132 esac
3133 done
3134 else
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3138 See \`config.log' for more details" "$LINENO" 5; }
3139 fi
3140 rm -f conftest conftest$ac_cv_exeext
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3142 $as_echo "$ac_cv_exeext" >&6; }
3143
3144 rm -f conftest.$ac_ext
3145 EXEEXT=$ac_cv_exeext
3146 ac_exeext=$EXEEXT
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3149 #include <stdio.h>
3150 int
3151 main ()
3152 {
3153 FILE *f = fopen ("conftest.out", "w");
3154 return ferror (f) || fclose (f) != 0;
3155
3156 ;
3157 return 0;
3158 }
3159 _ACEOF
3160 ac_clean_files="$ac_clean_files conftest.out"
3161 # Check that the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3164 $as_echo_n "checking whether we are cross compiling... " >&6; }
3165 if test "$cross_compiling" != yes; then
3166 { { ac_try="$ac_link"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_link") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }
3177 if { ac_try='./conftest$ac_cv_exeext'
3178 { { case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; }; then
3188 cross_compiling=no
3189 else
3190 if test "$cross_compiling" = maybe; then
3191 cross_compiling=yes
3192 else
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot run C compiled programs.
3196 If you meant to cross compile, use \`--host'.
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 fi
3199 fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3202 $as_echo "$cross_compiling" >&6; }
3203
3204 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3207 $as_echo_n "checking for suffix of object files... " >&6; }
3208 if ${ac_cv_objext+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3213
3214 int
3215 main ()
3216 {
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.o conftest.obj
3223 if { { ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compile") 2>&5
3231 ac_status=$?
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
3234 for ac_file in conftest.o conftest.obj conftest.*; do
3235 test -f "$ac_file" || continue;
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3239 break;;
3240 esac
3241 done
3242 else
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 fi
3251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3252 fi
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3254 $as_echo "$ac_cv_objext" >&6; }
3255 OBJEXT=$ac_cv_objext
3256 ac_objext=$OBJEXT
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3258 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3259 if ${ac_cv_c_compiler_gnu+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3264
3265 int
3266 main ()
3267 {
3268 #ifndef __GNUC__
3269 choke me
3270 #endif
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277 ac_compiler_gnu=yes
3278 else
3279 ac_compiler_gnu=no
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3283
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3286 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3287 if test $ac_compiler_gnu = yes; then
3288 GCC=yes
3289 else
3290 GCC=
3291 fi
3292 ac_test_CFLAGS=${CFLAGS+set}
3293 ac_save_CFLAGS=$CFLAGS
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3295 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3296 if ${ac_cv_prog_cc_g+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 ac_save_c_werror_flag=$ac_c_werror_flag
3300 ac_c_werror_flag=yes
3301 ac_cv_prog_cc_g=no
3302 CFLAGS="-g"
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305
3306 int
3307 main ()
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_g=yes
3316 else
3317 CFLAGS=""
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320
3321 int
3322 main ()
3323 {
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330
3331 else
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3333 CFLAGS="-g"
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336
3337 int
3338 main ()
3339 {
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_prog_cc_g=yes
3347 fi
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 fi
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 fi
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_c_werror_flag=$ac_save_c_werror_flag
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3356 $as_echo "$ac_cv_prog_cc_g" >&6; }
3357 if test "$ac_test_CFLAGS" = set; then
3358 CFLAGS=$ac_save_CFLAGS
3359 elif test $ac_cv_prog_cc_g = yes; then
3360 if test "$GCC" = yes; then
3361 CFLAGS="-g -O2"
3362 else
3363 CFLAGS="-g"
3364 fi
3365 else
3366 if test "$GCC" = yes; then
3367 CFLAGS="-O2"
3368 else
3369 CFLAGS=
3370 fi
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3373 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3374 if ${ac_cv_prog_cc_c89+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 ac_cv_prog_cc_c89=no
3378 ac_save_CC=$CC
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381 #include <stdarg.h>
3382 #include <stdio.h>
3383 struct stat;
3384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3385 struct buf { int x; };
3386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387 static char *e (p, i)
3388 char **p;
3389 int i;
3390 {
3391 return p[i];
3392 }
3393 static char *f (char * (*g) (char **, int), char **p, ...)
3394 {
3395 char *s;
3396 va_list v;
3397 va_start (v,p);
3398 s = g (p, va_arg (v,int));
3399 va_end (v);
3400 return s;
3401 }
3402
3403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3404 function prototypes and stuff, but not '\xHH' hex character constants.
3405 These don't provoke an error unfortunately, instead are silently treated
3406 as 'x'. The following induces an error, until -std is added to get
3407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3408 array size at least. It's necessary to write '\x00'==0 to get something
3409 that's true only with -std. */
3410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411
3412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413 inside strings and character constants. */
3414 #define FOO(x) 'x'
3415 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416
3417 int test (int i, double x);
3418 struct s1 {int (*f) (int a);};
3419 struct s2 {int (*f) (double a);};
3420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421 int argc;
3422 char **argv;
3423 int
3424 main ()
3425 {
3426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 do
3434 CC="$ac_save_CC $ac_arg"
3435 if ac_fn_c_try_compile "$LINENO"; then :
3436 ac_cv_prog_cc_c89=$ac_arg
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext
3439 test "x$ac_cv_prog_cc_c89" != "xno" && break
3440 done
3441 rm -f conftest.$ac_ext
3442 CC=$ac_save_CC
3443
3444 fi
3445 # AC_CACHE_VAL
3446 case "x$ac_cv_prog_cc_c89" in
3447 x)
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3449 $as_echo "none needed" >&6; } ;;
3450 xno)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3452 $as_echo "unsupported" >&6; } ;;
3453 *)
3454 CC="$CC $ac_cv_prog_cc_c89"
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3456 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3457 esac
3458 if test "x$ac_cv_prog_cc_c89" != xno; then :
3459
3460 fi
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 DEPDIR="${am__leading_dot}deps"
3468
3469 ac_config_commands="$ac_config_commands depfiles"
3470
3471
3472 am_make=${MAKE-make}
3473 cat > confinc << 'END'
3474 am__doit:
3475 @echo this is the am__doit target
3476 .PHONY: am__doit
3477 END
3478 # If we don't find an include directive, just comment out the code.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3480 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3481 am__include="#"
3482 am__quote=
3483 _am_result=none
3484 # First try GNU make style include.
3485 echo "include confinc" > confmf
3486 # Ignore all kinds of additional output from `make'.
3487 case `$am_make -s -f confmf 2> /dev/null` in #(
3488 *the\ am__doit\ target*)
3489 am__include=include
3490 am__quote=
3491 _am_result=GNU
3492 ;;
3493 esac
3494 # Now try BSD make style include.
3495 if test "$am__include" = "#"; then
3496 echo '.include "confinc"' > confmf
3497 case `$am_make -s -f confmf 2> /dev/null` in #(
3498 *the\ am__doit\ target*)
3499 am__include=.include
3500 am__quote="\""
3501 _am_result=BSD
3502 ;;
3503 esac
3504 fi
3505
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3508 $as_echo "$_am_result" >&6; }
3509 rm -f confinc confmf
3510
3511 # Check whether --enable-dependency-tracking was given.
3512 if test "${enable_dependency_tracking+set}" = set; then :
3513 enableval=$enable_dependency_tracking;
3514 fi
3515
3516 if test "x$enable_dependency_tracking" != xno; then
3517 am_depcomp="$ac_aux_dir/depcomp"
3518 AMDEPBACKSLASH='\'
3519 am__nodep='_no'
3520 fi
3521 if test "x$enable_dependency_tracking" != xno; then
3522 AMDEP_TRUE=
3523 AMDEP_FALSE='#'
3524 else
3525 AMDEP_TRUE='#'
3526 AMDEP_FALSE=
3527 fi
3528
3529
3530
3531 depcc="$CC" am_compiler_list=
3532
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3534 $as_echo_n "checking dependency style of $depcc... " >&6; }
3535 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3539 # We make a subdir and do the tests there. Otherwise we can end up
3540 # making bogus files that we don't know about and never remove. For
3541 # instance it was reported that on HP-UX the gcc test will end up
3542 # making a dummy file named `D' -- because `-MD' means `put the output
3543 # in D'.
3544 rm -rf conftest.dir
3545 mkdir conftest.dir
3546 # Copy depcomp to subdir because otherwise we won't find it if we're
3547 # using a relative directory.
3548 cp "$am_depcomp" conftest.dir
3549 cd conftest.dir
3550 # We will build objects and dependencies in a subdirectory because
3551 # it helps to detect inapplicable dependency modes. For instance
3552 # both Tru64's cc and ICC support -MD to output dependencies as a
3553 # side effect of compilation, but ICC will put the dependencies in
3554 # the current directory while Tru64 will put them in the object
3555 # directory.
3556 mkdir sub
3557
3558 am_cv_CC_dependencies_compiler_type=none
3559 if test "$am_compiler_list" = ""; then
3560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 fi
3562 am__universal=false
3563 case " $depcc " in #(
3564 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3565 esac
3566
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3571 #
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3575 : > sub/conftest.c
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3581 done
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3583
3584 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3585 # mode. It turns out that the SunPro C++ compiler does not properly
3586 # handle `-M -o', and we need to detect this. Also, some Intel
3587 # versions had trouble with output in subdirs
3588 am__obj=sub/conftest.${OBJEXT-o}
3589 am__minus_obj="-o $am__obj"
3590 case $depmode in
3591 gcc)
3592 # This depmode causes a compiler race in universal mode.
3593 test "$am__universal" = false || continue
3594 ;;
3595 nosideeffect)
3596 # after this tag, mechanisms are not by side-effect, so they'll
3597 # only be used when explicitly requested
3598 if test "x$enable_dependency_tracking" = xyes; then
3599 continue
3600 else
3601 break
3602 fi
3603 ;;
3604 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3605 # This compiler won't grok `-c -o', but also, the minuso test has
3606 # not run yet. These depmodes are late enough in the game, and
3607 # so weak that their functioning should not be impacted.
3608 am__obj=conftest.${OBJEXT-o}
3609 am__minus_obj=
3610 ;;
3611 none) break ;;
3612 esac
3613 if depmode=$depmode \
3614 source=sub/conftest.c object=$am__obj \
3615 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3616 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3617 >/dev/null 2>conftest.err &&
3618 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3619 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3620 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3621 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3622 # icc doesn't choke on unknown options, it will just issue warnings
3623 # or remarks (even with -Werror). So we grep stderr for any message
3624 # that says an option was ignored or not supported.
3625 # When given -MP, icc 7.0 and 7.1 complain thusly:
3626 # icc: Command line warning: ignoring option '-M'; no argument required
3627 # The diagnosis changed in icc 8.0:
3628 # icc: Command line remark: option '-MP' not supported
3629 if (grep 'ignoring option' conftest.err ||
3630 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3631 am_cv_CC_dependencies_compiler_type=$depmode
3632 break
3633 fi
3634 fi
3635 done
3636
3637 cd ..
3638 rm -rf conftest.dir
3639 else
3640 am_cv_CC_dependencies_compiler_type=none
3641 fi
3642
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3645 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3646 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3647
3648 if
3649 test "x$enable_dependency_tracking" != xno \
3650 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3651 am__fastdepCC_TRUE=
3652 am__fastdepCC_FALSE='#'
3653 else
3654 am__fastdepCC_TRUE='#'
3655 am__fastdepCC_FALSE=
3656 fi
3657
3658
3659 case `pwd` in
3660 *\ * | *\ *)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3662 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3663 esac
3664
3665
3666
3667 macro_version='2.4.2'
3668 macro_revision='1.3337'
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682 ltmain="$ac_aux_dir/ltmain.sh"
3683
3684 # Make sure we can run config.sub.
3685 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3686 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3689 $as_echo_n "checking build system type... " >&6; }
3690 if ${ac_cv_build+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 ac_build_alias=$build_alias
3694 test "x$ac_build_alias" = x &&
3695 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3696 test "x$ac_build_alias" = x &&
3697 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3698 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3699 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3700
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3703 $as_echo "$ac_cv_build" >&6; }
3704 case $ac_cv_build in
3705 *-*-*) ;;
3706 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3707 esac
3708 build=$ac_cv_build
3709 ac_save_IFS=$IFS; IFS='-'
3710 set x $ac_cv_build
3711 shift
3712 build_cpu=$1
3713 build_vendor=$2
3714 shift; shift
3715 # Remember, the first character of IFS is used to create $*,
3716 # except with old shells:
3717 build_os=$*
3718 IFS=$ac_save_IFS
3719 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3720
3721
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3723 $as_echo_n "checking host system type... " >&6; }
3724 if ${ac_cv_host+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test "x$host_alias" = x; then
3728 ac_cv_host=$ac_cv_build
3729 else
3730 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3731 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3732 fi
3733
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3736 $as_echo "$ac_cv_host" >&6; }
3737 case $ac_cv_host in
3738 *-*-*) ;;
3739 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3740 esac
3741 host=$ac_cv_host
3742 ac_save_IFS=$IFS; IFS='-'
3743 set x $ac_cv_host
3744 shift
3745 host_cpu=$1
3746 host_vendor=$2
3747 shift; shift
3748 # Remember, the first character of IFS is used to create $*,
3749 # except with old shells:
3750 host_os=$*
3751 IFS=$ac_save_IFS
3752 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3753
3754
3755 # Backslashify metacharacters that are still active within
3756 # double-quoted strings.
3757 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3758
3759 # Same as above, but do not quote variable references.
3760 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3761
3762 # Sed substitution to delay expansion of an escaped shell variable in a
3763 # double_quote_subst'ed string.
3764 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3765
3766 # Sed substitution to delay expansion of an escaped single quote.
3767 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3768
3769 # Sed substitution to avoid accidental globbing in evaled expressions
3770 no_glob_subst='s/\*/\\\*/g'
3771
3772 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3773 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3774 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3775
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3777 $as_echo_n "checking how to print strings... " >&6; }
3778 # Test print first, because it will be a builtin if present.
3779 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3780 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3781 ECHO='print -r --'
3782 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3783 ECHO='printf %s\n'
3784 else
3785 # Use this function as a fallback that always works.
3786 func_fallback_echo ()
3787 {
3788 eval 'cat <<_LTECHO_EOF
3789 $1
3790 _LTECHO_EOF'
3791 }
3792 ECHO='func_fallback_echo'
3793 fi
3794
3795 # func_echo_all arg...
3796 # Invoke $ECHO with all args, space-separated.
3797 func_echo_all ()
3798 {
3799 $ECHO ""
3800 }
3801
3802 case "$ECHO" in
3803 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3804 $as_echo "printf" >&6; } ;;
3805 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3806 $as_echo "print -r" >&6; } ;;
3807 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3808 $as_echo "cat" >&6; } ;;
3809 esac
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3825 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3826 if ${ac_cv_path_SED+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3830 for ac_i in 1 2 3 4 5 6 7; do
3831 ac_script="$ac_script$as_nl$ac_script"
3832 done
3833 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3834 { ac_script=; unset ac_script;}
3835 if test -z "$SED"; then
3836 ac_path_SED_found=false
3837 # Loop through the user's path and test for each of PROGNAME-LIST
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_prog in sed gsed; do
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3846 as_fn_executable_p "$ac_path_SED" || continue
3847 # Check for GNU ac_path_SED and select it if it is found.
3848 # Check for GNU $ac_path_SED
3849 case `"$ac_path_SED" --version 2>&1` in
3850 *GNU*)
3851 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3852 *)
3853 ac_count=0
3854 $as_echo_n 0123456789 >"conftest.in"
3855 while :
3856 do
3857 cat "conftest.in" "conftest.in" >"conftest.tmp"
3858 mv "conftest.tmp" "conftest.in"
3859 cp "conftest.in" "conftest.nl"
3860 $as_echo '' >> "conftest.nl"
3861 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3863 as_fn_arith $ac_count + 1 && ac_count=$as_val
3864 if test $ac_count -gt ${ac_path_SED_max-0}; then
3865 # Best one so far, save it but keep looking for a better one
3866 ac_cv_path_SED="$ac_path_SED"
3867 ac_path_SED_max=$ac_count
3868 fi
3869 # 10*(2^10) chars as input seems more than enough
3870 test $ac_count -gt 10 && break
3871 done
3872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3873 esac
3874
3875 $ac_path_SED_found && break 3
3876 done
3877 done
3878 done
3879 IFS=$as_save_IFS
3880 if test -z "$ac_cv_path_SED"; then
3881 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3882 fi
3883 else
3884 ac_cv_path_SED=$SED
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3889 $as_echo "$ac_cv_path_SED" >&6; }
3890 SED="$ac_cv_path_SED"
3891 rm -f conftest.sed
3892
3893 test -z "$SED" && SED=sed
3894 Xsed="$SED -e 1s/^X//"
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3907 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3908 if ${ac_cv_path_GREP+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -z "$GREP"; then
3912 ac_path_GREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in grep ggrep; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3922 as_fn_executable_p "$ac_path_GREP" || continue
3923 # Check for GNU ac_path_GREP and select it if it is found.
3924 # Check for GNU $ac_path_GREP
3925 case `"$ac_path_GREP" --version 2>&1` in
3926 *GNU*)
3927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3928 *)
3929 ac_count=0
3930 $as_echo_n 0123456789 >"conftest.in"
3931 while :
3932 do
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 $as_echo 'GREP' >> "conftest.nl"
3937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 as_fn_arith $ac_count + 1 && ac_count=$as_val
3940 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_GREP="$ac_path_GREP"
3943 ac_path_GREP_max=$ac_count
3944 fi
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3947 done
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 esac
3950
3951 $ac_path_GREP_found && break 3
3952 done
3953 done
3954 done
3955 IFS=$as_save_IFS
3956 if test -z "$ac_cv_path_GREP"; then
3957 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3958 fi
3959 else
3960 ac_cv_path_GREP=$GREP
3961 fi
3962
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3965 $as_echo "$ac_cv_path_GREP" >&6; }
3966 GREP="$ac_cv_path_GREP"
3967
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3970 $as_echo_n "checking for egrep... " >&6; }
3971 if ${ac_cv_path_EGREP+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3975 then ac_cv_path_EGREP="$GREP -E"
3976 else
3977 if test -z "$EGREP"; then
3978 ac_path_EGREP_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in egrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3988 as_fn_executable_p "$ac_path_EGREP" || continue
3989 # Check for GNU ac_path_EGREP and select it if it is found.
3990 # Check for GNU $ac_path_EGREP
3991 case `"$ac_path_EGREP" --version 2>&1` in
3992 *GNU*)
3993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3994 *)
3995 ac_count=0
3996 $as_echo_n 0123456789 >"conftest.in"
3997 while :
3998 do
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 $as_echo 'EGREP' >> "conftest.nl"
4003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 as_fn_arith $ac_count + 1 && ac_count=$as_val
4006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_EGREP="$ac_path_EGREP"
4009 ac_path_EGREP_max=$ac_count
4010 fi
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4013 done
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 esac
4016
4017 $ac_path_EGREP_found && break 3
4018 done
4019 done
4020 done
4021 IFS=$as_save_IFS
4022 if test -z "$ac_cv_path_EGREP"; then
4023 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 fi
4025 else
4026 ac_cv_path_EGREP=$EGREP
4027 fi
4028
4029 fi
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4032 $as_echo "$ac_cv_path_EGREP" >&6; }
4033 EGREP="$ac_cv_path_EGREP"
4034
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4037 $as_echo_n "checking for fgrep... " >&6; }
4038 if ${ac_cv_path_FGREP+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4042 then ac_cv_path_FGREP="$GREP -F"
4043 else
4044 if test -z "$FGREP"; then
4045 ac_path_FGREP_found=false
4046 # Loop through the user's path and test for each of PROGNAME-LIST
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049 do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_prog in fgrep; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4055 as_fn_executable_p "$ac_path_FGREP" || continue
4056 # Check for GNU ac_path_FGREP and select it if it is found.
4057 # Check for GNU $ac_path_FGREP
4058 case `"$ac_path_FGREP" --version 2>&1` in
4059 *GNU*)
4060 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4061 *)
4062 ac_count=0
4063 $as_echo_n 0123456789 >"conftest.in"
4064 while :
4065 do
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
4069 $as_echo 'FGREP' >> "conftest.nl"
4070 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072 as_fn_arith $ac_count + 1 && ac_count=$as_val
4073 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_FGREP="$ac_path_FGREP"
4076 ac_path_FGREP_max=$ac_count
4077 fi
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4080 done
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082 esac
4083
4084 $ac_path_FGREP_found && break 3
4085 done
4086 done
4087 done
4088 IFS=$as_save_IFS
4089 if test -z "$ac_cv_path_FGREP"; then
4090 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4091 fi
4092 else
4093 ac_cv_path_FGREP=$FGREP
4094 fi
4095
4096 fi
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4099 $as_echo "$ac_cv_path_FGREP" >&6; }
4100 FGREP="$ac_cv_path_FGREP"
4101
4102
4103 test -z "$GREP" && GREP=grep
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123 # Check whether --with-gnu-ld was given.
4124 if test "${with_gnu_ld+set}" = set; then :
4125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4126 else
4127 with_gnu_ld=no
4128 fi
4129
4130 ac_prog=ld
4131 if test "$GCC" = yes; then
4132 # Check if gcc -print-prog-name=ld gives a path.
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4134 $as_echo_n "checking for ld used by $CC... " >&6; }
4135 case $host in
4136 *-*-mingw*)
4137 # gcc leaves a trailing carriage return which upsets mingw
4138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4139 *)
4140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4141 esac
4142 case $ac_prog in
4143 # Accept absolute paths.
4144 [\\/]* | ?:[\\/]*)
4145 re_direlt='/[^/][^/]*/\.\./'
4146 # Canonicalize the pathname of ld
4147 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4148 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4149 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4150 done
4151 test -z "$LD" && LD="$ac_prog"
4152 ;;
4153 "")
4154 # If it fails, then pretend we aren't using GCC.
4155 ac_prog=ld
4156 ;;
4157 *)
4158 # If it is relative, then search for the first ld in PATH.
4159 with_gnu_ld=unknown
4160 ;;
4161 esac
4162 elif test "$with_gnu_ld" = yes; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4164 $as_echo_n "checking for GNU ld... " >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4167 $as_echo_n "checking for non-GNU ld... " >&6; }
4168 fi
4169 if ${lt_cv_path_LD+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -z "$LD"; then
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH; do
4175 IFS="$lt_save_ifs"
4176 test -z "$ac_dir" && ac_dir=.
4177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4178 lt_cv_path_LD="$ac_dir/$ac_prog"
4179 # Check to see if the program is GNU ld. I'd rather use --version,
4180 # but apparently some variants of GNU ld only accept -v.
4181 # Break only if it was the GNU/non-GNU ld that we prefer.
4182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4183 *GNU* | *'with BFD'*)
4184 test "$with_gnu_ld" != no && break
4185 ;;
4186 *)
4187 test "$with_gnu_ld" != yes && break
4188 ;;
4189 esac
4190 fi
4191 done
4192 IFS="$lt_save_ifs"
4193 else
4194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4195 fi
4196 fi
4197
4198 LD="$lt_cv_path_LD"
4199 if test -n "$LD"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4201 $as_echo "$LD" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4209 if ${lt_cv_prog_gnu_ld+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4213 case `$LD -v 2>&1 </dev/null` in
4214 *GNU* | *'with BFD'*)
4215 lt_cv_prog_gnu_ld=yes
4216 ;;
4217 *)
4218 lt_cv_prog_gnu_ld=no
4219 ;;
4220 esac
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4223 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4224 with_gnu_ld=$lt_cv_prog_gnu_ld
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4235 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4236 if ${lt_cv_path_NM+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -n "$NM"; then
4240 # Let the user override the test.
4241 lt_cv_path_NM="$NM"
4242 else
4243 lt_nm_to_check="${ac_tool_prefix}nm"
4244 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4245 lt_nm_to_check="$lt_nm_to_check nm"
4246 fi
4247 for lt_tmp_nm in $lt_nm_to_check; do
4248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4249 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4250 IFS="$lt_save_ifs"
4251 test -z "$ac_dir" && ac_dir=.
4252 tmp_nm="$ac_dir/$lt_tmp_nm"
4253 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4254 # Check to see if the nm accepts a BSD-compat flag.
4255 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4256 # nm: unknown option "B" ignored
4257 # Tru64's nm complains that /dev/null is an invalid object file
4258 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4259 */dev/null* | *'Invalid file or object type'*)
4260 lt_cv_path_NM="$tmp_nm -B"
4261 break
4262 ;;
4263 *)
4264 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4265 */dev/null*)
4266 lt_cv_path_NM="$tmp_nm -p"
4267 break
4268 ;;
4269 *)
4270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4271 continue # so that we can try to find one that supports BSD flags
4272 ;;
4273 esac
4274 ;;
4275 esac
4276 fi
4277 done
4278 IFS="$lt_save_ifs"
4279 done
4280 : ${lt_cv_path_NM=no}
4281 fi
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4284 $as_echo "$lt_cv_path_NM" >&6; }
4285 if test "$lt_cv_path_NM" != "no"; then
4286 NM="$lt_cv_path_NM"
4287 else
4288 # Didn't find any BSD compatible name lister, look for dumpbin.
4289 if test -n "$DUMPBIN"; then :
4290 # Let the user override the test.
4291 else
4292 if test -n "$ac_tool_prefix"; then
4293 for ac_prog in dumpbin "link -dump"
4294 do
4295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_DUMPBIN+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$DUMPBIN"; then
4303 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 DUMPBIN=$ac_cv_prog_DUMPBIN
4323 if test -n "$DUMPBIN"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4325 $as_echo "$DUMPBIN" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331
4332 test -n "$DUMPBIN" && break
4333 done
4334 fi
4335 if test -z "$DUMPBIN"; then
4336 ac_ct_DUMPBIN=$DUMPBIN
4337 for ac_prog in dumpbin "link -dump"
4338 do
4339 # Extract the first word of "$ac_prog", so it can be a program name with args.
4340 set dummy $ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -n "$ac_ct_DUMPBIN"; then
4347 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4367 if test -n "$ac_ct_DUMPBIN"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4369 $as_echo "$ac_ct_DUMPBIN" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376 test -n "$ac_ct_DUMPBIN" && break
4377 done
4378
4379 if test "x$ac_ct_DUMPBIN" = x; then
4380 DUMPBIN=":"
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383 yes:)
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386 ac_tool_warned=yes ;;
4387 esac
4388 DUMPBIN=$ac_ct_DUMPBIN
4389 fi
4390 fi
4391
4392 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4393 *COFF*)
4394 DUMPBIN="$DUMPBIN -symbols"
4395 ;;
4396 *)
4397 DUMPBIN=:
4398 ;;
4399 esac
4400 fi
4401
4402 if test "$DUMPBIN" != ":"; then
4403 NM="$DUMPBIN"
4404 fi
4405 fi
4406 test -z "$NM" && NM=nm
4407
4408
4409
4410
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4414 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4415 if ${lt_cv_nm_interface+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 lt_cv_nm_interface="BSD nm"
4419 echo "int some_variable = 0;" > conftest.$ac_ext
4420 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4421 (eval "$ac_compile" 2>conftest.err)
4422 cat conftest.err >&5
4423 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4424 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4425 cat conftest.err >&5
4426 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4427 cat conftest.out >&5
4428 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4429 lt_cv_nm_interface="MS dumpbin"
4430 fi
4431 rm -f conftest*
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4434 $as_echo "$lt_cv_nm_interface" >&6; }
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4437 $as_echo_n "checking whether ln -s works... " >&6; }
4438 LN_S=$as_ln_s
4439 if test "$LN_S" = "ln -s"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4441 $as_echo "yes" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4444 $as_echo "no, using $LN_S" >&6; }
4445 fi
4446
4447 # find the maximum length of command line arguments
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4449 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4450 if ${lt_cv_sys_max_cmd_len+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 i=0
4454 teststring="ABCD"
4455
4456 case $build_os in
4457 msdosdjgpp*)
4458 # On DJGPP, this test can blow up pretty badly due to problems in libc
4459 # (any single argument exceeding 2000 bytes causes a buffer overrun
4460 # during glob expansion). Even if it were fixed, the result of this
4461 # check would be larger than it should be.
4462 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4463 ;;
4464
4465 gnu*)
4466 # Under GNU Hurd, this test is not required because there is
4467 # no limit to the length of command line arguments.
4468 # Libtool will interpret -1 as no limit whatsoever
4469 lt_cv_sys_max_cmd_len=-1;
4470 ;;
4471
4472 cygwin* | mingw* | cegcc*)
4473 # On Win9x/ME, this test blows up -- it succeeds, but takes
4474 # about 5 minutes as the teststring grows exponentially.
4475 # Worse, since 9x/ME are not pre-emptively multitasking,
4476 # you end up with a "frozen" computer, even though with patience
4477 # the test eventually succeeds (with a max line length of 256k).
4478 # Instead, let's just punt: use the minimum linelength reported by
4479 # all of the supported platforms: 8192 (on NT/2K/XP).
4480 lt_cv_sys_max_cmd_len=8192;
4481 ;;
4482
4483 mint*)
4484 # On MiNT this can take a long time and run out of memory.
4485 lt_cv_sys_max_cmd_len=8192;
4486 ;;
4487
4488 amigaos*)
4489 # On AmigaOS with pdksh, this test takes hours, literally.
4490 # So we just punt and use a minimum line length of 8192.
4491 lt_cv_sys_max_cmd_len=8192;
4492 ;;
4493
4494 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4495 # This has been around since 386BSD, at least. Likely further.
4496 if test -x /sbin/sysctl; then
4497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4498 elif test -x /usr/sbin/sysctl; then
4499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4500 else
4501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4502 fi
4503 # And add a safety zone
4504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4506 ;;
4507
4508 interix*)
4509 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4510 lt_cv_sys_max_cmd_len=196608
4511 ;;
4512
4513 os2*)
4514 # The test takes a long time on OS/2.
4515 lt_cv_sys_max_cmd_len=8192
4516 ;;
4517
4518 osf*)
4519 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4520 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4521 # nice to cause kernel panics so lets avoid the loop below.
4522 # First set a reasonable default.
4523 lt_cv_sys_max_cmd_len=16384
4524 #
4525 if test -x /sbin/sysconfig; then
4526 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4527 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4528 esac
4529 fi
4530 ;;
4531 sco3.2v5*)
4532 lt_cv_sys_max_cmd_len=102400
4533 ;;
4534 sysv5* | sco5v6* | sysv4.2uw2*)
4535 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4536 if test -n "$kargmax"; then
4537 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4538 else
4539 lt_cv_sys_max_cmd_len=32768
4540 fi
4541 ;;
4542 *)
4543 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4544 if test -n "$lt_cv_sys_max_cmd_len"; then
4545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4547 else
4548 # Make teststring a little bigger before we do anything with it.
4549 # a 1K string should be a reasonable start.
4550 for i in 1 2 3 4 5 6 7 8 ; do
4551 teststring=$teststring$teststring
4552 done
4553 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4554 # If test is not a shell built-in, we'll probably end up computing a
4555 # maximum length that is only half of the actual maximum length, but
4556 # we can't tell.
4557 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4558 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4559 test $i != 17 # 1/2 MB should be enough
4560 do
4561 i=`expr $i + 1`
4562 teststring=$teststring$teststring
4563 done
4564 # Only check the string length outside the loop.
4565 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4566 teststring=
4567 # Add a significant safety factor because C++ compilers can tack on
4568 # massive amounts of additional arguments before passing them to the
4569 # linker. It appears as though 1/2 is a usable value.
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4571 fi
4572 ;;
4573 esac
4574
4575 fi
4576
4577 if test -n $lt_cv_sys_max_cmd_len ; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4579 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4582 $as_echo "none" >&6; }
4583 fi
4584 max_cmd_len=$lt_cv_sys_max_cmd_len
4585
4586
4587
4588
4589
4590
4591 : ${CP="cp -f"}
4592 : ${MV="mv -f"}
4593 : ${RM="rm -f"}
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4596 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4597 # Try some XSI features
4598 xsi_shell=no
4599 ( _lt_dummy="a/b/c"
4600 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4601 = c,a/b,b/c, \
4602 && eval 'test $(( 1 + 1 )) -eq 2 \
4603 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4604 && xsi_shell=yes
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4606 $as_echo "$xsi_shell" >&6; }
4607
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4610 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4611 lt_shell_append=no
4612 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4613 >/dev/null 2>&1 \
4614 && lt_shell_append=yes
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4616 $as_echo "$lt_shell_append" >&6; }
4617
4618
4619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4620 lt_unset=unset
4621 else
4622 lt_unset=false
4623 fi
4624
4625
4626
4627
4628
4629 # test EBCDIC or ASCII
4630 case `echo X|tr X '\101'` in
4631 A) # ASCII based system
4632 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4633 lt_SP2NL='tr \040 \012'
4634 lt_NL2SP='tr \015\012 \040\040'
4635 ;;
4636 *) # EBCDIC based system
4637 lt_SP2NL='tr \100 \n'
4638 lt_NL2SP='tr \r\n \100\100'
4639 ;;
4640 esac
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4651 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4652 if ${lt_cv_to_host_file_cmd+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 case $host in
4656 *-*-mingw* )
4657 case $build in
4658 *-*-mingw* ) # actually msys
4659 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4660 ;;
4661 *-*-cygwin* )
4662 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4663 ;;
4664 * ) # otherwise, assume *nix
4665 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4666 ;;
4667 esac
4668 ;;
4669 *-*-cygwin* )
4670 case $build in
4671 *-*-mingw* ) # actually msys
4672 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4673 ;;
4674 *-*-cygwin* )
4675 lt_cv_to_host_file_cmd=func_convert_file_noop
4676 ;;
4677 * ) # otherwise, assume *nix
4678 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4679 ;;
4680 esac
4681 ;;
4682 * ) # unhandled hosts (and "normal" native builds)
4683 lt_cv_to_host_file_cmd=func_convert_file_noop
4684 ;;
4685 esac
4686
4687 fi
4688
4689 to_host_file_cmd=$lt_cv_to_host_file_cmd
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4691 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4692
4693
4694
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4698 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4699 if ${lt_cv_to_tool_file_cmd+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 #assume ordinary cross tools, or native build.
4703 lt_cv_to_tool_file_cmd=func_convert_file_noop
4704 case $host in
4705 *-*-mingw* )
4706 case $build in
4707 *-*-mingw* ) # actually msys
4708 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4709 ;;
4710 esac
4711 ;;
4712 esac
4713
4714 fi
4715
4716 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4718 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4719
4720
4721
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4725 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4726 if ${lt_cv_ld_reload_flag+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 lt_cv_ld_reload_flag='-r'
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4732 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4733 reload_flag=$lt_cv_ld_reload_flag
4734 case $reload_flag in
4735 "" | " "*) ;;
4736 *) reload_flag=" $reload_flag" ;;
4737 esac
4738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4739 case $host_os in
4740 cygwin* | mingw* | pw32* | cegcc*)
4741 if test "$GCC" != yes; then
4742 reload_cmds=false
4743 fi
4744 ;;
4745 darwin*)
4746 if test "$GCC" = yes; then
4747 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4748 else
4749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750 fi
4751 ;;
4752 esac
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4764 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if ${ac_cv_prog_OBJDUMP+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$OBJDUMP"; then
4771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 OBJDUMP=$ac_cv_prog_OBJDUMP
4791 if test -n "$OBJDUMP"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4793 $as_echo "$OBJDUMP" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799
4800 fi
4801 if test -z "$ac_cv_prog_OBJDUMP"; then
4802 ac_ct_OBJDUMP=$OBJDUMP
4803 # Extract the first word of "objdump", so it can be a program name with args.
4804 set dummy objdump; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$ac_ct_OBJDUMP"; then
4811 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4831 if test -n "$ac_ct_OBJDUMP"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4833 $as_echo "$ac_ct_OBJDUMP" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839 if test "x$ac_ct_OBJDUMP" = x; then
4840 OBJDUMP="false"
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843 yes:)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848 OBJDUMP=$ac_ct_OBJDUMP
4849 fi
4850 else
4851 OBJDUMP="$ac_cv_prog_OBJDUMP"
4852 fi
4853
4854 test -z "$OBJDUMP" && OBJDUMP=objdump
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4865 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4866 if ${lt_cv_deplibs_check_method+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 lt_cv_file_magic_cmd='$MAGIC_CMD'
4870 lt_cv_file_magic_test_file=
4871 lt_cv_deplibs_check_method='unknown'
4872 # Need to set the preceding variable on all platforms that support
4873 # interlibrary dependencies.
4874 # 'none' -- dependencies not supported.
4875 # `unknown' -- same as none, but documents that we really don't know.
4876 # 'pass_all' -- all dependencies passed with no checks.
4877 # 'test_compile' -- check by making test program.
4878 # 'file_magic [[regex]]' -- check by looking for files in library path
4879 # which responds to the $file_magic_cmd with a given extended regex.
4880 # If you have `file' or equivalent on your system and you're not sure
4881 # whether `pass_all' will *always* work, you probably want this one.
4882
4883 case $host_os in
4884 aix[4-9]*)
4885 lt_cv_deplibs_check_method=pass_all
4886 ;;
4887
4888 beos*)
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
4891
4892 bsdi[45]*)
4893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4894 lt_cv_file_magic_cmd='/usr/bin/file -L'
4895 lt_cv_file_magic_test_file=/shlib/libc.so
4896 ;;
4897
4898 cygwin*)
4899 # func_win32_libid is a shell function defined in ltmain.sh
4900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4901 lt_cv_file_magic_cmd='func_win32_libid'
4902 ;;
4903
4904 mingw* | pw32*)
4905 # Base MSYS/MinGW do not provide the 'file' command needed by
4906 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4907 # unless we find 'file', for example because we are cross-compiling.
4908 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4909 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4911 lt_cv_file_magic_cmd='func_win32_libid'
4912 else
4913 # Keep this pattern in sync with the one in func_win32_libid.
4914 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4915 lt_cv_file_magic_cmd='$OBJDUMP -f'
4916 fi
4917 ;;
4918
4919 cegcc*)
4920 # use the weaker test based on 'objdump'. See mingw*.
4921 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4922 lt_cv_file_magic_cmd='$OBJDUMP -f'
4923 ;;
4924
4925 darwin* | rhapsody*)
4926 lt_cv_deplibs_check_method=pass_all
4927 ;;
4928
4929 freebsd* | dragonfly*)
4930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4931 case $host_cpu in
4932 i*86 )
4933 # Not sure whether the presence of OpenBSD here was a mistake.
4934 # Let's accept both of them until this is cleared up.
4935 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4936 lt_cv_file_magic_cmd=/usr/bin/file
4937 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4938 ;;
4939 esac
4940 else
4941 lt_cv_deplibs_check_method=pass_all
4942 fi
4943 ;;
4944
4945 haiku*)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948
4949 hpux10.20* | hpux11*)
4950 lt_cv_file_magic_cmd=/usr/bin/file
4951 case $host_cpu in
4952 ia64*)
4953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4954 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4955 ;;
4956 hppa*64*)
4957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4958 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4959 ;;
4960 *)
4961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4962 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4963 ;;
4964 esac
4965 ;;
4966
4967 interix[3-9]*)
4968 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4970 ;;
4971
4972 irix5* | irix6* | nonstopux*)
4973 case $LD in
4974 *-32|*"-32 ") libmagic=32-bit;;
4975 *-n32|*"-n32 ") libmagic=N32;;
4976 *-64|*"-64 ") libmagic=64-bit;;
4977 *) libmagic=never-match;;
4978 esac
4979 lt_cv_deplibs_check_method=pass_all
4980 ;;
4981
4982 # This must be glibc/ELF.
4983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4984 lt_cv_deplibs_check_method=pass_all
4985 ;;
4986
4987 netbsd* | netbsdelf*-gnu)
4988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4990 else
4991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4992 fi
4993 ;;
4994
4995 newos6*)
4996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4997 lt_cv_file_magic_cmd=/usr/bin/file
4998 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4999 ;;
5000
5001 *nto* | *qnx*)
5002 lt_cv_deplibs_check_method=pass_all
5003 ;;
5004
5005 openbsd*)
5006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5008 else
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5010 fi
5011 ;;
5012
5013 osf3* | osf4* | osf5*)
5014 lt_cv_deplibs_check_method=pass_all
5015 ;;
5016
5017 rdos*)
5018 lt_cv_deplibs_check_method=pass_all
5019 ;;
5020
5021 solaris*)
5022 lt_cv_deplibs_check_method=pass_all
5023 ;;
5024
5025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5026 lt_cv_deplibs_check_method=pass_all
5027 ;;
5028
5029 sysv4 | sysv4.3*)
5030 case $host_vendor in
5031 motorola)
5032 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]'
5033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5034 ;;
5035 ncr)
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038 sequent)
5039 lt_cv_file_magic_cmd='/bin/file'
5040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5041 ;;
5042 sni)
5043 lt_cv_file_magic_cmd='/bin/file'
5044 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5045 lt_cv_file_magic_test_file=/lib/libc.so
5046 ;;
5047 siemens)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050 pc)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053 esac
5054 ;;
5055
5056 tpf*)
5057 lt_cv_deplibs_check_method=pass_all
5058 ;;
5059 esac
5060
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5063 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5064
5065 file_magic_glob=
5066 want_nocaseglob=no
5067 if test "$build" = "$host"; then
5068 case $host_os in
5069 mingw* | pw32*)
5070 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5071 want_nocaseglob=yes
5072 else
5073 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5074 fi
5075 ;;
5076 esac
5077 fi
5078
5079 file_magic_cmd=$lt_cv_file_magic_cmd
5080 deplibs_check_method=$lt_cv_deplibs_check_method
5081 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 if test -n "$ac_tool_prefix"; then
5105 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5106 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_DLLTOOL+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$DLLTOOL"; then
5113 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 DLLTOOL=$ac_cv_prog_DLLTOOL
5133 if test -n "$DLLTOOL"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5135 $as_echo "$DLLTOOL" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142 fi
5143 if test -z "$ac_cv_prog_DLLTOOL"; then
5144 ac_ct_DLLTOOL=$DLLTOOL
5145 # Extract the first word of "dlltool", so it can be a program name with args.
5146 set dummy dlltool; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$ac_ct_DLLTOOL"; then
5153 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5173 if test -n "$ac_ct_DLLTOOL"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5175 $as_echo "$ac_ct_DLLTOOL" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181 if test "x$ac_ct_DLLTOOL" = x; then
5182 DLLTOOL="false"
5183 else
5184 case $cross_compiling:$ac_tool_warned in
5185 yes:)
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190 DLLTOOL=$ac_ct_DLLTOOL
5191 fi
5192 else
5193 DLLTOOL="$ac_cv_prog_DLLTOOL"
5194 fi
5195
5196 test -z "$DLLTOOL" && DLLTOOL=dlltool
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5208 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5209 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 lt_cv_sharedlib_from_linklib_cmd='unknown'
5213
5214 case $host_os in
5215 cygwin* | mingw* | pw32* | cegcc*)
5216 # two different shell functions defined in ltmain.sh
5217 # decide which to use based on capabilities of $DLLTOOL
5218 case `$DLLTOOL --help 2>&1` in
5219 *--identify-strict*)
5220 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5221 ;;
5222 *)
5223 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5224 ;;
5225 esac
5226 ;;
5227 *)
5228 # fallback: assume linklib IS sharedlib
5229 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5230 ;;
5231 esac
5232
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5235 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5236 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5237 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5238
5239
5240
5241
5242
5243
5244
5245
5246 if test -n "$ac_tool_prefix"; then
5247 for ac_prog in ar
5248 do
5249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_AR+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$AR"; then
5257 ac_cv_prog_AR="$AR" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 AR=$ac_cv_prog_AR
5277 if test -n "$AR"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5279 $as_echo "$AR" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 test -n "$AR" && break
5287 done
5288 fi
5289 if test -z "$AR"; then
5290 ac_ct_AR=$AR
5291 for ac_prog in ar
5292 do
5293 # Extract the first word of "$ac_prog", so it can be a program name with args.
5294 set dummy $ac_prog; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$ac_ct_AR"; then
5301 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_ac_ct_AR="$ac_prog"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5321 if test -n "$ac_ct_AR"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5323 $as_echo "$ac_ct_AR" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328
5329
5330 test -n "$ac_ct_AR" && break
5331 done
5332
5333 if test "x$ac_ct_AR" = x; then
5334 AR="false"
5335 else
5336 case $cross_compiling:$ac_tool_warned in
5337 yes:)
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5340 ac_tool_warned=yes ;;
5341 esac
5342 AR=$ac_ct_AR
5343 fi
5344 fi
5345
5346 : ${AR=ar}
5347 : ${AR_FLAGS=cru}
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5360 $as_echo_n "checking for archiver @FILE support... " >&6; }
5361 if ${lt_cv_ar_at_file+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 lt_cv_ar_at_file=no
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367
5368 int
5369 main ()
5370 {
5371
5372 ;
5373 return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 echo conftest.$ac_objext > conftest.lst
5378 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5380 (eval $lt_ar_try) 2>&5
5381 ac_status=$?
5382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383 test $ac_status = 0; }
5384 if test "$ac_status" -eq 0; then
5385 # Ensure the archiver fails upon bogus file names.
5386 rm -f conftest.$ac_objext libconftest.a
5387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5388 (eval $lt_ar_try) 2>&5
5389 ac_status=$?
5390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5391 test $ac_status = 0; }
5392 if test "$ac_status" -ne 0; then
5393 lt_cv_ar_at_file=@
5394 fi
5395 fi
5396 rm -f conftest.* libconftest.a
5397
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5403 $as_echo "$lt_cv_ar_at_file" >&6; }
5404
5405 if test "x$lt_cv_ar_at_file" = xno; then
5406 archiver_list_spec=
5407 else
5408 archiver_list_spec=$lt_cv_ar_at_file
5409 fi
5410
5411
5412
5413
5414
5415
5416
5417 if test -n "$ac_tool_prefix"; then
5418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5419 set dummy ${ac_tool_prefix}strip; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_STRIP+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$STRIP"; then
5426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439 done
5440 done
5441 IFS=$as_save_IFS
5442
5443 fi
5444 fi
5445 STRIP=$ac_cv_prog_STRIP
5446 if test -n "$STRIP"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5448 $as_echo "$STRIP" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454
5455 fi
5456 if test -z "$ac_cv_prog_STRIP"; then
5457 ac_ct_STRIP=$STRIP
5458 # Extract the first word of "strip", so it can be a program name with args.
5459 set dummy strip; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 if test -n "$ac_ct_STRIP"; then
5466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_ac_ct_STRIP="strip"
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5478 fi
5479 done
5480 done
5481 IFS=$as_save_IFS
5482
5483 fi
5484 fi
5485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5486 if test -n "$ac_ct_STRIP"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5488 $as_echo "$ac_ct_STRIP" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5492 fi
5493
5494 if test "x$ac_ct_STRIP" = x; then
5495 STRIP=":"
5496 else
5497 case $cross_compiling:$ac_tool_warned in
5498 yes:)
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5501 ac_tool_warned=yes ;;
5502 esac
5503 STRIP=$ac_ct_STRIP
5504 fi
5505 else
5506 STRIP="$ac_cv_prog_STRIP"
5507 fi
5508
5509 test -z "$STRIP" && STRIP=:
5510
5511
5512
5513
5514
5515
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_RANLIB+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$RANLIB"; then
5525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538 done
5539 done
5540 IFS=$as_save_IFS
5541
5542 fi
5543 fi
5544 RANLIB=$ac_cv_prog_RANLIB
5545 if test -n "$RANLIB"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5547 $as_echo "$RANLIB" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554 fi
5555 if test -z "$ac_cv_prog_RANLIB"; then
5556 ac_ct_RANLIB=$RANLIB
5557 # Extract the first word of "ranlib", so it can be a program name with args.
5558 set dummy ranlib; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$ac_ct_RANLIB"; then
5565 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_ac_ct_RANLIB="ranlib"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578 done
5579 done
5580 IFS=$as_save_IFS
5581
5582 fi
5583 fi
5584 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5585 if test -n "$ac_ct_RANLIB"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5587 $as_echo "$ac_ct_RANLIB" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592
5593 if test "x$ac_ct_RANLIB" = x; then
5594 RANLIB=":"
5595 else
5596 case $cross_compiling:$ac_tool_warned in
5597 yes:)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602 RANLIB=$ac_ct_RANLIB
5603 fi
5604 else
5605 RANLIB="$ac_cv_prog_RANLIB"
5606 fi
5607
5608 test -z "$RANLIB" && RANLIB=:
5609
5610
5611
5612
5613
5614
5615 # Determine commands to create old-style static archives.
5616 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5617 old_postinstall_cmds='chmod 644 $oldlib'
5618 old_postuninstall_cmds=
5619
5620 if test -n "$RANLIB"; then
5621 case $host_os in
5622 openbsd*)
5623 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5624 ;;
5625 *)
5626 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5627 ;;
5628 esac
5629 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5630 fi
5631
5632 case $host_os in
5633 darwin*)
5634 lock_old_archive_extraction=yes ;;
5635 *)
5636 lock_old_archive_extraction=no ;;
5637 esac
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 # If no C compiler was specified, use CC.
5678 LTCC=${LTCC-"$CC"}
5679
5680 # If no C compiler flags were specified, use CFLAGS.
5681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5682
5683 # Allow CC to be a program name with arguments.
5684 compiler=$CC
5685
5686
5687 # Check for command to grab the raw symbol name followed by C symbol from nm.
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5689 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5690 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693
5694 # These are sane defaults that work on at least a few old systems.
5695 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5696
5697 # Character class describing NM global symbol codes.
5698 symcode='[BCDEGRST]'
5699
5700 # Regexp to match symbols that can be accessed directly from C.
5701 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5702
5703 # Define system-specific variables.
5704 case $host_os in
5705 aix*)
5706 symcode='[BCDT]'
5707 ;;
5708 cygwin* | mingw* | pw32* | cegcc*)
5709 symcode='[ABCDGISTW]'
5710 ;;
5711 hpux*)
5712 if test "$host_cpu" = ia64; then
5713 symcode='[ABCDEGRST]'
5714 fi
5715 ;;
5716 irix* | nonstopux*)
5717 symcode='[BCDEGRST]'
5718 ;;
5719 osf*)
5720 symcode='[BCDEGQRST]'
5721 ;;
5722 solaris*)
5723 symcode='[BDRT]'
5724 ;;
5725 sco3.2v5*)
5726 symcode='[DT]'
5727 ;;
5728 sysv4.2uw2*)
5729 symcode='[DT]'
5730 ;;
5731 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5732 symcode='[ABDT]'
5733 ;;
5734 sysv4)
5735 symcode='[DFNSTU]'
5736 ;;
5737 esac
5738
5739 # If we're using GNU nm, then use its standard symbol codes.
5740 case `$NM -V 2>&1` in
5741 *GNU* | *'with BFD'*)
5742 symcode='[ABCDGIRSTW]' ;;
5743 esac
5744
5745 # Transform an extracted symbol line into a proper C declaration.
5746 # Some systems (esp. on ia64) link data and code symbols differently,
5747 # so use this general approach.
5748 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5749
5750 # Transform an extracted symbol line into symbol name and symbol address
5751 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5752 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'"
5753
5754 # Handle CRLF in mingw tool chain
5755 opt_cr=
5756 case $build_os in
5757 mingw*)
5758 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5759 ;;
5760 esac
5761
5762 # Try without a prefix underscore, then with it.
5763 for ac_symprfx in "" "_"; do
5764
5765 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5766 symxfrm="\\1 $ac_symprfx\\2 \\2"
5767
5768 # Write the raw and C identifiers.
5769 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5770 # Fake it for dumpbin and say T for any non-static function
5771 # and D for any global variable.
5772 # Also find C++ and __fastcall symbols from MSVC++,
5773 # which start with @ or ?.
5774 lt_cv_sys_global_symbol_pipe="$AWK '"\
5775 " {last_section=section; section=\$ 3};"\
5776 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5777 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5778 " \$ 0!~/External *\|/{next};"\
5779 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5780 " {if(hide[section]) next};"\
5781 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5782 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5783 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5784 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5785 " ' prfx=^$ac_symprfx"
5786 else
5787 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5788 fi
5789 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5790
5791 # Check to see that the pipe works correctly.
5792 pipe_works=no
5793
5794 rm -f conftest*
5795 cat > conftest.$ac_ext <<_LT_EOF
5796 #ifdef __cplusplus
5797 extern "C" {
5798 #endif
5799 char nm_test_var;
5800 void nm_test_func(void);
5801 void nm_test_func(void){}
5802 #ifdef __cplusplus
5803 }
5804 #endif
5805 int main(){nm_test_var='a';nm_test_func();return(0);}
5806 _LT_EOF
5807
5808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5809 (eval $ac_compile) 2>&5
5810 ac_status=$?
5811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5812 test $ac_status = 0; }; then
5813 # Now try to grab the symbols.
5814 nlist=conftest.nm
5815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5816 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5817 ac_status=$?
5818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819 test $ac_status = 0; } && test -s "$nlist"; then
5820 # Try sorting and uniquifying the output.
5821 if sort "$nlist" | uniq > "$nlist"T; then
5822 mv -f "$nlist"T "$nlist"
5823 else
5824 rm -f "$nlist"T
5825 fi
5826
5827 # Make sure that we snagged all the symbols we need.
5828 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5829 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5830 cat <<_LT_EOF > conftest.$ac_ext
5831 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5832 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5833 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5834 relocations are performed -- see ld's documentation on pseudo-relocs. */
5835 # define LT_DLSYM_CONST
5836 #elif defined(__osf__)
5837 /* This system does not cope well with relocations in const data. */
5838 # define LT_DLSYM_CONST
5839 #else
5840 # define LT_DLSYM_CONST const
5841 #endif
5842
5843 #ifdef __cplusplus
5844 extern "C" {
5845 #endif
5846
5847 _LT_EOF
5848 # Now generate the symbol file.
5849 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5850
5851 cat <<_LT_EOF >> conftest.$ac_ext
5852
5853 /* The mapping between symbol names and symbols. */
5854 LT_DLSYM_CONST struct {
5855 const char *name;
5856 void *address;
5857 }
5858 lt__PROGRAM__LTX_preloaded_symbols[] =
5859 {
5860 { "@PROGRAM@", (void *) 0 },
5861 _LT_EOF
5862 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5863 cat <<\_LT_EOF >> conftest.$ac_ext
5864 {0, (void *) 0}
5865 };
5866
5867 /* This works around a problem in FreeBSD linker */
5868 #ifdef FREEBSD_WORKAROUND
5869 static const void *lt_preloaded_setup() {
5870 return lt__PROGRAM__LTX_preloaded_symbols;
5871 }
5872 #endif
5873
5874 #ifdef __cplusplus
5875 }
5876 #endif
5877 _LT_EOF
5878 # Now try linking the two files.
5879 mv conftest.$ac_objext conftstm.$ac_objext
5880 lt_globsym_save_LIBS=$LIBS
5881 lt_globsym_save_CFLAGS=$CFLAGS
5882 LIBS="conftstm.$ac_objext"
5883 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5885 (eval $ac_link) 2>&5
5886 ac_status=$?
5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5889 pipe_works=yes
5890 fi
5891 LIBS=$lt_globsym_save_LIBS
5892 CFLAGS=$lt_globsym_save_CFLAGS
5893 else
5894 echo "cannot find nm_test_func in $nlist" >&5
5895 fi
5896 else
5897 echo "cannot find nm_test_var in $nlist" >&5
5898 fi
5899 else
5900 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5901 fi
5902 else
5903 echo "$progname: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5905 fi
5906 rm -rf conftest* conftst*
5907
5908 # Do not use the global_symbol_pipe unless it works.
5909 if test "$pipe_works" = yes; then
5910 break
5911 else
5912 lt_cv_sys_global_symbol_pipe=
5913 fi
5914 done
5915
5916 fi
5917
5918 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5919 lt_cv_sys_global_symbol_to_cdecl=
5920 fi
5921 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5923 $as_echo "failed" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5926 $as_echo "ok" >&6; }
5927 fi
5928
5929 # Response file support.
5930 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5931 nm_file_list_spec='@'
5932 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5933 nm_file_list_spec='@'
5934 fi
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5963 $as_echo_n "checking for sysroot... " >&6; }
5964
5965 # Check whether --with-sysroot was given.
5966 if test "${with_sysroot+set}" = set; then :
5967 withval=$with_sysroot;
5968 else
5969 with_sysroot=no
5970 fi
5971
5972
5973 lt_sysroot=
5974 case ${with_sysroot} in #(
5975 yes)
5976 if test "$GCC" = yes; then
5977 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5978 fi
5979 ;; #(
5980 /*)
5981 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5982 ;; #(
5983 no|'')
5984 ;; #(
5985 *)
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5987 $as_echo "${with_sysroot}" >&6; }
5988 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5989 ;;
5990 esac
5991
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5993 $as_echo "${lt_sysroot:-no}" >&6; }
5994
5995
5996
5997
5998
5999 # Check whether --enable-libtool-lock was given.
6000 if test "${enable_libtool_lock+set}" = set; then :
6001 enableval=$enable_libtool_lock;
6002 fi
6003
6004 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6005
6006 # Some flags need to be propagated to the compiler or linker for good
6007 # libtool support.
6008 case $host in
6009 ia64-*-hpux*)
6010 # Find out which ABI we are using.
6011 echo 'int i;' > conftest.$ac_ext
6012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6013 (eval $ac_compile) 2>&5
6014 ac_status=$?
6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016 test $ac_status = 0; }; then
6017 case `/usr/bin/file conftest.$ac_objext` in
6018 *ELF-32*)
6019 HPUX_IA64_MODE="32"
6020 ;;
6021 *ELF-64*)
6022 HPUX_IA64_MODE="64"
6023 ;;
6024 esac
6025 fi
6026 rm -rf conftest*
6027 ;;
6028 *-*-irix6*)
6029 # Find out which ABI we are using.
6030 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6032 (eval $ac_compile) 2>&5
6033 ac_status=$?
6034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035 test $ac_status = 0; }; then
6036 if test "$lt_cv_prog_gnu_ld" = yes; then
6037 case `/usr/bin/file conftest.$ac_objext` in
6038 *32-bit*)
6039 LD="${LD-ld} -melf32bsmip"
6040 ;;
6041 *N32*)
6042 LD="${LD-ld} -melf32bmipn32"
6043 ;;
6044 *64-bit*)
6045 LD="${LD-ld} -melf64bmip"
6046 ;;
6047 esac
6048 else
6049 case `/usr/bin/file conftest.$ac_objext` in
6050 *32-bit*)
6051 LD="${LD-ld} -32"
6052 ;;
6053 *N32*)
6054 LD="${LD-ld} -n32"
6055 ;;
6056 *64-bit*)
6057 LD="${LD-ld} -64"
6058 ;;
6059 esac
6060 fi
6061 fi
6062 rm -rf conftest*
6063 ;;
6064
6065 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6066 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6067 # Find out which ABI we are using.
6068 echo 'int i;' > conftest.$ac_ext
6069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6070 (eval $ac_compile) 2>&5
6071 ac_status=$?
6072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073 test $ac_status = 0; }; then
6074 case `/usr/bin/file conftest.o` in
6075 *32-bit*)
6076 case $host in
6077 x86_64-*kfreebsd*-gnu)
6078 LD="${LD-ld} -m elf_i386_fbsd"
6079 ;;
6080 x86_64-*linux*)
6081 LD="${LD-ld} -m elf_i386"
6082 ;;
6083 ppc64-*linux*|powerpc64-*linux*)
6084 LD="${LD-ld} -m elf32ppclinux"
6085 ;;
6086 s390x-*linux*)
6087 LD="${LD-ld} -m elf_s390"
6088 ;;
6089 sparc64-*linux*)
6090 LD="${LD-ld} -m elf32_sparc"
6091 ;;
6092 esac
6093 ;;
6094 *64-bit*)
6095 case $host in
6096 x86_64-*kfreebsd*-gnu)
6097 LD="${LD-ld} -m elf_x86_64_fbsd"
6098 ;;
6099 x86_64-*linux*)
6100 LD="${LD-ld} -m elf_x86_64"
6101 ;;
6102 ppc*-*linux*|powerpc*-*linux*)
6103 LD="${LD-ld} -m elf64ppc"
6104 ;;
6105 s390*-*linux*|s390*-*tpf*)
6106 LD="${LD-ld} -m elf64_s390"
6107 ;;
6108 sparc*-*linux*)
6109 LD="${LD-ld} -m elf64_sparc"
6110 ;;
6111 esac
6112 ;;
6113 esac
6114 fi
6115 rm -rf conftest*
6116 ;;
6117
6118 *-*-sco3.2v5*)
6119 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6120 SAVE_CFLAGS="$CFLAGS"
6121 CFLAGS="$CFLAGS -belf"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6123 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6124 if ${lt_cv_cc_needs_belf+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 ac_ext=c
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135
6136 int
6137 main ()
6138 {
6139
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_link "$LINENO"; then :
6145 lt_cv_cc_needs_belf=yes
6146 else
6147 lt_cv_cc_needs_belf=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 ac_ext=c
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6159 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6160 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6161 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6162 CFLAGS="$SAVE_CFLAGS"
6163 fi
6164 ;;
6165 *-*solaris*)
6166 # Find out which ABI we are using.
6167 echo 'int i;' > conftest.$ac_ext
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6169 (eval $ac_compile) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; }; then
6173 case `/usr/bin/file conftest.o` in
6174 *64-bit*)
6175 case $lt_cv_prog_gnu_ld in
6176 yes*)
6177 case $host in
6178 i?86-*-solaris*)
6179 LD="${LD-ld} -m elf_x86_64"
6180 ;;
6181 sparc*-*-solaris*)
6182 LD="${LD-ld} -m elf64_sparc"
6183 ;;
6184 esac
6185 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6186 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6187 LD="${LD-ld}_sol2"
6188 fi
6189 ;;
6190 *)
6191 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6192 LD="${LD-ld} -64"
6193 fi
6194 ;;
6195 esac
6196 ;;
6197 esac
6198 fi
6199 rm -rf conftest*
6200 ;;
6201 esac
6202
6203 need_locks="$enable_libtool_lock"
6204
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}mt; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$MANIFEST_TOOL"; then
6214 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6234 if test -n "$MANIFEST_TOOL"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6236 $as_echo "$MANIFEST_TOOL" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242
6243 fi
6244 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6245 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6246 # Extract the first word of "mt", so it can be a program name with args.
6247 set dummy mt; 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 ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$ac_ct_MANIFEST_TOOL"; then
6254 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
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 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6274 if test -n "$ac_ct_MANIFEST_TOOL"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6276 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6283 MANIFEST_TOOL=":"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6292 fi
6293 else
6294 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6295 fi
6296
6297 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6299 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6300 if ${lt_cv_path_mainfest_tool+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 lt_cv_path_mainfest_tool=no
6304 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6305 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6306 cat conftest.err >&5
6307 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6308 lt_cv_path_mainfest_tool=yes
6309 fi
6310 rm -f conftest*
6311 fi
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6313 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6314 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6315 MANIFEST_TOOL=:
6316 fi
6317
6318
6319
6320
6321
6322
6323 case $host_os in
6324 rhapsody* | darwin*)
6325 if test -n "$ac_tool_prefix"; then
6326 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6327 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$DSYMUTIL"; then
6334 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6354 if test -n "$DSYMUTIL"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6356 $as_echo "$DSYMUTIL" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362
6363 fi
6364 if test -z "$ac_cv_prog_DSYMUTIL"; then
6365 ac_ct_DSYMUTIL=$DSYMUTIL
6366 # Extract the first word of "dsymutil", so it can be a program name with args.
6367 set dummy dsymutil; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$ac_ct_DSYMUTIL"; then
6374 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6394 if test -n "$ac_ct_DSYMUTIL"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6396 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402 if test "x$ac_ct_DSYMUTIL" = x; then
6403 DSYMUTIL=":"
6404 else
6405 case $cross_compiling:$ac_tool_warned in
6406 yes:)
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6409 ac_tool_warned=yes ;;
6410 esac
6411 DSYMUTIL=$ac_ct_DSYMUTIL
6412 fi
6413 else
6414 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6415 fi
6416
6417 if test -n "$ac_tool_prefix"; then
6418 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_prog_NMEDIT+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if test -n "$NMEDIT"; then
6426 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439 done
6440 done
6441 IFS=$as_save_IFS
6442
6443 fi
6444 fi
6445 NMEDIT=$ac_cv_prog_NMEDIT
6446 if test -n "$NMEDIT"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6448 $as_echo "$NMEDIT" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6452 fi
6453
6454
6455 fi
6456 if test -z "$ac_cv_prog_NMEDIT"; then
6457 ac_ct_NMEDIT=$NMEDIT
6458 # Extract the first word of "nmedit", so it can be a program name with args.
6459 set dummy nmedit; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 if test -n "$ac_ct_NMEDIT"; then
6466 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6486 if test -n "$ac_ct_NMEDIT"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6488 $as_echo "$ac_ct_NMEDIT" >&6; }
6489 else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494 if test "x$ac_ct_NMEDIT" = x; then
6495 NMEDIT=":"
6496 else
6497 case $cross_compiling:$ac_tool_warned in
6498 yes:)
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6502 esac
6503 NMEDIT=$ac_ct_NMEDIT
6504 fi
6505 else
6506 NMEDIT="$ac_cv_prog_NMEDIT"
6507 fi
6508
6509 if test -n "$ac_tool_prefix"; then
6510 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6511 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_LIPO+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test -n "$LIPO"; then
6518 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 LIPO=$ac_cv_prog_LIPO
6538 if test -n "$LIPO"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6540 $as_echo "$LIPO" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546
6547 fi
6548 if test -z "$ac_cv_prog_LIPO"; then
6549 ac_ct_LIPO=$LIPO
6550 # Extract the first word of "lipo", so it can be a program name with args.
6551 set dummy lipo; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if test -n "$ac_ct_LIPO"; then
6558 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_ac_ct_LIPO="lipo"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6578 if test -n "$ac_ct_LIPO"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6580 $as_echo "$ac_ct_LIPO" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586 if test "x$ac_ct_LIPO" = x; then
6587 LIPO=":"
6588 else
6589 case $cross_compiling:$ac_tool_warned in
6590 yes:)
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593 ac_tool_warned=yes ;;
6594 esac
6595 LIPO=$ac_ct_LIPO
6596 fi
6597 else
6598 LIPO="$ac_cv_prog_LIPO"
6599 fi
6600
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}otool; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_OTOOL+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 if test -n "$OTOOL"; then
6610 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 OTOOL=$ac_cv_prog_OTOOL
6630 if test -n "$OTOOL"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6632 $as_echo "$OTOOL" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 fi
6637
6638
6639 fi
6640 if test -z "$ac_cv_prog_OTOOL"; then
6641 ac_ct_OTOOL=$OTOOL
6642 # Extract the first word of "otool", so it can be a program name with args.
6643 set dummy otool; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 if test -n "$ac_ct_OTOOL"; then
6650 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_ac_ct_OTOOL="otool"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6670 if test -n "$ac_ct_OTOOL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6672 $as_echo "$ac_ct_OTOOL" >&6; }
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678 if test "x$ac_ct_OTOOL" = x; then
6679 OTOOL=":"
6680 else
6681 case $cross_compiling:$ac_tool_warned in
6682 yes:)
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687 OTOOL=$ac_ct_OTOOL
6688 fi
6689 else
6690 OTOOL="$ac_cv_prog_OTOOL"
6691 fi
6692
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_OTOOL64+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 if test -n "$OTOOL64"; then
6702 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 OTOOL64=$ac_cv_prog_OTOOL64
6722 if test -n "$OTOOL64"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6724 $as_echo "$OTOOL64" >&6; }
6725 else
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730
6731 fi
6732 if test -z "$ac_cv_prog_OTOOL64"; then
6733 ac_ct_OTOOL64=$OTOOL64
6734 # Extract the first word of "otool64", so it can be a program name with args.
6735 set dummy otool64; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 if test -n "$ac_ct_OTOOL64"; then
6742 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_ac_ct_OTOOL64="otool64"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6762 if test -n "$ac_ct_OTOOL64"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6764 $as_echo "$ac_ct_OTOOL64" >&6; }
6765 else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770 if test "x$ac_ct_OTOOL64" = x; then
6771 OTOOL64=":"
6772 else
6773 case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779 OTOOL64=$ac_ct_OTOOL64
6780 fi
6781 else
6782 OTOOL64="$ac_cv_prog_OTOOL64"
6783 fi
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6812 $as_echo_n "checking for -single_module linker flag... " >&6; }
6813 if ${lt_cv_apple_cc_single_mod+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 lt_cv_apple_cc_single_mod=no
6817 if test -z "${LT_MULTI_MODULE}"; then
6818 # By default we will add the -single_module flag. You can override
6819 # by either setting the environment variable LT_MULTI_MODULE
6820 # non-empty at configure time, or by adding -multi_module to the
6821 # link flags.
6822 rm -rf libconftest.dylib*
6823 echo "int foo(void){return 1;}" > conftest.c
6824 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6825 -dynamiclib -Wl,-single_module conftest.c" >&5
6826 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6827 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6828 _lt_result=$?
6829 # If there is a non-empty error log, and "single_module"
6830 # appears in it, assume the flag caused a linker warning
6831 if test -s conftest.err && $GREP single_module conftest.err; then
6832 cat conftest.err >&5
6833 # Otherwise, if the output was created with a 0 exit code from
6834 # the compiler, it worked.
6835 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6836 lt_cv_apple_cc_single_mod=yes
6837 else
6838 cat conftest.err >&5
6839 fi
6840 rm -rf libconftest.dylib*
6841 rm -f conftest.*
6842 fi
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6845 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6846
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6848 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6849 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 lt_cv_ld_exported_symbols_list=no
6853 save_LDFLAGS=$LDFLAGS
6854 echo "_main" > conftest.sym
6855 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858
6859 int
6860 main ()
6861 {
6862
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 if ac_fn_c_try_link "$LINENO"; then :
6868 lt_cv_ld_exported_symbols_list=yes
6869 else
6870 lt_cv_ld_exported_symbols_list=no
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext \
6873 conftest$ac_exeext conftest.$ac_ext
6874 LDFLAGS="$save_LDFLAGS"
6875
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6878 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6879
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6881 $as_echo_n "checking for -force_load linker flag... " >&6; }
6882 if ${lt_cv_ld_force_load+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 lt_cv_ld_force_load=no
6886 cat > conftest.c << _LT_EOF
6887 int forced_loaded() { return 2;}
6888 _LT_EOF
6889 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6890 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6891 echo "$AR cru libconftest.a conftest.o" >&5
6892 $AR cru libconftest.a conftest.o 2>&5
6893 echo "$RANLIB libconftest.a" >&5
6894 $RANLIB libconftest.a 2>&5
6895 cat > conftest.c << _LT_EOF
6896 int main() { return 0;}
6897 _LT_EOF
6898 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6899 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6900 _lt_result=$?
6901 if test -s conftest.err && $GREP force_load conftest.err; then
6902 cat conftest.err >&5
6903 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6904 lt_cv_ld_force_load=yes
6905 else
6906 cat conftest.err >&5
6907 fi
6908 rm -f conftest.err libconftest.a conftest conftest.c
6909 rm -rf conftest.dSYM
6910
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6913 $as_echo "$lt_cv_ld_force_load" >&6; }
6914 case $host_os in
6915 rhapsody* | darwin1.[012])
6916 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6917 darwin1.*)
6918 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6919 darwin*) # darwin 5.x on
6920 # if running on 10.5 or later, the deployment target defaults
6921 # to the OS version, if on x86, and 10.4, the deployment
6922 # target defaults to 10.4. Don't you love it?
6923 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6924 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6925 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6926 10.[012]*)
6927 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6928 10.*)
6929 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6930 esac
6931 ;;
6932 esac
6933 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6934 _lt_dar_single_mod='$single_module'
6935 fi
6936 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6937 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6938 else
6939 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6940 fi
6941 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6942 _lt_dsymutil='~$DSYMUTIL $lib || :'
6943 else
6944 _lt_dsymutil=
6945 fi
6946 ;;
6947 esac
6948
6949 ac_ext=c
6950 ac_cpp='$CPP $CPPFLAGS'
6951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6955 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6956 # On Suns, sometimes $CPP names a directory.
6957 if test -n "$CPP" && test -d "$CPP"; then
6958 CPP=
6959 fi
6960 if test -z "$CPP"; then
6961 if ${ac_cv_prog_CPP+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 # Double quotes because CPP needs to be expanded
6965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6966 do
6967 ac_preproc_ok=false
6968 for ac_c_preproc_warn_flag in '' yes
6969 do
6970 # Use a header file that comes with gcc, so configuring glibc
6971 # with a fresh cross-compiler works.
6972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6973 # <limits.h> exists even on freestanding compilers.
6974 # On the NeXT, cc -E runs the code through the compiler's parser,
6975 # not just through cpp. "Syntax error" is here to catch this case.
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 #ifdef __STDC__
6979 # include <limits.h>
6980 #else
6981 # include <assert.h>
6982 #endif
6983 Syntax error
6984 _ACEOF
6985 if ac_fn_c_try_cpp "$LINENO"; then :
6986
6987 else
6988 # Broken: fails on valid input.
6989 continue
6990 fi
6991 rm -f conftest.err conftest.i conftest.$ac_ext
6992
6993 # OK, works on sane cases. Now check whether nonexistent headers
6994 # can be detected and how.
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 #include <ac_nonexistent.h>
6998 _ACEOF
6999 if ac_fn_c_try_cpp "$LINENO"; then :
7000 # Broken: success on invalid input.
7001 continue
7002 else
7003 # Passes both tests.
7004 ac_preproc_ok=:
7005 break
7006 fi
7007 rm -f conftest.err conftest.i conftest.$ac_ext
7008
7009 done
7010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7011 rm -f conftest.i conftest.err conftest.$ac_ext
7012 if $ac_preproc_ok; then :
7013 break
7014 fi
7015
7016 done
7017 ac_cv_prog_CPP=$CPP
7018
7019 fi
7020 CPP=$ac_cv_prog_CPP
7021 else
7022 ac_cv_prog_CPP=$CPP
7023 fi
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7025 $as_echo "$CPP" >&6; }
7026 ac_preproc_ok=false
7027 for ac_c_preproc_warn_flag in '' yes
7028 do
7029 # Use a header file that comes with gcc, so configuring glibc
7030 # with a fresh cross-compiler works.
7031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7032 # <limits.h> exists even on freestanding compilers.
7033 # On the NeXT, cc -E runs the code through the compiler's parser,
7034 # not just through cpp. "Syntax error" is here to catch this case.
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 #ifdef __STDC__
7038 # include <limits.h>
7039 #else
7040 # include <assert.h>
7041 #endif
7042 Syntax error
7043 _ACEOF
7044 if ac_fn_c_try_cpp "$LINENO"; then :
7045
7046 else
7047 # Broken: fails on valid input.
7048 continue
7049 fi
7050 rm -f conftest.err conftest.i conftest.$ac_ext
7051
7052 # OK, works on sane cases. Now check whether nonexistent headers
7053 # can be detected and how.
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 #include <ac_nonexistent.h>
7057 _ACEOF
7058 if ac_fn_c_try_cpp "$LINENO"; then :
7059 # Broken: success on invalid input.
7060 continue
7061 else
7062 # Passes both tests.
7063 ac_preproc_ok=:
7064 break
7065 fi
7066 rm -f conftest.err conftest.i conftest.$ac_ext
7067
7068 done
7069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7070 rm -f conftest.i conftest.err conftest.$ac_ext
7071 if $ac_preproc_ok; then :
7072
7073 else
7074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7076 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7077 See \`config.log' for more details" "$LINENO" 5; }
7078 fi
7079
7080 ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7088 $as_echo_n "checking for ANSI C header files... " >&6; }
7089 if ${ac_cv_header_stdc+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 #include <stdlib.h>
7095 #include <stdarg.h>
7096 #include <string.h>
7097 #include <float.h>
7098
7099 int
7100 main ()
7101 {
7102
7103 ;
7104 return 0;
7105 }
7106 _ACEOF
7107 if ac_fn_c_try_compile "$LINENO"; then :
7108 ac_cv_header_stdc=yes
7109 else
7110 ac_cv_header_stdc=no
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113
7114 if test $ac_cv_header_stdc = yes; then
7115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 #include <string.h>
7119
7120 _ACEOF
7121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7122 $EGREP "memchr" >/dev/null 2>&1; then :
7123
7124 else
7125 ac_cv_header_stdc=no
7126 fi
7127 rm -f conftest*
7128
7129 fi
7130
7131 if test $ac_cv_header_stdc = yes; then
7132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #include <stdlib.h>
7136
7137 _ACEOF
7138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7139 $EGREP "free" >/dev/null 2>&1; then :
7140
7141 else
7142 ac_cv_header_stdc=no
7143 fi
7144 rm -f conftest*
7145
7146 fi
7147
7148 if test $ac_cv_header_stdc = yes; then
7149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7150 if test "$cross_compiling" = yes; then :
7151 :
7152 else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 #include <ctype.h>
7156 #include <stdlib.h>
7157 #if ((' ' & 0x0FF) == 0x020)
7158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7160 #else
7161 # define ISLOWER(c) \
7162 (('a' <= (c) && (c) <= 'i') \
7163 || ('j' <= (c) && (c) <= 'r') \
7164 || ('s' <= (c) && (c) <= 'z'))
7165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7166 #endif
7167
7168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7169 int
7170 main ()
7171 {
7172 int i;
7173 for (i = 0; i < 256; i++)
7174 if (XOR (islower (i), ISLOWER (i))
7175 || toupper (i) != TOUPPER (i))
7176 return 2;
7177 return 0;
7178 }
7179 _ACEOF
7180 if ac_fn_c_try_run "$LINENO"; then :
7181
7182 else
7183 ac_cv_header_stdc=no
7184 fi
7185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7186 conftest.$ac_objext conftest.beam conftest.$ac_ext
7187 fi
7188
7189 fi
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7192 $as_echo "$ac_cv_header_stdc" >&6; }
7193 if test $ac_cv_header_stdc = yes; then
7194
7195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7196
7197 fi
7198
7199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7201 inttypes.h stdint.h unistd.h
7202 do :
7203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7204 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7205 "
7206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7207 cat >>confdefs.h <<_ACEOF
7208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7209 _ACEOF
7210
7211 fi
7212
7213 done
7214
7215
7216 for ac_header in dlfcn.h
7217 do :
7218 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7219 "
7220 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7221 cat >>confdefs.h <<_ACEOF
7222 #define HAVE_DLFCN_H 1
7223 _ACEOF
7224
7225 fi
7226
7227 done
7228
7229
7230
7231
7232
7233 # Set options
7234
7235
7236
7237 enable_dlopen=no
7238
7239
7240 enable_win32_dll=no
7241
7242
7243 # Check whether --enable-shared was given.
7244 if test "${enable_shared+set}" = set; then :
7245 enableval=$enable_shared; p=${PACKAGE-default}
7246 case $enableval in
7247 yes) enable_shared=yes ;;
7248 no) enable_shared=no ;;
7249 *)
7250 enable_shared=no
7251 # Look at the argument we got. We use all the common list separators.
7252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7253 for pkg in $enableval; do
7254 IFS="$lt_save_ifs"
7255 if test "X$pkg" = "X$p"; then
7256 enable_shared=yes
7257 fi
7258 done
7259 IFS="$lt_save_ifs"
7260 ;;
7261 esac
7262 else
7263 enable_shared=yes
7264 fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 # Check whether --enable-static was given.
7275 if test "${enable_static+set}" = set; then :
7276 enableval=$enable_static; p=${PACKAGE-default}
7277 case $enableval in
7278 yes) enable_static=yes ;;
7279 no) enable_static=no ;;
7280 *)
7281 enable_static=no
7282 # Look at the argument we got. We use all the common list separators.
7283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7284 for pkg in $enableval; do
7285 IFS="$lt_save_ifs"
7286 if test "X$pkg" = "X$p"; then
7287 enable_static=yes
7288 fi
7289 done
7290 IFS="$lt_save_ifs"
7291 ;;
7292 esac
7293 else
7294 enable_static=yes
7295 fi
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306 # Check whether --with-pic was given.
7307 if test "${with_pic+set}" = set; then :
7308 withval=$with_pic; lt_p=${PACKAGE-default}
7309 case $withval in
7310 yes|no) pic_mode=$withval ;;
7311 *)
7312 pic_mode=default
7313 # Look at the argument we got. We use all the common list separators.
7314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7315 for lt_pkg in $withval; do
7316 IFS="$lt_save_ifs"
7317 if test "X$lt_pkg" = "X$lt_p"; then
7318 pic_mode=yes
7319 fi
7320 done
7321 IFS="$lt_save_ifs"
7322 ;;
7323 esac
7324 else
7325 pic_mode=default
7326 fi
7327
7328
7329 test -z "$pic_mode" && pic_mode=default
7330
7331
7332
7333
7334
7335
7336
7337 # Check whether --enable-fast-install was given.
7338 if test "${enable_fast_install+set}" = set; then :
7339 enableval=$enable_fast_install; p=${PACKAGE-default}
7340 case $enableval in
7341 yes) enable_fast_install=yes ;;
7342 no) enable_fast_install=no ;;
7343 *)
7344 enable_fast_install=no
7345 # Look at the argument we got. We use all the common list separators.
7346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7347 for pkg in $enableval; do
7348 IFS="$lt_save_ifs"
7349 if test "X$pkg" = "X$p"; then
7350 enable_fast_install=yes
7351 fi
7352 done
7353 IFS="$lt_save_ifs"
7354 ;;
7355 esac
7356 else
7357 enable_fast_install=yes
7358 fi
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 # This can be used to rebuild libtool when needed
7371 LIBTOOL_DEPS="$ltmain"
7372
7373 # Always use our own libtool.
7374 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 test -z "$LN_S" && LN_S="ln -s"
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420 if test -n "${ZSH_VERSION+set}" ; then
7421 setopt NO_GLOB_SUBST
7422 fi
7423
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7425 $as_echo_n "checking for objdir... " >&6; }
7426 if ${lt_cv_objdir+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 rm -f .libs 2>/dev/null
7430 mkdir .libs 2>/dev/null
7431 if test -d .libs; then
7432 lt_cv_objdir=.libs
7433 else
7434 # MS-DOS does not allow filenames that begin with a dot.
7435 lt_cv_objdir=_libs
7436 fi
7437 rmdir .libs 2>/dev/null
7438 fi
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7440 $as_echo "$lt_cv_objdir" >&6; }
7441 objdir=$lt_cv_objdir
7442
7443
7444
7445
7446
7447 cat >>confdefs.h <<_ACEOF
7448 #define LT_OBJDIR "$lt_cv_objdir/"
7449 _ACEOF
7450
7451
7452
7453
7454 case $host_os in
7455 aix3*)
7456 # AIX sometimes has problems with the GCC collect2 program. For some
7457 # reason, if we set the COLLECT_NAMES environment variable, the problems
7458 # vanish in a puff of smoke.
7459 if test "X${COLLECT_NAMES+set}" != Xset; then
7460 COLLECT_NAMES=
7461 export COLLECT_NAMES
7462 fi
7463 ;;
7464 esac
7465
7466 # Global variables:
7467 ofile=libtool
7468 can_build_shared=yes
7469
7470 # All known linkers require a `.a' archive for static linking (except MSVC,
7471 # which needs '.lib').
7472 libext=a
7473
7474 with_gnu_ld="$lt_cv_prog_gnu_ld"
7475
7476 old_CC="$CC"
7477 old_CFLAGS="$CFLAGS"
7478
7479 # Set sane defaults for various variables
7480 test -z "$CC" && CC=cc
7481 test -z "$LTCC" && LTCC=$CC
7482 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7483 test -z "$LD" && LD=ld
7484 test -z "$ac_objext" && ac_objext=o
7485
7486 for cc_temp in $compiler""; do
7487 case $cc_temp in
7488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7490 \-*) ;;
7491 *) break;;
7492 esac
7493 done
7494 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7495
7496
7497 # Only perform the check for file, if the check method requires it
7498 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7499 case $deplibs_check_method in
7500 file_magic*)
7501 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7503 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7504 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 case $MAGIC_CMD in
7508 [\\/*] | ?:[\\/]*)
7509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7510 ;;
7511 *)
7512 lt_save_MAGIC_CMD="$MAGIC_CMD"
7513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7515 for ac_dir in $ac_dummy; do
7516 IFS="$lt_save_ifs"
7517 test -z "$ac_dir" && ac_dir=.
7518 if test -f $ac_dir/${ac_tool_prefix}file; then
7519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7520 if test -n "$file_magic_test_file"; then
7521 case $deplibs_check_method in
7522 "file_magic "*)
7523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7526 $EGREP "$file_magic_regex" > /dev/null; then
7527 :
7528 else
7529 cat <<_LT_EOF 1>&2
7530
7531 *** Warning: the command libtool uses to detect shared libraries,
7532 *** $file_magic_cmd, produces output that libtool cannot recognize.
7533 *** The result is that libtool may fail to recognize shared libraries
7534 *** as such. This will affect the creation of libtool libraries that
7535 *** depend on shared libraries, but programs linked with such libtool
7536 *** libraries will work regardless of this problem. Nevertheless, you
7537 *** may want to report the problem to your system manager and/or to
7538 *** bug-libtool@gnu.org
7539
7540 _LT_EOF
7541 fi ;;
7542 esac
7543 fi
7544 break
7545 fi
7546 done
7547 IFS="$lt_save_ifs"
7548 MAGIC_CMD="$lt_save_MAGIC_CMD"
7549 ;;
7550 esac
7551 fi
7552
7553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7554 if test -n "$MAGIC_CMD"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7556 $as_echo "$MAGIC_CMD" >&6; }
7557 else
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562
7563
7564
7565
7566 if test -z "$lt_cv_path_MAGIC_CMD"; then
7567 if test -n "$ac_tool_prefix"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7569 $as_echo_n "checking for file... " >&6; }
7570 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 case $MAGIC_CMD in
7574 [\\/*] | ?:[\\/]*)
7575 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7576 ;;
7577 *)
7578 lt_save_MAGIC_CMD="$MAGIC_CMD"
7579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7581 for ac_dir in $ac_dummy; do
7582 IFS="$lt_save_ifs"
7583 test -z "$ac_dir" && ac_dir=.
7584 if test -f $ac_dir/file; then
7585 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7586 if test -n "$file_magic_test_file"; then
7587 case $deplibs_check_method in
7588 "file_magic "*)
7589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7592 $EGREP "$file_magic_regex" > /dev/null; then
7593 :
7594 else
7595 cat <<_LT_EOF 1>&2
7596
7597 *** Warning: the command libtool uses to detect shared libraries,
7598 *** $file_magic_cmd, produces output that libtool cannot recognize.
7599 *** The result is that libtool may fail to recognize shared libraries
7600 *** as such. This will affect the creation of libtool libraries that
7601 *** depend on shared libraries, but programs linked with such libtool
7602 *** libraries will work regardless of this problem. Nevertheless, you
7603 *** may want to report the problem to your system manager and/or to
7604 *** bug-libtool@gnu.org
7605
7606 _LT_EOF
7607 fi ;;
7608 esac
7609 fi
7610 break
7611 fi
7612 done
7613 IFS="$lt_save_ifs"
7614 MAGIC_CMD="$lt_save_MAGIC_CMD"
7615 ;;
7616 esac
7617 fi
7618
7619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7620 if test -n "$MAGIC_CMD"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7622 $as_echo "$MAGIC_CMD" >&6; }
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7626 fi
7627
7628
7629 else
7630 MAGIC_CMD=:
7631 fi
7632 fi
7633
7634 fi
7635 ;;
7636 esac
7637
7638 # Use C for the default configuration in the libtool script
7639
7640 lt_save_CC="$CC"
7641 ac_ext=c
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648 # Source file extension for C test sources.
7649 ac_ext=c
7650
7651 # Object file extension for compiled C test sources.
7652 objext=o
7653 objext=$objext
7654
7655 # Code to be used in simple compile tests
7656 lt_simple_compile_test_code="int some_variable = 0;"
7657
7658 # Code to be used in simple link tests
7659 lt_simple_link_test_code='int main(){return(0);}'
7660
7661
7662
7663
7664
7665
7666
7667 # If no C compiler was specified, use CC.
7668 LTCC=${LTCC-"$CC"}
7669
7670 # If no C compiler flags were specified, use CFLAGS.
7671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7672
7673 # Allow CC to be a program name with arguments.
7674 compiler=$CC
7675
7676 # Save the default compiler, since it gets overwritten when the other
7677 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7678 compiler_DEFAULT=$CC
7679
7680 # save warnings/boilerplate of simple test code
7681 ac_outfile=conftest.$ac_objext
7682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7684 _lt_compiler_boilerplate=`cat conftest.err`
7685 $RM conftest*
7686
7687 ac_outfile=conftest.$ac_objext
7688 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7690 _lt_linker_boilerplate=`cat conftest.err`
7691 $RM -r conftest*
7692
7693
7694 if test -n "$compiler"; then
7695
7696 lt_prog_compiler_no_builtin_flag=
7697
7698 if test "$GCC" = yes; then
7699 case $cc_basename in
7700 nvcc*)
7701 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7702 *)
7703 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7704 esac
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7707 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7708 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 lt_cv_prog_compiler_rtti_exceptions=no
7712 ac_outfile=conftest.$ac_objext
7713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7714 lt_compiler_flag="-fno-rtti -fno-exceptions"
7715 # Insert the option either (1) after the last *FLAGS variable, or
7716 # (2) before a word containing "conftest.", or (3) at the end.
7717 # Note that $ac_compile itself does not contain backslashes and begins
7718 # with a dollar sign (not a hyphen), so the echo should work correctly.
7719 # The option is referenced via a variable to avoid confusing sed.
7720 lt_compile=`echo "$ac_compile" | $SED \
7721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7723 -e 's:$: $lt_compiler_flag:'`
7724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7725 (eval "$lt_compile" 2>conftest.err)
7726 ac_status=$?
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 if (exit $ac_status) && test -s "$ac_outfile"; then
7730 # The compiler can only warn and ignore the option if not recognized
7731 # So say no if there are warnings other than the usual output.
7732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7735 lt_cv_prog_compiler_rtti_exceptions=yes
7736 fi
7737 fi
7738 $RM conftest*
7739
7740 fi
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7742 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7743
7744 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7745 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7746 else
7747 :
7748 fi
7749
7750 fi
7751
7752
7753
7754
7755
7756
7757 lt_prog_compiler_wl=
7758 lt_prog_compiler_pic=
7759 lt_prog_compiler_static=
7760
7761
7762 if test "$GCC" = yes; then
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_static='-static'
7765
7766 case $host_os in
7767 aix*)
7768 # All AIX code is PIC.
7769 if test "$host_cpu" = ia64; then
7770 # AIX 5 now supports IA64 processor
7771 lt_prog_compiler_static='-Bstatic'
7772 fi
7773 ;;
7774
7775 amigaos*)
7776 case $host_cpu in
7777 powerpc)
7778 # see comment about AmigaOS4 .so support
7779 lt_prog_compiler_pic='-fPIC'
7780 ;;
7781 m68k)
7782 # FIXME: we need at least 68020 code to build shared libraries, but
7783 # adding the `-m68020' flag to GCC prevents building anything better,
7784 # like `-m68040'.
7785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7786 ;;
7787 esac
7788 ;;
7789
7790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7791 # PIC is the default for these OSes.
7792 ;;
7793
7794 mingw* | cygwin* | pw32* | os2* | cegcc*)
7795 # This hack is so that the source file can tell whether it is being
7796 # built for inclusion in a dll (and should export symbols for example).
7797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7798 # (--disable-auto-import) libraries
7799 lt_prog_compiler_pic='-DDLL_EXPORT'
7800 ;;
7801
7802 darwin* | rhapsody*)
7803 # PIC is the default on this platform
7804 # Common symbols not allowed in MH_DYLIB files
7805 lt_prog_compiler_pic='-fno-common'
7806 ;;
7807
7808 haiku*)
7809 # PIC is the default for Haiku.
7810 # The "-static" flag exists, but is broken.
7811 lt_prog_compiler_static=
7812 ;;
7813
7814 hpux*)
7815 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7816 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7817 # sets the default TLS model and affects inlining.
7818 case $host_cpu in
7819 hppa*64*)
7820 # +Z the default
7821 ;;
7822 *)
7823 lt_prog_compiler_pic='-fPIC'
7824 ;;
7825 esac
7826 ;;
7827
7828 interix[3-9]*)
7829 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7830 # Instead, we relocate shared libraries at runtime.
7831 ;;
7832
7833 msdosdjgpp*)
7834 # Just because we use GCC doesn't mean we suddenly get shared libraries
7835 # on systems that don't support them.
7836 lt_prog_compiler_can_build_shared=no
7837 enable_shared=no
7838 ;;
7839
7840 *nto* | *qnx*)
7841 # QNX uses GNU C++, but need to define -shared option too, otherwise
7842 # it will coredump.
7843 lt_prog_compiler_pic='-fPIC -shared'
7844 ;;
7845
7846 sysv4*MP*)
7847 if test -d /usr/nec; then
7848 lt_prog_compiler_pic=-Kconform_pic
7849 fi
7850 ;;
7851
7852 *)
7853 lt_prog_compiler_pic='-fPIC'
7854 ;;
7855 esac
7856
7857 case $cc_basename in
7858 nvcc*) # Cuda Compiler Driver 2.2
7859 lt_prog_compiler_wl='-Xlinker '
7860 if test -n "$lt_prog_compiler_pic"; then
7861 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7862 fi
7863 ;;
7864 esac
7865 else
7866 # PORTME Check for flag to pass linker flags through the system compiler.
7867 case $host_os in
7868 aix*)
7869 lt_prog_compiler_wl='-Wl,'
7870 if test "$host_cpu" = ia64; then
7871 # AIX 5 now supports IA64 processor
7872 lt_prog_compiler_static='-Bstatic'
7873 else
7874 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7875 fi
7876 ;;
7877
7878 mingw* | cygwin* | pw32* | os2* | cegcc*)
7879 # This hack is so that the source file can tell whether it is being
7880 # built for inclusion in a dll (and should export symbols for example).
7881 lt_prog_compiler_pic='-DDLL_EXPORT'
7882 ;;
7883
7884 hpux9* | hpux10* | hpux11*)
7885 lt_prog_compiler_wl='-Wl,'
7886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7887 # not for PA HP-UX.
7888 case $host_cpu in
7889 hppa*64*|ia64*)
7890 # +Z the default
7891 ;;
7892 *)
7893 lt_prog_compiler_pic='+Z'
7894 ;;
7895 esac
7896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7897 lt_prog_compiler_static='${wl}-a ${wl}archive'
7898 ;;
7899
7900 irix5* | irix6* | nonstopux*)
7901 lt_prog_compiler_wl='-Wl,'
7902 # PIC (with -KPIC) is the default.
7903 lt_prog_compiler_static='-non_shared'
7904 ;;
7905
7906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7907 case $cc_basename in
7908 # old Intel for x86_64 which still supported -KPIC.
7909 ecc*)
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-static'
7913 ;;
7914 # icc used to be incompatible with GCC.
7915 # ICC 10 doesn't accept -KPIC any more.
7916 icc* | ifort*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='-fPIC'
7919 lt_prog_compiler_static='-static'
7920 ;;
7921 # Lahey Fortran 8.1.
7922 lf95*)
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='--shared'
7925 lt_prog_compiler_static='--static'
7926 ;;
7927 nagfor*)
7928 # NAG Fortran compiler
7929 lt_prog_compiler_wl='-Wl,-Wl,,'
7930 lt_prog_compiler_pic='-PIC'
7931 lt_prog_compiler_static='-Bstatic'
7932 ;;
7933 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7934 # Portland Group compilers (*not* the Pentium gcc compiler,
7935 # which looks to be a dead project)
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='-fpic'
7938 lt_prog_compiler_static='-Bstatic'
7939 ;;
7940 ccc*)
7941 lt_prog_compiler_wl='-Wl,'
7942 # All Alpha code is PIC.
7943 lt_prog_compiler_static='-non_shared'
7944 ;;
7945 xl* | bgxl* | bgf* | mpixl*)
7946 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-qpic'
7949 lt_prog_compiler_static='-qstaticlink'
7950 ;;
7951 *)
7952 case `$CC -V 2>&1 | sed 5q` in
7953 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7954 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_wl=''
7958 ;;
7959 *Sun\ F* | *Sun*Fortran*)
7960 lt_prog_compiler_pic='-KPIC'
7961 lt_prog_compiler_static='-Bstatic'
7962 lt_prog_compiler_wl='-Qoption ld '
7963 ;;
7964 *Sun\ C*)
7965 # Sun C 5.9
7966 lt_prog_compiler_pic='-KPIC'
7967 lt_prog_compiler_static='-Bstatic'
7968 lt_prog_compiler_wl='-Wl,'
7969 ;;
7970 *Intel*\ [CF]*Compiler*)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-fPIC'
7973 lt_prog_compiler_static='-static'
7974 ;;
7975 *Portland\ Group*)
7976 lt_prog_compiler_wl='-Wl,'
7977 lt_prog_compiler_pic='-fpic'
7978 lt_prog_compiler_static='-Bstatic'
7979 ;;
7980 esac
7981 ;;
7982 esac
7983 ;;
7984
7985 newsos6)
7986 lt_prog_compiler_pic='-KPIC'
7987 lt_prog_compiler_static='-Bstatic'
7988 ;;
7989
7990 *nto* | *qnx*)
7991 # QNX uses GNU C++, but need to define -shared option too, otherwise
7992 # it will coredump.
7993 lt_prog_compiler_pic='-fPIC -shared'
7994 ;;
7995
7996 osf3* | osf4* | osf5*)
7997 lt_prog_compiler_wl='-Wl,'
7998 # All OSF/1 code is PIC.
7999 lt_prog_compiler_static='-non_shared'
8000 ;;
8001
8002 rdos*)
8003 lt_prog_compiler_static='-non_shared'
8004 ;;
8005
8006 solaris*)
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8009 case $cc_basename in
8010 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8011 lt_prog_compiler_wl='-Qoption ld ';;
8012 *)
8013 lt_prog_compiler_wl='-Wl,';;
8014 esac
8015 ;;
8016
8017 sunos4*)
8018 lt_prog_compiler_wl='-Qoption ld '
8019 lt_prog_compiler_pic='-PIC'
8020 lt_prog_compiler_static='-Bstatic'
8021 ;;
8022
8023 sysv4 | sysv4.2uw2* | sysv4.3*)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8027 ;;
8028
8029 sysv4*MP*)
8030 if test -d /usr/nec ;then
8031 lt_prog_compiler_pic='-Kconform_pic'
8032 lt_prog_compiler_static='-Bstatic'
8033 fi
8034 ;;
8035
8036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-Bstatic'
8040 ;;
8041
8042 unicos*)
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_can_build_shared=no
8045 ;;
8046
8047 uts4*)
8048 lt_prog_compiler_pic='-pic'
8049 lt_prog_compiler_static='-Bstatic'
8050 ;;
8051
8052 *)
8053 lt_prog_compiler_can_build_shared=no
8054 ;;
8055 esac
8056 fi
8057
8058 case $host_os in
8059 # For platforms which do not support PIC, -DPIC is meaningless:
8060 *djgpp*)
8061 lt_prog_compiler_pic=
8062 ;;
8063 *)
8064 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8065 ;;
8066 esac
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8069 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8070 if ${lt_cv_prog_compiler_pic+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8076 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8077 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8078
8079 #
8080 # Check to make sure the PIC flag actually works.
8081 #
8082 if test -n "$lt_prog_compiler_pic"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8084 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8085 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 lt_cv_prog_compiler_pic_works=no
8089 ac_outfile=conftest.$ac_objext
8090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8091 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8092 # Insert the option either (1) after the last *FLAGS variable, or
8093 # (2) before a word containing "conftest.", or (3) at the end.
8094 # Note that $ac_compile itself does not contain backslashes and begins
8095 # with a dollar sign (not a hyphen), so the echo should work correctly.
8096 # The option is referenced via a variable to avoid confusing sed.
8097 lt_compile=`echo "$ac_compile" | $SED \
8098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8100 -e 's:$: $lt_compiler_flag:'`
8101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8102 (eval "$lt_compile" 2>conftest.err)
8103 ac_status=$?
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 if (exit $ac_status) && test -s "$ac_outfile"; then
8107 # The compiler can only warn and ignore the option if not recognized
8108 # So say no if there are warnings other than the usual output.
8109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8112 lt_cv_prog_compiler_pic_works=yes
8113 fi
8114 fi
8115 $RM conftest*
8116
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8119 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8120
8121 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8122 case $lt_prog_compiler_pic in
8123 "" | " "*) ;;
8124 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8125 esac
8126 else
8127 lt_prog_compiler_pic=
8128 lt_prog_compiler_can_build_shared=no
8129 fi
8130
8131 fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143 #
8144 # Check to make sure the static flag actually works.
8145 #
8146 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8148 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8149 if ${lt_cv_prog_compiler_static_works+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 lt_cv_prog_compiler_static_works=no
8153 save_LDFLAGS="$LDFLAGS"
8154 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8155 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8157 # The linker can only warn and ignore the option if not recognized
8158 # So say no if there are warnings
8159 if test -s conftest.err; then
8160 # Append any errors to the config.log.
8161 cat conftest.err 1>&5
8162 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8164 if diff conftest.exp conftest.er2 >/dev/null; then
8165 lt_cv_prog_compiler_static_works=yes
8166 fi
8167 else
8168 lt_cv_prog_compiler_static_works=yes
8169 fi
8170 fi
8171 $RM -r conftest*
8172 LDFLAGS="$save_LDFLAGS"
8173
8174 fi
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8176 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8177
8178 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8179 :
8180 else
8181 lt_prog_compiler_static=
8182 fi
8183
8184
8185
8186
8187
8188
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8192 if ${lt_cv_prog_compiler_c_o+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 lt_cv_prog_compiler_c_o=no
8196 $RM -r conftest 2>/dev/null
8197 mkdir conftest
8198 cd conftest
8199 mkdir out
8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201
8202 lt_compiler_flag="-o out/conftest2.$ac_objext"
8203 # Insert the option either (1) after the last *FLAGS variable, or
8204 # (2) before a word containing "conftest.", or (3) at the end.
8205 # Note that $ac_compile itself does not contain backslashes and begins
8206 # with a dollar sign (not a hyphen), so the echo should work correctly.
8207 lt_compile=`echo "$ac_compile" | $SED \
8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210 -e 's:$: $lt_compiler_flag:'`
8211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8212 (eval "$lt_compile" 2>out/conftest.err)
8213 ac_status=$?
8214 cat out/conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8217 then
8218 # The compiler can only warn and ignore the option if not recognized
8219 # So say no if there are warnings
8220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8223 lt_cv_prog_compiler_c_o=yes
8224 fi
8225 fi
8226 chmod u+w . 2>&5
8227 $RM conftest*
8228 # SGI C++ compiler will create directory out/ii_files/ for
8229 # template instantiation
8230 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8231 $RM out/* && rmdir out
8232 cd ..
8233 $RM -r conftest
8234 $RM conftest*
8235
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8238 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8239
8240
8241
8242
8243
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8246 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8247 if ${lt_cv_prog_compiler_c_o+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 lt_cv_prog_compiler_c_o=no
8251 $RM -r conftest 2>/dev/null
8252 mkdir conftest
8253 cd conftest
8254 mkdir out
8255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8256
8257 lt_compiler_flag="-o out/conftest2.$ac_objext"
8258 # Insert the option either (1) after the last *FLAGS variable, or
8259 # (2) before a word containing "conftest.", or (3) at the end.
8260 # Note that $ac_compile itself does not contain backslashes and begins
8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
8262 lt_compile=`echo "$ac_compile" | $SED \
8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8265 -e 's:$: $lt_compiler_flag:'`
8266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8267 (eval "$lt_compile" 2>out/conftest.err)
8268 ac_status=$?
8269 cat out/conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8272 then
8273 # The compiler can only warn and ignore the option if not recognized
8274 # So say no if there are warnings
8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8277 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8278 lt_cv_prog_compiler_c_o=yes
8279 fi
8280 fi
8281 chmod u+w . 2>&5
8282 $RM conftest*
8283 # SGI C++ compiler will create directory out/ii_files/ for
8284 # template instantiation
8285 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8286 $RM out/* && rmdir out
8287 cd ..
8288 $RM -r conftest
8289 $RM conftest*
8290
8291 fi
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8293 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8294
8295
8296
8297
8298 hard_links="nottested"
8299 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8300 # do not overwrite the value of need_locks provided by the user
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8302 $as_echo_n "checking if we can lock with hard links... " >&6; }
8303 hard_links=yes
8304 $RM conftest*
8305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8306 touch conftest.a
8307 ln conftest.a conftest.b 2>&5 || hard_links=no
8308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8310 $as_echo "$hard_links" >&6; }
8311 if test "$hard_links" = no; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8313 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8314 need_locks=warn
8315 fi
8316 else
8317 need_locks=no
8318 fi
8319
8320
8321
8322
8323
8324
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8326 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8327
8328 runpath_var=
8329 allow_undefined_flag=
8330 always_export_symbols=no
8331 archive_cmds=
8332 archive_expsym_cmds=
8333 compiler_needs_object=no
8334 enable_shared_with_static_runtimes=no
8335 export_dynamic_flag_spec=
8336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8337 hardcode_automatic=no
8338 hardcode_direct=no
8339 hardcode_direct_absolute=no
8340 hardcode_libdir_flag_spec=
8341 hardcode_libdir_separator=
8342 hardcode_minus_L=no
8343 hardcode_shlibpath_var=unsupported
8344 inherit_rpath=no
8345 link_all_deplibs=unknown
8346 module_cmds=
8347 module_expsym_cmds=
8348 old_archive_from_new_cmds=
8349 old_archive_from_expsyms_cmds=
8350 thread_safe_flag_spec=
8351 whole_archive_flag_spec=
8352 # include_expsyms should be a list of space-separated symbols to be *always*
8353 # included in the symbol list
8354 include_expsyms=
8355 # exclude_expsyms can be an extended regexp of symbols to exclude
8356 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8357 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8358 # as well as any symbol that contains `d'.
8359 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8360 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8361 # platforms (ab)use it in PIC code, but their linkers get confused if
8362 # the symbol is explicitly referenced. Since portable code cannot
8363 # rely on this symbol name, it's probably fine to never include it in
8364 # preloaded symbol tables.
8365 # Exclude shared library initialization/finalization symbols.
8366 extract_expsyms_cmds=
8367
8368 case $host_os in
8369 cygwin* | mingw* | pw32* | cegcc*)
8370 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8371 # When not using gcc, we currently assume that we are using
8372 # Microsoft Visual C++.
8373 if test "$GCC" != yes; then
8374 with_gnu_ld=no
8375 fi
8376 ;;
8377 interix*)
8378 # we just hope/assume this is gcc and not c89 (= MSVC++)
8379 with_gnu_ld=yes
8380 ;;
8381 openbsd*)
8382 with_gnu_ld=no
8383 ;;
8384 linux* | k*bsd*-gnu | gnu*)
8385 link_all_deplibs=no
8386 ;;
8387 esac
8388
8389 ld_shlibs=yes
8390
8391 # On some targets, GNU ld is compatible enough with the native linker
8392 # that we're better off using the native interface for both.
8393 lt_use_gnu_ld_interface=no
8394 if test "$with_gnu_ld" = yes; then
8395 case $host_os in
8396 aix*)
8397 # The AIX port of GNU ld has always aspired to compatibility
8398 # with the native linker. However, as the warning in the GNU ld
8399 # block says, versions before 2.19.5* couldn't really create working
8400 # shared libraries, regardless of the interface used.
8401 case `$LD -v 2>&1` in
8402 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8403 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8404 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8405 *)
8406 lt_use_gnu_ld_interface=yes
8407 ;;
8408 esac
8409 ;;
8410 *)
8411 lt_use_gnu_ld_interface=yes
8412 ;;
8413 esac
8414 fi
8415
8416 if test "$lt_use_gnu_ld_interface" = yes; then
8417 # If archive_cmds runs LD, not CC, wlarc should be empty
8418 wlarc='${wl}'
8419
8420 # Set some defaults for GNU ld with shared library support. These
8421 # are reset later if shared libraries are not supported. Putting them
8422 # here allows them to be overridden if necessary.
8423 runpath_var=LD_RUN_PATH
8424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425 export_dynamic_flag_spec='${wl}--export-dynamic'
8426 # ancient GNU ld didn't support --whole-archive et. al.
8427 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8429 else
8430 whole_archive_flag_spec=
8431 fi
8432 supports_anon_versioning=no
8433 case `$LD -v 2>&1` in
8434 *GNU\ gold*) supports_anon_versioning=yes ;;
8435 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8436 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8437 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8438 *\ 2.11.*) ;; # other 2.11 versions
8439 *) supports_anon_versioning=yes ;;
8440 esac
8441
8442 # See if GNU ld supports shared libraries.
8443 case $host_os in
8444 aix[3-9]*)
8445 # On AIX/PPC, the GNU linker is very broken
8446 if test "$host_cpu" != ia64; then
8447 ld_shlibs=no
8448 cat <<_LT_EOF 1>&2
8449
8450 *** Warning: the GNU linker, at least up to release 2.19, is reported
8451 *** to be unable to reliably create shared libraries on AIX.
8452 *** Therefore, libtool is disabling shared libraries support. If you
8453 *** really care for shared libraries, you may want to install binutils
8454 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8455 *** You will then need to restart the configuration process.
8456
8457 _LT_EOF
8458 fi
8459 ;;
8460
8461 amigaos*)
8462 case $host_cpu in
8463 powerpc)
8464 # see comment about AmigaOS4 .so support
8465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8466 archive_expsym_cmds=''
8467 ;;
8468 m68k)
8469 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)'
8470 hardcode_libdir_flag_spec='-L$libdir'
8471 hardcode_minus_L=yes
8472 ;;
8473 esac
8474 ;;
8475
8476 beos*)
8477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8478 allow_undefined_flag=unsupported
8479 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8480 # support --undefined. This deserves some investigation. FIXME
8481 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482 else
8483 ld_shlibs=no
8484 fi
8485 ;;
8486
8487 cygwin* | mingw* | pw32* | cegcc*)
8488 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8489 # as there is no search path for DLLs.
8490 hardcode_libdir_flag_spec='-L$libdir'
8491 export_dynamic_flag_spec='${wl}--export-all-symbols'
8492 allow_undefined_flag=unsupported
8493 always_export_symbols=no
8494 enable_shared_with_static_runtimes=yes
8495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8496 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8497
8498 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8500 # If the export-symbols file already is a .def file (1st line
8501 # is EXPORTS), use it as is; otherwise, prepend...
8502 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8503 cp $export_symbols $output_objdir/$soname.def;
8504 else
8505 echo EXPORTS > $output_objdir/$soname.def;
8506 cat $export_symbols >> $output_objdir/$soname.def;
8507 fi~
8508 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8509 else
8510 ld_shlibs=no
8511 fi
8512 ;;
8513
8514 haiku*)
8515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8516 link_all_deplibs=yes
8517 ;;
8518
8519 interix[3-9]*)
8520 hardcode_direct=no
8521 hardcode_shlibpath_var=no
8522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8523 export_dynamic_flag_spec='${wl}-E'
8524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8525 # Instead, shared libraries are loaded at an image base (0x10000000 by
8526 # default) and relocated if they conflict, which is a slow very memory
8527 # consuming and fragmenting process. To avoid this, we pick a random,
8528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8530 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8531 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'
8532 ;;
8533
8534 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8535 tmp_diet=no
8536 if test "$host_os" = linux-dietlibc; then
8537 case $cc_basename in
8538 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8539 esac
8540 fi
8541 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8542 && test "$tmp_diet" = no
8543 then
8544 tmp_addflag=' $pic_flag'
8545 tmp_sharedflag='-shared'
8546 case $cc_basename,$host_cpu in
8547 pgcc*) # Portland Group C compiler
8548 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8549 tmp_addflag=' $pic_flag'
8550 ;;
8551 pgf77* | pgf90* | pgf95* | pgfortran*)
8552 # Portland Group f77 and f90 compilers
8553 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8554 tmp_addflag=' $pic_flag -Mnomain' ;;
8555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8556 tmp_addflag=' -i_dynamic' ;;
8557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8558 tmp_addflag=' -i_dynamic -nofor_main' ;;
8559 ifc* | ifort*) # Intel Fortran compiler
8560 tmp_addflag=' -nofor_main' ;;
8561 lf95*) # Lahey Fortran 8.1
8562 whole_archive_flag_spec=
8563 tmp_sharedflag='--shared' ;;
8564 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8565 tmp_sharedflag='-qmkshrobj'
8566 tmp_addflag= ;;
8567 nvcc*) # Cuda Compiler Driver 2.2
8568 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8569 compiler_needs_object=yes
8570 ;;
8571 esac
8572 case `$CC -V 2>&1 | sed 5q` in
8573 *Sun\ C*) # Sun C 5.9
8574 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8575 compiler_needs_object=yes
8576 tmp_sharedflag='-G' ;;
8577 *Sun\ F*) # Sun Fortran 8.3
8578 tmp_sharedflag='-G' ;;
8579 esac
8580 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581
8582 if test "x$supports_anon_versioning" = xyes; then
8583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8585 echo "local: *; };" >> $output_objdir/$libname.ver~
8586 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8587 fi
8588
8589 case $cc_basename in
8590 xlf* | bgf* | bgxlf* | mpixlf*)
8591 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8592 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8595 if test "x$supports_anon_versioning" = xyes; then
8596 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8597 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8598 echo "local: *; };" >> $output_objdir/$libname.ver~
8599 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8600 fi
8601 ;;
8602 esac
8603 else
8604 ld_shlibs=no
8605 fi
8606 ;;
8607
8608 netbsd* | netbsdelf*-gnu)
8609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8610 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8611 wlarc=
8612 else
8613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8615 fi
8616 ;;
8617
8618 solaris*)
8619 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8620 ld_shlibs=no
8621 cat <<_LT_EOF 1>&2
8622
8623 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8624 *** create shared libraries on Solaris systems. Therefore, libtool
8625 *** is disabling shared libraries support. We urge you to upgrade GNU
8626 *** binutils to release 2.9.1 or newer. Another option is to modify
8627 *** your PATH or compiler configuration so that the native linker is
8628 *** used, and then restart.
8629
8630 _LT_EOF
8631 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8634 else
8635 ld_shlibs=no
8636 fi
8637 ;;
8638
8639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8640 case `$LD -v 2>&1` in
8641 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8642 ld_shlibs=no
8643 cat <<_LT_EOF 1>&2
8644
8645 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8646 *** reliably create shared libraries on SCO systems. Therefore, libtool
8647 *** is disabling shared libraries support. We urge you to upgrade GNU
8648 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8649 *** your PATH or compiler configuration so that the native linker is
8650 *** used, and then restart.
8651
8652 _LT_EOF
8653 ;;
8654 *)
8655 # For security reasons, it is highly recommended that you always
8656 # use absolute paths for naming shared libraries, and exclude the
8657 # DT_RUNPATH tag from executables and libraries. But doing so
8658 # requires that you compile everything twice, which is a pain.
8659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663 else
8664 ld_shlibs=no
8665 fi
8666 ;;
8667 esac
8668 ;;
8669
8670 sunos4*)
8671 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8672 wlarc=
8673 hardcode_direct=yes
8674 hardcode_shlibpath_var=no
8675 ;;
8676
8677 *)
8678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8681 else
8682 ld_shlibs=no
8683 fi
8684 ;;
8685 esac
8686
8687 if test "$ld_shlibs" = no; then
8688 runpath_var=
8689 hardcode_libdir_flag_spec=
8690 export_dynamic_flag_spec=
8691 whole_archive_flag_spec=
8692 fi
8693 else
8694 # PORTME fill in a description of your system's linker (not GNU ld)
8695 case $host_os in
8696 aix3*)
8697 allow_undefined_flag=unsupported
8698 always_export_symbols=yes
8699 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'
8700 # Note: this linker hardcodes the directories in LIBPATH if there
8701 # are no directories specified by -L.
8702 hardcode_minus_L=yes
8703 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8704 # Neither direct hardcoding nor static linking is supported with a
8705 # broken collect2.
8706 hardcode_direct=unsupported
8707 fi
8708 ;;
8709
8710 aix[4-9]*)
8711 if test "$host_cpu" = ia64; then
8712 # On IA64, the linker does run time linking by default, so we don't
8713 # have to do anything special.
8714 aix_use_runtimelinking=no
8715 exp_sym_flag='-Bexport'
8716 no_entry_flag=""
8717 else
8718 # If we're using GNU nm, then we don't want the "-C" option.
8719 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8720 # Also, AIX nm treats weak defined symbols like other global
8721 # defined symbols, whereas GNU nm marks them as "W".
8722 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8723 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8724 else
8725 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'
8726 fi
8727 aix_use_runtimelinking=no
8728
8729 # Test if we are trying to use run time linking or normal
8730 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8731 # need to do runtime linking.
8732 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8733 for ld_flag in $LDFLAGS; do
8734 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8735 aix_use_runtimelinking=yes
8736 break
8737 fi
8738 done
8739 ;;
8740 esac
8741
8742 exp_sym_flag='-bexport'
8743 no_entry_flag='-bnoentry'
8744 fi
8745
8746 # When large executables or shared objects are built, AIX ld can
8747 # have problems creating the table of contents. If linking a library
8748 # or program results in "error TOC overflow" add -mminimal-toc to
8749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8751
8752 archive_cmds=''
8753 hardcode_direct=yes
8754 hardcode_direct_absolute=yes
8755 hardcode_libdir_separator=':'
8756 link_all_deplibs=yes
8757 file_list_spec='${wl}-f,'
8758
8759 if test "$GCC" = yes; then
8760 case $host_os in aix4.[012]|aix4.[012].*)
8761 # We only want to do this on AIX 4.2 and lower, the check
8762 # below for broken collect2 doesn't work under 4.3+
8763 collect2name=`${CC} -print-prog-name=collect2`
8764 if test -f "$collect2name" &&
8765 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8766 then
8767 # We have reworked collect2
8768 :
8769 else
8770 # We have old collect2
8771 hardcode_direct=unsupported
8772 # It fails to find uninstalled libraries when the uninstalled
8773 # path is not listed in the libpath. Setting hardcode_minus_L
8774 # to unsupported forces relinking
8775 hardcode_minus_L=yes
8776 hardcode_libdir_flag_spec='-L$libdir'
8777 hardcode_libdir_separator=
8778 fi
8779 ;;
8780 esac
8781 shared_flag='-shared'
8782 if test "$aix_use_runtimelinking" = yes; then
8783 shared_flag="$shared_flag "'${wl}-G'
8784 fi
8785 link_all_deplibs=no
8786 else
8787 # not using gcc
8788 if test "$host_cpu" = ia64; then
8789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8790 # chokes on -Wl,-G. The following line is correct:
8791 shared_flag='-G'
8792 else
8793 if test "$aix_use_runtimelinking" = yes; then
8794 shared_flag='${wl}-G'
8795 else
8796 shared_flag='${wl}-bM:SRE'
8797 fi
8798 fi
8799 fi
8800
8801 export_dynamic_flag_spec='${wl}-bexpall'
8802 # It seems that -bexpall does not export symbols beginning with
8803 # underscore (_), so it is better to generate a list of symbols to export.
8804 always_export_symbols=yes
8805 if test "$aix_use_runtimelinking" = yes; then
8806 # Warning - without using the other runtime loading flags (-brtl),
8807 # -berok will link without error, but may produce a broken library.
8808 allow_undefined_flag='-berok'
8809 # Determine the default libpath from the value encoded in an
8810 # empty executable.
8811 if test "${lt_cv_aix_libpath+set}" = set; then
8812 aix_libpath=$lt_cv_aix_libpath
8813 else
8814 if ${lt_cv_aix_libpath_+:} false; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819
8820 int
8821 main ()
8822 {
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"; then :
8829
8830 lt_aix_libpath_sed='
8831 /Import File Strings/,/^$/ {
8832 /^0/ {
8833 s/^0 *\([^ ]*\) *$/\1/
8834 p
8835 }
8836 }'
8837 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8838 # Check for a 64-bit object if we didn't find anything.
8839 if test -z "$lt_cv_aix_libpath_"; then
8840 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8841 fi
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 if test -z "$lt_cv_aix_libpath_"; then
8846 lt_cv_aix_libpath_="/usr/lib:/lib"
8847 fi
8848
8849 fi
8850
8851 aix_libpath=$lt_cv_aix_libpath_
8852 fi
8853
8854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8855 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8856 else
8857 if test "$host_cpu" = ia64; then
8858 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8859 allow_undefined_flag="-z nodefs"
8860 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"
8861 else
8862 # Determine the default libpath from the value encoded in an
8863 # empty executable.
8864 if test "${lt_cv_aix_libpath+set}" = set; then
8865 aix_libpath=$lt_cv_aix_libpath
8866 else
8867 if ${lt_cv_aix_libpath_+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872
8873 int
8874 main ()
8875 {
8876
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_link "$LINENO"; then :
8882
8883 lt_aix_libpath_sed='
8884 /Import File Strings/,/^$/ {
8885 /^0/ {
8886 s/^0 *\([^ ]*\) *$/\1/
8887 p
8888 }
8889 }'
8890 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8891 # Check for a 64-bit object if we didn't find anything.
8892 if test -z "$lt_cv_aix_libpath_"; then
8893 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8894 fi
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 if test -z "$lt_cv_aix_libpath_"; then
8899 lt_cv_aix_libpath_="/usr/lib:/lib"
8900 fi
8901
8902 fi
8903
8904 aix_libpath=$lt_cv_aix_libpath_
8905 fi
8906
8907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8908 # Warning - without using the other run time loading flags,
8909 # -berok will link without error, but may produce a broken library.
8910 no_undefined_flag=' ${wl}-bernotok'
8911 allow_undefined_flag=' ${wl}-berok'
8912 if test "$with_gnu_ld" = yes; then
8913 # We only use this code for GNU lds that support --whole-archive.
8914 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8915 else
8916 # Exported symbols can be pulled into shared objects from archives
8917 whole_archive_flag_spec='$convenience'
8918 fi
8919 archive_cmds_need_lc=yes
8920 # This is similar to how AIX traditionally builds its shared libraries.
8921 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'
8922 fi
8923 fi
8924 ;;
8925
8926 amigaos*)
8927 case $host_cpu in
8928 powerpc)
8929 # see comment about AmigaOS4 .so support
8930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931 archive_expsym_cmds=''
8932 ;;
8933 m68k)
8934 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)'
8935 hardcode_libdir_flag_spec='-L$libdir'
8936 hardcode_minus_L=yes
8937 ;;
8938 esac
8939 ;;
8940
8941 bsdi[45]*)
8942 export_dynamic_flag_spec=-rdynamic
8943 ;;
8944
8945 cygwin* | mingw* | pw32* | cegcc*)
8946 # When not using gcc, we currently assume that we are using
8947 # Microsoft Visual C++.
8948 # hardcode_libdir_flag_spec is actually meaningless, as there is
8949 # no search path for DLLs.
8950 case $cc_basename in
8951 cl*)
8952 # Native MSVC
8953 hardcode_libdir_flag_spec=' '
8954 allow_undefined_flag=unsupported
8955 always_export_symbols=yes
8956 file_list_spec='@'
8957 # Tell ltmain to make .lib files, not .a files.
8958 libext=lib
8959 # Tell ltmain to make .dll files, not .so files.
8960 shrext_cmds=".dll"
8961 # FIXME: Setting linknames here is a bad hack.
8962 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8963 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8964 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8965 else
8966 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8967 fi~
8968 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8969 linknames='
8970 # The linker will not automatically build a static lib if we build a DLL.
8971 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8972 enable_shared_with_static_runtimes=yes
8973 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8974 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8975 # Don't use ranlib
8976 old_postinstall_cmds='chmod 644 $oldlib'
8977 postlink_cmds='lt_outputfile="@OUTPUT@"~
8978 lt_tool_outputfile="@TOOL_OUTPUT@"~
8979 case $lt_outputfile in
8980 *.exe|*.EXE) ;;
8981 *)
8982 lt_outputfile="$lt_outputfile.exe"
8983 lt_tool_outputfile="$lt_tool_outputfile.exe"
8984 ;;
8985 esac~
8986 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8987 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8988 $RM "$lt_outputfile.manifest";
8989 fi'
8990 ;;
8991 *)
8992 # Assume MSVC wrapper
8993 hardcode_libdir_flag_spec=' '
8994 allow_undefined_flag=unsupported
8995 # Tell ltmain to make .lib files, not .a files.
8996 libext=lib
8997 # Tell ltmain to make .dll files, not .so files.
8998 shrext_cmds=".dll"
8999 # FIXME: Setting linknames here is a bad hack.
9000 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9001 # The linker will automatically build a .lib file if we build a DLL.
9002 old_archive_from_new_cmds='true'
9003 # FIXME: Should let the user specify the lib program.
9004 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9005 enable_shared_with_static_runtimes=yes
9006 ;;
9007 esac
9008 ;;
9009
9010 darwin* | rhapsody*)
9011
9012
9013 archive_cmds_need_lc=no
9014 hardcode_direct=no
9015 hardcode_automatic=yes
9016 hardcode_shlibpath_var=unsupported
9017 if test "$lt_cv_ld_force_load" = "yes"; then
9018 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9019
9020 else
9021 whole_archive_flag_spec=''
9022 fi
9023 link_all_deplibs=yes
9024 allow_undefined_flag="$_lt_dar_allow_undefined"
9025 case $cc_basename in
9026 ifort*) _lt_dar_can_shared=yes ;;
9027 *) _lt_dar_can_shared=$GCC ;;
9028 esac
9029 if test "$_lt_dar_can_shared" = "yes"; then
9030 output_verbose_link_cmd=func_echo_all
9031 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9032 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9033 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}"
9034 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}"
9035
9036 else
9037 ld_shlibs=no
9038 fi
9039
9040 ;;
9041
9042 dgux*)
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9049 # support. Future versions do this automatically, but an explicit c++rt0.o
9050 # does not break anything, and helps significantly (at the cost of a little
9051 # extra space).
9052 freebsd2.2*)
9053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9054 hardcode_libdir_flag_spec='-R$libdir'
9055 hardcode_direct=yes
9056 hardcode_shlibpath_var=no
9057 ;;
9058
9059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9060 freebsd2.*)
9061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_direct=yes
9063 hardcode_minus_L=yes
9064 hardcode_shlibpath_var=no
9065 ;;
9066
9067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9068 freebsd* | dragonfly*)
9069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9070 hardcode_libdir_flag_spec='-R$libdir'
9071 hardcode_direct=yes
9072 hardcode_shlibpath_var=no
9073 ;;
9074
9075 hpux9*)
9076 if test "$GCC" = yes; then
9077 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9078 else
9079 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'
9080 fi
9081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9082 hardcode_libdir_separator=:
9083 hardcode_direct=yes
9084
9085 # hardcode_minus_L: Not really in the search PATH,
9086 # but as the default location of the library.
9087 hardcode_minus_L=yes
9088 export_dynamic_flag_spec='${wl}-E'
9089 ;;
9090
9091 hpux10*)
9092 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9093 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9094 else
9095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9096 fi
9097 if test "$with_gnu_ld" = no; then
9098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9099 hardcode_libdir_separator=:
9100 hardcode_direct=yes
9101 hardcode_direct_absolute=yes
9102 export_dynamic_flag_spec='${wl}-E'
9103 # hardcode_minus_L: Not really in the search PATH,
9104 # but as the default location of the library.
9105 hardcode_minus_L=yes
9106 fi
9107 ;;
9108
9109 hpux11*)
9110 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9111 case $host_cpu in
9112 hppa*64*)
9113 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 ;;
9115 ia64*)
9116 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9117 ;;
9118 *)
9119 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 ;;
9121 esac
9122 else
9123 case $host_cpu in
9124 hppa*64*)
9125 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 ;;
9127 ia64*)
9128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9129 ;;
9130 *)
9131
9132 # Older versions of the 11.00 compiler do not understand -b yet
9133 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9135 $as_echo_n "checking if $CC understands -b... " >&6; }
9136 if ${lt_cv_prog_compiler__b+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 lt_cv_prog_compiler__b=no
9140 save_LDFLAGS="$LDFLAGS"
9141 LDFLAGS="$LDFLAGS -b"
9142 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9143 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9144 # The linker can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 if test -s conftest.err; then
9147 # Append any errors to the config.log.
9148 cat conftest.err 1>&5
9149 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9151 if diff conftest.exp conftest.er2 >/dev/null; then
9152 lt_cv_prog_compiler__b=yes
9153 fi
9154 else
9155 lt_cv_prog_compiler__b=yes
9156 fi
9157 fi
9158 $RM -r conftest*
9159 LDFLAGS="$save_LDFLAGS"
9160
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9163 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9164
9165 if test x"$lt_cv_prog_compiler__b" = xyes; then
9166 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9167 else
9168 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9169 fi
9170
9171 ;;
9172 esac
9173 fi
9174 if test "$with_gnu_ld" = no; then
9175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176 hardcode_libdir_separator=:
9177
9178 case $host_cpu in
9179 hppa*64*|ia64*)
9180 hardcode_direct=no
9181 hardcode_shlibpath_var=no
9182 ;;
9183 *)
9184 hardcode_direct=yes
9185 hardcode_direct_absolute=yes
9186 export_dynamic_flag_spec='${wl}-E'
9187
9188 # hardcode_minus_L: Not really in the search PATH,
9189 # but as the default location of the library.
9190 hardcode_minus_L=yes
9191 ;;
9192 esac
9193 fi
9194 ;;
9195
9196 irix5* | irix6* | nonstopux*)
9197 if test "$GCC" = yes; then
9198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9199 # Try to use the -exported_symbol ld option, if it does not
9200 # work, assume that -exports_file does not work either and
9201 # implicitly export all symbols.
9202 # This should be the same for all languages, so no per-tag cache variable.
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9204 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9205 if ${lt_cv_irix_exported_symbol+:} false; then :
9206 $as_echo_n "(cached) " >&6
9207 else
9208 save_LDFLAGS="$LDFLAGS"
9209 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 int foo (void) { return 0; }
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"; then :
9215 lt_cv_irix_exported_symbol=yes
9216 else
9217 lt_cv_irix_exported_symbol=no
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 LDFLAGS="$save_LDFLAGS"
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9224 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9225 if test "$lt_cv_irix_exported_symbol" = yes; then
9226 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9227 fi
9228 else
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9231 fi
9232 archive_cmds_need_lc='no'
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 hardcode_libdir_separator=:
9235 inherit_rpath=yes
9236 link_all_deplibs=yes
9237 ;;
9238
9239 netbsd* | netbsdelf*-gnu)
9240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9242 else
9243 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9244 fi
9245 hardcode_libdir_flag_spec='-R$libdir'
9246 hardcode_direct=yes
9247 hardcode_shlibpath_var=no
9248 ;;
9249
9250 newsos6)
9251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_direct=yes
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255 hardcode_shlibpath_var=no
9256 ;;
9257
9258 *nto* | *qnx*)
9259 ;;
9260
9261 openbsd*)
9262 if test -f /usr/libexec/ld.so; then
9263 hardcode_direct=yes
9264 hardcode_shlibpath_var=no
9265 hardcode_direct_absolute=yes
9266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270 export_dynamic_flag_spec='${wl}-E'
9271 else
9272 case $host_os in
9273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_libdir_flag_spec='-R$libdir'
9276 ;;
9277 *)
9278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280 ;;
9281 esac
9282 fi
9283 else
9284 ld_shlibs=no
9285 fi
9286 ;;
9287
9288 os2*)
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_minus_L=yes
9291 allow_undefined_flag=unsupported
9292 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'
9293 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9294 ;;
9295
9296 osf3*)
9297 if test "$GCC" = yes; then
9298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9299 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9300 else
9301 allow_undefined_flag=' -expect_unresolved \*'
9302 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9303 fi
9304 archive_cmds_need_lc='no'
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 hardcode_libdir_separator=:
9307 ;;
9308
9309 osf4* | osf5*) # as osf3* with the addition of -msym flag
9310 if test "$GCC" = yes; then
9311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9312 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 else
9315 allow_undefined_flag=' -expect_unresolved \*'
9316 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9317 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~
9318 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9319
9320 # Both c and cxx compiler support -rpath directly
9321 hardcode_libdir_flag_spec='-rpath $libdir'
9322 fi
9323 archive_cmds_need_lc='no'
9324 hardcode_libdir_separator=:
9325 ;;
9326
9327 solaris*)
9328 no_undefined_flag=' -z defs'
9329 if test "$GCC" = yes; then
9330 wlarc='${wl}'
9331 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9333 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9334 else
9335 case `$CC -V 2>&1` in
9336 *"Compilers 5.0"*)
9337 wlarc=''
9338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9341 ;;
9342 *)
9343 wlarc='${wl}'
9344 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9346 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9347 ;;
9348 esac
9349 fi
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_shlibpath_var=no
9352 case $host_os in
9353 solaris2.[0-5] | solaris2.[0-5].*) ;;
9354 *)
9355 # The compiler driver will combine and reorder linker options,
9356 # but understands `-z linker_flag'. GCC discards it without `$wl',
9357 # but is careful enough not to reorder.
9358 # Supported since Solaris 2.6 (maybe 2.5.1?)
9359 if test "$GCC" = yes; then
9360 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9361 else
9362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9363 fi
9364 ;;
9365 esac
9366 link_all_deplibs=yes
9367 ;;
9368
9369 sunos4*)
9370 if test "x$host_vendor" = xsequent; then
9371 # Use $CC to link under sequent, because it throws in some extra .o
9372 # files that make .init and .fini sections work.
9373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9374 else
9375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9376 fi
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 hardcode_direct=yes
9379 hardcode_minus_L=yes
9380 hardcode_shlibpath_var=no
9381 ;;
9382
9383 sysv4)
9384 case $host_vendor in
9385 sni)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=yes # is this really true???
9388 ;;
9389 siemens)
9390 ## LD is ld it makes a PLAMLIB
9391 ## CC just makes a GrossModule.
9392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9393 reload_cmds='$CC -r -o $output$reload_objs'
9394 hardcode_direct=no
9395 ;;
9396 motorola)
9397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9399 ;;
9400 esac
9401 runpath_var='LD_RUN_PATH'
9402 hardcode_shlibpath_var=no
9403 ;;
9404
9405 sysv4.3*)
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_shlibpath_var=no
9408 export_dynamic_flag_spec='-Bexport'
9409 ;;
9410
9411 sysv4*MP*)
9412 if test -d /usr/nec; then
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_shlibpath_var=no
9415 runpath_var=LD_RUN_PATH
9416 hardcode_runpath_var=yes
9417 ld_shlibs=yes
9418 fi
9419 ;;
9420
9421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9422 no_undefined_flag='${wl}-z,text'
9423 archive_cmds_need_lc=no
9424 hardcode_shlibpath_var=no
9425 runpath_var='LD_RUN_PATH'
9426
9427 if test "$GCC" = yes; then
9428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 else
9431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 fi
9434 ;;
9435
9436 sysv5* | sco3.2v5* | sco5v6*)
9437 # Note: We can NOT use -z defs as we might desire, because we do not
9438 # link with -lc, and that would cause any symbols used from libc to
9439 # always be unresolved, which means just about no library would
9440 # ever link correctly. If we're not using GNU ld we use -z text
9441 # though, which does catch some bad symbols but isn't as heavy-handed
9442 # as -z defs.
9443 no_undefined_flag='${wl}-z,text'
9444 allow_undefined_flag='${wl}-z,nodefs'
9445 archive_cmds_need_lc=no
9446 hardcode_shlibpath_var=no
9447 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9448 hardcode_libdir_separator=':'
9449 link_all_deplibs=yes
9450 export_dynamic_flag_spec='${wl}-Bexport'
9451 runpath_var='LD_RUN_PATH'
9452
9453 if test "$GCC" = yes; then
9454 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 else
9457 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 fi
9460 ;;
9461
9462 uts4*)
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_shlibpath_var=no
9466 ;;
9467
9468 *)
9469 ld_shlibs=no
9470 ;;
9471 esac
9472
9473 if test x$host_vendor = xsni; then
9474 case $host in
9475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9476 export_dynamic_flag_spec='${wl}-Blargedynsym'
9477 ;;
9478 esac
9479 fi
9480 fi
9481
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9483 $as_echo "$ld_shlibs" >&6; }
9484 test "$ld_shlibs" = no && can_build_shared=no
9485
9486 with_gnu_ld=$with_gnu_ld
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 #
9503 # Do we need to explicitly link libc?
9504 #
9505 case "x$archive_cmds_need_lc" in
9506 x|xyes)
9507 # Assume -lc should be added
9508 archive_cmds_need_lc=yes
9509
9510 if test "$enable_shared" = yes && test "$GCC" = yes; then
9511 case $archive_cmds in
9512 *'~'*)
9513 # FIXME: we may have to deal with multi-command sequences.
9514 ;;
9515 '$CC '*)
9516 # Test whether the compiler implicitly links with -lc since on some
9517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9518 # to ld, don't add -lc before -lgcc.
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9521 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 $RM conftest*
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526
9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9528 (eval $ac_compile) 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531 test $ac_status = 0; } 2>conftest.err; then
9532 soname=conftest
9533 lib=conftest
9534 libobjs=conftest.$ac_objext
9535 deplibs=
9536 wl=$lt_prog_compiler_wl
9537 pic_flag=$lt_prog_compiler_pic
9538 compiler_flags=-v
9539 linker_flags=-v
9540 verstring=
9541 output_objdir=.
9542 libname=conftest
9543 lt_save_allow_undefined_flag=$allow_undefined_flag
9544 allow_undefined_flag=
9545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9547 ac_status=$?
9548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9549 test $ac_status = 0; }
9550 then
9551 lt_cv_archive_cmds_need_lc=no
9552 else
9553 lt_cv_archive_cmds_need_lc=yes
9554 fi
9555 allow_undefined_flag=$lt_save_allow_undefined_flag
9556 else
9557 cat conftest.err 1>&5
9558 fi
9559 $RM conftest*
9560
9561 fi
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9563 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9564 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9565 ;;
9566 esac
9567 fi
9568 ;;
9569 esac
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9724
9725 if test "$GCC" = yes; then
9726 case $host_os in
9727 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9728 *) lt_awk_arg="/^libraries:/" ;;
9729 esac
9730 case $host_os in
9731 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9732 *) lt_sed_strip_eq="s,=/,/,g" ;;
9733 esac
9734 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9735 case $lt_search_path_spec in
9736 *\;*)
9737 # if the path contains ";" then we assume it to be the separator
9738 # otherwise default to the standard path separator (i.e. ":") - it is
9739 # assumed that no part of a normal pathname contains ";" but that should
9740 # okay in the real world where ";" in dirpaths is itself problematic.
9741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9742 ;;
9743 *)
9744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9745 ;;
9746 esac
9747 # Ok, now we have the path, separated by spaces, we can step through it
9748 # and add multilib dir if necessary.
9749 lt_tmp_lt_search_path_spec=
9750 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9751 for lt_sys_path in $lt_search_path_spec; do
9752 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9754 else
9755 test -d "$lt_sys_path" && \
9756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9757 fi
9758 done
9759 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9760 BEGIN {RS=" "; FS="/|\n";} {
9761 lt_foo="";
9762 lt_count=0;
9763 for (lt_i = NF; lt_i > 0; lt_i--) {
9764 if ($lt_i != "" && $lt_i != ".") {
9765 if ($lt_i == "..") {
9766 lt_count++;
9767 } else {
9768 if (lt_count == 0) {
9769 lt_foo="/" $lt_i lt_foo;
9770 } else {
9771 lt_count--;
9772 }
9773 }
9774 }
9775 }
9776 if (lt_foo != "") { lt_freq[lt_foo]++; }
9777 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9778 }'`
9779 # AWK program above erroneously prepends '/' to C:/dos/paths
9780 # for these hosts.
9781 case $host_os in
9782 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9783 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9784 esac
9785 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9786 else
9787 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9788 fi
9789 library_names_spec=
9790 libname_spec='lib$name'
9791 soname_spec=
9792 shrext_cmds=".so"
9793 postinstall_cmds=
9794 postuninstall_cmds=
9795 finish_cmds=
9796 finish_eval=
9797 shlibpath_var=
9798 shlibpath_overrides_runpath=unknown
9799 version_type=none
9800 dynamic_linker="$host_os ld.so"
9801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9802 need_lib_prefix=unknown
9803 hardcode_into_libs=no
9804
9805 # when you set need_version to no, make sure it does not cause -set_version
9806 # flags to be left without arguments
9807 need_version=unknown
9808
9809 case $host_os in
9810 aix3*)
9811 version_type=linux # correct to gnu/linux during the next big refactor
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9813 shlibpath_var=LIBPATH
9814
9815 # AIX 3 has no versioning support, so we append a major version to the name.
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 ;;
9818
9819 aix[4-9]*)
9820 version_type=linux # correct to gnu/linux during the next big refactor
9821 need_lib_prefix=no
9822 need_version=no
9823 hardcode_into_libs=yes
9824 if test "$host_cpu" = ia64; then
9825 # AIX 5 supports IA64
9826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 else
9829 # With GCC up to 2.95.x, collect2 would create an import file
9830 # for dependence libraries. The import file would start with
9831 # the line `#! .'. This would cause the generated library to
9832 # depend on `.', always an invalid library. This was fixed in
9833 # development snapshots of GCC prior to 3.0.
9834 case $host_os in
9835 aix4 | aix4.[01] | aix4.[01].*)
9836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9837 echo ' yes '
9838 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9839 :
9840 else
9841 can_build_shared=no
9842 fi
9843 ;;
9844 esac
9845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9846 # soname into executable. Probably we can add versioning support to
9847 # collect2, so additional links can be useful in future.
9848 if test "$aix_use_runtimelinking" = yes; then
9849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9850 # instead of lib<name>.a to let people know that these are not
9851 # typical AIX shared libraries.
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 else
9854 # We preserve .a as extension for shared libraries through AIX4.2
9855 # and later when we are not doing run time linking.
9856 library_names_spec='${libname}${release}.a $libname.a'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 fi
9859 shlibpath_var=LIBPATH
9860 fi
9861 ;;
9862
9863 amigaos*)
9864 case $host_cpu in
9865 powerpc)
9866 # Since July 2007 AmigaOS4 officially supports .so libraries.
9867 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 ;;
9870 m68k)
9871 library_names_spec='$libname.ixlibrary $libname.a'
9872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9873 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9874 ;;
9875 esac
9876 ;;
9877
9878 beos*)
9879 library_names_spec='${libname}${shared_ext}'
9880 dynamic_linker="$host_os ld.so"
9881 shlibpath_var=LIBRARY_PATH
9882 ;;
9883
9884 bsdi[45]*)
9885 version_type=linux # correct to gnu/linux during the next big refactor
9886 need_version=no
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9893 # the default ld.so.conf also contains /usr/contrib/lib and
9894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9895 # libtool to hard-code these into programs
9896 ;;
9897
9898 cygwin* | mingw* | pw32* | cegcc*)
9899 version_type=windows
9900 shrext_cmds=".dll"
9901 need_version=no
9902 need_lib_prefix=no
9903
9904 case $GCC,$cc_basename in
9905 yes,*)
9906 # gcc
9907 library_names_spec='$libname.dll.a'
9908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9909 postinstall_cmds='base_file=`basename \${file}`~
9910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9911 dldir=$destdir/`dirname \$dlpath`~
9912 test -d \$dldir || mkdir -p \$dldir~
9913 $install_prog $dir/$dlname \$dldir/$dlname~
9914 chmod a+x \$dldir/$dlname~
9915 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9916 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9917 fi'
9918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9919 dlpath=$dir/\$dldll~
9920 $RM \$dlpath'
9921 shlibpath_overrides_runpath=yes
9922
9923 case $host_os in
9924 cygwin*)
9925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9927
9928 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9929 ;;
9930 mingw* | cegcc*)
9931 # MinGW DLLs use traditional 'lib' prefix
9932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9933 ;;
9934 pw32*)
9935 # pw32 DLLs use 'pw' prefix rather than 'lib'
9936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9937 ;;
9938 esac
9939 dynamic_linker='Win32 ld.exe'
9940 ;;
9941
9942 *,cl*)
9943 # Native MSVC
9944 libname_spec='$name'
9945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946 library_names_spec='${libname}.dll.lib'
9947
9948 case $build_os in
9949 mingw*)
9950 sys_lib_search_path_spec=
9951 lt_save_ifs=$IFS
9952 IFS=';'
9953 for lt_path in $LIB
9954 do
9955 IFS=$lt_save_ifs
9956 # Let DOS variable expansion print the short 8.3 style file name.
9957 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9958 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9959 done
9960 IFS=$lt_save_ifs
9961 # Convert to MSYS style.
9962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9963 ;;
9964 cygwin*)
9965 # Convert to unix form, then to dos form, then back to unix form
9966 # but this time dos style (no spaces!) so that the unix form looks
9967 # like /cygdrive/c/PROGRA~1:/cygdr...
9968 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9969 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9970 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9971 ;;
9972 *)
9973 sys_lib_search_path_spec="$LIB"
9974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9975 # It is most probably a Windows format PATH.
9976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9977 else
9978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9979 fi
9980 # FIXME: find the short name or the path components, as spaces are
9981 # common. (e.g. "Program Files" -> "PROGRA~1")
9982 ;;
9983 esac
9984
9985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9986 postinstall_cmds='base_file=`basename \${file}`~
9987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9988 dldir=$destdir/`dirname \$dlpath`~
9989 test -d \$dldir || mkdir -p \$dldir~
9990 $install_prog $dir/$dlname \$dldir/$dlname'
9991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9992 dlpath=$dir/\$dldll~
9993 $RM \$dlpath'
9994 shlibpath_overrides_runpath=yes
9995 dynamic_linker='Win32 link.exe'
9996 ;;
9997
9998 *)
9999 # Assume MSVC wrapper
10000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10001 dynamic_linker='Win32 ld.exe'
10002 ;;
10003 esac
10004 # FIXME: first we should search . and the directory the executable is in
10005 shlibpath_var=PATH
10006 ;;
10007
10008 darwin* | rhapsody*)
10009 dynamic_linker="$host_os dyld"
10010 version_type=darwin
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014 soname_spec='${libname}${release}${major}$shared_ext'
10015 shlibpath_overrides_runpath=yes
10016 shlibpath_var=DYLD_LIBRARY_PATH
10017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10018
10019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10021 ;;
10022
10023 dgux*)
10024 version_type=linux # correct to gnu/linux during the next big refactor
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 ;;
10031
10032 freebsd* | dragonfly*)
10033 # DragonFly does not have aout. When/if they implement a new
10034 # versioning mechanism, adjust this.
10035 if test -x /usr/bin/objformat; then
10036 objformat=`/usr/bin/objformat`
10037 else
10038 case $host_os in
10039 freebsd[23].*) objformat=aout ;;
10040 *) objformat=elf ;;
10041 esac
10042 fi
10043 version_type=freebsd-$objformat
10044 case $version_type in
10045 freebsd-elf*)
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10047 need_version=no
10048 need_lib_prefix=no
10049 ;;
10050 freebsd-*)
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10052 need_version=yes
10053 ;;
10054 esac
10055 shlibpath_var=LD_LIBRARY_PATH
10056 case $host_os in
10057 freebsd2.*)
10058 shlibpath_overrides_runpath=yes
10059 ;;
10060 freebsd3.[01]* | freebsdelf3.[01]*)
10061 shlibpath_overrides_runpath=yes
10062 hardcode_into_libs=yes
10063 ;;
10064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10066 shlibpath_overrides_runpath=no
10067 hardcode_into_libs=yes
10068 ;;
10069 *) # from 4.6 on, and DragonFly
10070 shlibpath_overrides_runpath=yes
10071 hardcode_into_libs=yes
10072 ;;
10073 esac
10074 ;;
10075
10076 haiku*)
10077 version_type=linux # correct to gnu/linux during the next big refactor
10078 need_lib_prefix=no
10079 need_version=no
10080 dynamic_linker="$host_os runtime_loader"
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 shlibpath_var=LIBRARY_PATH
10084 shlibpath_overrides_runpath=yes
10085 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10086 hardcode_into_libs=yes
10087 ;;
10088
10089 hpux9* | hpux10* | hpux11*)
10090 # Give a soname corresponding to the major version so that dld.sl refuses to
10091 # link against other versions.
10092 version_type=sunos
10093 need_lib_prefix=no
10094 need_version=no
10095 case $host_cpu in
10096 ia64*)
10097 shrext_cmds='.so'
10098 hardcode_into_libs=yes
10099 dynamic_linker="$host_os dld.so"
10100 shlibpath_var=LD_LIBRARY_PATH
10101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 if test "X$HPUX_IA64_MODE" = X32; then
10105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106 else
10107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10108 fi
10109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10110 ;;
10111 hppa*64*)
10112 shrext_cmds='.sl'
10113 hardcode_into_libs=yes
10114 dynamic_linker="$host_os dld.sl"
10115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10121 ;;
10122 *)
10123 shrext_cmds='.sl'
10124 dynamic_linker="$host_os dld.sl"
10125 shlibpath_var=SHLIB_PATH
10126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 ;;
10130 esac
10131 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10132 postinstall_cmds='chmod 555 $lib'
10133 # or fails outright, so override atomically:
10134 install_override_mode=555
10135 ;;
10136
10137 interix[3-9]*)
10138 version_type=linux # correct to gnu/linux during the next big refactor
10139 need_lib_prefix=no
10140 need_version=no
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=no
10146 hardcode_into_libs=yes
10147 ;;
10148
10149 irix5* | irix6* | nonstopux*)
10150 case $host_os in
10151 nonstopux*) version_type=nonstopux ;;
10152 *)
10153 if test "$lt_cv_prog_gnu_ld" = yes; then
10154 version_type=linux # correct to gnu/linux during the next big refactor
10155 else
10156 version_type=irix
10157 fi ;;
10158 esac
10159 need_lib_prefix=no
10160 need_version=no
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10163 case $host_os in
10164 irix5* | nonstopux*)
10165 libsuff= shlibsuff=
10166 ;;
10167 *)
10168 case $LD in # libtool.m4 will add one of these switches to LD
10169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10170 libsuff= shlibsuff= libmagic=32-bit;;
10171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10172 libsuff=32 shlibsuff=N32 libmagic=N32;;
10173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10174 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10175 *) libsuff= shlibsuff= libmagic=never-match;;
10176 esac
10177 ;;
10178 esac
10179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10180 shlibpath_overrides_runpath=no
10181 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10182 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10183 hardcode_into_libs=yes
10184 ;;
10185
10186 # No shared lib support for Linux oldld, aout, or coff.
10187 linux*oldld* | linux*aout* | linux*coff*)
10188 dynamic_linker=no
10189 ;;
10190
10191 # This must be glibc/ELF.
10192 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10193 version_type=linux # correct to gnu/linux during the next big refactor
10194 need_lib_prefix=no
10195 need_version=no
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=no
10201
10202 # Some binutils ld are patched to set DT_RUNPATH
10203 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 lt_cv_shlibpath_overrides_runpath=no
10207 save_LDFLAGS=$LDFLAGS
10208 save_libdir=$libdir
10209 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10210 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10213
10214 int
10215 main ()
10216 {
10217
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 if ac_fn_c_try_link "$LINENO"; then :
10223 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10224 lt_cv_shlibpath_overrides_runpath=yes
10225 fi
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LDFLAGS=$save_LDFLAGS
10230 libdir=$save_libdir
10231
10232 fi
10233
10234 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10235
10236 # This implies no fast_install, which is unacceptable.
10237 # Some rework will be needed to allow for fast_install
10238 # before this can be enabled.
10239 hardcode_into_libs=yes
10240
10241 # Append ld.so.conf contents to the search path
10242 if test -f /etc/ld.so.conf; then
10243 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;s/"//g;/^$/d' | tr '\n' ' '`
10244 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10245 fi
10246
10247 # We used to test for /lib/ld.so.1 and disable shared libraries on
10248 # powerpc, because MkLinux only supported shared libraries with the
10249 # GNU dynamic linker. Since this was broken with cross compilers,
10250 # most powerpc-linux boxes support dynamic linking these days and
10251 # people can always --disable-shared, the test was removed, and we
10252 # assume the GNU/Linux dynamic linker is in use.
10253 dynamic_linker='GNU/Linux ld.so'
10254 ;;
10255
10256 netbsdelf*-gnu)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=no
10264 hardcode_into_libs=yes
10265 dynamic_linker='NetBSD ld.elf_so'
10266 ;;
10267
10268 netbsd*)
10269 version_type=sunos
10270 need_lib_prefix=no
10271 need_version=no
10272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10275 dynamic_linker='NetBSD (a.out) ld.so'
10276 else
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 dynamic_linker='NetBSD ld.elf_so'
10280 fi
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10283 hardcode_into_libs=yes
10284 ;;
10285
10286 newsos6)
10287 version_type=linux # correct to gnu/linux during the next big refactor
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 ;;
10292
10293 *nto* | *qnx*)
10294 version_type=qnx
10295 need_lib_prefix=no
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
10301 hardcode_into_libs=yes
10302 dynamic_linker='ldqnx.so'
10303 ;;
10304
10305 openbsd*)
10306 version_type=sunos
10307 sys_lib_dlsearch_path_spec="/usr/lib"
10308 need_lib_prefix=no
10309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10310 case $host_os in
10311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10312 *) need_version=no ;;
10313 esac
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10318 case $host_os in
10319 openbsd2.[89] | openbsd2.[89].*)
10320 shlibpath_overrides_runpath=no
10321 ;;
10322 *)
10323 shlibpath_overrides_runpath=yes
10324 ;;
10325 esac
10326 else
10327 shlibpath_overrides_runpath=yes
10328 fi
10329 ;;
10330
10331 os2*)
10332 libname_spec='$name'
10333 shrext_cmds=".dll"
10334 need_lib_prefix=no
10335 library_names_spec='$libname${shared_ext} $libname.a'
10336 dynamic_linker='OS/2 ld.exe'
10337 shlibpath_var=LIBPATH
10338 ;;
10339
10340 osf3* | osf4* | osf5*)
10341 version_type=osf
10342 need_lib_prefix=no
10343 need_version=no
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349 ;;
10350
10351 rdos*)
10352 dynamic_linker=no
10353 ;;
10354
10355 solaris*)
10356 version_type=linux # correct to gnu/linux during the next big refactor
10357 need_lib_prefix=no
10358 need_version=no
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 # ldd complains unless libraries are executable
10365 postinstall_cmds='chmod +x $lib'
10366 ;;
10367
10368 sunos4*)
10369 version_type=sunos
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 if test "$with_gnu_ld" = yes; then
10375 need_lib_prefix=no
10376 fi
10377 need_version=yes
10378 ;;
10379
10380 sysv4 | sysv4.3*)
10381 version_type=linux # correct to gnu/linux during the next big refactor
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 case $host_vendor in
10386 sni)
10387 shlibpath_overrides_runpath=no
10388 need_lib_prefix=no
10389 runpath_var=LD_RUN_PATH
10390 ;;
10391 siemens)
10392 need_lib_prefix=no
10393 ;;
10394 motorola)
10395 need_lib_prefix=no
10396 need_version=no
10397 shlibpath_overrides_runpath=no
10398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10399 ;;
10400 esac
10401 ;;
10402
10403 sysv4*MP*)
10404 if test -d /usr/nec ;then
10405 version_type=linux # correct to gnu/linux during the next big refactor
10406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10407 soname_spec='$libname${shared_ext}.$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 fi
10410 ;;
10411
10412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10413 version_type=freebsd-elf
10414 need_lib_prefix=no
10415 need_version=no
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 shlibpath_overrides_runpath=yes
10420 hardcode_into_libs=yes
10421 if test "$with_gnu_ld" = yes; then
10422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10423 else
10424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10425 case $host_os in
10426 sco3.2v5*)
10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10428 ;;
10429 esac
10430 fi
10431 sys_lib_dlsearch_path_spec='/usr/lib'
10432 ;;
10433
10434 tpf*)
10435 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10436 version_type=linux # correct to gnu/linux during the next big refactor
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=no
10442 hardcode_into_libs=yes
10443 ;;
10444
10445 uts4*)
10446 version_type=linux # correct to gnu/linux during the next big refactor
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 ;;
10451
10452 *)
10453 dynamic_linker=no
10454 ;;
10455 esac
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10457 $as_echo "$dynamic_linker" >&6; }
10458 test "$dynamic_linker" = no && can_build_shared=no
10459
10460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10461 if test "$GCC" = yes; then
10462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10463 fi
10464
10465 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10466 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10467 fi
10468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10469 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10470 fi
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10564 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10565 hardcode_action=
10566 if test -n "$hardcode_libdir_flag_spec" ||
10567 test -n "$runpath_var" ||
10568 test "X$hardcode_automatic" = "Xyes" ; then
10569
10570 # We can hardcode non-existent directories.
10571 if test "$hardcode_direct" != no &&
10572 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10573 # have to relink, otherwise we might link with an installed library
10574 # when we should be linking with a yet-to-be-installed one
10575 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10576 test "$hardcode_minus_L" != no; then
10577 # Linking always hardcodes the temporary library directory.
10578 hardcode_action=relink
10579 else
10580 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10581 hardcode_action=immediate
10582 fi
10583 else
10584 # We cannot hardcode anything, or else we can only hardcode existing
10585 # directories.
10586 hardcode_action=unsupported
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10589 $as_echo "$hardcode_action" >&6; }
10590
10591 if test "$hardcode_action" = relink ||
10592 test "$inherit_rpath" = yes; then
10593 # Fast installation is not supported
10594 enable_fast_install=no
10595 elif test "$shlibpath_overrides_runpath" = yes ||
10596 test "$enable_shared" = no; then
10597 # Fast installation is not necessary
10598 enable_fast_install=needless
10599 fi
10600
10601
10602
10603
10604
10605
10606 if test "x$enable_dlopen" != xyes; then
10607 enable_dlopen=unknown
10608 enable_dlopen_self=unknown
10609 enable_dlopen_self_static=unknown
10610 else
10611 lt_cv_dlopen=no
10612 lt_cv_dlopen_libs=
10613
10614 case $host_os in
10615 beos*)
10616 lt_cv_dlopen="load_add_on"
10617 lt_cv_dlopen_libs=
10618 lt_cv_dlopen_self=yes
10619 ;;
10620
10621 mingw* | pw32* | cegcc*)
10622 lt_cv_dlopen="LoadLibrary"
10623 lt_cv_dlopen_libs=
10624 ;;
10625
10626 cygwin*)
10627 lt_cv_dlopen="dlopen"
10628 lt_cv_dlopen_libs=
10629 ;;
10630
10631 darwin*)
10632 # if libdl is installed we need to link against it
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10635 if ${ac_cv_lib_dl_dlopen+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-ldl $LIBS"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642
10643 /* Override any GCC internal prototype to avoid an error.
10644 Use char because int might match the return type of a GCC
10645 builtin and then its argument prototype would still apply. */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char dlopen ();
10650 int
10651 main ()
10652 {
10653 return dlopen ();
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 ac_cv_lib_dl_dlopen=yes
10660 else
10661 ac_cv_lib_dl_dlopen=no
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10669 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10671 else
10672
10673 lt_cv_dlopen="dyld"
10674 lt_cv_dlopen_libs=
10675 lt_cv_dlopen_self=yes
10676
10677 fi
10678
10679 ;;
10680
10681 *)
10682 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10683 if test "x$ac_cv_func_shl_load" = xyes; then :
10684 lt_cv_dlopen="shl_load"
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10687 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10688 if ${ac_cv_lib_dld_shl_load+:} false; then :
10689 $as_echo_n "(cached) " >&6
10690 else
10691 ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldld $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char shl_load ();
10703 int
10704 main ()
10705 {
10706 return shl_load ();
10707 ;
10708 return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_lib_dld_shl_load=yes
10713 else
10714 ac_cv_lib_dld_shl_load=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10721 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10722 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10723 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10724 else
10725 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10726 if test "x$ac_cv_func_dlopen" = xyes; then :
10727 lt_cv_dlopen="dlopen"
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10730 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10731 if ${ac_cv_lib_dl_dlopen+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-ldl $LIBS"
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char dlopen ();
10746 int
10747 main ()
10748 {
10749 return dlopen ();
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755 ac_cv_lib_dl_dlopen=yes
10756 else
10757 ac_cv_lib_dl_dlopen=no
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10764 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10765 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10769 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10770 if ${ac_cv_lib_svld_dlopen+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-lsvld $LIBS"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char dlopen ();
10785 int
10786 main ()
10787 {
10788 return dlopen ();
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 ac_cv_lib_svld_dlopen=yes
10795 else
10796 ac_cv_lib_svld_dlopen=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10803 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10804 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10808 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10809 if ${ac_cv_lib_dld_dld_link+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldld $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char dld_link ();
10824 int
10825 main ()
10826 {
10827 return dld_link ();
10828 ;
10829 return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_dld_dld_link=yes
10834 else
10835 ac_cv_lib_dld_dld_link=no
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10842 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10843 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10845 fi
10846
10847
10848 fi
10849
10850
10851 fi
10852
10853
10854 fi
10855
10856
10857 fi
10858
10859
10860 fi
10861
10862 ;;
10863 esac
10864
10865 if test "x$lt_cv_dlopen" != xno; then
10866 enable_dlopen=yes
10867 else
10868 enable_dlopen=no
10869 fi
10870
10871 case $lt_cv_dlopen in
10872 dlopen)
10873 save_CPPFLAGS="$CPPFLAGS"
10874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10875
10876 save_LDFLAGS="$LDFLAGS"
10877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10878
10879 save_LIBS="$LIBS"
10880 LIBS="$lt_cv_dlopen_libs $LIBS"
10881
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10883 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10884 if ${lt_cv_dlopen_self+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 if test "$cross_compiling" = yes; then :
10888 lt_cv_dlopen_self=cross
10889 else
10890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10891 lt_status=$lt_dlunknown
10892 cat > conftest.$ac_ext <<_LT_EOF
10893 #line $LINENO "configure"
10894 #include "confdefs.h"
10895
10896 #if HAVE_DLFCN_H
10897 #include <dlfcn.h>
10898 #endif
10899
10900 #include <stdio.h>
10901
10902 #ifdef RTLD_GLOBAL
10903 # define LT_DLGLOBAL RTLD_GLOBAL
10904 #else
10905 # ifdef DL_GLOBAL
10906 # define LT_DLGLOBAL DL_GLOBAL
10907 # else
10908 # define LT_DLGLOBAL 0
10909 # endif
10910 #endif
10911
10912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10913 find out it does not work in some platform. */
10914 #ifndef LT_DLLAZY_OR_NOW
10915 # ifdef RTLD_LAZY
10916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10917 # else
10918 # ifdef DL_LAZY
10919 # define LT_DLLAZY_OR_NOW DL_LAZY
10920 # else
10921 # ifdef RTLD_NOW
10922 # define LT_DLLAZY_OR_NOW RTLD_NOW
10923 # else
10924 # ifdef DL_NOW
10925 # define LT_DLLAZY_OR_NOW DL_NOW
10926 # else
10927 # define LT_DLLAZY_OR_NOW 0
10928 # endif
10929 # endif
10930 # endif
10931 # endif
10932 #endif
10933
10934 /* When -fvisbility=hidden is used, assume the code has been annotated
10935 correspondingly for the symbols needed. */
10936 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10937 int fnord () __attribute__((visibility("default")));
10938 #endif
10939
10940 int fnord () { return 42; }
10941 int main ()
10942 {
10943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10944 int status = $lt_dlunknown;
10945
10946 if (self)
10947 {
10948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10949 else
10950 {
10951 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10952 else puts (dlerror ());
10953 }
10954 /* dlclose (self); */
10955 }
10956 else
10957 puts (dlerror ());
10958
10959 return status;
10960 }
10961 _LT_EOF
10962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10963 (eval $ac_link) 2>&5
10964 ac_status=$?
10965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10967 (./conftest; exit; ) >&5 2>/dev/null
10968 lt_status=$?
10969 case x$lt_status in
10970 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10971 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10972 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10973 esac
10974 else :
10975 # compilation failed
10976 lt_cv_dlopen_self=no
10977 fi
10978 fi
10979 rm -fr conftest*
10980
10981
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10984 $as_echo "$lt_cv_dlopen_self" >&6; }
10985
10986 if test "x$lt_cv_dlopen_self" = xyes; then
10987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10989 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10990 if ${lt_cv_dlopen_self_static+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 if test "$cross_compiling" = yes; then :
10994 lt_cv_dlopen_self_static=cross
10995 else
10996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10997 lt_status=$lt_dlunknown
10998 cat > conftest.$ac_ext <<_LT_EOF
10999 #line $LINENO "configure"
11000 #include "confdefs.h"
11001
11002 #if HAVE_DLFCN_H
11003 #include <dlfcn.h>
11004 #endif
11005
11006 #include <stdio.h>
11007
11008 #ifdef RTLD_GLOBAL
11009 # define LT_DLGLOBAL RTLD_GLOBAL
11010 #else
11011 # ifdef DL_GLOBAL
11012 # define LT_DLGLOBAL DL_GLOBAL
11013 # else
11014 # define LT_DLGLOBAL 0
11015 # endif
11016 #endif
11017
11018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11019 find out it does not work in some platform. */
11020 #ifndef LT_DLLAZY_OR_NOW
11021 # ifdef RTLD_LAZY
11022 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11023 # else
11024 # ifdef DL_LAZY
11025 # define LT_DLLAZY_OR_NOW DL_LAZY
11026 # else
11027 # ifdef RTLD_NOW
11028 # define LT_DLLAZY_OR_NOW RTLD_NOW
11029 # else
11030 # ifdef DL_NOW
11031 # define LT_DLLAZY_OR_NOW DL_NOW
11032 # else
11033 # define LT_DLLAZY_OR_NOW 0
11034 # endif
11035 # endif
11036 # endif
11037 # endif
11038 #endif
11039
11040 /* When -fvisbility=hidden is used, assume the code has been annotated
11041 correspondingly for the symbols needed. */
11042 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11043 int fnord () __attribute__((visibility("default")));
11044 #endif
11045
11046 int fnord () { return 42; }
11047 int main ()
11048 {
11049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11050 int status = $lt_dlunknown;
11051
11052 if (self)
11053 {
11054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11055 else
11056 {
11057 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11058 else puts (dlerror ());
11059 }
11060 /* dlclose (self); */
11061 }
11062 else
11063 puts (dlerror ());
11064
11065 return status;
11066 }
11067 _LT_EOF
11068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11069 (eval $ac_link) 2>&5
11070 ac_status=$?
11071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11073 (./conftest; exit; ) >&5 2>/dev/null
11074 lt_status=$?
11075 case x$lt_status in
11076 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11077 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11078 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11079 esac
11080 else :
11081 # compilation failed
11082 lt_cv_dlopen_self_static=no
11083 fi
11084 fi
11085 rm -fr conftest*
11086
11087
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11090 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11091 fi
11092
11093 CPPFLAGS="$save_CPPFLAGS"
11094 LDFLAGS="$save_LDFLAGS"
11095 LIBS="$save_LIBS"
11096 ;;
11097 esac
11098
11099 case $lt_cv_dlopen_self in
11100 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11101 *) enable_dlopen_self=unknown ;;
11102 esac
11103
11104 case $lt_cv_dlopen_self_static in
11105 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11106 *) enable_dlopen_self_static=unknown ;;
11107 esac
11108 fi
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 striplib=
11127 old_striplib=
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11129 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11130 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11134 $as_echo "yes" >&6; }
11135 else
11136 # FIXME - insert some real tests, host_os isn't really good enough
11137 case $host_os in
11138 darwin*)
11139 if test -n "$STRIP" ; then
11140 striplib="$STRIP -x"
11141 old_striplib="$STRIP -S"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148 ;;
11149 *)
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 ;;
11153 esac
11154 fi
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167 # Report which library types will actually be built
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11169 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11171 $as_echo "$can_build_shared" >&6; }
11172
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11174 $as_echo_n "checking whether to build shared libraries... " >&6; }
11175 test "$can_build_shared" = "no" && enable_shared=no
11176
11177 # On AIX, shared libraries and static libraries use the same namespace, and
11178 # are all built from PIC.
11179 case $host_os in
11180 aix3*)
11181 test "$enable_shared" = yes && enable_static=no
11182 if test -n "$RANLIB"; then
11183 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11184 postinstall_cmds='$RANLIB $lib'
11185 fi
11186 ;;
11187
11188 aix[4-9]*)
11189 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11190 test "$enable_shared" = yes && enable_static=no
11191 fi
11192 ;;
11193 esac
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11195 $as_echo "$enable_shared" >&6; }
11196
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11198 $as_echo_n "checking whether to build static libraries... " >&6; }
11199 # Make sure either enable_shared or enable_static is yes.
11200 test "$enable_shared" = yes || enable_static=yes
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11202 $as_echo "$enable_static" >&6; }
11203
11204
11205
11206
11207 fi
11208 ac_ext=c
11209 ac_cpp='$CPP $CPPFLAGS'
11210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11213
11214 CC="$lt_save_CC"
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230 ac_config_commands="$ac_config_commands libtool"
11231
11232
11233
11234
11235 # Only expand once:
11236
11237
11238 ac_ext=c
11239 ac_cpp='$CPP $CPPFLAGS'
11240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11243
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
11245 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
11246 if ${ac_cv_cflags_warn_all+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 ac_cv_cflags_warn_all="no, unknown"
11250 ac_save_CFLAGS="$CFLAGS"
11251 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
11252 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11255
11256 int
11257 main ()
11258 {
11259
11260 ;
11261 return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_compile "$LINENO"; then :
11265 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
11266 fi
11267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11268 done
11269 CFLAGS="$ac_save_CFLAGS"
11270
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
11273 $as_echo "$ac_cv_cflags_warn_all" >&6; }
11274 case ".$ac_cv_cflags_warn_all" in
11275 .ok|.ok,*) ;;
11276 .|.no|.no,*) ;;
11277 *) if ${CFLAGS+:} false; then :
11278 case " $CFLAGS " in
11279 *" $ac_cv_cflags_warn_all "*)
11280 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
11281 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
11282 ac_status=$?
11283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11284 test $ac_status = 0; }
11285 ;;
11286 *)
11287 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
11288 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
11289 ac_status=$?
11290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291 test $ac_status = 0; }
11292 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
11293 ;;
11294 esac
11295 else
11296 CFLAGS="$ac_cv_cflags_warn_all"
11297 fi
11298 ;;
11299 esac
11300
11301 ac_ext=c
11302 ac_cpp='$CPP $CPPFLAGS'
11303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11306
11307
11308
11309 set -- $(echo $PACKAGE_VERSION |
11310 sed 's:^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$:\1 \2 \3:'
11311 )
11312 LIBTOOL_VERSION_INFO="$(expr $1 + $2):$3:$2"
11313
11314
11315
11316
11317
11318 # Check whether --with-lisp-system was given.
11319 if test "${with_lisp_system+set}" = set; then :
11320 withval=$with_lisp_system;
11321 else
11322 with_lisp_system="sbcl clisp"
11323 fi
11324
11325
11326 for ac_prog in cl-launch
11327 do
11328 # Extract the first word of "$ac_prog", so it can be a program name with args.
11329 set dummy $ac_prog; ac_word=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if ${ac_cv_prog_CL_LAUNCH+:} false; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 if test -n "$CL_LAUNCH"; then
11336 ac_cv_prog_CL_LAUNCH="$CL_LAUNCH" # Let the user override the test.
11337 else
11338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11340 do
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11345 ac_cv_prog_CL_LAUNCH="$ac_prog"
11346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 break 2
11348 fi
11349 done
11350 done
11351 IFS=$as_save_IFS
11352
11353 fi
11354 fi
11355 CL_LAUNCH=$ac_cv_prog_CL_LAUNCH
11356 if test -n "$CL_LAUNCH"; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CL_LAUNCH" >&5
11358 $as_echo "$CL_LAUNCH" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362 fi
11363
11364
11365 test -n "$CL_LAUNCH" && break
11366 done
11367 test -n "$CL_LAUNCH" || CL_LAUNCH="not-found"
11368
11369 case "$CL_LAUNCH" in
11370 not-found) as_fn_error $? "\`cl-launch' not found" "$LINENO" 5 ;;
11371 esac
11372
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for best choice of Lisp system" >&5
11374 $as_echo_n "checking for best choice of Lisp system... " >&6; }
11375 if ! LISPSYS=$($CL_LAUNCH -l "$with_lisp_system" \
11376 -ip '(string-downcase (lisp-implementation-type))'); then
11377 as_fn_error $? "cl-launch didn't like any Lisp system" "$LINENO" 5
11378 fi
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LISPSYS" >&5
11381 $as_echo "$LISPSYS" >&6; }
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FASL file extension" >&5
11384 $as_echo_n "checking FASL file extension... " >&6; }
11385 fasl=$($CL_LAUNCH -l $LISPSYS -ip \
11386 '(pathname-type (compile-file-pathname "foo.lisp"))')
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$fasl" >&5
11389 $as_echo ".$fasl" >&6; }
11390
11391
11392 # Check whether --with-lisp-source-dir was given.
11393 if test "${with_lisp_source_dir+set}" = set; then :
11394 withval=$with_lisp_source_dir;
11395 else
11396 with_lisp_source_dir='${datadir}/common-lisp/source'
11397 fi
11398
11399
11400 # Check whether --with-lisp-system-dir was given.
11401 if test "${with_lisp_system_dir+set}" = set; then :
11402 withval=$with_lisp_system_dir;
11403 else
11404 with_lisp_system_dir='${datadir}/common-lisp/systems'
11405 fi
11406
11407 lispsrcdir=$with_lisp_source_dir
11408
11409 lispsysdir=$with_lisp_system_dir
11410
11411
11412
11413 ac_config_files="$ac_config_files Makefile src/Makefile lib/Makefile test/Makefile"
11414
11415 cat >confcache <<\_ACEOF
11416 # This file is a shell script that caches the results of configure
11417 # tests run on this system so they can be shared between configure
11418 # scripts and configure runs, see configure's option --config-cache.
11419 # It is not useful on other systems. If it contains results you don't
11420 # want to keep, you may remove or edit it.
11421 #
11422 # config.status only pays attention to the cache file if you give it
11423 # the --recheck option to rerun configure.
11424 #
11425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11427 # following values.
11428
11429 _ACEOF
11430
11431 # The following way of writing the cache mishandles newlines in values,
11432 # but we know of no workaround that is simple, portable, and efficient.
11433 # So, we kill variables containing newlines.
11434 # Ultrix sh set writes to stderr and can't be redirected directly,
11435 # and sets the high bit in the cache file unless we assign to the vars.
11436 (
11437 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11438 eval ac_val=\$$ac_var
11439 case $ac_val in #(
11440 *${as_nl}*)
11441 case $ac_var in #(
11442 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11443 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11444 esac
11445 case $ac_var in #(
11446 _ | IFS | as_nl) ;; #(
11447 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11448 *) { eval $ac_var=; unset $ac_var;} ;;
11449 esac ;;
11450 esac
11451 done
11452
11453 (set) 2>&1 |
11454 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11455 *${as_nl}ac_space=\ *)
11456 # `set' does not quote correctly, so add quotes: double-quote
11457 # substitution turns \\\\ into \\, and sed turns \\ into \.
11458 sed -n \
11459 "s/'/'\\\\''/g;
11460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11461 ;; #(
11462 *)
11463 # `set' quotes correctly as required by POSIX, so do not add quotes.
11464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11465 ;;
11466 esac |
11467 sort
11468 ) |
11469 sed '
11470 /^ac_cv_env_/b end
11471 t clear
11472 :clear
11473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11474 t end
11475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11476 :end' >>confcache
11477 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11478 if test -w "$cache_file"; then
11479 if test "x$cache_file" != "x/dev/null"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11481 $as_echo "$as_me: updating cache $cache_file" >&6;}
11482 if test ! -f "$cache_file" || test -h "$cache_file"; then
11483 cat confcache >"$cache_file"
11484 else
11485 case $cache_file in #(
11486 */* | ?:*)
11487 mv -f confcache "$cache_file"$$ &&
11488 mv -f "$cache_file"$$ "$cache_file" ;; #(
11489 *)
11490 mv -f confcache "$cache_file" ;;
11491 esac
11492 fi
11493 fi
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11496 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11497 fi
11498 fi
11499 rm -f confcache
11500
11501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11502 # Let make expand exec_prefix.
11503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11504
11505 # Transform confdefs.h into DEFS.
11506 # Protect against shell expansion while executing Makefile rules.
11507 # Protect against Makefile macro expansion.
11508 #
11509 # If the first sed substitution is executed (which looks for macros that
11510 # take arguments), then branch to the quote section. Otherwise,
11511 # look for a macro that doesn't take arguments.
11512 ac_script='
11513 :mline
11514 /\\$/{
11515 N
11516 s,\\\n,,
11517 b mline
11518 }
11519 t clear
11520 :clear
11521 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11522 t quote
11523 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11524 t quote
11525 b any
11526 :quote
11527 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11528 s/\[/\\&/g
11529 s/\]/\\&/g
11530 s/\$/$$/g
11531 H
11532 :any
11533 ${
11534 g
11535 s/^\n//
11536 s/\n/ /g
11537 p
11538 }
11539 '
11540 DEFS=`sed -n "$ac_script" confdefs.h`
11541
11542
11543 ac_libobjs=
11544 ac_ltlibobjs=
11545 U=
11546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11547 # 1. Remove the extension, and $U if already installed.
11548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11549 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11551 # will be set to the directory where LIBOBJS objects are built.
11552 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11553 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11554 done
11555 LIBOBJS=$ac_libobjs
11556
11557 LTLIBOBJS=$ac_ltlibobjs
11558
11559
11560 if test -n "$EXEEXT"; then
11561 am__EXEEXT_TRUE=
11562 am__EXEEXT_FALSE='#'
11563 else
11564 am__EXEEXT_TRUE='#'
11565 am__EXEEXT_FALSE=
11566 fi
11567
11568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11569 as_fn_error $? "conditional \"AMDEP\" was never defined.
11570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11571 fi
11572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11573 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11575 fi
11576
11577 : "${CONFIG_STATUS=./config.status}"
11578 ac_write_fail=0
11579 ac_clean_files_save=$ac_clean_files
11580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11582 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11583 as_write_fail=0
11584 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11585 #! $SHELL
11586 # Generated by $as_me.
11587 # Run this file to recreate the current configuration.
11588 # Compiler output produced by configure, useful for debugging
11589 # configure, is in config.log if it exists.
11590
11591 debug=false
11592 ac_cs_recheck=false
11593 ac_cs_silent=false
11594
11595 SHELL=\${CONFIG_SHELL-$SHELL}
11596 export SHELL
11597 _ASEOF
11598 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11599 ## -------------------- ##
11600 ## M4sh Initialization. ##
11601 ## -------------------- ##
11602
11603 # Be more Bourne compatible
11604 DUALCASE=1; export DUALCASE # for MKS sh
11605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11606 emulate sh
11607 NULLCMD=:
11608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11609 # is contrary to our usage. Disable this feature.
11610 alias -g '${1+"$@"}'='"$@"'
11611 setopt NO_GLOB_SUBST
11612 else
11613 case `(set -o) 2>/dev/null` in #(
11614 *posix*) :
11615 set -o posix ;; #(
11616 *) :
11617 ;;
11618 esac
11619 fi
11620
11621
11622 as_nl='
11623 '
11624 export as_nl
11625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11629 # Prefer a ksh shell builtin over an external printf program on Solaris,
11630 # but without wasting forks for bash or zsh.
11631 if test -z "$BASH_VERSION$ZSH_VERSION" \
11632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11633 as_echo='print -r --'
11634 as_echo_n='print -rn --'
11635 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11636 as_echo='printf %s\n'
11637 as_echo_n='printf %s'
11638 else
11639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11641 as_echo_n='/usr/ucb/echo -n'
11642 else
11643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11644 as_echo_n_body='eval
11645 arg=$1;
11646 case $arg in #(
11647 *"$as_nl"*)
11648 expr "X$arg" : "X\\(.*\\)$as_nl";
11649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11650 esac;
11651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11652 '
11653 export as_echo_n_body
11654 as_echo_n='sh -c $as_echo_n_body as_echo'
11655 fi
11656 export as_echo_body
11657 as_echo='sh -c $as_echo_body as_echo'
11658 fi
11659
11660 # The user is always right.
11661 if test "${PATH_SEPARATOR+set}" != set; then
11662 PATH_SEPARATOR=:
11663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11665 PATH_SEPARATOR=';'
11666 }
11667 fi
11668
11669
11670 # IFS
11671 # We need space, tab and new line, in precisely that order. Quoting is
11672 # there to prevent editors from complaining about space-tab.
11673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11674 # splitting by setting IFS to empty value.)
11675 IFS=" "" $as_nl"
11676
11677 # Find who we are. Look in the path if we contain no directory separator.
11678 as_myself=
11679 case $0 in #((
11680 *[\\/]* ) as_myself=$0 ;;
11681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11687 done
11688 IFS=$as_save_IFS
11689
11690 ;;
11691 esac
11692 # We did not find ourselves, most probably we were run as `sh COMMAND'
11693 # in which case we are not to be found in the path.
11694 if test "x$as_myself" = x; then
11695 as_myself=$0
11696 fi
11697 if test ! -f "$as_myself"; then
11698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11699 exit 1
11700 fi
11701
11702 # Unset variables that we do not need and which cause bugs (e.g. in
11703 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11704 # suppresses any "Segmentation fault" message there. '((' could
11705 # trigger a bug in pdksh 5.2.14.
11706 for as_var in BASH_ENV ENV MAIL MAILPATH
11707 do eval test x\${$as_var+set} = xset \
11708 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11709 done
11710 PS1='$ '
11711 PS2='> '
11712 PS4='+ '
11713
11714 # NLS nuisances.
11715 LC_ALL=C
11716 export LC_ALL
11717 LANGUAGE=C
11718 export LANGUAGE
11719
11720 # CDPATH.
11721 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11722
11723
11724 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11725 # ----------------------------------------
11726 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11727 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11728 # script with STATUS, using 1 if that was 0.
11729 as_fn_error ()
11730 {
11731 as_status=$1; test $as_status -eq 0 && as_status=1
11732 if test "$4"; then
11733 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11734 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11735 fi
11736 $as_echo "$as_me: error: $2" >&2
11737 as_fn_exit $as_status
11738 } # as_fn_error
11739
11740
11741 # as_fn_set_status STATUS
11742 # -----------------------
11743 # Set $? to STATUS, without forking.
11744 as_fn_set_status ()
11745 {
11746 return $1
11747 } # as_fn_set_status
11748
11749 # as_fn_exit STATUS
11750 # -----------------
11751 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11752 as_fn_exit ()
11753 {
11754 set +e
11755 as_fn_set_status $1
11756 exit $1
11757 } # as_fn_exit
11758
11759 # as_fn_unset VAR
11760 # ---------------
11761 # Portably unset VAR.
11762 as_fn_unset ()
11763 {
11764 { eval $1=; unset $1;}
11765 }
11766 as_unset=as_fn_unset
11767 # as_fn_append VAR VALUE
11768 # ----------------------
11769 # Append the text in VALUE to the end of the definition contained in VAR. Take
11770 # advantage of any shell optimizations that allow amortized linear growth over
11771 # repeated appends, instead of the typical quadratic growth present in naive
11772 # implementations.
11773 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11774 eval 'as_fn_append ()
11775 {
11776 eval $1+=\$2
11777 }'
11778 else
11779 as_fn_append ()
11780 {
11781 eval $1=\$$1\$2
11782 }
11783 fi # as_fn_append
11784
11785 # as_fn_arith ARG...
11786 # ------------------
11787 # Perform arithmetic evaluation on the ARGs, and store the result in the
11788 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11789 # must be portable across $(()) and expr.
11790 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11791 eval 'as_fn_arith ()
11792 {
11793 as_val=$(( $* ))
11794 }'
11795 else
11796 as_fn_arith ()
11797 {
11798 as_val=`expr "$@" || test $? -eq 1`
11799 }
11800 fi # as_fn_arith
11801
11802
11803 if expr a : '\(a\)' >/dev/null 2>&1 &&
11804 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11805 as_expr=expr
11806 else
11807 as_expr=false
11808 fi
11809
11810 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11811 as_basename=basename
11812 else
11813 as_basename=false
11814 fi
11815
11816 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11817 as_dirname=dirname
11818 else
11819 as_dirname=false
11820 fi
11821
11822 as_me=`$as_basename -- "$0" ||
11823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11824 X"$0" : 'X\(//\)$' \| \
11825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11826 $as_echo X/"$0" |
11827 sed '/^.*\/\([^/][^/]*\)\/*$/{
11828 s//\1/
11829 q
11830 }
11831 /^X\/\(\/\/\)$/{
11832 s//\1/
11833 q
11834 }
11835 /^X\/\(\/\).*/{
11836 s//\1/
11837 q
11838 }
11839 s/.*/./; q'`
11840
11841 # Avoid depending upon Character Ranges.
11842 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11843 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11844 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11845 as_cr_digits='0123456789'
11846 as_cr_alnum=$as_cr_Letters$as_cr_digits
11847
11848 ECHO_C= ECHO_N= ECHO_T=
11849 case `echo -n x` in #(((((
11850 -n*)
11851 case `echo 'xy\c'` in
11852 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11853 xy) ECHO_C='\c';;
11854 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11855 ECHO_T=' ';;
11856 esac;;
11857 *)
11858 ECHO_N='-n';;
11859 esac
11860
11861 rm -f conf$$ conf$$.exe conf$$.file
11862 if test -d conf$$.dir; then
11863 rm -f conf$$.dir/conf$$.file
11864 else
11865 rm -f conf$$.dir
11866 mkdir conf$$.dir 2>/dev/null
11867 fi
11868 if (echo >conf$$.file) 2>/dev/null; then
11869 if ln -s conf$$.file conf$$ 2>/dev/null; then
11870 as_ln_s='ln -s'
11871 # ... but there are two gotchas:
11872 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11873 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11874 # In both cases, we have to default to `cp -pR'.
11875 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11876 as_ln_s='cp -pR'
11877 elif ln conf$$.file conf$$ 2>/dev/null; then
11878 as_ln_s=ln
11879 else
11880 as_ln_s='cp -pR'
11881 fi
11882 else
11883 as_ln_s='cp -pR'
11884 fi
11885 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11886 rmdir conf$$.dir 2>/dev/null
11887
11888
11889 # as_fn_mkdir_p
11890 # -------------
11891 # Create "$as_dir" as a directory, including parents if necessary.
11892 as_fn_mkdir_p ()
11893 {
11894
11895 case $as_dir in #(
11896 -*) as_dir=./$as_dir;;
11897 esac
11898 test -d "$as_dir" || eval $as_mkdir_p || {
11899 as_dirs=
11900 while :; do
11901 case $as_dir in #(
11902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11903 *) as_qdir=$as_dir;;
11904 esac
11905 as_dirs="'$as_qdir' $as_dirs"
11906 as_dir=`$as_dirname -- "$as_dir" ||
11907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11908 X"$as_dir" : 'X\(//\)[^/]' \| \
11909 X"$as_dir" : 'X\(//\)$' \| \
11910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11911 $as_echo X"$as_dir" |
11912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11913 s//\1/
11914 q
11915 }
11916 /^X\(\/\/\)[^/].*/{
11917 s//\1/
11918 q
11919 }
11920 /^X\(\/\/\)$/{
11921 s//\1/
11922 q
11923 }
11924 /^X\(\/\).*/{
11925 s//\1/
11926 q
11927 }
11928 s/.*/./; q'`
11929 test -d "$as_dir" && break
11930 done
11931 test -z "$as_dirs" || eval "mkdir $as_dirs"
11932 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11933
11934
11935 } # as_fn_mkdir_p
11936 if mkdir -p . 2>/dev/null; then
11937 as_mkdir_p='mkdir -p "$as_dir"'
11938 else
11939 test -d ./-p && rmdir ./-p
11940 as_mkdir_p=false
11941 fi
11942
11943
11944 # as_fn_executable_p FILE
11945 # -----------------------
11946 # Test if FILE is an executable regular file.
11947 as_fn_executable_p ()
11948 {
11949 test -f "$1" && test -x "$1"
11950 } # as_fn_executable_p
11951 as_test_x='test -x'
11952 as_executable_p=as_fn_executable_p
11953
11954 # Sed expression to map a string onto a valid CPP name.
11955 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11956
11957 # Sed expression to map a string onto a valid variable name.
11958 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11959
11960
11961 exec 6>&1
11962 ## ----------------------------------- ##
11963 ## Main body of $CONFIG_STATUS script. ##
11964 ## ----------------------------------- ##
11965 _ASEOF
11966 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11967
11968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11969 # Save the log message, to keep $0 and so on meaningful, and to
11970 # report actual input values of CONFIG_FILES etc. instead of their
11971 # values after options handling.
11972 ac_log="
11973 This file was extended by sod $as_me 0.2.0-29-g54c0, which was
11974 generated by GNU Autoconf 2.69. Invocation command line was
11975
11976 CONFIG_FILES = $CONFIG_FILES
11977 CONFIG_HEADERS = $CONFIG_HEADERS
11978 CONFIG_LINKS = $CONFIG_LINKS
11979 CONFIG_COMMANDS = $CONFIG_COMMANDS
11980 $ $0 $@
11981
11982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11983 "
11984
11985 _ACEOF
11986
11987 case $ac_config_files in *"
11988 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11989 esac
11990
11991
11992
11993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11994 # Files that config.status was made for.
11995 config_files="$ac_config_files"
11996 config_commands="$ac_config_commands"
11997
11998 _ACEOF
11999
12000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12001 ac_cs_usage="\
12002 \`$as_me' instantiates files and other configuration actions
12003 from templates according to the current configuration. Unless the files
12004 and actions are specified as TAGs, all are instantiated by default.
12005
12006 Usage: $0 [OPTION]... [TAG]...
12007
12008 -h, --help print this help, then exit
12009 -V, --version print version number and configuration settings, then exit
12010 --config print configuration, then exit
12011 -q, --quiet, --silent
12012 do not print progress messages
12013 -d, --debug don't remove temporary files
12014 --recheck update $as_me by reconfiguring in the same conditions
12015 --file=FILE[:TEMPLATE]
12016 instantiate the configuration file FILE
12017
12018 Configuration files:
12019 $config_files
12020
12021 Configuration commands:
12022 $config_commands
12023
12024 Report bugs to <mdw@distorted.org.uk>."
12025
12026 _ACEOF
12027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12028 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12029 ac_cs_version="\\
12030 sod config.status 0.2.0-29-g54c0
12031 configured by $0, generated by GNU Autoconf 2.69,
12032 with options \\"\$ac_cs_config\\"
12033
12034 Copyright (C) 2012 Free Software Foundation, Inc.
12035 This config.status script is free software; the Free Software Foundation
12036 gives unlimited permission to copy, distribute and modify it."
12037
12038 ac_pwd='$ac_pwd'
12039 srcdir='$srcdir'
12040 INSTALL='$INSTALL'
12041 MKDIR_P='$MKDIR_P'
12042 AWK='$AWK'
12043 test -n "\$AWK" || AWK=awk
12044 _ACEOF
12045
12046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12047 # The default lists apply if the user does not specify any file.
12048 ac_need_defaults=:
12049 while test $# != 0
12050 do
12051 case $1 in
12052 --*=?*)
12053 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12054 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12055 ac_shift=:
12056 ;;
12057 --*=)
12058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12059 ac_optarg=
12060 ac_shift=:
12061 ;;
12062 *)
12063 ac_option=$1
12064 ac_optarg=$2
12065 ac_shift=shift
12066 ;;
12067 esac
12068
12069 case $ac_option in
12070 # Handling of the options.
12071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12072 ac_cs_recheck=: ;;
12073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12074 $as_echo "$ac_cs_version"; exit ;;
12075 --config | --confi | --conf | --con | --co | --c )
12076 $as_echo "$ac_cs_config"; exit ;;
12077 --debug | --debu | --deb | --de | --d | -d )
12078 debug=: ;;
12079 --file | --fil | --fi | --f )
12080 $ac_shift
12081 case $ac_optarg in
12082 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12083 '') as_fn_error $? "missing file argument" ;;
12084 esac
12085 as_fn_append CONFIG_FILES " '$ac_optarg'"
12086 ac_need_defaults=false;;
12087 --he | --h | --help | --hel | -h )
12088 $as_echo "$ac_cs_usage"; exit ;;
12089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12091 ac_cs_silent=: ;;
12092
12093 # This is an error.
12094 -*) as_fn_error $? "unrecognized option: \`$1'
12095 Try \`$0 --help' for more information." ;;
12096
12097 *) as_fn_append ac_config_targets " $1"
12098 ac_need_defaults=false ;;
12099
12100 esac
12101 shift
12102 done
12103
12104 ac_configure_extra_args=
12105
12106 if $ac_cs_silent; then
12107 exec 6>/dev/null
12108 ac_configure_extra_args="$ac_configure_extra_args --silent"
12109 fi
12110
12111 _ACEOF
12112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12113 if \$ac_cs_recheck; then
12114 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12115 shift
12116 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12117 CONFIG_SHELL='$SHELL'
12118 export CONFIG_SHELL
12119 exec "\$@"
12120 fi
12121
12122 _ACEOF
12123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12124 exec 5>>config.log
12125 {
12126 echo
12127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12128 ## Running $as_me. ##
12129 _ASBOX
12130 $as_echo "$ac_log"
12131 } >&5
12132
12133 _ACEOF
12134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12135 #
12136 # INIT-COMMANDS
12137 #
12138 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12139
12140
12141 # The HP-UX ksh and POSIX shell print the target directory to stdout
12142 # if CDPATH is set.
12143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12144
12145 sed_quote_subst='$sed_quote_subst'
12146 double_quote_subst='$double_quote_subst'
12147 delay_variable_subst='$delay_variable_subst'
12148 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12149 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12150 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12151 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12152 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12153 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12154 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12155 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12156 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12157 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12158 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12159 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12160 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12161 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12162 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12163 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12164 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12165 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12166 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12167 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12168 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12169 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12170 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12171 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12172 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12173 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12174 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12175 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12176 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12177 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12178 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12179 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12180 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12181 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12182 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12183 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12184 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12185 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12186 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12187 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12188 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12189 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12190 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12191 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12192 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12193 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12194 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12195 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12196 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12197 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12198 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12199 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12200 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12201 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12202 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12203 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12205 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12206 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12207 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12208 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12209 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12210 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12211 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12212 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12213 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12214 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12215 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12216 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12217 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12218 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12219 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12220 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12221 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12222 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12223 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12224 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12225 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12226 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12227 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12228 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12229 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12230 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12231 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12232 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12233 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12234 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12235 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12236 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12237 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12238 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12239 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12240 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12241 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12242 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12243 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12244 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12245 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12246 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12247 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12248 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12249 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12250 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12251 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12252 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12253 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12254 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12255 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12256 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12257 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12258 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12259 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12260 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12261 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12262 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12263 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12264 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12265 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12266 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12267 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12268 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12269 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12270 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12271 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12272 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12273 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12274 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12275 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12276 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12277 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12278
12279 LTCC='$LTCC'
12280 LTCFLAGS='$LTCFLAGS'
12281 compiler='$compiler_DEFAULT'
12282
12283 # A function that is used when there is no print builtin or printf.
12284 func_fallback_echo ()
12285 {
12286 eval 'cat <<_LTECHO_EOF
12287 \$1
12288 _LTECHO_EOF'
12289 }
12290
12291 # Quote evaled strings.
12292 for var in SHELL \
12293 ECHO \
12294 PATH_SEPARATOR \
12295 SED \
12296 GREP \
12297 EGREP \
12298 FGREP \
12299 LD \
12300 NM \
12301 LN_S \
12302 lt_SP2NL \
12303 lt_NL2SP \
12304 reload_flag \
12305 OBJDUMP \
12306 deplibs_check_method \
12307 file_magic_cmd \
12308 file_magic_glob \
12309 want_nocaseglob \
12310 DLLTOOL \
12311 sharedlib_from_linklib_cmd \
12312 AR \
12313 AR_FLAGS \
12314 archiver_list_spec \
12315 STRIP \
12316 RANLIB \
12317 CC \
12318 CFLAGS \
12319 compiler \
12320 lt_cv_sys_global_symbol_pipe \
12321 lt_cv_sys_global_symbol_to_cdecl \
12322 lt_cv_sys_global_symbol_to_c_name_address \
12323 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12324 nm_file_list_spec \
12325 lt_prog_compiler_no_builtin_flag \
12326 lt_prog_compiler_pic \
12327 lt_prog_compiler_wl \
12328 lt_prog_compiler_static \
12329 lt_cv_prog_compiler_c_o \
12330 need_locks \
12331 MANIFEST_TOOL \
12332 DSYMUTIL \
12333 NMEDIT \
12334 LIPO \
12335 OTOOL \
12336 OTOOL64 \
12337 shrext_cmds \
12338 export_dynamic_flag_spec \
12339 whole_archive_flag_spec \
12340 compiler_needs_object \
12341 with_gnu_ld \
12342 allow_undefined_flag \
12343 no_undefined_flag \
12344 hardcode_libdir_flag_spec \
12345 hardcode_libdir_separator \
12346 exclude_expsyms \
12347 include_expsyms \
12348 file_list_spec \
12349 variables_saved_for_relink \
12350 libname_spec \
12351 library_names_spec \
12352 soname_spec \
12353 install_override_mode \
12354 finish_eval \
12355 old_striplib \
12356 striplib; do
12357 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12358 *[\\\\\\\`\\"\\\$]*)
12359 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12360 ;;
12361 *)
12362 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12363 ;;
12364 esac
12365 done
12366
12367 # Double-quote double-evaled strings.
12368 for var in reload_cmds \
12369 old_postinstall_cmds \
12370 old_postuninstall_cmds \
12371 old_archive_cmds \
12372 extract_expsyms_cmds \
12373 old_archive_from_new_cmds \
12374 old_archive_from_expsyms_cmds \
12375 archive_cmds \
12376 archive_expsym_cmds \
12377 module_cmds \
12378 module_expsym_cmds \
12379 export_symbols_cmds \
12380 prelink_cmds \
12381 postlink_cmds \
12382 postinstall_cmds \
12383 postuninstall_cmds \
12384 finish_cmds \
12385 sys_lib_search_path_spec \
12386 sys_lib_dlsearch_path_spec; do
12387 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12388 *[\\\\\\\`\\"\\\$]*)
12389 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12390 ;;
12391 *)
12392 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12393 ;;
12394 esac
12395 done
12396
12397 ac_aux_dir='$ac_aux_dir'
12398 xsi_shell='$xsi_shell'
12399 lt_shell_append='$lt_shell_append'
12400
12401 # See if we are running on zsh, and set the options which allow our
12402 # commands through without removal of \ escapes INIT.
12403 if test -n "\${ZSH_VERSION+set}" ; then
12404 setopt NO_GLOB_SUBST
12405 fi
12406
12407
12408 PACKAGE='$PACKAGE'
12409 VERSION='$VERSION'
12410 TIMESTAMP='$TIMESTAMP'
12411 RM='$RM'
12412 ofile='$ofile'
12413
12414
12415
12416
12417 _ACEOF
12418
12419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12420
12421 # Handling of arguments.
12422 for ac_config_target in $ac_config_targets
12423 do
12424 case $ac_config_target in
12425 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12426 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12427 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12428 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12429 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12430 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12431
12432 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12433 esac
12434 done
12435
12436
12437 # If the user did not use the arguments to specify the items to instantiate,
12438 # then the envvar interface is used. Set only those that are not.
12439 # We use the long form for the default assignment because of an extremely
12440 # bizarre bug on SunOS 4.1.3.
12441 if $ac_need_defaults; then
12442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12444 fi
12445
12446 # Have a temporary directory for convenience. Make it in the build tree
12447 # simply because there is no reason against having it here, and in addition,
12448 # creating and moving files from /tmp can sometimes cause problems.
12449 # Hook for its removal unless debugging.
12450 # Note that there is a small window in which the directory will not be cleaned:
12451 # after its creation but before its name has been assigned to `$tmp'.
12452 $debug ||
12453 {
12454 tmp= ac_tmp=
12455 trap 'exit_status=$?
12456 : "${ac_tmp:=$tmp}"
12457 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12458 ' 0
12459 trap 'as_fn_exit 1' 1 2 13 15
12460 }
12461 # Create a (secure) tmp directory for tmp files.
12462
12463 {
12464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12465 test -d "$tmp"
12466 } ||
12467 {
12468 tmp=./conf$$-$RANDOM
12469 (umask 077 && mkdir "$tmp")
12470 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12471 ac_tmp=$tmp
12472
12473 # Set up the scripts for CONFIG_FILES section.
12474 # No need to generate them if there are no CONFIG_FILES.
12475 # This happens for instance with `./config.status config.h'.
12476 if test -n "$CONFIG_FILES"; then
12477
12478
12479 ac_cr=`echo X | tr X '\015'`
12480 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12481 # But we know of no other shell where ac_cr would be empty at this
12482 # point, so we can use a bashism as a fallback.
12483 if test "x$ac_cr" = x; then
12484 eval ac_cr=\$\'\\r\'
12485 fi
12486 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12487 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12488 ac_cs_awk_cr='\\r'
12489 else
12490 ac_cs_awk_cr=$ac_cr
12491 fi
12492
12493 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12494 _ACEOF
12495
12496
12497 {
12498 echo "cat >conf$$subs.awk <<_ACEOF" &&
12499 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12500 echo "_ACEOF"
12501 } >conf$$subs.sh ||
12502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12503 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12504 ac_delim='%!_!# '
12505 for ac_last_try in false false false false false :; do
12506 . ./conf$$subs.sh ||
12507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12508
12509 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12510 if test $ac_delim_n = $ac_delim_num; then
12511 break
12512 elif $ac_last_try; then
12513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12514 else
12515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12516 fi
12517 done
12518 rm -f conf$$subs.sh
12519
12520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12522 _ACEOF
12523 sed -n '
12524 h
12525 s/^/S["/; s/!.*/"]=/
12526 p
12527 g
12528 s/^[^!]*!//
12529 :repl
12530 t repl
12531 s/'"$ac_delim"'$//
12532 t delim
12533 :nl
12534 h
12535 s/\(.\{148\}\)..*/\1/
12536 t more1
12537 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12538 p
12539 n
12540 b repl
12541 :more1
12542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12543 p
12544 g
12545 s/.\{148\}//
12546 t nl
12547 :delim
12548 h
12549 s/\(.\{148\}\)..*/\1/
12550 t more2
12551 s/["\\]/\\&/g; s/^/"/; s/$/"/
12552 p
12553 b
12554 :more2
12555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12556 p
12557 g
12558 s/.\{148\}//
12559 t delim
12560 ' <conf$$subs.awk | sed '
12561 /^[^""]/{
12562 N
12563 s/\n//
12564 }
12565 ' >>$CONFIG_STATUS || ac_write_fail=1
12566 rm -f conf$$subs.awk
12567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12568 _ACAWK
12569 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12570 for (key in S) S_is_set[key] = 1
12571 FS = "\a"
12572
12573 }
12574 {
12575 line = $ 0
12576 nfields = split(line, field, "@")
12577 substed = 0
12578 len = length(field[1])
12579 for (i = 2; i < nfields; i++) {
12580 key = field[i]
12581 keylen = length(key)
12582 if (S_is_set[key]) {
12583 value = S[key]
12584 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12585 len += length(value) + length(field[++i])
12586 substed = 1
12587 } else
12588 len += 1 + keylen
12589 }
12590
12591 print line
12592 }
12593
12594 _ACAWK
12595 _ACEOF
12596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12597 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12598 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12599 else
12600 cat
12601 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12602 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12603 _ACEOF
12604
12605 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12606 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12607 # trailing colons and then remove the whole line if VPATH becomes empty
12608 # (actually we leave an empty line to preserve line numbers).
12609 if test "x$srcdir" = x.; then
12610 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12611 h
12612 s///
12613 s/^/:/
12614 s/[ ]*$/:/
12615 s/:\$(srcdir):/:/g
12616 s/:\${srcdir}:/:/g
12617 s/:@srcdir@:/:/g
12618 s/^:*//
12619 s/:*$//
12620 x
12621 s/\(=[ ]*\).*/\1/
12622 G
12623 s/\n//
12624 s/^[^=]*=[ ]*$//
12625 }'
12626 fi
12627
12628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12629 fi # test -n "$CONFIG_FILES"
12630
12631
12632 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12633 shift
12634 for ac_tag
12635 do
12636 case $ac_tag in
12637 :[FHLC]) ac_mode=$ac_tag; continue;;
12638 esac
12639 case $ac_mode$ac_tag in
12640 :[FHL]*:*);;
12641 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12642 :[FH]-) ac_tag=-:-;;
12643 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12644 esac
12645 ac_save_IFS=$IFS
12646 IFS=:
12647 set x $ac_tag
12648 IFS=$ac_save_IFS
12649 shift
12650 ac_file=$1
12651 shift
12652
12653 case $ac_mode in
12654 :L) ac_source=$1;;
12655 :[FH])
12656 ac_file_inputs=
12657 for ac_f
12658 do
12659 case $ac_f in
12660 -) ac_f="$ac_tmp/stdin";;
12661 *) # Look for the file first in the build tree, then in the source tree
12662 # (if the path is not absolute). The absolute path cannot be DOS-style,
12663 # because $ac_f cannot contain `:'.
12664 test -f "$ac_f" ||
12665 case $ac_f in
12666 [\\/$]*) false;;
12667 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12668 esac ||
12669 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12670 esac
12671 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12672 as_fn_append ac_file_inputs " '$ac_f'"
12673 done
12674
12675 # Let's still pretend it is `configure' which instantiates (i.e., don't
12676 # use $as_me), people would be surprised to read:
12677 # /* config.h. Generated by config.status. */
12678 configure_input='Generated from '`
12679 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12680 `' by configure.'
12681 if test x"$ac_file" != x-; then
12682 configure_input="$ac_file. $configure_input"
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12684 $as_echo "$as_me: creating $ac_file" >&6;}
12685 fi
12686 # Neutralize special characters interpreted by sed in replacement strings.
12687 case $configure_input in #(
12688 *\&* | *\|* | *\\* )
12689 ac_sed_conf_input=`$as_echo "$configure_input" |
12690 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12691 *) ac_sed_conf_input=$configure_input;;
12692 esac
12693
12694 case $ac_tag in
12695 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12697 esac
12698 ;;
12699 esac
12700
12701 ac_dir=`$as_dirname -- "$ac_file" ||
12702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12703 X"$ac_file" : 'X\(//\)[^/]' \| \
12704 X"$ac_file" : 'X\(//\)$' \| \
12705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12706 $as_echo X"$ac_file" |
12707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12708 s//\1/
12709 q
12710 }
12711 /^X\(\/\/\)[^/].*/{
12712 s//\1/
12713 q
12714 }
12715 /^X\(\/\/\)$/{
12716 s//\1/
12717 q
12718 }
12719 /^X\(\/\).*/{
12720 s//\1/
12721 q
12722 }
12723 s/.*/./; q'`
12724 as_dir="$ac_dir"; as_fn_mkdir_p
12725 ac_builddir=.
12726
12727 case "$ac_dir" in
12728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12729 *)
12730 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12731 # A ".." for each directory in $ac_dir_suffix.
12732 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12733 case $ac_top_builddir_sub in
12734 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12735 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12736 esac ;;
12737 esac
12738 ac_abs_top_builddir=$ac_pwd
12739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12740 # for backward compatibility:
12741 ac_top_builddir=$ac_top_build_prefix
12742
12743 case $srcdir in
12744 .) # We are building in place.
12745 ac_srcdir=.
12746 ac_top_srcdir=$ac_top_builddir_sub
12747 ac_abs_top_srcdir=$ac_pwd ;;
12748 [\\/]* | ?:[\\/]* ) # Absolute name.
12749 ac_srcdir=$srcdir$ac_dir_suffix;
12750 ac_top_srcdir=$srcdir
12751 ac_abs_top_srcdir=$srcdir ;;
12752 *) # Relative name.
12753 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12754 ac_top_srcdir=$ac_top_build_prefix$srcdir
12755 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12756 esac
12757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12758
12759
12760 case $ac_mode in
12761 :F)
12762 #
12763 # CONFIG_FILE
12764 #
12765
12766 case $INSTALL in
12767 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12768 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12769 esac
12770 ac_MKDIR_P=$MKDIR_P
12771 case $MKDIR_P in
12772 [\\/$]* | ?:[\\/]* ) ;;
12773 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12774 esac
12775 _ACEOF
12776
12777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12778 # If the template does not know about datarootdir, expand it.
12779 # FIXME: This hack should be removed a few years after 2.60.
12780 ac_datarootdir_hack=; ac_datarootdir_seen=
12781 ac_sed_dataroot='
12782 /datarootdir/ {
12783 p
12784 q
12785 }
12786 /@datadir@/p
12787 /@docdir@/p
12788 /@infodir@/p
12789 /@localedir@/p
12790 /@mandir@/p'
12791 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12792 *datarootdir*) ac_datarootdir_seen=yes;;
12793 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12795 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12796 _ACEOF
12797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12798 ac_datarootdir_hack='
12799 s&@datadir@&$datadir&g
12800 s&@docdir@&$docdir&g
12801 s&@infodir@&$infodir&g
12802 s&@localedir@&$localedir&g
12803 s&@mandir@&$mandir&g
12804 s&\\\${datarootdir}&$datarootdir&g' ;;
12805 esac
12806 _ACEOF
12807
12808 # Neutralize VPATH when `$srcdir' = `.'.
12809 # Shell code in configure.ac might set extrasub.
12810 # FIXME: do we really want to maintain this feature?
12811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12812 ac_sed_extra="$ac_vpsub
12813 $extrasub
12814 _ACEOF
12815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12816 :t
12817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12818 s|@configure_input@|$ac_sed_conf_input|;t t
12819 s&@top_builddir@&$ac_top_builddir_sub&;t t
12820 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12821 s&@srcdir@&$ac_srcdir&;t t
12822 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12823 s&@top_srcdir@&$ac_top_srcdir&;t t
12824 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12825 s&@builddir@&$ac_builddir&;t t
12826 s&@abs_builddir@&$ac_abs_builddir&;t t
12827 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12828 s&@INSTALL@&$ac_INSTALL&;t t
12829 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12830 $ac_datarootdir_hack
12831 "
12832 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12833 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12834
12835 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12836 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12837 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12838 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12840 which seems to be undefined. Please make sure it is defined" >&5
12841 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12842 which seems to be undefined. Please make sure it is defined" >&2;}
12843
12844 rm -f "$ac_tmp/stdin"
12845 case $ac_file in
12846 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12847 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12848 esac \
12849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12850 ;;
12851
12852
12853 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12854 $as_echo "$as_me: executing $ac_file commands" >&6;}
12855 ;;
12856 esac
12857
12858
12859 case $ac_file$ac_mode in
12860 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12861 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12862 # are listed without --file. Let's play safe and only enable the eval
12863 # if we detect the quoting.
12864 case $CONFIG_FILES in
12865 *\'*) eval set x "$CONFIG_FILES" ;;
12866 *) set x $CONFIG_FILES ;;
12867 esac
12868 shift
12869 for mf
12870 do
12871 # Strip MF so we end up with the name of the file.
12872 mf=`echo "$mf" | sed -e 's/:.*$//'`
12873 # Check whether this is an Automake generated Makefile or not.
12874 # We used to match only the files named `Makefile.in', but
12875 # some people rename them; so instead we look at the file content.
12876 # Grep'ing the first line is not enough: some people post-process
12877 # each Makefile.in and add a new line on top of each file to say so.
12878 # Grep'ing the whole file is not good either: AIX grep has a line
12879 # limit of 2048, but all sed's we know have understand at least 4000.
12880 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12881 dirpart=`$as_dirname -- "$mf" ||
12882 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12883 X"$mf" : 'X\(//\)[^/]' \| \
12884 X"$mf" : 'X\(//\)$' \| \
12885 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12886 $as_echo X"$mf" |
12887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12888 s//\1/
12889 q
12890 }
12891 /^X\(\/\/\)[^/].*/{
12892 s//\1/
12893 q
12894 }
12895 /^X\(\/\/\)$/{
12896 s//\1/
12897 q
12898 }
12899 /^X\(\/\).*/{
12900 s//\1/
12901 q
12902 }
12903 s/.*/./; q'`
12904 else
12905 continue
12906 fi
12907 # Extract the definition of DEPDIR, am__include, and am__quote
12908 # from the Makefile without running `make'.
12909 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12910 test -z "$DEPDIR" && continue
12911 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12912 test -z "am__include" && continue
12913 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12914 # When using ansi2knr, U may be empty or an underscore; expand it
12915 U=`sed -n 's/^U = //p' < "$mf"`
12916 # Find all dependency output files, they are included files with
12917 # $(DEPDIR) in their names. We invoke sed twice because it is the
12918 # simplest approach to changing $(DEPDIR) to its actual value in the
12919 # expansion.
12920 for file in `sed -n "
12921 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12922 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12923 # Make sure the directory exists.
12924 test -f "$dirpart/$file" && continue
12925 fdir=`$as_dirname -- "$file" ||
12926 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12927 X"$file" : 'X\(//\)[^/]' \| \
12928 X"$file" : 'X\(//\)$' \| \
12929 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12930 $as_echo X"$file" |
12931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12932 s//\1/
12933 q
12934 }
12935 /^X\(\/\/\)[^/].*/{
12936 s//\1/
12937 q
12938 }
12939 /^X\(\/\/\)$/{
12940 s//\1/
12941 q
12942 }
12943 /^X\(\/\).*/{
12944 s//\1/
12945 q
12946 }
12947 s/.*/./; q'`
12948 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12949 # echo "creating $dirpart/$file"
12950 echo '# dummy' > "$dirpart/$file"
12951 done
12952 done
12953 }
12954 ;;
12955 "libtool":C)
12956
12957 # See if we are running on zsh, and set the options which allow our
12958 # commands through without removal of \ escapes.
12959 if test -n "${ZSH_VERSION+set}" ; then
12960 setopt NO_GLOB_SUBST
12961 fi
12962
12963 cfgfile="${ofile}T"
12964 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12965 $RM "$cfgfile"
12966
12967 cat <<_LT_EOF >> "$cfgfile"
12968 #! $SHELL
12969
12970 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12971 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12972 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12973 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12974 #
12975 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12976 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12977 # Foundation, Inc.
12978 # Written by Gordon Matzigkeit, 1996
12979 #
12980 # This file is part of GNU Libtool.
12981 #
12982 # GNU Libtool is free software; you can redistribute it and/or
12983 # modify it under the terms of the GNU General Public License as
12984 # published by the Free Software Foundation; either version 2 of
12985 # the License, or (at your option) any later version.
12986 #
12987 # As a special exception to the GNU General Public License,
12988 # if you distribute this file as part of a program or library that
12989 # is built using GNU Libtool, you may include this file under the
12990 # same distribution terms that you use for the rest of that program.
12991 #
12992 # GNU Libtool is distributed in the hope that it will be useful,
12993 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12994 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12995 # GNU General Public License for more details.
12996 #
12997 # You should have received a copy of the GNU General Public License
12998 # along with GNU Libtool; see the file COPYING. If not, a copy
12999 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13000 # obtained by writing to the Free Software Foundation, Inc.,
13001 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13002
13003
13004 # The names of the tagged configurations supported by this script.
13005 available_tags=""
13006
13007 # ### BEGIN LIBTOOL CONFIG
13008
13009 # Which release of libtool.m4 was used?
13010 macro_version=$macro_version
13011 macro_revision=$macro_revision
13012
13013 # Whether or not to build shared libraries.
13014 build_libtool_libs=$enable_shared
13015
13016 # Whether or not to build static libraries.
13017 build_old_libs=$enable_static
13018
13019 # What type of objects to build.
13020 pic_mode=$pic_mode
13021
13022 # Whether or not to optimize for fast installation.
13023 fast_install=$enable_fast_install
13024
13025 # Shell to use when invoking shell scripts.
13026 SHELL=$lt_SHELL
13027
13028 # An echo program that protects backslashes.
13029 ECHO=$lt_ECHO
13030
13031 # The PATH separator for the build system.
13032 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13033
13034 # The host system.
13035 host_alias=$host_alias
13036 host=$host
13037 host_os=$host_os
13038
13039 # The build system.
13040 build_alias=$build_alias
13041 build=$build
13042 build_os=$build_os
13043
13044 # A sed program that does not truncate output.
13045 SED=$lt_SED
13046
13047 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13048 Xsed="\$SED -e 1s/^X//"
13049
13050 # A grep program that handles long lines.
13051 GREP=$lt_GREP
13052
13053 # An ERE matcher.
13054 EGREP=$lt_EGREP
13055
13056 # A literal string matcher.
13057 FGREP=$lt_FGREP
13058
13059 # A BSD- or MS-compatible name lister.
13060 NM=$lt_NM
13061
13062 # Whether we need soft or hard links.
13063 LN_S=$lt_LN_S
13064
13065 # What is the maximum length of a command?
13066 max_cmd_len=$max_cmd_len
13067
13068 # Object file suffix (normally "o").
13069 objext=$ac_objext
13070
13071 # Executable file suffix (normally "").
13072 exeext=$exeext
13073
13074 # whether the shell understands "unset".
13075 lt_unset=$lt_unset
13076
13077 # turn spaces into newlines.
13078 SP2NL=$lt_lt_SP2NL
13079
13080 # turn newlines into spaces.
13081 NL2SP=$lt_lt_NL2SP
13082
13083 # convert \$build file names to \$host format.
13084 to_host_file_cmd=$lt_cv_to_host_file_cmd
13085
13086 # convert \$build files to toolchain format.
13087 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13088
13089 # An object symbol dumper.
13090 OBJDUMP=$lt_OBJDUMP
13091
13092 # Method to check whether dependent libraries are shared objects.
13093 deplibs_check_method=$lt_deplibs_check_method
13094
13095 # Command to use when deplibs_check_method = "file_magic".
13096 file_magic_cmd=$lt_file_magic_cmd
13097
13098 # How to find potential files when deplibs_check_method = "file_magic".
13099 file_magic_glob=$lt_file_magic_glob
13100
13101 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13102 want_nocaseglob=$lt_want_nocaseglob
13103
13104 # DLL creation program.
13105 DLLTOOL=$lt_DLLTOOL
13106
13107 # Command to associate shared and link libraries.
13108 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13109
13110 # The archiver.
13111 AR=$lt_AR
13112
13113 # Flags to create an archive.
13114 AR_FLAGS=$lt_AR_FLAGS
13115
13116 # How to feed a file listing to the archiver.
13117 archiver_list_spec=$lt_archiver_list_spec
13118
13119 # A symbol stripping program.
13120 STRIP=$lt_STRIP
13121
13122 # Commands used to install an old-style archive.
13123 RANLIB=$lt_RANLIB
13124 old_postinstall_cmds=$lt_old_postinstall_cmds
13125 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13126
13127 # Whether to use a lock for old archive extraction.
13128 lock_old_archive_extraction=$lock_old_archive_extraction
13129
13130 # A C compiler.
13131 LTCC=$lt_CC
13132
13133 # LTCC compiler flags.
13134 LTCFLAGS=$lt_CFLAGS
13135
13136 # Take the output of nm and produce a listing of raw symbols and C names.
13137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13138
13139 # Transform the output of nm in a proper C declaration.
13140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13141
13142 # Transform the output of nm in a C name address pair.
13143 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13144
13145 # Transform the output of nm in a C name address pair when lib prefix is needed.
13146 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13147
13148 # Specify filename containing input files for \$NM.
13149 nm_file_list_spec=$lt_nm_file_list_spec
13150
13151 # The root where to search for dependent libraries,and in which our libraries should be installed.
13152 lt_sysroot=$lt_sysroot
13153
13154 # The name of the directory that contains temporary libtool files.
13155 objdir=$objdir
13156
13157 # Used to examine libraries when file_magic_cmd begins with "file".
13158 MAGIC_CMD=$MAGIC_CMD
13159
13160 # Must we lock files when doing compilation?
13161 need_locks=$lt_need_locks
13162
13163 # Manifest tool.
13164 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13165
13166 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13167 DSYMUTIL=$lt_DSYMUTIL
13168
13169 # Tool to change global to local symbols on Mac OS X.
13170 NMEDIT=$lt_NMEDIT
13171
13172 # Tool to manipulate fat objects and archives on Mac OS X.
13173 LIPO=$lt_LIPO
13174
13175 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13176 OTOOL=$lt_OTOOL
13177
13178 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13179 OTOOL64=$lt_OTOOL64
13180
13181 # Old archive suffix (normally "a").
13182 libext=$libext
13183
13184 # Shared library suffix (normally ".so").
13185 shrext_cmds=$lt_shrext_cmds
13186
13187 # The commands to extract the exported symbol list from a shared archive.
13188 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13189
13190 # Variables whose values should be saved in libtool wrapper scripts and
13191 # restored at link time.
13192 variables_saved_for_relink=$lt_variables_saved_for_relink
13193
13194 # Do we need the "lib" prefix for modules?
13195 need_lib_prefix=$need_lib_prefix
13196
13197 # Do we need a version for libraries?
13198 need_version=$need_version
13199
13200 # Library versioning type.
13201 version_type=$version_type
13202
13203 # Shared library runtime path variable.
13204 runpath_var=$runpath_var
13205
13206 # Shared library path variable.
13207 shlibpath_var=$shlibpath_var
13208
13209 # Is shlibpath searched before the hard-coded library search path?
13210 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13211
13212 # Format of library name prefix.
13213 libname_spec=$lt_libname_spec
13214
13215 # List of archive names. First name is the real one, the rest are links.
13216 # The last name is the one that the linker finds with -lNAME
13217 library_names_spec=$lt_library_names_spec
13218
13219 # The coded name of the library, if different from the real name.
13220 soname_spec=$lt_soname_spec
13221
13222 # Permission mode override for installation of shared libraries.
13223 install_override_mode=$lt_install_override_mode
13224
13225 # Command to use after installation of a shared archive.
13226 postinstall_cmds=$lt_postinstall_cmds
13227
13228 # Command to use after uninstallation of a shared archive.
13229 postuninstall_cmds=$lt_postuninstall_cmds
13230
13231 # Commands used to finish a libtool library installation in a directory.
13232 finish_cmds=$lt_finish_cmds
13233
13234 # As "finish_cmds", except a single script fragment to be evaled but
13235 # not shown.
13236 finish_eval=$lt_finish_eval
13237
13238 # Whether we should hardcode library paths into libraries.
13239 hardcode_into_libs=$hardcode_into_libs
13240
13241 # Compile-time system search path for libraries.
13242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13243
13244 # Run-time system search path for libraries.
13245 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13246
13247 # Whether dlopen is supported.
13248 dlopen_support=$enable_dlopen
13249
13250 # Whether dlopen of programs is supported.
13251 dlopen_self=$enable_dlopen_self
13252
13253 # Whether dlopen of statically linked programs is supported.
13254 dlopen_self_static=$enable_dlopen_self_static
13255
13256 # Commands to strip libraries.
13257 old_striplib=$lt_old_striplib
13258 striplib=$lt_striplib
13259
13260
13261 # The linker used to build libraries.
13262 LD=$lt_LD
13263
13264 # How to create reloadable object files.
13265 reload_flag=$lt_reload_flag
13266 reload_cmds=$lt_reload_cmds
13267
13268 # Commands used to build an old-style archive.
13269 old_archive_cmds=$lt_old_archive_cmds
13270
13271 # A language specific compiler.
13272 CC=$lt_compiler
13273
13274 # Is the compiler the GNU compiler?
13275 with_gcc=$GCC
13276
13277 # Compiler flag to turn off builtin functions.
13278 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13279
13280 # Additional compiler flags for building library objects.
13281 pic_flag=$lt_lt_prog_compiler_pic
13282
13283 # How to pass a linker flag through the compiler.
13284 wl=$lt_lt_prog_compiler_wl
13285
13286 # Compiler flag to prevent dynamic linking.
13287 link_static_flag=$lt_lt_prog_compiler_static
13288
13289 # Does compiler simultaneously support -c and -o options?
13290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13291
13292 # Whether or not to add -lc for building shared libraries.
13293 build_libtool_need_lc=$archive_cmds_need_lc
13294
13295 # Whether or not to disallow shared libs when runtime libs are static.
13296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13297
13298 # Compiler flag to allow reflexive dlopens.
13299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13300
13301 # Compiler flag to generate shared objects directly from archives.
13302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13303
13304 # Whether the compiler copes with passing no objects directly.
13305 compiler_needs_object=$lt_compiler_needs_object
13306
13307 # Create an old-style archive from a shared archive.
13308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13309
13310 # Create a temporary old-style archive to link instead of a shared archive.
13311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13312
13313 # Commands used to build a shared archive.
13314 archive_cmds=$lt_archive_cmds
13315 archive_expsym_cmds=$lt_archive_expsym_cmds
13316
13317 # Commands used to build a loadable module if different from building
13318 # a shared archive.
13319 module_cmds=$lt_module_cmds
13320 module_expsym_cmds=$lt_module_expsym_cmds
13321
13322 # Whether we are building with GNU ld or not.
13323 with_gnu_ld=$lt_with_gnu_ld
13324
13325 # Flag that allows shared libraries with undefined symbols to be built.
13326 allow_undefined_flag=$lt_allow_undefined_flag
13327
13328 # Flag that enforces no undefined symbols.
13329 no_undefined_flag=$lt_no_undefined_flag
13330
13331 # Flag to hardcode \$libdir into a binary during linking.
13332 # This must work even if \$libdir does not exist
13333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13334
13335 # Whether we need a single "-rpath" flag with a separated argument.
13336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13337
13338 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13339 # DIR into the resulting binary.
13340 hardcode_direct=$hardcode_direct
13341
13342 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13343 # DIR into the resulting binary and the resulting library dependency is
13344 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13345 # library is relocated.
13346 hardcode_direct_absolute=$hardcode_direct_absolute
13347
13348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13349 # into the resulting binary.
13350 hardcode_minus_L=$hardcode_minus_L
13351
13352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13353 # into the resulting binary.
13354 hardcode_shlibpath_var=$hardcode_shlibpath_var
13355
13356 # Set to "yes" if building a shared library automatically hardcodes DIR
13357 # into the library and all subsequent libraries and executables linked
13358 # against it.
13359 hardcode_automatic=$hardcode_automatic
13360
13361 # Set to yes if linker adds runtime paths of dependent libraries
13362 # to runtime path list.
13363 inherit_rpath=$inherit_rpath
13364
13365 # Whether libtool must link a program against all its dependency libraries.
13366 link_all_deplibs=$link_all_deplibs
13367
13368 # Set to "yes" if exported symbols are required.
13369 always_export_symbols=$always_export_symbols
13370
13371 # The commands to list exported symbols.
13372 export_symbols_cmds=$lt_export_symbols_cmds
13373
13374 # Symbols that should not be listed in the preloaded symbols.
13375 exclude_expsyms=$lt_exclude_expsyms
13376
13377 # Symbols that must always be exported.
13378 include_expsyms=$lt_include_expsyms
13379
13380 # Commands necessary for linking programs (against libraries) with templates.
13381 prelink_cmds=$lt_prelink_cmds
13382
13383 # Commands necessary for finishing linking programs.
13384 postlink_cmds=$lt_postlink_cmds
13385
13386 # Specify filename containing input files.
13387 file_list_spec=$lt_file_list_spec
13388
13389 # How to hardcode a shared library path into an executable.
13390 hardcode_action=$hardcode_action
13391
13392 # ### END LIBTOOL CONFIG
13393
13394 _LT_EOF
13395
13396 case $host_os in
13397 aix3*)
13398 cat <<\_LT_EOF >> "$cfgfile"
13399 # AIX sometimes has problems with the GCC collect2 program. For some
13400 # reason, if we set the COLLECT_NAMES environment variable, the problems
13401 # vanish in a puff of smoke.
13402 if test "X${COLLECT_NAMES+set}" != Xset; then
13403 COLLECT_NAMES=
13404 export COLLECT_NAMES
13405 fi
13406 _LT_EOF
13407 ;;
13408 esac
13409
13410
13411 ltmain="$ac_aux_dir/ltmain.sh"
13412
13413
13414 # We use sed instead of cat because bash on DJGPP gets confused if
13415 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13416 # text mode, it properly converts lines to CR/LF. This bash problem
13417 # is reportedly fixed, but why not run on old versions too?
13418 sed '$q' "$ltmain" >> "$cfgfile" \
13419 || (rm -f "$cfgfile"; exit 1)
13420
13421 if test x"$xsi_shell" = xyes; then
13422 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13423 func_dirname ()\
13424 {\
13425 \ case ${1} in\
13426 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13427 \ * ) func_dirname_result="${3}" ;;\
13428 \ esac\
13429 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13430 && mv -f "$cfgfile.tmp" "$cfgfile" \
13431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13432 test 0 -eq $? || _lt_function_replace_fail=:
13433
13434
13435 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13436 func_basename ()\
13437 {\
13438 \ func_basename_result="${1##*/}"\
13439 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13440 && mv -f "$cfgfile.tmp" "$cfgfile" \
13441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13442 test 0 -eq $? || _lt_function_replace_fail=:
13443
13444
13445 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13446 func_dirname_and_basename ()\
13447 {\
13448 \ case ${1} in\
13449 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13450 \ * ) func_dirname_result="${3}" ;;\
13451 \ esac\
13452 \ func_basename_result="${1##*/}"\
13453 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13454 && mv -f "$cfgfile.tmp" "$cfgfile" \
13455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13456 test 0 -eq $? || _lt_function_replace_fail=:
13457
13458
13459 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13460 func_stripname ()\
13461 {\
13462 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13463 \ # positional parameters, so assign one to ordinary parameter first.\
13464 \ func_stripname_result=${3}\
13465 \ func_stripname_result=${func_stripname_result#"${1}"}\
13466 \ func_stripname_result=${func_stripname_result%"${2}"}\
13467 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13468 && mv -f "$cfgfile.tmp" "$cfgfile" \
13469 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13470 test 0 -eq $? || _lt_function_replace_fail=:
13471
13472
13473 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13474 func_split_long_opt ()\
13475 {\
13476 \ func_split_long_opt_name=${1%%=*}\
13477 \ func_split_long_opt_arg=${1#*=}\
13478 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13479 && mv -f "$cfgfile.tmp" "$cfgfile" \
13480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13481 test 0 -eq $? || _lt_function_replace_fail=:
13482
13483
13484 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13485 func_split_short_opt ()\
13486 {\
13487 \ func_split_short_opt_arg=${1#??}\
13488 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13489 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13490 && mv -f "$cfgfile.tmp" "$cfgfile" \
13491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13492 test 0 -eq $? || _lt_function_replace_fail=:
13493
13494
13495 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13496 func_lo2o ()\
13497 {\
13498 \ case ${1} in\
13499 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13500 \ *) func_lo2o_result=${1} ;;\
13501 \ esac\
13502 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13503 && mv -f "$cfgfile.tmp" "$cfgfile" \
13504 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13505 test 0 -eq $? || _lt_function_replace_fail=:
13506
13507
13508 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13509 func_xform ()\
13510 {\
13511 func_xform_result=${1%.*}.lo\
13512 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13513 && mv -f "$cfgfile.tmp" "$cfgfile" \
13514 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13515 test 0 -eq $? || _lt_function_replace_fail=:
13516
13517
13518 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13519 func_arith ()\
13520 {\
13521 func_arith_result=$(( $* ))\
13522 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13523 && mv -f "$cfgfile.tmp" "$cfgfile" \
13524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13525 test 0 -eq $? || _lt_function_replace_fail=:
13526
13527
13528 sed -e '/^func_len ()$/,/^} # func_len /c\
13529 func_len ()\
13530 {\
13531 func_len_result=${#1}\
13532 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13533 && mv -f "$cfgfile.tmp" "$cfgfile" \
13534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13535 test 0 -eq $? || _lt_function_replace_fail=:
13536
13537 fi
13538
13539 if test x"$lt_shell_append" = xyes; then
13540 sed -e '/^func_append ()$/,/^} # func_append /c\
13541 func_append ()\
13542 {\
13543 eval "${1}+=\\${2}"\
13544 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13545 && mv -f "$cfgfile.tmp" "$cfgfile" \
13546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13547 test 0 -eq $? || _lt_function_replace_fail=:
13548
13549
13550 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13551 func_append_quoted ()\
13552 {\
13553 \ func_quote_for_eval "${2}"\
13554 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13555 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13556 && mv -f "$cfgfile.tmp" "$cfgfile" \
13557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13558 test 0 -eq $? || _lt_function_replace_fail=:
13559
13560
13561 # Save a `func_append' function call where possible by direct use of '+='
13562 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13563 && mv -f "$cfgfile.tmp" "$cfgfile" \
13564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13565 test 0 -eq $? || _lt_function_replace_fail=:
13566 else
13567 # Save a `func_append' function call even when '+=' is not available
13568 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13569 && mv -f "$cfgfile.tmp" "$cfgfile" \
13570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13571 test 0 -eq $? || _lt_function_replace_fail=:
13572 fi
13573
13574 if test x"$_lt_function_replace_fail" = x":"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13576 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13577 fi
13578
13579
13580 mv -f "$cfgfile" "$ofile" ||
13581 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13582 chmod +x "$ofile"
13583
13584 ;;
13585
13586 esac
13587 done # for ac_tag
13588
13589
13590 as_fn_exit 0
13591 _ACEOF
13592 ac_clean_files=$ac_clean_files_save
13593
13594 test $ac_write_fail = 0 ||
13595 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13596
13597
13598 # configure is writing to config.log, and then calls config.status.
13599 # config.status does its own redirection, appending to config.log.
13600 # Unfortunately, on DOS this fails, as config.log is still kept open
13601 # by configure, so config.status won't be able to write to it; its
13602 # output is simply discarded. So we exec the FD to /dev/null,
13603 # effectively closing config.log, so it can be properly (re)opened and
13604 # appended to by config.status. When coming back to configure, we
13605 # need to make the FD available again.
13606 if test "$no_create" != yes; then
13607 ac_cs_success=:
13608 ac_config_status_args=
13609 test "$silent" = yes &&
13610 ac_config_status_args="$ac_config_status_args --quiet"
13611 exec 5>/dev/null
13612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13613 exec 5>>config.log
13614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13615 # would make configure fail if this is the last instruction.
13616 $ac_cs_success || as_fn_exit 1
13617 fi
13618 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13620 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13621 fi
13622
13623