Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for robotfindskitten 2.8284271.702.
4 #
5 # Report bugs to <[email protected]>.
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 [email protected] and
278 $0: [email protected] about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a 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='robotfindskitten'
592 PACKAGE_TARNAME='robotfindskitten'
593 PACKAGE_VERSION='2.8284271.702'
594 PACKAGE_STRING='robotfindskitten 2.8284271.702'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 TAGLINE
639 CPP
640 LT_SYS_LIBRARY_PATH
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 MANIFEST_TOOL
647 RANLIB
648 ac_ct_AR
649 AR
650 DLLTOOL
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 runstatedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_aix_soname
763 with_gnu_ld
764 with_sysroot
765 enable_libtool_lock
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 LT_SYS_LIBRARY_PATH
776 CPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 runstatedir='${localstatedir}/run'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -runstatedir | --runstatedir | --runstatedi | --runstated \
1069 | --runstate | --runstat | --runsta | --runst | --runs \
1070 | --run | --ru | --r)
1071 ac_prev=runstatedir ;;
1072 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1073 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1074 | --run=* | --ru=* | --r=*)
1075 runstatedir=$ac_optarg ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir runstatedir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures robotfindskitten 2.8284271.702 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root
1377 [DATAROOTDIR/doc/robotfindskitten]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of robotfindskitten 2.8284271.702:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418
1419 Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1423 both]
1424 --with-aix-soname=aix|svr4|both
1425 shared library versioning (aka "SONAME") variant to
1426 provide on AIX, [default=aix].
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1429 compiler's sysroot if not specified).
1430
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 LT_SYS_LIBRARY_PATH
1440 User-defined run-time library search path.
1441 CPP C preprocessor
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <[email protected]>.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 robotfindskitten configure 2.8284271.702
1510 generated by GNU Autoconf 2.69
1511
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_link
1606
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618 else
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626 else
1627 eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_header_compile
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710 fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1738
1739 #ifdef __STDC__
1740 # include <limits.h>
1741 #else
1742 # include <assert.h>
1743 #endif
1744
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main ()
1763 {
1764 return $2 ();
1765 ;
1766 return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_func
1783
1784 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1787 # the include files in INCLUDES and setting the cache variable VAR
1788 # accordingly.
1789 ac_fn_c_check_header_mongrel ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if eval \${$3+:} false; then :
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 else
1802 # Is the header compilable?
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1804 $as_echo_n "checking $2 usability... " >&6; }
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 ac_header_compiler=yes
1812 else
1813 ac_header_compiler=no
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1817 $as_echo "$ac_header_compiler" >&6; }
1818
1819 # Is the header present?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1821 $as_echo_n "checking $2 presence... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_cpp "$LINENO"; then :
1827 ac_header_preproc=yes
1828 else
1829 ac_header_preproc=no
1830 fi
1831 rm -f conftest.err conftest.i conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1833 $as_echo "$ac_header_preproc" >&6; }
1834
1835 # So? What about this header?
1836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1837 yes:no: )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1839 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 ;;
1843 no:yes:* )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1845 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1847 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1849 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1851 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 ( $as_echo "## -------------------------------------- ##
1855 ## Report this to [email protected] ##
1856 ## -------------------------------------- ##"
1857 ) | sed "s/^/$as_me: WARNING: /" >&2
1858 ;;
1859 esac
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 eval "$3=\$ac_header_compiler"
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 fi
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_mongrel
1874 cat >config.log <<_ACEOF
1875 This file contains any messages produced by compilers while
1876 running configure, to aid debugging if configure makes a mistake.
1877
1878 It was created by robotfindskitten $as_me 2.8284271.702, which was
1879 generated by GNU Autoconf 2.69. Invocation command line was
1880
1881 $ $0 $@
1882
1883 _ACEOF
1884 exec 5>>config.log
1885 {
1886 cat <<_ASUNAME
1887 ## --------- ##
1888 ## Platform. ##
1889 ## --------- ##
1890
1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
1908 _ASUNAME
1909
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 $as_echo "PATH: $as_dir"
1916 done
1917 IFS=$as_save_IFS
1918
1919 } >&5
1920
1921 cat >&5 <<_ACEOF
1922
1923
1924 ## ----------- ##
1925 ## Core tests. ##
1926 ## ----------- ##
1927
1928 _ACEOF
1929
1930
1931 # Keep a trace of the command line.
1932 # Strip out --no-create and --no-recursion so they do not pile up.
1933 # Strip out --silent because we don't want to record it for future runs.
1934 # Also quote any args containing shell meta-characters.
1935 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_configure_args=
1937 ac_configure_args0=
1938 ac_configure_args1=
1939 ac_must_keep_next=false
1940 for ac_pass in 1 2
1941 do
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 esac
1952 case $ac_pass in
1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954 2)
1955 as_fn_append ac_configure_args1 " '$ac_arg'"
1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1967 ;;
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1970 fi
1971 as_fn_append ac_configure_args " '$ac_arg'"
1972 ;;
1973 esac
1974 done
1975 done
1976 { ac_configure_args0=; unset ac_configure_args0;}
1977 { ac_configure_args1=; unset ac_configure_args1;}
1978
1979 # When interrupted or exit'd, cleanup temporary files, and complete
1980 # config.log. We remove comments because anyway the quotes in there
1981 # would cause problems or look ugly.
1982 # WARNING: Use '\'' to represent an apostrophe within the trap.
1983 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984 trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 $as_echo "## ---------------- ##
1990 ## Cache variables. ##
1991 ## ---------------- ##"
1992 echo
1993 # The following way of writing the cache mishandles newlines in values,
1994 (
1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in #(
1998 *${as_nl}*)
1999 case $ac_var in #(
2000 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002 esac
2003 case $ac_var in #(
2004 _ | IFS | as_nl) ;; #(
2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006 *) { eval $ac_var=; unset $ac_var;} ;;
2007 esac ;;
2008 esac
2009 done
2010 (set) 2>&1 |
2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012 *${as_nl}ac_space=\ *)
2013 sed -n \
2014 "s/'\''/'\''\\\\'\'''\''/g;
2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016 ;; #(
2017 *)
2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 ;;
2020 esac |
2021 sort
2022 )
2023 echo
2024
2025 $as_echo "## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##"
2028 echo
2029 for ac_var in $ac_subst_vars
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 $as_echo "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038
2039 if test -n "$ac_subst_files"; then
2040 $as_echo "## ------------------- ##
2041 ## File substitutions. ##
2042 ## ------------------- ##"
2043 echo
2044 for ac_var in $ac_subst_files
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 esac
2050 $as_echo "$ac_var='\''$ac_val'\''"
2051 done | sort
2052 echo
2053 fi
2054
2055 if test -s confdefs.h; then
2056 $as_echo "## ----------- ##
2057 ## confdefs.h. ##
2058 ## ----------- ##"
2059 echo
2060 cat confdefs.h
2061 echo
2062 fi
2063 test "$ac_signal" != 0 &&
2064 $as_echo "$as_me: caught signal $ac_signal"
2065 $as_echo "$as_me: exit $exit_status"
2066 } >&5
2067 rm -f core *.core core.conftest.* &&
2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069 exit $exit_status
2070 ' 0
2071 for ac_signal in 1 2 13 15; do
2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073 done
2074 ac_signal=0
2075
2076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2077 rm -f -r conftest* confdefs.h
2078
2079 $as_echo "/* confdefs.h */" > confdefs.h
2080
2081 # Predefined preprocessor variables.
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_NAME "$PACKAGE_NAME"
2085 _ACEOF
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_STRING "$PACKAGE_STRING"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_URL "$PACKAGE_URL"
2105 _ACEOF
2106
2107
2108 # Let the site file select an alternate cache file if it wants to.
2109 # Prefer an explicitly selected file to automatically selected ones.
2110 ac_site_file1=NONE
2111 ac_site_file2=NONE
2112 if test -n "$CONFIG_SITE"; then
2113 # We do not want a PATH search for config.site.
2114 case $CONFIG_SITE in #((
2115 -*) ac_site_file1=./$CONFIG_SITE;;
2116 */*) ac_site_file1=$CONFIG_SITE;;
2117 *) ac_site_file1=./$CONFIG_SITE;;
2118 esac
2119 elif test "x$prefix" != xNONE; then
2120 ac_site_file1=$prefix/share/config.site
2121 ac_site_file2=$prefix/etc/config.site
2122 else
2123 ac_site_file1=$ac_default_prefix/share/config.site
2124 ac_site_file2=$ac_default_prefix/etc/config.site
2125 fi
2126 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2127 do
2128 test "x$ac_site_file" = xNONE && continue
2129 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2132 sed 's/^/| /' "$ac_site_file" >&5
2133 . "$ac_site_file" \
2134 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136 as_fn_error $? "failed to load site script $ac_site_file
2137 See \`config.log' for more details" "$LINENO" 5; }
2138 fi
2139 done
2140
2141 if test -r "$cache_file"; then
2142 # Some versions of bash will fail to source /dev/null (special files
2143 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2144 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2146 $as_echo "$as_me: loading cache $cache_file" >&6;}
2147 case $cache_file in
2148 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2149 *) . "./$cache_file";;
2150 esac
2151 fi
2152 else
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2154 $as_echo "$as_me: creating cache $cache_file" >&6;}
2155 >$cache_file
2156 fi
2157
2158 # Check that the precious variables saved in the cache have kept the same
2159 # value.
2160 ac_cache_corrupted=false
2161 for ac_var in $ac_precious_vars; do
2162 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2163 eval ac_new_set=\$ac_env_${ac_var}_set
2164 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2165 eval ac_new_val=\$ac_env_${ac_var}_value
2166 case $ac_old_set,$ac_new_set in
2167 set,)
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2170 ac_cache_corrupted=: ;;
2171 ,set)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,);;
2176 *)
2177 if test "x$ac_old_val" != "x$ac_new_val"; then
2178 # differences in whitespace do not lead to failure.
2179 ac_old_val_w=`echo x $ac_old_val`
2180 ac_new_val_w=`echo x $ac_new_val`
2181 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2183 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2184 ac_cache_corrupted=:
2185 else
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2187 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2188 eval $ac_var=\$ac_old_val
2189 fi
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2191 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2193 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2194 fi;;
2195 esac
2196 # Pass precious variables to config.status.
2197 if test "$ac_new_set" = set; then
2198 case $ac_new_val in
2199 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2200 *) ac_arg=$ac_var=$ac_new_val ;;
2201 esac
2202 case " $ac_configure_args " in
2203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2204 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2205 esac
2206 fi
2207 done
2208 if $ac_cache_corrupted; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2212 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2213 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214 fi
2215 ## -------------------- ##
2216 ## Main body of script. ##
2217 ## -------------------- ##
2218
2219 ac_ext=c
2220 ac_cpp='$CPP $CPPFLAGS'
2221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
2225
2226 am__api_version='1.15'
2227
2228 ac_aux_dir=
2229 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2242 fi
2243 done
2244 if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246 fi
2247
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
2256
2257 # Find a good install program. We prefer a C program (faster),
2258 # so one script is as good as another. But avoid the broken or
2259 # incompatible versions:
2260 # SysV /etc/install, /usr/sbin/install
2261 # SunOS /usr/etc/install
2262 # IRIX /sbin/install
2263 # AIX /bin/install
2264 # AmigaOS /C/install, which installs bootblocks on floppy discs
2265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268 # OS/2's system install, which has a completely different semantic
2269 # ./install, which can be erroneously created by make from ./install.sh.
2270 # Reject install programs that cannot install multiple files.
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2273 if test -z "$INSTALL"; then
2274 if ${ac_cv_path_install+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 # Account for people who put trailing slashes in PATH elements.
2283 case $as_dir/ in #((
2284 ./ | .// | /[cC]/* | \
2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287 /usr/ucb/* ) ;;
2288 *)
2289 # OSF1 and SCO ODT 3.0 have their own names for install.
2290 # Don't use installbsd from OSF since it installs stuff as root
2291 # by default.
2292 for ac_prog in ginstall scoinst install; do
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295 if test $ac_prog = install &&
2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # AIX install. It has an incompatible calling convention.
2298 :
2299 elif test $ac_prog = install &&
2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301 # program-specific install script used by HP pwplus--don't use.
2302 :
2303 else
2304 rm -rf conftest.one conftest.two conftest.dir
2305 echo one > conftest.one
2306 echo two > conftest.two
2307 mkdir conftest.dir
2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309 test -s conftest.one && test -s conftest.two &&
2310 test -s conftest.dir/conftest.one &&
2311 test -s conftest.dir/conftest.two
2312 then
2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 break 3
2315 fi
2316 fi
2317 fi
2318 done
2319 done
2320 ;;
2321 esac
2322
2323 done
2324 IFS=$as_save_IFS
2325
2326 rm -rf conftest.one conftest.two conftest.dir
2327
2328 fi
2329 if test "${ac_cv_path_install+set}" = set; then
2330 INSTALL=$ac_cv_path_install
2331 else
2332 # As a last resort, use the slow shell script. Don't cache a
2333 # value for INSTALL within a source directory, because that will
2334 # break other packages using the cache if that directory is
2335 # removed, or if the value is a relative name.
2336 INSTALL=$ac_install_sh
2337 fi
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340 $as_echo "$INSTALL" >&6; }
2341
2342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343 # It thinks the first close brace ends the variable substitution.
2344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351 $as_echo_n "checking whether build environment is sane... " >&6; }
2352 # Reject unsafe characters in $srcdir or the absolute working directory
2353 # name. Accept space and tab only in the latter.
2354 am_lf='
2355 '
2356 case `pwd` in
2357 *[\\\"\#\$\&\'\`$am_lf]*)
2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359 esac
2360 case $srcdir in
2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2362 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363 esac
2364
2365 # Do 'set' in a subshell so we don't clobber the current shell's
2366 # arguments. Must try -L first in case configure is actually a
2367 # symlink; some systems play weird games with the mod time of symlinks
2368 # (eg FreeBSD returns the mod time of the symlink's containing
2369 # directory).
2370 if (
2371 am_has_slept=no
2372 for am_try in 1 2; do
2373 echo "timestamp, slept: $am_has_slept" > conftest.file
2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375 if test "$*" = "X"; then
2376 # -L didn't work.
2377 set X `ls -t "$srcdir/configure" conftest.file`
2378 fi
2379 if test "$*" != "X $srcdir/configure conftest.file" \
2380 && test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382 # If neither matched, then we have a broken ls. This can happen
2383 # if, for instance, CONFIG_SHELL is bash and it inherits a
2384 # broken ls alias from the environment. This has actually
2385 # happened. Such a system could not be considered "sane".
2386 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2387 alias in your environment" "$LINENO" 5
2388 fi
2389 if test "$2" = conftest.file || test $am_try -eq 2; then
2390 break
2391 fi
2392 # Just in case.
2393 sleep 1
2394 am_has_slept=yes
2395 done
2396 test "$2" = conftest.file
2397 )
2398 then
2399 # Ok.
2400 :
2401 else
2402 as_fn_error $? "newly created file is older than distributed files!
2403 Check your system clock" "$LINENO" 5
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406 $as_echo "yes" >&6; }
2407 # If we didn't sleep, we still need to ensure time stamps of config.status and
2408 # generated files are strictly newer.
2409 am_sleep_pid=
2410 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411 ( sleep 1 ) &
2412 am_sleep_pid=$!
2413 fi
2414
2415 rm -f conftest.file
2416
2417 test "$program_prefix" != NONE &&
2418 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419 # Use a double $ so make ignores it.
2420 test "$program_suffix" != NONE &&
2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422 # Double any \ or $.
2423 # By default was `s,x,x', remove it if useless.
2424 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426
2427 # Expand $ac_aux_dir to an absolute path.
2428 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2429
2430 if test x"${MISSING+set}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434 *)
2435 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436 esac
2437 fi
2438 # Use eval to expand $SHELL
2439 if eval "$MISSING --is-lightweight"; then
2440 am_missing_run="$MISSING "
2441 else
2442 am_missing_run=
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445 fi
2446
2447 if test x"${install_sh+set}" != xset; then
2448 case $am_aux_dir in
2449 *\ * | *\ *)
2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451 *)
2452 install_sh="\${SHELL} $am_aux_dir/install-sh"
2453 esac
2454 fi
2455
2456 # Installed binaries are usually stripped using 'strip' when the user
2457 # run "make install-strip". However 'strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the 'STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_STRIP+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492 $as_echo "$STRIP" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 fi
2500 if test -z "$ac_cv_prog_STRIP"; then
2501 ac_ct_STRIP=$STRIP
2502 # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test -n "$ac_ct_STRIP"; then
2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_STRIP="strip"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532 $as_echo "$ac_ct_STRIP" >&6; }
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2536 fi
2537
2538 if test "x$ac_ct_STRIP" = x; then
2539 STRIP=":"
2540 else
2541 case $cross_compiling:$ac_tool_warned in
2542 yes:)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547 STRIP=$ac_ct_STRIP
2548 fi
2549 else
2550 STRIP="$ac_cv_prog_STRIP"
2551 fi
2552
2553 fi
2554 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558 if test -z "$MKDIR_P"; then
2559 if ${ac_cv_path_mkdir+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_prog in mkdir gmkdir; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571 'mkdir (GNU coreutils) '* | \
2572 'mkdir (coreutils) '* | \
2573 'mkdir (fileutils) '4.1*)
2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575 break 3;;
2576 esac
2577 done
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583
2584 test -d ./--version && rmdir ./--version
2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
2587 else
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 MKDIR_P="$ac_install_sh -d"
2593 fi
2594 fi
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596 $as_echo "$MKDIR_P" >&6; }
2597
2598 for ac_prog in gawk mawk nawk awk
2599 do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 AWK=$ac_cv_prog_AWK
2628 if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630 $as_echo "$AWK" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 test -n "$AWK" && break
2638 done
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642 set x ${MAKE-make}
2643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2660 fi
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 SET_MAKE=
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2669 fi
2670
2671 rm -rf .tst 2>/dev/null
2672 mkdir .tst 2>/dev/null
2673 if test -d .tst; then
2674 am__leading_dot=.
2675 else
2676 am__leading_dot=_
2677 fi
2678 rmdir .tst 2>/dev/null
2679
2680 # Check whether --enable-silent-rules was given.
2681 if test "${enable_silent_rules+set}" = set; then :
2682 enableval=$enable_silent_rules;
2683 fi
2684
2685 case $enable_silent_rules in # (((
2686 yes) AM_DEFAULT_VERBOSITY=0;;
2687 no) AM_DEFAULT_VERBOSITY=1;;
2688 *) AM_DEFAULT_VERBOSITY=1;;
2689 esac
2690 am_make=${MAKE-make}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693 if ${am_cv_make_support_nested_variables+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if $as_echo 'TRUE=$(BAR$(V))
2697 BAR0=false
2698 BAR1=true
2699 V=1
2700 am__doit:
2701 @$(TRUE)
2702 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703 am_cv_make_support_nested_variables=yes
2704 else
2705 am_cv_make_support_nested_variables=no
2706 fi
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2710 if test $am_cv_make_support_nested_variables = yes; then
2711 AM_V='$(V)'
2712 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713 else
2714 AM_V=$AM_DEFAULT_VERBOSITY
2715 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716 fi
2717 AM_BACKSLASH='\'
2718
2719 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721 # is not polluted with repeated "-I."
2722 am__isrc=' -I$(srcdir)'
2723 # test to see if srcdir already configured
2724 if test -f $srcdir/config.status; then
2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726 fi
2727 fi
2728
2729 # test whether we have cygpath
2730 if test -z "$CYGPATH_W"; then
2731 if (cygpath --version) >/dev/null 2>/dev/null; then
2732 CYGPATH_W='cygpath -w'
2733 else
2734 CYGPATH_W=echo
2735 fi
2736 fi
2737
2738
2739 # Define the identity of the package.
2740 PACKAGE='robotfindskitten'
2741 VERSION='2.8284271.702'
2742
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE "$PACKAGE"
2746 _ACEOF
2747
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define VERSION "$VERSION"
2751 _ACEOF
2752
2753 # Some tools Automake needs.
2754
2755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769 # For better backward compatibility. To be removed once Automake 1.9.x
2770 # dies out for good. For more background, see:
2771 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773 mkdir_p='$(MKDIR_P)'
2774
2775 # We need awk for the "check" target (and possibly the TAP driver). The
2776 # system "awk" is bad on some platforms.
2777 # Always define AMTAR for backward compatibility. Yes, it's still used
2778 # in the wild :-( We should find a proper way to deprecate it ...
2779 AMTAR='$${TAR-tar}'
2780
2781
2782 # We'll loop over all known methods to create a tar archive until one works.
2783 _am_tools='gnutar pax cpio none'
2784
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792 # POSIX will say in a future version that running "rm -f" with no argument
2793 # is OK; and we want to be able to make that assumption in our Makefile
2794 # recipes. So use an aggressive probe to check that the usage we want is
2795 # actually supported "in the wild" to an acceptable degree.
2796 # See automake bug#10828.
2797 # To make any issue more visible, cause the running configure to be aborted
2798 # by default if the 'rm' program in use doesn't match our expectations; the
2799 # user can still override this though.
2800 if rm -f && rm -fr && rm -rf; then : OK; else
2801 cat >&2 <<'END'
2802 Oops!
2803
2804 Your 'rm' program seems unable to run without file operands specified
2805 on the command line, even when the '-f' option is present. This is contrary
2806 to the behaviour of most rm programs out there, and not conforming with
2807 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2808
2809 Please tell [email protected] about your system, including the value
2810 of your $PATH and any error possibly output before this message. This
2811 can help us improve future automake versions.
2812
2813 END
2814 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2815 echo 'Configuration will proceed anyway, since you have set the' >&2
2816 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2817 echo >&2
2818 else
2819 cat >&2 <<'END'
2820 Aborting the configuration process, to ensure you take notice of the issue.
2821
2822 You can download and install GNU coreutils to get an 'rm' implementation
2823 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2824
2825 If you want to complete the configuration process using your problematic
2826 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2827 to "yes", and re-run configure.
2828
2829 END
2830 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2831 fi
2832 fi
2833
2834 # Check whether --enable-silent-rules was given.
2835 if test "${enable_silent_rules+set}" = set; then :
2836 enableval=$enable_silent_rules;
2837 fi
2838
2839 case $enable_silent_rules in # (((
2840 yes) AM_DEFAULT_VERBOSITY=0;;
2841 no) AM_DEFAULT_VERBOSITY=1;;
2842 *) AM_DEFAULT_VERBOSITY=0;;
2843 esac
2844 am_make=${MAKE-make}
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2846 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2847 if ${am_cv_make_support_nested_variables+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if $as_echo 'TRUE=$(BAR$(V))
2851 BAR0=false
2852 BAR1=true
2853 V=1
2854 am__doit:
2855 @$(TRUE)
2856 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2857 am_cv_make_support_nested_variables=yes
2858 else
2859 am_cv_make_support_nested_variables=no
2860 fi
2861 fi
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2863 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2864 if test $am_cv_make_support_nested_variables = yes; then
2865 AM_V='$(V)'
2866 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2867 else
2868 AM_V=$AM_DEFAULT_VERBOSITY
2869 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2870 fi
2871 AM_BACKSLASH='\'
2872
2873
2874
2875 ac_config_headers="$ac_config_headers config.h"
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882
2883
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2921 else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929 ac_ct_CC=$CC
2930 # Extract the first word of "gcc", so it can be a program name with args.
2931 set dummy gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="gcc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975 CC=$ac_ct_CC
2976 fi
2977 else
2978 CC="$ac_cv_prog_CC"
2979 fi
2980
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="${ac_tool_prefix}cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020 fi
3021 fi
3022 if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024 set dummy cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 ac_prog_rejected=no
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042 ac_prog_rejected=yes
3043 continue
3044 fi
3045 ac_cv_prog_CC="cc"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 if test $ac_prog_rejected = yes; then
3054 # We found a bogon in the path, so make sure we never use it.
3055 set dummy $ac_cv_prog_CC
3056 shift
3057 if test $# != 0; then
3058 # We chose a different compiler from the bogus one.
3059 # However, it has the same basename, so the bogon will be chosen
3060 # first if we set CC to just the basename; use the full file name.
3061 shift
3062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063 fi
3064 fi
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
3080 for ac_prog in cl.exe
3081 do
3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 test -n "$CC" && break
3120 done
3121 fi
3122 if test -z "$CC"; then
3123 ac_ct_CC=$CC
3124 for ac_prog in cl.exe
3125 do
3126 # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 set dummy $ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="$ac_prog"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 test -n "$ac_ct_CC" && break
3164 done
3165
3166 if test "x$ac_ct_CC" = x; then
3167 CC=""
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 CC=$ac_ct_CC
3176 fi
3177 fi
3178
3179 fi
3180
3181
3182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details" "$LINENO" 5; }
3186
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3189 set X $ac_compile
3190 ac_compiler=$2
3191 for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3200 ac_status=$?
3201 if test -s conftest.err; then
3202 sed '10a\
3203 ... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
3206 fi
3207 rm -f conftest.er1 conftest.err
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210 done
3211
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3225 # Try to create an executable without -o first, disregard a.out.
3226 # It will help us diagnose broken compilers, and finding out an intuition
3227 # of exeext.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229 $as_echo_n "checking whether the C compiler works... " >&6; }
3230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231
3232 # The possible output files:
3233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234
3235 ac_rmfiles=
3236 for ac_file in $ac_files
3237 do
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241 esac
3242 done
3243 rm -f $ac_rmfiles
3244
3245 if { { ac_try="$ac_link_default"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link_default") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3260 # Autoconf.
3261 for ac_file in $ac_files ''
3262 do
3263 test -f "$ac_file" || continue
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266 ;;
3267 [ab].out )
3268 # We found the default executable, but exeext='' is most
3269 # certainly right.
3270 break;;
3271 *.* )
3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3273 then :; else
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 fi
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3280 # actually working.
3281 break;;
3282 * )
3283 break;;
3284 esac
3285 done
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288 else
3289 ac_file=''
3290 fi
3291 if test -z "$ac_file"; then :
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See \`config.log' for more details" "$LINENO" 5; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308 $as_echo "$ac_file" >&6; }
3309 ac_exeext=$ac_cv_exeext
3310
3311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { ac_try="$ac_link"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3329 # `rm'.
3330 for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 break;;
3336 * ) break;;
3337 esac
3338 done
3339 else
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 fi
3345 rm -f conftest conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3348
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3351 ac_exeext=$EXEEXT
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3354 #include <stdio.h>
3355 int
3356 main ()
3357 {
3358 FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 ac_clean_files="$ac_clean_files conftest.out"
3366 # Check that the compiler produces executables we can run. If not, either
3367 # the compiler is broken, or we cross compile.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369 $as_echo_n "checking whether we are cross compiling... " >&6; }
3370 if test "$cross_compiling" != yes; then
3371 { { ac_try="$ac_link"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 if { ac_try='./conftest$ac_cv_exeext'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3393 cross_compiling=no
3394 else
3395 if test "$cross_compiling" = maybe; then
3396 cross_compiling=yes
3397 else
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details" "$LINENO" 5; }
3403 fi
3404 fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407 $as_echo "$cross_compiling" >&6; }
3408
3409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412 $as_echo_n "checking for suffix of object files... " >&6; }
3413 if ${ac_cv_objext+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.o conftest.obj
3428 if { { ac_try="$ac_compile"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compile") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444 break;;
3445 esac
3446 done
3447 else
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 $as_echo "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3461 ac_objext=$OBJEXT
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464 if ${ac_cv_c_compiler_gnu+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469
3470 int
3471 main ()
3472 {
3473 #ifndef __GNUC__
3474 choke me
3475 #endif
3476
3477 ;
3478 return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482 ac_compiler_gnu=yes
3483 else
3484 ac_compiler_gnu=no
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3493 GCC=yes
3494 else
3495 GCC=
3496 fi
3497 ac_test_CFLAGS=${CFLAGS+set}
3498 ac_save_CFLAGS=$CFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3501 if ${ac_cv_prog_cc_g+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 ac_save_c_werror_flag=$ac_c_werror_flag
3505 ac_c_werror_flag=yes
3506 ac_cv_prog_cc_g=no
3507 CFLAGS="-g"
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510
3511 int
3512 main ()
3513 {
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_g=yes
3521 else
3522 CFLAGS=""
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525
3526 int
3527 main ()
3528 {
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535
3536 else
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 CFLAGS="-g"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541
3542 int
3543 main ()
3544 {
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_g=yes
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561 $as_echo "$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3566 CFLAGS="-g -O2"
3567 else
3568 CFLAGS="-g"
3569 fi
3570 else
3571 if test "$GCC" = yes; then
3572 CFLAGS="-O2"
3573 else
3574 CFLAGS=
3575 fi
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579 if ${ac_cv_prog_cc_c89+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 ac_cv_prog_cc_c89=no
3583 ac_save_CC=$CC
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586 #include <stdarg.h>
3587 #include <stdio.h>
3588 struct stat;
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3593 char **p;
3594 int i;
3595 {
3596 return p[i];
3597 }
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3599 {
3600 char *s;
3601 va_list v;
3602 va_start (v,p);
3603 s = g (p, va_arg (v,int));
3604 va_end (v);
3605 return s;
3606 }
3607
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3619 #define FOO(x) 'x'
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 int argc;
3627 char **argv;
3628 int
3629 main ()
3630 {
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638 do
3639 CC="$ac_save_CC $ac_arg"
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_c89=$ac_arg
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3645 done
3646 rm -f conftest.$ac_ext
3647 CC=$ac_save_CC
3648
3649 fi
3650 # AC_CACHE_VAL
3651 case "x$ac_cv_prog_cc_c89" in
3652 x)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3655 xno)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3658 *)
3659 CC="$CC $ac_cv_prog_cc_c89"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662 esac
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3664
3665 fi
3666
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673 ac_ext=c
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3679 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3680 if ${am_cv_prog_cc_c_o+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685
3686 int
3687 main ()
3688 {
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 # Make sure it works both with $CC and with simple cc.
3695 # Following AC_PROG_CC_C_O, we do the test twice because some
3696 # compilers refuse to overwrite an existing .o file with -o,
3697 # though they will create one.
3698 am_cv_prog_cc_c_o=yes
3699 for am_i in 1 2; do
3700 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3701 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } \
3705 && test -f conftest2.$ac_objext; then
3706 : OK
3707 else
3708 am_cv_prog_cc_c_o=no
3709 break
3710 fi
3711 done
3712 rm -f core conftest*
3713 unset am_i
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3716 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3717 if test "$am_cv_prog_cc_c_o" != yes; then
3718 # Losing compiler, so override with the script.
3719 # FIXME: It is wrong to rewrite CC.
3720 # But if we don't then we get into trouble of one sort or another.
3721 # A longer-term fix would be to have automake use am__CC in this case,
3722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3723 CC="$am_aux_dir/compile $CC"
3724 fi
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730
3731 DEPDIR="${am__leading_dot}deps"
3732
3733 ac_config_commands="$ac_config_commands depfiles"
3734
3735
3736 am_make=${MAKE-make}
3737 cat > confinc << 'END'
3738 am__doit:
3739 @echo this is the am__doit target
3740 .PHONY: am__doit
3741 END
3742 # If we don't find an include directive, just comment out the code.
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3744 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3745 am__include="#"
3746 am__quote=
3747 _am_result=none
3748 # First try GNU make style include.
3749 echo "include confinc" > confmf
3750 # Ignore all kinds of additional output from 'make'.
3751 case `$am_make -s -f confmf 2> /dev/null` in #(
3752 *the\ am__doit\ target*)
3753 am__include=include
3754 am__quote=
3755 _am_result=GNU
3756 ;;
3757 esac
3758 # Now try BSD make style include.
3759 if test "$am__include" = "#"; then
3760 echo '.include "confinc"' > confmf
3761 case `$am_make -s -f confmf 2> /dev/null` in #(
3762 *the\ am__doit\ target*)
3763 am__include=.include
3764 am__quote="\""
3765 _am_result=BSD
3766 ;;
3767 esac
3768 fi
3769
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3772 $as_echo "$_am_result" >&6; }
3773 rm -f confinc confmf
3774
3775 # Check whether --enable-dependency-tracking was given.
3776 if test "${enable_dependency_tracking+set}" = set; then :
3777 enableval=$enable_dependency_tracking;
3778 fi
3779
3780 if test "x$enable_dependency_tracking" != xno; then
3781 am_depcomp="$ac_aux_dir/depcomp"
3782 AMDEPBACKSLASH='\'
3783 am__nodep='_no'
3784 fi
3785 if test "x$enable_dependency_tracking" != xno; then
3786 AMDEP_TRUE=
3787 AMDEP_FALSE='#'
3788 else
3789 AMDEP_TRUE='#'
3790 AMDEP_FALSE=
3791 fi
3792
3793
3794
3795 depcc="$CC" am_compiler_list=
3796
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
3799 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3803 # We make a subdir and do the tests there. Otherwise we can end up
3804 # making bogus files that we don't know about and never remove. For
3805 # instance it was reported that on HP-UX the gcc test will end up
3806 # making a dummy file named 'D' -- because '-MD' means "put the output
3807 # in D".
3808 rm -rf conftest.dir
3809 mkdir conftest.dir
3810 # Copy depcomp to subdir because otherwise we won't find it if we're
3811 # using a relative directory.
3812 cp "$am_depcomp" conftest.dir
3813 cd conftest.dir
3814 # We will build objects and dependencies in a subdirectory because
3815 # it helps to detect inapplicable dependency modes. For instance
3816 # both Tru64's cc and ICC support -MD to output dependencies as a
3817 # side effect of compilation, but ICC will put the dependencies in
3818 # the current directory while Tru64 will put them in the object
3819 # directory.
3820 mkdir sub
3821
3822 am_cv_CC_dependencies_compiler_type=none
3823 if test "$am_compiler_list" = ""; then
3824 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3825 fi
3826 am__universal=false
3827 case " $depcc " in #(
3828 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3829 esac
3830
3831 for depmode in $am_compiler_list; do
3832 # Setup a source with many dependencies, because some compilers
3833 # like to wrap large dependency lists on column 80 (with \), and
3834 # we should not choose a depcomp mode which is confused by this.
3835 #
3836 # We need to recreate these files for each test, as the compiler may
3837 # overwrite some of them when testing with obscure command lines.
3838 # This happens at least with the AIX C compiler.
3839 : > sub/conftest.c
3840 for i in 1 2 3 4 5 6; do
3841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3842 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3843 # Solaris 10 /bin/sh.
3844 echo '/* dummy */' > sub/conftst$i.h
3845 done
3846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3847
3848 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3849 # mode. It turns out that the SunPro C++ compiler does not properly
3850 # handle '-M -o', and we need to detect this. Also, some Intel
3851 # versions had trouble with output in subdirs.
3852 am__obj=sub/conftest.${OBJEXT-o}
3853 am__minus_obj="-o $am__obj"
3854 case $depmode in
3855 gcc)
3856 # This depmode causes a compiler race in universal mode.
3857 test "$am__universal" = false || continue
3858 ;;
3859 nosideeffect)
3860 # After this tag, mechanisms are not by side-effect, so they'll
3861 # only be used when explicitly requested.
3862 if test "x$enable_dependency_tracking" = xyes; then
3863 continue
3864 else
3865 break
3866 fi
3867 ;;
3868 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3869 # This compiler won't grok '-c -o', but also, the minuso test has
3870 # not run yet. These depmodes are late enough in the game, and
3871 # so weak that their functioning should not be impacted.
3872 am__obj=conftest.${OBJEXT-o}
3873 am__minus_obj=
3874 ;;
3875 none) break ;;
3876 esac
3877 if depmode=$depmode \
3878 source=sub/conftest.c object=$am__obj \
3879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3880 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3881 >/dev/null 2>conftest.err &&
3882 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3884 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3886 # icc doesn't choke on unknown options, it will just issue warnings
3887 # or remarks (even with -Werror). So we grep stderr for any message
3888 # that says an option was ignored or not supported.
3889 # When given -MP, icc 7.0 and 7.1 complain thusly:
3890 # icc: Command line warning: ignoring option '-M'; no argument required
3891 # The diagnosis changed in icc 8.0:
3892 # icc: Command line remark: option '-MP' not supported
3893 if (grep 'ignoring option' conftest.err ||
3894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3895 am_cv_CC_dependencies_compiler_type=$depmode
3896 break
3897 fi
3898 fi
3899 done
3900
3901 cd ..
3902 rm -rf conftest.dir
3903 else
3904 am_cv_CC_dependencies_compiler_type=none
3905 fi
3906
3907 fi
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3909 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3911
3912 if
3913 test "x$enable_dependency_tracking" != xno \
3914 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3915 am__fastdepCC_TRUE=
3916 am__fastdepCC_FALSE='#'
3917 else
3918 am__fastdepCC_TRUE='#'
3919 am__fastdepCC_FALSE=
3920 fi
3921
3922
3923 case `pwd` in
3924 *\ * | *\ *)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3926 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3927 esac
3928
3929
3930
3931 macro_version='2.4.6'
3932 macro_revision='2.4.6'
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946 ltmain=$ac_aux_dir/ltmain.sh
3947
3948 # Make sure we can run config.sub.
3949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3950 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3953 $as_echo_n "checking build system type... " >&6; }
3954 if ${ac_cv_build+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 ac_build_alias=$build_alias
3958 test "x$ac_build_alias" = x &&
3959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3960 test "x$ac_build_alias" = x &&
3961 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3964
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3967 $as_echo "$ac_cv_build" >&6; }
3968 case $ac_cv_build in
3969 *-*-*) ;;
3970 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3971 esac
3972 build=$ac_cv_build
3973 ac_save_IFS=$IFS; IFS='-'
3974 set x $ac_cv_build
3975 shift
3976 build_cpu=$1
3977 build_vendor=$2
3978 shift; shift
3979 # Remember, the first character of IFS is used to create $*,
3980 # except with old shells:
3981 build_os=$*
3982 IFS=$ac_save_IFS
3983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3987 $as_echo_n "checking host system type... " >&6; }
3988 if ${ac_cv_host+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test "x$host_alias" = x; then
3992 ac_cv_host=$ac_cv_build
3993 else
3994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3995 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3996 fi
3997
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4000 $as_echo "$ac_cv_host" >&6; }
4001 case $ac_cv_host in
4002 *-*-*) ;;
4003 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4004 esac
4005 host=$ac_cv_host
4006 ac_save_IFS=$IFS; IFS='-'
4007 set x $ac_cv_host
4008 shift
4009 host_cpu=$1
4010 host_vendor=$2
4011 shift; shift
4012 # Remember, the first character of IFS is used to create $*,
4013 # except with old shells:
4014 host_os=$*
4015 IFS=$ac_save_IFS
4016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4017
4018
4019 # Backslashify metacharacters that are still active within
4020 # double-quoted strings.
4021 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4022
4023 # Same as above, but do not quote variable references.
4024 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4025
4026 # Sed substitution to delay expansion of an escaped shell variable in a
4027 # double_quote_subst'ed string.
4028 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4029
4030 # Sed substitution to delay expansion of an escaped single quote.
4031 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4032
4033 # Sed substitution to avoid accidental globbing in evaled expressions
4034 no_glob_subst='s/\*/\\\*/g'
4035
4036 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4037 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4041 $as_echo_n "checking how to print strings... " >&6; }
4042 # Test print first, because it will be a builtin if present.
4043 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4044 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4045 ECHO='print -r --'
4046 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4047 ECHO='printf %s\n'
4048 else
4049 # Use this function as a fallback that always works.
4050 func_fallback_echo ()
4051 {
4052 eval 'cat <<_LTECHO_EOF
4053 $1
4054 _LTECHO_EOF'
4055 }
4056 ECHO='func_fallback_echo'
4057 fi
4058
4059 # func_echo_all arg...
4060 # Invoke $ECHO with all args, space-separated.
4061 func_echo_all ()
4062 {
4063 $ECHO ""
4064 }
4065
4066 case $ECHO in
4067 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4068 $as_echo "printf" >&6; } ;;
4069 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4070 $as_echo "print -r" >&6; } ;;
4071 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4072 $as_echo "cat" >&6; } ;;
4073 esac
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4089 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4090 if ${ac_cv_path_SED+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4094 for ac_i in 1 2 3 4 5 6 7; do
4095 ac_script="$ac_script$as_nl$ac_script"
4096 done
4097 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4098 { ac_script=; unset ac_script;}
4099 if test -z "$SED"; then
4100 ac_path_SED_found=false
4101 # Loop through the user's path and test for each of PROGNAME-LIST
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_prog in sed gsed; do
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4110 as_fn_executable_p "$ac_path_SED" || continue
4111 # Check for GNU ac_path_SED and select it if it is found.
4112 # Check for GNU $ac_path_SED
4113 case `"$ac_path_SED" --version 2>&1` in
4114 *GNU*)
4115 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4116 *)
4117 ac_count=0
4118 $as_echo_n 0123456789 >"conftest.in"
4119 while :
4120 do
4121 cat "conftest.in" "conftest.in" >"conftest.tmp"
4122 mv "conftest.tmp" "conftest.in"
4123 cp "conftest.in" "conftest.nl"
4124 $as_echo '' >> "conftest.nl"
4125 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127 as_fn_arith $ac_count + 1 && ac_count=$as_val
4128 if test $ac_count -gt ${ac_path_SED_max-0}; then
4129 # Best one so far, save it but keep looking for a better one
4130 ac_cv_path_SED="$ac_path_SED"
4131 ac_path_SED_max=$ac_count
4132 fi
4133 # 10*(2^10) chars as input seems more than enough
4134 test $ac_count -gt 10 && break
4135 done
4136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137 esac
4138
4139 $ac_path_SED_found && break 3
4140 done
4141 done
4142 done
4143 IFS=$as_save_IFS
4144 if test -z "$ac_cv_path_SED"; then
4145 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4146 fi
4147 else
4148 ac_cv_path_SED=$SED
4149 fi
4150
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4153 $as_echo "$ac_cv_path_SED" >&6; }
4154 SED="$ac_cv_path_SED"
4155 rm -f conftest.sed
4156
4157 test -z "$SED" && SED=sed
4158 Xsed="$SED -e 1s/^X//"
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4172 if ${ac_cv_path_GREP+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -z "$GREP"; then
4176 ac_path_GREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in grep ggrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4186 as_fn_executable_p "$ac_path_GREP" || continue
4187 # Check for GNU ac_path_GREP and select it if it is found.
4188 # Check for GNU $ac_path_GREP
4189 case `"$ac_path_GREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo 'GREP' >> "conftest.nl"
4201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_GREP="$ac_path_GREP"
4207 ac_path_GREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_GREP_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_GREP"; then
4221 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_GREP=$GREP
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4229 $as_echo "$ac_cv_path_GREP" >&6; }
4230 GREP="$ac_cv_path_GREP"
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4234 $as_echo_n "checking for egrep... " >&6; }
4235 if ${ac_cv_path_EGREP+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4239 then ac_cv_path_EGREP="$GREP -E"
4240 else
4241 if test -z "$EGREP"; then
4242 ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in egrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252 as_fn_executable_p "$ac_path_EGREP" || continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4258 *)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP="$ac_path_EGREP"
4273 ac_path_EGREP_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281 $ac_path_EGREP_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_EGREP"; then
4287 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288 fi
4289 else
4290 ac_cv_path_EGREP=$EGREP
4291 fi
4292
4293 fi
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4296 $as_echo "$ac_cv_path_EGREP" >&6; }
4297 EGREP="$ac_cv_path_EGREP"
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4301 $as_echo_n "checking for fgrep... " >&6; }
4302 if ${ac_cv_path_FGREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4306 then ac_cv_path_FGREP="$GREP -F"
4307 else
4308 if test -z "$FGREP"; then
4309 ac_path_FGREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in fgrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4319 as_fn_executable_p "$ac_path_FGREP" || continue
4320 # Check for GNU ac_path_FGREP and select it if it is found.
4321 # Check for GNU $ac_path_FGREP
4322 case `"$ac_path_FGREP" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4325 *)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'FGREP' >> "conftest.nl"
4334 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_FGREP="$ac_path_FGREP"
4340 ac_path_FGREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348 $ac_path_FGREP_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_FGREP"; then
4354 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 fi
4356 else
4357 ac_cv_path_FGREP=$FGREP
4358 fi
4359
4360 fi
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4363 $as_echo "$ac_cv_path_FGREP" >&6; }
4364 FGREP="$ac_cv_path_FGREP"
4365
4366
4367 test -z "$GREP" && GREP=grep
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387 # Check whether --with-gnu-ld was given.
4388 if test "${with_gnu_ld+set}" = set; then :
4389 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4390 else
4391 with_gnu_ld=no
4392 fi
4393
4394 ac_prog=ld
4395 if test yes = "$GCC"; then
4396 # Check if gcc -print-prog-name=ld gives a path.
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4398 $as_echo_n "checking for ld used by $CC... " >&6; }
4399 case $host in
4400 *-*-mingw*)
4401 # gcc leaves a trailing carriage return, which upsets mingw
4402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4403 *)
4404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4405 esac
4406 case $ac_prog in
4407 # Accept absolute paths.
4408 [\\/]* | ?:[\\/]*)
4409 re_direlt='/[^/][^/]*/\.\./'
4410 # Canonicalize the pathname of ld
4411 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4412 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4413 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4414 done
4415 test -z "$LD" && LD=$ac_prog
4416 ;;
4417 "")
4418 # If it fails, then pretend we aren't using GCC.
4419 ac_prog=ld
4420 ;;
4421 *)
4422 # If it is relative, then search for the first ld in PATH.
4423 with_gnu_ld=unknown
4424 ;;
4425 esac
4426 elif test yes = "$with_gnu_ld"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4428 $as_echo_n "checking for GNU ld... " >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4431 $as_echo_n "checking for non-GNU ld... " >&6; }
4432 fi
4433 if ${lt_cv_path_LD+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -z "$LD"; then
4437 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4438 for ac_dir in $PATH; do
4439 IFS=$lt_save_ifs
4440 test -z "$ac_dir" && ac_dir=.
4441 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4442 lt_cv_path_LD=$ac_dir/$ac_prog
4443 # Check to see if the program is GNU ld. I'd rather use --version,
4444 # but apparently some variants of GNU ld only accept -v.
4445 # Break only if it was the GNU/non-GNU ld that we prefer.
4446 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4447 *GNU* | *'with BFD'*)
4448 test no != "$with_gnu_ld" && break
4449 ;;
4450 *)
4451 test yes != "$with_gnu_ld" && break
4452 ;;
4453 esac
4454 fi
4455 done
4456 IFS=$lt_save_ifs
4457 else
4458 lt_cv_path_LD=$LD # Let the user override the test with a path.
4459 fi
4460 fi
4461
4462 LD=$lt_cv_path_LD
4463 if test -n "$LD"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4465 $as_echo "$LD" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4472 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4473 if ${lt_cv_prog_gnu_ld+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4477 case `$LD -v 2>&1 </dev/null` in
4478 *GNU* | *'with BFD'*)
4479 lt_cv_prog_gnu_ld=yes
4480 ;;
4481 *)
4482 lt_cv_prog_gnu_ld=no
4483 ;;
4484 esac
4485 fi
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4487 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4488 with_gnu_ld=$lt_cv_prog_gnu_ld
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4499 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4500 if ${lt_cv_path_NM+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$NM"; then
4504 # Let the user override the test.
4505 lt_cv_path_NM=$NM
4506 else
4507 lt_nm_to_check=${ac_tool_prefix}nm
4508 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4509 lt_nm_to_check="$lt_nm_to_check nm"
4510 fi
4511 for lt_tmp_nm in $lt_nm_to_check; do
4512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4513 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4514 IFS=$lt_save_ifs
4515 test -z "$ac_dir" && ac_dir=.
4516 tmp_nm=$ac_dir/$lt_tmp_nm
4517 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4518 # Check to see if the nm accepts a BSD-compat flag.
4519 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4520 # nm: unknown option "B" ignored
4521 # Tru64's nm complains that /dev/null is an invalid object file
4522 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4523 case $build_os in
4524 mingw*) lt_bad_file=conftest.nm/nofile ;;
4525 *) lt_bad_file=/dev/null ;;
4526 esac
4527 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4528 *$lt_bad_file* | *'Invalid file or object type'*)
4529 lt_cv_path_NM="$tmp_nm -B"
4530 break 2
4531 ;;
4532 *)
4533 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4534 */dev/null*)
4535 lt_cv_path_NM="$tmp_nm -p"
4536 break 2
4537 ;;
4538 *)
4539 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4540 continue # so that we can try to find one that supports BSD flags
4541 ;;
4542 esac
4543 ;;
4544 esac
4545 fi
4546 done
4547 IFS=$lt_save_ifs
4548 done
4549 : ${lt_cv_path_NM=no}
4550 fi
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4553 $as_echo "$lt_cv_path_NM" >&6; }
4554 if test no != "$lt_cv_path_NM"; then
4555 NM=$lt_cv_path_NM
4556 else
4557 # Didn't find any BSD compatible name lister, look for dumpbin.
4558 if test -n "$DUMPBIN"; then :
4559 # Let the user override the test.
4560 else
4561 if test -n "$ac_tool_prefix"; then
4562 for ac_prog in dumpbin "link -dump"
4563 do
4564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if ${ac_cv_prog_DUMPBIN+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$DUMPBIN"; then
4572 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4588
4589 fi
4590 fi
4591 DUMPBIN=$ac_cv_prog_DUMPBIN
4592 if test -n "$DUMPBIN"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4594 $as_echo "$DUMPBIN" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599
4600
4601 test -n "$DUMPBIN" && break
4602 done
4603 fi
4604 if test -z "$DUMPBIN"; then
4605 ac_ct_DUMPBIN=$DUMPBIN
4606 for ac_prog in dumpbin "link -dump"
4607 do
4608 # Extract the first word of "$ac_prog", so it can be a program name with args.
4609 set dummy $ac_prog; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$ac_ct_DUMPBIN"; then
4616 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4636 if test -n "$ac_ct_DUMPBIN"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4638 $as_echo "$ac_ct_DUMPBIN" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643
4644
4645 test -n "$ac_ct_DUMPBIN" && break
4646 done
4647
4648 if test "x$ac_ct_DUMPBIN" = x; then
4649 DUMPBIN=":"
4650 else
4651 case $cross_compiling:$ac_tool_warned in
4652 yes:)
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4655 ac_tool_warned=yes ;;
4656 esac
4657 DUMPBIN=$ac_ct_DUMPBIN
4658 fi
4659 fi
4660
4661 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4662 *COFF*)
4663 DUMPBIN="$DUMPBIN -symbols -headers"
4664 ;;
4665 *)
4666 DUMPBIN=:
4667 ;;
4668 esac
4669 fi
4670
4671 if test : != "$DUMPBIN"; then
4672 NM=$DUMPBIN
4673 fi
4674 fi
4675 test -z "$NM" && NM=nm
4676
4677
4678
4679
4680
4681
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4683 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4684 if ${lt_cv_nm_interface+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 lt_cv_nm_interface="BSD nm"
4688 echo "int some_variable = 0;" > conftest.$ac_ext
4689 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4690 (eval "$ac_compile" 2>conftest.err)
4691 cat conftest.err >&5
4692 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4693 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4694 cat conftest.err >&5
4695 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4696 cat conftest.out >&5
4697 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4698 lt_cv_nm_interface="MS dumpbin"
4699 fi
4700 rm -f conftest*
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4703 $as_echo "$lt_cv_nm_interface" >&6; }
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4706 $as_echo_n "checking whether ln -s works... " >&6; }
4707 LN_S=$as_ln_s
4708 if test "$LN_S" = "ln -s"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710 $as_echo "yes" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4713 $as_echo "no, using $LN_S" >&6; }
4714 fi
4715
4716 # find the maximum length of command line arguments
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4718 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4719 if ${lt_cv_sys_max_cmd_len+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 i=0
4723 teststring=ABCD
4724
4725 case $build_os in
4726 msdosdjgpp*)
4727 # On DJGPP, this test can blow up pretty badly due to problems in libc
4728 # (any single argument exceeding 2000 bytes causes a buffer overrun
4729 # during glob expansion). Even if it were fixed, the result of this
4730 # check would be larger than it should be.
4731 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4732 ;;
4733
4734 gnu*)
4735 # Under GNU Hurd, this test is not required because there is
4736 # no limit to the length of command line arguments.
4737 # Libtool will interpret -1 as no limit whatsoever
4738 lt_cv_sys_max_cmd_len=-1;
4739 ;;
4740
4741 cygwin* | mingw* | cegcc*)
4742 # On Win9x/ME, this test blows up -- it succeeds, but takes
4743 # about 5 minutes as the teststring grows exponentially.
4744 # Worse, since 9x/ME are not pre-emptively multitasking,
4745 # you end up with a "frozen" computer, even though with patience
4746 # the test eventually succeeds (with a max line length of 256k).
4747 # Instead, let's just punt: use the minimum linelength reported by
4748 # all of the supported platforms: 8192 (on NT/2K/XP).
4749 lt_cv_sys_max_cmd_len=8192;
4750 ;;
4751
4752 mint*)
4753 # On MiNT this can take a long time and run out of memory.
4754 lt_cv_sys_max_cmd_len=8192;
4755 ;;
4756
4757 amigaos*)
4758 # On AmigaOS with pdksh, this test takes hours, literally.
4759 # So we just punt and use a minimum line length of 8192.
4760 lt_cv_sys_max_cmd_len=8192;
4761 ;;
4762
4763 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4764 # This has been around since 386BSD, at least. Likely further.
4765 if test -x /sbin/sysctl; then
4766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4767 elif test -x /usr/sbin/sysctl; then
4768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4769 else
4770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4771 fi
4772 # And add a safety zone
4773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4775 ;;
4776
4777 interix*)
4778 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4779 lt_cv_sys_max_cmd_len=196608
4780 ;;
4781
4782 os2*)
4783 # The test takes a long time on OS/2.
4784 lt_cv_sys_max_cmd_len=8192
4785 ;;
4786
4787 osf*)
4788 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4789 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4790 # nice to cause kernel panics so lets avoid the loop below.
4791 # First set a reasonable default.
4792 lt_cv_sys_max_cmd_len=16384
4793 #
4794 if test -x /sbin/sysconfig; then
4795 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4796 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4797 esac
4798 fi
4799 ;;
4800 sco3.2v5*)
4801 lt_cv_sys_max_cmd_len=102400
4802 ;;
4803 sysv5* | sco5v6* | sysv4.2uw2*)
4804 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4805 if test -n "$kargmax"; then
4806 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4807 else
4808 lt_cv_sys_max_cmd_len=32768
4809 fi
4810 ;;
4811 *)
4812 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4813 if test -n "$lt_cv_sys_max_cmd_len" && \
4814 test undefined != "$lt_cv_sys_max_cmd_len"; then
4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4817 else
4818 # Make teststring a little bigger before we do anything with it.
4819 # a 1K string should be a reasonable start.
4820 for i in 1 2 3 4 5 6 7 8; do
4821 teststring=$teststring$teststring
4822 done
4823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4824 # If test is not a shell built-in, we'll probably end up computing a
4825 # maximum length that is only half of the actual maximum length, but
4826 # we can't tell.
4827 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4828 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4829 test 17 != "$i" # 1/2 MB should be enough
4830 do
4831 i=`expr $i + 1`
4832 teststring=$teststring$teststring
4833 done
4834 # Only check the string length outside the loop.
4835 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4836 teststring=
4837 # Add a significant safety factor because C++ compilers can tack on
4838 # massive amounts of additional arguments before passing them to the
4839 # linker. It appears as though 1/2 is a usable value.
4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4841 fi
4842 ;;
4843 esac
4844
4845 fi
4846
4847 if test -n "$lt_cv_sys_max_cmd_len"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4849 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4852 $as_echo "none" >&6; }
4853 fi
4854 max_cmd_len=$lt_cv_sys_max_cmd_len
4855
4856
4857
4858
4859
4860
4861 : ${CP="cp -f"}
4862 : ${MV="mv -f"}
4863 : ${RM="rm -f"}
4864
4865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4866 lt_unset=unset
4867 else
4868 lt_unset=false
4869 fi
4870
4871
4872
4873
4874
4875 # test EBCDIC or ASCII
4876 case `echo X|tr X '\101'` in
4877 A) # ASCII based system
4878 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4879 lt_SP2NL='tr \040 \012'
4880 lt_NL2SP='tr \015\012 \040\040'
4881 ;;
4882 *) # EBCDIC based system
4883 lt_SP2NL='tr \100 \n'
4884 lt_NL2SP='tr \r\n \100\100'
4885 ;;
4886 esac
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4898 if ${lt_cv_to_host_file_cmd+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 case $host in
4902 *-*-mingw* )
4903 case $build in
4904 *-*-mingw* ) # actually msys
4905 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4906 ;;
4907 *-*-cygwin* )
4908 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4909 ;;
4910 * ) # otherwise, assume *nix
4911 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4912 ;;
4913 esac
4914 ;;
4915 *-*-cygwin* )
4916 case $build in
4917 *-*-mingw* ) # actually msys
4918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4919 ;;
4920 *-*-cygwin* )
4921 lt_cv_to_host_file_cmd=func_convert_file_noop
4922 ;;
4923 * ) # otherwise, assume *nix
4924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4925 ;;
4926 esac
4927 ;;
4928 * ) # unhandled hosts (and "normal" native builds)
4929 lt_cv_to_host_file_cmd=func_convert_file_noop
4930 ;;
4931 esac
4932
4933 fi
4934
4935 to_host_file_cmd=$lt_cv_to_host_file_cmd
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4938
4939
4940
4941
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4945 if ${lt_cv_to_tool_file_cmd+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 #assume ordinary cross tools, or native build.
4949 lt_cv_to_tool_file_cmd=func_convert_file_noop
4950 case $host in
4951 *-*-mingw* )
4952 case $build in
4953 *-*-mingw* ) # actually msys
4954 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4955 ;;
4956 esac
4957 ;;
4958 esac
4959
4960 fi
4961
4962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4965
4966
4967
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4972 if ${lt_cv_ld_reload_flag+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 lt_cv_ld_reload_flag='-r'
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4979 reload_flag=$lt_cv_ld_reload_flag
4980 case $reload_flag in
4981 "" | " "*) ;;
4982 *) reload_flag=" $reload_flag" ;;
4983 esac
4984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4985 case $host_os in
4986 cygwin* | mingw* | pw32* | cegcc*)
4987 if test yes != "$GCC"; then
4988 reload_cmds=false
4989 fi
4990 ;;
4991 darwin*)
4992 if test yes = "$GCC"; then
4993 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4994 else
4995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4996 fi
4997 ;;
4998 esac
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_OBJDUMP+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$OBJDUMP"; then
5017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 OBJDUMP=$ac_cv_prog_OBJDUMP
5037 if test -n "$OBJDUMP"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5039 $as_echo "$OBJDUMP" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045
5046 fi
5047 if test -z "$ac_cv_prog_OBJDUMP"; then
5048 ac_ct_OBJDUMP=$OBJDUMP
5049 # Extract the first word of "objdump", so it can be a program name with args.
5050 set dummy objdump; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$ac_ct_OBJDUMP"; then
5057 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5069 fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5077 if test -n "$ac_ct_OBJDUMP"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5079 $as_echo "$ac_ct_OBJDUMP" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085 if test "x$ac_ct_OBJDUMP" = x; then
5086 OBJDUMP="false"
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089 yes:)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092 ac_tool_warned=yes ;;
5093 esac
5094 OBJDUMP=$ac_ct_OBJDUMP
5095 fi
5096 else
5097 OBJDUMP="$ac_cv_prog_OBJDUMP"
5098 fi
5099
5100 test -z "$OBJDUMP" && OBJDUMP=objdump
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5111 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5112 if ${lt_cv_deplibs_check_method+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 lt_cv_file_magic_cmd='$MAGIC_CMD'
5116 lt_cv_file_magic_test_file=
5117 lt_cv_deplibs_check_method='unknown'
5118 # Need to set the preceding variable on all platforms that support
5119 # interlibrary dependencies.
5120 # 'none' -- dependencies not supported.
5121 # 'unknown' -- same as none, but documents that we really don't know.
5122 # 'pass_all' -- all dependencies passed with no checks.
5123 # 'test_compile' -- check by making test program.
5124 # 'file_magic [[regex]]' -- check by looking for files in library path
5125 # that responds to the $file_magic_cmd with a given extended regex.
5126 # If you have 'file' or equivalent on your system and you're not sure
5127 # whether 'pass_all' will *always* work, you probably want this one.
5128
5129 case $host_os in
5130 aix[4-9]*)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133
5134 beos*)
5135 lt_cv_deplibs_check_method=pass_all
5136 ;;
5137
5138 bsdi[45]*)
5139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5140 lt_cv_file_magic_cmd='/usr/bin/file -L'
5141 lt_cv_file_magic_test_file=/shlib/libc.so
5142 ;;
5143
5144 cygwin*)
5145 # func_win32_libid is a shell function defined in ltmain.sh
5146 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5147 lt_cv_file_magic_cmd='func_win32_libid'
5148 ;;
5149
5150 mingw* | pw32*)
5151 # Base MSYS/MinGW do not provide the 'file' command needed by
5152 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5153 # unless we find 'file', for example because we are cross-compiling.
5154 if ( file / ) >/dev/null 2>&1; then
5155 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5156 lt_cv_file_magic_cmd='func_win32_libid'
5157 else
5158 # Keep this pattern in sync with the one in func_win32_libid.
5159 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5160 lt_cv_file_magic_cmd='$OBJDUMP -f'
5161 fi
5162 ;;
5163
5164 cegcc*)
5165 # use the weaker test based on 'objdump'. See mingw*.
5166 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5167 lt_cv_file_magic_cmd='$OBJDUMP -f'
5168 ;;
5169
5170 darwin* | rhapsody*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174 freebsd* | dragonfly*)
5175 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5176 case $host_cpu in
5177 i*86 )
5178 # Not sure whether the presence of OpenBSD here was a mistake.
5179 # Let's accept both of them until this is cleared up.
5180 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5181 lt_cv_file_magic_cmd=/usr/bin/file
5182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5183 ;;
5184 esac
5185 else
5186 lt_cv_deplibs_check_method=pass_all
5187 fi
5188 ;;
5189
5190 haiku*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194 hpux10.20* | hpux11*)
5195 lt_cv_file_magic_cmd=/usr/bin/file
5196 case $host_cpu in
5197 ia64*)
5198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5199 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5200 ;;
5201 hppa*64*)
5202 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]'
5203 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5204 ;;
5205 *)
5206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5207 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5208 ;;
5209 esac
5210 ;;
5211
5212 interix[3-9]*)
5213 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5215 ;;
5216
5217 irix5* | irix6* | nonstopux*)
5218 case $LD in
5219 *-32|*"-32 ") libmagic=32-bit;;
5220 *-n32|*"-n32 ") libmagic=N32;;
5221 *-64|*"-64 ") libmagic=64-bit;;
5222 *) libmagic=never-match;;
5223 esac
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227 # This must be glibc/ELF.
5228 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5229 lt_cv_deplibs_check_method=pass_all
5230 ;;
5231
5232 netbsd* | netbsdelf*-gnu)
5233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5235 else
5236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5237 fi
5238 ;;
5239
5240 newos6*)
5241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5242 lt_cv_file_magic_cmd=/usr/bin/file
5243 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5244 ;;
5245
5246 *nto* | *qnx*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 openbsd* | bitrig*)
5251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5253 else
5254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5255 fi
5256 ;;
5257
5258 osf3* | osf4* | osf5*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 rdos*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265
5266 solaris*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 sysv4 | sysv4.3*)
5275 case $host_vendor in
5276 motorola)
5277 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]'
5278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5279 ;;
5280 ncr)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283 sequent)
5284 lt_cv_file_magic_cmd='/bin/file'
5285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5286 ;;
5287 sni)
5288 lt_cv_file_magic_cmd='/bin/file'
5289 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5290 lt_cv_file_magic_test_file=/lib/libc.so
5291 ;;
5292 siemens)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295 pc)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298 esac
5299 ;;
5300
5301 tpf*)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304 os2*)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307 esac
5308
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5311 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5312
5313 file_magic_glob=
5314 want_nocaseglob=no
5315 if test "$build" = "$host"; then
5316 case $host_os in
5317 mingw* | pw32*)
5318 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5319 want_nocaseglob=yes
5320 else
5321 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5322 fi
5323 ;;
5324 esac
5325 fi
5326
5327 file_magic_cmd=$lt_cv_file_magic_cmd
5328 deplibs_check_method=$lt_cv_deplibs_check_method
5329 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_DLLTOOL+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$DLLTOOL"; then
5361 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 DLLTOOL=$ac_cv_prog_DLLTOOL
5381 if test -n "$DLLTOOL"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5383 $as_echo "$DLLTOOL" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390 fi
5391 if test -z "$ac_cv_prog_DLLTOOL"; then
5392 ac_ct_DLLTOOL=$DLLTOOL
5393 # Extract the first word of "dlltool", so it can be a program name with args.
5394 set dummy dlltool; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$ac_ct_DLLTOOL"; then
5401 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5421 if test -n "$ac_ct_DLLTOOL"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5423 $as_echo "$ac_ct_DLLTOOL" >&6; }
5424 else
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429 if test "x$ac_ct_DLLTOOL" = x; then
5430 DLLTOOL="false"
5431 else
5432 case $cross_compiling:$ac_tool_warned in
5433 yes:)
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5437 esac
5438 DLLTOOL=$ac_ct_DLLTOOL
5439 fi
5440 else
5441 DLLTOOL="$ac_cv_prog_DLLTOOL"
5442 fi
5443
5444 test -z "$DLLTOOL" && DLLTOOL=dlltool
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5456 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5457 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 lt_cv_sharedlib_from_linklib_cmd='unknown'
5461
5462 case $host_os in
5463 cygwin* | mingw* | pw32* | cegcc*)
5464 # two different shell functions defined in ltmain.sh;
5465 # decide which one to use based on capabilities of $DLLTOOL
5466 case `$DLLTOOL --help 2>&1` in
5467 *--identify-strict*)
5468 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5469 ;;
5470 *)
5471 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5472 ;;
5473 esac
5474 ;;
5475 *)
5476 # fallback: assume linklib IS sharedlib
5477 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5478 ;;
5479 esac
5480
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5483 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5484 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5485 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5486
5487
5488
5489
5490
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495 for ac_prog in ar
5496 do
5497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_AR+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$AR"; then
5505 ac_cv_prog_AR="$AR" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 AR=$ac_cv_prog_AR
5525 if test -n "$AR"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5527 $as_echo "$AR" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534 test -n "$AR" && break
5535 done
5536 fi
5537 if test -z "$AR"; then
5538 ac_ct_AR=$AR
5539 for ac_prog in ar
5540 do
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -n "$ac_ct_AR"; then
5549 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_ac_ct_AR="$ac_prog"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562 done
5563 done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5569 if test -n "$ac_ct_AR"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5571 $as_echo "$ac_ct_AR" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578 test -n "$ac_ct_AR" && break
5579 done
5580
5581 if test "x$ac_ct_AR" = x; then
5582 AR="false"
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590 AR=$ac_ct_AR
5591 fi
5592 fi
5593
5594 : ${AR=ar}
5595 : ${AR_FLAGS=cru}
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5608 $as_echo_n "checking for archiver @FILE support... " >&6; }
5609 if ${lt_cv_ar_at_file+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 lt_cv_ar_at_file=no
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615
5616 int
5617 main ()
5618 {
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 if ac_fn_c_try_compile "$LINENO"; then :
5625 echo conftest.$ac_objext > conftest.lst
5626 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5628 (eval $lt_ar_try) 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; }
5632 if test 0 -eq "$ac_status"; then
5633 # Ensure the archiver fails upon bogus file names.
5634 rm -f conftest.$ac_objext libconftest.a
5635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5636 (eval $lt_ar_try) 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; }
5640 if test 0 -ne "$ac_status"; then
5641 lt_cv_ar_at_file=@
5642 fi
5643 fi
5644 rm -f conftest.* libconftest.a
5645
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648
5649 fi
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5651 $as_echo "$lt_cv_ar_at_file" >&6; }
5652
5653 if test no = "$lt_cv_ar_at_file"; then
5654 archiver_list_spec=
5655 else
5656 archiver_list_spec=$lt_cv_ar_at_file
5657 fi
5658
5659
5660
5661
5662
5663
5664
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}strip; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_STRIP+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$STRIP"; then
5674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 STRIP=$ac_cv_prog_STRIP
5694 if test -n "$STRIP"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5696 $as_echo "$STRIP" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702
5703 fi
5704 if test -z "$ac_cv_prog_STRIP"; then
5705 ac_ct_STRIP=$STRIP
5706 # Extract the first word of "strip", so it can be a program name with args.
5707 set dummy strip; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$ac_ct_STRIP"; then
5714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_ac_ct_STRIP="strip"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5734 if test -n "$ac_ct_STRIP"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5736 $as_echo "$ac_ct_STRIP" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742 if test "x$ac_ct_STRIP" = x; then
5743 STRIP=":"
5744 else
5745 case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned=yes ;;
5750 esac
5751 STRIP=$ac_ct_STRIP
5752 fi
5753 else
5754 STRIP="$ac_cv_prog_STRIP"
5755 fi
5756
5757 test -z "$STRIP" && STRIP=:
5758
5759
5760
5761
5762
5763
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_RANLIB+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -n "$RANLIB"; then
5773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786 done
5787 done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 RANLIB=$ac_cv_prog_RANLIB
5793 if test -n "$RANLIB"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5795 $as_echo "$RANLIB" >&6; }
5796 else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802 fi
5803 if test -z "$ac_cv_prog_RANLIB"; then
5804 ac_ct_RANLIB=$RANLIB
5805 # Extract the first word of "ranlib", so it can be a program name with args.
5806 set dummy ranlib; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$ac_ct_RANLIB"; then
5813 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_RANLIB="ranlib"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5833 if test -n "$ac_ct_RANLIB"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5835 $as_echo "$ac_ct_RANLIB" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841 if test "x$ac_ct_RANLIB" = x; then
5842 RANLIB=":"
5843 else
5844 case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850 RANLIB=$ac_ct_RANLIB
5851 fi
5852 else
5853 RANLIB="$ac_cv_prog_RANLIB"
5854 fi
5855
5856 test -z "$RANLIB" && RANLIB=:
5857
5858
5859
5860
5861
5862
5863 # Determine commands to create old-style static archives.
5864 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5865 old_postinstall_cmds='chmod 644 $oldlib'
5866 old_postuninstall_cmds=
5867
5868 if test -n "$RANLIB"; then
5869 case $host_os in
5870 bitrig* | openbsd*)
5871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5872 ;;
5873 *)
5874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5875 ;;
5876 esac
5877 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5878 fi
5879
5880 case $host_os in
5881 darwin*)
5882 lock_old_archive_extraction=yes ;;
5883 *)
5884 lock_old_archive_extraction=no ;;
5885 esac
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 # If no C compiler was specified, use CC.
5926 LTCC=${LTCC-"$CC"}
5927
5928 # If no C compiler flags were specified, use CFLAGS.
5929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5930
5931 # Allow CC to be a program name with arguments.
5932 compiler=$CC
5933
5934
5935 # Check for command to grab the raw symbol name followed by C symbol from nm.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5937 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5938 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941
5942 # These are sane defaults that work on at least a few old systems.
5943 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5944
5945 # Character class describing NM global symbol codes.
5946 symcode='[BCDEGRST]'
5947
5948 # Regexp to match symbols that can be accessed directly from C.
5949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5950
5951 # Define system-specific variables.
5952 case $host_os in
5953 aix*)
5954 symcode='[BCDT]'
5955 ;;
5956 cygwin* | mingw* | pw32* | cegcc*)
5957 symcode='[ABCDGISTW]'
5958 ;;
5959 hpux*)
5960 if test ia64 = "$host_cpu"; then
5961 symcode='[ABCDEGRST]'
5962 fi
5963 ;;
5964 irix* | nonstopux*)
5965 symcode='[BCDEGRST]'
5966 ;;
5967 osf*)
5968 symcode='[BCDEGQRST]'
5969 ;;
5970 solaris*)
5971 symcode='[BDRT]'
5972 ;;
5973 sco3.2v5*)
5974 symcode='[DT]'
5975 ;;
5976 sysv4.2uw2*)
5977 symcode='[DT]'
5978 ;;
5979 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5980 symcode='[ABDT]'
5981 ;;
5982 sysv4)
5983 symcode='[DFNSTU]'
5984 ;;
5985 esac
5986
5987 # If we're using GNU nm, then use its standard symbol codes.
5988 case `$NM -V 2>&1` in
5989 *GNU* | *'with BFD'*)
5990 symcode='[ABCDGIRSTW]' ;;
5991 esac
5992
5993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5994 # Gets list of data symbols to import.
5995 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5996 # Adjust the below global symbol transforms to fixup imported variables.
5997 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5998 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5999 lt_c_name_lib_hook="\
6000 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6001 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6002 else
6003 # Disable hooks by default.
6004 lt_cv_sys_global_symbol_to_import=
6005 lt_cdecl_hook=
6006 lt_c_name_hook=
6007 lt_c_name_lib_hook=
6008 fi
6009
6010 # Transform an extracted symbol line into a proper C declaration.
6011 # Some systems (esp. on ia64) link data and code symbols differently,
6012 # so use this general approach.
6013 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6014 $lt_cdecl_hook\
6015 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6016 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6017
6018 # Transform an extracted symbol line into symbol name and symbol address
6019 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6020 $lt_c_name_hook\
6021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6022 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6023
6024 # Transform an extracted symbol line into symbol name with lib prefix and
6025 # symbol address.
6026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6027 $lt_c_name_lib_hook\
6028 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6029 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6030 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6031
6032 # Handle CRLF in mingw tool chain
6033 opt_cr=
6034 case $build_os in
6035 mingw*)
6036 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6037 ;;
6038 esac
6039
6040 # Try without a prefix underscore, then with it.
6041 for ac_symprfx in "" "_"; do
6042
6043 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6044 symxfrm="\\1 $ac_symprfx\\2 \\2"
6045
6046 # Write the raw and C identifiers.
6047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6048 # Fake it for dumpbin and say T for any non-static function,
6049 # D for any global variable and I for any imported variable.
6050 # Also find C++ and __fastcall symbols from MSVC++,
6051 # which start with @ or ?.
6052 lt_cv_sys_global_symbol_pipe="$AWK '"\
6053 " {last_section=section; section=\$ 3};"\
6054 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6055 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6056 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6057 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6058 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6059 " \$ 0!~/External *\|/{next};"\
6060 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6061 " {if(hide[section]) next};"\
6062 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6063 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6064 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6065 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6066 " ' prfx=^$ac_symprfx"
6067 else
6068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6069 fi
6070 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6071
6072 # Check to see that the pipe works correctly.
6073 pipe_works=no
6074
6075 rm -f conftest*
6076 cat > conftest.$ac_ext <<_LT_EOF
6077 #ifdef __cplusplus
6078 extern "C" {
6079 #endif
6080 char nm_test_var;
6081 void nm_test_func(void);
6082 void nm_test_func(void){}
6083 #ifdef __cplusplus
6084 }
6085 #endif
6086 int main(){nm_test_var='a';nm_test_func();return(0);}
6087 _LT_EOF
6088
6089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6090 (eval $ac_compile) 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; }; then
6094 # Now try to grab the symbols.
6095 nlist=conftest.nm
6096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6097 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6098 ac_status=$?
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; } && test -s "$nlist"; then
6101 # Try sorting and uniquifying the output.
6102 if sort "$nlist" | uniq > "$nlist"T; then
6103 mv -f "$nlist"T "$nlist"
6104 else
6105 rm -f "$nlist"T
6106 fi
6107
6108 # Make sure that we snagged all the symbols we need.
6109 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6110 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6111 cat <<_LT_EOF > conftest.$ac_ext
6112 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6113 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6114 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6115 relocations are performed -- see ld's documentation on pseudo-relocs. */
6116 # define LT_DLSYM_CONST
6117 #elif defined __osf__
6118 /* This system does not cope well with relocations in const data. */
6119 # define LT_DLSYM_CONST
6120 #else
6121 # define LT_DLSYM_CONST const
6122 #endif
6123
6124 #ifdef __cplusplus
6125 extern "C" {
6126 #endif
6127
6128 _LT_EOF
6129 # Now generate the symbol file.
6130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6131
6132 cat <<_LT_EOF >> conftest.$ac_ext
6133
6134 /* The mapping between symbol names and symbols. */
6135 LT_DLSYM_CONST struct {
6136 const char *name;
6137 void *address;
6138 }
6139 lt__PROGRAM__LTX_preloaded_symbols[] =
6140 {
6141 { "@PROGRAM@", (void *) 0 },
6142 _LT_EOF
6143 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6144 cat <<\_LT_EOF >> conftest.$ac_ext
6145 {0, (void *) 0}
6146 };
6147
6148 /* This works around a problem in FreeBSD linker */
6149 #ifdef FREEBSD_WORKAROUND
6150 static const void *lt_preloaded_setup() {
6151 return lt__PROGRAM__LTX_preloaded_symbols;
6152 }
6153 #endif
6154
6155 #ifdef __cplusplus
6156 }
6157 #endif
6158 _LT_EOF
6159 # Now try linking the two files.
6160 mv conftest.$ac_objext conftstm.$ac_objext
6161 lt_globsym_save_LIBS=$LIBS
6162 lt_globsym_save_CFLAGS=$CFLAGS
6163 LIBS=conftstm.$ac_objext
6164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6166 (eval $ac_link) 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6170 pipe_works=yes
6171 fi
6172 LIBS=$lt_globsym_save_LIBS
6173 CFLAGS=$lt_globsym_save_CFLAGS
6174 else
6175 echo "cannot find nm_test_func in $nlist" >&5
6176 fi
6177 else
6178 echo "cannot find nm_test_var in $nlist" >&5
6179 fi
6180 else
6181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6182 fi
6183 else
6184 echo "$progname: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6186 fi
6187 rm -rf conftest* conftst*
6188
6189 # Do not use the global_symbol_pipe unless it works.
6190 if test yes = "$pipe_works"; then
6191 break
6192 else
6193 lt_cv_sys_global_symbol_pipe=
6194 fi
6195 done
6196
6197 fi
6198
6199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6200 lt_cv_sys_global_symbol_to_cdecl=
6201 fi
6202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6204 $as_echo "failed" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6207 $as_echo "ok" >&6; }
6208 fi
6209
6210 # Response file support.
6211 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6212 nm_file_list_spec='@'
6213 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6214 nm_file_list_spec='@'
6215 fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6254 $as_echo_n "checking for sysroot... " >&6; }
6255
6256 # Check whether --with-sysroot was given.
6257 if test "${with_sysroot+set}" = set; then :
6258 withval=$with_sysroot;
6259 else
6260 with_sysroot=no
6261 fi
6262
6263
6264 lt_sysroot=
6265 case $with_sysroot in #(
6266 yes)
6267 if test yes = "$GCC"; then
6268 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6269 fi
6270 ;; #(
6271 /*)
6272 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6273 ;; #(
6274 no|'')
6275 ;; #(
6276 *)
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6278 $as_echo "$with_sysroot" >&6; }
6279 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6280 ;;
6281 esac
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6284 $as_echo "${lt_sysroot:-no}" >&6; }
6285
6286
6287
6288
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6291 $as_echo_n "checking for a working dd... " >&6; }
6292 if ${ac_cv_path_lt_DD+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 printf 0123456789abcdef0123456789abcdef >conftest.i
6296 cat conftest.i conftest.i >conftest2.i
6297 : ${lt_DD:=$DD}
6298 if test -z "$lt_DD"; then
6299 ac_path_lt_DD_found=false
6300 # Loop through the user's path and test for each of PROGNAME-LIST
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_prog in dd; do
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6309 as_fn_executable_p "$ac_path_lt_DD" || continue
6310 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6311 cmp -s conftest.i conftest.out \
6312 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6313 fi
6314 $ac_path_lt_DD_found && break 3
6315 done
6316 done
6317 done
6318 IFS=$as_save_IFS
6319 if test -z "$ac_cv_path_lt_DD"; then
6320 :
6321 fi
6322 else
6323 ac_cv_path_lt_DD=$lt_DD
6324 fi
6325
6326 rm -f conftest.i conftest2.i conftest.out
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6329 $as_echo "$ac_cv_path_lt_DD" >&6; }
6330
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6333 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6334 if ${lt_cv_truncate_bin+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 printf 0123456789abcdef0123456789abcdef >conftest.i
6338 cat conftest.i conftest.i >conftest2.i
6339 lt_cv_truncate_bin=
6340 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6341 cmp -s conftest.i conftest.out \
6342 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6343 fi
6344 rm -f conftest.i conftest2.i conftest.out
6345 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6348 $as_echo "$lt_cv_truncate_bin" >&6; }
6349
6350
6351
6352
6353
6354
6355
6356 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6357 func_cc_basename ()
6358 {
6359 for cc_temp in $*""; do
6360 case $cc_temp in
6361 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6362 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6363 \-*) ;;
6364 *) break;;
6365 esac
6366 done
6367 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6368 }
6369
6370 # Check whether --enable-libtool-lock was given.
6371 if test "${enable_libtool_lock+set}" = set; then :
6372 enableval=$enable_libtool_lock;
6373 fi
6374
6375 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6376
6377 # Some flags need to be propagated to the compiler or linker for good
6378 # libtool support.
6379 case $host in
6380 ia64-*-hpux*)
6381 # Find out what ABI is being produced by ac_compile, and set mode
6382 # options accordingly.
6383 echo 'int i;' > conftest.$ac_ext
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6385 (eval $ac_compile) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; }; then
6389 case `/usr/bin/file conftest.$ac_objext` in
6390 *ELF-32*)
6391 HPUX_IA64_MODE=32
6392 ;;
6393 *ELF-64*)
6394 HPUX_IA64_MODE=64
6395 ;;
6396 esac
6397 fi
6398 rm -rf conftest*
6399 ;;
6400 *-*-irix6*)
6401 # Find out what ABI is being produced by ac_compile, and set linker
6402 # options accordingly.
6403 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6405 (eval $ac_compile) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6409 if test yes = "$lt_cv_prog_gnu_ld"; then
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *32-bit*)
6412 LD="${LD-ld} -melf32bsmip"
6413 ;;
6414 *N32*)
6415 LD="${LD-ld} -melf32bmipn32"
6416 ;;
6417 *64-bit*)
6418 LD="${LD-ld} -melf64bmip"
6419 ;;
6420 esac
6421 else
6422 case `/usr/bin/file conftest.$ac_objext` in
6423 *32-bit*)
6424 LD="${LD-ld} -32"
6425 ;;
6426 *N32*)
6427 LD="${LD-ld} -n32"
6428 ;;
6429 *64-bit*)
6430 LD="${LD-ld} -64"
6431 ;;
6432 esac
6433 fi
6434 fi
6435 rm -rf conftest*
6436 ;;
6437
6438 mips64*-*linux*)
6439 # Find out what ABI is being produced by ac_compile, and set linker
6440 # options accordingly.
6441 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }; then
6447 emul=elf
6448 case `/usr/bin/file conftest.$ac_objext` in
6449 *32-bit*)
6450 emul="${emul}32"
6451 ;;
6452 *64-bit*)
6453 emul="${emul}64"
6454 ;;
6455 esac
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *MSB*)
6458 emul="${emul}btsmip"
6459 ;;
6460 *LSB*)
6461 emul="${emul}ltsmip"
6462 ;;
6463 esac
6464 case `/usr/bin/file conftest.$ac_objext` in
6465 *N32*)
6466 emul="${emul}n32"
6467 ;;
6468 esac
6469 LD="${LD-ld} -m $emul"
6470 fi
6471 rm -rf conftest*
6472 ;;
6473
6474 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6475 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6476 # Find out what ABI is being produced by ac_compile, and set linker
6477 # options accordingly. Note that the listed cases only cover the
6478 # situations where additional linker options are needed (such as when
6479 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6480 # vice versa); the common cases where no linker options are needed do
6481 # not appear in the list.
6482 echo 'int i;' > conftest.$ac_ext
6483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }; then
6488 case `/usr/bin/file conftest.o` in
6489 *32-bit*)
6490 case $host in
6491 x86_64-*kfreebsd*-gnu)
6492 LD="${LD-ld} -m elf_i386_fbsd"
6493 ;;
6494 x86_64-*linux*)
6495 case `/usr/bin/file conftest.o` in
6496 *x86-64*)
6497 LD="${LD-ld} -m elf32_x86_64"
6498 ;;
6499 *)
6500 LD="${LD-ld} -m elf_i386"
6501 ;;
6502 esac
6503 ;;
6504 powerpc64le-*linux*)
6505 LD="${LD-ld} -m elf32lppclinux"
6506 ;;
6507 powerpc64-*linux*)
6508 LD="${LD-ld} -m elf32ppclinux"
6509 ;;
6510 s390x-*linux*)
6511 LD="${LD-ld} -m elf_s390"
6512 ;;
6513 sparc64-*linux*)
6514 LD="${LD-ld} -m elf32_sparc"
6515 ;;
6516 esac
6517 ;;
6518 *64-bit*)
6519 case $host in
6520 x86_64-*kfreebsd*-gnu)
6521 LD="${LD-ld} -m elf_x86_64_fbsd"
6522 ;;
6523 x86_64-*linux*)
6524 LD="${LD-ld} -m elf_x86_64"
6525 ;;
6526 powerpcle-*linux*)
6527 LD="${LD-ld} -m elf64lppc"
6528 ;;
6529 powerpc-*linux*)
6530 LD="${LD-ld} -m elf64ppc"
6531 ;;
6532 s390*-*linux*|s390*-*tpf*)
6533 LD="${LD-ld} -m elf64_s390"
6534 ;;
6535 sparc*-*linux*)
6536 LD="${LD-ld} -m elf64_sparc"
6537 ;;
6538 esac
6539 ;;
6540 esac
6541 fi
6542 rm -rf conftest*
6543 ;;
6544
6545 *-*-sco3.2v5*)
6546 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6547 SAVE_CFLAGS=$CFLAGS
6548 CFLAGS="$CFLAGS -belf"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6550 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6551 if ${lt_cv_cc_needs_belf+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 ac_ext=c
6555 ac_cpp='$CPP $CPPFLAGS'
6556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6559
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562
6563 int
6564 main ()
6565 {
6566
6567 ;
6568 return 0;
6569 }
6570 _ACEOF
6571 if ac_fn_c_try_link "$LINENO"; then :
6572 lt_cv_cc_needs_belf=yes
6573 else
6574 lt_cv_cc_needs_belf=no
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578 ac_ext=c
6579 ac_cpp='$CPP $CPPFLAGS'
6580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6583
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6586 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6587 if test yes != "$lt_cv_cc_needs_belf"; then
6588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6589 CFLAGS=$SAVE_CFLAGS
6590 fi
6591 ;;
6592 *-*solaris*)
6593 # Find out what ABI is being produced by ac_compile, and set linker
6594 # options accordingly.
6595 echo 'int i;' > conftest.$ac_ext
6596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6597 (eval $ac_compile) 2>&5
6598 ac_status=$?
6599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600 test $ac_status = 0; }; then
6601 case `/usr/bin/file conftest.o` in
6602 *64-bit*)
6603 case $lt_cv_prog_gnu_ld in
6604 yes*)
6605 case $host in
6606 i?86-*-solaris*|x86_64-*-solaris*)
6607 LD="${LD-ld} -m elf_x86_64"
6608 ;;
6609 sparc*-*-solaris*)
6610 LD="${LD-ld} -m elf64_sparc"
6611 ;;
6612 esac
6613 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6614 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6615 LD=${LD-ld}_sol2
6616 fi
6617 ;;
6618 *)
6619 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6620 LD="${LD-ld} -64"
6621 fi
6622 ;;
6623 esac
6624 ;;
6625 esac
6626 fi
6627 rm -rf conftest*
6628 ;;
6629 esac
6630
6631 need_locks=$enable_libtool_lock
6632
6633 if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}mt; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$MANIFEST_TOOL"; then
6642 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6662 if test -n "$MANIFEST_TOOL"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6664 $as_echo "$MANIFEST_TOOL" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670
6671 fi
6672 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6673 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6674 # Extract the first word of "mt", so it can be a program name with args.
6675 set dummy mt; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 if test -n "$ac_ct_MANIFEST_TOOL"; then
6682 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6702 if test -n "$ac_ct_MANIFEST_TOOL"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6704 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6711 MANIFEST_TOOL=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714 yes:)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6720 fi
6721 else
6722 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6723 fi
6724
6725 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6727 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6728 if ${lt_cv_path_mainfest_tool+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 lt_cv_path_mainfest_tool=no
6732 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6733 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6734 cat conftest.err >&5
6735 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6736 lt_cv_path_mainfest_tool=yes
6737 fi
6738 rm -f conftest*
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6741 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6742 if test yes != "$lt_cv_path_mainfest_tool"; then
6743 MANIFEST_TOOL=:
6744 fi
6745
6746
6747
6748
6749
6750
6751 case $host_os in
6752 rhapsody* | darwin*)
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$DSYMUTIL"; then
6762 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6782 if test -n "$DSYMUTIL"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6784 $as_echo "$DSYMUTIL" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790
6791 fi
6792 if test -z "$ac_cv_prog_DSYMUTIL"; then
6793 ac_ct_DSYMUTIL=$DSYMUTIL
6794 # Extract the first word of "dsymutil", so it can be a program name with args.
6795 set dummy dsymutil; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$ac_ct_DSYMUTIL"; then
6802 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6822 if test -n "$ac_ct_DSYMUTIL"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6824 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830 if test "x$ac_ct_DSYMUTIL" = x; then
6831 DSYMUTIL=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 DSYMUTIL=$ac_ct_DSYMUTIL
6840 fi
6841 else
6842 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6843 fi
6844
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_NMEDIT+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$NMEDIT"; then
6854 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 NMEDIT=$ac_cv_prog_NMEDIT
6874 if test -n "$NMEDIT"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6876 $as_echo "$NMEDIT" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882
6883 fi
6884 if test -z "$ac_cv_prog_NMEDIT"; then
6885 ac_ct_NMEDIT=$NMEDIT
6886 # Extract the first word of "nmedit", so it can be a program name with args.
6887 set dummy nmedit; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$ac_ct_NMEDIT"; then
6894 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6914 if test -n "$ac_ct_NMEDIT"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6916 $as_echo "$ac_ct_NMEDIT" >&6; }
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922 if test "x$ac_ct_NMEDIT" = x; then
6923 NMEDIT=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931 NMEDIT=$ac_ct_NMEDIT
6932 fi
6933 else
6934 NMEDIT="$ac_cv_prog_NMEDIT"
6935 fi
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_LIPO+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$LIPO"; then
6946 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 LIPO=$ac_cv_prog_LIPO
6966 if test -n "$LIPO"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6968 $as_echo "$LIPO" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975 fi
6976 if test -z "$ac_cv_prog_LIPO"; then
6977 ac_ct_LIPO=$LIPO
6978 # Extract the first word of "lipo", so it can be a program name with args.
6979 set dummy lipo; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$ac_ct_LIPO"; then
6986 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_ac_ct_LIPO="lipo"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7006 if test -n "$ac_ct_LIPO"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7008 $as_echo "$ac_ct_LIPO" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014 if test "x$ac_ct_LIPO" = x; then
7015 LIPO=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 LIPO=$ac_ct_LIPO
7024 fi
7025 else
7026 LIPO="$ac_cv_prog_LIPO"
7027 fi
7028
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}otool; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_OTOOL+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$OTOOL"; then
7038 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 OTOOL=$ac_cv_prog_OTOOL
7058 if test -n "$OTOOL"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7060 $as_echo "$OTOOL" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066
7067 fi
7068 if test -z "$ac_cv_prog_OTOOL"; then
7069 ac_ct_OTOOL=$OTOOL
7070 # Extract the first word of "otool", so it can be a program name with args.
7071 set dummy otool; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$ac_ct_OTOOL"; then
7078 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_ac_ct_OTOOL="otool"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7098 if test -n "$ac_ct_OTOOL"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7100 $as_echo "$ac_ct_OTOOL" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7104 fi
7105
7106 if test "x$ac_ct_OTOOL" = x; then
7107 OTOOL=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110 yes:)
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113 ac_tool_warned=yes ;;
7114 esac
7115 OTOOL=$ac_ct_OTOOL
7116 fi
7117 else
7118 OTOOL="$ac_cv_prog_OTOOL"
7119 fi
7120
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_OTOOL64+:} false; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 if test -n "$OTOOL64"; then
7130 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 OTOOL64=$ac_cv_prog_OTOOL64
7150 if test -n "$OTOOL64"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7152 $as_echo "$OTOOL64" >&6; }
7153 else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158
7159 fi
7160 if test -z "$ac_cv_prog_OTOOL64"; then
7161 ac_ct_OTOOL64=$OTOOL64
7162 # Extract the first word of "otool64", so it can be a program name with args.
7163 set dummy otool64; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 if test -n "$ac_ct_OTOOL64"; then
7170 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_ac_ct_OTOOL64="otool64"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7190 if test -n "$ac_ct_OTOOL64"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7192 $as_echo "$ac_ct_OTOOL64" >&6; }
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198 if test "x$ac_ct_OTOOL64" = x; then
7199 OTOOL64=":"
7200 else
7201 case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207 OTOOL64=$ac_ct_OTOOL64
7208 fi
7209 else
7210 OTOOL64="$ac_cv_prog_OTOOL64"
7211 fi
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7240 $as_echo_n "checking for -single_module linker flag... " >&6; }
7241 if ${lt_cv_apple_cc_single_mod+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 lt_cv_apple_cc_single_mod=no
7245 if test -z "$LT_MULTI_MODULE"; then
7246 # By default we will add the -single_module flag. You can override
7247 # by either setting the environment variable LT_MULTI_MODULE
7248 # non-empty at configure time, or by adding -multi_module to the
7249 # link flags.
7250 rm -rf libconftest.dylib*
7251 echo "int foo(void){return 1;}" > conftest.c
7252 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7253 -dynamiclib -Wl,-single_module conftest.c" >&5
7254 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7255 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7256 _lt_result=$?
7257 # If there is a non-empty error log, and "single_module"
7258 # appears in it, assume the flag caused a linker warning
7259 if test -s conftest.err && $GREP single_module conftest.err; then
7260 cat conftest.err >&5
7261 # Otherwise, if the output was created with a 0 exit code from
7262 # the compiler, it worked.
7263 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7264 lt_cv_apple_cc_single_mod=yes
7265 else
7266 cat conftest.err >&5
7267 fi
7268 rm -rf libconftest.dylib*
7269 rm -f conftest.*
7270 fi
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7273 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7276 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7277 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 lt_cv_ld_exported_symbols_list=no
7281 save_LDFLAGS=$LDFLAGS
7282 echo "_main" > conftest.sym
7283 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286
7287 int
7288 main ()
7289 {
7290
7291 ;
7292 return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_link "$LINENO"; then :
7296 lt_cv_ld_exported_symbols_list=yes
7297 else
7298 lt_cv_ld_exported_symbols_list=no
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
7302 LDFLAGS=$save_LDFLAGS
7303
7304 fi
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7306 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7307
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7309 $as_echo_n "checking for -force_load linker flag... " >&6; }
7310 if ${lt_cv_ld_force_load+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 lt_cv_ld_force_load=no
7314 cat > conftest.c << _LT_EOF
7315 int forced_loaded() { return 2;}
7316 _LT_EOF
7317 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7318 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7319 echo "$AR cru libconftest.a conftest.o" >&5
7320 $AR cru libconftest.a conftest.o 2>&5
7321 echo "$RANLIB libconftest.a" >&5
7322 $RANLIB libconftest.a 2>&5
7323 cat > conftest.c << _LT_EOF
7324 int main() { return 0;}
7325 _LT_EOF
7326 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7327 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7328 _lt_result=$?
7329 if test -s conftest.err && $GREP force_load conftest.err; then
7330 cat conftest.err >&5
7331 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7332 lt_cv_ld_force_load=yes
7333 else
7334 cat conftest.err >&5
7335 fi
7336 rm -f conftest.err libconftest.a conftest conftest.c
7337 rm -rf conftest.dSYM
7338
7339 fi
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7341 $as_echo "$lt_cv_ld_force_load" >&6; }
7342 case $host_os in
7343 rhapsody* | darwin1.[012])
7344 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7345 darwin1.*)
7346 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7347 darwin*) # darwin 5.x on
7348 # if running on 10.5 or later, the deployment target defaults
7349 # to the OS version, if on x86, and 10.4, the deployment
7350 # target defaults to 10.4. Don't you love it?
7351 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7352 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7353 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7354 10.[012][,.]*)
7355 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7356 10.*)
7357 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7358 esac
7359 ;;
7360 esac
7361 if test yes = "$lt_cv_apple_cc_single_mod"; then
7362 _lt_dar_single_mod='$single_module'
7363 fi
7364 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7365 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7366 else
7367 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7368 fi
7369 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7370 _lt_dsymutil='~$DSYMUTIL $lib || :'
7371 else
7372 _lt_dsymutil=
7373 fi
7374 ;;
7375 esac
7376
7377 # func_munge_path_list VARIABLE PATH
7378 # -----------------------------------
7379 # VARIABLE is name of variable containing _space_ separated list of
7380 # directories to be munged by the contents of PATH, which is string
7381 # having a format:
7382 # "DIR[:DIR]:"
7383 # string "DIR[ DIR]" will be prepended to VARIABLE
7384 # ":DIR[:DIR]"
7385 # string "DIR[ DIR]" will be appended to VARIABLE
7386 # "DIRP[:DIRP]::[DIRA:]DIRA"
7387 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7388 # "DIRA[ DIRA]" will be appended to VARIABLE
7389 # "DIR[:DIR]"
7390 # VARIABLE will be replaced by "DIR[ DIR]"
7391 func_munge_path_list ()
7392 {
7393 case x$2 in
7394 x)
7395 ;;
7396 *:)
7397 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7398 ;;
7399 x:*)
7400 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7401 ;;
7402 *::*)
7403 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7404 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7405 ;;
7406 *)
7407 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7408 ;;
7409 esac
7410 }
7411
7412 ac_ext=c
7413 ac_cpp='$CPP $CPPFLAGS'
7414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7418 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7419 # On Suns, sometimes $CPP names a directory.
7420 if test -n "$CPP" && test -d "$CPP"; then
7421 CPP=
7422 fi
7423 if test -z "$CPP"; then
7424 if ${ac_cv_prog_CPP+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 # Double quotes because CPP needs to be expanded
7428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7429 do
7430 ac_preproc_ok=false
7431 for ac_c_preproc_warn_flag in '' yes
7432 do
7433 # Use a header file that comes with gcc, so configuring glibc
7434 # with a fresh cross-compiler works.
7435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7436 # <limits.h> exists even on freestanding compilers.
7437 # On the NeXT, cc -E runs the code through the compiler's parser,
7438 # not just through cpp. "Syntax error" is here to catch this case.
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #ifdef __STDC__
7442 # include <limits.h>
7443 #else
7444 # include <assert.h>
7445 #endif
7446 Syntax error
7447 _ACEOF
7448 if ac_fn_c_try_cpp "$LINENO"; then :
7449
7450 else
7451 # Broken: fails on valid input.
7452 continue
7453 fi
7454 rm -f conftest.err conftest.i conftest.$ac_ext
7455
7456 # OK, works on sane cases. Now check whether nonexistent headers
7457 # can be detected and how.
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <ac_nonexistent.h>
7461 _ACEOF
7462 if ac_fn_c_try_cpp "$LINENO"; then :
7463 # Broken: success on invalid input.
7464 continue
7465 else
7466 # Passes both tests.
7467 ac_preproc_ok=:
7468 break
7469 fi
7470 rm -f conftest.err conftest.i conftest.$ac_ext
7471
7472 done
7473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7474 rm -f conftest.i conftest.err conftest.$ac_ext
7475 if $ac_preproc_ok; then :
7476 break
7477 fi
7478
7479 done
7480 ac_cv_prog_CPP=$CPP
7481
7482 fi
7483 CPP=$ac_cv_prog_CPP
7484 else
7485 ac_cv_prog_CPP=$CPP
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7488 $as_echo "$CPP" >&6; }
7489 ac_preproc_ok=false
7490 for ac_c_preproc_warn_flag in '' yes
7491 do
7492 # Use a header file that comes with gcc, so configuring glibc
7493 # with a fresh cross-compiler works.
7494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7495 # <limits.h> exists even on freestanding compilers.
7496 # On the NeXT, cc -E runs the code through the compiler's parser,
7497 # not just through cpp. "Syntax error" is here to catch this case.
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 #ifdef __STDC__
7501 # include <limits.h>
7502 #else
7503 # include <assert.h>
7504 #endif
7505 Syntax error
7506 _ACEOF
7507 if ac_fn_c_try_cpp "$LINENO"; then :
7508
7509 else
7510 # Broken: fails on valid input.
7511 continue
7512 fi
7513 rm -f conftest.err conftest.i conftest.$ac_ext
7514
7515 # OK, works on sane cases. Now check whether nonexistent headers
7516 # can be detected and how.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <ac_nonexistent.h>
7520 _ACEOF
7521 if ac_fn_c_try_cpp "$LINENO"; then :
7522 # Broken: success on invalid input.
7523 continue
7524 else
7525 # Passes both tests.
7526 ac_preproc_ok=:
7527 break
7528 fi
7529 rm -f conftest.err conftest.i conftest.$ac_ext
7530
7531 done
7532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7533 rm -f conftest.i conftest.err conftest.$ac_ext
7534 if $ac_preproc_ok; then :
7535
7536 else
7537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7540 See \`config.log' for more details" "$LINENO" 5; }
7541 fi
7542
7543 ac_ext=c
7544 ac_cpp='$CPP $CPPFLAGS'
7545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548
7549
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7551 $as_echo_n "checking for ANSI C header files... " >&6; }
7552 if ${ac_cv_header_stdc+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557 #include <stdlib.h>
7558 #include <stdarg.h>
7559 #include <string.h>
7560 #include <float.h>
7561
7562 int
7563 main ()
7564 {
7565
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 if ac_fn_c_try_compile "$LINENO"; then :
7571 ac_cv_header_stdc=yes
7572 else
7573 ac_cv_header_stdc=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576
7577 if test $ac_cv_header_stdc = yes; then
7578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #include <string.h>
7582
7583 _ACEOF
7584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7585 $EGREP "memchr" >/dev/null 2>&1; then :
7586
7587 else
7588 ac_cv_header_stdc=no
7589 fi
7590 rm -f conftest*
7591
7592 fi
7593
7594 if test $ac_cv_header_stdc = yes; then
7595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 #include <stdlib.h>
7599
7600 _ACEOF
7601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7602 $EGREP "free" >/dev/null 2>&1; then :
7603
7604 else
7605 ac_cv_header_stdc=no
7606 fi
7607 rm -f conftest*
7608
7609 fi
7610
7611 if test $ac_cv_header_stdc = yes; then
7612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7613 if test "$cross_compiling" = yes; then :
7614 :
7615 else
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618 #include <ctype.h>
7619 #include <stdlib.h>
7620 #if ((' ' & 0x0FF) == 0x020)
7621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7623 #else
7624 # define ISLOWER(c) \
7625 (('a' <= (c) && (c) <= 'i') \
7626 || ('j' <= (c) && (c) <= 'r') \
7627 || ('s' <= (c) && (c) <= 'z'))
7628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7629 #endif
7630
7631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7632 int
7633 main ()
7634 {
7635 int i;
7636 for (i = 0; i < 256; i++)
7637 if (XOR (islower (i), ISLOWER (i))
7638 || toupper (i) != TOUPPER (i))
7639 return 2;
7640 return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_run "$LINENO"; then :
7644
7645 else
7646 ac_cv_header_stdc=no
7647 fi
7648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7649 conftest.$ac_objext conftest.beam conftest.$ac_ext
7650 fi
7651
7652 fi
7653 fi
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7655 $as_echo "$ac_cv_header_stdc" >&6; }
7656 if test $ac_cv_header_stdc = yes; then
7657
7658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7659
7660 fi
7661
7662 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7663 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7664 inttypes.h stdint.h unistd.h
7665 do :
7666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7667 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7668 "
7669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7670 cat >>confdefs.h <<_ACEOF
7671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7672 _ACEOF
7673
7674 fi
7675
7676 done
7677
7678
7679 for ac_header in dlfcn.h
7680 do :
7681 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7682 "
7683 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7684 cat >>confdefs.h <<_ACEOF
7685 #define HAVE_DLFCN_H 1
7686 _ACEOF
7687
7688 fi
7689
7690 done
7691
7692
7693
7694
7695
7696 # Set options
7697
7698
7699
7700 enable_dlopen=no
7701
7702
7703 enable_win32_dll=no
7704
7705
7706 # Check whether --enable-shared was given.
7707 if test "${enable_shared+set}" = set; then :
7708 enableval=$enable_shared; p=${PACKAGE-default}
7709 case $enableval in
7710 yes) enable_shared=yes ;;
7711 no) enable_shared=no ;;
7712 *)
7713 enable_shared=no
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7716 for pkg in $enableval; do
7717 IFS=$lt_save_ifs
7718 if test "X$pkg" = "X$p"; then
7719 enable_shared=yes
7720 fi
7721 done
7722 IFS=$lt_save_ifs
7723 ;;
7724 esac
7725 else
7726 enable_shared=yes
7727 fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737 # Check whether --enable-static was given.
7738 if test "${enable_static+set}" = set; then :
7739 enableval=$enable_static; p=${PACKAGE-default}
7740 case $enableval in
7741 yes) enable_static=yes ;;
7742 no) enable_static=no ;;
7743 *)
7744 enable_static=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7747 for pkg in $enableval; do
7748 IFS=$lt_save_ifs
7749 if test "X$pkg" = "X$p"; then
7750 enable_static=yes
7751 fi
7752 done
7753 IFS=$lt_save_ifs
7754 ;;
7755 esac
7756 else
7757 enable_static=yes
7758 fi
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 # Check whether --with-pic was given.
7770 if test "${with_pic+set}" = set; then :
7771 withval=$with_pic; lt_p=${PACKAGE-default}
7772 case $withval in
7773 yes|no) pic_mode=$withval ;;
7774 *)
7775 pic_mode=default
7776 # Look at the argument we got. We use all the common list separators.
7777 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7778 for lt_pkg in $withval; do
7779 IFS=$lt_save_ifs
7780 if test "X$lt_pkg" = "X$lt_p"; then
7781 pic_mode=yes
7782 fi
7783 done
7784 IFS=$lt_save_ifs
7785 ;;
7786 esac
7787 else
7788 pic_mode=default
7789 fi
7790
7791
7792
7793
7794
7795
7796
7797
7798 # Check whether --enable-fast-install was given.
7799 if test "${enable_fast_install+set}" = set; then :
7800 enableval=$enable_fast_install; p=${PACKAGE-default}
7801 case $enableval in
7802 yes) enable_fast_install=yes ;;
7803 no) enable_fast_install=no ;;
7804 *)
7805 enable_fast_install=no
7806 # Look at the argument we got. We use all the common list separators.
7807 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7808 for pkg in $enableval; do
7809 IFS=$lt_save_ifs
7810 if test "X$pkg" = "X$p"; then
7811 enable_fast_install=yes
7812 fi
7813 done
7814 IFS=$lt_save_ifs
7815 ;;
7816 esac
7817 else
7818 enable_fast_install=yes
7819 fi
7820
7821
7822
7823
7824
7825
7826
7827
7828 shared_archive_member_spec=
7829 case $host,$enable_shared in
7830 power*-*-aix[5-9]*,yes)
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7832 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7833
7834 # Check whether --with-aix-soname was given.
7835 if test "${with_aix_soname+set}" = set; then :
7836 withval=$with_aix_soname; case $withval in
7837 aix|svr4|both)
7838 ;;
7839 *)
7840 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7841 ;;
7842 esac
7843 lt_cv_with_aix_soname=$with_aix_soname
7844 else
7845 if ${lt_cv_with_aix_soname+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 lt_cv_with_aix_soname=aix
7849 fi
7850
7851 with_aix_soname=$lt_cv_with_aix_soname
7852 fi
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7855 $as_echo "$with_aix_soname" >&6; }
7856 if test aix != "$with_aix_soname"; then
7857 # For the AIX way of multilib, we name the shared archive member
7858 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7859 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7860 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7861 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7862 if test 64 = "${OBJECT_MODE-32}"; then
7863 shared_archive_member_spec=shr_64
7864 else
7865 shared_archive_member_spec=shr
7866 fi
7867 fi
7868 ;;
7869 *)
7870 with_aix_soname=aix
7871 ;;
7872 esac
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883 # This can be used to rebuild libtool when needed
7884 LIBTOOL_DEPS=$ltmain
7885
7886 # Always use our own libtool.
7887 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918 test -z "$LN_S" && LN_S="ln -s"
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933 if test -n "${ZSH_VERSION+set}"; then
7934 setopt NO_GLOB_SUBST
7935 fi
7936
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7938 $as_echo_n "checking for objdir... " >&6; }
7939 if ${lt_cv_objdir+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 rm -f .libs 2>/dev/null
7943 mkdir .libs 2>/dev/null
7944 if test -d .libs; then
7945 lt_cv_objdir=.libs
7946 else
7947 # MS-DOS does not allow filenames that begin with a dot.
7948 lt_cv_objdir=_libs
7949 fi
7950 rmdir .libs 2>/dev/null
7951 fi
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7953 $as_echo "$lt_cv_objdir" >&6; }
7954 objdir=$lt_cv_objdir
7955
7956
7957
7958
7959
7960 cat >>confdefs.h <<_ACEOF
7961 #define LT_OBJDIR "$lt_cv_objdir/"
7962 _ACEOF
7963
7964
7965
7966
7967 case $host_os in
7968 aix3*)
7969 # AIX sometimes has problems with the GCC collect2 program. For some
7970 # reason, if we set the COLLECT_NAMES environment variable, the problems
7971 # vanish in a puff of smoke.
7972 if test set != "${COLLECT_NAMES+set}"; then
7973 COLLECT_NAMES=
7974 export COLLECT_NAMES
7975 fi
7976 ;;
7977 esac
7978
7979 # Global variables:
7980 ofile=libtool
7981 can_build_shared=yes
7982
7983 # All known linkers require a '.a' archive for static linking (except MSVC,
7984 # which needs '.lib').
7985 libext=a
7986
7987 with_gnu_ld=$lt_cv_prog_gnu_ld
7988
7989 old_CC=$CC
7990 old_CFLAGS=$CFLAGS
7991
7992 # Set sane defaults for various variables
7993 test -z "$CC" && CC=cc
7994 test -z "$LTCC" && LTCC=$CC
7995 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7996 test -z "$LD" && LD=ld
7997 test -z "$ac_objext" && ac_objext=o
7998
7999 func_cc_basename $compiler
8000 cc_basename=$func_cc_basename_result
8001
8002
8003 # Only perform the check for file, if the check method requires it
8004 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8005 case $deplibs_check_method in
8006 file_magic*)
8007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8009 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8010 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 case $MAGIC_CMD in
8014 [\\/*] | ?:[\\/]*)
8015 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8016 ;;
8017 *)
8018 lt_save_MAGIC_CMD=$MAGIC_CMD
8019 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8021 for ac_dir in $ac_dummy; do
8022 IFS=$lt_save_ifs
8023 test -z "$ac_dir" && ac_dir=.
8024 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8025 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8026 if test -n "$file_magic_test_file"; then
8027 case $deplibs_check_method in
8028 "file_magic "*)
8029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8030 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8032 $EGREP "$file_magic_regex" > /dev/null; then
8033 :
8034 else
8035 cat <<_LT_EOF 1>&2
8036
8037 *** Warning: the command libtool uses to detect shared libraries,
8038 *** $file_magic_cmd, produces output that libtool cannot recognize.
8039 *** The result is that libtool may fail to recognize shared libraries
8040 *** as such. This will affect the creation of libtool libraries that
8041 *** depend on shared libraries, but programs linked with such libtool
8042 *** libraries will work regardless of this problem. Nevertheless, you
8043 *** may want to report the problem to your system manager and/or to
8044 *** [email protected]
8045
8046 _LT_EOF
8047 fi ;;
8048 esac
8049 fi
8050 break
8051 fi
8052 done
8053 IFS=$lt_save_ifs
8054 MAGIC_CMD=$lt_save_MAGIC_CMD
8055 ;;
8056 esac
8057 fi
8058
8059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8060 if test -n "$MAGIC_CMD"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8062 $as_echo "$MAGIC_CMD" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068
8069
8070
8071
8072 if test -z "$lt_cv_path_MAGIC_CMD"; then
8073 if test -n "$ac_tool_prefix"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8075 $as_echo_n "checking for file... " >&6; }
8076 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 case $MAGIC_CMD in
8080 [\\/*] | ?:[\\/]*)
8081 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8082 ;;
8083 *)
8084 lt_save_MAGIC_CMD=$MAGIC_CMD
8085 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8087 for ac_dir in $ac_dummy; do
8088 IFS=$lt_save_ifs
8089 test -z "$ac_dir" && ac_dir=.
8090 if test -f "$ac_dir/file"; then
8091 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8092 if test -n "$file_magic_test_file"; then
8093 case $deplibs_check_method in
8094 "file_magic "*)
8095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8096 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8098 $EGREP "$file_magic_regex" > /dev/null; then
8099 :
8100 else
8101 cat <<_LT_EOF 1>&2
8102
8103 *** Warning: the command libtool uses to detect shared libraries,
8104 *** $file_magic_cmd, produces output that libtool cannot recognize.
8105 *** The result is that libtool may fail to recognize shared libraries
8106 *** as such. This will affect the creation of libtool libraries that
8107 *** depend on shared libraries, but programs linked with such libtool
8108 *** libraries will work regardless of this problem. Nevertheless, you
8109 *** may want to report the problem to your system manager and/or to
8110 *** [email protected]
8111
8112 _LT_EOF
8113 fi ;;
8114 esac
8115 fi
8116 break
8117 fi
8118 done
8119 IFS=$lt_save_ifs
8120 MAGIC_CMD=$lt_save_MAGIC_CMD
8121 ;;
8122 esac
8123 fi
8124
8125 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8126 if test -n "$MAGIC_CMD"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8128 $as_echo "$MAGIC_CMD" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134
8135 else
8136 MAGIC_CMD=:
8137 fi
8138 fi
8139
8140 fi
8141 ;;
8142 esac
8143
8144 # Use C for the default configuration in the libtool script
8145
8146 lt_save_CC=$CC
8147 ac_ext=c
8148 ac_cpp='$CPP $CPPFLAGS'
8149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152
8153
8154 # Source file extension for C test sources.
8155 ac_ext=c
8156
8157 # Object file extension for compiled C test sources.
8158 objext=o
8159 objext=$objext
8160
8161 # Code to be used in simple compile tests
8162 lt_simple_compile_test_code="int some_variable = 0;"
8163
8164 # Code to be used in simple link tests
8165 lt_simple_link_test_code='int main(){return(0);}'
8166
8167
8168
8169
8170
8171
8172
8173 # If no C compiler was specified, use CC.
8174 LTCC=${LTCC-"$CC"}
8175
8176 # If no C compiler flags were specified, use CFLAGS.
8177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8178
8179 # Allow CC to be a program name with arguments.
8180 compiler=$CC
8181
8182 # Save the default compiler, since it gets overwritten when the other
8183 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8184 compiler_DEFAULT=$CC
8185
8186 # save warnings/boilerplate of simple test code
8187 ac_outfile=conftest.$ac_objext
8188 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8189 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8190 _lt_compiler_boilerplate=`cat conftest.err`
8191 $RM conftest*
8192
8193 ac_outfile=conftest.$ac_objext
8194 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8195 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8196 _lt_linker_boilerplate=`cat conftest.err`
8197 $RM -r conftest*
8198
8199
8200 ## CAVEAT EMPTOR:
8201 ## There is no encapsulation within the following macros, do not change
8202 ## the running order or otherwise move them around unless you know exactly
8203 ## what you are doing...
8204 if test -n "$compiler"; then
8205
8206 lt_prog_compiler_no_builtin_flag=
8207
8208 if test yes = "$GCC"; then
8209 case $cc_basename in
8210 nvcc*)
8211 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8212 *)
8213 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8214 esac
8215
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8217 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8218 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 lt_cv_prog_compiler_rtti_exceptions=no
8222 ac_outfile=conftest.$ac_objext
8223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8224 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8225 # Insert the option either (1) after the last *FLAGS variable, or
8226 # (2) before a word containing "conftest.", or (3) at the end.
8227 # Note that $ac_compile itself does not contain backslashes and begins
8228 # with a dollar sign (not a hyphen), so the echo should work correctly.
8229 # The option is referenced via a variable to avoid confusing sed.
8230 lt_compile=`echo "$ac_compile" | $SED \
8231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8233 -e 's:$: $lt_compiler_flag:'`
8234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8235 (eval "$lt_compile" 2>conftest.err)
8236 ac_status=$?
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 if (exit $ac_status) && test -s "$ac_outfile"; then
8240 # The compiler can only warn and ignore the option if not recognized
8241 # So say no if there are warnings other than the usual output.
8242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8245 lt_cv_prog_compiler_rtti_exceptions=yes
8246 fi
8247 fi
8248 $RM conftest*
8249
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8252 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8253
8254 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8256 else
8257 :
8258 fi
8259
8260 fi
8261
8262
8263
8264
8265
8266
8267 lt_prog_compiler_wl=
8268 lt_prog_compiler_pic=
8269 lt_prog_compiler_static=
8270
8271
8272 if test yes = "$GCC"; then
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_static='-static'
8275
8276 case $host_os in
8277 aix*)
8278 # All AIX code is PIC.
8279 if test ia64 = "$host_cpu"; then
8280 # AIX 5 now supports IA64 processor
8281 lt_prog_compiler_static='-Bstatic'
8282 fi
8283 lt_prog_compiler_pic='-fPIC'
8284 ;;
8285
8286 amigaos*)
8287 case $host_cpu in
8288 powerpc)
8289 # see comment about AmigaOS4 .so support
8290 lt_prog_compiler_pic='-fPIC'
8291 ;;
8292 m68k)
8293 # FIXME: we need at least 68020 code to build shared libraries, but
8294 # adding the '-m68020' flag to GCC prevents building anything better,
8295 # like '-m68040'.
8296 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8297 ;;
8298 esac
8299 ;;
8300
8301 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8302 # PIC is the default for these OSes.
8303 ;;
8304
8305 mingw* | cygwin* | pw32* | os2* | cegcc*)
8306 # This hack is so that the source file can tell whether it is being
8307 # built for inclusion in a dll (and should export symbols for example).
8308 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8309 # (--disable-auto-import) libraries
8310 lt_prog_compiler_pic='-DDLL_EXPORT'
8311 case $host_os in
8312 os2*)
8313 lt_prog_compiler_static='$wl-static'
8314 ;;
8315 esac
8316 ;;
8317
8318 darwin* | rhapsody*)
8319 # PIC is the default on this platform
8320 # Common symbols not allowed in MH_DYLIB files
8321 lt_prog_compiler_pic='-fno-common'
8322 ;;
8323
8324 haiku*)
8325 # PIC is the default for Haiku.
8326 # The "-static" flag exists, but is broken.
8327 lt_prog_compiler_static=
8328 ;;
8329
8330 hpux*)
8331 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8332 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8333 # sets the default TLS model and affects inlining.
8334 case $host_cpu in
8335 hppa*64*)
8336 # +Z the default
8337 ;;
8338 *)
8339 lt_prog_compiler_pic='-fPIC'
8340 ;;
8341 esac
8342 ;;
8343
8344 interix[3-9]*)
8345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8346 # Instead, we relocate shared libraries at runtime.
8347 ;;
8348
8349 msdosdjgpp*)
8350 # Just because we use GCC doesn't mean we suddenly get shared libraries
8351 # on systems that don't support them.
8352 lt_prog_compiler_can_build_shared=no
8353 enable_shared=no
8354 ;;
8355
8356 *nto* | *qnx*)
8357 # QNX uses GNU C++, but need to define -shared option too, otherwise
8358 # it will coredump.
8359 lt_prog_compiler_pic='-fPIC -shared'
8360 ;;
8361
8362 sysv4*MP*)
8363 if test -d /usr/nec; then
8364 lt_prog_compiler_pic=-Kconform_pic
8365 fi
8366 ;;
8367
8368 *)
8369 lt_prog_compiler_pic='-fPIC'
8370 ;;
8371 esac
8372
8373 case $cc_basename in
8374 nvcc*) # Cuda Compiler Driver 2.2
8375 lt_prog_compiler_wl='-Xlinker '
8376 if test -n "$lt_prog_compiler_pic"; then
8377 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8378 fi
8379 ;;
8380 esac
8381 else
8382 # PORTME Check for flag to pass linker flags through the system compiler.
8383 case $host_os in
8384 aix*)
8385 lt_prog_compiler_wl='-Wl,'
8386 if test ia64 = "$host_cpu"; then
8387 # AIX 5 now supports IA64 processor
8388 lt_prog_compiler_static='-Bstatic'
8389 else
8390 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8391 fi
8392 ;;
8393
8394 darwin* | rhapsody*)
8395 # PIC is the default on this platform
8396 # Common symbols not allowed in MH_DYLIB files
8397 lt_prog_compiler_pic='-fno-common'
8398 case $cc_basename in
8399 nagfor*)
8400 # NAG Fortran compiler
8401 lt_prog_compiler_wl='-Wl,-Wl,,'
8402 lt_prog_compiler_pic='-PIC'
8403 lt_prog_compiler_static='-Bstatic'
8404 ;;
8405 esac
8406 ;;
8407
8408 mingw* | cygwin* | pw32* | os2* | cegcc*)
8409 # This hack is so that the source file can tell whether it is being
8410 # built for inclusion in a dll (and should export symbols for example).
8411 lt_prog_compiler_pic='-DDLL_EXPORT'
8412 case $host_os in
8413 os2*)
8414 lt_prog_compiler_static='$wl-static'
8415 ;;
8416 esac
8417 ;;
8418
8419 hpux9* | hpux10* | hpux11*)
8420 lt_prog_compiler_wl='-Wl,'
8421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8422 # not for PA HP-UX.
8423 case $host_cpu in
8424 hppa*64*|ia64*)
8425 # +Z the default
8426 ;;
8427 *)
8428 lt_prog_compiler_pic='+Z'
8429 ;;
8430 esac
8431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8432 lt_prog_compiler_static='$wl-a ${wl}archive'
8433 ;;
8434
8435 irix5* | irix6* | nonstopux*)
8436 lt_prog_compiler_wl='-Wl,'
8437 # PIC (with -KPIC) is the default.
8438 lt_prog_compiler_static='-non_shared'
8439 ;;
8440
8441 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8442 case $cc_basename in
8443 # old Intel for x86_64, which still supported -KPIC.
8444 ecc*)
8445 lt_prog_compiler_wl='-Wl,'
8446 lt_prog_compiler_pic='-KPIC'
8447 lt_prog_compiler_static='-static'
8448 ;;
8449 # icc used to be incompatible with GCC.
8450 # ICC 10 doesn't accept -KPIC any more.
8451 icc* | ifort*)
8452 lt_prog_compiler_wl='-Wl,'
8453 lt_prog_compiler_pic='-fPIC'
8454 lt_prog_compiler_static='-static'
8455 ;;
8456 # Lahey Fortran 8.1.
8457 lf95*)
8458 lt_prog_compiler_wl='-Wl,'
8459 lt_prog_compiler_pic='--shared'
8460 lt_prog_compiler_static='--static'
8461 ;;
8462 nagfor*)
8463 # NAG Fortran compiler
8464 lt_prog_compiler_wl='-Wl,-Wl,,'
8465 lt_prog_compiler_pic='-PIC'
8466 lt_prog_compiler_static='-Bstatic'
8467 ;;
8468 tcc*)
8469 # Fabrice Bellard et al's Tiny C Compiler
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_pic='-fPIC'
8472 lt_prog_compiler_static='-static'
8473 ;;
8474 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8475 # Portland Group compilers (*not* the Pentium gcc compiler,
8476 # which looks to be a dead project)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-fpic'
8479 lt_prog_compiler_static='-Bstatic'
8480 ;;
8481 ccc*)
8482 lt_prog_compiler_wl='-Wl,'
8483 # All Alpha code is PIC.
8484 lt_prog_compiler_static='-non_shared'
8485 ;;
8486 xl* | bgxl* | bgf* | mpixl*)
8487 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-qpic'
8490 lt_prog_compiler_static='-qstaticlink'
8491 ;;
8492 *)
8493 case `$CC -V 2>&1 | sed 5q` in
8494 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8495 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-Bstatic'
8498 lt_prog_compiler_wl=''
8499 ;;
8500 *Sun\ F* | *Sun*Fortran*)
8501 lt_prog_compiler_pic='-KPIC'
8502 lt_prog_compiler_static='-Bstatic'
8503 lt_prog_compiler_wl='-Qoption ld '
8504 ;;
8505 *Sun\ C*)
8506 # Sun C 5.9
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 lt_prog_compiler_wl='-Wl,'
8510 ;;
8511 *Intel*\ [CF]*Compiler*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-fPIC'
8514 lt_prog_compiler_static='-static'
8515 ;;
8516 *Portland\ Group*)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-fpic'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
8521 esac
8522 ;;
8523 esac
8524 ;;
8525
8526 newsos6)
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8529 ;;
8530
8531 *nto* | *qnx*)
8532 # QNX uses GNU C++, but need to define -shared option too, otherwise
8533 # it will coredump.
8534 lt_prog_compiler_pic='-fPIC -shared'
8535 ;;
8536
8537 osf3* | osf4* | osf5*)
8538 lt_prog_compiler_wl='-Wl,'
8539 # All OSF/1 code is PIC.
8540 lt_prog_compiler_static='-non_shared'
8541 ;;
8542
8543 rdos*)
8544 lt_prog_compiler_static='-non_shared'
8545 ;;
8546
8547 solaris*)
8548 lt_prog_compiler_pic='-KPIC'
8549 lt_prog_compiler_static='-Bstatic'
8550 case $cc_basename in
8551 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8552 lt_prog_compiler_wl='-Qoption ld ';;
8553 *)
8554 lt_prog_compiler_wl='-Wl,';;
8555 esac
8556 ;;
8557
8558 sunos4*)
8559 lt_prog_compiler_wl='-Qoption ld '
8560 lt_prog_compiler_pic='-PIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 ;;
8563
8564 sysv4 | sysv4.2uw2* | sysv4.3*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-KPIC'
8567 lt_prog_compiler_static='-Bstatic'
8568 ;;
8569
8570 sysv4*MP*)
8571 if test -d /usr/nec; then
8572 lt_prog_compiler_pic='-Kconform_pic'
8573 lt_prog_compiler_static='-Bstatic'
8574 fi
8575 ;;
8576
8577 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='-KPIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 ;;
8582
8583 unicos*)
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_can_build_shared=no
8586 ;;
8587
8588 uts4*)
8589 lt_prog_compiler_pic='-pic'
8590 lt_prog_compiler_static='-Bstatic'
8591 ;;
8592
8593 *)
8594 lt_prog_compiler_can_build_shared=no
8595 ;;
8596 esac
8597 fi
8598
8599 case $host_os in
8600 # For platforms that do not support PIC, -DPIC is meaningless:
8601 *djgpp*)
8602 lt_prog_compiler_pic=
8603 ;;
8604 *)
8605 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8606 ;;
8607 esac
8608
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8610 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8611 if ${lt_cv_prog_compiler_pic+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8615 fi
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8617 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8618 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8619
8620 #
8621 # Check to make sure the PIC flag actually works.
8622 #
8623 if test -n "$lt_prog_compiler_pic"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8625 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8626 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 lt_cv_prog_compiler_pic_works=no
8630 ac_outfile=conftest.$ac_objext
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8632 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8633 # Insert the option either (1) after the last *FLAGS variable, or
8634 # (2) before a word containing "conftest.", or (3) at the end.
8635 # Note that $ac_compile itself does not contain backslashes and begins
8636 # with a dollar sign (not a hyphen), so the echo should work correctly.
8637 # The option is referenced via a variable to avoid confusing sed.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8643 (eval "$lt_compile" 2>conftest.err)
8644 ac_status=$?
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 if (exit $ac_status) && test -s "$ac_outfile"; then
8648 # The compiler can only warn and ignore the option if not recognized
8649 # So say no if there are warnings other than the usual output.
8650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8653 lt_cv_prog_compiler_pic_works=yes
8654 fi
8655 fi
8656 $RM conftest*
8657
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8660 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8661
8662 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8663 case $lt_prog_compiler_pic in
8664 "" | " "*) ;;
8665 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8666 esac
8667 else
8668 lt_prog_compiler_pic=
8669 lt_prog_compiler_can_build_shared=no
8670 fi
8671
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684 #
8685 # Check to make sure the static flag actually works.
8686 #
8687 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8690 if ${lt_cv_prog_compiler_static_works+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 lt_cv_prog_compiler_static_works=no
8694 save_LDFLAGS=$LDFLAGS
8695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8698 # The linker can only warn and ignore the option if not recognized
8699 # So say no if there are warnings
8700 if test -s conftest.err; then
8701 # Append any errors to the config.log.
8702 cat conftest.err 1>&5
8703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8705 if diff conftest.exp conftest.er2 >/dev/null; then
8706 lt_cv_prog_compiler_static_works=yes
8707 fi
8708 else
8709 lt_cv_prog_compiler_static_works=yes
8710 fi
8711 fi
8712 $RM -r conftest*
8713 LDFLAGS=$save_LDFLAGS
8714
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8717 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8718
8719 if test yes = "$lt_cv_prog_compiler_static_works"; then
8720 :
8721 else
8722 lt_prog_compiler_static=
8723 fi
8724
8725
8726
8727
8728
8729
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8732 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8733 if ${lt_cv_prog_compiler_c_o+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 lt_cv_prog_compiler_c_o=no
8737 $RM -r conftest 2>/dev/null
8738 mkdir conftest
8739 cd conftest
8740 mkdir out
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742
8743 lt_compiler_flag="-o out/conftest2.$ac_objext"
8744 # Insert the option either (1) after the last *FLAGS variable, or
8745 # (2) before a word containing "conftest.", or (3) at the end.
8746 # Note that $ac_compile itself does not contain backslashes and begins
8747 # with a dollar sign (not a hyphen), so the echo should work correctly.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>out/conftest.err)
8754 ac_status=$?
8755 cat out/conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8758 then
8759 # The compiler can only warn and ignore the option if not recognized
8760 # So say no if there are warnings
8761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler_c_o=yes
8765 fi
8766 fi
8767 chmod u+w . 2>&5
8768 $RM conftest*
8769 # SGI C++ compiler will create directory out/ii_files/ for
8770 # template instantiation
8771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8772 $RM out/* && rmdir out
8773 cd ..
8774 $RM -r conftest
8775 $RM conftest*
8776
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8779 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8780
8781
8782
8783
8784
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8788 if ${lt_cv_prog_compiler_c_o+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 lt_cv_prog_compiler_c_o=no
8792 $RM -r conftest 2>/dev/null
8793 mkdir conftest
8794 cd conftest
8795 mkdir out
8796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8797
8798 lt_compiler_flag="-o out/conftest2.$ac_objext"
8799 # Insert the option either (1) after the last *FLAGS variable, or
8800 # (2) before a word containing "conftest.", or (3) at the end.
8801 # Note that $ac_compile itself does not contain backslashes and begins
8802 # with a dollar sign (not a hyphen), so the echo should work correctly.
8803 lt_compile=`echo "$ac_compile" | $SED \
8804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8806 -e 's:$: $lt_compiler_flag:'`
8807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8808 (eval "$lt_compile" 2>out/conftest.err)
8809 ac_status=$?
8810 cat out/conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8813 then
8814 # The compiler can only warn and ignore the option if not recognized
8815 # So say no if there are warnings
8816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8819 lt_cv_prog_compiler_c_o=yes
8820 fi
8821 fi
8822 chmod u+w . 2>&5
8823 $RM conftest*
8824 # SGI C++ compiler will create directory out/ii_files/ for
8825 # template instantiation
8826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8827 $RM out/* && rmdir out
8828 cd ..
8829 $RM -r conftest
8830 $RM conftest*
8831
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8835
8836
8837
8838
8839 hard_links=nottested
8840 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8841 # do not overwrite the value of need_locks provided by the user
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8843 $as_echo_n "checking if we can lock with hard links... " >&6; }
8844 hard_links=yes
8845 $RM conftest*
8846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8847 touch conftest.a
8848 ln conftest.a conftest.b 2>&5 || hard_links=no
8849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8851 $as_echo "$hard_links" >&6; }
8852 if test no = "$hard_links"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8854 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8855 need_locks=warn
8856 fi
8857 else
8858 need_locks=no
8859 fi
8860
8861
8862
8863
8864
8865
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8867 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8868
8869 runpath_var=
8870 allow_undefined_flag=
8871 always_export_symbols=no
8872 archive_cmds=
8873 archive_expsym_cmds=
8874 compiler_needs_object=no
8875 enable_shared_with_static_runtimes=no
8876 export_dynamic_flag_spec=
8877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8878 hardcode_automatic=no
8879 hardcode_direct=no
8880 hardcode_direct_absolute=no
8881 hardcode_libdir_flag_spec=
8882 hardcode_libdir_separator=
8883 hardcode_minus_L=no
8884 hardcode_shlibpath_var=unsupported
8885 inherit_rpath=no
8886 link_all_deplibs=unknown
8887 module_cmds=
8888 module_expsym_cmds=
8889 old_archive_from_new_cmds=
8890 old_archive_from_expsyms_cmds=
8891 thread_safe_flag_spec=
8892 whole_archive_flag_spec=
8893 # include_expsyms should be a list of space-separated symbols to be *always*
8894 # included in the symbol list
8895 include_expsyms=
8896 # exclude_expsyms can be an extended regexp of symbols to exclude
8897 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8898 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8899 # as well as any symbol that contains 'd'.
8900 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8901 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8902 # platforms (ab)use it in PIC code, but their linkers get confused if
8903 # the symbol is explicitly referenced. Since portable code cannot
8904 # rely on this symbol name, it's probably fine to never include it in
8905 # preloaded symbol tables.
8906 # Exclude shared library initialization/finalization symbols.
8907 extract_expsyms_cmds=
8908
8909 case $host_os in
8910 cygwin* | mingw* | pw32* | cegcc*)
8911 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8912 # When not using gcc, we currently assume that we are using
8913 # Microsoft Visual C++.
8914 if test yes != "$GCC"; then
8915 with_gnu_ld=no
8916 fi
8917 ;;
8918 interix*)
8919 # we just hope/assume this is gcc and not c89 (= MSVC++)
8920 with_gnu_ld=yes
8921 ;;
8922 openbsd* | bitrig*)
8923 with_gnu_ld=no
8924 ;;
8925 linux* | k*bsd*-gnu | gnu*)
8926 link_all_deplibs=no
8927 ;;
8928 esac
8929
8930 ld_shlibs=yes
8931
8932 # On some targets, GNU ld is compatible enough with the native linker
8933 # that we're better off using the native interface for both.
8934 lt_use_gnu_ld_interface=no
8935 if test yes = "$with_gnu_ld"; then
8936 case $host_os in
8937 aix*)
8938 # The AIX port of GNU ld has always aspired to compatibility
8939 # with the native linker. However, as the warning in the GNU ld
8940 # block says, versions before 2.19.5* couldn't really create working
8941 # shared libraries, regardless of the interface used.
8942 case `$LD -v 2>&1` in
8943 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8944 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8945 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8946 *)
8947 lt_use_gnu_ld_interface=yes
8948 ;;
8949 esac
8950 ;;
8951 *)
8952 lt_use_gnu_ld_interface=yes
8953 ;;
8954 esac
8955 fi
8956
8957 if test yes = "$lt_use_gnu_ld_interface"; then
8958 # If archive_cmds runs LD, not CC, wlarc should be empty
8959 wlarc='$wl'
8960
8961 # Set some defaults for GNU ld with shared library support. These
8962 # are reset later if shared libraries are not supported. Putting them
8963 # here allows them to be overridden if necessary.
8964 runpath_var=LD_RUN_PATH
8965 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8966 export_dynamic_flag_spec='$wl--export-dynamic'
8967 # ancient GNU ld didn't support --whole-archive et. al.
8968 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8969 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8970 else
8971 whole_archive_flag_spec=
8972 fi
8973 supports_anon_versioning=no
8974 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8975 *GNU\ gold*) supports_anon_versioning=yes ;;
8976 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8979 *\ 2.11.*) ;; # other 2.11 versions
8980 *) supports_anon_versioning=yes ;;
8981 esac
8982
8983 # See if GNU ld supports shared libraries.
8984 case $host_os in
8985 aix[3-9]*)
8986 # On AIX/PPC, the GNU linker is very broken
8987 if test ia64 != "$host_cpu"; then
8988 ld_shlibs=no
8989 cat <<_LT_EOF 1>&2
8990
8991 *** Warning: the GNU linker, at least up to release 2.19, is reported
8992 *** to be unable to reliably create shared libraries on AIX.
8993 *** Therefore, libtool is disabling shared libraries support. If you
8994 *** really care for shared libraries, you may want to install binutils
8995 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8996 *** You will then need to restart the configuration process.
8997
8998 _LT_EOF
8999 fi
9000 ;;
9001
9002 amigaos*)
9003 case $host_cpu in
9004 powerpc)
9005 # see comment about AmigaOS4 .so support
9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9007 archive_expsym_cmds=''
9008 ;;
9009 m68k)
9010 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)'
9011 hardcode_libdir_flag_spec='-L$libdir'
9012 hardcode_minus_L=yes
9013 ;;
9014 esac
9015 ;;
9016
9017 beos*)
9018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9019 allow_undefined_flag=unsupported
9020 # Joseph Beckenbach <[email protected]> says some releases of gcc
9021 # support --undefined. This deserves some investigation. FIXME
9022 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9023 else
9024 ld_shlibs=no
9025 fi
9026 ;;
9027
9028 cygwin* | mingw* | pw32* | cegcc*)
9029 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9030 # as there is no search path for DLLs.
9031 hardcode_libdir_flag_spec='-L$libdir'
9032 export_dynamic_flag_spec='$wl--export-all-symbols'
9033 allow_undefined_flag=unsupported
9034 always_export_symbols=no
9035 enable_shared_with_static_runtimes=yes
9036 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'
9037 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9038
9039 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9041 # If the export-symbols file already is a .def file, use it as
9042 # is; otherwise, prepend EXPORTS...
9043 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9044 cp $export_symbols $output_objdir/$soname.def;
9045 else
9046 echo EXPORTS > $output_objdir/$soname.def;
9047 cat $export_symbols >> $output_objdir/$soname.def;
9048 fi~
9049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9050 else
9051 ld_shlibs=no
9052 fi
9053 ;;
9054
9055 haiku*)
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9057 link_all_deplibs=yes
9058 ;;
9059
9060 os2*)
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_minus_L=yes
9063 allow_undefined_flag=unsupported
9064 shrext_cmds=.dll
9065 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9066 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9067 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9068 $ECHO EXPORTS >> $output_objdir/$libname.def~
9069 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9070 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9071 emximp -o $lib $output_objdir/$libname.def'
9072 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9073 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9074 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9075 $ECHO EXPORTS >> $output_objdir/$libname.def~
9076 prefix_cmds="$SED"~
9077 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9078 prefix_cmds="$prefix_cmds -e 1d";
9079 fi~
9080 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9081 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9082 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9083 emximp -o $lib $output_objdir/$libname.def'
9084 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9085 enable_shared_with_static_runtimes=yes
9086 ;;
9087
9088 interix[3-9]*)
9089 hardcode_direct=no
9090 hardcode_shlibpath_var=no
9091 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9092 export_dynamic_flag_spec='$wl-E'
9093 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9094 # Instead, shared libraries are loaded at an image base (0x10000000 by
9095 # default) and relocated if they conflict, which is a slow very memory
9096 # consuming and fragmenting process. To avoid this, we pick a random,
9097 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9098 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9100 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'
9101 ;;
9102
9103 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9104 tmp_diet=no
9105 if test linux-dietlibc = "$host_os"; then
9106 case $cc_basename in
9107 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9108 esac
9109 fi
9110 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9111 && test no = "$tmp_diet"
9112 then
9113 tmp_addflag=' $pic_flag'
9114 tmp_sharedflag='-shared'
9115 case $cc_basename,$host_cpu in
9116 pgcc*) # Portland Group C compiler
9117 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'
9118 tmp_addflag=' $pic_flag'
9119 ;;
9120 pgf77* | pgf90* | pgf95* | pgfortran*)
9121 # Portland Group f77 and f90 compilers
9122 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'
9123 tmp_addflag=' $pic_flag -Mnomain' ;;
9124 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9125 tmp_addflag=' -i_dynamic' ;;
9126 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9127 tmp_addflag=' -i_dynamic -nofor_main' ;;
9128 ifc* | ifort*) # Intel Fortran compiler
9129 tmp_addflag=' -nofor_main' ;;
9130 lf95*) # Lahey Fortran 8.1
9131 whole_archive_flag_spec=
9132 tmp_sharedflag='--shared' ;;
9133 nagfor*) # NAGFOR 5.3
9134 tmp_sharedflag='-Wl,-shared' ;;
9135 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9136 tmp_sharedflag='-qmkshrobj'
9137 tmp_addflag= ;;
9138 nvcc*) # Cuda Compiler Driver 2.2
9139 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'
9140 compiler_needs_object=yes
9141 ;;
9142 esac
9143 case `$CC -V 2>&1 | sed 5q` in
9144 *Sun\ C*) # Sun C 5.9
9145 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'
9146 compiler_needs_object=yes
9147 tmp_sharedflag='-G' ;;
9148 *Sun\ F*) # Sun Fortran 8.3
9149 tmp_sharedflag='-G' ;;
9150 esac
9151 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9152
9153 if test yes = "$supports_anon_versioning"; then
9154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9156 echo "local: *; };" >> $output_objdir/$libname.ver~
9157 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9158 fi
9159
9160 case $cc_basename in
9161 tcc*)
9162 export_dynamic_flag_spec='-rdynamic'
9163 ;;
9164 xlf* | bgf* | bgxlf* | mpixlf*)
9165 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9166 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9167 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9168 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9169 if test yes = "$supports_anon_versioning"; then
9170 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9172 echo "local: *; };" >> $output_objdir/$libname.ver~
9173 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9174 fi
9175 ;;
9176 esac
9177 else
9178 ld_shlibs=no
9179 fi
9180 ;;
9181
9182 netbsd* | netbsdelf*-gnu)
9183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9184 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9185 wlarc=
9186 else
9187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9188 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9189 fi
9190 ;;
9191
9192 solaris*)
9193 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9194 ld_shlibs=no
9195 cat <<_LT_EOF 1>&2
9196
9197 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9198 *** create shared libraries on Solaris systems. Therefore, libtool
9199 *** is disabling shared libraries support. We urge you to upgrade GNU
9200 *** binutils to release 2.9.1 or newer. Another option is to modify
9201 *** your PATH or compiler configuration so that the native linker is
9202 *** used, and then restart.
9203
9204 _LT_EOF
9205 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9206 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9207 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9208 else
9209 ld_shlibs=no
9210 fi
9211 ;;
9212
9213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9214 case `$LD -v 2>&1` in
9215 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9216 ld_shlibs=no
9217 cat <<_LT_EOF 1>&2
9218
9219 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9220 *** reliably create shared libraries on SCO systems. Therefore, libtool
9221 *** is disabling shared libraries support. We urge you to upgrade GNU
9222 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9223 *** your PATH or compiler configuration so that the native linker is
9224 *** used, and then restart.
9225
9226 _LT_EOF
9227 ;;
9228 *)
9229 # For security reasons, it is highly recommended that you always
9230 # use absolute paths for naming shared libraries, and exclude the
9231 # DT_RUNPATH tag from executables and libraries. But doing so
9232 # requires that you compile everything twice, which is a pain.
9233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9237 else
9238 ld_shlibs=no
9239 fi
9240 ;;
9241 esac
9242 ;;
9243
9244 sunos4*)
9245 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9246 wlarc=
9247 hardcode_direct=yes
9248 hardcode_shlibpath_var=no
9249 ;;
9250
9251 *)
9252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9255 else
9256 ld_shlibs=no
9257 fi
9258 ;;
9259 esac
9260
9261 if test no = "$ld_shlibs"; then
9262 runpath_var=
9263 hardcode_libdir_flag_spec=
9264 export_dynamic_flag_spec=
9265 whole_archive_flag_spec=
9266 fi
9267 else
9268 # PORTME fill in a description of your system's linker (not GNU ld)
9269 case $host_os in
9270 aix3*)
9271 allow_undefined_flag=unsupported
9272 always_export_symbols=yes
9273 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'
9274 # Note: this linker hardcodes the directories in LIBPATH if there
9275 # are no directories specified by -L.
9276 hardcode_minus_L=yes
9277 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9278 # Neither direct hardcoding nor static linking is supported with a
9279 # broken collect2.
9280 hardcode_direct=unsupported
9281 fi
9282 ;;
9283
9284 aix[4-9]*)
9285 if test ia64 = "$host_cpu"; then
9286 # On IA64, the linker does run time linking by default, so we don't
9287 # have to do anything special.
9288 aix_use_runtimelinking=no
9289 exp_sym_flag='-Bexport'
9290 no_entry_flag=
9291 else
9292 # If we're using GNU nm, then we don't want the "-C" option.
9293 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9294 # Without the "-l" option, or with the "-B" option, AIX nm treats
9295 # weak defined symbols like other global defined symbols, whereas
9296 # GNU nm marks them as "W".
9297 # While the 'weak' keyword is ignored in the Export File, we need
9298 # it in the Import File for the 'aix-soname' feature, so we have
9299 # to replace the "-B" option with "-P" for AIX nm.
9300 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9301 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9302 else
9303 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9304 fi
9305 aix_use_runtimelinking=no
9306
9307 # Test if we are trying to use run time linking or normal
9308 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9309 # have runtime linking enabled, and use it for executables.
9310 # For shared libraries, we enable/disable runtime linking
9311 # depending on the kind of the shared library created -
9312 # when "with_aix_soname,aix_use_runtimelinking" is:
9313 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9314 # "aix,yes" lib.so shared, rtl:yes, for executables
9315 # lib.a static archive
9316 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9317 # lib.a(lib.so.V) shared, rtl:no, for executables
9318 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9319 # lib.a(lib.so.V) shared, rtl:no
9320 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9321 # lib.a static archive
9322 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9323 for ld_flag in $LDFLAGS; do
9324 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9325 aix_use_runtimelinking=yes
9326 break
9327 fi
9328 done
9329 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9330 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9331 # so we don't have lib.a shared libs to link our executables.
9332 # We have to force runtime linking in this case.
9333 aix_use_runtimelinking=yes
9334 LDFLAGS="$LDFLAGS -Wl,-brtl"
9335 fi
9336 ;;
9337 esac
9338
9339 exp_sym_flag='-bexport'
9340 no_entry_flag='-bnoentry'
9341 fi
9342
9343 # When large executables or shared objects are built, AIX ld can
9344 # have problems creating the table of contents. If linking a library
9345 # or program results in "error TOC overflow" add -mminimal-toc to
9346 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9347 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9348
9349 archive_cmds=''
9350 hardcode_direct=yes
9351 hardcode_direct_absolute=yes
9352 hardcode_libdir_separator=':'
9353 link_all_deplibs=yes
9354 file_list_spec='$wl-f,'
9355 case $with_aix_soname,$aix_use_runtimelinking in
9356 aix,*) ;; # traditional, no import file
9357 svr4,* | *,yes) # use import file
9358 # The Import File defines what to hardcode.
9359 hardcode_direct=no
9360 hardcode_direct_absolute=no
9361 ;;
9362 esac
9363
9364 if test yes = "$GCC"; then
9365 case $host_os in aix4.[012]|aix4.[012].*)
9366 # We only want to do this on AIX 4.2 and lower, the check
9367 # below for broken collect2 doesn't work under 4.3+
9368 collect2name=`$CC -print-prog-name=collect2`
9369 if test -f "$collect2name" &&
9370 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9371 then
9372 # We have reworked collect2
9373 :
9374 else
9375 # We have old collect2
9376 hardcode_direct=unsupported
9377 # It fails to find uninstalled libraries when the uninstalled
9378 # path is not listed in the libpath. Setting hardcode_minus_L
9379 # to unsupported forces relinking
9380 hardcode_minus_L=yes
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_libdir_separator=
9383 fi
9384 ;;
9385 esac
9386 shared_flag='-shared'
9387 if test yes = "$aix_use_runtimelinking"; then
9388 shared_flag="$shared_flag "'$wl-G'
9389 fi
9390 # Need to ensure runtime linking is disabled for the traditional
9391 # shared library, or the linker may eventually find shared libraries
9392 # /with/ Import File - we do not want to mix them.
9393 shared_flag_aix='-shared'
9394 shared_flag_svr4='-shared $wl-G'
9395 else
9396 # not using gcc
9397 if test ia64 = "$host_cpu"; then
9398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9399 # chokes on -Wl,-G. The following line is correct:
9400 shared_flag='-G'
9401 else
9402 if test yes = "$aix_use_runtimelinking"; then
9403 shared_flag='$wl-G'
9404 else
9405 shared_flag='$wl-bM:SRE'
9406 fi
9407 shared_flag_aix='$wl-bM:SRE'
9408 shared_flag_svr4='$wl-G'
9409 fi
9410 fi
9411
9412 export_dynamic_flag_spec='$wl-bexpall'
9413 # It seems that -bexpall does not export symbols beginning with
9414 # underscore (_), so it is better to generate a list of symbols to export.
9415 always_export_symbols=yes
9416 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9417 # Warning - without using the other runtime loading flags (-brtl),
9418 # -berok will link without error, but may produce a broken library.
9419 allow_undefined_flag='-berok'
9420 # Determine the default libpath from the value encoded in an
9421 # empty executable.
9422 if test set = "${lt_cv_aix_libpath+set}"; then
9423 aix_libpath=$lt_cv_aix_libpath
9424 else
9425 if ${lt_cv_aix_libpath_+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430
9431 int
9432 main ()
9433 {
9434
9435 ;
9436 return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"; then :
9440
9441 lt_aix_libpath_sed='
9442 /Import File Strings/,/^$/ {
9443 /^0/ {
9444 s/^0 *\([^ ]*\) *$/\1/
9445 p
9446 }
9447 }'
9448 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9449 # Check for a 64-bit object if we didn't find anything.
9450 if test -z "$lt_cv_aix_libpath_"; then
9451 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9452 fi
9453 fi
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 if test -z "$lt_cv_aix_libpath_"; then
9457 lt_cv_aix_libpath_=/usr/lib:/lib
9458 fi
9459
9460 fi
9461
9462 aix_libpath=$lt_cv_aix_libpath_
9463 fi
9464
9465 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9466 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9467 else
9468 if test ia64 = "$host_cpu"; then
9469 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9470 allow_undefined_flag="-z nodefs"
9471 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"
9472 else
9473 # Determine the default libpath from the value encoded in an
9474 # empty executable.
9475 if test set = "${lt_cv_aix_libpath+set}"; then
9476 aix_libpath=$lt_cv_aix_libpath
9477 else
9478 if ${lt_cv_aix_libpath_+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483
9484 int
9485 main ()
9486 {
9487
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493
9494 lt_aix_libpath_sed='
9495 /Import File Strings/,/^$/ {
9496 /^0/ {
9497 s/^0 *\([^ ]*\) *$/\1/
9498 p
9499 }
9500 }'
9501 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9502 # Check for a 64-bit object if we didn't find anything.
9503 if test -z "$lt_cv_aix_libpath_"; then
9504 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505 fi
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509 if test -z "$lt_cv_aix_libpath_"; then
9510 lt_cv_aix_libpath_=/usr/lib:/lib
9511 fi
9512
9513 fi
9514
9515 aix_libpath=$lt_cv_aix_libpath_
9516 fi
9517
9518 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9519 # Warning - without using the other run time loading flags,
9520 # -berok will link without error, but may produce a broken library.
9521 no_undefined_flag=' $wl-bernotok'
9522 allow_undefined_flag=' $wl-berok'
9523 if test yes = "$with_gnu_ld"; then
9524 # We only use this code for GNU lds that support --whole-archive.
9525 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9526 else
9527 # Exported symbols can be pulled into shared objects from archives
9528 whole_archive_flag_spec='$convenience'
9529 fi
9530 archive_cmds_need_lc=yes
9531 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9532 # -brtl affects multiple linker settings, -berok does not and is overridden later
9533 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9534 if test svr4 != "$with_aix_soname"; then
9535 # This is similar to how AIX traditionally builds its shared libraries.
9536 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9537 fi
9538 if test aix != "$with_aix_soname"; then
9539 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9540 else
9541 # used by -dlpreopen to get the symbols
9542 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9543 fi
9544 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9545 fi
9546 fi
9547 ;;
9548
9549 amigaos*)
9550 case $host_cpu in
9551 powerpc)
9552 # see comment about AmigaOS4 .so support
9553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9554 archive_expsym_cmds=''
9555 ;;
9556 m68k)
9557 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)'
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_minus_L=yes
9560 ;;
9561 esac
9562 ;;
9563
9564 bsdi[45]*)
9565 export_dynamic_flag_spec=-rdynamic
9566 ;;
9567
9568 cygwin* | mingw* | pw32* | cegcc*)
9569 # When not using gcc, we currently assume that we are using
9570 # Microsoft Visual C++.
9571 # hardcode_libdir_flag_spec is actually meaningless, as there is
9572 # no search path for DLLs.
9573 case $cc_basename in
9574 cl*)
9575 # Native MSVC
9576 hardcode_libdir_flag_spec=' '
9577 allow_undefined_flag=unsupported
9578 always_export_symbols=yes
9579 file_list_spec='@'
9580 # Tell ltmain to make .lib files, not .a files.
9581 libext=lib
9582 # Tell ltmain to make .dll files, not .so files.
9583 shrext_cmds=.dll
9584 # FIXME: Setting linknames here is a bad hack.
9585 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9586 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9587 cp "$export_symbols" "$output_objdir/$soname.def";
9588 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9589 else
9590 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9591 fi~
9592 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9593 linknames='
9594 # The linker will not automatically build a static lib if we build a DLL.
9595 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9596 enable_shared_with_static_runtimes=yes
9597 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9598 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9599 # Don't use ranlib
9600 old_postinstall_cmds='chmod 644 $oldlib'
9601 postlink_cmds='lt_outputfile="@OUTPUT@"~
9602 lt_tool_outputfile="@TOOL_OUTPUT@"~
9603 case $lt_outputfile in
9604 *.exe|*.EXE) ;;
9605 *)
9606 lt_outputfile=$lt_outputfile.exe
9607 lt_tool_outputfile=$lt_tool_outputfile.exe
9608 ;;
9609 esac~
9610 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9611 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9612 $RM "$lt_outputfile.manifest";
9613 fi'
9614 ;;
9615 *)
9616 # Assume MSVC wrapper
9617 hardcode_libdir_flag_spec=' '
9618 allow_undefined_flag=unsupported
9619 # Tell ltmain to make .lib files, not .a files.
9620 libext=lib
9621 # Tell ltmain to make .dll files, not .so files.
9622 shrext_cmds=.dll
9623 # FIXME: Setting linknames here is a bad hack.
9624 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9625 # The linker will automatically build a .lib file if we build a DLL.
9626 old_archive_from_new_cmds='true'
9627 # FIXME: Should let the user specify the lib program.
9628 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9629 enable_shared_with_static_runtimes=yes
9630 ;;
9631 esac
9632 ;;
9633
9634 darwin* | rhapsody*)
9635
9636
9637 archive_cmds_need_lc=no
9638 hardcode_direct=no
9639 hardcode_automatic=yes
9640 hardcode_shlibpath_var=unsupported
9641 if test yes = "$lt_cv_ld_force_load"; then
9642 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\"`'
9643
9644 else
9645 whole_archive_flag_spec=''
9646 fi
9647 link_all_deplibs=yes
9648 allow_undefined_flag=$_lt_dar_allow_undefined
9649 case $cc_basename in
9650 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9651 *) _lt_dar_can_shared=$GCC ;;
9652 esac
9653 if test yes = "$_lt_dar_can_shared"; then
9654 output_verbose_link_cmd=func_echo_all
9655 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9656 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9657 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"
9658 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"
9659
9660 else
9661 ld_shlibs=no
9662 fi
9663
9664 ;;
9665
9666 dgux*)
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9673 # support. Future versions do this automatically, but an explicit c++rt0.o
9674 # does not break anything, and helps significantly (at the cost of a little
9675 # extra space).
9676 freebsd2.2*)
9677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9678 hardcode_libdir_flag_spec='-R$libdir'
9679 hardcode_direct=yes
9680 hardcode_shlibpath_var=no
9681 ;;
9682
9683 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9684 freebsd2.*)
9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_direct=yes
9687 hardcode_minus_L=yes
9688 hardcode_shlibpath_var=no
9689 ;;
9690
9691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9692 freebsd* | dragonfly*)
9693 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9694 hardcode_libdir_flag_spec='-R$libdir'
9695 hardcode_direct=yes
9696 hardcode_shlibpath_var=no
9697 ;;
9698
9699 hpux9*)
9700 if test yes = "$GCC"; then
9701 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9702 else
9703 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9704 fi
9705 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9706 hardcode_libdir_separator=:
9707 hardcode_direct=yes
9708
9709 # hardcode_minus_L: Not really in the search PATH,
9710 # but as the default location of the library.
9711 hardcode_minus_L=yes
9712 export_dynamic_flag_spec='$wl-E'
9713 ;;
9714
9715 hpux10*)
9716 if test yes,no = "$GCC,$with_gnu_ld"; then
9717 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9718 else
9719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9720 fi
9721 if test no = "$with_gnu_ld"; then
9722 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9723 hardcode_libdir_separator=:
9724 hardcode_direct=yes
9725 hardcode_direct_absolute=yes
9726 export_dynamic_flag_spec='$wl-E'
9727 # hardcode_minus_L: Not really in the search PATH,
9728 # but as the default location of the library.
9729 hardcode_minus_L=yes
9730 fi
9731 ;;
9732
9733 hpux11*)
9734 if test yes,no = "$GCC,$with_gnu_ld"; then
9735 case $host_cpu in
9736 hppa*64*)
9737 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 ;;
9739 ia64*)
9740 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9741 ;;
9742 *)
9743 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9744 ;;
9745 esac
9746 else
9747 case $host_cpu in
9748 hppa*64*)
9749 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 ;;
9751 ia64*)
9752 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9753 ;;
9754 *)
9755
9756 # Older versions of the 11.00 compiler do not understand -b yet
9757 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9759 $as_echo_n "checking if $CC understands -b... " >&6; }
9760 if ${lt_cv_prog_compiler__b+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 lt_cv_prog_compiler__b=no
9764 save_LDFLAGS=$LDFLAGS
9765 LDFLAGS="$LDFLAGS -b"
9766 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9768 # The linker can only warn and ignore the option if not recognized
9769 # So say no if there are warnings
9770 if test -s conftest.err; then
9771 # Append any errors to the config.log.
9772 cat conftest.err 1>&5
9773 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9775 if diff conftest.exp conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler__b=yes
9777 fi
9778 else
9779 lt_cv_prog_compiler__b=yes
9780 fi
9781 fi
9782 $RM -r conftest*
9783 LDFLAGS=$save_LDFLAGS
9784
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9787 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9788
9789 if test yes = "$lt_cv_prog_compiler__b"; then
9790 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791 else
9792 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9793 fi
9794
9795 ;;
9796 esac
9797 fi
9798 if test no = "$with_gnu_ld"; then
9799 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9800 hardcode_libdir_separator=:
9801
9802 case $host_cpu in
9803 hppa*64*|ia64*)
9804 hardcode_direct=no
9805 hardcode_shlibpath_var=no
9806 ;;
9807 *)
9808 hardcode_direct=yes
9809 hardcode_direct_absolute=yes
9810 export_dynamic_flag_spec='$wl-E'
9811
9812 # hardcode_minus_L: Not really in the search PATH,
9813 # but as the default location of the library.
9814 hardcode_minus_L=yes
9815 ;;
9816 esac
9817 fi
9818 ;;
9819
9820 irix5* | irix6* | nonstopux*)
9821 if test yes = "$GCC"; then
9822 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'
9823 # Try to use the -exported_symbol ld option, if it does not
9824 # work, assume that -exports_file does not work either and
9825 # implicitly export all symbols.
9826 # This should be the same for all languages, so no per-tag cache variable.
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9828 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9829 if ${lt_cv_irix_exported_symbol+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 save_LDFLAGS=$LDFLAGS
9833 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 int foo (void) { return 0; }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839 lt_cv_irix_exported_symbol=yes
9840 else
9841 lt_cv_irix_exported_symbol=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LDFLAGS=$save_LDFLAGS
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9848 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9849 if test yes = "$lt_cv_irix_exported_symbol"; then
9850 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'
9851 fi
9852 link_all_deplibs=no
9853 else
9854 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'
9855 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'
9856 fi
9857 archive_cmds_need_lc='no'
9858 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9859 hardcode_libdir_separator=:
9860 inherit_rpath=yes
9861 link_all_deplibs=yes
9862 ;;
9863
9864 linux*)
9865 case $cc_basename in
9866 tcc*)
9867 # Fabrice Bellard et al's Tiny C Compiler
9868 ld_shlibs=yes
9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870 ;;
9871 esac
9872 ;;
9873
9874 netbsd* | netbsdelf*-gnu)
9875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9877 else
9878 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9879 fi
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 newsos6)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=yes
9888 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9889 hardcode_libdir_separator=:
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 *nto* | *qnx*)
9894 ;;
9895
9896 openbsd* | bitrig*)
9897 if test -f /usr/libexec/ld.so; then
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9900 hardcode_direct_absolute=yes
9901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9904 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9905 export_dynamic_flag_spec='$wl-E'
9906 else
9907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9908 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9909 fi
9910 else
9911 ld_shlibs=no
9912 fi
9913 ;;
9914
9915 os2*)
9916 hardcode_libdir_flag_spec='-L$libdir'
9917 hardcode_minus_L=yes
9918 allow_undefined_flag=unsupported
9919 shrext_cmds=.dll
9920 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9921 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9922 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9923 $ECHO EXPORTS >> $output_objdir/$libname.def~
9924 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9925 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9926 emximp -o $lib $output_objdir/$libname.def'
9927 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9928 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9929 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9930 $ECHO EXPORTS >> $output_objdir/$libname.def~
9931 prefix_cmds="$SED"~
9932 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9933 prefix_cmds="$prefix_cmds -e 1d";
9934 fi~
9935 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9936 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9937 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9938 emximp -o $lib $output_objdir/$libname.def'
9939 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9940 enable_shared_with_static_runtimes=yes
9941 ;;
9942
9943 osf3*)
9944 if test yes = "$GCC"; then
9945 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9946 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'
9947 else
9948 allow_undefined_flag=' -expect_unresolved \*'
9949 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'
9950 fi
9951 archive_cmds_need_lc='no'
9952 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9953 hardcode_libdir_separator=:
9954 ;;
9955
9956 osf4* | osf5*) # as osf3* with the addition of -msym flag
9957 if test yes = "$GCC"; then
9958 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9959 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'
9960 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9961 else
9962 allow_undefined_flag=' -expect_unresolved \*'
9963 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'
9964 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~
9965 $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'
9966
9967 # Both c and cxx compiler support -rpath directly
9968 hardcode_libdir_flag_spec='-rpath $libdir'
9969 fi
9970 archive_cmds_need_lc='no'
9971 hardcode_libdir_separator=:
9972 ;;
9973
9974 solaris*)
9975 no_undefined_flag=' -z defs'
9976 if test yes = "$GCC"; then
9977 wlarc='$wl'
9978 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9979 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9980 $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'
9981 else
9982 case `$CC -V 2>&1` in
9983 *"Compilers 5.0"*)
9984 wlarc=''
9985 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9986 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9987 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9988 ;;
9989 *)
9990 wlarc='$wl'
9991 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9993 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9994 ;;
9995 esac
9996 fi
9997 hardcode_libdir_flag_spec='-R$libdir'
9998 hardcode_shlibpath_var=no
9999 case $host_os in
10000 solaris2.[0-5] | solaris2.[0-5].*) ;;
10001 *)
10002 # The compiler driver will combine and reorder linker options,
10003 # but understands '-z linker_flag'. GCC discards it without '$wl',
10004 # but is careful enough not to reorder.
10005 # Supported since Solaris 2.6 (maybe 2.5.1?)
10006 if test yes = "$GCC"; then
10007 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10008 else
10009 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10010 fi
10011 ;;
10012 esac
10013 link_all_deplibs=yes
10014 ;;
10015
10016 sunos4*)
10017 if test sequent = "$host_vendor"; then
10018 # Use $CC to link under sequent, because it throws in some extra .o
10019 # files that make .init and .fini sections work.
10020 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10021 else
10022 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10023 fi
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_direct=yes
10026 hardcode_minus_L=yes
10027 hardcode_shlibpath_var=no
10028 ;;
10029
10030 sysv4)
10031 case $host_vendor in
10032 sni)
10033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_direct=yes # is this really true???
10035 ;;
10036 siemens)
10037 ## LD is ld it makes a PLAMLIB
10038 ## CC just makes a GrossModule.
10039 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10040 reload_cmds='$CC -r -o $output$reload_objs'
10041 hardcode_direct=no
10042 ;;
10043 motorola)
10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10046 ;;
10047 esac
10048 runpath_var='LD_RUN_PATH'
10049 hardcode_shlibpath_var=no
10050 ;;
10051
10052 sysv4.3*)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_shlibpath_var=no
10055 export_dynamic_flag_spec='-Bexport'
10056 ;;
10057
10058 sysv4*MP*)
10059 if test -d /usr/nec; then
10060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_shlibpath_var=no
10062 runpath_var=LD_RUN_PATH
10063 hardcode_runpath_var=yes
10064 ld_shlibs=yes
10065 fi
10066 ;;
10067
10068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10069 no_undefined_flag='$wl-z,text'
10070 archive_cmds_need_lc=no
10071 hardcode_shlibpath_var=no
10072 runpath_var='LD_RUN_PATH'
10073
10074 if test yes = "$GCC"; then
10075 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10077 else
10078 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 fi
10081 ;;
10082
10083 sysv5* | sco3.2v5* | sco5v6*)
10084 # Note: We CANNOT use -z defs as we might desire, because we do not
10085 # link with -lc, and that would cause any symbols used from libc to
10086 # always be unresolved, which means just about no library would
10087 # ever link correctly. If we're not using GNU ld we use -z text
10088 # though, which does catch some bad symbols but isn't as heavy-handed
10089 # as -z defs.
10090 no_undefined_flag='$wl-z,text'
10091 allow_undefined_flag='$wl-z,nodefs'
10092 archive_cmds_need_lc=no
10093 hardcode_shlibpath_var=no
10094 hardcode_libdir_flag_spec='$wl-R,$libdir'
10095 hardcode_libdir_separator=':'
10096 link_all_deplibs=yes
10097 export_dynamic_flag_spec='$wl-Bexport'
10098 runpath_var='LD_RUN_PATH'
10099
10100 if test yes = "$GCC"; then
10101 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10102 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 else
10104 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 fi
10107 ;;
10108
10109 uts4*)
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_libdir_flag_spec='-L$libdir'
10112 hardcode_shlibpath_var=no
10113 ;;
10114
10115 *)
10116 ld_shlibs=no
10117 ;;
10118 esac
10119
10120 if test sni = "$host_vendor"; then
10121 case $host in
10122 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10123 export_dynamic_flag_spec='$wl-Blargedynsym'
10124 ;;
10125 esac
10126 fi
10127 fi
10128
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10130 $as_echo "$ld_shlibs" >&6; }
10131 test no = "$ld_shlibs" && can_build_shared=no
10132
10133 with_gnu_ld=$with_gnu_ld
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149 #
10150 # Do we need to explicitly link libc?
10151 #
10152 case "x$archive_cmds_need_lc" in
10153 x|xyes)
10154 # Assume -lc should be added
10155 archive_cmds_need_lc=yes
10156
10157 if test yes,yes = "$GCC,$enable_shared"; then
10158 case $archive_cmds in
10159 *'~'*)
10160 # FIXME: we may have to deal with multi-command sequences.
10161 ;;
10162 '$CC '*)
10163 # Test whether the compiler implicitly links with -lc since on some
10164 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10165 # to ld, don't add -lc before -lgcc.
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10167 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10168 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 $RM conftest*
10172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10173
10174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10175 (eval $ac_compile) 2>&5
10176 ac_status=$?
10177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10178 test $ac_status = 0; } 2>conftest.err; then
10179 soname=conftest
10180 lib=conftest
10181 libobjs=conftest.$ac_objext
10182 deplibs=
10183 wl=$lt_prog_compiler_wl
10184 pic_flag=$lt_prog_compiler_pic
10185 compiler_flags=-v
10186 linker_flags=-v
10187 verstring=
10188 output_objdir=.
10189 libname=conftest
10190 lt_save_allow_undefined_flag=$allow_undefined_flag
10191 allow_undefined_flag=
10192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10193 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10194 ac_status=$?
10195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10196 test $ac_status = 0; }
10197 then
10198 lt_cv_archive_cmds_need_lc=no
10199 else
10200 lt_cv_archive_cmds_need_lc=yes
10201 fi
10202 allow_undefined_flag=$lt_save_allow_undefined_flag
10203 else
10204 cat conftest.err 1>&5
10205 fi
10206 $RM conftest*
10207
10208 fi
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10210 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10211 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10212 ;;
10213 esac
10214 fi
10215 ;;
10216 esac
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10371
10372 if test yes = "$GCC"; then
10373 case $host_os in
10374 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10375 *) lt_awk_arg='/^libraries:/' ;;
10376 esac
10377 case $host_os in
10378 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10379 *) lt_sed_strip_eq='s|=/|/|g' ;;
10380 esac
10381 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10382 case $lt_search_path_spec in
10383 *\;*)
10384 # if the path contains ";" then we assume it to be the separator
10385 # otherwise default to the standard path separator (i.e. ":") - it is
10386 # assumed that no part of a normal pathname contains ";" but that should
10387 # okay in the real world where ";" in dirpaths is itself problematic.
10388 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10389 ;;
10390 *)
10391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10392 ;;
10393 esac
10394 # Ok, now we have the path, separated by spaces, we can step through it
10395 # and add multilib dir if necessary...
10396 lt_tmp_lt_search_path_spec=
10397 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10398 # ...but if some path component already ends with the multilib dir we assume
10399 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10400 case "$lt_multi_os_dir; $lt_search_path_spec " in
10401 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10402 lt_multi_os_dir=
10403 ;;
10404 esac
10405 for lt_sys_path in $lt_search_path_spec; do
10406 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10408 elif test -n "$lt_multi_os_dir"; then
10409 test -d "$lt_sys_path" && \
10410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10411 fi
10412 done
10413 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10414 BEGIN {RS = " "; FS = "/|\n";} {
10415 lt_foo = "";
10416 lt_count = 0;
10417 for (lt_i = NF; lt_i > 0; lt_i--) {
10418 if ($lt_i != "" && $lt_i != ".") {
10419 if ($lt_i == "..") {
10420 lt_count++;
10421 } else {
10422 if (lt_count == 0) {
10423 lt_foo = "/" $lt_i lt_foo;
10424 } else {
10425 lt_count--;
10426 }
10427 }
10428 }
10429 }
10430 if (lt_foo != "") { lt_freq[lt_foo]++; }
10431 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10432 }'`
10433 # AWK program above erroneously prepends '/' to C:/dos/paths
10434 # for these hosts.
10435 case $host_os in
10436 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10437 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10438 esac
10439 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10440 else
10441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10442 fi
10443 library_names_spec=
10444 libname_spec='lib$name'
10445 soname_spec=
10446 shrext_cmds=.so
10447 postinstall_cmds=
10448 postuninstall_cmds=
10449 finish_cmds=
10450 finish_eval=
10451 shlibpath_var=
10452 shlibpath_overrides_runpath=unknown
10453 version_type=none
10454 dynamic_linker="$host_os ld.so"
10455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10456 need_lib_prefix=unknown
10457 hardcode_into_libs=no
10458
10459 # when you set need_version to no, make sure it does not cause -set_version
10460 # flags to be left without arguments
10461 need_version=unknown
10462
10463
10464
10465 case $host_os in
10466 aix3*)
10467 version_type=linux # correct to gnu/linux during the next big refactor
10468 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10469 shlibpath_var=LIBPATH
10470
10471 # AIX 3 has no versioning support, so we append a major version to the name.
10472 soname_spec='$libname$release$shared_ext$major'
10473 ;;
10474
10475 aix[4-9]*)
10476 version_type=linux # correct to gnu/linux during the next big refactor
10477 need_lib_prefix=no
10478 need_version=no
10479 hardcode_into_libs=yes
10480 if test ia64 = "$host_cpu"; then
10481 # AIX 5 supports IA64
10482 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 else
10485 # With GCC up to 2.95.x, collect2 would create an import file
10486 # for dependence libraries. The import file would start with
10487 # the line '#! .'. This would cause the generated library to
10488 # depend on '.', always an invalid library. This was fixed in
10489 # development snapshots of GCC prior to 3.0.
10490 case $host_os in
10491 aix4 | aix4.[01] | aix4.[01].*)
10492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10493 echo ' yes '
10494 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10495 :
10496 else
10497 can_build_shared=no
10498 fi
10499 ;;
10500 esac
10501 # Using Import Files as archive members, it is possible to support
10502 # filename-based versioning of shared library archives on AIX. While
10503 # this would work for both with and without runtime linking, it will
10504 # prevent static linking of such archives. So we do filename-based
10505 # shared library versioning with .so extension only, which is used
10506 # when both runtime linking and shared linking is enabled.
10507 # Unfortunately, runtime linking may impact performance, so we do
10508 # not want this to be the default eventually. Also, we use the
10509 # versioned .so libs for executables only if there is the -brtl
10510 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10511 # To allow for filename-based versioning support, we need to create
10512 # libNAME.so.V as an archive file, containing:
10513 # *) an Import File, referring to the versioned filename of the
10514 # archive as well as the shared archive member, telling the
10515 # bitwidth (32 or 64) of that shared object, and providing the
10516 # list of exported symbols of that shared object, eventually
10517 # decorated with the 'weak' keyword
10518 # *) the shared object with the F_LOADONLY flag set, to really avoid
10519 # it being seen by the linker.
10520 # At run time we better use the real file rather than another symlink,
10521 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10522
10523 case $with_aix_soname,$aix_use_runtimelinking in
10524 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10525 # soname into executable. Probably we can add versioning support to
10526 # collect2, so additional links can be useful in future.
10527 aix,yes) # traditional libtool
10528 dynamic_linker='AIX unversionable lib.so'
10529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10530 # instead of lib<name>.a to let people know that these are not
10531 # typical AIX shared libraries.
10532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10533 ;;
10534 aix,no) # traditional AIX only
10535 dynamic_linker='AIX lib.a(lib.so.V)'
10536 # We preserve .a as extension for shared libraries through AIX4.2
10537 # and later when we are not doing run time linking.
10538 library_names_spec='$libname$release.a $libname.a'
10539 soname_spec='$libname$release$shared_ext$major'
10540 ;;
10541 svr4,*) # full svr4 only
10542 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10543 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10544 # We do not specify a path in Import Files, so LIBPATH fires.
10545 shlibpath_overrides_runpath=yes
10546 ;;
10547 *,yes) # both, prefer svr4
10548 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10549 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10550 # unpreferred sharedlib libNAME.a needs extra handling
10551 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10552 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10553 # We do not specify a path in Import Files, so LIBPATH fires.
10554 shlibpath_overrides_runpath=yes
10555 ;;
10556 *,no) # both, prefer aix
10557 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10558 library_names_spec='$libname$release.a $libname.a'
10559 soname_spec='$libname$release$shared_ext$major'
10560 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10561 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10562 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10563 ;;
10564 esac
10565 shlibpath_var=LIBPATH
10566 fi
10567 ;;
10568
10569 amigaos*)
10570 case $host_cpu in
10571 powerpc)
10572 # Since July 2007 AmigaOS4 officially supports .so libraries.
10573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10575 ;;
10576 m68k)
10577 library_names_spec='$libname.ixlibrary $libname.a'
10578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10579 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10580 ;;
10581 esac
10582 ;;
10583
10584 beos*)
10585 library_names_spec='$libname$shared_ext'
10586 dynamic_linker="$host_os ld.so"
10587 shlibpath_var=LIBRARY_PATH
10588 ;;
10589
10590 bsdi[45]*)
10591 version_type=linux # correct to gnu/linux during the next big refactor
10592 need_version=no
10593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10594 soname_spec='$libname$release$shared_ext$major'
10595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10599 # the default ld.so.conf also contains /usr/contrib/lib and
10600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10601 # libtool to hard-code these into programs
10602 ;;
10603
10604 cygwin* | mingw* | pw32* | cegcc*)
10605 version_type=windows
10606 shrext_cmds=.dll
10607 need_version=no
10608 need_lib_prefix=no
10609
10610 case $GCC,$cc_basename in
10611 yes,*)
10612 # gcc
10613 library_names_spec='$libname.dll.a'
10614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10615 postinstall_cmds='base_file=`basename \$file`~
10616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10617 dldir=$destdir/`dirname \$dlpath`~
10618 test -d \$dldir || mkdir -p \$dldir~
10619 $install_prog $dir/$dlname \$dldir/$dlname~
10620 chmod a+x \$dldir/$dlname~
10621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10623 fi'
10624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10625 dlpath=$dir/\$dldll~
10626 $RM \$dlpath'
10627 shlibpath_overrides_runpath=yes
10628
10629 case $host_os in
10630 cygwin*)
10631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10632 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10633
10634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10635 ;;
10636 mingw* | cegcc*)
10637 # MinGW DLLs use traditional 'lib' prefix
10638 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10639 ;;
10640 pw32*)
10641 # pw32 DLLs use 'pw' prefix rather than 'lib'
10642 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10643 ;;
10644 esac
10645 dynamic_linker='Win32 ld.exe'
10646 ;;
10647
10648 *,cl*)
10649 # Native MSVC
10650 libname_spec='$name'
10651 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10652 library_names_spec='$libname.dll.lib'
10653
10654 case $build_os in
10655 mingw*)
10656 sys_lib_search_path_spec=
10657 lt_save_ifs=$IFS
10658 IFS=';'
10659 for lt_path in $LIB
10660 do
10661 IFS=$lt_save_ifs
10662 # Let DOS variable expansion print the short 8.3 style file name.
10663 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10665 done
10666 IFS=$lt_save_ifs
10667 # Convert to MSYS style.
10668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10669 ;;
10670 cygwin*)
10671 # Convert to unix form, then to dos form, then back to unix form
10672 # but this time dos style (no spaces!) so that the unix form looks
10673 # like /cygdrive/c/PROGRA~1:/cygdr...
10674 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10675 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10676 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10677 ;;
10678 *)
10679 sys_lib_search_path_spec=$LIB
10680 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10681 # It is most probably a Windows format PATH.
10682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10683 else
10684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10685 fi
10686 # FIXME: find the short name or the path components, as spaces are
10687 # common. (e.g. "Program Files" -> "PROGRA~1")
10688 ;;
10689 esac
10690
10691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10692 postinstall_cmds='base_file=`basename \$file`~
10693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10694 dldir=$destdir/`dirname \$dlpath`~
10695 test -d \$dldir || mkdir -p \$dldir~
10696 $install_prog $dir/$dlname \$dldir/$dlname'
10697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10698 dlpath=$dir/\$dldll~
10699 $RM \$dlpath'
10700 shlibpath_overrides_runpath=yes
10701 dynamic_linker='Win32 link.exe'
10702 ;;
10703
10704 *)
10705 # Assume MSVC wrapper
10706 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10707 dynamic_linker='Win32 ld.exe'
10708 ;;
10709 esac
10710 # FIXME: first we should search . and the directory the executable is in
10711 shlibpath_var=PATH
10712 ;;
10713
10714 darwin* | rhapsody*)
10715 dynamic_linker="$host_os dyld"
10716 version_type=darwin
10717 need_lib_prefix=no
10718 need_version=no
10719 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10720 soname_spec='$libname$release$major$shared_ext'
10721 shlibpath_overrides_runpath=yes
10722 shlibpath_var=DYLD_LIBRARY_PATH
10723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10724
10725 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10727 ;;
10728
10729 dgux*)
10730 version_type=linux # correct to gnu/linux during the next big refactor
10731 need_lib_prefix=no
10732 need_version=no
10733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10734 soname_spec='$libname$release$shared_ext$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 ;;
10737
10738 freebsd* | dragonfly*)
10739 # DragonFly does not have aout. When/if they implement a new
10740 # versioning mechanism, adjust this.
10741 if test -x /usr/bin/objformat; then
10742 objformat=`/usr/bin/objformat`
10743 else
10744 case $host_os in
10745 freebsd[23].*) objformat=aout ;;
10746 *) objformat=elf ;;
10747 esac
10748 fi
10749 version_type=freebsd-$objformat
10750 case $version_type in
10751 freebsd-elf*)
10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10753 soname_spec='$libname$release$shared_ext$major'
10754 need_version=no
10755 need_lib_prefix=no
10756 ;;
10757 freebsd-*)
10758 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10759 need_version=yes
10760 ;;
10761 esac
10762 shlibpath_var=LD_LIBRARY_PATH
10763 case $host_os in
10764 freebsd2.*)
10765 shlibpath_overrides_runpath=yes
10766 ;;
10767 freebsd3.[01]* | freebsdelf3.[01]*)
10768 shlibpath_overrides_runpath=yes
10769 hardcode_into_libs=yes
10770 ;;
10771 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10772 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10773 shlibpath_overrides_runpath=no
10774 hardcode_into_libs=yes
10775 ;;
10776 *) # from 4.6 on, and DragonFly
10777 shlibpath_overrides_runpath=yes
10778 hardcode_into_libs=yes
10779 ;;
10780 esac
10781 ;;
10782
10783 haiku*)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 dynamic_linker="$host_os runtime_loader"
10788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10789 soname_spec='$libname$release$shared_ext$major'
10790 shlibpath_var=LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10793 hardcode_into_libs=yes
10794 ;;
10795
10796 hpux9* | hpux10* | hpux11*)
10797 # Give a soname corresponding to the major version so that dld.sl refuses to
10798 # link against other versions.
10799 version_type=sunos
10800 need_lib_prefix=no
10801 need_version=no
10802 case $host_cpu in
10803 ia64*)
10804 shrext_cmds='.so'
10805 hardcode_into_libs=yes
10806 dynamic_linker="$host_os dld.so"
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10810 soname_spec='$libname$release$shared_ext$major'
10811 if test 32 = "$HPUX_IA64_MODE"; then
10812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10813 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10814 else
10815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10816 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10817 fi
10818 ;;
10819 hppa*64*)
10820 shrext_cmds='.sl'
10821 hardcode_into_libs=yes
10822 dynamic_linker="$host_os dld.sl"
10823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10826 soname_spec='$libname$release$shared_ext$major'
10827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10829 ;;
10830 *)
10831 shrext_cmds='.sl'
10832 dynamic_linker="$host_os dld.sl"
10833 shlibpath_var=SHLIB_PATH
10834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836 soname_spec='$libname$release$shared_ext$major'
10837 ;;
10838 esac
10839 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10840 postinstall_cmds='chmod 555 $lib'
10841 # or fails outright, so override atomically:
10842 install_override_mode=555
10843 ;;
10844
10845 interix[3-9]*)
10846 version_type=linux # correct to gnu/linux during the next big refactor
10847 need_lib_prefix=no
10848 need_version=no
10849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10850 soname_spec='$libname$release$shared_ext$major'
10851 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=no
10854 hardcode_into_libs=yes
10855 ;;
10856
10857 irix5* | irix6* | nonstopux*)
10858 case $host_os in
10859 nonstopux*) version_type=nonstopux ;;
10860 *)
10861 if test yes = "$lt_cv_prog_gnu_ld"; then
10862 version_type=linux # correct to gnu/linux during the next big refactor
10863 else
10864 version_type=irix
10865 fi ;;
10866 esac
10867 need_lib_prefix=no
10868 need_version=no
10869 soname_spec='$libname$release$shared_ext$major'
10870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10871 case $host_os in
10872 irix5* | nonstopux*)
10873 libsuff= shlibsuff=
10874 ;;
10875 *)
10876 case $LD in # libtool.m4 will add one of these switches to LD
10877 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10878 libsuff= shlibsuff= libmagic=32-bit;;
10879 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10880 libsuff=32 shlibsuff=N32 libmagic=N32;;
10881 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10882 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10883 *) libsuff= shlibsuff= libmagic=never-match;;
10884 esac
10885 ;;
10886 esac
10887 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10888 shlibpath_overrides_runpath=no
10889 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10890 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10891 hardcode_into_libs=yes
10892 ;;
10893
10894 # No shared lib support for Linux oldld, aout, or coff.
10895 linux*oldld* | linux*aout* | linux*coff*)
10896 dynamic_linker=no
10897 ;;
10898
10899 linux*android*)
10900 version_type=none # Android doesn't support versioned libraries.
10901 need_lib_prefix=no
10902 need_version=no
10903 library_names_spec='$libname$release$shared_ext'
10904 soname_spec='$libname$release$shared_ext'
10905 finish_cmds=
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=yes
10908
10909 # This implies no fast_install, which is unacceptable.
10910 # Some rework will be needed to allow for fast_install
10911 # before this can be enabled.
10912 hardcode_into_libs=yes
10913
10914 dynamic_linker='Android linker'
10915 # Don't embed -rpath directories since the linker doesn't support them.
10916 hardcode_libdir_flag_spec='-L$libdir'
10917 ;;
10918
10919 # This must be glibc/ELF.
10920 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10921 version_type=linux # correct to gnu/linux during the next big refactor
10922 need_lib_prefix=no
10923 need_version=no
10924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925 soname_spec='$libname$release$shared_ext$major'
10926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=no
10929
10930 # Some binutils ld are patched to set DT_RUNPATH
10931 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934 lt_cv_shlibpath_overrides_runpath=no
10935 save_LDFLAGS=$LDFLAGS
10936 save_libdir=$libdir
10937 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10938 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941
10942 int
10943 main ()
10944 {
10945
10946 ;
10947 return 0;
10948 }
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10952 lt_cv_shlibpath_overrides_runpath=yes
10953 fi
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LDFLAGS=$save_LDFLAGS
10958 libdir=$save_libdir
10959
10960 fi
10961
10962 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10963
10964 # This implies no fast_install, which is unacceptable.
10965 # Some rework will be needed to allow for fast_install
10966 # before this can be enabled.
10967 hardcode_into_libs=yes
10968
10969 # Ideally, we could use ldconfig to report *all* directores which are
10970 # searched for libraries, however this is still not possible. Aside from not
10971 # being certain /sbin/ldconfig is available, command
10972 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10973 # even though it is searched at run-time. Try to do the best guess by
10974 # appending ld.so.conf contents (and includes) to the search path.
10975 if test -f /etc/ld.so.conf; then
10976 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' ' '`
10977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10978 fi
10979
10980 # We used to test for /lib/ld.so.1 and disable shared libraries on
10981 # powerpc, because MkLinux only supported shared libraries with the
10982 # GNU dynamic linker. Since this was broken with cross compilers,
10983 # most powerpc-linux boxes support dynamic linking these days and
10984 # people can always --disable-shared, the test was removed, and we
10985 # assume the GNU/Linux dynamic linker is in use.
10986 dynamic_linker='GNU/Linux ld.so'
10987 ;;
10988
10989 netbsdelf*-gnu)
10990 version_type=linux
10991 need_lib_prefix=no
10992 need_version=no
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=no
10997 hardcode_into_libs=yes
10998 dynamic_linker='NetBSD ld.elf_so'
10999 ;;
11000
11001 netbsd*)
11002 version_type=sunos
11003 need_lib_prefix=no
11004 need_version=no
11005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008 dynamic_linker='NetBSD (a.out) ld.so'
11009 else
11010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11011 soname_spec='$libname$release$shared_ext$major'
11012 dynamic_linker='NetBSD ld.elf_so'
11013 fi
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016 hardcode_into_libs=yes
11017 ;;
11018
11019 newsos6)
11020 version_type=linux # correct to gnu/linux during the next big refactor
11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 ;;
11025
11026 *nto* | *qnx*)
11027 version_type=qnx
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11031 soname_spec='$libname$release$shared_ext$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11035 dynamic_linker='ldqnx.so'
11036 ;;
11037
11038 openbsd* | bitrig*)
11039 version_type=sunos
11040 sys_lib_dlsearch_path_spec=/usr/lib
11041 need_lib_prefix=no
11042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11043 need_version=no
11044 else
11045 need_version=yes
11046 fi
11047 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=yes
11051 ;;
11052
11053 os2*)
11054 libname_spec='$name'
11055 version_type=windows
11056 shrext_cmds=.dll
11057 need_version=no
11058 need_lib_prefix=no
11059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11060 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11061 v=$($ECHO $release$versuffix | tr -d .-);
11062 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11063 $ECHO $n$v`$shared_ext'
11064 library_names_spec='${libname}_dll.$libext'
11065 dynamic_linker='OS/2 ld.exe'
11066 shlibpath_var=BEGINLIBPATH
11067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11069 postinstall_cmds='base_file=`basename \$file`~
11070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11071 dldir=$destdir/`dirname \$dlpath`~
11072 test -d \$dldir || mkdir -p \$dldir~
11073 $install_prog $dir/$dlname \$dldir/$dlname~
11074 chmod a+x \$dldir/$dlname~
11075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11077 fi'
11078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11079 dlpath=$dir/\$dldll~
11080 $RM \$dlpath'
11081 ;;
11082
11083 osf3* | osf4* | osf5*)
11084 version_type=osf
11085 need_lib_prefix=no
11086 need_version=no
11087 soname_spec='$libname$release$shared_ext$major'
11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11092 ;;
11093
11094 rdos*)
11095 dynamic_linker=no
11096 ;;
11097
11098 solaris*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 hardcode_into_libs=yes
11107 # ldd complains unless libraries are executable
11108 postinstall_cmds='chmod +x $lib'
11109 ;;
11110
11111 sunos4*)
11112 version_type=sunos
11113 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 if test yes = "$with_gnu_ld"; then
11118 need_lib_prefix=no
11119 fi
11120 need_version=yes
11121 ;;
11122
11123 sysv4 | sysv4.3*)
11124 version_type=linux # correct to gnu/linux during the next big refactor
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126 soname_spec='$libname$release$shared_ext$major'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 case $host_vendor in
11129 sni)
11130 shlibpath_overrides_runpath=no
11131 need_lib_prefix=no
11132 runpath_var=LD_RUN_PATH
11133 ;;
11134 siemens)
11135 need_lib_prefix=no
11136 ;;
11137 motorola)
11138 need_lib_prefix=no
11139 need_version=no
11140 shlibpath_overrides_runpath=no
11141 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11142 ;;
11143 esac
11144 ;;
11145
11146 sysv4*MP*)
11147 if test -d /usr/nec; then
11148 version_type=linux # correct to gnu/linux during the next big refactor
11149 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11150 soname_spec='$libname$shared_ext.$major'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 fi
11153 ;;
11154
11155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11156 version_type=sco
11157 need_lib_prefix=no
11158 need_version=no
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11160 soname_spec='$libname$release$shared_ext$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 shlibpath_overrides_runpath=yes
11163 hardcode_into_libs=yes
11164 if test yes = "$with_gnu_ld"; then
11165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11166 else
11167 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11168 case $host_os in
11169 sco3.2v5*)
11170 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11171 ;;
11172 esac
11173 fi
11174 sys_lib_dlsearch_path_spec='/usr/lib'
11175 ;;
11176
11177 tpf*)
11178 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11179 version_type=linux # correct to gnu/linux during the next big refactor
11180 need_lib_prefix=no
11181 need_version=no
11182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=no
11185 hardcode_into_libs=yes
11186 ;;
11187
11188 uts4*)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191 soname_spec='$libname$release$shared_ext$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 ;;
11194
11195 *)
11196 dynamic_linker=no
11197 ;;
11198 esac
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11200 $as_echo "$dynamic_linker" >&6; }
11201 test no = "$dynamic_linker" && can_build_shared=no
11202
11203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11204 if test yes = "$GCC"; then
11205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11206 fi
11207
11208 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11209 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11210 fi
11211
11212 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11213 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11214 fi
11215
11216 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11217 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11218
11219 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11220 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11221
11222 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11223 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11322 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11323 hardcode_action=
11324 if test -n "$hardcode_libdir_flag_spec" ||
11325 test -n "$runpath_var" ||
11326 test yes = "$hardcode_automatic"; then
11327
11328 # We can hardcode non-existent directories.
11329 if test no != "$hardcode_direct" &&
11330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11331 # have to relink, otherwise we might link with an installed library
11332 # when we should be linking with a yet-to-be-installed one
11333 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11334 test no != "$hardcode_minus_L"; then
11335 # Linking always hardcodes the temporary library directory.
11336 hardcode_action=relink
11337 else
11338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11339 hardcode_action=immediate
11340 fi
11341 else
11342 # We cannot hardcode anything, or else we can only hardcode existing
11343 # directories.
11344 hardcode_action=unsupported
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11347 $as_echo "$hardcode_action" >&6; }
11348
11349 if test relink = "$hardcode_action" ||
11350 test yes = "$inherit_rpath"; then
11351 # Fast installation is not supported
11352 enable_fast_install=no
11353 elif test yes = "$shlibpath_overrides_runpath" ||
11354 test no = "$enable_shared"; then
11355 # Fast installation is not necessary
11356 enable_fast_install=needless
11357 fi
11358
11359
11360
11361
11362
11363
11364 if test yes != "$enable_dlopen"; then
11365 enable_dlopen=unknown
11366 enable_dlopen_self=unknown
11367 enable_dlopen_self_static=unknown
11368 else
11369 lt_cv_dlopen=no
11370 lt_cv_dlopen_libs=
11371
11372 case $host_os in
11373 beos*)
11374 lt_cv_dlopen=load_add_on
11375 lt_cv_dlopen_libs=
11376 lt_cv_dlopen_self=yes
11377 ;;
11378
11379 mingw* | pw32* | cegcc*)
11380 lt_cv_dlopen=LoadLibrary
11381 lt_cv_dlopen_libs=
11382 ;;
11383
11384 cygwin*)
11385 lt_cv_dlopen=dlopen
11386 lt_cv_dlopen_libs=
11387 ;;
11388
11389 darwin*)
11390 # if libdl is installed we need to link against it
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11393 if ${ac_cv_lib_dl_dlopen+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldl $LIBS"
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11400
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char dlopen ();
11408 int
11409 main ()
11410 {
11411 return dlopen ();
11412 ;
11413 return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_lib_dl_dlopen=yes
11418 else
11419 ac_cv_lib_dl_dlopen=no
11420 fi
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11428 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11429 else
11430
11431 lt_cv_dlopen=dyld
11432 lt_cv_dlopen_libs=
11433 lt_cv_dlopen_self=yes
11434
11435 fi
11436
11437 ;;
11438
11439 tpf*)
11440 # Don't try to run any link tests for TPF. We know it's impossible
11441 # because TPF is a cross-compiler, and we know how we open DSOs.
11442 lt_cv_dlopen=dlopen
11443 lt_cv_dlopen_libs=
11444 lt_cv_dlopen_self=no
11445 ;;
11446
11447 *)
11448 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11449 if test "x$ac_cv_func_shl_load" = xyes; then :
11450 lt_cv_dlopen=shl_load
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11453 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11454 if ${ac_cv_lib_dld_shl_load+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-ldld $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char shl_load ();
11469 int
11470 main ()
11471 {
11472 return shl_load ();
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 ac_cv_lib_dld_shl_load=yes
11479 else
11480 ac_cv_lib_dld_shl_load=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11487 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11488 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11489 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11490 else
11491 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11492 if test "x$ac_cv_func_dlopen" = xyes; then :
11493 lt_cv_dlopen=dlopen
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11496 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11497 if ${ac_cv_lib_dl_dlopen+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-ldl $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char dlopen ();
11512 int
11513 main ()
11514 {
11515 return dlopen ();
11516 ;
11517 return 0;
11518 }
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_dl_dlopen=yes
11522 else
11523 ac_cv_lib_dl_dlopen=no
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11530 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11531 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11532 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11535 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11536 if ${ac_cv_lib_svld_dlopen+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 ac_check_lib_save_LIBS=$LIBS
11540 LIBS="-lsvld $LIBS"
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char dlopen ();
11551 int
11552 main ()
11553 {
11554 return dlopen ();
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560 ac_cv_lib_svld_dlopen=yes
11561 else
11562 ac_cv_lib_svld_dlopen=no
11563 fi
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11566 LIBS=$ac_check_lib_save_LIBS
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11569 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11570 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11571 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11574 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11575 if ${ac_cv_lib_dld_dld_link+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-ldld $LIBS"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 char dld_link ();
11590 int
11591 main ()
11592 {
11593 return dld_link ();
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_dld_dld_link=yes
11600 else
11601 ac_cv_lib_dld_dld_link=no
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11608 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11609 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11610 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11611 fi
11612
11613
11614 fi
11615
11616
11617 fi
11618
11619
11620 fi
11621
11622
11623 fi
11624
11625
11626 fi
11627
11628 ;;
11629 esac
11630
11631 if test no = "$lt_cv_dlopen"; then
11632 enable_dlopen=no
11633 else
11634 enable_dlopen=yes
11635 fi
11636
11637 case $lt_cv_dlopen in
11638 dlopen)
11639 save_CPPFLAGS=$CPPFLAGS
11640 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11641
11642 save_LDFLAGS=$LDFLAGS
11643 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11644
11645 save_LIBS=$LIBS
11646 LIBS="$lt_cv_dlopen_libs $LIBS"
11647
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11649 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11650 if ${lt_cv_dlopen_self+:} false; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 if test yes = "$cross_compiling"; then :
11654 lt_cv_dlopen_self=cross
11655 else
11656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11657 lt_status=$lt_dlunknown
11658 cat > conftest.$ac_ext <<_LT_EOF
11659 #line $LINENO "configure"
11660 #include "confdefs.h"
11661
11662 #if HAVE_DLFCN_H
11663 #include <dlfcn.h>
11664 #endif
11665
11666 #include <stdio.h>
11667
11668 #ifdef RTLD_GLOBAL
11669 # define LT_DLGLOBAL RTLD_GLOBAL
11670 #else
11671 # ifdef DL_GLOBAL
11672 # define LT_DLGLOBAL DL_GLOBAL
11673 # else
11674 # define LT_DLGLOBAL 0
11675 # endif
11676 #endif
11677
11678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11679 find out it does not work in some platform. */
11680 #ifndef LT_DLLAZY_OR_NOW
11681 # ifdef RTLD_LAZY
11682 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11683 # else
11684 # ifdef DL_LAZY
11685 # define LT_DLLAZY_OR_NOW DL_LAZY
11686 # else
11687 # ifdef RTLD_NOW
11688 # define LT_DLLAZY_OR_NOW RTLD_NOW
11689 # else
11690 # ifdef DL_NOW
11691 # define LT_DLLAZY_OR_NOW DL_NOW
11692 # else
11693 # define LT_DLLAZY_OR_NOW 0
11694 # endif
11695 # endif
11696 # endif
11697 # endif
11698 #endif
11699
11700 /* When -fvisibility=hidden is used, assume the code has been annotated
11701 correspondingly for the symbols needed. */
11702 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11703 int fnord () __attribute__((visibility("default")));
11704 #endif
11705
11706 int fnord () { return 42; }
11707 int main ()
11708 {
11709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11710 int status = $lt_dlunknown;
11711
11712 if (self)
11713 {
11714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11715 else
11716 {
11717 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11718 else puts (dlerror ());
11719 }
11720 /* dlclose (self); */
11721 }
11722 else
11723 puts (dlerror ());
11724
11725 return status;
11726 }
11727 _LT_EOF
11728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11729 (eval $ac_link) 2>&5
11730 ac_status=$?
11731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11733 (./conftest; exit; ) >&5 2>/dev/null
11734 lt_status=$?
11735 case x$lt_status in
11736 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11737 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11738 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11739 esac
11740 else :
11741 # compilation failed
11742 lt_cv_dlopen_self=no
11743 fi
11744 fi
11745 rm -fr conftest*
11746
11747
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11750 $as_echo "$lt_cv_dlopen_self" >&6; }
11751
11752 if test yes = "$lt_cv_dlopen_self"; then
11753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11755 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11756 if ${lt_cv_dlopen_self_static+:} false; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 if test yes = "$cross_compiling"; then :
11760 lt_cv_dlopen_self_static=cross
11761 else
11762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11763 lt_status=$lt_dlunknown
11764 cat > conftest.$ac_ext <<_LT_EOF
11765 #line $LINENO "configure"
11766 #include "confdefs.h"
11767
11768 #if HAVE_DLFCN_H
11769 #include <dlfcn.h>
11770 #endif
11771
11772 #include <stdio.h>
11773
11774 #ifdef RTLD_GLOBAL
11775 # define LT_DLGLOBAL RTLD_GLOBAL
11776 #else
11777 # ifdef DL_GLOBAL
11778 # define LT_DLGLOBAL DL_GLOBAL
11779 # else
11780 # define LT_DLGLOBAL 0
11781 # endif
11782 #endif
11783
11784 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11785 find out it does not work in some platform. */
11786 #ifndef LT_DLLAZY_OR_NOW
11787 # ifdef RTLD_LAZY
11788 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11789 # else
11790 # ifdef DL_LAZY
11791 # define LT_DLLAZY_OR_NOW DL_LAZY
11792 # else
11793 # ifdef RTLD_NOW
11794 # define LT_DLLAZY_OR_NOW RTLD_NOW
11795 # else
11796 # ifdef DL_NOW
11797 # define LT_DLLAZY_OR_NOW DL_NOW
11798 # else
11799 # define LT_DLLAZY_OR_NOW 0
11800 # endif
11801 # endif
11802 # endif
11803 # endif
11804 #endif
11805
11806 /* When -fvisibility=hidden is used, assume the code has been annotated
11807 correspondingly for the symbols needed. */
11808 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11809 int fnord () __attribute__((visibility("default")));
11810 #endif
11811
11812 int fnord () { return 42; }
11813 int main ()
11814 {
11815 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11816 int status = $lt_dlunknown;
11817
11818 if (self)
11819 {
11820 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11821 else
11822 {
11823 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11824 else puts (dlerror ());
11825 }
11826 /* dlclose (self); */
11827 }
11828 else
11829 puts (dlerror ());
11830
11831 return status;
11832 }
11833 _LT_EOF
11834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11835 (eval $ac_link) 2>&5
11836 ac_status=$?
11837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11838 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11839 (./conftest; exit; ) >&5 2>/dev/null
11840 lt_status=$?
11841 case x$lt_status in
11842 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11843 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11844 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11845 esac
11846 else :
11847 # compilation failed
11848 lt_cv_dlopen_self_static=no
11849 fi
11850 fi
11851 rm -fr conftest*
11852
11853
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11856 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11857 fi
11858
11859 CPPFLAGS=$save_CPPFLAGS
11860 LDFLAGS=$save_LDFLAGS
11861 LIBS=$save_LIBS
11862 ;;
11863 esac
11864
11865 case $lt_cv_dlopen_self in
11866 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11867 *) enable_dlopen_self=unknown ;;
11868 esac
11869
11870 case $lt_cv_dlopen_self_static in
11871 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11872 *) enable_dlopen_self_static=unknown ;;
11873 esac
11874 fi
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892 striplib=
11893 old_striplib=
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11895 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11896 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11897 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11898 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11900 $as_echo "yes" >&6; }
11901 else
11902 # FIXME - insert some real tests, host_os isn't really good enough
11903 case $host_os in
11904 darwin*)
11905 if test -n "$STRIP"; then
11906 striplib="$STRIP -x"
11907 old_striplib="$STRIP -S"
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909 $as_echo "yes" >&6; }
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11913 fi
11914 ;;
11915 *)
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11918 ;;
11919 esac
11920 fi
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 # Report what library types will actually be built
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11935 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11937 $as_echo "$can_build_shared" >&6; }
11938
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11940 $as_echo_n "checking whether to build shared libraries... " >&6; }
11941 test no = "$can_build_shared" && enable_shared=no
11942
11943 # On AIX, shared libraries and static libraries use the same namespace, and
11944 # are all built from PIC.
11945 case $host_os in
11946 aix3*)
11947 test yes = "$enable_shared" && enable_static=no
11948 if test -n "$RANLIB"; then
11949 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11950 postinstall_cmds='$RANLIB $lib'
11951 fi
11952 ;;
11953
11954 aix[4-9]*)
11955 if test ia64 != "$host_cpu"; then
11956 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11957 yes,aix,yes) ;; # shared object as lib.so file only
11958 yes,svr4,*) ;; # shared object as lib.so archive member only
11959 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11960 esac
11961 fi
11962 ;;
11963 esac
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11965 $as_echo "$enable_shared" >&6; }
11966
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11968 $as_echo_n "checking whether to build static libraries... " >&6; }
11969 # Make sure either enable_shared or enable_static is yes.
11970 test yes = "$enable_shared" || enable_static=yes
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11972 $as_echo "$enable_static" >&6; }
11973
11974
11975
11976
11977 fi
11978 ac_ext=c
11979 ac_cpp='$CPP $CPPFLAGS'
11980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11983
11984 CC=$lt_save_CC
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000 ac_config_commands="$ac_config_commands libtool"
12001
12002
12003
12004
12005 # Only expand once:
12006
12007
12008
12009
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
12011 $as_echo_n "checking for initscr in -lncurses... " >&6; }
12012 if ${ac_cv_lib_ncurses_initscr+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 ac_check_lib_save_LIBS=$LIBS
12016 LIBS="-lncurses $LIBS"
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019
12020 /* Override any GCC internal prototype to avoid an error.
12021 Use char because int might match the return type of a GCC
12022 builtin and then its argument prototype would still apply. */
12023 #ifdef __cplusplus
12024 extern "C"
12025 #endif
12026 char initscr ();
12027 int
12028 main ()
12029 {
12030 return initscr ();
12031 ;
12032 return 0;
12033 }
12034 _ACEOF
12035 if ac_fn_c_try_link "$LINENO"; then :
12036 ac_cv_lib_ncurses_initscr=yes
12037 else
12038 ac_cv_lib_ncurses_initscr=no
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12042 LIBS=$ac_check_lib_save_LIBS
12043 fi
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
12045 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
12046 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
12047 cat >>confdefs.h <<_ACEOF
12048 #define HAVE_LIBNCURSES 1
12049 _ACEOF
12050
12051 LIBS="-lncurses $LIBS"
12052
12053 else
12054 curses
12055 fi
12056
12057
12058 for ac_header in signal.h
12059 do :
12060 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_signal_h" = xyes; then :
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_SIGNAL_H 1
12064 _ACEOF
12065
12066 fi
12067
12068 done
12069
12070 for ac_header in ncurses.h
12071 do :
12072 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
12073 if test "x$ac_cv_header_ncurses_h" = xyes; then :
12074 cat >>confdefs.h <<_ACEOF
12075 #define HAVE_NCURSES_H 1
12076 _ACEOF
12077
12078 else
12079 for ac_header in curses.h
12080 do :
12081 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
12082 if test "x$ac_cv_header_curses_h" = xyes; then :
12083 cat >>confdefs.h <<_ACEOF
12084 #define HAVE_CURSES_H 1
12085 _ACEOF
12086
12087 else
12088 as_fn_error $? "Could not find ncurses headers!" "$LINENO" 5
12089 fi
12090
12091 done
12092
12093 fi
12094
12095 done
12096
12097
12098 # This will become the directory name on SourceForge
12099 TAGLINE='ship_it_anyway'
12100
12101
12102 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile nki/Makefile"
12103
12104 cat >confcache <<\_ACEOF
12105 # This file is a shell script that caches the results of configure
12106 # tests run on this system so they can be shared between configure
12107 # scripts and configure runs, see configure's option --config-cache.
12108 # It is not useful on other systems. If it contains results you don't
12109 # want to keep, you may remove or edit it.
12110 #
12111 # config.status only pays attention to the cache file if you give it
12112 # the --recheck option to rerun configure.
12113 #
12114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12116 # following values.
12117
12118 _ACEOF
12119
12120 # The following way of writing the cache mishandles newlines in values,
12121 # but we know of no workaround that is simple, portable, and efficient.
12122 # So, we kill variables containing newlines.
12123 # Ultrix sh set writes to stderr and can't be redirected directly,
12124 # and sets the high bit in the cache file unless we assign to the vars.
12125 (
12126 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12127 eval ac_val=\$$ac_var
12128 case $ac_val in #(
12129 *${as_nl}*)
12130 case $ac_var in #(
12131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12133 esac
12134 case $ac_var in #(
12135 _ | IFS | as_nl) ;; #(
12136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12137 *) { eval $ac_var=; unset $ac_var;} ;;
12138 esac ;;
12139 esac
12140 done
12141
12142 (set) 2>&1 |
12143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12144 *${as_nl}ac_space=\ *)
12145 # `set' does not quote correctly, so add quotes: double-quote
12146 # substitution turns \\\\ into \\, and sed turns \\ into \.
12147 sed -n \
12148 "s/'/'\\\\''/g;
12149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12150 ;; #(
12151 *)
12152 # `set' quotes correctly as required by POSIX, so do not add quotes.
12153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12154 ;;
12155 esac |
12156 sort
12157 ) |
12158 sed '
12159 /^ac_cv_env_/b end
12160 t clear
12161 :clear
12162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12163 t end
12164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12165 :end' >>confcache
12166 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12167 if test -w "$cache_file"; then
12168 if test "x$cache_file" != "x/dev/null"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12170 $as_echo "$as_me: updating cache $cache_file" >&6;}
12171 if test ! -f "$cache_file" || test -h "$cache_file"; then
12172 cat confcache >"$cache_file"
12173 else
12174 case $cache_file in #(
12175 */* | ?:*)
12176 mv -f confcache "$cache_file"$$ &&
12177 mv -f "$cache_file"$$ "$cache_file" ;; #(
12178 *)
12179 mv -f confcache "$cache_file" ;;
12180 esac
12181 fi
12182 fi
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12186 fi
12187 fi
12188 rm -f confcache
12189
12190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12191 # Let make expand exec_prefix.
12192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12193
12194 DEFS=-DHAVE_CONFIG_H
12195
12196 ac_libobjs=
12197 ac_ltlibobjs=
12198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12199 # 1. Remove the extension, and $U if already installed.
12200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12203 # will be set to the directory where LIBOBJS objects are built.
12204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12206 done
12207 LIBOBJS=$ac_libobjs
12208
12209 LTLIBOBJS=$ac_ltlibobjs
12210
12211
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12213 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12214 if test -n "$am_sleep_pid"; then
12215 # Hide warnings about reused PIDs.
12216 wait $am_sleep_pid 2>/dev/null
12217 fi
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12219 $as_echo "done" >&6; }
12220 if test -n "$EXEEXT"; then
12221 am__EXEEXT_TRUE=
12222 am__EXEEXT_FALSE='#'
12223 else
12224 am__EXEEXT_TRUE='#'
12225 am__EXEEXT_FALSE=
12226 fi
12227
12228 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12229 as_fn_error $? "conditional \"AMDEP\" was never defined.
12230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12231 fi
12232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12233 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12235 fi
12236
12237 : "${CONFIG_STATUS=./config.status}"
12238 ac_write_fail=0
12239 ac_clean_files_save=$ac_clean_files
12240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12243 as_write_fail=0
12244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12245 #! $SHELL
12246 # Generated by $as_me.
12247 # Run this file to recreate the current configuration.
12248 # Compiler output produced by configure, useful for debugging
12249 # configure, is in config.log if it exists.
12250
12251 debug=false
12252 ac_cs_recheck=false
12253 ac_cs_silent=false
12254
12255 SHELL=\${CONFIG_SHELL-$SHELL}
12256 export SHELL
12257 _ASEOF
12258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12259 ## -------------------- ##
12260 ## M4sh Initialization. ##
12261 ## -------------------- ##
12262
12263 # Be more Bourne compatible
12264 DUALCASE=1; export DUALCASE # for MKS sh
12265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12266 emulate sh
12267 NULLCMD=:
12268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12269 # is contrary to our usage. Disable this feature.
12270 alias -g '${1+"$@"}'='"$@"'
12271 setopt NO_GLOB_SUBST
12272 else
12273 case `(set -o) 2>/dev/null` in #(
12274 *posix*) :
12275 set -o posix ;; #(
12276 *) :
12277 ;;
12278 esac
12279 fi
12280
12281
12282 as_nl='
12283 '
12284 export as_nl
12285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12289 # Prefer a ksh shell builtin over an external printf program on Solaris,
12290 # but without wasting forks for bash or zsh.
12291 if test -z "$BASH_VERSION$ZSH_VERSION" \
12292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12293 as_echo='print -r --'
12294 as_echo_n='print -rn --'
12295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12296 as_echo='printf %s\n'
12297 as_echo_n='printf %s'
12298 else
12299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12301 as_echo_n='/usr/ucb/echo -n'
12302 else
12303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12304 as_echo_n_body='eval
12305 arg=$1;
12306 case $arg in #(
12307 *"$as_nl"*)
12308 expr "X$arg" : "X\\(.*\\)$as_nl";
12309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12310 esac;
12311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12312 '
12313 export as_echo_n_body
12314 as_echo_n='sh -c $as_echo_n_body as_echo'
12315 fi
12316 export as_echo_body
12317 as_echo='sh -c $as_echo_body as_echo'
12318 fi
12319
12320 # The user is always right.
12321 if test "${PATH_SEPARATOR+set}" != set; then
12322 PATH_SEPARATOR=:
12323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12324 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12325 PATH_SEPARATOR=';'
12326 }
12327 fi
12328
12329
12330 # IFS
12331 # We need space, tab and new line, in precisely that order. Quoting is
12332 # there to prevent editors from complaining about space-tab.
12333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12334 # splitting by setting IFS to empty value.)
12335 IFS=" "" $as_nl"
12336
12337 # Find who we are. Look in the path if we contain no directory separator.
12338 as_myself=
12339 case $0 in #((
12340 *[\\/]* ) as_myself=$0 ;;
12341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12343 do
12344 IFS=$as_save_IFS
12345 test -z "$as_dir" && as_dir=.
12346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12347 done
12348 IFS=$as_save_IFS
12349
12350 ;;
12351 esac
12352 # We did not find ourselves, most probably we were run as `sh COMMAND'
12353 # in which case we are not to be found in the path.
12354 if test "x$as_myself" = x; then
12355 as_myself=$0
12356 fi
12357 if test ! -f "$as_myself"; then
12358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12359 exit 1
12360 fi
12361
12362 # Unset variables that we do not need and which cause bugs (e.g. in
12363 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12364 # suppresses any "Segmentation fault" message there. '((' could
12365 # trigger a bug in pdksh 5.2.14.
12366 for as_var in BASH_ENV ENV MAIL MAILPATH
12367 do eval test x\${$as_var+set} = xset \
12368 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12369 done
12370 PS1='$ '
12371 PS2='> '
12372 PS4='+ '
12373
12374 # NLS nuisances.
12375 LC_ALL=C
12376 export LC_ALL
12377 LANGUAGE=C
12378 export LANGUAGE
12379
12380 # CDPATH.
12381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12382
12383
12384 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12385 # ----------------------------------------
12386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12388 # script with STATUS, using 1 if that was 0.
12389 as_fn_error ()
12390 {
12391 as_status=$1; test $as_status -eq 0 && as_status=1
12392 if test "$4"; then
12393 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12395 fi
12396 $as_echo "$as_me: error: $2" >&2
12397 as_fn_exit $as_status
12398 } # as_fn_error
12399
12400
12401 # as_fn_set_status STATUS
12402 # -----------------------
12403 # Set $? to STATUS, without forking.
12404 as_fn_set_status ()
12405 {
12406 return $1
12407 } # as_fn_set_status
12408
12409 # as_fn_exit STATUS
12410 # -----------------
12411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12412 as_fn_exit ()
12413 {
12414 set +e
12415 as_fn_set_status $1
12416 exit $1
12417 } # as_fn_exit
12418
12419 # as_fn_unset VAR
12420 # ---------------
12421 # Portably unset VAR.
12422 as_fn_unset ()
12423 {
12424 { eval $1=; unset $1;}
12425 }
12426 as_unset=as_fn_unset
12427 # as_fn_append VAR VALUE
12428 # ----------------------
12429 # Append the text in VALUE to the end of the definition contained in VAR. Take
12430 # advantage of any shell optimizations that allow amortized linear growth over
12431 # repeated appends, instead of the typical quadratic growth present in naive
12432 # implementations.
12433 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12434 eval 'as_fn_append ()
12435 {
12436 eval $1+=\$2
12437 }'
12438 else
12439 as_fn_append ()
12440 {
12441 eval $1=\$$1\$2
12442 }
12443 fi # as_fn_append
12444
12445 # as_fn_arith ARG...
12446 # ------------------
12447 # Perform arithmetic evaluation on the ARGs, and store the result in the
12448 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12449 # must be portable across $(()) and expr.
12450 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12451 eval 'as_fn_arith ()
12452 {
12453 as_val=$(( $* ))
12454 }'
12455 else
12456 as_fn_arith ()
12457 {
12458 as_val=`expr "$@" || test $? -eq 1`
12459 }
12460 fi # as_fn_arith
12461
12462
12463 if expr a : '\(a\)' >/dev/null 2>&1 &&
12464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12465 as_expr=expr
12466 else
12467 as_expr=false
12468 fi
12469
12470 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12471 as_basename=basename
12472 else
12473 as_basename=false
12474 fi
12475
12476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12477 as_dirname=dirname
12478 else
12479 as_dirname=false
12480 fi
12481
12482 as_me=`$as_basename -- "$0" ||
12483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12484 X"$0" : 'X\(//\)$' \| \
12485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12486 $as_echo X/"$0" |
12487 sed '/^.*\/\([^/][^/]*\)\/*$/{
12488 s//\1/
12489 q
12490 }
12491 /^X\/\(\/\/\)$/{
12492 s//\1/
12493 q
12494 }
12495 /^X\/\(\/\).*/{
12496 s//\1/
12497 q
12498 }
12499 s/.*/./; q'`
12500
12501 # Avoid depending upon Character Ranges.
12502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12505 as_cr_digits='0123456789'
12506 as_cr_alnum=$as_cr_Letters$as_cr_digits
12507
12508 ECHO_C= ECHO_N= ECHO_T=
12509 case `echo -n x` in #(((((
12510 -n*)
12511 case `echo 'xy\c'` in
12512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12513 xy) ECHO_C='\c';;
12514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12515 ECHO_T=' ';;
12516 esac;;
12517 *)
12518 ECHO_N='-n';;
12519 esac
12520
12521 rm -f conf$$ conf$$.exe conf$$.file
12522 if test -d conf$$.dir; then
12523 rm -f conf$$.dir/conf$$.file
12524 else
12525 rm -f conf$$.dir
12526 mkdir conf$$.dir 2>/dev/null
12527 fi
12528 if (echo >conf$$.file) 2>/dev/null; then
12529 if ln -s conf$$.file conf$$ 2>/dev/null; then
12530 as_ln_s='ln -s'
12531 # ... but there are two gotchas:
12532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12534 # In both cases, we have to default to `cp -pR'.
12535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12536 as_ln_s='cp -pR'
12537 elif ln conf$$.file conf$$ 2>/dev/null; then
12538 as_ln_s=ln
12539 else
12540 as_ln_s='cp -pR'
12541 fi
12542 else
12543 as_ln_s='cp -pR'
12544 fi
12545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12546 rmdir conf$$.dir 2>/dev/null
12547
12548
12549 # as_fn_mkdir_p
12550 # -------------
12551 # Create "$as_dir" as a directory, including parents if necessary.
12552 as_fn_mkdir_p ()
12553 {
12554
12555 case $as_dir in #(
12556 -*) as_dir=./$as_dir;;
12557 esac
12558 test -d "$as_dir" || eval $as_mkdir_p || {
12559 as_dirs=
12560 while :; do
12561 case $as_dir in #(
12562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12563 *) as_qdir=$as_dir;;
12564 esac
12565 as_dirs="'$as_qdir' $as_dirs"
12566 as_dir=`$as_dirname -- "$as_dir" ||
12567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12568 X"$as_dir" : 'X\(//\)[^/]' \| \
12569 X"$as_dir" : 'X\(//\)$' \| \
12570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12571 $as_echo X"$as_dir" |
12572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12573 s//\1/
12574 q
12575 }
12576 /^X\(\/\/\)[^/].*/{
12577 s//\1/
12578 q
12579 }
12580 /^X\(\/\/\)$/{
12581 s//\1/
12582 q
12583 }
12584 /^X\(\/\).*/{
12585 s//\1/
12586 q
12587 }
12588 s/.*/./; q'`
12589 test -d "$as_dir" && break
12590 done
12591 test -z "$as_dirs" || eval "mkdir $as_dirs"
12592 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12593
12594
12595 } # as_fn_mkdir_p
12596 if mkdir -p . 2>/dev/null; then
12597 as_mkdir_p='mkdir -p "$as_dir"'
12598 else
12599 test -d ./-p && rmdir ./-p
12600 as_mkdir_p=false
12601 fi
12602
12603
12604 # as_fn_executable_p FILE
12605 # -----------------------
12606 # Test if FILE is an executable regular file.
12607 as_fn_executable_p ()
12608 {
12609 test -f "$1" && test -x "$1"
12610 } # as_fn_executable_p
12611 as_test_x='test -x'
12612 as_executable_p=as_fn_executable_p
12613
12614 # Sed expression to map a string onto a valid CPP name.
12615 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12616
12617 # Sed expression to map a string onto a valid variable name.
12618 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12619
12620
12621 exec 6>&1
12622 ## ----------------------------------- ##
12623 ## Main body of $CONFIG_STATUS script. ##
12624 ## ----------------------------------- ##
12625 _ASEOF
12626 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12627
12628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12629 # Save the log message, to keep $0 and so on meaningful, and to
12630 # report actual input values of CONFIG_FILES etc. instead of their
12631 # values after options handling.
12632 ac_log="
12633 This file was extended by robotfindskitten $as_me 2.8284271.702, which was
12634 generated by GNU Autoconf 2.69. Invocation command line was
12635
12636 CONFIG_FILES = $CONFIG_FILES
12637 CONFIG_HEADERS = $CONFIG_HEADERS
12638 CONFIG_LINKS = $CONFIG_LINKS
12639 CONFIG_COMMANDS = $CONFIG_COMMANDS
12640 $ $0 $@
12641
12642 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12643 "
12644
12645 _ACEOF
12646
12647 case $ac_config_files in *"
12648 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12649 esac
12650
12651 case $ac_config_headers in *"
12652 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12653 esac
12654
12655
12656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12657 # Files that config.status was made for.
12658 config_files="$ac_config_files"
12659 config_headers="$ac_config_headers"
12660 config_commands="$ac_config_commands"
12661
12662 _ACEOF
12663
12664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12665 ac_cs_usage="\
12666 \`$as_me' instantiates files and other configuration actions
12667 from templates according to the current configuration. Unless the files
12668 and actions are specified as TAGs, all are instantiated by default.
12669
12670 Usage: $0 [OPTION]... [TAG]...
12671
12672 -h, --help print this help, then exit
12673 -V, --version print version number and configuration settings, then exit
12674 --config print configuration, then exit
12675 -q, --quiet, --silent
12676 do not print progress messages
12677 -d, --debug don't remove temporary files
12678 --recheck update $as_me by reconfiguring in the same conditions
12679 --file=FILE[:TEMPLATE]
12680 instantiate the configuration file FILE
12681 --header=FILE[:TEMPLATE]
12682 instantiate the configuration header FILE
12683
12684 Configuration files:
12685 $config_files
12686
12687 Configuration headers:
12688 $config_headers
12689
12690 Configuration commands:
12691 $config_commands
12692
12693 Report bugs to <[email protected]>."
12694
12695 _ACEOF
12696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12697 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12698 ac_cs_version="\\
12699 robotfindskitten config.status 2.8284271.702
12700 configured by $0, generated by GNU Autoconf 2.69,
12701 with options \\"\$ac_cs_config\\"
12702
12703 Copyright (C) 2012 Free Software Foundation, Inc.
12704 This config.status script is free software; the Free Software Foundation
12705 gives unlimited permission to copy, distribute and modify it."
12706
12707 ac_pwd='$ac_pwd'
12708 srcdir='$srcdir'
12709 INSTALL='$INSTALL'
12710 MKDIR_P='$MKDIR_P'
12711 AWK='$AWK'
12712 test -n "\$AWK" || AWK=awk
12713 _ACEOF
12714
12715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12716 # The default lists apply if the user does not specify any file.
12717 ac_need_defaults=:
12718 while test $# != 0
12719 do
12720 case $1 in
12721 --*=?*)
12722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12724 ac_shift=:
12725 ;;
12726 --*=)
12727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12728 ac_optarg=
12729 ac_shift=:
12730 ;;
12731 *)
12732 ac_option=$1
12733 ac_optarg=$2
12734 ac_shift=shift
12735 ;;
12736 esac
12737
12738 case $ac_option in
12739 # Handling of the options.
12740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12741 ac_cs_recheck=: ;;
12742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12743 $as_echo "$ac_cs_version"; exit ;;
12744 --config | --confi | --conf | --con | --co | --c )
12745 $as_echo "$ac_cs_config"; exit ;;
12746 --debug | --debu | --deb | --de | --d | -d )
12747 debug=: ;;
12748 --file | --fil | --fi | --f )
12749 $ac_shift
12750 case $ac_optarg in
12751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12752 '') as_fn_error $? "missing file argument" ;;
12753 esac
12754 as_fn_append CONFIG_FILES " '$ac_optarg'"
12755 ac_need_defaults=false;;
12756 --header | --heade | --head | --hea )
12757 $ac_shift
12758 case $ac_optarg in
12759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12760 esac
12761 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12762 ac_need_defaults=false;;
12763 --he | --h)
12764 # Conflict between --help and --header
12765 as_fn_error $? "ambiguous option: \`$1'
12766 Try \`$0 --help' for more information.";;
12767 --help | --hel | -h )
12768 $as_echo "$ac_cs_usage"; exit ;;
12769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12770 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12771 ac_cs_silent=: ;;
12772
12773 # This is an error.
12774 -*) as_fn_error $? "unrecognized option: \`$1'
12775 Try \`$0 --help' for more information." ;;
12776
12777 *) as_fn_append ac_config_targets " $1"
12778 ac_need_defaults=false ;;
12779
12780 esac
12781 shift
12782 done
12783
12784 ac_configure_extra_args=
12785
12786 if $ac_cs_silent; then
12787 exec 6>/dev/null
12788 ac_configure_extra_args="$ac_configure_extra_args --silent"
12789 fi
12790
12791 _ACEOF
12792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12793 if \$ac_cs_recheck; then
12794 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12795 shift
12796 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12797 CONFIG_SHELL='$SHELL'
12798 export CONFIG_SHELL
12799 exec "\$@"
12800 fi
12801
12802 _ACEOF
12803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12804 exec 5>>config.log
12805 {
12806 echo
12807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12808 ## Running $as_me. ##
12809 _ASBOX
12810 $as_echo "$ac_log"
12811 } >&5
12812
12813 _ACEOF
12814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12815 #
12816 # INIT-COMMANDS
12817 #
12818 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12819
12820
12821 # The HP-UX ksh and POSIX shell print the target directory to stdout
12822 # if CDPATH is set.
12823 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12824
12825 sed_quote_subst='$sed_quote_subst'
12826 double_quote_subst='$double_quote_subst'
12827 delay_variable_subst='$delay_variable_subst'
12828 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12829 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12830 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12831 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12832 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12833 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12834 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
12835 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12836 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12837 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12838 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12839 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12840 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12841 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12842 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12843 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12844 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12845 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12846 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12847 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12848 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12849 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12850 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12851 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12852 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12853 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12854 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12855 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12856 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12857 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12858 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12859 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12860 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12861 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12862 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12863 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12864 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12865 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12866 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12867 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12868 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12869 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12870 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12871 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12872 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12873 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12874 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12875 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12876 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12877 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12878 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12879 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12880 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12881 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12882 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12883 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12884 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
12885 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12886 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"`'
12887 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
12888 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12889 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12890 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
12891 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12892 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12893 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12894 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12895 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12896 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12897 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12898 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12899 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12900 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12901 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12902 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12903 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12904 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12905 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12906 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12907 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12908 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12909 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12910 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12911 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12912 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12913 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12914 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12915 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12916 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12917 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12918 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12919 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12920 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12921 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12922 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12923 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12924 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12925 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12926 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12927 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12928 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12929 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12930 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12931 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12932 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12933 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12934 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12935 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12936 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12937 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12938 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12939 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12940 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12941 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12942 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12943 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12944 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12945 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12946 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12947 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12948 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12949 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12950 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12951 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12952 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12953 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12954 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12955 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
12956 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
12957 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12958 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12959 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12960 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12961 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12962 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12963
12964 LTCC='$LTCC'
12965 LTCFLAGS='$LTCFLAGS'
12966 compiler='$compiler_DEFAULT'
12967
12968 # A function that is used when there is no print builtin or printf.
12969 func_fallback_echo ()
12970 {
12971 eval 'cat <<_LTECHO_EOF
12972 \$1
12973 _LTECHO_EOF'
12974 }
12975
12976 # Quote evaled strings.
12977 for var in SHELL \
12978 ECHO \
12979 PATH_SEPARATOR \
12980 SED \
12981 GREP \
12982 EGREP \
12983 FGREP \
12984 LD \
12985 NM \
12986 LN_S \
12987 lt_SP2NL \
12988 lt_NL2SP \
12989 reload_flag \
12990 OBJDUMP \
12991 deplibs_check_method \
12992 file_magic_cmd \
12993 file_magic_glob \
12994 want_nocaseglob \
12995 DLLTOOL \
12996 sharedlib_from_linklib_cmd \
12997 AR \
12998 AR_FLAGS \
12999 archiver_list_spec \
13000 STRIP \
13001 RANLIB \
13002 CC \
13003 CFLAGS \
13004 compiler \
13005 lt_cv_sys_global_symbol_pipe \
13006 lt_cv_sys_global_symbol_to_cdecl \
13007 lt_cv_sys_global_symbol_to_import \
13008 lt_cv_sys_global_symbol_to_c_name_address \
13009 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13010 lt_cv_nm_interface \
13011 nm_file_list_spec \
13012 lt_cv_truncate_bin \
13013 lt_prog_compiler_no_builtin_flag \
13014 lt_prog_compiler_pic \
13015 lt_prog_compiler_wl \
13016 lt_prog_compiler_static \
13017 lt_cv_prog_compiler_c_o \
13018 need_locks \
13019 MANIFEST_TOOL \
13020 DSYMUTIL \
13021 NMEDIT \
13022 LIPO \
13023 OTOOL \
13024 OTOOL64 \
13025 shrext_cmds \
13026 export_dynamic_flag_spec \
13027 whole_archive_flag_spec \
13028 compiler_needs_object \
13029 with_gnu_ld \
13030 allow_undefined_flag \
13031 no_undefined_flag \
13032 hardcode_libdir_flag_spec \
13033 hardcode_libdir_separator \
13034 exclude_expsyms \
13035 include_expsyms \
13036 file_list_spec \
13037 variables_saved_for_relink \
13038 libname_spec \
13039 library_names_spec \
13040 soname_spec \
13041 install_override_mode \
13042 finish_eval \
13043 old_striplib \
13044 striplib; do
13045 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13046 *[\\\\\\\`\\"\\\$]*)
13047 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13048 ;;
13049 *)
13050 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13051 ;;
13052 esac
13053 done
13054
13055 # Double-quote double-evaled strings.
13056 for var in reload_cmds \
13057 old_postinstall_cmds \
13058 old_postuninstall_cmds \
13059 old_archive_cmds \
13060 extract_expsyms_cmds \
13061 old_archive_from_new_cmds \
13062 old_archive_from_expsyms_cmds \
13063 archive_cmds \
13064 archive_expsym_cmds \
13065 module_cmds \
13066 module_expsym_cmds \
13067 export_symbols_cmds \
13068 prelink_cmds \
13069 postlink_cmds \
13070 postinstall_cmds \
13071 postuninstall_cmds \
13072 finish_cmds \
13073 sys_lib_search_path_spec \
13074 configure_time_dlsearch_path \
13075 configure_time_lt_sys_library_path; do
13076 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13077 *[\\\\\\\`\\"\\\$]*)
13078 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13079 ;;
13080 *)
13081 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13082 ;;
13083 esac
13084 done
13085
13086 ac_aux_dir='$ac_aux_dir'
13087
13088 # See if we are running on zsh, and set the options that allow our
13089 # commands through without removal of \ escapes INIT.
13090 if test -n "\${ZSH_VERSION+set}"; then
13091 setopt NO_GLOB_SUBST
13092 fi
13093
13094
13095 PACKAGE='$PACKAGE'
13096 VERSION='$VERSION'
13097 RM='$RM'
13098 ofile='$ofile'
13099
13100
13101
13102
13103 _ACEOF
13104
13105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13106
13107 # Handling of arguments.
13108 for ac_config_target in $ac_config_targets
13109 do
13110 case $ac_config_target in
13111 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13112 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13113 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13114 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13115 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13116 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13117 "nki/Makefile") CONFIG_FILES="$CONFIG_FILES nki/Makefile" ;;
13118
13119 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13120 esac
13121 done
13122
13123
13124 # If the user did not use the arguments to specify the items to instantiate,
13125 # then the envvar interface is used. Set only those that are not.
13126 # We use the long form for the default assignment because of an extremely
13127 # bizarre bug on SunOS 4.1.3.
13128 if $ac_need_defaults; then
13129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13132 fi
13133
13134 # Have a temporary directory for convenience. Make it in the build tree
13135 # simply because there is no reason against having it here, and in addition,
13136 # creating and moving files from /tmp can sometimes cause problems.
13137 # Hook for its removal unless debugging.
13138 # Note that there is a small window in which the directory will not be cleaned:
13139 # after its creation but before its name has been assigned to `$tmp'.
13140 $debug ||
13141 {
13142 tmp= ac_tmp=
13143 trap 'exit_status=$?
13144 : "${ac_tmp:=$tmp}"
13145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13146 ' 0
13147 trap 'as_fn_exit 1' 1 2 13 15
13148 }
13149 # Create a (secure) tmp directory for tmp files.
13150
13151 {
13152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13153 test -d "$tmp"
13154 } ||
13155 {
13156 tmp=./conf$$-$RANDOM
13157 (umask 077 && mkdir "$tmp")
13158 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13159 ac_tmp=$tmp
13160
13161 # Set up the scripts for CONFIG_FILES section.
13162 # No need to generate them if there are no CONFIG_FILES.
13163 # This happens for instance with `./config.status config.h'.
13164 if test -n "$CONFIG_FILES"; then
13165
13166
13167 ac_cr=`echo X | tr X '\015'`
13168 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13169 # But we know of no other shell where ac_cr would be empty at this
13170 # point, so we can use a bashism as a fallback.
13171 if test "x$ac_cr" = x; then
13172 eval ac_cr=\$\'\\r\'
13173 fi
13174 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13175 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13176 ac_cs_awk_cr='\\r'
13177 else
13178 ac_cs_awk_cr=$ac_cr
13179 fi
13180
13181 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13182 _ACEOF
13183
13184
13185 {
13186 echo "cat >conf$$subs.awk <<_ACEOF" &&
13187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13188 echo "_ACEOF"
13189 } >conf$$subs.sh ||
13190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13191 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13192 ac_delim='%!_!# '
13193 for ac_last_try in false false false false false :; do
13194 . ./conf$$subs.sh ||
13195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13196
13197 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13198 if test $ac_delim_n = $ac_delim_num; then
13199 break
13200 elif $ac_last_try; then
13201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13202 else
13203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13204 fi
13205 done
13206 rm -f conf$$subs.sh
13207
13208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13209 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13210 _ACEOF
13211 sed -n '
13212 h
13213 s/^/S["/; s/!.*/"]=/
13214 p
13215 g
13216 s/^[^!]*!//
13217 :repl
13218 t repl
13219 s/'"$ac_delim"'$//
13220 t delim
13221 :nl
13222 h
13223 s/\(.\{148\}\)..*/\1/
13224 t more1
13225 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13226 p
13227 n
13228 b repl
13229 :more1
13230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13231 p
13232 g
13233 s/.\{148\}//
13234 t nl
13235 :delim
13236 h
13237 s/\(.\{148\}\)..*/\1/
13238 t more2
13239 s/["\\]/\\&/g; s/^/"/; s/$/"/
13240 p
13241 b
13242 :more2
13243 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13244 p
13245 g
13246 s/.\{148\}//
13247 t delim
13248 ' <conf$$subs.awk | sed '
13249 /^[^""]/{
13250 N
13251 s/\n//
13252 }
13253 ' >>$CONFIG_STATUS || ac_write_fail=1
13254 rm -f conf$$subs.awk
13255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13256 _ACAWK
13257 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13258 for (key in S) S_is_set[key] = 1
13259 FS = ""
13260
13261 }
13262 {
13263 line = $ 0
13264 nfields = split(line, field, "@")
13265 substed = 0
13266 len = length(field[1])
13267 for (i = 2; i < nfields; i++) {
13268 key = field[i]
13269 keylen = length(key)
13270 if (S_is_set[key]) {
13271 value = S[key]
13272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13273 len += length(value) + length(field[++i])
13274 substed = 1
13275 } else
13276 len += 1 + keylen
13277 }
13278
13279 print line
13280 }
13281
13282 _ACAWK
13283 _ACEOF
13284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13285 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13287 else
13288 cat
13289 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13290 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13291 _ACEOF
13292
13293 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13294 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13295 # trailing colons and then remove the whole line if VPATH becomes empty
13296 # (actually we leave an empty line to preserve line numbers).
13297 if test "x$srcdir" = x.; then
13298 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13299 h
13300 s///
13301 s/^/:/
13302 s/[ ]*$/:/
13303 s/:\$(srcdir):/:/g
13304 s/:\${srcdir}:/:/g
13305 s/:@srcdir@:/:/g
13306 s/^:*//
13307 s/:*$//
13308 x
13309 s/\(=[ ]*\).*/\1/
13310 G
13311 s/\n//
13312 s/^[^=]*=[ ]*$//
13313 }'
13314 fi
13315
13316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13317 fi # test -n "$CONFIG_FILES"
13318
13319 # Set up the scripts for CONFIG_HEADERS section.
13320 # No need to generate them if there are no CONFIG_HEADERS.
13321 # This happens for instance with `./config.status Makefile'.
13322 if test -n "$CONFIG_HEADERS"; then
13323 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13324 BEGIN {
13325 _ACEOF
13326
13327 # Transform confdefs.h into an awk script `defines.awk', embedded as
13328 # here-document in config.status, that substitutes the proper values into
13329 # config.h.in to produce config.h.
13330
13331 # Create a delimiter string that does not exist in confdefs.h, to ease
13332 # handling of long lines.
13333 ac_delim='%!_!# '
13334 for ac_last_try in false false :; do
13335 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13336 if test -z "$ac_tt"; then
13337 break
13338 elif $ac_last_try; then
13339 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13340 else
13341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13342 fi
13343 done
13344
13345 # For the awk script, D is an array of macro values keyed by name,
13346 # likewise P contains macro parameters if any. Preserve backslash
13347 # newline sequences.
13348
13349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13350 sed -n '
13351 s/.\{148\}/&'"$ac_delim"'/g
13352 t rset
13353 :rset
13354 s/^[ ]*#[ ]*define[ ][ ]*/ /
13355 t def
13356 d
13357 :def
13358 s/\\$//
13359 t bsnl
13360 s/["\\]/\\&/g
13361 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13362 D["\1"]=" \3"/p
13363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13364 d
13365 :bsnl
13366 s/["\\]/\\&/g
13367 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13368 D["\1"]=" \3\\\\\\n"\\/p
13369 t cont
13370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13371 t cont
13372 d
13373 :cont
13374 n
13375 s/.\{148\}/&'"$ac_delim"'/g
13376 t clear
13377 :clear
13378 s/\\$//
13379 t bsnlc
13380 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13381 d
13382 :bsnlc
13383 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13384 b cont
13385 ' <confdefs.h | sed '
13386 s/'"$ac_delim"'/"\\\
13387 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13388
13389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13390 for (key in D) D_is_set[key] = 1
13391 FS = ""
13392 }
13393 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13394 line = \$ 0
13395 split(line, arg, " ")
13396 if (arg[1] == "#") {
13397 defundef = arg[2]
13398 mac1 = arg[3]
13399 } else {
13400 defundef = substr(arg[1], 2)
13401 mac1 = arg[2]
13402 }
13403 split(mac1, mac2, "(") #)
13404 macro = mac2[1]
13405 prefix = substr(line, 1, index(line, defundef) - 1)
13406 if (D_is_set[macro]) {
13407 # Preserve the white space surrounding the "#".
13408 print prefix "define", macro P[macro] D[macro]
13409 next
13410 } else {
13411 # Replace #undef with comments. This is necessary, for example,
13412 # in the case of _POSIX_SOURCE, which is predefined and required
13413 # on some systems where configure will not decide to define it.
13414 if (defundef == "undef") {
13415 print "/*", prefix defundef, macro, "*/"
13416 next
13417 }
13418 }
13419 }
13420 { print }
13421 _ACAWK
13422 _ACEOF
13423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13424 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13425 fi # test -n "$CONFIG_HEADERS"
13426
13427
13428 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13429 shift
13430 for ac_tag
13431 do
13432 case $ac_tag in
13433 :[FHLC]) ac_mode=$ac_tag; continue;;
13434 esac
13435 case $ac_mode$ac_tag in
13436 :[FHL]*:*);;
13437 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13438 :[FH]-) ac_tag=-:-;;
13439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13440 esac
13441 ac_save_IFS=$IFS
13442 IFS=:
13443 set x $ac_tag
13444 IFS=$ac_save_IFS
13445 shift
13446 ac_file=$1
13447 shift
13448
13449 case $ac_mode in
13450 :L) ac_source=$1;;
13451 :[FH])
13452 ac_file_inputs=
13453 for ac_f
13454 do
13455 case $ac_f in
13456 -) ac_f="$ac_tmp/stdin";;
13457 *) # Look for the file first in the build tree, then in the source tree
13458 # (if the path is not absolute). The absolute path cannot be DOS-style,
13459 # because $ac_f cannot contain `:'.
13460 test -f "$ac_f" ||
13461 case $ac_f in
13462 [\\/$]*) false;;
13463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13464 esac ||
13465 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13466 esac
13467 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13468 as_fn_append ac_file_inputs " '$ac_f'"
13469 done
13470
13471 # Let's still pretend it is `configure' which instantiates (i.e., don't
13472 # use $as_me), people would be surprised to read:
13473 # /* config.h. Generated by config.status. */
13474 configure_input='Generated from '`
13475 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13476 `' by configure.'
13477 if test x"$ac_file" != x-; then
13478 configure_input="$ac_file. $configure_input"
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13480 $as_echo "$as_me: creating $ac_file" >&6;}
13481 fi
13482 # Neutralize special characters interpreted by sed in replacement strings.
13483 case $configure_input in #(
13484 *\&* | *\|* | *\\* )
13485 ac_sed_conf_input=`$as_echo "$configure_input" |
13486 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13487 *) ac_sed_conf_input=$configure_input;;
13488 esac
13489
13490 case $ac_tag in
13491 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13493 esac
13494 ;;
13495 esac
13496
13497 ac_dir=`$as_dirname -- "$ac_file" ||
13498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13499 X"$ac_file" : 'X\(//\)[^/]' \| \
13500 X"$ac_file" : 'X\(//\)$' \| \
13501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13502 $as_echo X"$ac_file" |
13503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13504 s//\1/
13505 q
13506 }
13507 /^X\(\/\/\)[^/].*/{
13508 s//\1/
13509 q
13510 }
13511 /^X\(\/\/\)$/{
13512 s//\1/
13513 q
13514 }
13515 /^X\(\/\).*/{
13516 s//\1/
13517 q
13518 }
13519 s/.*/./; q'`
13520 as_dir="$ac_dir"; as_fn_mkdir_p
13521 ac_builddir=.
13522
13523 case "$ac_dir" in
13524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13525 *)
13526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13527 # A ".." for each directory in $ac_dir_suffix.
13528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13529 case $ac_top_builddir_sub in
13530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13532 esac ;;
13533 esac
13534 ac_abs_top_builddir=$ac_pwd
13535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13536 # for backward compatibility:
13537 ac_top_builddir=$ac_top_build_prefix
13538
13539 case $srcdir in
13540 .) # We are building in place.
13541 ac_srcdir=.
13542 ac_top_srcdir=$ac_top_builddir_sub
13543 ac_abs_top_srcdir=$ac_pwd ;;
13544 [\\/]* | ?:[\\/]* ) # Absolute name.
13545 ac_srcdir=$srcdir$ac_dir_suffix;
13546 ac_top_srcdir=$srcdir
13547 ac_abs_top_srcdir=$srcdir ;;
13548 *) # Relative name.
13549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13550 ac_top_srcdir=$ac_top_build_prefix$srcdir
13551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13552 esac
13553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13554
13555
13556 case $ac_mode in
13557 :F)
13558 #
13559 # CONFIG_FILE
13560 #
13561
13562 case $INSTALL in
13563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13565 esac
13566 ac_MKDIR_P=$MKDIR_P
13567 case $MKDIR_P in
13568 [\\/$]* | ?:[\\/]* ) ;;
13569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13570 esac
13571 _ACEOF
13572
13573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13574 # If the template does not know about datarootdir, expand it.
13575 # FIXME: This hack should be removed a few years after 2.60.
13576 ac_datarootdir_hack=; ac_datarootdir_seen=
13577 ac_sed_dataroot='
13578 /datarootdir/ {
13579 p
13580 q
13581 }
13582 /@datadir@/p
13583 /@docdir@/p
13584 /@infodir@/p
13585 /@localedir@/p
13586 /@mandir@/p'
13587 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13588 *datarootdir*) ac_datarootdir_seen=yes;;
13589 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13591 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13592 _ACEOF
13593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13594 ac_datarootdir_hack='
13595 s&@datadir@&$datadir&g
13596 s&@docdir@&$docdir&g
13597 s&@infodir@&$infodir&g
13598 s&@localedir@&$localedir&g
13599 s&@mandir@&$mandir&g
13600 s&\\\${datarootdir}&$datarootdir&g' ;;
13601 esac
13602 _ACEOF
13603
13604 # Neutralize VPATH when `$srcdir' = `.'.
13605 # Shell code in configure.ac might set extrasub.
13606 # FIXME: do we really want to maintain this feature?
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 ac_sed_extra="$ac_vpsub
13609 $extrasub
13610 _ACEOF
13611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13612 :t
13613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13614 s|@configure_input@|$ac_sed_conf_input|;t t
13615 s&@top_builddir@&$ac_top_builddir_sub&;t t
13616 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13617 s&@srcdir@&$ac_srcdir&;t t
13618 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13619 s&@top_srcdir@&$ac_top_srcdir&;t t
13620 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13621 s&@builddir@&$ac_builddir&;t t
13622 s&@abs_builddir@&$ac_abs_builddir&;t t
13623 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13624 s&@INSTALL@&$ac_INSTALL&;t t
13625 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13626 $ac_datarootdir_hack
13627 "
13628 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13629 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13630
13631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13634 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13636 which seems to be undefined. Please make sure it is defined" >&5
13637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13638 which seems to be undefined. Please make sure it is defined" >&2;}
13639
13640 rm -f "$ac_tmp/stdin"
13641 case $ac_file in
13642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13644 esac \
13645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13646 ;;
13647 :H)
13648 #
13649 # CONFIG_HEADER
13650 #
13651 if test x"$ac_file" != x-; then
13652 {
13653 $as_echo "/* $configure_input */" \
13654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13655 } >"$ac_tmp/config.h" \
13656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13660 else
13661 rm -f "$ac_file"
13662 mv "$ac_tmp/config.h" "$ac_file" \
13663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13664 fi
13665 else
13666 $as_echo "/* $configure_input */" \
13667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13668 || as_fn_error $? "could not create -" "$LINENO" 5
13669 fi
13670 # Compute "$ac_file"'s index in $config_headers.
13671 _am_arg="$ac_file"
13672 _am_stamp_count=1
13673 for _am_header in $config_headers :; do
13674 case $_am_header in
13675 $_am_arg | $_am_arg:* )
13676 break ;;
13677 * )
13678 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13679 esac
13680 done
13681 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13682 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13683 X"$_am_arg" : 'X\(//\)[^/]' \| \
13684 X"$_am_arg" : 'X\(//\)$' \| \
13685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13686 $as_echo X"$_am_arg" |
13687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13688 s//\1/
13689 q
13690 }
13691 /^X\(\/\/\)[^/].*/{
13692 s//\1/
13693 q
13694 }
13695 /^X\(\/\/\)$/{
13696 s//\1/
13697 q
13698 }
13699 /^X\(\/\).*/{
13700 s//\1/
13701 q
13702 }
13703 s/.*/./; q'`/stamp-h$_am_stamp_count
13704 ;;
13705
13706 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13707 $as_echo "$as_me: executing $ac_file commands" >&6;}
13708 ;;
13709 esac
13710
13711
13712 case $ac_file$ac_mode in
13713 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13714 # Older Autoconf quotes --file arguments for eval, but not when files
13715 # are listed without --file. Let's play safe and only enable the eval
13716 # if we detect the quoting.
13717 case $CONFIG_FILES in
13718 *\'*) eval set x "$CONFIG_FILES" ;;
13719 *) set x $CONFIG_FILES ;;
13720 esac
13721 shift
13722 for mf
13723 do
13724 # Strip MF so we end up with the name of the file.
13725 mf=`echo "$mf" | sed -e 's/:.*$//'`
13726 # Check whether this is an Automake generated Makefile or not.
13727 # We used to match only the files named 'Makefile.in', but
13728 # some people rename them; so instead we look at the file content.
13729 # Grep'ing the first line is not enough: some people post-process
13730 # each Makefile.in and add a new line on top of each file to say so.
13731 # Grep'ing the whole file is not good either: AIX grep has a line
13732 # limit of 2048, but all sed's we know have understand at least 4000.
13733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13734 dirpart=`$as_dirname -- "$mf" ||
13735 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13736 X"$mf" : 'X\(//\)[^/]' \| \
13737 X"$mf" : 'X\(//\)$' \| \
13738 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13739 $as_echo X"$mf" |
13740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13741 s//\1/
13742 q
13743 }
13744 /^X\(\/\/\)[^/].*/{
13745 s//\1/
13746 q
13747 }
13748 /^X\(\/\/\)$/{
13749 s//\1/
13750 q
13751 }
13752 /^X\(\/\).*/{
13753 s//\1/
13754 q
13755 }
13756 s/.*/./; q'`
13757 else
13758 continue
13759 fi
13760 # Extract the definition of DEPDIR, am__include, and am__quote
13761 # from the Makefile without running 'make'.
13762 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13763 test -z "$DEPDIR" && continue
13764 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13765 test -z "$am__include" && continue
13766 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13767 # Find all dependency output files, they are included files with
13768 # $(DEPDIR) in their names. We invoke sed twice because it is the
13769 # simplest approach to changing $(DEPDIR) to its actual value in the
13770 # expansion.
13771 for file in `sed -n "
13772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13774 # Make sure the directory exists.
13775 test -f "$dirpart/$file" && continue
13776 fdir=`$as_dirname -- "$file" ||
13777 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778 X"$file" : 'X\(//\)[^/]' \| \
13779 X"$file" : 'X\(//\)$' \| \
13780 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13781 $as_echo X"$file" |
13782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13783 s//\1/
13784 q
13785 }
13786 /^X\(\/\/\)[^/].*/{
13787 s//\1/
13788 q
13789 }
13790 /^X\(\/\/\)$/{
13791 s//\1/
13792 q
13793 }
13794 /^X\(\/\).*/{
13795 s//\1/
13796 q
13797 }
13798 s/.*/./; q'`
13799 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13800 # echo "creating $dirpart/$file"
13801 echo '# dummy' > "$dirpart/$file"
13802 done
13803 done
13804 }
13805 ;;
13806 "libtool":C)
13807
13808 # See if we are running on zsh, and set the options that allow our
13809 # commands through without removal of \ escapes.
13810 if test -n "${ZSH_VERSION+set}"; then
13811 setopt NO_GLOB_SUBST
13812 fi
13813
13814 cfgfile=${ofile}T
13815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13816 $RM "$cfgfile"
13817
13818 cat <<_LT_EOF >> "$cfgfile"
13819 #! $SHELL
13820 # Generated automatically by $as_me ($PACKAGE) $VERSION
13821 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13822
13823 # Provide generalized library-building support services.
13824 # Written by Gordon Matzigkeit, 1996
13825
13826 # Copyright (C) 2014 Free Software Foundation, Inc.
13827 # This is free software; see the source for copying conditions. There is NO
13828 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13829
13830 # GNU Libtool is free software; you can redistribute it and/or modify
13831 # it under the terms of the GNU General Public License as published by
13832 # the Free Software Foundation; either version 2 of of the License, or
13833 # (at your option) any later version.
13834 #
13835 # As a special exception to the GNU General Public License, if you
13836 # distribute this file as part of a program or library that is built
13837 # using GNU Libtool, you may include this file under the same
13838 # distribution terms that you use for the rest of that program.
13839 #
13840 # GNU Libtool is distributed in the hope that it will be useful, but
13841 # WITHOUT ANY WARRANTY; without even the implied warranty of
13842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13843 # GNU General Public License for more details.
13844 #
13845 # You should have received a copy of the GNU General Public License
13846 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13847
13848
13849 # The names of the tagged configurations supported by this script.
13850 available_tags=''
13851
13852 # Configured defaults for sys_lib_dlsearch_path munging.
13853 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
13854
13855 # ### BEGIN LIBTOOL CONFIG
13856
13857 # Which release of libtool.m4 was used?
13858 macro_version=$macro_version
13859 macro_revision=$macro_revision
13860
13861 # Whether or not to build shared libraries.
13862 build_libtool_libs=$enable_shared
13863
13864 # Whether or not to build static libraries.
13865 build_old_libs=$enable_static
13866
13867 # What type of objects to build.
13868 pic_mode=$pic_mode
13869
13870 # Whether or not to optimize for fast installation.
13871 fast_install=$enable_fast_install
13872
13873 # Shared archive member basename,for filename based shared library versioning on AIX.
13874 shared_archive_member_spec=$shared_archive_member_spec
13875
13876 # Shell to use when invoking shell scripts.
13877 SHELL=$lt_SHELL
13878
13879 # An echo program that protects backslashes.
13880 ECHO=$lt_ECHO
13881
13882 # The PATH separator for the build system.
13883 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13884
13885 # The host system.
13886 host_alias=$host_alias
13887 host=$host
13888 host_os=$host_os
13889
13890 # The build system.
13891 build_alias=$build_alias
13892 build=$build
13893 build_os=$build_os
13894
13895 # A sed program that does not truncate output.
13896 SED=$lt_SED
13897
13898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13899 Xsed="\$SED -e 1s/^X//"
13900
13901 # A grep program that handles long lines.
13902 GREP=$lt_GREP
13903
13904 # An ERE matcher.
13905 EGREP=$lt_EGREP
13906
13907 # A literal string matcher.
13908 FGREP=$lt_FGREP
13909
13910 # A BSD- or MS-compatible name lister.
13911 NM=$lt_NM
13912
13913 # Whether we need soft or hard links.
13914 LN_S=$lt_LN_S
13915
13916 # What is the maximum length of a command?
13917 max_cmd_len=$max_cmd_len
13918
13919 # Object file suffix (normally "o").
13920 objext=$ac_objext
13921
13922 # Executable file suffix (normally "").
13923 exeext=$exeext
13924
13925 # whether the shell understands "unset".
13926 lt_unset=$lt_unset
13927
13928 # turn spaces into newlines.
13929 SP2NL=$lt_lt_SP2NL
13930
13931 # turn newlines into spaces.
13932 NL2SP=$lt_lt_NL2SP
13933
13934 # convert \$build file names to \$host format.
13935 to_host_file_cmd=$lt_cv_to_host_file_cmd
13936
13937 # convert \$build files to toolchain format.
13938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13939
13940 # An object symbol dumper.
13941 OBJDUMP=$lt_OBJDUMP
13942
13943 # Method to check whether dependent libraries are shared objects.
13944 deplibs_check_method=$lt_deplibs_check_method
13945
13946 # Command to use when deplibs_check_method = "file_magic".
13947 file_magic_cmd=$lt_file_magic_cmd
13948
13949 # How to find potential files when deplibs_check_method = "file_magic".
13950 file_magic_glob=$lt_file_magic_glob
13951
13952 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13953 want_nocaseglob=$lt_want_nocaseglob
13954
13955 # DLL creation program.
13956 DLLTOOL=$lt_DLLTOOL
13957
13958 # Command to associate shared and link libraries.
13959 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13960
13961 # The archiver.
13962 AR=$lt_AR
13963
13964 # Flags to create an archive.
13965 AR_FLAGS=$lt_AR_FLAGS
13966
13967 # How to feed a file listing to the archiver.
13968 archiver_list_spec=$lt_archiver_list_spec
13969
13970 # A symbol stripping program.
13971 STRIP=$lt_STRIP
13972
13973 # Commands used to install an old-style archive.
13974 RANLIB=$lt_RANLIB
13975 old_postinstall_cmds=$lt_old_postinstall_cmds
13976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13977
13978 # Whether to use a lock for old archive extraction.
13979 lock_old_archive_extraction=$lock_old_archive_extraction
13980
13981 # A C compiler.
13982 LTCC=$lt_CC
13983
13984 # LTCC compiler flags.
13985 LTCFLAGS=$lt_CFLAGS
13986
13987 # Take the output of nm and produce a listing of raw symbols and C names.
13988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13989
13990 # Transform the output of nm in a proper C declaration.
13991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13992
13993 # Transform the output of nm into a list of symbols to manually relocate.
13994 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
13995
13996 # Transform the output of nm in a C name address pair.
13997 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13998
13999 # Transform the output of nm in a C name address pair when lib prefix is needed.
14000 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14001
14002 # The name lister interface.
14003 nm_interface=$lt_lt_cv_nm_interface
14004
14005 # Specify filename containing input files for \$NM.
14006 nm_file_list_spec=$lt_nm_file_list_spec
14007
14008 # The root where to search for dependent libraries,and where our libraries should be installed.
14009 lt_sysroot=$lt_sysroot
14010
14011 # Command to truncate a binary pipe.
14012 lt_truncate_bin=$lt_lt_cv_truncate_bin
14013
14014 # The name of the directory that contains temporary libtool files.
14015 objdir=$objdir
14016
14017 # Used to examine libraries when file_magic_cmd begins with "file".
14018 MAGIC_CMD=$MAGIC_CMD
14019
14020 # Must we lock files when doing compilation?
14021 need_locks=$lt_need_locks
14022
14023 # Manifest tool.
14024 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14025
14026 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14027 DSYMUTIL=$lt_DSYMUTIL
14028
14029 # Tool to change global to local symbols on Mac OS X.
14030 NMEDIT=$lt_NMEDIT
14031
14032 # Tool to manipulate fat objects and archives on Mac OS X.
14033 LIPO=$lt_LIPO
14034
14035 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14036 OTOOL=$lt_OTOOL
14037
14038 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14039 OTOOL64=$lt_OTOOL64
14040
14041 # Old archive suffix (normally "a").
14042 libext=$libext
14043
14044 # Shared library suffix (normally ".so").
14045 shrext_cmds=$lt_shrext_cmds
14046
14047 # The commands to extract the exported symbol list from a shared archive.
14048 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14049
14050 # Variables whose values should be saved in libtool wrapper scripts and
14051 # restored at link time.
14052 variables_saved_for_relink=$lt_variables_saved_for_relink
14053
14054 # Do we need the "lib" prefix for modules?
14055 need_lib_prefix=$need_lib_prefix
14056
14057 # Do we need a version for libraries?
14058 need_version=$need_version
14059
14060 # Library versioning type.
14061 version_type=$version_type
14062
14063 # Shared library runtime path variable.
14064 runpath_var=$runpath_var
14065
14066 # Shared library path variable.
14067 shlibpath_var=$shlibpath_var
14068
14069 # Is shlibpath searched before the hard-coded library search path?
14070 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14071
14072 # Format of library name prefix.
14073 libname_spec=$lt_libname_spec
14074
14075 # List of archive names. First name is the real one, the rest are links.
14076 # The last name is the one that the linker finds with -lNAME
14077 library_names_spec=$lt_library_names_spec
14078
14079 # The coded name of the library, if different from the real name.
14080 soname_spec=$lt_soname_spec
14081
14082 # Permission mode override for installation of shared libraries.
14083 install_override_mode=$lt_install_override_mode
14084
14085 # Command to use after installation of a shared archive.
14086 postinstall_cmds=$lt_postinstall_cmds
14087
14088 # Command to use after uninstallation of a shared archive.
14089 postuninstall_cmds=$lt_postuninstall_cmds
14090
14091 # Commands used to finish a libtool library installation in a directory.
14092 finish_cmds=$lt_finish_cmds
14093
14094 # As "finish_cmds", except a single script fragment to be evaled but
14095 # not shown.
14096 finish_eval=$lt_finish_eval
14097
14098 # Whether we should hardcode library paths into libraries.
14099 hardcode_into_libs=$hardcode_into_libs
14100
14101 # Compile-time system search path for libraries.
14102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14103
14104 # Detected run-time system search path for libraries.
14105 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14106
14107 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14108 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14109
14110 # Whether dlopen is supported.
14111 dlopen_support=$enable_dlopen
14112
14113 # Whether dlopen of programs is supported.
14114 dlopen_self=$enable_dlopen_self
14115
14116 # Whether dlopen of statically linked programs is supported.
14117 dlopen_self_static=$enable_dlopen_self_static
14118
14119 # Commands to strip libraries.
14120 old_striplib=$lt_old_striplib
14121 striplib=$lt_striplib
14122
14123
14124 # The linker used to build libraries.
14125 LD=$lt_LD
14126
14127 # How to create reloadable object files.
14128 reload_flag=$lt_reload_flag
14129 reload_cmds=$lt_reload_cmds
14130
14131 # Commands used to build an old-style archive.
14132 old_archive_cmds=$lt_old_archive_cmds
14133
14134 # A language specific compiler.
14135 CC=$lt_compiler
14136
14137 # Is the compiler the GNU compiler?
14138 with_gcc=$GCC
14139
14140 # Compiler flag to turn off builtin functions.
14141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14142
14143 # Additional compiler flags for building library objects.
14144 pic_flag=$lt_lt_prog_compiler_pic
14145
14146 # How to pass a linker flag through the compiler.
14147 wl=$lt_lt_prog_compiler_wl
14148
14149 # Compiler flag to prevent dynamic linking.
14150 link_static_flag=$lt_lt_prog_compiler_static
14151
14152 # Does compiler simultaneously support -c and -o options?
14153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14154
14155 # Whether or not to add -lc for building shared libraries.
14156 build_libtool_need_lc=$archive_cmds_need_lc
14157
14158 # Whether or not to disallow shared libs when runtime libs are static.
14159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14160
14161 # Compiler flag to allow reflexive dlopens.
14162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14163
14164 # Compiler flag to generate shared objects directly from archives.
14165 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14166
14167 # Whether the compiler copes with passing no objects directly.
14168 compiler_needs_object=$lt_compiler_needs_object
14169
14170 # Create an old-style archive from a shared archive.
14171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14172
14173 # Create a temporary old-style archive to link instead of a shared archive.
14174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14175
14176 # Commands used to build a shared archive.
14177 archive_cmds=$lt_archive_cmds
14178 archive_expsym_cmds=$lt_archive_expsym_cmds
14179
14180 # Commands used to build a loadable module if different from building
14181 # a shared archive.
14182 module_cmds=$lt_module_cmds
14183 module_expsym_cmds=$lt_module_expsym_cmds
14184
14185 # Whether we are building with GNU ld or not.
14186 with_gnu_ld=$lt_with_gnu_ld
14187
14188 # Flag that allows shared libraries with undefined symbols to be built.
14189 allow_undefined_flag=$lt_allow_undefined_flag
14190
14191 # Flag that enforces no undefined symbols.
14192 no_undefined_flag=$lt_no_undefined_flag
14193
14194 # Flag to hardcode \$libdir into a binary during linking.
14195 # This must work even if \$libdir does not exist
14196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14197
14198 # Whether we need a single "-rpath" flag with a separated argument.
14199 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14200
14201 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14202 # DIR into the resulting binary.
14203 hardcode_direct=$hardcode_direct
14204
14205 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14206 # DIR into the resulting binary and the resulting library dependency is
14207 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14208 # library is relocated.
14209 hardcode_direct_absolute=$hardcode_direct_absolute
14210
14211 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14212 # into the resulting binary.
14213 hardcode_minus_L=$hardcode_minus_L
14214
14215 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14216 # into the resulting binary.
14217 hardcode_shlibpath_var=$hardcode_shlibpath_var
14218
14219 # Set to "yes" if building a shared library automatically hardcodes DIR
14220 # into the library and all subsequent libraries and executables linked
14221 # against it.
14222 hardcode_automatic=$hardcode_automatic
14223
14224 # Set to yes if linker adds runtime paths of dependent libraries
14225 # to runtime path list.
14226 inherit_rpath=$inherit_rpath
14227
14228 # Whether libtool must link a program against all its dependency libraries.
14229 link_all_deplibs=$link_all_deplibs
14230
14231 # Set to "yes" if exported symbols are required.
14232 always_export_symbols=$always_export_symbols
14233
14234 # The commands to list exported symbols.
14235 export_symbols_cmds=$lt_export_symbols_cmds
14236
14237 # Symbols that should not be listed in the preloaded symbols.
14238 exclude_expsyms=$lt_exclude_expsyms
14239
14240 # Symbols that must always be exported.
14241 include_expsyms=$lt_include_expsyms
14242
14243 # Commands necessary for linking programs (against libraries) with templates.
14244 prelink_cmds=$lt_prelink_cmds
14245
14246 # Commands necessary for finishing linking programs.
14247 postlink_cmds=$lt_postlink_cmds
14248
14249 # Specify filename containing input files.
14250 file_list_spec=$lt_file_list_spec
14251
14252 # How to hardcode a shared library path into an executable.
14253 hardcode_action=$hardcode_action
14254
14255 # ### END LIBTOOL CONFIG
14256
14257 _LT_EOF
14258
14259 cat <<'_LT_EOF' >> "$cfgfile"
14260
14261 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14262
14263 # func_munge_path_list VARIABLE PATH
14264 # -----------------------------------
14265 # VARIABLE is name of variable containing _space_ separated list of
14266 # directories to be munged by the contents of PATH, which is string
14267 # having a format:
14268 # "DIR[:DIR]:"
14269 # string "DIR[ DIR]" will be prepended to VARIABLE
14270 # ":DIR[:DIR]"
14271 # string "DIR[ DIR]" will be appended to VARIABLE
14272 # "DIRP[:DIRP]::[DIRA:]DIRA"
14273 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14274 # "DIRA[ DIRA]" will be appended to VARIABLE
14275 # "DIR[:DIR]"
14276 # VARIABLE will be replaced by "DIR[ DIR]"
14277 func_munge_path_list ()
14278 {
14279 case x$2 in
14280 x)
14281 ;;
14282 *:)
14283 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14284 ;;
14285 x:*)
14286 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14287 ;;
14288 *::*)
14289 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14290 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14291 ;;
14292 *)
14293 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14294 ;;
14295 esac
14296 }
14297
14298
14299 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14300 func_cc_basename ()
14301 {
14302 for cc_temp in $*""; do
14303 case $cc_temp in
14304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14306 \-*) ;;
14307 *) break;;
14308 esac
14309 done
14310 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14311 }
14312
14313
14314 # ### END FUNCTIONS SHARED WITH CONFIGURE
14315
14316 _LT_EOF
14317
14318 case $host_os in
14319 aix3*)
14320 cat <<\_LT_EOF >> "$cfgfile"
14321 # AIX sometimes has problems with the GCC collect2 program. For some
14322 # reason, if we set the COLLECT_NAMES environment variable, the problems
14323 # vanish in a puff of smoke.
14324 if test set != "${COLLECT_NAMES+set}"; then
14325 COLLECT_NAMES=
14326 export COLLECT_NAMES
14327 fi
14328 _LT_EOF
14329 ;;
14330 esac
14331
14332
14333 ltmain=$ac_aux_dir/ltmain.sh
14334
14335
14336 # We use sed instead of cat because bash on DJGPP gets confused if
14337 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14338 # text mode, it properly converts lines to CR/LF. This bash problem
14339 # is reportedly fixed, but why not run on old versions too?
14340 sed '$q' "$ltmain" >> "$cfgfile" \
14341 || (rm -f "$cfgfile"; exit 1)
14342
14343 mv -f "$cfgfile" "$ofile" ||
14344 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14345 chmod +x "$ofile"
14346
14347 ;;
14348
14349 esac
14350 done # for ac_tag
14351
14352
14353 as_fn_exit 0
14354 _ACEOF
14355 ac_clean_files=$ac_clean_files_save
14356
14357 test $ac_write_fail = 0 ||
14358 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14359
14360
14361 # configure is writing to config.log, and then calls config.status.
14362 # config.status does its own redirection, appending to config.log.
14363 # Unfortunately, on DOS this fails, as config.log is still kept open
14364 # by configure, so config.status won't be able to write to it; its
14365 # output is simply discarded. So we exec the FD to /dev/null,
14366 # effectively closing config.log, so it can be properly (re)opened and
14367 # appended to by config.status. When coming back to configure, we
14368 # need to make the FD available again.
14369 if test "$no_create" != yes; then
14370 ac_cs_success=:
14371 ac_config_status_args=
14372 test "$silent" = yes &&
14373 ac_config_status_args="$ac_config_status_args --quiet"
14374 exec 5>/dev/null
14375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14376 exec 5>>config.log
14377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14378 # would make configure fail if this is the last instruction.
14379 $ac_cs_success || as_fn_exit 1
14380 fi
14381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14384 fi
14385