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 libcanlock 3.3.1.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='libcanlock'
592 PACKAGE_TARNAME='libcanlock'
593 PACKAGE_VERSION='3.3.1'
594 PACKAGE_STRING='libcanlock 3.3.1'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='https://micha.freeshell.org/libcanlock'
597
598 ac_unique_file="src/canlock.c"
599 enable_option_checking=no
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 COND_HP_FALSE
641 COND_HP_TRUE
642 AM_BACKSLASH
643 AM_DEFAULT_VERBOSITY
644 AM_DEFAULT_V
645 AM_V
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__include
654 DEPDIR
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
660 mkdir_p
661 MKDIR_P
662 INSTALL_STRIP_PROGRAM
663 install_sh
664 MAKEINFO
665 AUTOHEADER
666 AUTOMAKE
667 AUTOCONF
668 ACLOCAL
669 VERSION
670 PACKAGE
671 CYGPATH_W
672 am__isrc
673 LT_SYS_LIBRARY_PATH
674 OTOOL64
675 OTOOL
676 LIPO
677 NMEDIT
678 DSYMUTIL
679 MANIFEST_TOOL
680 AWK
681 RANLIB
682 STRIP
683 DLLTOOL
684 OBJDUMP
685 LN_S
686 NM
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 LIBTOOL
700 EGREP
701 CPP
702 SED
703 GREP
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 ac_ct_AR
712 AR
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 pkgconfigdir
717 subdirs
718 opt_legacy_api
719 RELEASE_DATE
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL
758 am__quote'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_legacy_api
763 enable_hp
764 enable_pc_files
765 with_pkgconfigdir
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_aix_soname
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 enable_dependency_tracking
775 enable_silent_rules
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 LT_SYS_LIBRARY_PATH'
787 ac_subdirs_all='hp'
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
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
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 libcanlock 3.3.1 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 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/libcanlock]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of libcanlock 3.3.1:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --disable-legacy-api disable version 2 legacy API
1406 --disable-hp do not build article header parsers
1407 --enable-pc-files generate and install .pc files for pkg-config
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --enable-dependency-tracking
1414 do not reject slow dependency extractors
1415 --disable-dependency-tracking
1416 speeds up one-time build
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pkgconfigdir pkg-config installation directory
1424 ['${libdir}/pkgconfig']
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-aix-soname=aix|svr4|both
1428 shared library versioning (aka "SONAME") variant to
1429 provide on AIX, [default=aix].
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1432 compiler's sysroot if not specified).
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 LT_SYS_LIBRARY_PATH
1444 User-defined run-time library search path.
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to <[email protected]>.
1450 libcanlock home page: <https://micha.freeshell.org/libcanlock>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 libcanlock configure 3.3.1
1514 generated by GNU Autoconf 2.69
1515
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559 fi
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_cpp ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_cpp
1601
1602 # ac_fn_c_try_run LINENO
1603 # ----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1605 # that executables *can* be run.
1606 ac_fn_c_try_run ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>&5
1617 ac_status=$?
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1620 { { case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_try") 2>&5
1627 ac_status=$?
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; }; }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: program exited with status $ac_status" >&5
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=$ac_status
1637 fi
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_run
1643
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1648 # accordingly.
1649 ac_fn_c_check_header_mongrel ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if eval \${$3+:} false; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 else
1662 # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1672 else
1673 ac_header_compiler=no
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1678
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1688 else
1689 ac_header_preproc=no
1690 fi
1691 rm -f conftest.err conftest.i conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1694
1695 # So? What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697 yes:no: )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 no:yes:* )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ( $as_echo "## --------------------------------------- ##
1715 ## Report this to [email protected] ##
1716 ## --------------------------------------- ##"
1717 ) | sed "s/^/$as_me: WARNING: /" >&2
1718 ;;
1719 esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 eval "$3=\$ac_header_compiler"
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_mongrel
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754 else
1755 eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1767 # --------------------------------------------
1768 # Tries to find the compile-time value of EXPR in a program that includes
1769 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1770 # computed
1771 ac_fn_c_compute_int ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if test "$cross_compiling" = yes; then
1775 # Depending upon the size, compute the lo and hi bounds.
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 int
1780 main ()
1781 {
1782 static int test_array [1 - 2 * !(($2) >= 0)];
1783 test_array [0] = 0;
1784 return test_array [0];
1785
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_lo=0 ac_mid=0
1792 while :; do
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 $4
1796 int
1797 main ()
1798 {
1799 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1800 test_array [0] = 0;
1801 return test_array [0];
1802
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_hi=$ac_mid; break
1809 else
1810 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1811 if test $ac_lo -le $ac_mid; then
1812 ac_lo= ac_hi=
1813 break
1814 fi
1815 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 done
1819 else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 $4
1823 int
1824 main ()
1825 {
1826 static int test_array [1 - 2 * !(($2) < 0)];
1827 test_array [0] = 0;
1828 return test_array [0];
1829
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_hi=-1 ac_mid=-1
1836 while :; do
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 $4
1840 int
1841 main ()
1842 {
1843 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1844 test_array [0] = 0;
1845 return test_array [0];
1846
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_lo=$ac_mid; break
1853 else
1854 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1855 if test $ac_mid -le $ac_hi; then
1856 ac_lo= ac_hi=
1857 break
1858 fi
1859 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 done
1863 else
1864 ac_lo= ac_hi=
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 # Binary search between lo and hi bounds.
1870 while test "x$ac_lo" != "x$ac_hi"; do
1871 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 $4
1875 int
1876 main ()
1877 {
1878 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1879 test_array [0] = 0;
1880 return test_array [0];
1881
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 ac_hi=$ac_mid
1888 else
1889 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 done
1893 case $ac_lo in #((
1894 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1895 '') ac_retval=1 ;;
1896 esac
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 static long int longval () { return $2; }
1902 static unsigned long int ulongval () { return $2; }
1903 #include <stdio.h>
1904 #include <stdlib.h>
1905 int
1906 main ()
1907 {
1908
1909 FILE *f = fopen ("conftest.val", "w");
1910 if (! f)
1911 return 1;
1912 if (($2) < 0)
1913 {
1914 long int i = longval ();
1915 if (i != ($2))
1916 return 1;
1917 fprintf (f, "%ld", i);
1918 }
1919 else
1920 {
1921 unsigned long int i = ulongval ();
1922 if (i != ($2))
1923 return 1;
1924 fprintf (f, "%lu", i);
1925 }
1926 /* Do not output a trailing newline, as this causes \r\n confusion
1927 on some platforms. */
1928 return ferror (f) || fclose (f) != 0;
1929
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_run "$LINENO"; then :
1935 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1936 else
1937 ac_retval=1
1938 fi
1939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1940 conftest.$ac_objext conftest.beam conftest.$ac_ext
1941 rm -f conftest.val
1942
1943 fi
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1946
1947 } # ac_fn_c_compute_int
1948
1949 # ac_fn_c_try_link LINENO
1950 # -----------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_c_try_link ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 rm -f conftest.$ac_objext conftest$ac_exeext
1956 if { { ac_try="$ac_link"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_link") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && {
1972 test -z "$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1974 } && test -s conftest$ac_exeext && {
1975 test "$cross_compiling" = yes ||
1976 test -x conftest$ac_exeext
1977 }; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=1
1984 fi
1985 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1986 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1987 # interfere with the next link command; also delete a directory that is
1988 # left behind by Apple's compiler. We do this before executing the actions.
1989 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 as_fn_set_status $ac_retval
1992
1993 } # ac_fn_c_try_link
1994
1995 # ac_fn_c_check_func LINENO FUNC VAR
1996 # ----------------------------------
1997 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1998 ac_fn_c_check_func ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2010 #define $2 innocuous_$2
2011
2012 /* System header to define __stub macros and hopefully few prototypes,
2013 which can conflict with char $2 (); below.
2014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015 <limits.h> exists even on freestanding compilers. */
2016
2017 #ifdef __STDC__
2018 # include <limits.h>
2019 #else
2020 # include <assert.h>
2021 #endif
2022
2023 #undef $2
2024
2025 /* Override any GCC internal prototype to avoid an error.
2026 Use char because int might match the return type of a GCC
2027 builtin and then its argument prototype would still apply. */
2028 #ifdef __cplusplus
2029 extern "C"
2030 #endif
2031 char $2 ();
2032 /* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035 #if defined __stub_$2 || defined __stub___$2
2036 choke me
2037 #endif
2038
2039 int
2040 main ()
2041 {
2042 return $2 ();
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_link "$LINENO"; then :
2048 eval "$3=yes"
2049 else
2050 eval "$3=no"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext \
2053 conftest$ac_exeext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_func
2061 cat >config.log <<_ACEOF
2062 This file contains any messages produced by compilers while
2063 running configure, to aid debugging if configure makes a mistake.
2064
2065 It was created by libcanlock $as_me 3.3.1, which was
2066 generated by GNU Autoconf 2.69. Invocation command line was
2067
2068 $ $0 $@
2069
2070 _ACEOF
2071 exec 5>>config.log
2072 {
2073 cat <<_ASUNAME
2074 ## --------- ##
2075 ## Platform. ##
2076 ## --------- ##
2077
2078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083
2084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2086
2087 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2088 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2090 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2091 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2092 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2093 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2094
2095 _ASUNAME
2096
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 $as_echo "PATH: $as_dir"
2103 done
2104 IFS=$as_save_IFS
2105
2106 } >&5
2107
2108 cat >&5 <<_ACEOF
2109
2110
2111 ## ----------- ##
2112 ## Core tests. ##
2113 ## ----------- ##
2114
2115 _ACEOF
2116
2117
2118 # Keep a trace of the command line.
2119 # Strip out --no-create and --no-recursion so they do not pile up.
2120 # Strip out --silent because we don't want to record it for future runs.
2121 # Also quote any args containing shell meta-characters.
2122 # Make two passes to allow for proper duplicate-argument suppression.
2123 ac_configure_args=
2124 ac_configure_args0=
2125 ac_configure_args1=
2126 ac_must_keep_next=false
2127 for ac_pass in 1 2
2128 do
2129 for ac_arg
2130 do
2131 case $ac_arg in
2132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134 | -silent | --silent | --silen | --sile | --sil)
2135 continue ;;
2136 *\'*)
2137 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 esac
2139 case $ac_pass in
2140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141 2)
2142 as_fn_append ac_configure_args1 " '$ac_arg'"
2143 if test $ac_must_keep_next = true; then
2144 ac_must_keep_next=false # Got value, back to normal.
2145 else
2146 case $ac_arg in
2147 *=* | --config-cache | -C | -disable-* | --disable-* \
2148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150 | -with-* | --with-* | -without-* | --without-* | --x)
2151 case "$ac_configure_args0 " in
2152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 esac
2154 ;;
2155 -* ) ac_must_keep_next=true ;;
2156 esac
2157 fi
2158 as_fn_append ac_configure_args " '$ac_arg'"
2159 ;;
2160 esac
2161 done
2162 done
2163 { ac_configure_args0=; unset ac_configure_args0;}
2164 { ac_configure_args1=; unset ac_configure_args1;}
2165
2166 # When interrupted or exit'd, cleanup temporary files, and complete
2167 # config.log. We remove comments because anyway the quotes in there
2168 # would cause problems or look ugly.
2169 # WARNING: Use '\'' to represent an apostrophe within the trap.
2170 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171 trap 'exit_status=$?
2172 # Save into config.log some information that might help in debugging.
2173 {
2174 echo
2175
2176 $as_echo "## ---------------- ##
2177 ## Cache variables. ##
2178 ## ---------------- ##"
2179 echo
2180 # The following way of writing the cache mishandles newlines in values,
2181 (
2182 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in #(
2185 *${as_nl}*)
2186 case $ac_var in #(
2187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 esac
2190 case $ac_var in #(
2191 _ | IFS | as_nl) ;; #(
2192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2193 *) { eval $ac_var=; unset $ac_var;} ;;
2194 esac ;;
2195 esac
2196 done
2197 (set) 2>&1 |
2198 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2199 *${as_nl}ac_space=\ *)
2200 sed -n \
2201 "s/'\''/'\''\\\\'\'''\''/g;
2202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 ;; #(
2204 *)
2205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2206 ;;
2207 esac |
2208 sort
2209 )
2210 echo
2211
2212 $as_echo "## ----------------- ##
2213 ## Output variables. ##
2214 ## ----------------- ##"
2215 echo
2216 for ac_var in $ac_subst_vars
2217 do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2225
2226 if test -n "$ac_subst_files"; then
2227 $as_echo "## ------------------- ##
2228 ## File substitutions. ##
2229 ## ------------------- ##"
2230 echo
2231 for ac_var in $ac_subst_files
2232 do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
2238 done | sort
2239 echo
2240 fi
2241
2242 if test -s confdefs.h; then
2243 $as_echo "## ----------- ##
2244 ## confdefs.h. ##
2245 ## ----------- ##"
2246 echo
2247 cat confdefs.h
2248 echo
2249 fi
2250 test "$ac_signal" != 0 &&
2251 $as_echo "$as_me: caught signal $ac_signal"
2252 $as_echo "$as_me: exit $exit_status"
2253 } >&5
2254 rm -f core *.core core.conftest.* &&
2255 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 exit $exit_status
2257 ' 0
2258 for ac_signal in 1 2 13 15; do
2259 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260 done
2261 ac_signal=0
2262
2263 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2264 rm -f -r conftest* confdefs.h
2265
2266 $as_echo "/* confdefs.h */" > confdefs.h
2267
2268 # Predefined preprocessor variables.
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_NAME "$PACKAGE_NAME"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_STRING "$PACKAGE_STRING"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_URL "$PACKAGE_URL"
2292 _ACEOF
2293
2294
2295 # Let the site file select an alternate cache file if it wants to.
2296 # Prefer an explicitly selected file to automatically selected ones.
2297 ac_site_file1=NONE
2298 ac_site_file2=NONE
2299 if test -n "$CONFIG_SITE"; then
2300 # We do not want a PATH search for config.site.
2301 case $CONFIG_SITE in #((
2302 -*) ac_site_file1=./$CONFIG_SITE;;
2303 */*) ac_site_file1=$CONFIG_SITE;;
2304 *) ac_site_file1=./$CONFIG_SITE;;
2305 esac
2306 elif test "x$prefix" != xNONE; then
2307 ac_site_file1=$prefix/share/config.site
2308 ac_site_file2=$prefix/etc/config.site
2309 else
2310 ac_site_file1=$ac_default_prefix/share/config.site
2311 ac_site_file2=$ac_default_prefix/etc/config.site
2312 fi
2313 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314 do
2315 test "x$ac_site_file" = xNONE && continue
2316 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2318 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2319 sed 's/^/| /' "$ac_site_file" >&5
2320 . "$ac_site_file" \
2321 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 as_fn_error $? "failed to load site script $ac_site_file
2324 See \`config.log' for more details" "$LINENO" 5; }
2325 fi
2326 done
2327
2328 if test -r "$cache_file"; then
2329 # Some versions of bash will fail to source /dev/null (special files
2330 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2331 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2333 $as_echo "$as_me: loading cache $cache_file" >&6;}
2334 case $cache_file in
2335 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2336 *) . "./$cache_file";;
2337 esac
2338 fi
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2341 $as_echo "$as_me: creating cache $cache_file" >&6;}
2342 >$cache_file
2343 fi
2344
2345 # Check that the precious variables saved in the cache have kept the same
2346 # value.
2347 ac_cache_corrupted=false
2348 for ac_var in $ac_precious_vars; do
2349 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2350 eval ac_new_set=\$ac_env_${ac_var}_set
2351 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2352 eval ac_new_val=\$ac_env_${ac_var}_value
2353 case $ac_old_set,$ac_new_set in
2354 set,)
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2356 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2357 ac_cache_corrupted=: ;;
2358 ,set)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,);;
2363 *)
2364 if test "x$ac_old_val" != "x$ac_new_val"; then
2365 # differences in whitespace do not lead to failure.
2366 ac_old_val_w=`echo x $ac_old_val`
2367 ac_new_val_w=`echo x $ac_new_val`
2368 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2370 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2371 ac_cache_corrupted=:
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2374 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2375 eval $ac_var=\$ac_old_val
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2378 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2380 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 fi;;
2382 esac
2383 # Pass precious variables to config.status.
2384 if test "$ac_new_set" = set; then
2385 case $ac_new_val in
2386 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2387 *) ac_arg=$ac_var=$ac_new_val ;;
2388 esac
2389 case " $ac_configure_args " in
2390 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2391 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392 esac
2393 fi
2394 done
2395 if $ac_cache_corrupted; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2399 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2400 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2401 fi
2402 ## -------------------- ##
2403 ## Main body of script. ##
2404 ## -------------------- ##
2405
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411
2412
2413
2414 ac_config_headers="$ac_config_headers config.h"
2415
2416
2417
2418
2419 ac_aux_dir=
2420 for ac_dir in build-aux "$srcdir"/build-aux; do
2421 if test -f "$ac_dir/install-sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install-sh -c"
2424 break
2425 elif test -f "$ac_dir/install.sh"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install.sh -c"
2428 break
2429 elif test -f "$ac_dir/shtool"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/shtool install -c"
2432 break
2433 fi
2434 done
2435 if test -z "$ac_aux_dir"; then
2436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2437 fi
2438
2439 # These three variables are undocumented and unsupported,
2440 # and are intended to be withdrawn in a future Autoconf release.
2441 # They can cause serious problems if a builder's source tree is in a directory
2442 # whose full name contains unusual characters.
2443 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2444 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2445 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446
2447
2448
2449
2450
2451 RELEASE_DATE=2024-05-11
2452
2453
2454 # Check whether --enable-legacy_api was given.
2455 if test "${enable_legacy_api+set}" = set; then :
2456 enableval=$enable_legacy_api;
2457 else
2458 enable_legacy_api=yes
2459 fi
2460
2461 if test "x$enable_legacy_api" = "xyes"; then :
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: Enable version 2 legacy API" >&5
2464 $as_echo "$as_me: Enable version 2 legacy API" >&6;}
2465 opt_legacy_api=1
2466
2467
2468 fi
2469 if test "x$enable_legacy_api" != "xyes"; then :
2470
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: Disable version 2 legacy API" >&5
2472 $as_echo "$as_me: Disable version 2 legacy API" >&6;}
2473 opt_legacy_api=0
2474
2475
2476 fi
2477
2478 # Check whether --enable-hp was given.
2479 if test "${enable_hp+set}" = set; then :
2480 enableval=$enable_hp;
2481 else
2482 enable_hp=yes
2483 fi
2484
2485
2486
2487 if test "x$enable_hp" = "xyes"; then :
2488
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: Enable article header parsers" >&5
2490 $as_echo "$as_me: Enable article header parsers" >&6;}
2491 subdirs="$subdirs hp"
2492
2493
2494 fi
2495 if test "x$enable_hp" != "xyes"; then :
2496
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: Disable article header parsers" >&5
2498 $as_echo "$as_me: Disable article header parsers" >&6;}
2499
2500 fi
2501
2502 # Check whether --enable-pc-files was given.
2503 if test "${enable_pc_files+set}" = set; then :
2504 enableval=$enable_pc_files;
2505 else
2506 enable_pc_files=no
2507 fi
2508
2509 if test "x$enable_pc_files" = "xyes"; then :
2510
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: Enable .pc files for pkg-config" >&5
2512 $as_echo "$as_me: Enable .pc files for pkg-config" >&6;}
2513
2514
2515
2516
2517
2518
2519 # Check whether --with-pkgconfigdir was given.
2520 if test "${with_pkgconfigdir+set}" = set; then :
2521 withval=$with_pkgconfigdir;
2522 else
2523 with_pkgconfigdir='${libdir}/pkgconfig'
2524 fi
2525
2526 pkgconfigdir=$with_pkgconfigdir
2527
2528
2529
2530
2531
2532 fi
2533 if test "x$enable_pc_files" != "xyes"; then :
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: Disable .pc files for pkg-config" >&5
2536 $as_echo "$as_me: Disable .pc files for pkg-config" >&6;}
2537
2538 fi
2539
2540
2541
2542 # Find a good install program. We prefer a C program (faster),
2543 # so one script is as good as another. But avoid the broken or
2544 # incompatible versions:
2545 # SysV /etc/install, /usr/sbin/install
2546 # SunOS /usr/etc/install
2547 # IRIX /sbin/install
2548 # AIX /bin/install
2549 # AmigaOS /C/install, which installs bootblocks on floppy discs
2550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553 # OS/2's system install, which has a completely different semantic
2554 # ./install, which can be erroneously created by make from ./install.sh.
2555 # Reject install programs that cannot install multiple files.
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2557 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2558 if test -z "$INSTALL"; then
2559 if ${ac_cv_path_install+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 # Account for people who put trailing slashes in PATH elements.
2568 case $as_dir/ in #((
2569 ./ | .// | /[cC]/* | \
2570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2571 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2572 /usr/ucb/* ) ;;
2573 *)
2574 # OSF1 and SCO ODT 3.0 have their own names for install.
2575 # Don't use installbsd from OSF since it installs stuff as root
2576 # by default.
2577 for ac_prog in ginstall scoinst install; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2580 if test $ac_prog = install &&
2581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # AIX install. It has an incompatible calling convention.
2583 :
2584 elif test $ac_prog = install &&
2585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # program-specific install script used by HP pwplus--don't use.
2587 :
2588 else
2589 rm -rf conftest.one conftest.two conftest.dir
2590 echo one > conftest.one
2591 echo two > conftest.two
2592 mkdir conftest.dir
2593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2594 test -s conftest.one && test -s conftest.two &&
2595 test -s conftest.dir/conftest.one &&
2596 test -s conftest.dir/conftest.two
2597 then
2598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2599 break 3
2600 fi
2601 fi
2602 fi
2603 done
2604 done
2605 ;;
2606 esac
2607
2608 done
2609 IFS=$as_save_IFS
2610
2611 rm -rf conftest.one conftest.two conftest.dir
2612
2613 fi
2614 if test "${ac_cv_path_install+set}" = set; then
2615 INSTALL=$ac_cv_path_install
2616 else
2617 # As a last resort, use the slow shell script. Don't cache a
2618 # value for INSTALL within a source directory, because that will
2619 # break other packages using the cache if that directory is
2620 # removed, or if the value is a relative name.
2621 INSTALL=$ac_install_sh
2622 fi
2623 fi
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2625 $as_echo "$INSTALL" >&6; }
2626
2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628 # It thinks the first close brace ends the variable substitution.
2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2630
2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2632
2633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2634
2635
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_CC+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 fi
2683 if test -z "$ac_cv_prog_CC"; then
2684 ac_ct_CC=$CC
2685 # Extract the first word of "gcc", so it can be a program name with args.
2686 set dummy gcc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_ac_ct_CC="gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2713 if test -n "$ac_ct_CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2715 $as_echo "$ac_ct_CC" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725 yes:)
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned=yes ;;
2729 esac
2730 CC=$ac_ct_CC
2731 fi
2732 else
2733 CC="$ac_cv_prog_CC"
2734 fi
2735
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}cc; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_CC+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC="${ac_tool_prefix}cc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 fi
2776 fi
2777 if test -z "$CC"; then
2778 # Extract the first word of "cc", so it can be a program name with args.
2779 set dummy cc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 ac_prog_rejected=no
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2797 ac_prog_rejected=yes
2798 continue
2799 fi
2800 ac_cv_prog_CC="cc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2811 shift
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2816 shift
2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2818 fi
2819 fi
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog in cl.exe
2836 do
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 test -n "$CC" && break
2875 done
2876 fi
2877 if test -z "$CC"; then
2878 ac_ct_CC=$CC
2879 for ac_prog in cl.exe
2880 do
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_CC="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 test -n "$ac_ct_CC" && break
2919 done
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930 CC=$ac_ct_CC
2931 fi
2932 fi
2933
2934 fi
2935
2936
2937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $? "no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details" "$LINENO" 5; }
2941
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2944 set X $ac_compile
2945 ac_compiler=$2
2946 for ac_option in --version -v -V -qversion; do
2947 { { ac_try="$ac_compiler $ac_option >&5"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 ac_status=$?
2956 if test -s conftest.err; then
2957 sed '10a\
2958 ... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
2961 fi
2962 rm -f conftest.er1 conftest.err
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2965 done
2966
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2969
2970 int
2971 main ()
2972 {
2973
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 ac_clean_files_save=$ac_clean_files
2979 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2982 # of exeext.
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2984 $as_echo_n "checking whether the C compiler works... " >&6; }
2985 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986
2987 # The possible output files:
2988 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989
2990 ac_rmfiles=
2991 for ac_file in $ac_files
2992 do
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 esac
2997 done
2998 rm -f $ac_rmfiles
2999
3000 if { { ac_try="$ac_link_default"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3015 # Autoconf.
3016 for ac_file in $ac_files ''
3017 do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 ;;
3022 [ab].out )
3023 # We found the default executable, but exeext='' is most
3024 # certainly right.
3025 break;;
3026 *.* )
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 then :; else
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 fi
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3035 # actually working.
3036 break;;
3037 * )
3038 break;;
3039 esac
3040 done
3041 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042
3043 else
3044 ac_file=''
3045 fi
3046 if test -z "$ac_file"; then :
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error 77 "C compiler cannot create executables
3055 See \`config.log' for more details" "$LINENO" 5; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061 $as_echo_n "checking for C compiler default output file name... " >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 ac_exeext=$ac_cv_exeext
3065
3066 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3067 ac_clean_files=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try="$ac_link"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3084 # `rm'.
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 break;;
3091 * ) break;;
3092 esac
3093 done
3094 else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details" "$LINENO" 5; }
3099 fi
3100 rm -f conftest conftest$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3103
3104 rm -f conftest.$ac_ext
3105 EXEEXT=$ac_cv_exeext
3106 ac_exeext=$EXEEXT
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109 #include <stdio.h>
3110 int
3111 main ()
3112 {
3113 FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files="$ac_clean_files conftest.out"
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 if test "$cross_compiling" != yes; then
3126 { { ac_try="$ac_link"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3148 cross_compiling=no
3149 else
3150 if test "$cross_compiling" = maybe; then
3151 cross_compiling=yes
3152 else
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details" "$LINENO" 5; }
3158 fi
3159 fi
3160 fi
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3163
3164 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165 ac_clean_files=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167 $as_echo_n "checking for suffix of object files... " >&6; }
3168 if ${ac_cv_objext+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.o conftest.obj
3183 if { { ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3199 break;;
3200 esac
3201 done
3202 else
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 fi
3211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214 $as_echo "$ac_cv_objext" >&6; }
3215 OBJEXT=$ac_cv_objext
3216 ac_objext=$OBJEXT
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3219 if ${ac_cv_c_compiler_gnu+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228 #ifndef __GNUC__
3229 choke me
3230 #endif
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_compiler_gnu=yes
3238 else
3239 ac_compiler_gnu=no
3240 fi
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3243
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3248 GCC=yes
3249 else
3250 GCC=
3251 fi
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3256 if ${ac_cv_prog_cc_g+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3261 ac_cv_prog_cc_g=no
3262 CFLAGS="-g"
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_cv_prog_cc_g=yes
3276 else
3277 CFLAGS=""
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290
3291 else
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 CFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3296
3297 int
3298 main ()
3299 {
3300
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_cv_prog_cc_g=yes
3307 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 fi
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316 $as_echo "$ac_cv_prog_cc_g" >&6; }
3317 if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319 elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3321 CFLAGS="-g -O2"
3322 else
3323 CFLAGS="-g"
3324 fi
3325 else
3326 if test "$GCC" = yes; then
3327 CFLAGS="-O2"
3328 else
3329 CFLAGS=
3330 fi
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3334 if ${ac_cv_prog_cc_c89+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 ac_cv_prog_cc_c89=no
3338 ac_save_CC=$CC
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341 #include <stdarg.h>
3342 #include <stdio.h>
3343 struct stat;
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348 char **p;
3349 int i;
3350 {
3351 return p[i];
3352 }
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3354 {
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361 }
3362
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374 #define FOO(x) 'x'
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 int argc;
3382 char **argv;
3383 int
3384 main ()
3385 {
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 do
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 done
3401 rm -f conftest.$ac_ext
3402 CC=$ac_save_CC
3403
3404 fi
3405 # AC_CACHE_VAL
3406 case "x$ac_cv_prog_cc_c89" in
3407 x)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3410 xno)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3413 *)
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417 esac
3418 if test "x$ac_cv_prog_cc_c89" != xno; then :
3419
3420 fi
3421
3422 ac_ext=c
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3434 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3435 if ${am_cv_prog_cc_c_o+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 # Make sure it works both with $CC and with simple cc.
3450 # Following AC_PROG_CC_C_O, we do the test twice because some
3451 # compilers refuse to overwrite an existing .o file with -o,
3452 # though they will create one.
3453 am_cv_prog_cc_c_o=yes
3454 for am_i in 1 2; do
3455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } \
3460 && test -f conftest2.$ac_objext; then
3461 : OK
3462 else
3463 am_cv_prog_cc_c_o=no
3464 break
3465 fi
3466 done
3467 rm -f core conftest*
3468 unset am_i
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3471 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3472 if test "$am_cv_prog_cc_c_o" != yes; then
3473 # Losing compiler, so override with the script.
3474 # FIXME: It is wrong to rewrite CC.
3475 # But if we don't then we get into trouble of one sort or another.
3476 # A longer-term fix would be to have automake use am__CC in this case,
3477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3478 CC="$am_aux_dir/compile $CC"
3479 fi
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486
3487
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in ar lib "link -lib"
3490 do
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_AR+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$AR"; then
3499 ac_cv_prog_AR="$AR" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 AR=$ac_cv_prog_AR
3519 if test -n "$AR"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3521 $as_echo "$AR" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 test -n "$AR" && break
3529 done
3530 fi
3531 if test -z "$AR"; then
3532 ac_ct_AR=$AR
3533 for ac_prog in ar lib "link -lib"
3534 do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_AR"; then
3543 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_AR="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3563 if test -n "$ac_ct_AR"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3565 $as_echo "$ac_ct_AR" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572 test -n "$ac_ct_AR" && break
3573 done
3574
3575 if test "x$ac_ct_AR" = x; then
3576 AR="false"
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 AR=$ac_ct_AR
3585 fi
3586 fi
3587
3588 : ${AR=ar}
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3591 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3592 if ${am_cv_ar_interface+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600
3601 am_cv_ar_interface=ar
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 int some_variable = 0;
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3609 (eval $am_ar_try) 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }
3613 if test "$ac_status" -eq 0; then
3614 am_cv_ar_interface=ar
3615 else
3616 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3618 (eval $am_ar_try) 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }
3622 if test "$ac_status" -eq 0; then
3623 am_cv_ar_interface=lib
3624 else
3625 am_cv_ar_interface=unknown
3626 fi
3627 fi
3628 rm -f conftest.lib libconftest.a
3629
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3640 $as_echo "$am_cv_ar_interface" >&6; }
3641
3642 case $am_cv_ar_interface in
3643 ar)
3644 ;;
3645 lib)
3646 # Microsoft lib, so override with the ar-lib wrapper script.
3647 # FIXME: It is wrong to rewrite AR.
3648 # But if we don't then we get into trouble of one sort or another.
3649 # A longer-term fix would be to have automake use am__AR in this case,
3650 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3651 # similar.
3652 AR="$am_aux_dir/ar-lib $AR"
3653 ;;
3654 unknown)
3655 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3656 ;;
3657 esac
3658
3659
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3661 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3662 if ${ac_cv_path_GREP+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -z "$GREP"; then
3666 ac_path_GREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670 do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in grep ggrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3676 as_fn_executable_p "$ac_path_GREP" || continue
3677 # Check for GNU ac_path_GREP and select it if it is found.
3678 # Check for GNU $ac_path_GREP
3679 case `"$ac_path_GREP" --version 2>&1` in
3680 *GNU*)
3681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3682 *)
3683 ac_count=0
3684 $as_echo_n 0123456789 >"conftest.in"
3685 while :
3686 do
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 $as_echo 'GREP' >> "conftest.nl"
3691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 as_fn_arith $ac_count + 1 && ac_count=$as_val
3694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_GREP="$ac_path_GREP"
3697 ac_path_GREP_max=$ac_count
3698 fi
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3701 done
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 esac
3704
3705 $ac_path_GREP_found && break 3
3706 done
3707 done
3708 done
3709 IFS=$as_save_IFS
3710 if test -z "$ac_cv_path_GREP"; then
3711 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3712 fi
3713 else
3714 ac_cv_path_GREP=$GREP
3715 fi
3716
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3719 $as_echo "$ac_cv_path_GREP" >&6; }
3720 GREP="$ac_cv_path_GREP"
3721
3722
3723
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3725 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3726 if ${ac_cv_path_SED+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3730 for ac_i in 1 2 3 4 5 6 7; do
3731 ac_script="$ac_script$as_nl$ac_script"
3732 done
3733 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3734 { ac_script=; unset ac_script;}
3735 if test -z "$SED"; then
3736 ac_path_SED_found=false
3737 # Loop through the user's path and test for each of PROGNAME-LIST
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in sed gsed; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3746 as_fn_executable_p "$ac_path_SED" || continue
3747 # Check for GNU ac_path_SED and select it if it is found.
3748 # Check for GNU $ac_path_SED
3749 case `"$ac_path_SED" --version 2>&1` in
3750 *GNU*)
3751 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3752 *)
3753 ac_count=0
3754 $as_echo_n 0123456789 >"conftest.in"
3755 while :
3756 do
3757 cat "conftest.in" "conftest.in" >"conftest.tmp"
3758 mv "conftest.tmp" "conftest.in"
3759 cp "conftest.in" "conftest.nl"
3760 $as_echo '' >> "conftest.nl"
3761 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3763 as_fn_arith $ac_count + 1 && ac_count=$as_val
3764 if test $ac_count -gt ${ac_path_SED_max-0}; then
3765 # Best one so far, save it but keep looking for a better one
3766 ac_cv_path_SED="$ac_path_SED"
3767 ac_path_SED_max=$ac_count
3768 fi
3769 # 10*(2^10) chars as input seems more than enough
3770 test $ac_count -gt 10 && break
3771 done
3772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3773 esac
3774
3775 $ac_path_SED_found && break 3
3776 done
3777 done
3778 done
3779 IFS=$as_save_IFS
3780 if test -z "$ac_cv_path_SED"; then
3781 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3782 fi
3783 else
3784 ac_cv_path_SED=$SED
3785 fi
3786
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3789 $as_echo "$ac_cv_path_SED" >&6; }
3790 SED="$ac_cv_path_SED"
3791 rm -f conftest.sed
3792
3793
3794
3795
3796 ac_ext=c
3797 ac_cpp='$CPP $CPPFLAGS'
3798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3802 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3803 # On Suns, sometimes $CPP names a directory.
3804 if test -n "$CPP" && test -d "$CPP"; then
3805 CPP=
3806 fi
3807 if test -z "$CPP"; then
3808 if ${ac_cv_prog_CPP+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 # Double quotes because CPP needs to be expanded
3812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3813 do
3814 ac_preproc_ok=false
3815 for ac_c_preproc_warn_flag in '' yes
3816 do
3817 # Use a header file that comes with gcc, so configuring glibc
3818 # with a fresh cross-compiler works.
3819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3820 # <limits.h> exists even on freestanding compilers.
3821 # On the NeXT, cc -E runs the code through the compiler's parser,
3822 # not just through cpp. "Syntax error" is here to catch this case.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #ifdef __STDC__
3826 # include <limits.h>
3827 #else
3828 # include <assert.h>
3829 #endif
3830 Syntax error
3831 _ACEOF
3832 if ac_fn_c_try_cpp "$LINENO"; then :
3833
3834 else
3835 # Broken: fails on valid input.
3836 continue
3837 fi
3838 rm -f conftest.err conftest.i conftest.$ac_ext
3839
3840 # OK, works on sane cases. Now check whether nonexistent headers
3841 # can be detected and how.
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if ac_fn_c_try_cpp "$LINENO"; then :
3847 # Broken: success on invalid input.
3848 continue
3849 else
3850 # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3853 fi
3854 rm -f conftest.err conftest.i conftest.$ac_ext
3855
3856 done
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.i conftest.err conftest.$ac_ext
3859 if $ac_preproc_ok; then :
3860 break
3861 fi
3862
3863 done
3864 ac_cv_prog_CPP=$CPP
3865
3866 fi
3867 CPP=$ac_cv_prog_CPP
3868 else
3869 ac_cv_prog_CPP=$CPP
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3872 $as_echo "$CPP" >&6; }
3873 ac_preproc_ok=false
3874 for ac_c_preproc_warn_flag in '' yes
3875 do
3876 # Use a header file that comes with gcc, so configuring glibc
3877 # with a fresh cross-compiler works.
3878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879 # <limits.h> exists even on freestanding compilers.
3880 # On the NeXT, cc -E runs the code through the compiler's parser,
3881 # not just through cpp. "Syntax error" is here to catch this case.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889 Syntax error
3890 _ACEOF
3891 if ac_fn_c_try_cpp "$LINENO"; then :
3892
3893 else
3894 # Broken: fails on valid input.
3895 continue
3896 fi
3897 rm -f conftest.err conftest.i conftest.$ac_ext
3898
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if ac_fn_c_try_cpp "$LINENO"; then :
3906 # Broken: success on invalid input.
3907 continue
3908 else
3909 # Passes both tests.
3910 ac_preproc_ok=:
3911 break
3912 fi
3913 rm -f conftest.err conftest.i conftest.$ac_ext
3914
3915 done
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.i conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then :
3919
3920 else
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3924 See \`config.log' for more details" "$LINENO" 5; }
3925 fi
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3935 $as_echo_n "checking for egrep... " >&6; }
3936 if ${ac_cv_path_EGREP+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3940 then ac_cv_path_EGREP="$GREP -E"
3941 else
3942 if test -z "$EGREP"; then
3943 ac_path_EGREP_found=false
3944 # Loop through the user's path and test for each of PROGNAME-LIST
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_prog in egrep; do
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3953 as_fn_executable_p "$ac_path_EGREP" || continue
3954 # Check for GNU ac_path_EGREP and select it if it is found.
3955 # Check for GNU $ac_path_EGREP
3956 case `"$ac_path_EGREP" --version 2>&1` in
3957 *GNU*)
3958 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3959 *)
3960 ac_count=0
3961 $as_echo_n 0123456789 >"conftest.in"
3962 while :
3963 do
3964 cat "conftest.in" "conftest.in" >"conftest.tmp"
3965 mv "conftest.tmp" "conftest.in"
3966 cp "conftest.in" "conftest.nl"
3967 $as_echo 'EGREP' >> "conftest.nl"
3968 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970 as_fn_arith $ac_count + 1 && ac_count=$as_val
3971 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3972 # Best one so far, save it but keep looking for a better one
3973 ac_cv_path_EGREP="$ac_path_EGREP"
3974 ac_path_EGREP_max=$ac_count
3975 fi
3976 # 10*(2^10) chars as input seems more than enough
3977 test $ac_count -gt 10 && break
3978 done
3979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980 esac
3981
3982 $ac_path_EGREP_found && break 3
3983 done
3984 done
3985 done
3986 IFS=$as_save_IFS
3987 if test -z "$ac_cv_path_EGREP"; then
3988 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3989 fi
3990 else
3991 ac_cv_path_EGREP=$EGREP
3992 fi
3993
3994 fi
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3997 $as_echo "$ac_cv_path_EGREP" >&6; }
3998 EGREP="$ac_cv_path_EGREP"
3999
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4002 $as_echo_n "checking for ANSI C header files... " >&6; }
4003 if ${ac_cv_header_stdc+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 #include <stdlib.h>
4009 #include <stdarg.h>
4010 #include <string.h>
4011 #include <float.h>
4012
4013 int
4014 main ()
4015 {
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022 ac_cv_header_stdc=yes
4023 else
4024 ac_cv_header_stdc=no
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027
4028 if test $ac_cv_header_stdc = yes; then
4029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032 #include <string.h>
4033
4034 _ACEOF
4035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4036 $EGREP "memchr" >/dev/null 2>&1; then :
4037
4038 else
4039 ac_cv_header_stdc=no
4040 fi
4041 rm -f conftest*
4042
4043 fi
4044
4045 if test $ac_cv_header_stdc = yes; then
4046 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <stdlib.h>
4050
4051 _ACEOF
4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 $EGREP "free" >/dev/null 2>&1; then :
4054
4055 else
4056 ac_cv_header_stdc=no
4057 fi
4058 rm -f conftest*
4059
4060 fi
4061
4062 if test $ac_cv_header_stdc = yes; then
4063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4064 if test "$cross_compiling" = yes; then :
4065 :
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069 #include <ctype.h>
4070 #include <stdlib.h>
4071 #if ((' ' & 0x0FF) == 0x020)
4072 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4073 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4074 #else
4075 # define ISLOWER(c) \
4076 (('a' <= (c) && (c) <= 'i') \
4077 || ('j' <= (c) && (c) <= 'r') \
4078 || ('s' <= (c) && (c) <= 'z'))
4079 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4080 #endif
4081
4082 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4083 int
4084 main ()
4085 {
4086 int i;
4087 for (i = 0; i < 256; i++)
4088 if (XOR (islower (i), ISLOWER (i))
4089 || toupper (i) != TOUPPER (i))
4090 return 2;
4091 return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_run "$LINENO"; then :
4095
4096 else
4097 ac_cv_header_stdc=no
4098 fi
4099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4100 conftest.$ac_objext conftest.beam conftest.$ac_ext
4101 fi
4102
4103 fi
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4106 $as_echo "$ac_cv_header_stdc" >&6; }
4107 if test $ac_cv_header_stdc = yes; then
4108
4109 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4110
4111 fi
4112
4113
4114 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4116 inttypes.h stdint.h unistd.h
4117 do :
4118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4120 "
4121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4122 cat >>confdefs.h <<_ACEOF
4123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4124 _ACEOF
4125
4126 fi
4127
4128 done
4129
4130
4131 for ac_header in ctype.h limits.h stdint.h stdio.h stdlib.h string.h
4132 do :
4133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4136 cat >>confdefs.h <<_ACEOF
4137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4138 _ACEOF
4139
4140 else
4141 as_fn_error $? "Required header file not found." "$LINENO" 5
4142 fi
4143
4144 done
4145
4146
4147
4148
4149 # The cast to long int works around a bug in the HP C Compiler
4150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4152 # This bug is HP SR number 8606223364.
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4154 $as_echo_n "checking size of int... " >&6; }
4155 if ${ac_cv_sizeof_int+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4159
4160 else
4161 if test "$ac_cv_type_int" = yes; then
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error 77 "cannot compute sizeof (int)
4165 See \`config.log' for more details" "$LINENO" 5; }
4166 else
4167 ac_cv_sizeof_int=0
4168 fi
4169 fi
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4173 $as_echo "$ac_cv_sizeof_int" >&6; }
4174
4175
4176
4177 cat >>confdefs.h <<_ACEOF
4178 #define SIZEOF_INT $ac_cv_sizeof_int
4179 _ACEOF
4180
4181
4182 if test $ac_cv_sizeof_int -lt 4; then :
4183
4184 as_fn_error $? "Type int must be at least 32 bits wide!" "$LINENO" 5
4185
4186 fi
4187
4188
4189
4190 case `pwd` in
4191 *\ * | *\ *)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4193 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4194 esac
4195
4196
4197
4198 macro_version='2.4.6'
4199 macro_revision='2.4.6'
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213 ltmain=$ac_aux_dir/ltmain.sh
4214
4215 # Make sure we can run config.sub.
4216 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4217 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4220 $as_echo_n "checking build system type... " >&6; }
4221 if ${ac_cv_build+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 ac_build_alias=$build_alias
4225 test "x$ac_build_alias" = x &&
4226 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4227 test "x$ac_build_alias" = x &&
4228 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4229 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4230 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4234 $as_echo "$ac_cv_build" >&6; }
4235 case $ac_cv_build in
4236 *-*-*) ;;
4237 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4238 esac
4239 build=$ac_cv_build
4240 ac_save_IFS=$IFS; IFS='-'
4241 set x $ac_cv_build
4242 shift
4243 build_cpu=$1
4244 build_vendor=$2
4245 shift; shift
4246 # Remember, the first character of IFS is used to create $*,
4247 # except with old shells:
4248 build_os=$*
4249 IFS=$ac_save_IFS
4250 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4251
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4254 $as_echo_n "checking host system type... " >&6; }
4255 if ${ac_cv_host+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test "x$host_alias" = x; then
4259 ac_cv_host=$ac_cv_build
4260 else
4261 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4262 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4263 fi
4264
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4267 $as_echo "$ac_cv_host" >&6; }
4268 case $ac_cv_host in
4269 *-*-*) ;;
4270 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4271 esac
4272 host=$ac_cv_host
4273 ac_save_IFS=$IFS; IFS='-'
4274 set x $ac_cv_host
4275 shift
4276 host_cpu=$1
4277 host_vendor=$2
4278 shift; shift
4279 # Remember, the first character of IFS is used to create $*,
4280 # except with old shells:
4281 host_os=$*
4282 IFS=$ac_save_IFS
4283 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4284
4285
4286 # Backslashify metacharacters that are still active within
4287 # double-quoted strings.
4288 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4289
4290 # Same as above, but do not quote variable references.
4291 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4292
4293 # Sed substitution to delay expansion of an escaped shell variable in a
4294 # double_quote_subst'ed string.
4295 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4296
4297 # Sed substitution to delay expansion of an escaped single quote.
4298 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4299
4300 # Sed substitution to avoid accidental globbing in evaled expressions
4301 no_glob_subst='s/\*/\\\*/g'
4302
4303 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4304 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4305 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4308 $as_echo_n "checking how to print strings... " >&6; }
4309 # Test print first, because it will be a builtin if present.
4310 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4311 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4312 ECHO='print -r --'
4313 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4314 ECHO='printf %s\n'
4315 else
4316 # Use this function as a fallback that always works.
4317 func_fallback_echo ()
4318 {
4319 eval 'cat <<_LTECHO_EOF
4320 $1
4321 _LTECHO_EOF'
4322 }
4323 ECHO='func_fallback_echo'
4324 fi
4325
4326 # func_echo_all arg...
4327 # Invoke $ECHO with all args, space-separated.
4328 func_echo_all ()
4329 {
4330 $ECHO ""
4331 }
4332
4333 case $ECHO in
4334 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4335 $as_echo "printf" >&6; } ;;
4336 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4337 $as_echo "print -r" >&6; } ;;
4338 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4339 $as_echo "cat" >&6; } ;;
4340 esac
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4356 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4357 if ${ac_cv_path_SED+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4361 for ac_i in 1 2 3 4 5 6 7; do
4362 ac_script="$ac_script$as_nl$ac_script"
4363 done
4364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4365 { ac_script=; unset ac_script;}
4366 if test -z "$SED"; then
4367 ac_path_SED_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in sed gsed; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4377 as_fn_executable_p "$ac_path_SED" || continue
4378 # Check for GNU ac_path_SED and select it if it is found.
4379 # Check for GNU $ac_path_SED
4380 case `"$ac_path_SED" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4383 *)
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4387 do
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo '' >> "conftest.nl"
4392 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 as_fn_arith $ac_count + 1 && ac_count=$as_val
4395 if test $ac_count -gt ${ac_path_SED_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_SED="$ac_path_SED"
4398 ac_path_SED_max=$ac_count
4399 fi
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406 $ac_path_SED_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_SED"; then
4412 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4413 fi
4414 else
4415 ac_cv_path_SED=$SED
4416 fi
4417
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4420 $as_echo "$ac_cv_path_SED" >&6; }
4421 SED="$ac_cv_path_SED"
4422 rm -f conftest.sed
4423
4424 test -z "$SED" && SED=sed
4425 Xsed="$SED -e 1s/^X//"
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4438 $as_echo_n "checking for fgrep... " >&6; }
4439 if ${ac_cv_path_FGREP+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4443 then ac_cv_path_FGREP="$GREP -F"
4444 else
4445 if test -z "$FGREP"; then
4446 ac_path_FGREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_prog in fgrep; do
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4456 as_fn_executable_p "$ac_path_FGREP" || continue
4457 # Check for GNU ac_path_FGREP and select it if it is found.
4458 # Check for GNU $ac_path_FGREP
4459 case `"$ac_path_FGREP" --version 2>&1` in
4460 *GNU*)
4461 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4462 *)
4463 ac_count=0
4464 $as_echo_n 0123456789 >"conftest.in"
4465 while :
4466 do
4467 cat "conftest.in" "conftest.in" >"conftest.tmp"
4468 mv "conftest.tmp" "conftest.in"
4469 cp "conftest.in" "conftest.nl"
4470 $as_echo 'FGREP' >> "conftest.nl"
4471 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473 as_fn_arith $ac_count + 1 && ac_count=$as_val
4474 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4475 # Best one so far, save it but keep looking for a better one
4476 ac_cv_path_FGREP="$ac_path_FGREP"
4477 ac_path_FGREP_max=$ac_count
4478 fi
4479 # 10*(2^10) chars as input seems more than enough
4480 test $ac_count -gt 10 && break
4481 done
4482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 esac
4484
4485 $ac_path_FGREP_found && break 3
4486 done
4487 done
4488 done
4489 IFS=$as_save_IFS
4490 if test -z "$ac_cv_path_FGREP"; then
4491 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 fi
4493 else
4494 ac_cv_path_FGREP=$FGREP
4495 fi
4496
4497 fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4500 $as_echo "$ac_cv_path_FGREP" >&6; }
4501 FGREP="$ac_cv_path_FGREP"
4502
4503
4504 test -z "$GREP" && GREP=grep
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524 # Check whether --with-gnu-ld was given.
4525 if test "${with_gnu_ld+set}" = set; then :
4526 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4527 else
4528 with_gnu_ld=no
4529 fi
4530
4531 ac_prog=ld
4532 if test yes = "$GCC"; then
4533 # Check if gcc -print-prog-name=ld gives a path.
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4535 $as_echo_n "checking for ld used by $CC... " >&6; }
4536 case $host in
4537 *-*-mingw*)
4538 # gcc leaves a trailing carriage return, which upsets mingw
4539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4540 *)
4541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4542 esac
4543 case $ac_prog in
4544 # Accept absolute paths.
4545 [\\/]* | ?:[\\/]*)
4546 re_direlt='/[^/][^/]*/\.\./'
4547 # Canonicalize the pathname of ld
4548 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4549 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4550 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4551 done
4552 test -z "$LD" && LD=$ac_prog
4553 ;;
4554 "")
4555 # If it fails, then pretend we aren't using GCC.
4556 ac_prog=ld
4557 ;;
4558 *)
4559 # If it is relative, then search for the first ld in PATH.
4560 with_gnu_ld=unknown
4561 ;;
4562 esac
4563 elif test yes = "$with_gnu_ld"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4565 $as_echo_n "checking for GNU ld... " >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4568 $as_echo_n "checking for non-GNU ld... " >&6; }
4569 fi
4570 if ${lt_cv_path_LD+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -z "$LD"; then
4574 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4575 for ac_dir in $PATH; do
4576 IFS=$lt_save_ifs
4577 test -z "$ac_dir" && ac_dir=.
4578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4579 lt_cv_path_LD=$ac_dir/$ac_prog
4580 # Check to see if the program is GNU ld. I'd rather use --version,
4581 # but apparently some variants of GNU ld only accept -v.
4582 # Break only if it was the GNU/non-GNU ld that we prefer.
4583 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4584 *GNU* | *'with BFD'*)
4585 test no != "$with_gnu_ld" && break
4586 ;;
4587 *)
4588 test yes != "$with_gnu_ld" && break
4589 ;;
4590 esac
4591 fi
4592 done
4593 IFS=$lt_save_ifs
4594 else
4595 lt_cv_path_LD=$LD # Let the user override the test with a path.
4596 fi
4597 fi
4598
4599 LD=$lt_cv_path_LD
4600 if test -n "$LD"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4602 $as_echo "$LD" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 fi
4607 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4609 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4610 if ${lt_cv_prog_gnu_ld+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4614 case `$LD -v 2>&1 </dev/null` in
4615 *GNU* | *'with BFD'*)
4616 lt_cv_prog_gnu_ld=yes
4617 ;;
4618 *)
4619 lt_cv_prog_gnu_ld=no
4620 ;;
4621 esac
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4624 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4625 with_gnu_ld=$lt_cv_prog_gnu_ld
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4636 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4637 if ${lt_cv_path_NM+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$NM"; then
4641 # Let the user override the test.
4642 lt_cv_path_NM=$NM
4643 else
4644 lt_nm_to_check=${ac_tool_prefix}nm
4645 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4646 lt_nm_to_check="$lt_nm_to_check nm"
4647 fi
4648 for lt_tmp_nm in $lt_nm_to_check; do
4649 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4650 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4651 IFS=$lt_save_ifs
4652 test -z "$ac_dir" && ac_dir=.
4653 tmp_nm=$ac_dir/$lt_tmp_nm
4654 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4655 # Check to see if the nm accepts a BSD-compat flag.
4656 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4657 # nm: unknown option "B" ignored
4658 # Tru64's nm complains that /dev/null is an invalid object file
4659 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4660 case $build_os in
4661 mingw*) lt_bad_file=conftest.nm/nofile ;;
4662 *) lt_bad_file=/dev/null ;;
4663 esac
4664 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4665 *$lt_bad_file* | *'Invalid file or object type'*)
4666 lt_cv_path_NM="$tmp_nm -B"
4667 break 2
4668 ;;
4669 *)
4670 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4671 */dev/null*)
4672 lt_cv_path_NM="$tmp_nm -p"
4673 break 2
4674 ;;
4675 *)
4676 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4677 continue # so that we can try to find one that supports BSD flags
4678 ;;
4679 esac
4680 ;;
4681 esac
4682 fi
4683 done
4684 IFS=$lt_save_ifs
4685 done
4686 : ${lt_cv_path_NM=no}
4687 fi
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4690 $as_echo "$lt_cv_path_NM" >&6; }
4691 if test no != "$lt_cv_path_NM"; then
4692 NM=$lt_cv_path_NM
4693 else
4694 # Didn't find any BSD compatible name lister, look for dumpbin.
4695 if test -n "$DUMPBIN"; then :
4696 # Let the user override the test.
4697 else
4698 if test -n "$ac_tool_prefix"; then
4699 for ac_prog in dumpbin "link -dump"
4700 do
4701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_prog_DUMPBIN+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -n "$DUMPBIN"; then
4709 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 DUMPBIN=$ac_cv_prog_DUMPBIN
4729 if test -n "$DUMPBIN"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4731 $as_echo "$DUMPBIN" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737
4738 test -n "$DUMPBIN" && break
4739 done
4740 fi
4741 if test -z "$DUMPBIN"; then
4742 ac_ct_DUMPBIN=$DUMPBIN
4743 for ac_prog in dumpbin "link -dump"
4744 do
4745 # Extract the first word of "$ac_prog", so it can be a program name with args.
4746 set dummy $ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$ac_ct_DUMPBIN"; then
4753 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769
4770 fi
4771 fi
4772 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4773 if test -n "$ac_ct_DUMPBIN"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4775 $as_echo "$ac_ct_DUMPBIN" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4781
4782 test -n "$ac_ct_DUMPBIN" && break
4783 done
4784
4785 if test "x$ac_ct_DUMPBIN" = x; then
4786 DUMPBIN=":"
4787 else
4788 case $cross_compiling:$ac_tool_warned in
4789 yes:)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792 ac_tool_warned=yes ;;
4793 esac
4794 DUMPBIN=$ac_ct_DUMPBIN
4795 fi
4796 fi
4797
4798 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4799 *COFF*)
4800 DUMPBIN="$DUMPBIN -symbols -headers"
4801 ;;
4802 *)
4803 DUMPBIN=:
4804 ;;
4805 esac
4806 fi
4807
4808 if test : != "$DUMPBIN"; then
4809 NM=$DUMPBIN
4810 fi
4811 fi
4812 test -z "$NM" && NM=nm
4813
4814
4815
4816
4817
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4820 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4821 if ${lt_cv_nm_interface+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 lt_cv_nm_interface="BSD nm"
4825 echo "int some_variable = 0;" > conftest.$ac_ext
4826 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4827 (eval "$ac_compile" 2>conftest.err)
4828 cat conftest.err >&5
4829 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4830 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4831 cat conftest.err >&5
4832 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4833 cat conftest.out >&5
4834 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4835 lt_cv_nm_interface="MS dumpbin"
4836 fi
4837 rm -f conftest*
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4840 $as_echo "$lt_cv_nm_interface" >&6; }
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4843 $as_echo_n "checking whether ln -s works... " >&6; }
4844 LN_S=$as_ln_s
4845 if test "$LN_S" = "ln -s"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4847 $as_echo "yes" >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4850 $as_echo "no, using $LN_S" >&6; }
4851 fi
4852
4853 # find the maximum length of command line arguments
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4855 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4856 if ${lt_cv_sys_max_cmd_len+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 i=0
4860 teststring=ABCD
4861
4862 case $build_os in
4863 msdosdjgpp*)
4864 # On DJGPP, this test can blow up pretty badly due to problems in libc
4865 # (any single argument exceeding 2000 bytes causes a buffer overrun
4866 # during glob expansion). Even if it were fixed, the result of this
4867 # check would be larger than it should be.
4868 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4869 ;;
4870
4871 gnu*)
4872 # Under GNU Hurd, this test is not required because there is
4873 # no limit to the length of command line arguments.
4874 # Libtool will interpret -1 as no limit whatsoever
4875 lt_cv_sys_max_cmd_len=-1;
4876 ;;
4877
4878 cygwin* | mingw* | cegcc*)
4879 # On Win9x/ME, this test blows up -- it succeeds, but takes
4880 # about 5 minutes as the teststring grows exponentially.
4881 # Worse, since 9x/ME are not pre-emptively multitasking,
4882 # you end up with a "frozen" computer, even though with patience
4883 # the test eventually succeeds (with a max line length of 256k).
4884 # Instead, let's just punt: use the minimum linelength reported by
4885 # all of the supported platforms: 8192 (on NT/2K/XP).
4886 lt_cv_sys_max_cmd_len=8192;
4887 ;;
4888
4889 mint*)
4890 # On MiNT this can take a long time and run out of memory.
4891 lt_cv_sys_max_cmd_len=8192;
4892 ;;
4893
4894 amigaos*)
4895 # On AmigaOS with pdksh, this test takes hours, literally.
4896 # So we just punt and use a minimum line length of 8192.
4897 lt_cv_sys_max_cmd_len=8192;
4898 ;;
4899
4900 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4901 # This has been around since 386BSD, at least. Likely further.
4902 if test -x /sbin/sysctl; then
4903 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4904 elif test -x /usr/sbin/sysctl; then
4905 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4906 else
4907 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4908 fi
4909 # And add a safety zone
4910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4912 ;;
4913
4914 interix*)
4915 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4916 lt_cv_sys_max_cmd_len=196608
4917 ;;
4918
4919 os2*)
4920 # The test takes a long time on OS/2.
4921 lt_cv_sys_max_cmd_len=8192
4922 ;;
4923
4924 osf*)
4925 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4926 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4927 # nice to cause kernel panics so lets avoid the loop below.
4928 # First set a reasonable default.
4929 lt_cv_sys_max_cmd_len=16384
4930 #
4931 if test -x /sbin/sysconfig; then
4932 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4933 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4934 esac
4935 fi
4936 ;;
4937 sco3.2v5*)
4938 lt_cv_sys_max_cmd_len=102400
4939 ;;
4940 sysv5* | sco5v6* | sysv4.2uw2*)
4941 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4942 if test -n "$kargmax"; then
4943 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4944 else
4945 lt_cv_sys_max_cmd_len=32768
4946 fi
4947 ;;
4948 *)
4949 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4950 if test -n "$lt_cv_sys_max_cmd_len" && \
4951 test undefined != "$lt_cv_sys_max_cmd_len"; then
4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4954 else
4955 # Make teststring a little bigger before we do anything with it.
4956 # a 1K string should be a reasonable start.
4957 for i in 1 2 3 4 5 6 7 8; do
4958 teststring=$teststring$teststring
4959 done
4960 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4961 # If test is not a shell built-in, we'll probably end up computing a
4962 # maximum length that is only half of the actual maximum length, but
4963 # we can't tell.
4964 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4965 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4966 test 17 != "$i" # 1/2 MB should be enough
4967 do
4968 i=`expr $i + 1`
4969 teststring=$teststring$teststring
4970 done
4971 # Only check the string length outside the loop.
4972 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4973 teststring=
4974 # Add a significant safety factor because C++ compilers can tack on
4975 # massive amounts of additional arguments before passing them to the
4976 # linker. It appears as though 1/2 is a usable value.
4977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4978 fi
4979 ;;
4980 esac
4981
4982 fi
4983
4984 if test -n "$lt_cv_sys_max_cmd_len"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4986 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4989 $as_echo "none" >&6; }
4990 fi
4991 max_cmd_len=$lt_cv_sys_max_cmd_len
4992
4993
4994
4995
4996
4997
4998 : ${CP="cp -f"}
4999 : ${MV="mv -f"}
5000 : ${RM="rm -f"}
5001
5002 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5003 lt_unset=unset
5004 else
5005 lt_unset=false
5006 fi
5007
5008
5009
5010
5011
5012 # test EBCDIC or ASCII
5013 case `echo X|tr X '\101'` in
5014 A) # ASCII based system
5015 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5016 lt_SP2NL='tr \040 \012'
5017 lt_NL2SP='tr \015\012 \040\040'
5018 ;;
5019 *) # EBCDIC based system
5020 lt_SP2NL='tr \100 \n'
5021 lt_NL2SP='tr \r\n \100\100'
5022 ;;
5023 esac
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5034 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5035 if ${lt_cv_to_host_file_cmd+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 case $host in
5039 *-*-mingw* )
5040 case $build in
5041 *-*-mingw* ) # actually msys
5042 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5043 ;;
5044 *-*-cygwin* )
5045 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5046 ;;
5047 * ) # otherwise, assume *nix
5048 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5049 ;;
5050 esac
5051 ;;
5052 *-*-cygwin* )
5053 case $build in
5054 *-*-mingw* ) # actually msys
5055 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5056 ;;
5057 *-*-cygwin* )
5058 lt_cv_to_host_file_cmd=func_convert_file_noop
5059 ;;
5060 * ) # otherwise, assume *nix
5061 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5062 ;;
5063 esac
5064 ;;
5065 * ) # unhandled hosts (and "normal" native builds)
5066 lt_cv_to_host_file_cmd=func_convert_file_noop
5067 ;;
5068 esac
5069
5070 fi
5071
5072 to_host_file_cmd=$lt_cv_to_host_file_cmd
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5074 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5075
5076
5077
5078
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5081 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5082 if ${lt_cv_to_tool_file_cmd+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 #assume ordinary cross tools, or native build.
5086 lt_cv_to_tool_file_cmd=func_convert_file_noop
5087 case $host in
5088 *-*-mingw* )
5089 case $build in
5090 *-*-mingw* ) # actually msys
5091 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5092 ;;
5093 esac
5094 ;;
5095 esac
5096
5097 fi
5098
5099 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5101 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5102
5103
5104
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5108 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5109 if ${lt_cv_ld_reload_flag+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 lt_cv_ld_reload_flag='-r'
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5115 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5116 reload_flag=$lt_cv_ld_reload_flag
5117 case $reload_flag in
5118 "" | " "*) ;;
5119 *) reload_flag=" $reload_flag" ;;
5120 esac
5121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5122 case $host_os in
5123 cygwin* | mingw* | pw32* | cegcc*)
5124 if test yes != "$GCC"; then
5125 reload_cmds=false
5126 fi
5127 ;;
5128 darwin*)
5129 if test yes = "$GCC"; then
5130 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5131 else
5132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5133 fi
5134 ;;
5135 esac
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_OBJDUMP+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$OBJDUMP"; then
5154 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 OBJDUMP=$ac_cv_prog_OBJDUMP
5174 if test -n "$OBJDUMP"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5176 $as_echo "$OBJDUMP" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 fi
5184 if test -z "$ac_cv_prog_OBJDUMP"; then
5185 ac_ct_OBJDUMP=$OBJDUMP
5186 # Extract the first word of "objdump", so it can be a program name with args.
5187 set dummy objdump; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_OBJDUMP"; then
5194 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5214 if test -n "$ac_ct_OBJDUMP"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5216 $as_echo "$ac_ct_OBJDUMP" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222 if test "x$ac_ct_OBJDUMP" = x; then
5223 OBJDUMP="false"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231 OBJDUMP=$ac_ct_OBJDUMP
5232 fi
5233 else
5234 OBJDUMP="$ac_cv_prog_OBJDUMP"
5235 fi
5236
5237 test -z "$OBJDUMP" && OBJDUMP=objdump
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5248 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5249 if ${lt_cv_deplibs_check_method+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 lt_cv_file_magic_cmd='$MAGIC_CMD'
5253 lt_cv_file_magic_test_file=
5254 lt_cv_deplibs_check_method='unknown'
5255 # Need to set the preceding variable on all platforms that support
5256 # interlibrary dependencies.
5257 # 'none' -- dependencies not supported.
5258 # 'unknown' -- same as none, but documents that we really don't know.
5259 # 'pass_all' -- all dependencies passed with no checks.
5260 # 'test_compile' -- check by making test program.
5261 # 'file_magic [[regex]]' -- check by looking for files in library path
5262 # that responds to the $file_magic_cmd with a given extended regex.
5263 # If you have 'file' or equivalent on your system and you're not sure
5264 # whether 'pass_all' will *always* work, you probably want this one.
5265
5266 case $host_os in
5267 aix[4-9]*)
5268 lt_cv_deplibs_check_method=pass_all
5269 ;;
5270
5271 beos*)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274
5275 bsdi[45]*)
5276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5277 lt_cv_file_magic_cmd='/usr/bin/file -L'
5278 lt_cv_file_magic_test_file=/shlib/libc.so
5279 ;;
5280
5281 cygwin*)
5282 # func_win32_libid is a shell function defined in ltmain.sh
5283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5284 lt_cv_file_magic_cmd='func_win32_libid'
5285 ;;
5286
5287 mingw* | pw32*)
5288 # Base MSYS/MinGW do not provide the 'file' command needed by
5289 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5290 # unless we find 'file', for example because we are cross-compiling.
5291 if ( file / ) >/dev/null 2>&1; then
5292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5293 lt_cv_file_magic_cmd='func_win32_libid'
5294 else
5295 # Keep this pattern in sync with the one in func_win32_libid.
5296 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5297 lt_cv_file_magic_cmd='$OBJDUMP -f'
5298 fi
5299 ;;
5300
5301 cegcc*)
5302 # use the weaker test based on 'objdump'. See mingw*.
5303 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5304 lt_cv_file_magic_cmd='$OBJDUMP -f'
5305 ;;
5306
5307 darwin* | rhapsody*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311 freebsd* | dragonfly*)
5312 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5313 case $host_cpu in
5314 i*86 )
5315 # Not sure whether the presence of OpenBSD here was a mistake.
5316 # Let's accept both of them until this is cleared up.
5317 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5318 lt_cv_file_magic_cmd=/usr/bin/file
5319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5320 ;;
5321 esac
5322 else
5323 lt_cv_deplibs_check_method=pass_all
5324 fi
5325 ;;
5326
5327 haiku*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331 hpux10.20* | hpux11*)
5332 lt_cv_file_magic_cmd=/usr/bin/file
5333 case $host_cpu in
5334 ia64*)
5335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5336 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5337 ;;
5338 hppa*64*)
5339 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]'
5340 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5341 ;;
5342 *)
5343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5344 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5345 ;;
5346 esac
5347 ;;
5348
5349 interix[3-9]*)
5350 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5352 ;;
5353
5354 irix5* | irix6* | nonstopux*)
5355 case $LD in
5356 *-32|*"-32 ") libmagic=32-bit;;
5357 *-n32|*"-n32 ") libmagic=N32;;
5358 *-64|*"-64 ") libmagic=64-bit;;
5359 *) libmagic=never-match;;
5360 esac
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363
5364 # This must be glibc/ELF.
5365 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369 netbsd*)
5370 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5372 else
5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5374 fi
5375 ;;
5376
5377 newos6*)
5378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5379 lt_cv_file_magic_cmd=/usr/bin/file
5380 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5381 ;;
5382
5383 *nto* | *qnx*)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386
5387 openbsd* | bitrig*)
5388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5390 else
5391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5392 fi
5393 ;;
5394
5395 osf3* | osf4* | osf5*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398
5399 rdos*)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
5402
5403 solaris*)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406
5407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410
5411 sysv4 | sysv4.3*)
5412 case $host_vendor in
5413 motorola)
5414 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]'
5415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5416 ;;
5417 ncr)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420 sequent)
5421 lt_cv_file_magic_cmd='/bin/file'
5422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5423 ;;
5424 sni)
5425 lt_cv_file_magic_cmd='/bin/file'
5426 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5427 lt_cv_file_magic_test_file=/lib/libc.so
5428 ;;
5429 siemens)
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432 pc)
5433 lt_cv_deplibs_check_method=pass_all
5434 ;;
5435 esac
5436 ;;
5437
5438 tpf*)
5439 lt_cv_deplibs_check_method=pass_all
5440 ;;
5441 os2*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444 esac
5445
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5448 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5449
5450 file_magic_glob=
5451 want_nocaseglob=no
5452 if test "$build" = "$host"; then
5453 case $host_os in
5454 mingw* | pw32*)
5455 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5456 want_nocaseglob=yes
5457 else
5458 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5459 fi
5460 ;;
5461 esac
5462 fi
5463
5464 file_magic_cmd=$lt_cv_file_magic_cmd
5465 deplibs_check_method=$lt_cv_deplibs_check_method
5466 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 if test -n "$ac_tool_prefix"; then
5490 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5491 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_DLLTOOL+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$DLLTOOL"; then
5498 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 DLLTOOL=$ac_cv_prog_DLLTOOL
5518 if test -n "$DLLTOOL"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5520 $as_echo "$DLLTOOL" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526
5527 fi
5528 if test -z "$ac_cv_prog_DLLTOOL"; then
5529 ac_ct_DLLTOOL=$DLLTOOL
5530 # Extract the first word of "dlltool", so it can be a program name with args.
5531 set dummy dlltool; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$ac_ct_DLLTOOL"; then
5538 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5558 if test -n "$ac_ct_DLLTOOL"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5560 $as_echo "$ac_ct_DLLTOOL" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566 if test "x$ac_ct_DLLTOOL" = x; then
5567 DLLTOOL="false"
5568 else
5569 case $cross_compiling:$ac_tool_warned in
5570 yes:)
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5573 ac_tool_warned=yes ;;
5574 esac
5575 DLLTOOL=$ac_ct_DLLTOOL
5576 fi
5577 else
5578 DLLTOOL="$ac_cv_prog_DLLTOOL"
5579 fi
5580
5581 test -z "$DLLTOOL" && DLLTOOL=dlltool
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5593 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5594 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 lt_cv_sharedlib_from_linklib_cmd='unknown'
5598
5599 case $host_os in
5600 cygwin* | mingw* | pw32* | cegcc*)
5601 # two different shell functions defined in ltmain.sh;
5602 # decide which one to use based on capabilities of $DLLTOOL
5603 case `$DLLTOOL --help 2>&1` in
5604 *--identify-strict*)
5605 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5606 ;;
5607 *)
5608 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5609 ;;
5610 esac
5611 ;;
5612 *)
5613 # fallback: assume linklib IS sharedlib
5614 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5615 ;;
5616 esac
5617
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5620 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5621 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5622 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5623
5624
5625
5626
5627
5628
5629
5630 if test -n "$ac_tool_prefix"; then
5631 for ac_prog in ar
5632 do
5633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_AR+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$AR"; then
5641 ac_cv_prog_AR="$AR" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 AR=$ac_cv_prog_AR
5661 if test -n "$AR"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5663 $as_echo "$AR" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 test -n "$AR" && break
5671 done
5672 fi
5673 if test -z "$AR"; then
5674 ac_ct_AR=$AR
5675 for ac_prog in ar
5676 do
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678 set dummy $ac_prog; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$ac_ct_AR"; then
5685 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_ac_ct_AR="$ac_prog"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698 done
5699 done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5705 if test -n "$ac_ct_AR"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5707 $as_echo "$ac_ct_AR" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713
5714 test -n "$ac_ct_AR" && break
5715 done
5716
5717 if test "x$ac_ct_AR" = x; then
5718 AR="false"
5719 else
5720 case $cross_compiling:$ac_tool_warned in
5721 yes:)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726 AR=$ac_ct_AR
5727 fi
5728 fi
5729
5730 : ${AR=ar}
5731 : ${AR_FLAGS=cru}
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5744 $as_echo_n "checking for archiver @FILE support... " >&6; }
5745 if ${lt_cv_ar_at_file+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 lt_cv_ar_at_file=no
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751
5752 int
5753 main ()
5754 {
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 echo conftest.$ac_objext > conftest.lst
5762 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5764 (eval $lt_ar_try) 2>&5
5765 ac_status=$?
5766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5767 test $ac_status = 0; }
5768 if test 0 -eq "$ac_status"; then
5769 # Ensure the archiver fails upon bogus file names.
5770 rm -f conftest.$ac_objext libconftest.a
5771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5772 (eval $lt_ar_try) 2>&5
5773 ac_status=$?
5774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775 test $ac_status = 0; }
5776 if test 0 -ne "$ac_status"; then
5777 lt_cv_ar_at_file=@
5778 fi
5779 fi
5780 rm -f conftest.* libconftest.a
5781
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5787 $as_echo "$lt_cv_ar_at_file" >&6; }
5788
5789 if test no = "$lt_cv_ar_at_file"; then
5790 archiver_list_spec=
5791 else
5792 archiver_list_spec=$lt_cv_ar_at_file
5793 fi
5794
5795
5796
5797
5798
5799
5800
5801 if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5803 set dummy ${ac_tool_prefix}strip; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_STRIP+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$STRIP"; then
5810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 STRIP=$ac_cv_prog_STRIP
5830 if test -n "$STRIP"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5832 $as_echo "$STRIP" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838
5839 fi
5840 if test -z "$ac_cv_prog_STRIP"; then
5841 ac_ct_STRIP=$STRIP
5842 # Extract the first word of "strip", so it can be a program name with args.
5843 set dummy strip; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 if test -n "$ac_ct_STRIP"; then
5850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_STRIP="strip"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867 fi
5868 fi
5869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5870 if test -n "$ac_ct_STRIP"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5872 $as_echo "$ac_ct_STRIP" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5876 fi
5877
5878 if test "x$ac_ct_STRIP" = x; then
5879 STRIP=":"
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 STRIP=$ac_ct_STRIP
5888 fi
5889 else
5890 STRIP="$ac_cv_prog_STRIP"
5891 fi
5892
5893 test -z "$STRIP" && STRIP=:
5894
5895
5896
5897
5898
5899
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_RANLIB+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5931 $as_echo "$RANLIB" >&6; }
5932 else
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938 fi
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5961 fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5971 $as_echo "$ac_ct_RANLIB" >&6; }
5972 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976
5977 if test "x$ac_ct_RANLIB" = x; then
5978 RANLIB=":"
5979 else
5980 case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5985 esac
5986 RANLIB=$ac_ct_RANLIB
5987 fi
5988 else
5989 RANLIB="$ac_cv_prog_RANLIB"
5990 fi
5991
5992 test -z "$RANLIB" && RANLIB=:
5993
5994
5995
5996
5997
5998
5999 # Determine commands to create old-style static archives.
6000 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6001 old_postinstall_cmds='chmod 644 $oldlib'
6002 old_postuninstall_cmds=
6003
6004 if test -n "$RANLIB"; then
6005 case $host_os in
6006 bitrig* | openbsd*)
6007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6008 ;;
6009 *)
6010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6011 ;;
6012 esac
6013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6014 fi
6015
6016 case $host_os in
6017 darwin*)
6018 lock_old_archive_extraction=yes ;;
6019 *)
6020 lock_old_archive_extraction=no ;;
6021 esac
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 for ac_prog in gawk mawk nawk awk
6044 do
6045 # Extract the first word of "$ac_prog", so it can be a program name with args.
6046 set dummy $ac_prog; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_AWK+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$AWK"; then
6053 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_AWK="$ac_prog"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 AWK=$ac_cv_prog_AWK
6073 if test -n "$AWK"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6075 $as_echo "$AWK" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081
6082 test -n "$AWK" && break
6083 done
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 # If no C compiler was specified, use CC.
6104 LTCC=${LTCC-"$CC"}
6105
6106 # If no C compiler flags were specified, use CFLAGS.
6107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6108
6109 # Allow CC to be a program name with arguments.
6110 compiler=$CC
6111
6112
6113 # Check for command to grab the raw symbol name followed by C symbol from nm.
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6115 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6116 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119
6120 # These are sane defaults that work on at least a few old systems.
6121 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6122
6123 # Character class describing NM global symbol codes.
6124 symcode='[BCDEGRST]'
6125
6126 # Regexp to match symbols that can be accessed directly from C.
6127 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6128
6129 # Define system-specific variables.
6130 case $host_os in
6131 aix*)
6132 symcode='[BCDT]'
6133 ;;
6134 cygwin* | mingw* | pw32* | cegcc*)
6135 symcode='[ABCDGISTW]'
6136 ;;
6137 hpux*)
6138 if test ia64 = "$host_cpu"; then
6139 symcode='[ABCDEGRST]'
6140 fi
6141 ;;
6142 irix* | nonstopux*)
6143 symcode='[BCDEGRST]'
6144 ;;
6145 osf*)
6146 symcode='[BCDEGQRST]'
6147 ;;
6148 solaris*)
6149 symcode='[BDRT]'
6150 ;;
6151 sco3.2v5*)
6152 symcode='[DT]'
6153 ;;
6154 sysv4.2uw2*)
6155 symcode='[DT]'
6156 ;;
6157 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6158 symcode='[ABDT]'
6159 ;;
6160 sysv4)
6161 symcode='[DFNSTU]'
6162 ;;
6163 esac
6164
6165 # If we're using GNU nm, then use its standard symbol codes.
6166 case `$NM -V 2>&1` in
6167 *GNU* | *'with BFD'*)
6168 symcode='[ABCDGIRSTW]' ;;
6169 esac
6170
6171 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6172 # Gets list of data symbols to import.
6173 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6174 # Adjust the below global symbol transforms to fixup imported variables.
6175 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6176 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6177 lt_c_name_lib_hook="\
6178 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6179 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6180 else
6181 # Disable hooks by default.
6182 lt_cv_sys_global_symbol_to_import=
6183 lt_cdecl_hook=
6184 lt_c_name_hook=
6185 lt_c_name_lib_hook=
6186 fi
6187
6188 # Transform an extracted symbol line into a proper C declaration.
6189 # Some systems (esp. on ia64) link data and code symbols differently,
6190 # so use this general approach.
6191 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6192 $lt_cdecl_hook\
6193 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6194 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6195
6196 # Transform an extracted symbol line into symbol name and symbol address
6197 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6198 $lt_c_name_hook\
6199 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6200 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6201
6202 # Transform an extracted symbol line into symbol name with lib prefix and
6203 # symbol address.
6204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6205 $lt_c_name_lib_hook\
6206 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6207 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6208 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6209
6210 # Handle CRLF in mingw tool chain
6211 opt_cr=
6212 case $build_os in
6213 mingw*)
6214 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6215 ;;
6216 esac
6217
6218 # Try without a prefix underscore, then with it.
6219 for ac_symprfx in "" "_"; do
6220
6221 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6222 symxfrm="\\1 $ac_symprfx\\2 \\2"
6223
6224 # Write the raw and C identifiers.
6225 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6226 # Fake it for dumpbin and say T for any non-static function,
6227 # D for any global variable and I for any imported variable.
6228 # Also find C++ and __fastcall symbols from MSVC++,
6229 # which start with @ or ?.
6230 lt_cv_sys_global_symbol_pipe="$AWK '"\
6231 " {last_section=section; section=\$ 3};"\
6232 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6233 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6234 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6235 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6236 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6237 " \$ 0!~/External *\|/{next};"\
6238 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6239 " {if(hide[section]) next};"\
6240 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6241 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6242 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6243 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6244 " ' prfx=^$ac_symprfx"
6245 else
6246 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6247 fi
6248 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6249
6250 # Check to see that the pipe works correctly.
6251 pipe_works=no
6252
6253 rm -f conftest*
6254 cat > conftest.$ac_ext <<_LT_EOF
6255 #ifdef __cplusplus
6256 extern "C" {
6257 #endif
6258 char nm_test_var;
6259 void nm_test_func(void);
6260 void nm_test_func(void){}
6261 #ifdef __cplusplus
6262 }
6263 #endif
6264 int main(){nm_test_var='a';nm_test_func();return(0);}
6265 _LT_EOF
6266
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6268 (eval $ac_compile) 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
6272 # Now try to grab the symbols.
6273 nlist=conftest.nm
6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6275 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6276 ac_status=$?
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; } && test -s "$nlist"; then
6279 # Try sorting and uniquifying the output.
6280 if sort "$nlist" | uniq > "$nlist"T; then
6281 mv -f "$nlist"T "$nlist"
6282 else
6283 rm -f "$nlist"T
6284 fi
6285
6286 # Make sure that we snagged all the symbols we need.
6287 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6288 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6289 cat <<_LT_EOF > conftest.$ac_ext
6290 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6291 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6292 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6293 relocations are performed -- see ld's documentation on pseudo-relocs. */
6294 # define LT_DLSYM_CONST
6295 #elif defined __osf__
6296 /* This system does not cope well with relocations in const data. */
6297 # define LT_DLSYM_CONST
6298 #else
6299 # define LT_DLSYM_CONST const
6300 #endif
6301
6302 #ifdef __cplusplus
6303 extern "C" {
6304 #endif
6305
6306 _LT_EOF
6307 # Now generate the symbol file.
6308 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6309
6310 cat <<_LT_EOF >> conftest.$ac_ext
6311
6312 /* The mapping between symbol names and symbols. */
6313 LT_DLSYM_CONST struct {
6314 const char *name;
6315 void *address;
6316 }
6317 lt__PROGRAM__LTX_preloaded_symbols[] =
6318 {
6319 { "@PROGRAM@", (void *) 0 },
6320 _LT_EOF
6321 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6322 cat <<\_LT_EOF >> conftest.$ac_ext
6323 {0, (void *) 0}
6324 };
6325
6326 /* This works around a problem in FreeBSD linker */
6327 #ifdef FREEBSD_WORKAROUND
6328 static const void *lt_preloaded_setup() {
6329 return lt__PROGRAM__LTX_preloaded_symbols;
6330 }
6331 #endif
6332
6333 #ifdef __cplusplus
6334 }
6335 #endif
6336 _LT_EOF
6337 # Now try linking the two files.
6338 mv conftest.$ac_objext conftstm.$ac_objext
6339 lt_globsym_save_LIBS=$LIBS
6340 lt_globsym_save_CFLAGS=$CFLAGS
6341 LIBS=conftstm.$ac_objext
6342 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6344 (eval $ac_link) 2>&5
6345 ac_status=$?
6346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6348 pipe_works=yes
6349 fi
6350 LIBS=$lt_globsym_save_LIBS
6351 CFLAGS=$lt_globsym_save_CFLAGS
6352 else
6353 echo "cannot find nm_test_func in $nlist" >&5
6354 fi
6355 else
6356 echo "cannot find nm_test_var in $nlist" >&5
6357 fi
6358 else
6359 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6360 fi
6361 else
6362 echo "$progname: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 fi
6365 rm -rf conftest* conftst*
6366
6367 # Do not use the global_symbol_pipe unless it works.
6368 if test yes = "$pipe_works"; then
6369 break
6370 else
6371 lt_cv_sys_global_symbol_pipe=
6372 fi
6373 done
6374
6375 fi
6376
6377 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6378 lt_cv_sys_global_symbol_to_cdecl=
6379 fi
6380 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6382 $as_echo "failed" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6385 $as_echo "ok" >&6; }
6386 fi
6387
6388 # Response file support.
6389 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6390 nm_file_list_spec='@'
6391 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6392 nm_file_list_spec='@'
6393 fi
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6432 $as_echo_n "checking for sysroot... " >&6; }
6433
6434 # Check whether --with-sysroot was given.
6435 if test "${with_sysroot+set}" = set; then :
6436 withval=$with_sysroot;
6437 else
6438 with_sysroot=no
6439 fi
6440
6441
6442 lt_sysroot=
6443 case $with_sysroot in #(
6444 yes)
6445 if test yes = "$GCC"; then
6446 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6447 fi
6448 ;; #(
6449 /*)
6450 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6451 ;; #(
6452 no|'')
6453 ;; #(
6454 *)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6456 $as_echo "$with_sysroot" >&6; }
6457 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6458 ;;
6459 esac
6460
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6462 $as_echo "${lt_sysroot:-no}" >&6; }
6463
6464
6465
6466
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6469 $as_echo_n "checking for a working dd... " >&6; }
6470 if ${ac_cv_path_lt_DD+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 printf 0123456789abcdef0123456789abcdef >conftest.i
6474 cat conftest.i conftest.i >conftest2.i
6475 : ${lt_DD:=$DD}
6476 if test -z "$lt_DD"; then
6477 ac_path_lt_DD_found=false
6478 # Loop through the user's path and test for each of PROGNAME-LIST
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_prog in dd; do
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6487 as_fn_executable_p "$ac_path_lt_DD" || continue
6488 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6489 cmp -s conftest.i conftest.out \
6490 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6491 fi
6492 $ac_path_lt_DD_found && break 3
6493 done
6494 done
6495 done
6496 IFS=$as_save_IFS
6497 if test -z "$ac_cv_path_lt_DD"; then
6498 :
6499 fi
6500 else
6501 ac_cv_path_lt_DD=$lt_DD
6502 fi
6503
6504 rm -f conftest.i conftest2.i conftest.out
6505 fi
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6507 $as_echo "$ac_cv_path_lt_DD" >&6; }
6508
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6511 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6512 if ${lt_cv_truncate_bin+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 printf 0123456789abcdef0123456789abcdef >conftest.i
6516 cat conftest.i conftest.i >conftest2.i
6517 lt_cv_truncate_bin=
6518 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6519 cmp -s conftest.i conftest.out \
6520 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6521 fi
6522 rm -f conftest.i conftest2.i conftest.out
6523 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6524 fi
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6526 $as_echo "$lt_cv_truncate_bin" >&6; }
6527
6528
6529
6530
6531
6532
6533
6534 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6535 func_cc_basename ()
6536 {
6537 for cc_temp in $*""; do
6538 case $cc_temp in
6539 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6540 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6541 \-*) ;;
6542 *) break;;
6543 esac
6544 done
6545 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6546 }
6547
6548 # Check whether --enable-libtool-lock was given.
6549 if test "${enable_libtool_lock+set}" = set; then :
6550 enableval=$enable_libtool_lock;
6551 fi
6552
6553 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6554
6555 # Some flags need to be propagated to the compiler or linker for good
6556 # libtool support.
6557 case $host in
6558 ia64-*-hpux*)
6559 # Find out what ABI is being produced by ac_compile, and set mode
6560 # options accordingly.
6561 echo 'int i;' > conftest.$ac_ext
6562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563 (eval $ac_compile) 2>&5
6564 ac_status=$?
6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566 test $ac_status = 0; }; then
6567 case `/usr/bin/file conftest.$ac_objext` in
6568 *ELF-32*)
6569 HPUX_IA64_MODE=32
6570 ;;
6571 *ELF-64*)
6572 HPUX_IA64_MODE=64
6573 ;;
6574 esac
6575 fi
6576 rm -rf conftest*
6577 ;;
6578 *-*-irix6*)
6579 # Find out what ABI is being produced by ac_compile, and set linker
6580 # options accordingly.
6581 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583 (eval $ac_compile) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; then
6587 if test yes = "$lt_cv_prog_gnu_ld"; then
6588 case `/usr/bin/file conftest.$ac_objext` in
6589 *32-bit*)
6590 LD="${LD-ld} -melf32bsmip"
6591 ;;
6592 *N32*)
6593 LD="${LD-ld} -melf32bmipn32"
6594 ;;
6595 *64-bit*)
6596 LD="${LD-ld} -melf64bmip"
6597 ;;
6598 esac
6599 else
6600 case `/usr/bin/file conftest.$ac_objext` in
6601 *32-bit*)
6602 LD="${LD-ld} -32"
6603 ;;
6604 *N32*)
6605 LD="${LD-ld} -n32"
6606 ;;
6607 *64-bit*)
6608 LD="${LD-ld} -64"
6609 ;;
6610 esac
6611 fi
6612 fi
6613 rm -rf conftest*
6614 ;;
6615
6616 mips64*-*linux*)
6617 # Find out what ABI is being produced by ac_compile, and set linker
6618 # options accordingly.
6619 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 emul=elf
6626 case `/usr/bin/file conftest.$ac_objext` in
6627 *32-bit*)
6628 emul="${emul}32"
6629 ;;
6630 *64-bit*)
6631 emul="${emul}64"
6632 ;;
6633 esac
6634 case `/usr/bin/file conftest.$ac_objext` in
6635 *MSB*)
6636 emul="${emul}btsmip"
6637 ;;
6638 *LSB*)
6639 emul="${emul}ltsmip"
6640 ;;
6641 esac
6642 case `/usr/bin/file conftest.$ac_objext` in
6643 *N32*)
6644 emul="${emul}n32"
6645 ;;
6646 esac
6647 LD="${LD-ld} -m $emul"
6648 fi
6649 rm -rf conftest*
6650 ;;
6651
6652 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6653 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6654 # Find out what ABI is being produced by ac_compile, and set linker
6655 # options accordingly. Note that the listed cases only cover the
6656 # situations where additional linker options are needed (such as when
6657 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6658 # vice versa); the common cases where no linker options are needed do
6659 # not appear in the list.
6660 echo 'int i;' > conftest.$ac_ext
6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662 (eval $ac_compile) 2>&5
6663 ac_status=$?
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }; then
6666 case `/usr/bin/file conftest.o` in
6667 *32-bit*)
6668 case $host in
6669 x86_64-*kfreebsd*-gnu)
6670 LD="${LD-ld} -m elf_i386_fbsd"
6671 ;;
6672 x86_64-*linux*)
6673 case `/usr/bin/file conftest.o` in
6674 *x86-64*)
6675 LD="${LD-ld} -m elf32_x86_64"
6676 ;;
6677 *)
6678 LD="${LD-ld} -m elf_i386"
6679 ;;
6680 esac
6681 ;;
6682 powerpc64le-*linux*)
6683 LD="${LD-ld} -m elf32lppclinux"
6684 ;;
6685 powerpc64-*linux*)
6686 LD="${LD-ld} -m elf32ppclinux"
6687 ;;
6688 s390x-*linux*)
6689 LD="${LD-ld} -m elf_s390"
6690 ;;
6691 sparc64-*linux*)
6692 LD="${LD-ld} -m elf32_sparc"
6693 ;;
6694 esac
6695 ;;
6696 *64-bit*)
6697 case $host in
6698 x86_64-*kfreebsd*-gnu)
6699 LD="${LD-ld} -m elf_x86_64_fbsd"
6700 ;;
6701 x86_64-*linux*)
6702 LD="${LD-ld} -m elf_x86_64"
6703 ;;
6704 powerpcle-*linux*)
6705 LD="${LD-ld} -m elf64lppc"
6706 ;;
6707 powerpc-*linux*)
6708 LD="${LD-ld} -m elf64ppc"
6709 ;;
6710 s390*-*linux*|s390*-*tpf*)
6711 LD="${LD-ld} -m elf64_s390"
6712 ;;
6713 sparc*-*linux*)
6714 LD="${LD-ld} -m elf64_sparc"
6715 ;;
6716 esac
6717 ;;
6718 esac
6719 fi
6720 rm -rf conftest*
6721 ;;
6722
6723 *-*-sco3.2v5*)
6724 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6725 SAVE_CFLAGS=$CFLAGS
6726 CFLAGS="$CFLAGS -belf"
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6728 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6729 if ${lt_cv_cc_needs_belf+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 ac_ext=c
6733 ac_cpp='$CPP $CPPFLAGS'
6734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6737
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740
6741 int
6742 main ()
6743 {
6744
6745 ;
6746 return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 lt_cv_cc_needs_belf=yes
6751 else
6752 lt_cv_cc_needs_belf=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 ac_ext=c
6757 ac_cpp='$CPP $CPPFLAGS'
6758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6764 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6765 if test yes != "$lt_cv_cc_needs_belf"; then
6766 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6767 CFLAGS=$SAVE_CFLAGS
6768 fi
6769 ;;
6770 *-*solaris*)
6771 # Find out what ABI is being produced by ac_compile, and set linker
6772 # options accordingly.
6773 echo 'int i;' > conftest.$ac_ext
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775 (eval $ac_compile) 2>&5
6776 ac_status=$?
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }; then
6779 case `/usr/bin/file conftest.o` in
6780 *64-bit*)
6781 case $lt_cv_prog_gnu_ld in
6782 yes*)
6783 case $host in
6784 i?86-*-solaris*|x86_64-*-solaris*)
6785 LD="${LD-ld} -m elf_x86_64"
6786 ;;
6787 sparc*-*-solaris*)
6788 LD="${LD-ld} -m elf64_sparc"
6789 ;;
6790 esac
6791 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6792 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6793 LD=${LD-ld}_sol2
6794 fi
6795 ;;
6796 *)
6797 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6798 LD="${LD-ld} -64"
6799 fi
6800 ;;
6801 esac
6802 ;;
6803 esac
6804 fi
6805 rm -rf conftest*
6806 ;;
6807 esac
6808
6809 need_locks=$enable_libtool_lock
6810
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}mt; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$MANIFEST_TOOL"; then
6820 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6840 if test -n "$MANIFEST_TOOL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6842 $as_echo "$MANIFEST_TOOL" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6851 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6852 # Extract the first word of "mt", so it can be a program name with args.
6853 set dummy mt; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$ac_ct_MANIFEST_TOOL"; then
6860 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6880 if test -n "$ac_ct_MANIFEST_TOOL"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6882 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6889 MANIFEST_TOOL=":"
6890 else
6891 case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6896 esac
6897 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6898 fi
6899 else
6900 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6901 fi
6902
6903 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6905 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6906 if ${lt_cv_path_mainfest_tool+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 lt_cv_path_mainfest_tool=no
6910 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6911 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6912 cat conftest.err >&5
6913 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6914 lt_cv_path_mainfest_tool=yes
6915 fi
6916 rm -f conftest*
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6919 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6920 if test yes != "$lt_cv_path_mainfest_tool"; then
6921 MANIFEST_TOOL=:
6922 fi
6923
6924
6925
6926
6927
6928
6929 case $host_os in
6930 rhapsody* | darwin*)
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$DSYMUTIL"; then
6940 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6960 if test -n "$DSYMUTIL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6962 $as_echo "$DSYMUTIL" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968
6969 fi
6970 if test -z "$ac_cv_prog_DSYMUTIL"; then
6971 ac_ct_DSYMUTIL=$DSYMUTIL
6972 # Extract the first word of "dsymutil", so it can be a program name with args.
6973 set dummy dsymutil; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$ac_ct_DSYMUTIL"; then
6980 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7000 if test -n "$ac_ct_DSYMUTIL"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7002 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008 if test "x$ac_ct_DSYMUTIL" = x; then
7009 DSYMUTIL=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012 yes:)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017 DSYMUTIL=$ac_ct_DSYMUTIL
7018 fi
7019 else
7020 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7021 fi
7022
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_NMEDIT+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$NMEDIT"; then
7032 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 NMEDIT=$ac_cv_prog_NMEDIT
7052 if test -n "$NMEDIT"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7054 $as_echo "$NMEDIT" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060
7061 fi
7062 if test -z "$ac_cv_prog_NMEDIT"; then
7063 ac_ct_NMEDIT=$NMEDIT
7064 # Extract the first word of "nmedit", so it can be a program name with args.
7065 set dummy nmedit; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$ac_ct_NMEDIT"; then
7072 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7092 if test -n "$ac_ct_NMEDIT"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7094 $as_echo "$ac_ct_NMEDIT" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100 if test "x$ac_ct_NMEDIT" = x; then
7101 NMEDIT=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104 yes:)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109 NMEDIT=$ac_ct_NMEDIT
7110 fi
7111 else
7112 NMEDIT="$ac_cv_prog_NMEDIT"
7113 fi
7114
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_LIPO+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$LIPO"; then
7124 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 LIPO=$ac_cv_prog_LIPO
7144 if test -n "$LIPO"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7146 $as_echo "$LIPO" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152
7153 fi
7154 if test -z "$ac_cv_prog_LIPO"; then
7155 ac_ct_LIPO=$LIPO
7156 # Extract the first word of "lipo", so it can be a program name with args.
7157 set dummy lipo; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 if test -n "$ac_ct_LIPO"; then
7164 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_LIPO="lipo"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7184 if test -n "$ac_ct_LIPO"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7186 $as_echo "$ac_ct_LIPO" >&6; }
7187 else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7191
7192 if test "x$ac_ct_LIPO" = x; then
7193 LIPO=":"
7194 else
7195 case $cross_compiling:$ac_tool_warned in
7196 yes:)
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7200 esac
7201 LIPO=$ac_ct_LIPO
7202 fi
7203 else
7204 LIPO="$ac_cv_prog_LIPO"
7205 fi
7206
7207 if test -n "$ac_tool_prefix"; then
7208 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}otool; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_OTOOL+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$OTOOL"; then
7216 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 OTOOL=$ac_cv_prog_OTOOL
7236 if test -n "$OTOOL"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7238 $as_echo "$OTOOL" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244
7245 fi
7246 if test -z "$ac_cv_prog_OTOOL"; then
7247 ac_ct_OTOOL=$OTOOL
7248 # Extract the first word of "otool", so it can be a program name with args.
7249 set dummy otool; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 if test -n "$ac_ct_OTOOL"; then
7256 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_ac_ct_OTOOL="otool"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7276 if test -n "$ac_ct_OTOOL"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7278 $as_echo "$ac_ct_OTOOL" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284 if test "x$ac_ct_OTOOL" = x; then
7285 OTOOL=":"
7286 else
7287 case $cross_compiling:$ac_tool_warned in
7288 yes:)
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7292 esac
7293 OTOOL=$ac_ct_OTOOL
7294 fi
7295 else
7296 OTOOL="$ac_cv_prog_OTOOL"
7297 fi
7298
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_OTOOL64+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$OTOOL64"; then
7308 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 OTOOL64=$ac_cv_prog_OTOOL64
7328 if test -n "$OTOOL64"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7330 $as_echo "$OTOOL64" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_prog_OTOOL64"; then
7339 ac_ct_OTOOL64=$OTOOL64
7340 # Extract the first word of "otool64", so it can be a program name with args.
7341 set dummy otool64; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$ac_ct_OTOOL64"; then
7348 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_OTOOL64="otool64"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7368 if test -n "$ac_ct_OTOOL64"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7370 $as_echo "$ac_ct_OTOOL64" >&6; }
7371 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376 if test "x$ac_ct_OTOOL64" = x; then
7377 OTOOL64=":"
7378 else
7379 case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385 OTOOL64=$ac_ct_OTOOL64
7386 fi
7387 else
7388 OTOOL64="$ac_cv_prog_OTOOL64"
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7418 $as_echo_n "checking for -single_module linker flag... " >&6; }
7419 if ${lt_cv_apple_cc_single_mod+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 lt_cv_apple_cc_single_mod=no
7423 if test -z "$LT_MULTI_MODULE"; then
7424 # By default we will add the -single_module flag. You can override
7425 # by either setting the environment variable LT_MULTI_MODULE
7426 # non-empty at configure time, or by adding -multi_module to the
7427 # link flags.
7428 rm -rf libconftest.dylib*
7429 echo "int foo(void){return 1;}" > conftest.c
7430 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7431 -dynamiclib -Wl,-single_module conftest.c" >&5
7432 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7433 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7434 _lt_result=$?
7435 # If there is a non-empty error log, and "single_module"
7436 # appears in it, assume the flag caused a linker warning
7437 if test -s conftest.err && $GREP single_module conftest.err; then
7438 cat conftest.err >&5
7439 # Otherwise, if the output was created with a 0 exit code from
7440 # the compiler, it worked.
7441 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7442 lt_cv_apple_cc_single_mod=yes
7443 else
7444 cat conftest.err >&5
7445 fi
7446 rm -rf libconftest.dylib*
7447 rm -f conftest.*
7448 fi
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7451 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7452
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7454 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7455 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 lt_cv_ld_exported_symbols_list=no
7459 save_LDFLAGS=$LDFLAGS
7460 echo "_main" > conftest.sym
7461 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464
7465 int
7466 main ()
7467 {
7468
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474 lt_cv_ld_exported_symbols_list=yes
7475 else
7476 lt_cv_ld_exported_symbols_list=no
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 LDFLAGS=$save_LDFLAGS
7481
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7484 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7485
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7487 $as_echo_n "checking for -force_load linker flag... " >&6; }
7488 if ${lt_cv_ld_force_load+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 lt_cv_ld_force_load=no
7492 cat > conftest.c << _LT_EOF
7493 int forced_loaded() { return 2;}
7494 _LT_EOF
7495 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7496 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7497 echo "$AR cru libconftest.a conftest.o" >&5
7498 $AR cru libconftest.a conftest.o 2>&5
7499 echo "$RANLIB libconftest.a" >&5
7500 $RANLIB libconftest.a 2>&5
7501 cat > conftest.c << _LT_EOF
7502 int main() { return 0;}
7503 _LT_EOF
7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7506 _lt_result=$?
7507 if test -s conftest.err && $GREP force_load conftest.err; then
7508 cat conftest.err >&5
7509 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7510 lt_cv_ld_force_load=yes
7511 else
7512 cat conftest.err >&5
7513 fi
7514 rm -f conftest.err libconftest.a conftest conftest.c
7515 rm -rf conftest.dSYM
7516
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7519 $as_echo "$lt_cv_ld_force_load" >&6; }
7520 case $host_os in
7521 rhapsody* | darwin1.[012])
7522 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7523 darwin1.*)
7524 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7525 darwin*) # darwin 5.x on
7526 # if running on 10.5 or later, the deployment target defaults
7527 # to the OS version, if on x86, and 10.4, the deployment
7528 # target defaults to 10.4. Don't you love it?
7529 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7530 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7531 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7532 10.[012][,.]*)
7533 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7534 10.*)
7535 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7536 esac
7537 ;;
7538 esac
7539 if test yes = "$lt_cv_apple_cc_single_mod"; then
7540 _lt_dar_single_mod='$single_module'
7541 fi
7542 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7543 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7544 else
7545 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7546 fi
7547 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7548 _lt_dsymutil='~$DSYMUTIL $lib || :'
7549 else
7550 _lt_dsymutil=
7551 fi
7552 ;;
7553 esac
7554
7555 # func_munge_path_list VARIABLE PATH
7556 # -----------------------------------
7557 # VARIABLE is name of variable containing _space_ separated list of
7558 # directories to be munged by the contents of PATH, which is string
7559 # having a format:
7560 # "DIR[:DIR]:"
7561 # string "DIR[ DIR]" will be prepended to VARIABLE
7562 # ":DIR[:DIR]"
7563 # string "DIR[ DIR]" will be appended to VARIABLE
7564 # "DIRP[:DIRP]::[DIRA:]DIRA"
7565 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7566 # "DIRA[ DIRA]" will be appended to VARIABLE
7567 # "DIR[:DIR]"
7568 # VARIABLE will be replaced by "DIR[ DIR]"
7569 func_munge_path_list ()
7570 {
7571 case x$2 in
7572 x)
7573 ;;
7574 *:)
7575 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7576 ;;
7577 x:*)
7578 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7579 ;;
7580 *::*)
7581 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7582 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7583 ;;
7584 *)
7585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7586 ;;
7587 esac
7588 }
7589
7590 for ac_header in dlfcn.h
7591 do :
7592 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7593 "
7594 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7595 cat >>confdefs.h <<_ACEOF
7596 #define HAVE_DLFCN_H 1
7597 _ACEOF
7598
7599 fi
7600
7601 done
7602
7603
7604
7605
7606
7607 # Set options
7608
7609
7610
7611 enable_dlopen=no
7612
7613
7614 enable_win32_dll=no
7615
7616
7617 # Check whether --enable-shared was given.
7618 if test "${enable_shared+set}" = set; then :
7619 enableval=$enable_shared; p=${PACKAGE-default}
7620 case $enableval in
7621 yes) enable_shared=yes ;;
7622 no) enable_shared=no ;;
7623 *)
7624 enable_shared=no
7625 # Look at the argument we got. We use all the common list separators.
7626 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7627 for pkg in $enableval; do
7628 IFS=$lt_save_ifs
7629 if test "X$pkg" = "X$p"; then
7630 enable_shared=yes
7631 fi
7632 done
7633 IFS=$lt_save_ifs
7634 ;;
7635 esac
7636 else
7637 enable_shared=yes
7638 fi
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648 # Check whether --enable-static was given.
7649 if test "${enable_static+set}" = set; then :
7650 enableval=$enable_static; p=${PACKAGE-default}
7651 case $enableval in
7652 yes) enable_static=yes ;;
7653 no) enable_static=no ;;
7654 *)
7655 enable_static=no
7656 # Look at the argument we got. We use all the common list separators.
7657 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7658 for pkg in $enableval; do
7659 IFS=$lt_save_ifs
7660 if test "X$pkg" = "X$p"; then
7661 enable_static=yes
7662 fi
7663 done
7664 IFS=$lt_save_ifs
7665 ;;
7666 esac
7667 else
7668 enable_static=yes
7669 fi
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 # Check whether --with-pic was given.
7681 if test "${with_pic+set}" = set; then :
7682 withval=$with_pic; lt_p=${PACKAGE-default}
7683 case $withval in
7684 yes|no) pic_mode=$withval ;;
7685 *)
7686 pic_mode=default
7687 # Look at the argument we got. We use all the common list separators.
7688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7689 for lt_pkg in $withval; do
7690 IFS=$lt_save_ifs
7691 if test "X$lt_pkg" = "X$lt_p"; then
7692 pic_mode=yes
7693 fi
7694 done
7695 IFS=$lt_save_ifs
7696 ;;
7697 esac
7698 else
7699 pic_mode=default
7700 fi
7701
7702
7703
7704
7705
7706
7707
7708
7709 # Check whether --enable-fast-install was given.
7710 if test "${enable_fast_install+set}" = set; then :
7711 enableval=$enable_fast_install; p=${PACKAGE-default}
7712 case $enableval in
7713 yes) enable_fast_install=yes ;;
7714 no) enable_fast_install=no ;;
7715 *)
7716 enable_fast_install=no
7717 # Look at the argument we got. We use all the common list separators.
7718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7719 for pkg in $enableval; do
7720 IFS=$lt_save_ifs
7721 if test "X$pkg" = "X$p"; then
7722 enable_fast_install=yes
7723 fi
7724 done
7725 IFS=$lt_save_ifs
7726 ;;
7727 esac
7728 else
7729 enable_fast_install=yes
7730 fi
7731
7732
7733
7734
7735
7736
7737
7738
7739 shared_archive_member_spec=
7740 case $host,$enable_shared in
7741 power*-*-aix[5-9]*,yes)
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7743 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7744
7745 # Check whether --with-aix-soname was given.
7746 if test "${with_aix_soname+set}" = set; then :
7747 withval=$with_aix_soname; case $withval in
7748 aix|svr4|both)
7749 ;;
7750 *)
7751 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7752 ;;
7753 esac
7754 lt_cv_with_aix_soname=$with_aix_soname
7755 else
7756 if ${lt_cv_with_aix_soname+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 lt_cv_with_aix_soname=aix
7760 fi
7761
7762 with_aix_soname=$lt_cv_with_aix_soname
7763 fi
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7766 $as_echo "$with_aix_soname" >&6; }
7767 if test aix != "$with_aix_soname"; then
7768 # For the AIX way of multilib, we name the shared archive member
7769 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7770 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7771 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7772 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7773 if test 64 = "${OBJECT_MODE-32}"; then
7774 shared_archive_member_spec=shr_64
7775 else
7776 shared_archive_member_spec=shr
7777 fi
7778 fi
7779 ;;
7780 *)
7781 with_aix_soname=aix
7782 ;;
7783 esac
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794 # This can be used to rebuild libtool when needed
7795 LIBTOOL_DEPS=$ltmain
7796
7797 # Always use our own libtool.
7798 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829 test -z "$LN_S" && LN_S="ln -s"
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844 if test -n "${ZSH_VERSION+set}"; then
7845 setopt NO_GLOB_SUBST
7846 fi
7847
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7849 $as_echo_n "checking for objdir... " >&6; }
7850 if ${lt_cv_objdir+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 rm -f .libs 2>/dev/null
7854 mkdir .libs 2>/dev/null
7855 if test -d .libs; then
7856 lt_cv_objdir=.libs
7857 else
7858 # MS-DOS does not allow filenames that begin with a dot.
7859 lt_cv_objdir=_libs
7860 fi
7861 rmdir .libs 2>/dev/null
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7864 $as_echo "$lt_cv_objdir" >&6; }
7865 objdir=$lt_cv_objdir
7866
7867
7868
7869
7870
7871 cat >>confdefs.h <<_ACEOF
7872 #define LT_OBJDIR "$lt_cv_objdir/"
7873 _ACEOF
7874
7875
7876
7877
7878 case $host_os in
7879 aix3*)
7880 # AIX sometimes has problems with the GCC collect2 program. For some
7881 # reason, if we set the COLLECT_NAMES environment variable, the problems
7882 # vanish in a puff of smoke.
7883 if test set != "${COLLECT_NAMES+set}"; then
7884 COLLECT_NAMES=
7885 export COLLECT_NAMES
7886 fi
7887 ;;
7888 esac
7889
7890 # Global variables:
7891 ofile=libtool
7892 can_build_shared=yes
7893
7894 # All known linkers require a '.a' archive for static linking (except MSVC,
7895 # which needs '.lib').
7896 libext=a
7897
7898 with_gnu_ld=$lt_cv_prog_gnu_ld
7899
7900 old_CC=$CC
7901 old_CFLAGS=$CFLAGS
7902
7903 # Set sane defaults for various variables
7904 test -z "$CC" && CC=cc
7905 test -z "$LTCC" && LTCC=$CC
7906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907 test -z "$LD" && LD=ld
7908 test -z "$ac_objext" && ac_objext=o
7909
7910 func_cc_basename $compiler
7911 cc_basename=$func_cc_basename_result
7912
7913
7914 # Only perform the check for file, if the check method requires it
7915 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7916 case $deplibs_check_method in
7917 file_magic*)
7918 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7920 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7921 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 case $MAGIC_CMD in
7925 [\\/*] | ?:[\\/]*)
7926 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7927 ;;
7928 *)
7929 lt_save_MAGIC_CMD=$MAGIC_CMD
7930 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7932 for ac_dir in $ac_dummy; do
7933 IFS=$lt_save_ifs
7934 test -z "$ac_dir" && ac_dir=.
7935 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7936 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7937 if test -n "$file_magic_test_file"; then
7938 case $deplibs_check_method in
7939 "file_magic "*)
7940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7941 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7943 $EGREP "$file_magic_regex" > /dev/null; then
7944 :
7945 else
7946 cat <<_LT_EOF 1>&2
7947
7948 *** Warning: the command libtool uses to detect shared libraries,
7949 *** $file_magic_cmd, produces output that libtool cannot recognize.
7950 *** The result is that libtool may fail to recognize shared libraries
7951 *** as such. This will affect the creation of libtool libraries that
7952 *** depend on shared libraries, but programs linked with such libtool
7953 *** libraries will work regardless of this problem. Nevertheless, you
7954 *** may want to report the problem to your system manager and/or to
7955 *** [email protected]
7956
7957 _LT_EOF
7958 fi ;;
7959 esac
7960 fi
7961 break
7962 fi
7963 done
7964 IFS=$lt_save_ifs
7965 MAGIC_CMD=$lt_save_MAGIC_CMD
7966 ;;
7967 esac
7968 fi
7969
7970 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7971 if test -n "$MAGIC_CMD"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7973 $as_echo "$MAGIC_CMD" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980
7981
7982
7983 if test -z "$lt_cv_path_MAGIC_CMD"; then
7984 if test -n "$ac_tool_prefix"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7986 $as_echo_n "checking for file... " >&6; }
7987 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 case $MAGIC_CMD in
7991 [\\/*] | ?:[\\/]*)
7992 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7993 ;;
7994 *)
7995 lt_save_MAGIC_CMD=$MAGIC_CMD
7996 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7998 for ac_dir in $ac_dummy; do
7999 IFS=$lt_save_ifs
8000 test -z "$ac_dir" && ac_dir=.
8001 if test -f "$ac_dir/file"; then
8002 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8003 if test -n "$file_magic_test_file"; then
8004 case $deplibs_check_method in
8005 "file_magic "*)
8006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8007 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8009 $EGREP "$file_magic_regex" > /dev/null; then
8010 :
8011 else
8012 cat <<_LT_EOF 1>&2
8013
8014 *** Warning: the command libtool uses to detect shared libraries,
8015 *** $file_magic_cmd, produces output that libtool cannot recognize.
8016 *** The result is that libtool may fail to recognize shared libraries
8017 *** as such. This will affect the creation of libtool libraries that
8018 *** depend on shared libraries, but programs linked with such libtool
8019 *** libraries will work regardless of this problem. Nevertheless, you
8020 *** may want to report the problem to your system manager and/or to
8021 *** [email protected]
8022
8023 _LT_EOF
8024 fi ;;
8025 esac
8026 fi
8027 break
8028 fi
8029 done
8030 IFS=$lt_save_ifs
8031 MAGIC_CMD=$lt_save_MAGIC_CMD
8032 ;;
8033 esac
8034 fi
8035
8036 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8037 if test -n "$MAGIC_CMD"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8039 $as_echo "$MAGIC_CMD" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046 else
8047 MAGIC_CMD=:
8048 fi
8049 fi
8050
8051 fi
8052 ;;
8053 esac
8054
8055 # Use C for the default configuration in the libtool script
8056
8057 lt_save_CC=$CC
8058 ac_ext=c
8059 ac_cpp='$CPP $CPPFLAGS'
8060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8063
8064
8065 # Source file extension for C test sources.
8066 ac_ext=c
8067
8068 # Object file extension for compiled C test sources.
8069 objext=o
8070 objext=$objext
8071
8072 # Code to be used in simple compile tests
8073 lt_simple_compile_test_code="int some_variable = 0;"
8074
8075 # Code to be used in simple link tests
8076 lt_simple_link_test_code='int main(){return(0);}'
8077
8078
8079
8080
8081
8082
8083
8084 # If no C compiler was specified, use CC.
8085 LTCC=${LTCC-"$CC"}
8086
8087 # If no C compiler flags were specified, use CFLAGS.
8088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8089
8090 # Allow CC to be a program name with arguments.
8091 compiler=$CC
8092
8093 # Save the default compiler, since it gets overwritten when the other
8094 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8095 compiler_DEFAULT=$CC
8096
8097 # save warnings/boilerplate of simple test code
8098 ac_outfile=conftest.$ac_objext
8099 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8101 _lt_compiler_boilerplate=`cat conftest.err`
8102 $RM conftest*
8103
8104 ac_outfile=conftest.$ac_objext
8105 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8107 _lt_linker_boilerplate=`cat conftest.err`
8108 $RM -r conftest*
8109
8110
8111 ## CAVEAT EMPTOR:
8112 ## There is no encapsulation within the following macros, do not change
8113 ## the running order or otherwise move them around unless you know exactly
8114 ## what you are doing...
8115 if test -n "$compiler"; then
8116
8117 lt_prog_compiler_no_builtin_flag=
8118
8119 if test yes = "$GCC"; then
8120 case $cc_basename in
8121 nvcc*)
8122 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8123 *)
8124 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8125 esac
8126
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8128 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8129 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 lt_cv_prog_compiler_rtti_exceptions=no
8133 ac_outfile=conftest.$ac_objext
8134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8135 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8136 # Insert the option either (1) after the last *FLAGS variable, or
8137 # (2) before a word containing "conftest.", or (3) at the end.
8138 # Note that $ac_compile itself does not contain backslashes and begins
8139 # with a dollar sign (not a hyphen), so the echo should work correctly.
8140 # The option is referenced via a variable to avoid confusing sed.
8141 lt_compile=`echo "$ac_compile" | $SED \
8142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8144 -e 's:$: $lt_compiler_flag:'`
8145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8146 (eval "$lt_compile" 2>conftest.err)
8147 ac_status=$?
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 if (exit $ac_status) && test -s "$ac_outfile"; then
8151 # The compiler can only warn and ignore the option if not recognized
8152 # So say no if there are warnings other than the usual output.
8153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8156 lt_cv_prog_compiler_rtti_exceptions=yes
8157 fi
8158 fi
8159 $RM conftest*
8160
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8163 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8164
8165 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8166 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8167 else
8168 :
8169 fi
8170
8171 fi
8172
8173
8174
8175
8176
8177
8178 lt_prog_compiler_wl=
8179 lt_prog_compiler_pic=
8180 lt_prog_compiler_static=
8181
8182
8183 if test yes = "$GCC"; then
8184 lt_prog_compiler_wl='-Wl,'
8185 lt_prog_compiler_static='-static'
8186
8187 case $host_os in
8188 aix*)
8189 # All AIX code is PIC.
8190 if test ia64 = "$host_cpu"; then
8191 # AIX 5 now supports IA64 processor
8192 lt_prog_compiler_static='-Bstatic'
8193 fi
8194 lt_prog_compiler_pic='-fPIC'
8195 ;;
8196
8197 amigaos*)
8198 case $host_cpu in
8199 powerpc)
8200 # see comment about AmigaOS4 .so support
8201 lt_prog_compiler_pic='-fPIC'
8202 ;;
8203 m68k)
8204 # FIXME: we need at least 68020 code to build shared libraries, but
8205 # adding the '-m68020' flag to GCC prevents building anything better,
8206 # like '-m68040'.
8207 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8208 ;;
8209 esac
8210 ;;
8211
8212 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8213 # PIC is the default for these OSes.
8214 ;;
8215
8216 mingw* | cygwin* | pw32* | os2* | cegcc*)
8217 # This hack is so that the source file can tell whether it is being
8218 # built for inclusion in a dll (and should export symbols for example).
8219 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8220 # (--disable-auto-import) libraries
8221 lt_prog_compiler_pic='-DDLL_EXPORT'
8222 case $host_os in
8223 os2*)
8224 lt_prog_compiler_static='$wl-static'
8225 ;;
8226 esac
8227 ;;
8228
8229 darwin* | rhapsody*)
8230 # PIC is the default on this platform
8231 # Common symbols not allowed in MH_DYLIB files
8232 lt_prog_compiler_pic='-fno-common'
8233 ;;
8234
8235 haiku*)
8236 # PIC is the default for Haiku.
8237 # The "-static" flag exists, but is broken.
8238 lt_prog_compiler_static=
8239 ;;
8240
8241 hpux*)
8242 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8243 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8244 # sets the default TLS model and affects inlining.
8245 case $host_cpu in
8246 hppa*64*)
8247 # +Z the default
8248 ;;
8249 *)
8250 lt_prog_compiler_pic='-fPIC'
8251 ;;
8252 esac
8253 ;;
8254
8255 interix[3-9]*)
8256 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8257 # Instead, we relocate shared libraries at runtime.
8258 ;;
8259
8260 msdosdjgpp*)
8261 # Just because we use GCC doesn't mean we suddenly get shared libraries
8262 # on systems that don't support them.
8263 lt_prog_compiler_can_build_shared=no
8264 enable_shared=no
8265 ;;
8266
8267 *nto* | *qnx*)
8268 # QNX uses GNU C++, but need to define -shared option too, otherwise
8269 # it will coredump.
8270 lt_prog_compiler_pic='-fPIC -shared'
8271 ;;
8272
8273 sysv4*MP*)
8274 if test -d /usr/nec; then
8275 lt_prog_compiler_pic=-Kconform_pic
8276 fi
8277 ;;
8278
8279 *)
8280 lt_prog_compiler_pic='-fPIC'
8281 ;;
8282 esac
8283
8284 case $cc_basename in
8285 nvcc*) # Cuda Compiler Driver 2.2
8286 lt_prog_compiler_wl='-Xlinker '
8287 if test -n "$lt_prog_compiler_pic"; then
8288 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8289 fi
8290 ;;
8291 esac
8292 else
8293 # PORTME Check for flag to pass linker flags through the system compiler.
8294 case $host_os in
8295 aix*)
8296 lt_prog_compiler_wl='-Wl,'
8297 if test ia64 = "$host_cpu"; then
8298 # AIX 5 now supports IA64 processor
8299 lt_prog_compiler_static='-Bstatic'
8300 else
8301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8302 fi
8303 ;;
8304
8305 darwin* | rhapsody*)
8306 # PIC is the default on this platform
8307 # Common symbols not allowed in MH_DYLIB files
8308 lt_prog_compiler_pic='-fno-common'
8309 case $cc_basename in
8310 nagfor*)
8311 # NAG Fortran compiler
8312 lt_prog_compiler_wl='-Wl,-Wl,,'
8313 lt_prog_compiler_pic='-PIC'
8314 lt_prog_compiler_static='-Bstatic'
8315 ;;
8316 esac
8317 ;;
8318
8319 mingw* | cygwin* | pw32* | os2* | cegcc*)
8320 # This hack is so that the source file can tell whether it is being
8321 # built for inclusion in a dll (and should export symbols for example).
8322 lt_prog_compiler_pic='-DDLL_EXPORT'
8323 case $host_os in
8324 os2*)
8325 lt_prog_compiler_static='$wl-static'
8326 ;;
8327 esac
8328 ;;
8329
8330 hpux9* | hpux10* | hpux11*)
8331 lt_prog_compiler_wl='-Wl,'
8332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8333 # not for PA HP-UX.
8334 case $host_cpu in
8335 hppa*64*|ia64*)
8336 # +Z the default
8337 ;;
8338 *)
8339 lt_prog_compiler_pic='+Z'
8340 ;;
8341 esac
8342 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8343 lt_prog_compiler_static='$wl-a ${wl}archive'
8344 ;;
8345
8346 irix5* | irix6* | nonstopux*)
8347 lt_prog_compiler_wl='-Wl,'
8348 # PIC (with -KPIC) is the default.
8349 lt_prog_compiler_static='-non_shared'
8350 ;;
8351
8352 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8353 case $cc_basename in
8354 # old Intel for x86_64, which still supported -KPIC.
8355 ecc*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-static'
8359 ;;
8360 # icc used to be incompatible with GCC.
8361 # ICC 10 doesn't accept -KPIC any more.
8362 icc* | ifort*)
8363 lt_prog_compiler_wl='-Wl,'
8364 lt_prog_compiler_pic='-fPIC'
8365 lt_prog_compiler_static='-static'
8366 ;;
8367 # Lahey Fortran 8.1.
8368 lf95*)
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='--shared'
8371 lt_prog_compiler_static='--static'
8372 ;;
8373 nagfor*)
8374 # NAG Fortran compiler
8375 lt_prog_compiler_wl='-Wl,-Wl,,'
8376 lt_prog_compiler_pic='-PIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 ;;
8379 tcc*)
8380 # Fabrice Bellard et al's Tiny C Compiler
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-fPIC'
8383 lt_prog_compiler_static='-static'
8384 ;;
8385 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8386 # Portland Group compilers (*not* the Pentium gcc compiler,
8387 # which looks to be a dead project)
8388 lt_prog_compiler_wl='-Wl,'
8389 lt_prog_compiler_pic='-fpic'
8390 lt_prog_compiler_static='-Bstatic'
8391 ;;
8392 ccc*)
8393 lt_prog_compiler_wl='-Wl,'
8394 # All Alpha code is PIC.
8395 lt_prog_compiler_static='-non_shared'
8396 ;;
8397 xl* | bgxl* | bgf* | mpixl*)
8398 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-qpic'
8401 lt_prog_compiler_static='-qstaticlink'
8402 ;;
8403 *)
8404 case `$CC -V 2>&1 | sed 5q` in
8405 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8406 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8409 lt_prog_compiler_wl=''
8410 ;;
8411 *Sun\ F* | *Sun*Fortran*)
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 lt_prog_compiler_wl='-Qoption ld '
8415 ;;
8416 *Sun\ C*)
8417 # Sun C 5.9
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-Bstatic'
8420 lt_prog_compiler_wl='-Wl,'
8421 ;;
8422 *Intel*\ [CF]*Compiler*)
8423 lt_prog_compiler_wl='-Wl,'
8424 lt_prog_compiler_pic='-fPIC'
8425 lt_prog_compiler_static='-static'
8426 ;;
8427 *Portland\ Group*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-fpic'
8430 lt_prog_compiler_static='-Bstatic'
8431 ;;
8432 esac
8433 ;;
8434 esac
8435 ;;
8436
8437 newsos6)
8438 lt_prog_compiler_pic='-KPIC'
8439 lt_prog_compiler_static='-Bstatic'
8440 ;;
8441
8442 *nto* | *qnx*)
8443 # QNX uses GNU C++, but need to define -shared option too, otherwise
8444 # it will coredump.
8445 lt_prog_compiler_pic='-fPIC -shared'
8446 ;;
8447
8448 osf3* | osf4* | osf5*)
8449 lt_prog_compiler_wl='-Wl,'
8450 # All OSF/1 code is PIC.
8451 lt_prog_compiler_static='-non_shared'
8452 ;;
8453
8454 rdos*)
8455 lt_prog_compiler_static='-non_shared'
8456 ;;
8457
8458 solaris*)
8459 lt_prog_compiler_pic='-KPIC'
8460 lt_prog_compiler_static='-Bstatic'
8461 case $cc_basename in
8462 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8463 lt_prog_compiler_wl='-Qoption ld ';;
8464 *)
8465 lt_prog_compiler_wl='-Wl,';;
8466 esac
8467 ;;
8468
8469 sunos4*)
8470 lt_prog_compiler_wl='-Qoption ld '
8471 lt_prog_compiler_pic='-PIC'
8472 lt_prog_compiler_static='-Bstatic'
8473 ;;
8474
8475 sysv4 | sysv4.2uw2* | sysv4.3*)
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_pic='-KPIC'
8478 lt_prog_compiler_static='-Bstatic'
8479 ;;
8480
8481 sysv4*MP*)
8482 if test -d /usr/nec; then
8483 lt_prog_compiler_pic='-Kconform_pic'
8484 lt_prog_compiler_static='-Bstatic'
8485 fi
8486 ;;
8487
8488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8489 lt_prog_compiler_wl='-Wl,'
8490 lt_prog_compiler_pic='-KPIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 ;;
8493
8494 unicos*)
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_can_build_shared=no
8497 ;;
8498
8499 uts4*)
8500 lt_prog_compiler_pic='-pic'
8501 lt_prog_compiler_static='-Bstatic'
8502 ;;
8503
8504 *)
8505 lt_prog_compiler_can_build_shared=no
8506 ;;
8507 esac
8508 fi
8509
8510 case $host_os in
8511 # For platforms that do not support PIC, -DPIC is meaningless:
8512 *djgpp*)
8513 lt_prog_compiler_pic=
8514 ;;
8515 *)
8516 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8517 ;;
8518 esac
8519
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8521 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8522 if ${lt_cv_prog_compiler_pic+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8528 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8529 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8530
8531 #
8532 # Check to make sure the PIC flag actually works.
8533 #
8534 if test -n "$lt_prog_compiler_pic"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8536 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8537 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_prog_compiler_pic_works=no
8541 ac_outfile=conftest.$ac_objext
8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8544 # Insert the option either (1) after the last *FLAGS variable, or
8545 # (2) before a word containing "conftest.", or (3) at the end.
8546 # Note that $ac_compile itself does not contain backslashes and begins
8547 # with a dollar sign (not a hyphen), so the echo should work correctly.
8548 # The option is referenced via a variable to avoid confusing sed.
8549 lt_compile=`echo "$ac_compile" | $SED \
8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552 -e 's:$: $lt_compiler_flag:'`
8553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8554 (eval "$lt_compile" 2>conftest.err)
8555 ac_status=$?
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 if (exit $ac_status) && test -s "$ac_outfile"; then
8559 # The compiler can only warn and ignore the option if not recognized
8560 # So say no if there are warnings other than the usual output.
8561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8564 lt_cv_prog_compiler_pic_works=yes
8565 fi
8566 fi
8567 $RM conftest*
8568
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8571 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8572
8573 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8574 case $lt_prog_compiler_pic in
8575 "" | " "*) ;;
8576 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8577 esac
8578 else
8579 lt_prog_compiler_pic=
8580 lt_prog_compiler_can_build_shared=no
8581 fi
8582
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 #
8596 # Check to make sure the static flag actually works.
8597 #
8598 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8601 if ${lt_cv_prog_compiler_static_works+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 lt_cv_prog_compiler_static_works=no
8605 save_LDFLAGS=$LDFLAGS
8606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8609 # The linker can only warn and ignore the option if not recognized
8610 # So say no if there are warnings
8611 if test -s conftest.err; then
8612 # Append any errors to the config.log.
8613 cat conftest.err 1>&5
8614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8616 if diff conftest.exp conftest.er2 >/dev/null; then
8617 lt_cv_prog_compiler_static_works=yes
8618 fi
8619 else
8620 lt_cv_prog_compiler_static_works=yes
8621 fi
8622 fi
8623 $RM -r conftest*
8624 LDFLAGS=$save_LDFLAGS
8625
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8628 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8629
8630 if test yes = "$lt_cv_prog_compiler_static_works"; then
8631 :
8632 else
8633 lt_prog_compiler_static=
8634 fi
8635
8636
8637
8638
8639
8640
8641
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8643 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8644 if ${lt_cv_prog_compiler_c_o+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 lt_cv_prog_compiler_c_o=no
8648 $RM -r conftest 2>/dev/null
8649 mkdir conftest
8650 cd conftest
8651 mkdir out
8652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653
8654 lt_compiler_flag="-o out/conftest2.$ac_objext"
8655 # Insert the option either (1) after the last *FLAGS variable, or
8656 # (2) before a word containing "conftest.", or (3) at the end.
8657 # Note that $ac_compile itself does not contain backslashes and begins
8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
8659 lt_compile=`echo "$ac_compile" | $SED \
8660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662 -e 's:$: $lt_compiler_flag:'`
8663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8664 (eval "$lt_compile" 2>out/conftest.err)
8665 ac_status=$?
8666 cat out/conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8669 then
8670 # The compiler can only warn and ignore the option if not recognized
8671 # So say no if there are warnings
8672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8675 lt_cv_prog_compiler_c_o=yes
8676 fi
8677 fi
8678 chmod u+w . 2>&5
8679 $RM conftest*
8680 # SGI C++ compiler will create directory out/ii_files/ for
8681 # template instantiation
8682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8683 $RM out/* && rmdir out
8684 cd ..
8685 $RM -r conftest
8686 $RM conftest*
8687
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8690 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8691
8692
8693
8694
8695
8696
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8698 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8699 if ${lt_cv_prog_compiler_c_o+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 lt_cv_prog_compiler_c_o=no
8703 $RM -r conftest 2>/dev/null
8704 mkdir conftest
8705 cd conftest
8706 mkdir out
8707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8708
8709 lt_compiler_flag="-o out/conftest2.$ac_objext"
8710 # Insert the option either (1) after the last *FLAGS variable, or
8711 # (2) before a word containing "conftest.", or (3) at the end.
8712 # Note that $ac_compile itself does not contain backslashes and begins
8713 # with a dollar sign (not a hyphen), so the echo should work correctly.
8714 lt_compile=`echo "$ac_compile" | $SED \
8715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8717 -e 's:$: $lt_compiler_flag:'`
8718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8719 (eval "$lt_compile" 2>out/conftest.err)
8720 ac_status=$?
8721 cat out/conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8724 then
8725 # The compiler can only warn and ignore the option if not recognized
8726 # So say no if there are warnings
8727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8730 lt_cv_prog_compiler_c_o=yes
8731 fi
8732 fi
8733 chmod u+w . 2>&5
8734 $RM conftest*
8735 # SGI C++ compiler will create directory out/ii_files/ for
8736 # template instantiation
8737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8738 $RM out/* && rmdir out
8739 cd ..
8740 $RM -r conftest
8741 $RM conftest*
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8745 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8746
8747
8748
8749
8750 hard_links=nottested
8751 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8752 # do not overwrite the value of need_locks provided by the user
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8754 $as_echo_n "checking if we can lock with hard links... " >&6; }
8755 hard_links=yes
8756 $RM conftest*
8757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8758 touch conftest.a
8759 ln conftest.a conftest.b 2>&5 || hard_links=no
8760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8762 $as_echo "$hard_links" >&6; }
8763 if test no = "$hard_links"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8765 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8766 need_locks=warn
8767 fi
8768 else
8769 need_locks=no
8770 fi
8771
8772
8773
8774
8775
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8778 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8779
8780 runpath_var=
8781 allow_undefined_flag=
8782 always_export_symbols=no
8783 archive_cmds=
8784 archive_expsym_cmds=
8785 compiler_needs_object=no
8786 enable_shared_with_static_runtimes=no
8787 export_dynamic_flag_spec=
8788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8789 hardcode_automatic=no
8790 hardcode_direct=no
8791 hardcode_direct_absolute=no
8792 hardcode_libdir_flag_spec=
8793 hardcode_libdir_separator=
8794 hardcode_minus_L=no
8795 hardcode_shlibpath_var=unsupported
8796 inherit_rpath=no
8797 link_all_deplibs=unknown
8798 module_cmds=
8799 module_expsym_cmds=
8800 old_archive_from_new_cmds=
8801 old_archive_from_expsyms_cmds=
8802 thread_safe_flag_spec=
8803 whole_archive_flag_spec=
8804 # include_expsyms should be a list of space-separated symbols to be *always*
8805 # included in the symbol list
8806 include_expsyms=
8807 # exclude_expsyms can be an extended regexp of symbols to exclude
8808 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8809 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8810 # as well as any symbol that contains 'd'.
8811 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8813 # platforms (ab)use it in PIC code, but their linkers get confused if
8814 # the symbol is explicitly referenced. Since portable code cannot
8815 # rely on this symbol name, it's probably fine to never include it in
8816 # preloaded symbol tables.
8817 # Exclude shared library initialization/finalization symbols.
8818 extract_expsyms_cmds=
8819
8820 case $host_os in
8821 cygwin* | mingw* | pw32* | cegcc*)
8822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8823 # When not using gcc, we currently assume that we are using
8824 # Microsoft Visual C++.
8825 if test yes != "$GCC"; then
8826 with_gnu_ld=no
8827 fi
8828 ;;
8829 interix*)
8830 # we just hope/assume this is gcc and not c89 (= MSVC++)
8831 with_gnu_ld=yes
8832 ;;
8833 openbsd* | bitrig*)
8834 with_gnu_ld=no
8835 ;;
8836 esac
8837
8838 ld_shlibs=yes
8839
8840 # On some targets, GNU ld is compatible enough with the native linker
8841 # that we're better off using the native interface for both.
8842 lt_use_gnu_ld_interface=no
8843 if test yes = "$with_gnu_ld"; then
8844 case $host_os in
8845 aix*)
8846 # The AIX port of GNU ld has always aspired to compatibility
8847 # with the native linker. However, as the warning in the GNU ld
8848 # block says, versions before 2.19.5* couldn't really create working
8849 # shared libraries, regardless of the interface used.
8850 case `$LD -v 2>&1` in
8851 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8852 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8853 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8854 *)
8855 lt_use_gnu_ld_interface=yes
8856 ;;
8857 esac
8858 ;;
8859 *)
8860 lt_use_gnu_ld_interface=yes
8861 ;;
8862 esac
8863 fi
8864
8865 if test yes = "$lt_use_gnu_ld_interface"; then
8866 # If archive_cmds runs LD, not CC, wlarc should be empty
8867 wlarc='$wl'
8868
8869 # Set some defaults for GNU ld with shared library support. These
8870 # are reset later if shared libraries are not supported. Putting them
8871 # here allows them to be overridden if necessary.
8872 runpath_var=LD_RUN_PATH
8873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8874 export_dynamic_flag_spec='$wl--export-dynamic'
8875 # ancient GNU ld didn't support --whole-archive et. al.
8876 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8877 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8878 else
8879 whole_archive_flag_spec=
8880 fi
8881 supports_anon_versioning=no
8882 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8883 *GNU\ gold*) supports_anon_versioning=yes ;;
8884 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8887 *\ 2.11.*) ;; # other 2.11 versions
8888 *) supports_anon_versioning=yes ;;
8889 esac
8890
8891 # See if GNU ld supports shared libraries.
8892 case $host_os in
8893 aix[3-9]*)
8894 # On AIX/PPC, the GNU linker is very broken
8895 if test ia64 != "$host_cpu"; then
8896 ld_shlibs=no
8897 cat <<_LT_EOF 1>&2
8898
8899 *** Warning: the GNU linker, at least up to release 2.19, is reported
8900 *** to be unable to reliably create shared libraries on AIX.
8901 *** Therefore, libtool is disabling shared libraries support. If you
8902 *** really care for shared libraries, you may want to install binutils
8903 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8904 *** You will then need to restart the configuration process.
8905
8906 _LT_EOF
8907 fi
8908 ;;
8909
8910 amigaos*)
8911 case $host_cpu in
8912 powerpc)
8913 # see comment about AmigaOS4 .so support
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8915 archive_expsym_cmds=''
8916 ;;
8917 m68k)
8918 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)'
8919 hardcode_libdir_flag_spec='-L$libdir'
8920 hardcode_minus_L=yes
8921 ;;
8922 esac
8923 ;;
8924
8925 beos*)
8926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8927 allow_undefined_flag=unsupported
8928 # Joseph Beckenbach <[email protected]> says some releases of gcc
8929 # support --undefined. This deserves some investigation. FIXME
8930 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8931 else
8932 ld_shlibs=no
8933 fi
8934 ;;
8935
8936 cygwin* | mingw* | pw32* | cegcc*)
8937 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8938 # as there is no search path for DLLs.
8939 hardcode_libdir_flag_spec='-L$libdir'
8940 export_dynamic_flag_spec='$wl--export-all-symbols'
8941 allow_undefined_flag=unsupported
8942 always_export_symbols=no
8943 enable_shared_with_static_runtimes=yes
8944 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'
8945 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8946
8947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8949 # If the export-symbols file already is a .def file, use it as
8950 # is; otherwise, prepend EXPORTS...
8951 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8952 cp $export_symbols $output_objdir/$soname.def;
8953 else
8954 echo EXPORTS > $output_objdir/$soname.def;
8955 cat $export_symbols >> $output_objdir/$soname.def;
8956 fi~
8957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
8963 haiku*)
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8965 link_all_deplibs=yes
8966 ;;
8967
8968 os2*)
8969 hardcode_libdir_flag_spec='-L$libdir'
8970 hardcode_minus_L=yes
8971 allow_undefined_flag=unsupported
8972 shrext_cmds=.dll
8973 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8976 $ECHO EXPORTS >> $output_objdir/$libname.def~
8977 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8978 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8979 emximp -o $lib $output_objdir/$libname.def'
8980 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8981 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8982 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8983 $ECHO EXPORTS >> $output_objdir/$libname.def~
8984 prefix_cmds="$SED"~
8985 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8986 prefix_cmds="$prefix_cmds -e 1d";
8987 fi~
8988 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8989 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8990 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8991 emximp -o $lib $output_objdir/$libname.def'
8992 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8993 enable_shared_with_static_runtimes=yes
8994 ;;
8995
8996 interix[3-9]*)
8997 hardcode_direct=no
8998 hardcode_shlibpath_var=no
8999 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9000 export_dynamic_flag_spec='$wl-E'
9001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9002 # Instead, shared libraries are loaded at an image base (0x10000000 by
9003 # default) and relocated if they conflict, which is a slow very memory
9004 # consuming and fragmenting process. To avoid this, we pick a random,
9005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9008 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'
9009 ;;
9010
9011 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9012 tmp_diet=no
9013 if test linux-dietlibc = "$host_os"; then
9014 case $cc_basename in
9015 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9016 esac
9017 fi
9018 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9019 && test no = "$tmp_diet"
9020 then
9021 tmp_addflag=' $pic_flag'
9022 tmp_sharedflag='-shared'
9023 case $cc_basename,$host_cpu in
9024 pgcc*) # Portland Group C compiler
9025 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'
9026 tmp_addflag=' $pic_flag'
9027 ;;
9028 pgf77* | pgf90* | pgf95* | pgfortran*)
9029 # Portland Group f77 and f90 compilers
9030 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'
9031 tmp_addflag=' $pic_flag -Mnomain' ;;
9032 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9033 tmp_addflag=' -i_dynamic' ;;
9034 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9035 tmp_addflag=' -i_dynamic -nofor_main' ;;
9036 ifc* | ifort*) # Intel Fortran compiler
9037 tmp_addflag=' -nofor_main' ;;
9038 lf95*) # Lahey Fortran 8.1
9039 whole_archive_flag_spec=
9040 tmp_sharedflag='--shared' ;;
9041 nagfor*) # NAGFOR 5.3
9042 tmp_sharedflag='-Wl,-shared' ;;
9043 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9044 tmp_sharedflag='-qmkshrobj'
9045 tmp_addflag= ;;
9046 nvcc*) # Cuda Compiler Driver 2.2
9047 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'
9048 compiler_needs_object=yes
9049 ;;
9050 esac
9051 case `$CC -V 2>&1 | sed 5q` in
9052 *Sun\ C*) # Sun C 5.9
9053 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'
9054 compiler_needs_object=yes
9055 tmp_sharedflag='-G' ;;
9056 *Sun\ F*) # Sun Fortran 8.3
9057 tmp_sharedflag='-G' ;;
9058 esac
9059 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9060
9061 if test yes = "$supports_anon_versioning"; then
9062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9064 echo "local: *; };" >> $output_objdir/$libname.ver~
9065 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9066 fi
9067
9068 case $cc_basename in
9069 tcc*)
9070 export_dynamic_flag_spec='-rdynamic'
9071 ;;
9072 xlf* | bgf* | bgxlf* | mpixlf*)
9073 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9074 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9075 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9076 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9077 if test yes = "$supports_anon_versioning"; then
9078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9080 echo "local: *; };" >> $output_objdir/$libname.ver~
9081 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9082 fi
9083 ;;
9084 esac
9085 else
9086 ld_shlibs=no
9087 fi
9088 ;;
9089
9090 netbsd*)
9091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9092 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9093 wlarc=
9094 else
9095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9096 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9097 fi
9098 ;;
9099
9100 solaris*)
9101 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9102 ld_shlibs=no
9103 cat <<_LT_EOF 1>&2
9104
9105 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9106 *** create shared libraries on Solaris systems. Therefore, libtool
9107 *** is disabling shared libraries support. We urge you to upgrade GNU
9108 *** binutils to release 2.9.1 or newer. Another option is to modify
9109 *** your PATH or compiler configuration so that the native linker is
9110 *** used, and then restart.
9111
9112 _LT_EOF
9113 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9115 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9116 else
9117 ld_shlibs=no
9118 fi
9119 ;;
9120
9121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9122 case `$LD -v 2>&1` in
9123 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9124 ld_shlibs=no
9125 cat <<_LT_EOF 1>&2
9126
9127 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9128 *** reliably create shared libraries on SCO systems. Therefore, libtool
9129 *** is disabling shared libraries support. We urge you to upgrade GNU
9130 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9131 *** your PATH or compiler configuration so that the native linker is
9132 *** used, and then restart.
9133
9134 _LT_EOF
9135 ;;
9136 *)
9137 # For security reasons, it is highly recommended that you always
9138 # use absolute paths for naming shared libraries, and exclude the
9139 # DT_RUNPATH tag from executables and libraries. But doing so
9140 # requires that you compile everything twice, which is a pain.
9141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9142 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9145 else
9146 ld_shlibs=no
9147 fi
9148 ;;
9149 esac
9150 ;;
9151
9152 sunos4*)
9153 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9154 wlarc=
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9157 ;;
9158
9159 *)
9160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9163 else
9164 ld_shlibs=no
9165 fi
9166 ;;
9167 esac
9168
9169 if test no = "$ld_shlibs"; then
9170 runpath_var=
9171 hardcode_libdir_flag_spec=
9172 export_dynamic_flag_spec=
9173 whole_archive_flag_spec=
9174 fi
9175 else
9176 # PORTME fill in a description of your system's linker (not GNU ld)
9177 case $host_os in
9178 aix3*)
9179 allow_undefined_flag=unsupported
9180 always_export_symbols=yes
9181 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'
9182 # Note: this linker hardcodes the directories in LIBPATH if there
9183 # are no directories specified by -L.
9184 hardcode_minus_L=yes
9185 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9186 # Neither direct hardcoding nor static linking is supported with a
9187 # broken collect2.
9188 hardcode_direct=unsupported
9189 fi
9190 ;;
9191
9192 aix[4-9]*)
9193 if test ia64 = "$host_cpu"; then
9194 # On IA64, the linker does run time linking by default, so we don't
9195 # have to do anything special.
9196 aix_use_runtimelinking=no
9197 exp_sym_flag='-Bexport'
9198 no_entry_flag=
9199 else
9200 # If we're using GNU nm, then we don't want the "-C" option.
9201 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9202 # Without the "-l" option, or with the "-B" option, AIX nm treats
9203 # weak defined symbols like other global defined symbols, whereas
9204 # GNU nm marks them as "W".
9205 # While the 'weak' keyword is ignored in the Export File, we need
9206 # it in the Import File for the 'aix-soname' feature, so we have
9207 # to replace the "-B" option with "-P" for AIX nm.
9208 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9209 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'
9210 else
9211 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'
9212 fi
9213 aix_use_runtimelinking=no
9214
9215 # Test if we are trying to use run time linking or normal
9216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9217 # have runtime linking enabled, and use it for executables.
9218 # For shared libraries, we enable/disable runtime linking
9219 # depending on the kind of the shared library created -
9220 # when "with_aix_soname,aix_use_runtimelinking" is:
9221 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9222 # "aix,yes" lib.so shared, rtl:yes, for executables
9223 # lib.a static archive
9224 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9225 # lib.a(lib.so.V) shared, rtl:no, for executables
9226 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9227 # lib.a(lib.so.V) shared, rtl:no
9228 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9229 # lib.a static archive
9230 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9231 for ld_flag in $LDFLAGS; do
9232 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9233 aix_use_runtimelinking=yes
9234 break
9235 fi
9236 done
9237 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9238 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9239 # so we don't have lib.a shared libs to link our executables.
9240 # We have to force runtime linking in this case.
9241 aix_use_runtimelinking=yes
9242 LDFLAGS="$LDFLAGS -Wl,-brtl"
9243 fi
9244 ;;
9245 esac
9246
9247 exp_sym_flag='-bexport'
9248 no_entry_flag='-bnoentry'
9249 fi
9250
9251 # When large executables or shared objects are built, AIX ld can
9252 # have problems creating the table of contents. If linking a library
9253 # or program results in "error TOC overflow" add -mminimal-toc to
9254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9256
9257 archive_cmds=''
9258 hardcode_direct=yes
9259 hardcode_direct_absolute=yes
9260 hardcode_libdir_separator=':'
9261 link_all_deplibs=yes
9262 file_list_spec='$wl-f,'
9263 case $with_aix_soname,$aix_use_runtimelinking in
9264 aix,*) ;; # traditional, no import file
9265 svr4,* | *,yes) # use import file
9266 # The Import File defines what to hardcode.
9267 hardcode_direct=no
9268 hardcode_direct_absolute=no
9269 ;;
9270 esac
9271
9272 if test yes = "$GCC"; then
9273 case $host_os in aix4.[012]|aix4.[012].*)
9274 # We only want to do this on AIX 4.2 and lower, the check
9275 # below for broken collect2 doesn't work under 4.3+
9276 collect2name=`$CC -print-prog-name=collect2`
9277 if test -f "$collect2name" &&
9278 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9279 then
9280 # We have reworked collect2
9281 :
9282 else
9283 # We have old collect2
9284 hardcode_direct=unsupported
9285 # It fails to find uninstalled libraries when the uninstalled
9286 # path is not listed in the libpath. Setting hardcode_minus_L
9287 # to unsupported forces relinking
9288 hardcode_minus_L=yes
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_libdir_separator=
9291 fi
9292 ;;
9293 esac
9294 shared_flag='-shared'
9295 if test yes = "$aix_use_runtimelinking"; then
9296 shared_flag="$shared_flag "'$wl-G'
9297 fi
9298 # Need to ensure runtime linking is disabled for the traditional
9299 # shared library, or the linker may eventually find shared libraries
9300 # /with/ Import File - we do not want to mix them.
9301 shared_flag_aix='-shared'
9302 shared_flag_svr4='-shared $wl-G'
9303 else
9304 # not using gcc
9305 if test ia64 = "$host_cpu"; then
9306 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9307 # chokes on -Wl,-G. The following line is correct:
9308 shared_flag='-G'
9309 else
9310 if test yes = "$aix_use_runtimelinking"; then
9311 shared_flag='$wl-G'
9312 else
9313 shared_flag='$wl-bM:SRE'
9314 fi
9315 shared_flag_aix='$wl-bM:SRE'
9316 shared_flag_svr4='$wl-G'
9317 fi
9318 fi
9319
9320 export_dynamic_flag_spec='$wl-bexpall'
9321 # It seems that -bexpall does not export symbols beginning with
9322 # underscore (_), so it is better to generate a list of symbols to export.
9323 always_export_symbols=yes
9324 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9325 # Warning - without using the other runtime loading flags (-brtl),
9326 # -berok will link without error, but may produce a broken library.
9327 allow_undefined_flag='-berok'
9328 # Determine the default libpath from the value encoded in an
9329 # empty executable.
9330 if test set = "${lt_cv_aix_libpath+set}"; then
9331 aix_libpath=$lt_cv_aix_libpath
9332 else
9333 if ${lt_cv_aix_libpath_+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338
9339 int
9340 main ()
9341 {
9342
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348
9349 lt_aix_libpath_sed='
9350 /Import File Strings/,/^$/ {
9351 /^0/ {
9352 s/^0 *\([^ ]*\) *$/\1/
9353 p
9354 }
9355 }'
9356 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9357 # Check for a 64-bit object if we didn't find anything.
9358 if test -z "$lt_cv_aix_libpath_"; then
9359 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9360 fi
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 if test -z "$lt_cv_aix_libpath_"; then
9365 lt_cv_aix_libpath_=/usr/lib:/lib
9366 fi
9367
9368 fi
9369
9370 aix_libpath=$lt_cv_aix_libpath_
9371 fi
9372
9373 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9374 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
9375 else
9376 if test ia64 = "$host_cpu"; then
9377 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9378 allow_undefined_flag="-z nodefs"
9379 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"
9380 else
9381 # Determine the default libpath from the value encoded in an
9382 # empty executable.
9383 if test set = "${lt_cv_aix_libpath+set}"; then
9384 aix_libpath=$lt_cv_aix_libpath
9385 else
9386 if ${lt_cv_aix_libpath_+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391
9392 int
9393 main ()
9394 {
9395
9396 ;
9397 return 0;
9398 }
9399 _ACEOF
9400 if ac_fn_c_try_link "$LINENO"; then :
9401
9402 lt_aix_libpath_sed='
9403 /Import File Strings/,/^$/ {
9404 /^0/ {
9405 s/^0 *\([^ ]*\) *$/\1/
9406 p
9407 }
9408 }'
9409 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410 # Check for a 64-bit object if we didn't find anything.
9411 if test -z "$lt_cv_aix_libpath_"; then
9412 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9413 fi
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 if test -z "$lt_cv_aix_libpath_"; then
9418 lt_cv_aix_libpath_=/usr/lib:/lib
9419 fi
9420
9421 fi
9422
9423 aix_libpath=$lt_cv_aix_libpath_
9424 fi
9425
9426 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9427 # Warning - without using the other run time loading flags,
9428 # -berok will link without error, but may produce a broken library.
9429 no_undefined_flag=' $wl-bernotok'
9430 allow_undefined_flag=' $wl-berok'
9431 if test yes = "$with_gnu_ld"; then
9432 # We only use this code for GNU lds that support --whole-archive.
9433 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9434 else
9435 # Exported symbols can be pulled into shared objects from archives
9436 whole_archive_flag_spec='$convenience'
9437 fi
9438 archive_cmds_need_lc=yes
9439 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9440 # -brtl affects multiple linker settings, -berok does not and is overridden later
9441 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9442 if test svr4 != "$with_aix_soname"; then
9443 # This is similar to how AIX traditionally builds its shared libraries.
9444 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'
9445 fi
9446 if test aix != "$with_aix_soname"; then
9447 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'
9448 else
9449 # used by -dlpreopen to get the symbols
9450 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9451 fi
9452 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9453 fi
9454 fi
9455 ;;
9456
9457 amigaos*)
9458 case $host_cpu in
9459 powerpc)
9460 # see comment about AmigaOS4 .so support
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9462 archive_expsym_cmds=''
9463 ;;
9464 m68k)
9465 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)'
9466 hardcode_libdir_flag_spec='-L$libdir'
9467 hardcode_minus_L=yes
9468 ;;
9469 esac
9470 ;;
9471
9472 bsdi[45]*)
9473 export_dynamic_flag_spec=-rdynamic
9474 ;;
9475
9476 cygwin* | mingw* | pw32* | cegcc*)
9477 # When not using gcc, we currently assume that we are using
9478 # Microsoft Visual C++.
9479 # hardcode_libdir_flag_spec is actually meaningless, as there is
9480 # no search path for DLLs.
9481 case $cc_basename in
9482 cl*)
9483 # Native MSVC
9484 hardcode_libdir_flag_spec=' '
9485 allow_undefined_flag=unsupported
9486 always_export_symbols=yes
9487 file_list_spec='@'
9488 # Tell ltmain to make .lib files, not .a files.
9489 libext=lib
9490 # Tell ltmain to make .dll files, not .so files.
9491 shrext_cmds=.dll
9492 # FIXME: Setting linknames here is a bad hack.
9493 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9494 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9495 cp "$export_symbols" "$output_objdir/$soname.def";
9496 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9497 else
9498 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9499 fi~
9500 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9501 linknames='
9502 # The linker will not automatically build a static lib if we build a DLL.
9503 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9504 enable_shared_with_static_runtimes=yes
9505 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9507 # Don't use ranlib
9508 old_postinstall_cmds='chmod 644 $oldlib'
9509 postlink_cmds='lt_outputfile="@OUTPUT@"~
9510 lt_tool_outputfile="@TOOL_OUTPUT@"~
9511 case $lt_outputfile in
9512 *.exe|*.EXE) ;;
9513 *)
9514 lt_outputfile=$lt_outputfile.exe
9515 lt_tool_outputfile=$lt_tool_outputfile.exe
9516 ;;
9517 esac~
9518 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9519 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9520 $RM "$lt_outputfile.manifest";
9521 fi'
9522 ;;
9523 *)
9524 # Assume MSVC wrapper
9525 hardcode_libdir_flag_spec=' '
9526 allow_undefined_flag=unsupported
9527 # Tell ltmain to make .lib files, not .a files.
9528 libext=lib
9529 # Tell ltmain to make .dll files, not .so files.
9530 shrext_cmds=.dll
9531 # FIXME: Setting linknames here is a bad hack.
9532 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9533 # The linker will automatically build a .lib file if we build a DLL.
9534 old_archive_from_new_cmds='true'
9535 # FIXME: Should let the user specify the lib program.
9536 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9537 enable_shared_with_static_runtimes=yes
9538 ;;
9539 esac
9540 ;;
9541
9542 darwin* | rhapsody*)
9543
9544
9545 archive_cmds_need_lc=no
9546 hardcode_direct=no
9547 hardcode_automatic=yes
9548 hardcode_shlibpath_var=unsupported
9549 if test yes = "$lt_cv_ld_force_load"; then
9550 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\"`'
9551
9552 else
9553 whole_archive_flag_spec=''
9554 fi
9555 link_all_deplibs=yes
9556 allow_undefined_flag=$_lt_dar_allow_undefined
9557 case $cc_basename in
9558 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9559 *) _lt_dar_can_shared=$GCC ;;
9560 esac
9561 if test yes = "$_lt_dar_can_shared"; then
9562 output_verbose_link_cmd=func_echo_all
9563 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9564 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9565 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"
9566 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"
9567
9568 else
9569 ld_shlibs=no
9570 fi
9571
9572 ;;
9573
9574 dgux*)
9575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_shlibpath_var=no
9578 ;;
9579
9580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9581 # support. Future versions do this automatically, but an explicit c++rt0.o
9582 # does not break anything, and helps significantly (at the cost of a little
9583 # extra space).
9584 freebsd2.2*)
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9589 ;;
9590
9591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9592 freebsd2.*)
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9594 hardcode_direct=yes
9595 hardcode_minus_L=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9600 freebsd* | dragonfly*)
9601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9602 hardcode_libdir_flag_spec='-R$libdir'
9603 hardcode_direct=yes
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 hpux9*)
9608 if test yes = "$GCC"; then
9609 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'
9610 else
9611 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'
9612 fi
9613 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9614 hardcode_libdir_separator=:
9615 hardcode_direct=yes
9616
9617 # hardcode_minus_L: Not really in the search PATH,
9618 # but as the default location of the library.
9619 hardcode_minus_L=yes
9620 export_dynamic_flag_spec='$wl-E'
9621 ;;
9622
9623 hpux10*)
9624 if test yes,no = "$GCC,$with_gnu_ld"; then
9625 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9626 else
9627 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9628 fi
9629 if test no = "$with_gnu_ld"; then
9630 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9631 hardcode_libdir_separator=:
9632 hardcode_direct=yes
9633 hardcode_direct_absolute=yes
9634 export_dynamic_flag_spec='$wl-E'
9635 # hardcode_minus_L: Not really in the search PATH,
9636 # but as the default location of the library.
9637 hardcode_minus_L=yes
9638 fi
9639 ;;
9640
9641 hpux11*)
9642 if test yes,no = "$GCC,$with_gnu_ld"; then
9643 case $host_cpu in
9644 hppa*64*)
9645 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 ;;
9647 ia64*)
9648 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9649 ;;
9650 *)
9651 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9652 ;;
9653 esac
9654 else
9655 case $host_cpu in
9656 hppa*64*)
9657 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 ;;
9659 ia64*)
9660 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9661 ;;
9662 *)
9663
9664 # Older versions of the 11.00 compiler do not understand -b yet
9665 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9667 $as_echo_n "checking if $CC understands -b... " >&6; }
9668 if ${lt_cv_prog_compiler__b+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 lt_cv_prog_compiler__b=no
9672 save_LDFLAGS=$LDFLAGS
9673 LDFLAGS="$LDFLAGS -b"
9674 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9676 # The linker can only warn and ignore the option if not recognized
9677 # So say no if there are warnings
9678 if test -s conftest.err; then
9679 # Append any errors to the config.log.
9680 cat conftest.err 1>&5
9681 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9683 if diff conftest.exp conftest.er2 >/dev/null; then
9684 lt_cv_prog_compiler__b=yes
9685 fi
9686 else
9687 lt_cv_prog_compiler__b=yes
9688 fi
9689 fi
9690 $RM -r conftest*
9691 LDFLAGS=$save_LDFLAGS
9692
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9695 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9696
9697 if test yes = "$lt_cv_prog_compiler__b"; then
9698 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 fi
9702
9703 ;;
9704 esac
9705 fi
9706 if test no = "$with_gnu_ld"; then
9707 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9708 hardcode_libdir_separator=:
9709
9710 case $host_cpu in
9711 hppa*64*|ia64*)
9712 hardcode_direct=no
9713 hardcode_shlibpath_var=no
9714 ;;
9715 *)
9716 hardcode_direct=yes
9717 hardcode_direct_absolute=yes
9718 export_dynamic_flag_spec='$wl-E'
9719
9720 # hardcode_minus_L: Not really in the search PATH,
9721 # but as the default location of the library.
9722 hardcode_minus_L=yes
9723 ;;
9724 esac
9725 fi
9726 ;;
9727
9728 irix5* | irix6* | nonstopux*)
9729 if test yes = "$GCC"; then
9730 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'
9731 # Try to use the -exported_symbol ld option, if it does not
9732 # work, assume that -exports_file does not work either and
9733 # implicitly export all symbols.
9734 # This should be the same for all languages, so no per-tag cache variable.
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9736 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9737 if ${lt_cv_irix_exported_symbol+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 save_LDFLAGS=$LDFLAGS
9741 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 int foo (void) { return 0; }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 lt_cv_irix_exported_symbol=yes
9748 else
9749 lt_cv_irix_exported_symbol=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LDFLAGS=$save_LDFLAGS
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9756 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9757 if test yes = "$lt_cv_irix_exported_symbol"; then
9758 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'
9759 fi
9760 else
9761 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'
9762 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'
9763 fi
9764 archive_cmds_need_lc='no'
9765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9766 hardcode_libdir_separator=:
9767 inherit_rpath=yes
9768 link_all_deplibs=yes
9769 ;;
9770
9771 linux*)
9772 case $cc_basename in
9773 tcc*)
9774 # Fabrice Bellard et al's Tiny C Compiler
9775 ld_shlibs=yes
9776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 esac
9779 ;;
9780
9781 netbsd*)
9782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9784 else
9785 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9786 fi
9787 hardcode_libdir_flag_spec='-R$libdir'
9788 hardcode_direct=yes
9789 hardcode_shlibpath_var=no
9790 ;;
9791
9792 newsos6)
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct=yes
9795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9796 hardcode_libdir_separator=:
9797 hardcode_shlibpath_var=no
9798 ;;
9799
9800 *nto* | *qnx*)
9801 ;;
9802
9803 openbsd* | bitrig*)
9804 if test -f /usr/libexec/ld.so; then
9805 hardcode_direct=yes
9806 hardcode_shlibpath_var=no
9807 hardcode_direct_absolute=yes
9808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9811 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9812 export_dynamic_flag_spec='$wl-E'
9813 else
9814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9815 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9816 fi
9817 else
9818 ld_shlibs=no
9819 fi
9820 ;;
9821
9822 os2*)
9823 hardcode_libdir_flag_spec='-L$libdir'
9824 hardcode_minus_L=yes
9825 allow_undefined_flag=unsupported
9826 shrext_cmds=.dll
9827 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9828 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9829 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9830 $ECHO EXPORTS >> $output_objdir/$libname.def~
9831 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9832 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9833 emximp -o $lib $output_objdir/$libname.def'
9834 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9835 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9836 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9837 $ECHO EXPORTS >> $output_objdir/$libname.def~
9838 prefix_cmds="$SED"~
9839 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9840 prefix_cmds="$prefix_cmds -e 1d";
9841 fi~
9842 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9843 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9844 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9845 emximp -o $lib $output_objdir/$libname.def'
9846 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9847 enable_shared_with_static_runtimes=yes
9848 ;;
9849
9850 osf3*)
9851 if test yes = "$GCC"; then
9852 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9853 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'
9854 else
9855 allow_undefined_flag=' -expect_unresolved \*'
9856 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'
9857 fi
9858 archive_cmds_need_lc='no'
9859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9860 hardcode_libdir_separator=:
9861 ;;
9862
9863 osf4* | osf5*) # as osf3* with the addition of -msym flag
9864 if test yes = "$GCC"; then
9865 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9866 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'
9867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9868 else
9869 allow_undefined_flag=' -expect_unresolved \*'
9870 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'
9871 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~
9872 $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'
9873
9874 # Both c and cxx compiler support -rpath directly
9875 hardcode_libdir_flag_spec='-rpath $libdir'
9876 fi
9877 archive_cmds_need_lc='no'
9878 hardcode_libdir_separator=:
9879 ;;
9880
9881 solaris*)
9882 no_undefined_flag=' -z defs'
9883 if test yes = "$GCC"; then
9884 wlarc='$wl'
9885 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9887 $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'
9888 else
9889 case `$CC -V 2>&1` in
9890 *"Compilers 5.0"*)
9891 wlarc=''
9892 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9894 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9895 ;;
9896 *)
9897 wlarc='$wl'
9898 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9901 ;;
9902 esac
9903 fi
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_shlibpath_var=no
9906 case $host_os in
9907 solaris2.[0-5] | solaris2.[0-5].*) ;;
9908 *)
9909 # The compiler driver will combine and reorder linker options,
9910 # but understands '-z linker_flag'. GCC discards it without '$wl',
9911 # but is careful enough not to reorder.
9912 # Supported since Solaris 2.6 (maybe 2.5.1?)
9913 if test yes = "$GCC"; then
9914 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9915 else
9916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9917 fi
9918 ;;
9919 esac
9920 link_all_deplibs=yes
9921 ;;
9922
9923 sunos4*)
9924 if test sequent = "$host_vendor"; then
9925 # Use $CC to link under sequent, because it throws in some extra .o
9926 # files that make .init and .fini sections work.
9927 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9928 else
9929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9930 fi
9931 hardcode_libdir_flag_spec='-L$libdir'
9932 hardcode_direct=yes
9933 hardcode_minus_L=yes
9934 hardcode_shlibpath_var=no
9935 ;;
9936
9937 sysv4)
9938 case $host_vendor in
9939 sni)
9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_direct=yes # is this really true???
9942 ;;
9943 siemens)
9944 ## LD is ld it makes a PLAMLIB
9945 ## CC just makes a GrossModule.
9946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9947 reload_cmds='$CC -r -o $output$reload_objs'
9948 hardcode_direct=no
9949 ;;
9950 motorola)
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9953 ;;
9954 esac
9955 runpath_var='LD_RUN_PATH'
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 sysv4.3*)
9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_shlibpath_var=no
9962 export_dynamic_flag_spec='-Bexport'
9963 ;;
9964
9965 sysv4*MP*)
9966 if test -d /usr/nec; then
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_shlibpath_var=no
9969 runpath_var=LD_RUN_PATH
9970 hardcode_runpath_var=yes
9971 ld_shlibs=yes
9972 fi
9973 ;;
9974
9975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9976 no_undefined_flag='$wl-z,text'
9977 archive_cmds_need_lc=no
9978 hardcode_shlibpath_var=no
9979 runpath_var='LD_RUN_PATH'
9980
9981 if test yes = "$GCC"; then
9982 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 else
9985 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 fi
9988 ;;
9989
9990 sysv5* | sco3.2v5* | sco5v6*)
9991 # Note: We CANNOT use -z defs as we might desire, because we do not
9992 # link with -lc, and that would cause any symbols used from libc to
9993 # always be unresolved, which means just about no library would
9994 # ever link correctly. If we're not using GNU ld we use -z text
9995 # though, which does catch some bad symbols but isn't as heavy-handed
9996 # as -z defs.
9997 no_undefined_flag='$wl-z,text'
9998 allow_undefined_flag='$wl-z,nodefs'
9999 archive_cmds_need_lc=no
10000 hardcode_shlibpath_var=no
10001 hardcode_libdir_flag_spec='$wl-R,$libdir'
10002 hardcode_libdir_separator=':'
10003 link_all_deplibs=yes
10004 export_dynamic_flag_spec='$wl-Bexport'
10005 runpath_var='LD_RUN_PATH'
10006
10007 if test yes = "$GCC"; then
10008 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 else
10011 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 fi
10014 ;;
10015
10016 uts4*)
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 *)
10023 ld_shlibs=no
10024 ;;
10025 esac
10026
10027 if test sni = "$host_vendor"; then
10028 case $host in
10029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030 export_dynamic_flag_spec='$wl-Blargedynsym'
10031 ;;
10032 esac
10033 fi
10034 fi
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10037 $as_echo "$ld_shlibs" >&6; }
10038 test no = "$ld_shlibs" && can_build_shared=no
10039
10040 with_gnu_ld=$with_gnu_ld
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056 #
10057 # Do we need to explicitly link libc?
10058 #
10059 case "x$archive_cmds_need_lc" in
10060 x|xyes)
10061 # Assume -lc should be added
10062 archive_cmds_need_lc=yes
10063
10064 if test yes,yes = "$GCC,$enable_shared"; then
10065 case $archive_cmds in
10066 *'~'*)
10067 # FIXME: we may have to deal with multi-command sequences.
10068 ;;
10069 '$CC '*)
10070 # Test whether the compiler implicitly links with -lc since on some
10071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10072 # to ld, don't add -lc before -lgcc.
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10074 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10075 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 $RM conftest*
10079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10080
10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10082 (eval $ac_compile) 2>&5
10083 ac_status=$?
10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085 test $ac_status = 0; } 2>conftest.err; then
10086 soname=conftest
10087 lib=conftest
10088 libobjs=conftest.$ac_objext
10089 deplibs=
10090 wl=$lt_prog_compiler_wl
10091 pic_flag=$lt_prog_compiler_pic
10092 compiler_flags=-v
10093 linker_flags=-v
10094 verstring=
10095 output_objdir=.
10096 libname=conftest
10097 lt_save_allow_undefined_flag=$allow_undefined_flag
10098 allow_undefined_flag=
10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10101 ac_status=$?
10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 test $ac_status = 0; }
10104 then
10105 lt_cv_archive_cmds_need_lc=no
10106 else
10107 lt_cv_archive_cmds_need_lc=yes
10108 fi
10109 allow_undefined_flag=$lt_save_allow_undefined_flag
10110 else
10111 cat conftest.err 1>&5
10112 fi
10113 $RM conftest*
10114
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10117 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10119 ;;
10120 esac
10121 fi
10122 ;;
10123 esac
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10277 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10278
10279 if test yes = "$GCC"; then
10280 case $host_os in
10281 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10282 *) lt_awk_arg='/^libraries:/' ;;
10283 esac
10284 case $host_os in
10285 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10286 *) lt_sed_strip_eq='s|=/|/|g' ;;
10287 esac
10288 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10289 case $lt_search_path_spec in
10290 *\;*)
10291 # if the path contains ";" then we assume it to be the separator
10292 # otherwise default to the standard path separator (i.e. ":") - it is
10293 # assumed that no part of a normal pathname contains ";" but that should
10294 # okay in the real world where ";" in dirpaths is itself problematic.
10295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10296 ;;
10297 *)
10298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10299 ;;
10300 esac
10301 # Ok, now we have the path, separated by spaces, we can step through it
10302 # and add multilib dir if necessary...
10303 lt_tmp_lt_search_path_spec=
10304 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10305 # ...but if some path component already ends with the multilib dir we assume
10306 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10307 case "$lt_multi_os_dir; $lt_search_path_spec " in
10308 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10309 lt_multi_os_dir=
10310 ;;
10311 esac
10312 for lt_sys_path in $lt_search_path_spec; do
10313 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10315 elif test -n "$lt_multi_os_dir"; then
10316 test -d "$lt_sys_path" && \
10317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10318 fi
10319 done
10320 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10321 BEGIN {RS = " "; FS = "/|\n";} {
10322 lt_foo = "";
10323 lt_count = 0;
10324 for (lt_i = NF; lt_i > 0; lt_i--) {
10325 if ($lt_i != "" && $lt_i != ".") {
10326 if ($lt_i == "..") {
10327 lt_count++;
10328 } else {
10329 if (lt_count == 0) {
10330 lt_foo = "/" $lt_i lt_foo;
10331 } else {
10332 lt_count--;
10333 }
10334 }
10335 }
10336 }
10337 if (lt_foo != "") { lt_freq[lt_foo]++; }
10338 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10339 }'`
10340 # AWK program above erroneously prepends '/' to C:/dos/paths
10341 # for these hosts.
10342 case $host_os in
10343 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10344 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10345 esac
10346 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10347 else
10348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10349 fi
10350 library_names_spec=
10351 libname_spec='lib$name'
10352 soname_spec=
10353 shrext_cmds=.so
10354 postinstall_cmds=
10355 postuninstall_cmds=
10356 finish_cmds=
10357 finish_eval=
10358 shlibpath_var=
10359 shlibpath_overrides_runpath=unknown
10360 version_type=none
10361 dynamic_linker="$host_os ld.so"
10362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10363 need_lib_prefix=unknown
10364 hardcode_into_libs=no
10365
10366 # when you set need_version to no, make sure it does not cause -set_version
10367 # flags to be left without arguments
10368 need_version=unknown
10369
10370
10371
10372 case $host_os in
10373 aix3*)
10374 version_type=linux # correct to gnu/linux during the next big refactor
10375 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10376 shlibpath_var=LIBPATH
10377
10378 # AIX 3 has no versioning support, so we append a major version to the name.
10379 soname_spec='$libname$release$shared_ext$major'
10380 ;;
10381
10382 aix[4-9]*)
10383 version_type=linux # correct to gnu/linux during the next big refactor
10384 need_lib_prefix=no
10385 need_version=no
10386 hardcode_into_libs=yes
10387 if test ia64 = "$host_cpu"; then
10388 # AIX 5 supports IA64
10389 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 else
10392 # With GCC up to 2.95.x, collect2 would create an import file
10393 # for dependence libraries. The import file would start with
10394 # the line '#! .'. This would cause the generated library to
10395 # depend on '.', always an invalid library. This was fixed in
10396 # development snapshots of GCC prior to 3.0.
10397 case $host_os in
10398 aix4 | aix4.[01] | aix4.[01].*)
10399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10400 echo ' yes '
10401 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10402 :
10403 else
10404 can_build_shared=no
10405 fi
10406 ;;
10407 esac
10408 # Using Import Files as archive members, it is possible to support
10409 # filename-based versioning of shared library archives on AIX. While
10410 # this would work for both with and without runtime linking, it will
10411 # prevent static linking of such archives. So we do filename-based
10412 # shared library versioning with .so extension only, which is used
10413 # when both runtime linking and shared linking is enabled.
10414 # Unfortunately, runtime linking may impact performance, so we do
10415 # not want this to be the default eventually. Also, we use the
10416 # versioned .so libs for executables only if there is the -brtl
10417 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10418 # To allow for filename-based versioning support, we need to create
10419 # libNAME.so.V as an archive file, containing:
10420 # *) an Import File, referring to the versioned filename of the
10421 # archive as well as the shared archive member, telling the
10422 # bitwidth (32 or 64) of that shared object, and providing the
10423 # list of exported symbols of that shared object, eventually
10424 # decorated with the 'weak' keyword
10425 # *) the shared object with the F_LOADONLY flag set, to really avoid
10426 # it being seen by the linker.
10427 # At run time we better use the real file rather than another symlink,
10428 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10429
10430 case $with_aix_soname,$aix_use_runtimelinking in
10431 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10432 # soname into executable. Probably we can add versioning support to
10433 # collect2, so additional links can be useful in future.
10434 aix,yes) # traditional libtool
10435 dynamic_linker='AIX unversionable lib.so'
10436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10437 # instead of lib<name>.a to let people know that these are not
10438 # typical AIX shared libraries.
10439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10440 ;;
10441 aix,no) # traditional AIX only
10442 dynamic_linker='AIX lib.a(lib.so.V)'
10443 # We preserve .a as extension for shared libraries through AIX4.2
10444 # and later when we are not doing run time linking.
10445 library_names_spec='$libname$release.a $libname.a'
10446 soname_spec='$libname$release$shared_ext$major'
10447 ;;
10448 svr4,*) # full svr4 only
10449 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10450 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10451 # We do not specify a path in Import Files, so LIBPATH fires.
10452 shlibpath_overrides_runpath=yes
10453 ;;
10454 *,yes) # both, prefer svr4
10455 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10456 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10457 # unpreferred sharedlib libNAME.a needs extra handling
10458 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"'
10459 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"'
10460 # We do not specify a path in Import Files, so LIBPATH fires.
10461 shlibpath_overrides_runpath=yes
10462 ;;
10463 *,no) # both, prefer aix
10464 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10465 library_names_spec='$libname$release.a $libname.a'
10466 soname_spec='$libname$release$shared_ext$major'
10467 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10468 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)'
10469 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"'
10470 ;;
10471 esac
10472 shlibpath_var=LIBPATH
10473 fi
10474 ;;
10475
10476 amigaos*)
10477 case $host_cpu in
10478 powerpc)
10479 # Since July 2007 AmigaOS4 officially supports .so libraries.
10480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10482 ;;
10483 m68k)
10484 library_names_spec='$libname.ixlibrary $libname.a'
10485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10486 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'
10487 ;;
10488 esac
10489 ;;
10490
10491 beos*)
10492 library_names_spec='$libname$shared_ext'
10493 dynamic_linker="$host_os ld.so"
10494 shlibpath_var=LIBRARY_PATH
10495 ;;
10496
10497 bsdi[45]*)
10498 version_type=linux # correct to gnu/linux during the next big refactor
10499 need_version=no
10500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10501 soname_spec='$libname$release$shared_ext$major'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10506 # the default ld.so.conf also contains /usr/contrib/lib and
10507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10508 # libtool to hard-code these into programs
10509 ;;
10510
10511 cygwin* | mingw* | pw32* | cegcc*)
10512 version_type=windows
10513 shrext_cmds=.dll
10514 need_version=no
10515 need_lib_prefix=no
10516
10517 case $GCC,$cc_basename in
10518 yes,*)
10519 # gcc
10520 library_names_spec='$libname.dll.a'
10521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10522 postinstall_cmds='base_file=`basename \$file`~
10523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10524 dldir=$destdir/`dirname \$dlpath`~
10525 test -d \$dldir || mkdir -p \$dldir~
10526 $install_prog $dir/$dlname \$dldir/$dlname~
10527 chmod a+x \$dldir/$dlname~
10528 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10529 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10530 fi'
10531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10532 dlpath=$dir/\$dldll~
10533 $RM \$dlpath'
10534 shlibpath_overrides_runpath=yes
10535
10536 case $host_os in
10537 cygwin*)
10538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10539 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10540
10541 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10542 ;;
10543 mingw* | cegcc*)
10544 # MinGW DLLs use traditional 'lib' prefix
10545 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10546 ;;
10547 pw32*)
10548 # pw32 DLLs use 'pw' prefix rather than 'lib'
10549 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10550 ;;
10551 esac
10552 dynamic_linker='Win32 ld.exe'
10553 ;;
10554
10555 *,cl*)
10556 # Native MSVC
10557 libname_spec='$name'
10558 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10559 library_names_spec='$libname.dll.lib'
10560
10561 case $build_os in
10562 mingw*)
10563 sys_lib_search_path_spec=
10564 lt_save_ifs=$IFS
10565 IFS=';'
10566 for lt_path in $LIB
10567 do
10568 IFS=$lt_save_ifs
10569 # Let DOS variable expansion print the short 8.3 style file name.
10570 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10571 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10572 done
10573 IFS=$lt_save_ifs
10574 # Convert to MSYS style.
10575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10576 ;;
10577 cygwin*)
10578 # Convert to unix form, then to dos form, then back to unix form
10579 # but this time dos style (no spaces!) so that the unix form looks
10580 # like /cygdrive/c/PROGRA~1:/cygdr...
10581 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10582 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10583 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10584 ;;
10585 *)
10586 sys_lib_search_path_spec=$LIB
10587 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10588 # It is most probably a Windows format PATH.
10589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10590 else
10591 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10592 fi
10593 # FIXME: find the short name or the path components, as spaces are
10594 # common. (e.g. "Program Files" -> "PROGRA~1")
10595 ;;
10596 esac
10597
10598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10599 postinstall_cmds='base_file=`basename \$file`~
10600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10601 dldir=$destdir/`dirname \$dlpath`~
10602 test -d \$dldir || mkdir -p \$dldir~
10603 $install_prog $dir/$dlname \$dldir/$dlname'
10604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10605 dlpath=$dir/\$dldll~
10606 $RM \$dlpath'
10607 shlibpath_overrides_runpath=yes
10608 dynamic_linker='Win32 link.exe'
10609 ;;
10610
10611 *)
10612 # Assume MSVC wrapper
10613 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10614 dynamic_linker='Win32 ld.exe'
10615 ;;
10616 esac
10617 # FIXME: first we should search . and the directory the executable is in
10618 shlibpath_var=PATH
10619 ;;
10620
10621 darwin* | rhapsody*)
10622 dynamic_linker="$host_os dyld"
10623 version_type=darwin
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10627 soname_spec='$libname$release$major$shared_ext'
10628 shlibpath_overrides_runpath=yes
10629 shlibpath_var=DYLD_LIBRARY_PATH
10630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10631
10632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10634 ;;
10635
10636 dgux*)
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10641 soname_spec='$libname$release$shared_ext$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 ;;
10644
10645 freebsd* | dragonfly*)
10646 # DragonFly does not have aout. When/if they implement a new
10647 # versioning mechanism, adjust this.
10648 if test -x /usr/bin/objformat; then
10649 objformat=`/usr/bin/objformat`
10650 else
10651 case $host_os in
10652 freebsd[23].*) objformat=aout ;;
10653 *) objformat=elf ;;
10654 esac
10655 fi
10656 version_type=freebsd-$objformat
10657 case $version_type in
10658 freebsd-elf*)
10659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10660 soname_spec='$libname$release$shared_ext$major'
10661 need_version=no
10662 need_lib_prefix=no
10663 ;;
10664 freebsd-*)
10665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10666 need_version=yes
10667 ;;
10668 esac
10669 shlibpath_var=LD_LIBRARY_PATH
10670 case $host_os in
10671 freebsd2.*)
10672 shlibpath_overrides_runpath=yes
10673 ;;
10674 freebsd3.[01]* | freebsdelf3.[01]*)
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 ;;
10678 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10679 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10680 shlibpath_overrides_runpath=no
10681 hardcode_into_libs=yes
10682 ;;
10683 *) # from 4.6 on, and DragonFly
10684 shlibpath_overrides_runpath=yes
10685 hardcode_into_libs=yes
10686 ;;
10687 esac
10688 ;;
10689
10690 haiku*)
10691 version_type=linux # correct to gnu/linux during the next big refactor
10692 need_lib_prefix=no
10693 need_version=no
10694 dynamic_linker="$host_os runtime_loader"
10695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10696 soname_spec='$libname$release$shared_ext$major'
10697 shlibpath_var=LIBRARY_PATH
10698 shlibpath_overrides_runpath=no
10699 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10700 hardcode_into_libs=yes
10701 ;;
10702
10703 hpux9* | hpux10* | hpux11*)
10704 # Give a soname corresponding to the major version so that dld.sl refuses to
10705 # link against other versions.
10706 version_type=sunos
10707 need_lib_prefix=no
10708 need_version=no
10709 case $host_cpu in
10710 ia64*)
10711 shrext_cmds='.so'
10712 hardcode_into_libs=yes
10713 dynamic_linker="$host_os dld.so"
10714 shlibpath_var=LD_LIBRARY_PATH
10715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10717 soname_spec='$libname$release$shared_ext$major'
10718 if test 32 = "$HPUX_IA64_MODE"; then
10719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10720 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10721 else
10722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10723 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10724 fi
10725 ;;
10726 hppa*64*)
10727 shrext_cmds='.sl'
10728 hardcode_into_libs=yes
10729 dynamic_linker="$host_os dld.sl"
10730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733 soname_spec='$libname$release$shared_ext$major'
10734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736 ;;
10737 *)
10738 shrext_cmds='.sl'
10739 dynamic_linker="$host_os dld.sl"
10740 shlibpath_var=SHLIB_PATH
10741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10743 soname_spec='$libname$release$shared_ext$major'
10744 ;;
10745 esac
10746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10747 postinstall_cmds='chmod 555 $lib'
10748 # or fails outright, so override atomically:
10749 install_override_mode=555
10750 ;;
10751
10752 interix[3-9]*)
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10757 soname_spec='$libname$release$shared_ext$major'
10758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10762 ;;
10763
10764 irix5* | irix6* | nonstopux*)
10765 case $host_os in
10766 nonstopux*) version_type=nonstopux ;;
10767 *)
10768 if test yes = "$lt_cv_prog_gnu_ld"; then
10769 version_type=linux # correct to gnu/linux during the next big refactor
10770 else
10771 version_type=irix
10772 fi ;;
10773 esac
10774 need_lib_prefix=no
10775 need_version=no
10776 soname_spec='$libname$release$shared_ext$major'
10777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10778 case $host_os in
10779 irix5* | nonstopux*)
10780 libsuff= shlibsuff=
10781 ;;
10782 *)
10783 case $LD in # libtool.m4 will add one of these switches to LD
10784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10785 libsuff= shlibsuff= libmagic=32-bit;;
10786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10787 libsuff=32 shlibsuff=N32 libmagic=N32;;
10788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10790 *) libsuff= shlibsuff= libmagic=never-match;;
10791 esac
10792 ;;
10793 esac
10794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10795 shlibpath_overrides_runpath=no
10796 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10797 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10798 hardcode_into_libs=yes
10799 ;;
10800
10801 # No shared lib support for Linux oldld, aout, or coff.
10802 linux*oldld* | linux*aout* | linux*coff*)
10803 dynamic_linker=no
10804 ;;
10805
10806 linux*android*)
10807 version_type=none # Android doesn't support versioned libraries.
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='$libname$release$shared_ext'
10811 soname_spec='$libname$release$shared_ext'
10812 finish_cmds=
10813 shlibpath_var=LD_LIBRARY_PATH
10814 shlibpath_overrides_runpath=yes
10815
10816 # This implies no fast_install, which is unacceptable.
10817 # Some rework will be needed to allow for fast_install
10818 # before this can be enabled.
10819 hardcode_into_libs=yes
10820
10821 dynamic_linker='Android linker'
10822 # Don't embed -rpath directories since the linker doesn't support them.
10823 hardcode_libdir_flag_spec='-L$libdir'
10824 ;;
10825
10826 # This must be glibc/ELF.
10827 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10828 version_type=linux # correct to gnu/linux during the next big refactor
10829 need_lib_prefix=no
10830 need_version=no
10831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10832 soname_spec='$libname$release$shared_ext$major'
10833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=no
10836
10837 # Some binutils ld are patched to set DT_RUNPATH
10838 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 lt_cv_shlibpath_overrides_runpath=no
10842 save_LDFLAGS=$LDFLAGS
10843 save_libdir=$libdir
10844 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10845 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10848
10849 int
10850 main ()
10851 {
10852
10853 ;
10854 return 0;
10855 }
10856 _ACEOF
10857 if ac_fn_c_try_link "$LINENO"; then :
10858 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10859 lt_cv_shlibpath_overrides_runpath=yes
10860 fi
10861 fi
10862 rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864 LDFLAGS=$save_LDFLAGS
10865 libdir=$save_libdir
10866
10867 fi
10868
10869 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10870
10871 # This implies no fast_install, which is unacceptable.
10872 # Some rework will be needed to allow for fast_install
10873 # before this can be enabled.
10874 hardcode_into_libs=yes
10875
10876 # Ideally, we could use ldconfig to report *all* directores which are
10877 # searched for libraries, however this is still not possible. Aside from not
10878 # being certain /sbin/ldconfig is available, command
10879 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10880 # even though it is searched at run-time. Try to do the best guess by
10881 # appending ld.so.conf contents (and includes) to the search path.
10882 if test -f /etc/ld.so.conf; then
10883 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' ' '`
10884 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10885 fi
10886
10887 # We used to test for /lib/ld.so.1 and disable shared libraries on
10888 # powerpc, because MkLinux only supported shared libraries with the
10889 # GNU dynamic linker. Since this was broken with cross compilers,
10890 # most powerpc-linux boxes support dynamic linking these days and
10891 # people can always --disable-shared, the test was removed, and we
10892 # assume the GNU/Linux dynamic linker is in use.
10893 dynamic_linker='GNU/Linux ld.so'
10894 ;;
10895
10896 netbsd*)
10897 version_type=sunos
10898 need_lib_prefix=no
10899 need_version=no
10900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10903 dynamic_linker='NetBSD (a.out) ld.so'
10904 else
10905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10906 soname_spec='$libname$release$shared_ext$major'
10907 dynamic_linker='NetBSD ld.elf_so'
10908 fi
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=yes
10911 hardcode_into_libs=yes
10912 ;;
10913
10914 newsos6)
10915 version_type=linux # correct to gnu/linux during the next big refactor
10916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath=yes
10919 ;;
10920
10921 *nto* | *qnx*)
10922 version_type=qnx
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10926 soname_spec='$libname$release$shared_ext$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=no
10929 hardcode_into_libs=yes
10930 dynamic_linker='ldqnx.so'
10931 ;;
10932
10933 openbsd* | bitrig*)
10934 version_type=sunos
10935 sys_lib_dlsearch_path_spec=/usr/lib
10936 need_lib_prefix=no
10937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10938 need_version=no
10939 else
10940 need_version=yes
10941 fi
10942 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946 ;;
10947
10948 os2*)
10949 libname_spec='$name'
10950 version_type=windows
10951 shrext_cmds=.dll
10952 need_version=no
10953 need_lib_prefix=no
10954 # OS/2 can only load a DLL with a base name of 8 characters or less.
10955 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10956 v=$($ECHO $release$versuffix | tr -d .-);
10957 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10958 $ECHO $n$v`$shared_ext'
10959 library_names_spec='${libname}_dll.$libext'
10960 dynamic_linker='OS/2 ld.exe'
10961 shlibpath_var=BEGINLIBPATH
10962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964 postinstall_cmds='base_file=`basename \$file`~
10965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10966 dldir=$destdir/`dirname \$dlpath`~
10967 test -d \$dldir || mkdir -p \$dldir~
10968 $install_prog $dir/$dlname \$dldir/$dlname~
10969 chmod a+x \$dldir/$dlname~
10970 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10971 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10972 fi'
10973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10974 dlpath=$dir/\$dldll~
10975 $RM \$dlpath'
10976 ;;
10977
10978 osf3* | osf4* | osf5*)
10979 version_type=osf
10980 need_lib_prefix=no
10981 need_version=no
10982 soname_spec='$libname$release$shared_ext$major'
10983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10987 ;;
10988
10989 rdos*)
10990 dynamic_linker=no
10991 ;;
10992
10993 solaris*)
10994 version_type=linux # correct to gnu/linux during the next big refactor
10995 need_lib_prefix=no
10996 need_version=no
10997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10998 soname_spec='$libname$release$shared_ext$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes
11001 hardcode_into_libs=yes
11002 # ldd complains unless libraries are executable
11003 postinstall_cmds='chmod +x $lib'
11004 ;;
11005
11006 sunos4*)
11007 version_type=sunos
11008 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 if test yes = "$with_gnu_ld"; then
11013 need_lib_prefix=no
11014 fi
11015 need_version=yes
11016 ;;
11017
11018 sysv4 | sysv4.3*)
11019 version_type=linux # correct to gnu/linux during the next big refactor
11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11021 soname_spec='$libname$release$shared_ext$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 case $host_vendor in
11024 sni)
11025 shlibpath_overrides_runpath=no
11026 need_lib_prefix=no
11027 runpath_var=LD_RUN_PATH
11028 ;;
11029 siemens)
11030 need_lib_prefix=no
11031 ;;
11032 motorola)
11033 need_lib_prefix=no
11034 need_version=no
11035 shlibpath_overrides_runpath=no
11036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11037 ;;
11038 esac
11039 ;;
11040
11041 sysv4*MP*)
11042 if test -d /usr/nec; then
11043 version_type=linux # correct to gnu/linux during the next big refactor
11044 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11045 soname_spec='$libname$shared_ext.$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 fi
11048 ;;
11049
11050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11051 version_type=sco
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11055 soname_spec='$libname$release$shared_ext$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 hardcode_into_libs=yes
11059 if test yes = "$with_gnu_ld"; then
11060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11061 else
11062 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11063 case $host_os in
11064 sco3.2v5*)
11065 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11066 ;;
11067 esac
11068 fi
11069 sys_lib_dlsearch_path_spec='/usr/lib'
11070 ;;
11071
11072 tpf*)
11073 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11074 version_type=linux # correct to gnu/linux during the next big refactor
11075 need_lib_prefix=no
11076 need_version=no
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=no
11080 hardcode_into_libs=yes
11081 ;;
11082
11083 uts4*)
11084 version_type=linux # correct to gnu/linux during the next big refactor
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11086 soname_spec='$libname$release$shared_ext$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 ;;
11089
11090 *)
11091 dynamic_linker=no
11092 ;;
11093 esac
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11095 $as_echo "$dynamic_linker" >&6; }
11096 test no = "$dynamic_linker" && can_build_shared=no
11097
11098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11099 if test yes = "$GCC"; then
11100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11101 fi
11102
11103 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11104 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11105 fi
11106
11107 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11108 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11109 fi
11110
11111 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11112 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11113
11114 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11115 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11116
11117 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11118 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11217 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11218 hardcode_action=
11219 if test -n "$hardcode_libdir_flag_spec" ||
11220 test -n "$runpath_var" ||
11221 test yes = "$hardcode_automatic"; then
11222
11223 # We can hardcode non-existent directories.
11224 if test no != "$hardcode_direct" &&
11225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11226 # have to relink, otherwise we might link with an installed library
11227 # when we should be linking with a yet-to-be-installed one
11228 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11229 test no != "$hardcode_minus_L"; then
11230 # Linking always hardcodes the temporary library directory.
11231 hardcode_action=relink
11232 else
11233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11234 hardcode_action=immediate
11235 fi
11236 else
11237 # We cannot hardcode anything, or else we can only hardcode existing
11238 # directories.
11239 hardcode_action=unsupported
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11242 $as_echo "$hardcode_action" >&6; }
11243
11244 if test relink = "$hardcode_action" ||
11245 test yes = "$inherit_rpath"; then
11246 # Fast installation is not supported
11247 enable_fast_install=no
11248 elif test yes = "$shlibpath_overrides_runpath" ||
11249 test no = "$enable_shared"; then
11250 # Fast installation is not necessary
11251 enable_fast_install=needless
11252 fi
11253
11254
11255
11256
11257
11258
11259 if test yes != "$enable_dlopen"; then
11260 enable_dlopen=unknown
11261 enable_dlopen_self=unknown
11262 enable_dlopen_self_static=unknown
11263 else
11264 lt_cv_dlopen=no
11265 lt_cv_dlopen_libs=
11266
11267 case $host_os in
11268 beos*)
11269 lt_cv_dlopen=load_add_on
11270 lt_cv_dlopen_libs=
11271 lt_cv_dlopen_self=yes
11272 ;;
11273
11274 mingw* | pw32* | cegcc*)
11275 lt_cv_dlopen=LoadLibrary
11276 lt_cv_dlopen_libs=
11277 ;;
11278
11279 cygwin*)
11280 lt_cv_dlopen=dlopen
11281 lt_cv_dlopen_libs=
11282 ;;
11283
11284 darwin*)
11285 # if libdl is installed we need to link against it
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11287 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11288 if ${ac_cv_lib_dl_dlopen+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-ldl $LIBS"
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295
11296 /* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299 #ifdef __cplusplus
11300 extern "C"
11301 #endif
11302 char dlopen ();
11303 int
11304 main ()
11305 {
11306 return dlopen ();
11307 ;
11308 return 0;
11309 }
11310 _ACEOF
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_lib_dl_dlopen=yes
11313 else
11314 ac_cv_lib_dl_dlopen=no
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11321 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11322 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11323 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11324 else
11325
11326 lt_cv_dlopen=dyld
11327 lt_cv_dlopen_libs=
11328 lt_cv_dlopen_self=yes
11329
11330 fi
11331
11332 ;;
11333
11334 tpf*)
11335 # Don't try to run any link tests for TPF. We know it's impossible
11336 # because TPF is a cross-compiler, and we know how we open DSOs.
11337 lt_cv_dlopen=dlopen
11338 lt_cv_dlopen_libs=
11339 lt_cv_dlopen_self=no
11340 ;;
11341
11342 *)
11343 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11344 if test "x$ac_cv_func_shl_load" = xyes; then :
11345 lt_cv_dlopen=shl_load
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11348 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11349 if ${ac_cv_lib_dld_shl_load+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-ldld $LIBS"
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char shl_load ();
11364 int
11365 main ()
11366 {
11367 return shl_load ();
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_link "$LINENO"; then :
11373 ac_cv_lib_dld_shl_load=yes
11374 else
11375 ac_cv_lib_dld_shl_load=no
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 LIBS=$ac_check_lib_save_LIBS
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11382 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11383 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11384 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11385 else
11386 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11387 if test "x$ac_cv_func_dlopen" = xyes; then :
11388 lt_cv_dlopen=dlopen
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11391 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11392 if ${ac_cv_lib_dl_dlopen+:} false; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 ac_check_lib_save_LIBS=$LIBS
11396 LIBS="-ldl $LIBS"
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399
11400 /* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 char dlopen ();
11407 int
11408 main ()
11409 {
11410 return dlopen ();
11411 ;
11412 return 0;
11413 }
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 ac_cv_lib_dl_dlopen=yes
11417 else
11418 ac_cv_lib_dl_dlopen=no
11419 fi
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LIBS=$ac_check_lib_save_LIBS
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11425 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11426 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11427 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11430 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11431 if ${ac_cv_lib_svld_dlopen+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433 else
11434 ac_check_lib_save_LIBS=$LIBS
11435 LIBS="-lsvld $LIBS"
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 char dlopen ();
11446 int
11447 main ()
11448 {
11449 return dlopen ();
11450 ;
11451 return 0;
11452 }
11453 _ACEOF
11454 if ac_fn_c_try_link "$LINENO"; then :
11455 ac_cv_lib_svld_dlopen=yes
11456 else
11457 ac_cv_lib_svld_dlopen=no
11458 fi
11459 rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 LIBS=$ac_check_lib_save_LIBS
11462 fi
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11464 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11465 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11466 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11469 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11470 if ${ac_cv_lib_dld_dld_link+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 ac_check_lib_save_LIBS=$LIBS
11474 LIBS="-ldld $LIBS"
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char dld_link ();
11485 int
11486 main ()
11487 {
11488 return dld_link ();
11489 ;
11490 return 0;
11491 }
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11494 ac_cv_lib_dld_dld_link=yes
11495 else
11496 ac_cv_lib_dld_dld_link=no
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11503 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11504 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11505 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11506 fi
11507
11508
11509 fi
11510
11511
11512 fi
11513
11514
11515 fi
11516
11517
11518 fi
11519
11520
11521 fi
11522
11523 ;;
11524 esac
11525
11526 if test no = "$lt_cv_dlopen"; then
11527 enable_dlopen=no
11528 else
11529 enable_dlopen=yes
11530 fi
11531
11532 case $lt_cv_dlopen in
11533 dlopen)
11534 save_CPPFLAGS=$CPPFLAGS
11535 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11536
11537 save_LDFLAGS=$LDFLAGS
11538 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11539
11540 save_LIBS=$LIBS
11541 LIBS="$lt_cv_dlopen_libs $LIBS"
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11544 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11545 if ${lt_cv_dlopen_self+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 if test yes = "$cross_compiling"; then :
11549 lt_cv_dlopen_self=cross
11550 else
11551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11552 lt_status=$lt_dlunknown
11553 cat > conftest.$ac_ext <<_LT_EOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556
11557 #if HAVE_DLFCN_H
11558 #include <dlfcn.h>
11559 #endif
11560
11561 #include <stdio.h>
11562
11563 #ifdef RTLD_GLOBAL
11564 # define LT_DLGLOBAL RTLD_GLOBAL
11565 #else
11566 # ifdef DL_GLOBAL
11567 # define LT_DLGLOBAL DL_GLOBAL
11568 # else
11569 # define LT_DLGLOBAL 0
11570 # endif
11571 #endif
11572
11573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11574 find out it does not work in some platform. */
11575 #ifndef LT_DLLAZY_OR_NOW
11576 # ifdef RTLD_LAZY
11577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11578 # else
11579 # ifdef DL_LAZY
11580 # define LT_DLLAZY_OR_NOW DL_LAZY
11581 # else
11582 # ifdef RTLD_NOW
11583 # define LT_DLLAZY_OR_NOW RTLD_NOW
11584 # else
11585 # ifdef DL_NOW
11586 # define LT_DLLAZY_OR_NOW DL_NOW
11587 # else
11588 # define LT_DLLAZY_OR_NOW 0
11589 # endif
11590 # endif
11591 # endif
11592 # endif
11593 #endif
11594
11595 /* When -fvisibility=hidden is used, assume the code has been annotated
11596 correspondingly for the symbols needed. */
11597 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11598 int fnord () __attribute__((visibility("default")));
11599 #endif
11600
11601 int fnord () { return 42; }
11602 int main ()
11603 {
11604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11605 int status = $lt_dlunknown;
11606
11607 if (self)
11608 {
11609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11610 else
11611 {
11612 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11613 else puts (dlerror ());
11614 }
11615 /* dlclose (self); */
11616 }
11617 else
11618 puts (dlerror ());
11619
11620 return status;
11621 }
11622 _LT_EOF
11623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11624 (eval $ac_link) 2>&5
11625 ac_status=$?
11626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11627 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11628 (./conftest; exit; ) >&5 2>/dev/null
11629 lt_status=$?
11630 case x$lt_status in
11631 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11632 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11633 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11634 esac
11635 else :
11636 # compilation failed
11637 lt_cv_dlopen_self=no
11638 fi
11639 fi
11640 rm -fr conftest*
11641
11642
11643 fi
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11645 $as_echo "$lt_cv_dlopen_self" >&6; }
11646
11647 if test yes = "$lt_cv_dlopen_self"; then
11648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11650 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11651 if ${lt_cv_dlopen_self_static+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 if test yes = "$cross_compiling"; then :
11655 lt_cv_dlopen_self_static=cross
11656 else
11657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11658 lt_status=$lt_dlunknown
11659 cat > conftest.$ac_ext <<_LT_EOF
11660 #line $LINENO "configure"
11661 #include "confdefs.h"
11662
11663 #if HAVE_DLFCN_H
11664 #include <dlfcn.h>
11665 #endif
11666
11667 #include <stdio.h>
11668
11669 #ifdef RTLD_GLOBAL
11670 # define LT_DLGLOBAL RTLD_GLOBAL
11671 #else
11672 # ifdef DL_GLOBAL
11673 # define LT_DLGLOBAL DL_GLOBAL
11674 # else
11675 # define LT_DLGLOBAL 0
11676 # endif
11677 #endif
11678
11679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11680 find out it does not work in some platform. */
11681 #ifndef LT_DLLAZY_OR_NOW
11682 # ifdef RTLD_LAZY
11683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11684 # else
11685 # ifdef DL_LAZY
11686 # define LT_DLLAZY_OR_NOW DL_LAZY
11687 # else
11688 # ifdef RTLD_NOW
11689 # define LT_DLLAZY_OR_NOW RTLD_NOW
11690 # else
11691 # ifdef DL_NOW
11692 # define LT_DLLAZY_OR_NOW DL_NOW
11693 # else
11694 # define LT_DLLAZY_OR_NOW 0
11695 # endif
11696 # endif
11697 # endif
11698 # endif
11699 #endif
11700
11701 /* When -fvisibility=hidden is used, assume the code has been annotated
11702 correspondingly for the symbols needed. */
11703 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11704 int fnord () __attribute__((visibility("default")));
11705 #endif
11706
11707 int fnord () { return 42; }
11708 int main ()
11709 {
11710 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11711 int status = $lt_dlunknown;
11712
11713 if (self)
11714 {
11715 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11716 else
11717 {
11718 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11719 else puts (dlerror ());
11720 }
11721 /* dlclose (self); */
11722 }
11723 else
11724 puts (dlerror ());
11725
11726 return status;
11727 }
11728 _LT_EOF
11729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11730 (eval $ac_link) 2>&5
11731 ac_status=$?
11732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11733 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11734 (./conftest; exit; ) >&5 2>/dev/null
11735 lt_status=$?
11736 case x$lt_status in
11737 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11738 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11739 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11740 esac
11741 else :
11742 # compilation failed
11743 lt_cv_dlopen_self_static=no
11744 fi
11745 fi
11746 rm -fr conftest*
11747
11748
11749 fi
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11751 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11752 fi
11753
11754 CPPFLAGS=$save_CPPFLAGS
11755 LDFLAGS=$save_LDFLAGS
11756 LIBS=$save_LIBS
11757 ;;
11758 esac
11759
11760 case $lt_cv_dlopen_self in
11761 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11762 *) enable_dlopen_self=unknown ;;
11763 esac
11764
11765 case $lt_cv_dlopen_self_static in
11766 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11767 *) enable_dlopen_self_static=unknown ;;
11768 esac
11769 fi
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787 striplib=
11788 old_striplib=
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11790 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11791 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11792 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11793 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11795 $as_echo "yes" >&6; }
11796 else
11797 # FIXME - insert some real tests, host_os isn't really good enough
11798 case $host_os in
11799 darwin*)
11800 if test -n "$STRIP"; then
11801 striplib="$STRIP -x"
11802 old_striplib="$STRIP -S"
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11804 $as_echo "yes" >&6; }
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 fi
11809 ;;
11810 *)
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 ;;
11814 esac
11815 fi
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828 # Report what library types will actually be built
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11830 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11832 $as_echo "$can_build_shared" >&6; }
11833
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11835 $as_echo_n "checking whether to build shared libraries... " >&6; }
11836 test no = "$can_build_shared" && enable_shared=no
11837
11838 # On AIX, shared libraries and static libraries use the same namespace, and
11839 # are all built from PIC.
11840 case $host_os in
11841 aix3*)
11842 test yes = "$enable_shared" && enable_static=no
11843 if test -n "$RANLIB"; then
11844 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11845 postinstall_cmds='$RANLIB $lib'
11846 fi
11847 ;;
11848
11849 aix[4-9]*)
11850 if test ia64 != "$host_cpu"; then
11851 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11852 yes,aix,yes) ;; # shared object as lib.so file only
11853 yes,svr4,*) ;; # shared object as lib.so archive member only
11854 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11855 esac
11856 fi
11857 ;;
11858 esac
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11860 $as_echo "$enable_shared" >&6; }
11861
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11863 $as_echo_n "checking whether to build static libraries... " >&6; }
11864 # Make sure either enable_shared or enable_static is yes.
11865 test yes = "$enable_shared" || enable_static=yes
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11867 $as_echo "$enable_static" >&6; }
11868
11869
11870
11871
11872 fi
11873 ac_ext=c
11874 ac_cpp='$CPP $CPPFLAGS'
11875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11878
11879 CC=$lt_save_CC
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895 ac_config_commands="$ac_config_commands libtool"
11896
11897
11898
11899
11900 # Only expand once:
11901
11902
11903
11904
11905
11906 ac_ext=c
11907 ac_cpp='$CPP $CPPFLAGS'
11908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11911 if test -n "$ac_tool_prefix"; then
11912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_prog_CC+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 if test -n "$CC"; then
11920 ac_cv_prog_CC="$CC" # Let the user override the test.
11921 else
11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH
11924 do
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931 break 2
11932 fi
11933 done
11934 done
11935 IFS=$as_save_IFS
11936
11937 fi
11938 fi
11939 CC=$ac_cv_prog_CC
11940 if test -n "$CC"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11942 $as_echo "$CC" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946 fi
11947
11948
11949 fi
11950 if test -z "$ac_cv_prog_CC"; then
11951 ac_ct_CC=$CC
11952 # Extract the first word of "gcc", so it can be a program name with args.
11953 set dummy gcc; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 if test -n "$ac_ct_CC"; then
11960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11961 else
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969 ac_cv_prog_ac_ct_CC="gcc"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11972 fi
11973 done
11974 done
11975 IFS=$as_save_IFS
11976
11977 fi
11978 fi
11979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11980 if test -n "$ac_ct_CC"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11982 $as_echo "$ac_ct_CC" >&6; }
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987
11988 if test "x$ac_ct_CC" = x; then
11989 CC=""
11990 else
11991 case $cross_compiling:$ac_tool_warned in
11992 yes:)
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11995 ac_tool_warned=yes ;;
11996 esac
11997 CC=$ac_ct_CC
11998 fi
11999 else
12000 CC="$ac_cv_prog_CC"
12001 fi
12002
12003 if test -z "$CC"; then
12004 if test -n "$ac_tool_prefix"; then
12005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12006 set dummy ${ac_tool_prefix}cc; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_prog_CC+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 if test -n "$CC"; then
12013 ac_cv_prog_CC="$CC" # Let the user override the test.
12014 else
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12017 do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12022 ac_cv_prog_CC="${ac_tool_prefix}cc"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12025 fi
12026 done
12027 done
12028 IFS=$as_save_IFS
12029
12030 fi
12031 fi
12032 CC=$ac_cv_prog_CC
12033 if test -n "$CC"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12035 $as_echo "$CC" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039 fi
12040
12041
12042 fi
12043 fi
12044 if test -z "$CC"; then
12045 # Extract the first word of "cc", so it can be a program name with args.
12046 set dummy cc; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if ${ac_cv_prog_CC+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 if test -n "$CC"; then
12053 ac_cv_prog_CC="$CC" # Let the user override the test.
12054 else
12055 ac_prog_rejected=no
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12058 do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12064 ac_prog_rejected=yes
12065 continue
12066 fi
12067 ac_cv_prog_CC="cc"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 break 2
12070 fi
12071 done
12072 done
12073 IFS=$as_save_IFS
12074
12075 if test $ac_prog_rejected = yes; then
12076 # We found a bogon in the path, so make sure we never use it.
12077 set dummy $ac_cv_prog_CC
12078 shift
12079 if test $# != 0; then
12080 # We chose a different compiler from the bogus one.
12081 # However, it has the same basename, so the bogon will be chosen
12082 # first if we set CC to just the basename; use the full file name.
12083 shift
12084 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12085 fi
12086 fi
12087 fi
12088 fi
12089 CC=$ac_cv_prog_CC
12090 if test -n "$CC"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12092 $as_echo "$CC" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12096 fi
12097
12098
12099 fi
12100 if test -z "$CC"; then
12101 if test -n "$ac_tool_prefix"; then
12102 for ac_prog in cl.exe
12103 do
12104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_prog_CC+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 if test -n "$CC"; then
12112 ac_cv_prog_CC="$CC" # Let the user override the test.
12113 else
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12116 do
12117 IFS=$as_save_IFS
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 break 2
12124 fi
12125 done
12126 done
12127 IFS=$as_save_IFS
12128
12129 fi
12130 fi
12131 CC=$ac_cv_prog_CC
12132 if test -n "$CC"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12134 $as_echo "$CC" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138 fi
12139
12140
12141 test -n "$CC" && break
12142 done
12143 fi
12144 if test -z "$CC"; then
12145 ac_ct_CC=$CC
12146 for ac_prog in cl.exe
12147 do
12148 # Extract the first word of "$ac_prog", so it can be a program name with args.
12149 set dummy $ac_prog; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 if test -n "$ac_ct_CC"; then
12156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12157 else
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_prog_ac_ct_CC="$ac_prog"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12168 fi
12169 done
12170 done
12171 IFS=$as_save_IFS
12172
12173 fi
12174 fi
12175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12176 if test -n "$ac_ct_CC"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12178 $as_echo "$ac_ct_CC" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182 fi
12183
12184
12185 test -n "$ac_ct_CC" && break
12186 done
12187
12188 if test "x$ac_ct_CC" = x; then
12189 CC=""
12190 else
12191 case $cross_compiling:$ac_tool_warned in
12192 yes:)
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12195 ac_tool_warned=yes ;;
12196 esac
12197 CC=$ac_ct_CC
12198 fi
12199 fi
12200
12201 fi
12202
12203
12204 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12206 as_fn_error $? "no acceptable C compiler found in \$PATH
12207 See \`config.log' for more details" "$LINENO" 5; }
12208
12209 # Provide some information about the compiler.
12210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12211 set X $ac_compile
12212 ac_compiler=$2
12213 for ac_option in --version -v -V -qversion; do
12214 { { ac_try="$ac_compiler $ac_option >&5"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12220 $as_echo "$ac_try_echo"; } >&5
12221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12222 ac_status=$?
12223 if test -s conftest.err; then
12224 sed '10a\
12225 ... rest of stderr output deleted ...
12226 10q' conftest.err >conftest.er1
12227 cat conftest.er1 >&5
12228 fi
12229 rm -f conftest.er1 conftest.err
12230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231 test $ac_status = 0; }
12232 done
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12235 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12236 if ${ac_cv_c_compiler_gnu+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 int
12243 main ()
12244 {
12245 #ifndef __GNUC__
12246 choke me
12247 #endif
12248
12249 ;
12250 return 0;
12251 }
12252 _ACEOF
12253 if ac_fn_c_try_compile "$LINENO"; then :
12254 ac_compiler_gnu=yes
12255 else
12256 ac_compiler_gnu=no
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12260
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12263 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12264 if test $ac_compiler_gnu = yes; then
12265 GCC=yes
12266 else
12267 GCC=
12268 fi
12269 ac_test_CFLAGS=${CFLAGS+set}
12270 ac_save_CFLAGS=$CFLAGS
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12272 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12273 if ${ac_cv_prog_cc_g+:} false; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 ac_save_c_werror_flag=$ac_c_werror_flag
12277 ac_c_werror_flag=yes
12278 ac_cv_prog_cc_g=no
12279 CFLAGS="-g"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282
12283 int
12284 main ()
12285 {
12286
12287 ;
12288 return 0;
12289 }
12290 _ACEOF
12291 if ac_fn_c_try_compile "$LINENO"; then :
12292 ac_cv_prog_cc_g=yes
12293 else
12294 CFLAGS=""
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 int
12299 main ()
12300 {
12301
12302 ;
12303 return 0;
12304 }
12305 _ACEOF
12306 if ac_fn_c_try_compile "$LINENO"; then :
12307
12308 else
12309 ac_c_werror_flag=$ac_save_c_werror_flag
12310 CFLAGS="-g"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313
12314 int
12315 main ()
12316 {
12317
12318 ;
12319 return 0;
12320 }
12321 _ACEOF
12322 if ac_fn_c_try_compile "$LINENO"; then :
12323 ac_cv_prog_cc_g=yes
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 ac_c_werror_flag=$ac_save_c_werror_flag
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12333 $as_echo "$ac_cv_prog_cc_g" >&6; }
12334 if test "$ac_test_CFLAGS" = set; then
12335 CFLAGS=$ac_save_CFLAGS
12336 elif test $ac_cv_prog_cc_g = yes; then
12337 if test "$GCC" = yes; then
12338 CFLAGS="-g -O2"
12339 else
12340 CFLAGS="-g"
12341 fi
12342 else
12343 if test "$GCC" = yes; then
12344 CFLAGS="-O2"
12345 else
12346 CFLAGS=
12347 fi
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12350 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12351 if ${ac_cv_prog_cc_c89+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 ac_cv_prog_cc_c89=no
12355 ac_save_CC=$CC
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358 #include <stdarg.h>
12359 #include <stdio.h>
12360 struct stat;
12361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12362 struct buf { int x; };
12363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12364 static char *e (p, i)
12365 char **p;
12366 int i;
12367 {
12368 return p[i];
12369 }
12370 static char *f (char * (*g) (char **, int), char **p, ...)
12371 {
12372 char *s;
12373 va_list v;
12374 va_start (v,p);
12375 s = g (p, va_arg (v,int));
12376 va_end (v);
12377 return s;
12378 }
12379
12380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12381 function prototypes and stuff, but not '\xHH' hex character constants.
12382 These don't provoke an error unfortunately, instead are silently treated
12383 as 'x'. The following induces an error, until -std is added to get
12384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12385 array size at least. It's necessary to write '\x00'==0 to get something
12386 that's true only with -std. */
12387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12388
12389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12390 inside strings and character constants. */
12391 #define FOO(x) 'x'
12392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12393
12394 int test (int i, double x);
12395 struct s1 {int (*f) (int a);};
12396 struct s2 {int (*f) (double a);};
12397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12398 int argc;
12399 char **argv;
12400 int
12401 main ()
12402 {
12403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12410 do
12411 CC="$ac_save_CC $ac_arg"
12412 if ac_fn_c_try_compile "$LINENO"; then :
12413 ac_cv_prog_cc_c89=$ac_arg
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext
12416 test "x$ac_cv_prog_cc_c89" != "xno" && break
12417 done
12418 rm -f conftest.$ac_ext
12419 CC=$ac_save_CC
12420
12421 fi
12422 # AC_CACHE_VAL
12423 case "x$ac_cv_prog_cc_c89" in
12424 x)
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12426 $as_echo "none needed" >&6; } ;;
12427 xno)
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12429 $as_echo "unsupported" >&6; } ;;
12430 *)
12431 CC="$CC $ac_cv_prog_cc_c89"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12433 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12434 esac
12435 if test "x$ac_cv_prog_cc_c89" != xno; then :
12436
12437 fi
12438
12439 ac_ext=c
12440 ac_cpp='$CPP $CPPFLAGS'
12441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12444
12445 ac_ext=c
12446 ac_cpp='$CPP $CPPFLAGS'
12447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12451 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12452 if ${am_cv_prog_cc_c_o+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457
12458 int
12459 main ()
12460 {
12461
12462 ;
12463 return 0;
12464 }
12465 _ACEOF
12466 # Make sure it works both with $CC and with simple cc.
12467 # Following AC_PROG_CC_C_O, we do the test twice because some
12468 # compilers refuse to overwrite an existing .o file with -o,
12469 # though they will create one.
12470 am_cv_prog_cc_c_o=yes
12471 for am_i in 1 2; do
12472 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12473 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } \
12477 && test -f conftest2.$ac_objext; then
12478 : OK
12479 else
12480 am_cv_prog_cc_c_o=no
12481 break
12482 fi
12483 done
12484 rm -f core conftest*
12485 unset am_i
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12488 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12489 if test "$am_cv_prog_cc_c_o" != yes; then
12490 # Losing compiler, so override with the script.
12491 # FIXME: It is wrong to rewrite CC.
12492 # But if we don't then we get into trouble of one sort or another.
12493 # A longer-term fix would be to have automake use am__CC in this case,
12494 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12495 CC="$am_aux_dir/compile $CC"
12496 fi
12497 ac_ext=c
12498 ac_cpp='$CPP $CPPFLAGS'
12499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12502
12503
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12506 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12507 if ${ac_cv_prog_cc_c99+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 ac_cv_prog_cc_c99=no
12511 ac_save_CC=$CC
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12514 #include <stdarg.h>
12515 #include <stdbool.h>
12516 #include <stdlib.h>
12517 #include <wchar.h>
12518 #include <stdio.h>
12519
12520 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12521 #define debug(...) fprintf (stderr, __VA_ARGS__)
12522 #define showlist(...) puts (#__VA_ARGS__)
12523 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12524 static void
12525 test_varargs_macros (void)
12526 {
12527 int x = 1234;
12528 int y = 5678;
12529 debug ("Flag");
12530 debug ("X = %d\n", x);
12531 showlist (The first, second, and third items.);
12532 report (x>y, "x is %d but y is %d", x, y);
12533 }
12534
12535 // Check long long types.
12536 #define BIG64 18446744073709551615ull
12537 #define BIG32 4294967295ul
12538 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12539 #if !BIG_OK
12540 your preprocessor is broken;
12541 #endif
12542 #if BIG_OK
12543 #else
12544 your preprocessor is broken;
12545 #endif
12546 static long long int bignum = -9223372036854775807LL;
12547 static unsigned long long int ubignum = BIG64;
12548
12549 struct incomplete_array
12550 {
12551 int datasize;
12552 double data[];
12553 };
12554
12555 struct named_init {
12556 int number;
12557 const wchar_t *name;
12558 double average;
12559 };
12560
12561 typedef const char *ccp;
12562
12563 static inline int
12564 test_restrict (ccp restrict text)
12565 {
12566 // See if C++-style comments work.
12567 // Iterate through items via the restricted pointer.
12568 // Also check for declarations in for loops.
12569 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12570 continue;
12571 return 0;
12572 }
12573
12574 // Check varargs and va_copy.
12575 static void
12576 test_varargs (const char *format, ...)
12577 {
12578 va_list args;
12579 va_start (args, format);
12580 va_list args_copy;
12581 va_copy (args_copy, args);
12582
12583 const char *str;
12584 int number;
12585 float fnumber;
12586
12587 while (*format)
12588 {
12589 switch (*format++)
12590 {
12591 case 's': // string
12592 str = va_arg (args_copy, const char *);
12593 break;
12594 case 'd': // int
12595 number = va_arg (args_copy, int);
12596 break;
12597 case 'f': // float
12598 fnumber = va_arg (args_copy, double);
12599 break;
12600 default:
12601 break;
12602 }
12603 }
12604 va_end (args_copy);
12605 va_end (args);
12606 }
12607
12608 int
12609 main ()
12610 {
12611
12612 // Check bool.
12613 _Bool success = false;
12614
12615 // Check restrict.
12616 if (test_restrict ("String literal") == 0)
12617 success = true;
12618 char *restrict newvar = "Another string";
12619
12620 // Check varargs.
12621 test_varargs ("s, d' f .", "string", 65, 34.234);
12622 test_varargs_macros ();
12623
12624 // Check flexible array members.
12625 struct incomplete_array *ia =
12626 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12627 ia->datasize = 10;
12628 for (int i = 0; i < ia->datasize; ++i)
12629 ia->data[i] = i * 1.234;
12630
12631 // Check named initializers.
12632 struct named_init ni = {
12633 .number = 34,
12634 .name = L"Test wide string",
12635 .average = 543.34343,
12636 };
12637
12638 ni.number = 58;
12639
12640 int dynamic_array[ni.number];
12641 dynamic_array[ni.number - 1] = 543;
12642
12643 // work around unused variable warnings
12644 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12645 || dynamic_array[ni.number - 1] != 543);
12646
12647 ;
12648 return 0;
12649 }
12650 _ACEOF
12651 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12652 do
12653 CC="$ac_save_CC $ac_arg"
12654 if ac_fn_c_try_compile "$LINENO"; then :
12655 ac_cv_prog_cc_c99=$ac_arg
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext
12658 test "x$ac_cv_prog_cc_c99" != "xno" && break
12659 done
12660 rm -f conftest.$ac_ext
12661 CC=$ac_save_CC
12662
12663 fi
12664 # AC_CACHE_VAL
12665 case "x$ac_cv_prog_cc_c99" in
12666 x)
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12668 $as_echo "none needed" >&6; } ;;
12669 xno)
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12671 $as_echo "unsupported" >&6; } ;;
12672 *)
12673 CC="$CC $ac_cv_prog_cc_c99"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12675 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12676 esac
12677 if test "x$ac_cv_prog_cc_c99" != xno; then :
12678
12679 fi
12680
12681
12682
12683
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset_s" >&5
12686 $as_echo_n "checking for memset_s... " >&6; }
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12689
12690 /* Request C11 Annex K */
12691 #define __STDC_WANT_LIB_EXT1__ 1
12692 #include <string.h>
12693 char buf[10] = { 1 };
12694
12695 int
12696 main ()
12697 {
12698
12699 errno_t (*memset_s_ptr)(void*, rsize_t,
12700 int, rsize_t);
12701 memset_s_ptr = &memset_s;
12702 memset_s_ptr((void*) buf, (size_t) 100,
12703 0, (size_t) 1);
12704
12705 ;
12706 return 0;
12707 }
12708 _ACEOF
12709 if ac_fn_c_try_link "$LINENO"; then :
12710
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712 $as_echo "yes" >&6; }
12713
12714 $as_echo "#define HAVE_MEMSET_S 1" >>confdefs.h
12715
12716
12717 else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723
12724 for ac_func in explicit_memset explicit_bzero
12725 do :
12726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12729 cat >>confdefs.h <<_ACEOF
12730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12731 _ACEOF
12732
12733 fi
12734 done
12735
12736
12737
12738
12739 am__api_version='1.16'
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12742 $as_echo_n "checking whether build environment is sane... " >&6; }
12743 # Reject unsafe characters in $srcdir or the absolute working directory
12744 # name. Accept space and tab only in the latter.
12745 am_lf='
12746 '
12747 case `pwd` in
12748 *[\\\"\#\$\&\'\`$am_lf]*)
12749 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12750 esac
12751 case $srcdir in
12752 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12753 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12754 esac
12755
12756 # Do 'set' in a subshell so we don't clobber the current shell's
12757 # arguments. Must try -L first in case configure is actually a
12758 # symlink; some systems play weird games with the mod time of symlinks
12759 # (eg FreeBSD returns the mod time of the symlink's containing
12760 # directory).
12761 if (
12762 am_has_slept=no
12763 for am_try in 1 2; do
12764 echo "timestamp, slept: $am_has_slept" > conftest.file
12765 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12766 if test "$*" = "X"; then
12767 # -L didn't work.
12768 set X `ls -t "$srcdir/configure" conftest.file`
12769 fi
12770 if test "$*" != "X $srcdir/configure conftest.file" \
12771 && test "$*" != "X conftest.file $srcdir/configure"; then
12772
12773 # If neither matched, then we have a broken ls. This can happen
12774 # if, for instance, CONFIG_SHELL is bash and it inherits a
12775 # broken ls alias from the environment. This has actually
12776 # happened. Such a system could not be considered "sane".
12777 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12778 alias in your environment" "$LINENO" 5
12779 fi
12780 if test "$2" = conftest.file || test $am_try -eq 2; then
12781 break
12782 fi
12783 # Just in case.
12784 sleep 1
12785 am_has_slept=yes
12786 done
12787 test "$2" = conftest.file
12788 )
12789 then
12790 # Ok.
12791 :
12792 else
12793 as_fn_error $? "newly created file is older than distributed files!
12794 Check your system clock" "$LINENO" 5
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797 $as_echo "yes" >&6; }
12798 # If we didn't sleep, we still need to ensure time stamps of config.status and
12799 # generated files are strictly newer.
12800 am_sleep_pid=
12801 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12802 ( sleep 1 ) &
12803 am_sleep_pid=$!
12804 fi
12805
12806 rm -f conftest.file
12807
12808 test "$program_prefix" != NONE &&
12809 program_transform_name="s&^&$program_prefix&;$program_transform_name"
12810 # Use a double $ so make ignores it.
12811 test "$program_suffix" != NONE &&
12812 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12813 # Double any \ or $.
12814 # By default was `s,x,x', remove it if useless.
12815 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12816 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
12817
12818 if test x"${MISSING+set}" != xset; then
12819 case $am_aux_dir in
12820 *\ * | *\ *)
12821 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12822 *)
12823 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12824 esac
12825 fi
12826 # Use eval to expand $SHELL
12827 if eval "$MISSING --is-lightweight"; then
12828 am_missing_run="$MISSING "
12829 else
12830 am_missing_run=
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12832 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12833 fi
12834
12835 if test x"${install_sh+set}" != xset; then
12836 case $am_aux_dir in
12837 *\ * | *\ *)
12838 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12839 *)
12840 install_sh="\${SHELL} $am_aux_dir/install-sh"
12841 esac
12842 fi
12843
12844 # Installed binaries are usually stripped using 'strip' when the user
12845 # run "make install-strip". However 'strip' might not be the right
12846 # tool to use in cross-compilation environments, therefore Automake
12847 # will honor the 'STRIP' environment variable to overrule this program.
12848 if test "$cross_compiling" != no; then
12849 if test -n "$ac_tool_prefix"; then
12850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12851 set dummy ${ac_tool_prefix}strip; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if ${ac_cv_prog_STRIP+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 if test -n "$STRIP"; then
12858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12859 else
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12862 do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 break 2
12870 fi
12871 done
12872 done
12873 IFS=$as_save_IFS
12874
12875 fi
12876 fi
12877 STRIP=$ac_cv_prog_STRIP
12878 if test -n "$STRIP"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12880 $as_echo "$STRIP" >&6; }
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885
12886
12887 fi
12888 if test -z "$ac_cv_prog_STRIP"; then
12889 ac_ct_STRIP=$STRIP
12890 # Extract the first word of "strip", so it can be a program name with args.
12891 set dummy strip; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893 $as_echo_n "checking for $ac_word... " >&6; }
12894 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 if test -n "$ac_ct_STRIP"; then
12898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12899 else
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907 ac_cv_prog_ac_ct_STRIP="strip"
12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 break 2
12910 fi
12911 done
12912 done
12913 IFS=$as_save_IFS
12914
12915 fi
12916 fi
12917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12918 if test -n "$ac_ct_STRIP"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12920 $as_echo "$ac_ct_STRIP" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924 fi
12925
12926 if test "x$ac_ct_STRIP" = x; then
12927 STRIP=":"
12928 else
12929 case $cross_compiling:$ac_tool_warned in
12930 yes:)
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12933 ac_tool_warned=yes ;;
12934 esac
12935 STRIP=$ac_ct_STRIP
12936 fi
12937 else
12938 STRIP="$ac_cv_prog_STRIP"
12939 fi
12940
12941 fi
12942 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12945 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12946 if test -z "$MKDIR_P"; then
12947 if ${ac_cv_path_mkdir+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12952 do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_prog in mkdir gmkdir; do
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12958 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12959 'mkdir (GNU coreutils) '* | \
12960 'mkdir (coreutils) '* | \
12961 'mkdir (fileutils) '4.1*)
12962 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12963 break 3;;
12964 esac
12965 done
12966 done
12967 done
12968 IFS=$as_save_IFS
12969
12970 fi
12971
12972 test -d ./--version && rmdir ./--version
12973 if test "${ac_cv_path_mkdir+set}" = set; then
12974 MKDIR_P="$ac_cv_path_mkdir -p"
12975 else
12976 # As a last resort, use the slow shell script. Don't cache a
12977 # value for MKDIR_P within a source directory, because that will
12978 # break other packages using the cache if that directory is
12979 # removed, or if the value is a relative name.
12980 MKDIR_P="$ac_install_sh -d"
12981 fi
12982 fi
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12984 $as_echo "$MKDIR_P" >&6; }
12985
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12988 set x ${MAKE-make}
12989 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12990 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 cat >conftest.make <<\_ACEOF
12994 SHELL = /bin/sh
12995 all:
12996 @echo '@@@%%%=$(MAKE)=@@@%%%'
12997 _ACEOF
12998 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13000 *@@@%%%=?*=@@@%%%*)
13001 eval ac_cv_prog_make_${ac_make}_set=yes;;
13002 *)
13003 eval ac_cv_prog_make_${ac_make}_set=no;;
13004 esac
13005 rm -f conftest.make
13006 fi
13007 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13009 $as_echo "yes" >&6; }
13010 SET_MAKE=
13011 else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13014 SET_MAKE="MAKE=${MAKE-make}"
13015 fi
13016
13017 rm -rf .tst 2>/dev/null
13018 mkdir .tst 2>/dev/null
13019 if test -d .tst; then
13020 am__leading_dot=.
13021 else
13022 am__leading_dot=_
13023 fi
13024 rmdir .tst 2>/dev/null
13025
13026 DEPDIR="${am__leading_dot}deps"
13027
13028 ac_config_commands="$ac_config_commands depfiles"
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
13031 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
13032 cat > confinc.mk << 'END'
13033 am__doit:
13034 @echo this is the am__doit target >confinc.out
13035 .PHONY: am__doit
13036 END
13037 am__include="#"
13038 am__quote=
13039 # BSD make does it like this.
13040 echo '.include "confinc.mk" # ignored' > confmf.BSD
13041 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
13042 echo 'include confinc.mk # ignored' > confmf.GNU
13043 _am_result=no
13044 for s in GNU BSD; do
13045 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
13046 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }
13050 case $?:`cat confinc.out 2>/dev/null` in #(
13051 '0:this is the am__doit target') :
13052 case $s in #(
13053 BSD) :
13054 am__include='.include' am__quote='"' ;; #(
13055 *) :
13056 am__include='include' am__quote='' ;;
13057 esac ;; #(
13058 *) :
13059 ;;
13060 esac
13061 if test "$am__include" != "#"; then
13062 _am_result="yes ($s style)"
13063 break
13064 fi
13065 done
13066 rm -f confinc.* confmf.*
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
13068 $as_echo "${_am_result}" >&6; }
13069
13070 # Check whether --enable-dependency-tracking was given.
13071 if test "${enable_dependency_tracking+set}" = set; then :
13072 enableval=$enable_dependency_tracking;
13073 fi
13074
13075 if test "x$enable_dependency_tracking" != xno; then
13076 am_depcomp="$ac_aux_dir/depcomp"
13077 AMDEPBACKSLASH='\'
13078 am__nodep='_no'
13079 fi
13080 if test "x$enable_dependency_tracking" != xno; then
13081 AMDEP_TRUE=
13082 AMDEP_FALSE='#'
13083 else
13084 AMDEP_TRUE='#'
13085 AMDEP_FALSE=
13086 fi
13087
13088
13089 # Check whether --enable-silent-rules was given.
13090 if test "${enable_silent_rules+set}" = set; then :
13091 enableval=$enable_silent_rules;
13092 fi
13093
13094 case $enable_silent_rules in # (((
13095 yes) AM_DEFAULT_VERBOSITY=0;;
13096 no) AM_DEFAULT_VERBOSITY=1;;
13097 *) AM_DEFAULT_VERBOSITY=1;;
13098 esac
13099 am_make=${MAKE-make}
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13101 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13102 if ${am_cv_make_support_nested_variables+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 if $as_echo 'TRUE=$(BAR$(V))
13106 BAR0=false
13107 BAR1=true
13108 V=1
13109 am__doit:
13110 @$(TRUE)
13111 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13112 am_cv_make_support_nested_variables=yes
13113 else
13114 am_cv_make_support_nested_variables=no
13115 fi
13116 fi
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13118 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13119 if test $am_cv_make_support_nested_variables = yes; then
13120 AM_V='$(V)'
13121 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13122 else
13123 AM_V=$AM_DEFAULT_VERBOSITY
13124 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13125 fi
13126 AM_BACKSLASH='\'
13127
13128 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13129 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13130 # is not polluted with repeated "-I."
13131 am__isrc=' -I$(srcdir)'
13132 # test to see if srcdir already configured
13133 if test -f $srcdir/config.status; then
13134 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13135 fi
13136 fi
13137
13138 # test whether we have cygpath
13139 if test -z "$CYGPATH_W"; then
13140 if (cygpath --version) >/dev/null 2>/dev/null; then
13141 CYGPATH_W='cygpath -w'
13142 else
13143 CYGPATH_W=echo
13144 fi
13145 fi
13146
13147
13148 # Define the identity of the package.
13149 PACKAGE='libcanlock'
13150 VERSION='3.3.1'
13151
13152
13153 cat >>confdefs.h <<_ACEOF
13154 #define PACKAGE "$PACKAGE"
13155 _ACEOF
13156
13157
13158 cat >>confdefs.h <<_ACEOF
13159 #define VERSION "$VERSION"
13160 _ACEOF
13161
13162 # Some tools Automake needs.
13163
13164 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13165
13166
13167 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13168
13169
13170 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13171
13172
13173 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13174
13175
13176 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13177
13178 # For better backward compatibility. To be removed once Automake 1.9.x
13179 # dies out for good. For more background, see:
13180 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13181 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13182 mkdir_p='$(MKDIR_P)'
13183
13184 # We need awk for the "check" target (and possibly the TAP driver). The
13185 # system "awk" is bad on some platforms.
13186 # Always define AMTAR for backward compatibility. Yes, it's still used
13187 # in the wild :-( We should find a proper way to deprecate it ...
13188 AMTAR='$${TAR-tar}'
13189
13190
13191 # We'll loop over all known methods to create a tar archive until one works.
13192 _am_tools='gnutar plaintar pax cpio none'
13193
13194 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
13195 # There is notably a 21 bits limit for the UID and the GID. In fact,
13196 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
13197 # and bug#13588).
13198 am_max_uid=2097151 # 2^21 - 1
13199 am_max_gid=$am_max_uid
13200 # The $UID and $GID variables are not portable, so we need to resort
13201 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
13202 # below are definitely unexpected, so allow the users to see them
13203 # (that is, avoid stderr redirection).
13204 am_uid=`id -u || echo unknown`
13205 am_gid=`id -g || echo unknown`
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
13207 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
13208 if test $am_uid -le $am_max_uid; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13210 $as_echo "yes" >&6; }
13211 else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 $as_echo "no" >&6; }
13214 _am_tools=none
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
13217 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
13218 if test $am_gid -le $am_max_gid; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13220 $as_echo "yes" >&6; }
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13224 _am_tools=none
13225 fi
13226
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
13228 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
13229
13230 # Go ahead even if we have the value already cached. We do so because we
13231 # need to set the values for the 'am__tar' and 'am__untar' variables.
13232 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
13233
13234 for _am_tool in $_am_tools; do
13235 case $_am_tool in
13236 gnutar)
13237 for _am_tar in tar gnutar gtar; do
13238 { echo "$as_me:$LINENO: $_am_tar --version" >&5
13239 ($_am_tar --version) >&5 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && break
13243 done
13244 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
13245 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
13246 am__untar="$_am_tar -xf -"
13247 ;;
13248 plaintar)
13249 # Must skip GNU tar: if it does not support --format= it doesn't create
13250 # ustar tarball either.
13251 (tar --version) >/dev/null 2>&1 && continue
13252 am__tar='tar chf - "$$tardir"'
13253 am__tar_='tar chf - "$tardir"'
13254 am__untar='tar xf -'
13255 ;;
13256 pax)
13257 am__tar='pax -L -x ustar -w "$$tardir"'
13258 am__tar_='pax -L -x ustar -w "$tardir"'
13259 am__untar='pax -r'
13260 ;;
13261 cpio)
13262 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
13263 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
13264 am__untar='cpio -i -H ustar -d'
13265 ;;
13266 none)
13267 am__tar=false
13268 am__tar_=false
13269 am__untar=false
13270 ;;
13271 esac
13272
13273 # If the value was cached, stop now. We just wanted to have am__tar
13274 # and am__untar set.
13275 test -n "${am_cv_prog_tar_ustar}" && break
13276
13277 # tar/untar a dummy directory, and stop if the command works.
13278 rm -rf conftest.dir
13279 mkdir conftest.dir
13280 echo GrepMe > conftest.dir/file
13281 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
13282 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }
13286 rm -rf conftest.dir
13287 if test -s conftest.tar; then
13288 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
13289 ($am__untar <conftest.tar) >&5 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }
13293 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
13294 (cat conftest.dir/file) >&5 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }
13298 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
13299 fi
13300 done
13301 rm -rf conftest.dir
13302
13303 if ${am_cv_prog_tar_ustar+:} false; then :
13304 $as_echo_n "(cached) " >&6
13305 else
13306 am_cv_prog_tar_ustar=$_am_tool
13307 fi
13308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
13310 $as_echo "$am_cv_prog_tar_ustar" >&6; }
13311
13312
13313
13314
13315
13316 depcc="$CC" am_compiler_list=
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13319 $as_echo_n "checking dependency style of $depcc... " >&6; }
13320 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13321 $as_echo_n "(cached) " >&6
13322 else
13323 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13324 # We make a subdir and do the tests there. Otherwise we can end up
13325 # making bogus files that we don't know about and never remove. For
13326 # instance it was reported that on HP-UX the gcc test will end up
13327 # making a dummy file named 'D' -- because '-MD' means "put the output
13328 # in D".
13329 rm -rf conftest.dir
13330 mkdir conftest.dir
13331 # Copy depcomp to subdir because otherwise we won't find it if we're
13332 # using a relative directory.
13333 cp "$am_depcomp" conftest.dir
13334 cd conftest.dir
13335 # We will build objects and dependencies in a subdirectory because
13336 # it helps to detect inapplicable dependency modes. For instance
13337 # both Tru64's cc and ICC support -MD to output dependencies as a
13338 # side effect of compilation, but ICC will put the dependencies in
13339 # the current directory while Tru64 will put them in the object
13340 # directory.
13341 mkdir sub
13342
13343 am_cv_CC_dependencies_compiler_type=none
13344 if test "$am_compiler_list" = ""; then
13345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13346 fi
13347 am__universal=false
13348 case " $depcc " in #(
13349 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13350 esac
13351
13352 for depmode in $am_compiler_list; do
13353 # Setup a source with many dependencies, because some compilers
13354 # like to wrap large dependency lists on column 80 (with \), and
13355 # we should not choose a depcomp mode which is confused by this.
13356 #
13357 # We need to recreate these files for each test, as the compiler may
13358 # overwrite some of them when testing with obscure command lines.
13359 # This happens at least with the AIX C compiler.
13360 : > sub/conftest.c
13361 for i in 1 2 3 4 5 6; do
13362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13363 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13364 # Solaris 10 /bin/sh.
13365 echo '/* dummy */' > sub/conftst$i.h
13366 done
13367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13368
13369 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13370 # mode. It turns out that the SunPro C++ compiler does not properly
13371 # handle '-M -o', and we need to detect this. Also, some Intel
13372 # versions had trouble with output in subdirs.
13373 am__obj=sub/conftest.${OBJEXT-o}
13374 am__minus_obj="-o $am__obj"
13375 case $depmode in
13376 gcc)
13377 # This depmode causes a compiler race in universal mode.
13378 test "$am__universal" = false || continue
13379 ;;
13380 nosideeffect)
13381 # After this tag, mechanisms are not by side-effect, so they'll
13382 # only be used when explicitly requested.
13383 if test "x$enable_dependency_tracking" = xyes; then
13384 continue
13385 else
13386 break
13387 fi
13388 ;;
13389 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13390 # This compiler won't grok '-c -o', but also, the minuso test has
13391 # not run yet. These depmodes are late enough in the game, and
13392 # so weak that their functioning should not be impacted.
13393 am__obj=conftest.${OBJEXT-o}
13394 am__minus_obj=
13395 ;;
13396 none) break ;;
13397 esac
13398 if depmode=$depmode \
13399 source=sub/conftest.c object=$am__obj \
13400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13401 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13402 >/dev/null 2>conftest.err &&
13403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13405 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13407 # icc doesn't choke on unknown options, it will just issue warnings
13408 # or remarks (even with -Werror). So we grep stderr for any message
13409 # that says an option was ignored or not supported.
13410 # When given -MP, icc 7.0 and 7.1 complain thusly:
13411 # icc: Command line warning: ignoring option '-M'; no argument required
13412 # The diagnosis changed in icc 8.0:
13413 # icc: Command line remark: option '-MP' not supported
13414 if (grep 'ignoring option' conftest.err ||
13415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13416 am_cv_CC_dependencies_compiler_type=$depmode
13417 break
13418 fi
13419 fi
13420 done
13421
13422 cd ..
13423 rm -rf conftest.dir
13424 else
13425 am_cv_CC_dependencies_compiler_type=none
13426 fi
13427
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13430 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13432
13433 if
13434 test "x$enable_dependency_tracking" != xno \
13435 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13436 am__fastdepCC_TRUE=
13437 am__fastdepCC_FALSE='#'
13438 else
13439 am__fastdepCC_TRUE='#'
13440 am__fastdepCC_FALSE=
13441 fi
13442
13443
13444
13445 # POSIX will say in a future version that running "rm -f" with no argument
13446 # is OK; and we want to be able to make that assumption in our Makefile
13447 # recipes. So use an aggressive probe to check that the usage we want is
13448 # actually supported "in the wild" to an acceptable degree.
13449 # See automake bug#10828.
13450 # To make any issue more visible, cause the running configure to be aborted
13451 # by default if the 'rm' program in use doesn't match our expectations; the
13452 # user can still override this though.
13453 if rm -f && rm -fr && rm -rf; then : OK; else
13454 cat >&2 <<'END'
13455 Oops!
13456
13457 Your 'rm' program seems unable to run without file operands specified
13458 on the command line, even when the '-f' option is present. This is contrary
13459 to the behaviour of most rm programs out there, and not conforming with
13460 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13461
13462 Please tell [email protected] about your system, including the value
13463 of your $PATH and any error possibly output before this message. This
13464 can help us improve future automake versions.
13465
13466 END
13467 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13468 echo 'Configuration will proceed anyway, since you have set the' >&2
13469 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13470 echo >&2
13471 else
13472 cat >&2 <<'END'
13473 Aborting the configuration process, to ensure you take notice of the issue.
13474
13475 You can download and install GNU coreutils to get an 'rm' implementation
13476 that behaves properly: <https://www.gnu.org/software/coreutils/>.
13477
13478 If you want to complete the configuration process using your problematic
13479 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13480 to "yes", and re-run configure.
13481
13482 END
13483 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13484 fi
13485 fi
13486
13487 # Check whether --enable-silent-rules was given.
13488 if test "${enable_silent_rules+set}" = set; then :
13489 enableval=$enable_silent_rules;
13490 fi
13491
13492 case $enable_silent_rules in # (((
13493 yes) AM_DEFAULT_VERBOSITY=0;;
13494 no) AM_DEFAULT_VERBOSITY=1;;
13495 *) AM_DEFAULT_VERBOSITY=0;;
13496 esac
13497 am_make=${MAKE-make}
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13499 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13500 if ${am_cv_make_support_nested_variables+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 if $as_echo 'TRUE=$(BAR$(V))
13504 BAR0=false
13505 BAR1=true
13506 V=1
13507 am__doit:
13508 @$(TRUE)
13509 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13510 am_cv_make_support_nested_variables=yes
13511 else
13512 am_cv_make_support_nested_variables=no
13513 fi
13514 fi
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13516 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13517 if test $am_cv_make_support_nested_variables = yes; then
13518 AM_V='$(V)'
13519 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13520 else
13521 AM_V=$AM_DEFAULT_VERBOSITY
13522 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13523 fi
13524 AM_BACKSLASH='\'
13525
13526
13527 if test "x$enable_hp" = "xyes"; then
13528 COND_HP_TRUE=
13529 COND_HP_FALSE='#'
13530 else
13531 COND_HP_TRUE='#'
13532 COND_HP_FALSE=
13533 fi
13534
13535
13536 ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile test/Makefile include/Makefile doc/Makefile"
13537
13538
13539 ac_config_files="$ac_config_files include/canlock.h"
13540
13541
13542 ac_config_files="$ac_config_files libcanlock-3.pc"
13543
13544
13545
13546
13547 cat >confcache <<\_ACEOF
13548 # This file is a shell script that caches the results of configure
13549 # tests run on this system so they can be shared between configure
13550 # scripts and configure runs, see configure's option --config-cache.
13551 # It is not useful on other systems. If it contains results you don't
13552 # want to keep, you may remove or edit it.
13553 #
13554 # config.status only pays attention to the cache file if you give it
13555 # the --recheck option to rerun configure.
13556 #
13557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13559 # following values.
13560
13561 _ACEOF
13562
13563 # The following way of writing the cache mishandles newlines in values,
13564 # but we know of no workaround that is simple, portable, and efficient.
13565 # So, we kill variables containing newlines.
13566 # Ultrix sh set writes to stderr and can't be redirected directly,
13567 # and sets the high bit in the cache file unless we assign to the vars.
13568 (
13569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13570 eval ac_val=\$$ac_var
13571 case $ac_val in #(
13572 *${as_nl}*)
13573 case $ac_var in #(
13574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13576 esac
13577 case $ac_var in #(
13578 _ | IFS | as_nl) ;; #(
13579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13580 *) { eval $ac_var=; unset $ac_var;} ;;
13581 esac ;;
13582 esac
13583 done
13584
13585 (set) 2>&1 |
13586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13587 *${as_nl}ac_space=\ *)
13588 # `set' does not quote correctly, so add quotes: double-quote
13589 # substitution turns \\\\ into \\, and sed turns \\ into \.
13590 sed -n \
13591 "s/'/'\\\\''/g;
13592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13593 ;; #(
13594 *)
13595 # `set' quotes correctly as required by POSIX, so do not add quotes.
13596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13597 ;;
13598 esac |
13599 sort
13600 ) |
13601 sed '
13602 /^ac_cv_env_/b end
13603 t clear
13604 :clear
13605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13606 t end
13607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13608 :end' >>confcache
13609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13610 if test -w "$cache_file"; then
13611 if test "x$cache_file" != "x/dev/null"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13613 $as_echo "$as_me: updating cache $cache_file" >&6;}
13614 if test ! -f "$cache_file" || test -h "$cache_file"; then
13615 cat confcache >"$cache_file"
13616 else
13617 case $cache_file in #(
13618 */* | ?:*)
13619 mv -f confcache "$cache_file"$$ &&
13620 mv -f "$cache_file"$$ "$cache_file" ;; #(
13621 *)
13622 mv -f confcache "$cache_file" ;;
13623 esac
13624 fi
13625 fi
13626 else
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13629 fi
13630 fi
13631 rm -f confcache
13632
13633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13634 # Let make expand exec_prefix.
13635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13636
13637 DEFS=-DHAVE_CONFIG_H
13638
13639 ac_libobjs=
13640 ac_ltlibobjs=
13641 U=
13642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13643 # 1. Remove the extension, and $U if already installed.
13644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13647 # will be set to the directory where LIBOBJS objects are built.
13648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13650 done
13651 LIBOBJS=$ac_libobjs
13652
13653 LTLIBOBJS=$ac_ltlibobjs
13654
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13657 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13658 if test -n "$am_sleep_pid"; then
13659 # Hide warnings about reused PIDs.
13660 wait $am_sleep_pid 2>/dev/null
13661 fi
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13663 $as_echo "done" >&6; }
13664 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13665 as_fn_error $? "conditional \"AMDEP\" was never defined.
13666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13667 fi
13668 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13669 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13671 fi
13672 if test -n "$EXEEXT"; then
13673 am__EXEEXT_TRUE=
13674 am__EXEEXT_FALSE='#'
13675 else
13676 am__EXEEXT_TRUE='#'
13677 am__EXEEXT_FALSE=
13678 fi
13679
13680 if test -z "${COND_HP_TRUE}" && test -z "${COND_HP_FALSE}"; then
13681 as_fn_error $? "conditional \"COND_HP\" was never defined.
13682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13683 fi
13684
13685 : "${CONFIG_STATUS=./config.status}"
13686 ac_write_fail=0
13687 ac_clean_files_save=$ac_clean_files
13688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13690 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13691 as_write_fail=0
13692 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13693 #! $SHELL
13694 # Generated by $as_me.
13695 # Run this file to recreate the current configuration.
13696 # Compiler output produced by configure, useful for debugging
13697 # configure, is in config.log if it exists.
13698
13699 debug=false
13700 ac_cs_recheck=false
13701 ac_cs_silent=false
13702
13703 SHELL=\${CONFIG_SHELL-$SHELL}
13704 export SHELL
13705 _ASEOF
13706 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13707 ## -------------------- ##
13708 ## M4sh Initialization. ##
13709 ## -------------------- ##
13710
13711 # Be more Bourne compatible
13712 DUALCASE=1; export DUALCASE # for MKS sh
13713 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13714 emulate sh
13715 NULLCMD=:
13716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13717 # is contrary to our usage. Disable this feature.
13718 alias -g '${1+"$@"}'='"$@"'
13719 setopt NO_GLOB_SUBST
13720 else
13721 case `(set -o) 2>/dev/null` in #(
13722 *posix*) :
13723 set -o posix ;; #(
13724 *) :
13725 ;;
13726 esac
13727 fi
13728
13729
13730 as_nl='
13731 '
13732 export as_nl
13733 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13734 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13737 # Prefer a ksh shell builtin over an external printf program on Solaris,
13738 # but without wasting forks for bash or zsh.
13739 if test -z "$BASH_VERSION$ZSH_VERSION" \
13740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13741 as_echo='print -r --'
13742 as_echo_n='print -rn --'
13743 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13744 as_echo='printf %s\n'
13745 as_echo_n='printf %s'
13746 else
13747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13749 as_echo_n='/usr/ucb/echo -n'
13750 else
13751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13752 as_echo_n_body='eval
13753 arg=$1;
13754 case $arg in #(
13755 *"$as_nl"*)
13756 expr "X$arg" : "X\\(.*\\)$as_nl";
13757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13758 esac;
13759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13760 '
13761 export as_echo_n_body
13762 as_echo_n='sh -c $as_echo_n_body as_echo'
13763 fi
13764 export as_echo_body
13765 as_echo='sh -c $as_echo_body as_echo'
13766 fi
13767
13768 # The user is always right.
13769 if test "${PATH_SEPARATOR+set}" != set; then
13770 PATH_SEPARATOR=:
13771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13773 PATH_SEPARATOR=';'
13774 }
13775 fi
13776
13777
13778 # IFS
13779 # We need space, tab and new line, in precisely that order. Quoting is
13780 # there to prevent editors from complaining about space-tab.
13781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13782 # splitting by setting IFS to empty value.)
13783 IFS=" "" $as_nl"
13784
13785 # Find who we are. Look in the path if we contain no directory separator.
13786 as_myself=
13787 case $0 in #((
13788 *[\\/]* ) as_myself=$0 ;;
13789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13791 do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13795 done
13796 IFS=$as_save_IFS
13797
13798 ;;
13799 esac
13800 # We did not find ourselves, most probably we were run as `sh COMMAND'
13801 # in which case we are not to be found in the path.
13802 if test "x$as_myself" = x; then
13803 as_myself=$0
13804 fi
13805 if test ! -f "$as_myself"; then
13806 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13807 exit 1
13808 fi
13809
13810 # Unset variables that we do not need and which cause bugs (e.g. in
13811 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13812 # suppresses any "Segmentation fault" message there. '((' could
13813 # trigger a bug in pdksh 5.2.14.
13814 for as_var in BASH_ENV ENV MAIL MAILPATH
13815 do eval test x\${$as_var+set} = xset \
13816 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13817 done
13818 PS1='$ '
13819 PS2='> '
13820 PS4='+ '
13821
13822 # NLS nuisances.
13823 LC_ALL=C
13824 export LC_ALL
13825 LANGUAGE=C
13826 export LANGUAGE
13827
13828 # CDPATH.
13829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13830
13831
13832 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13833 # ----------------------------------------
13834 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13835 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13836 # script with STATUS, using 1 if that was 0.
13837 as_fn_error ()
13838 {
13839 as_status=$1; test $as_status -eq 0 && as_status=1
13840 if test "$4"; then
13841 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13842 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13843 fi
13844 $as_echo "$as_me: error: $2" >&2
13845 as_fn_exit $as_status
13846 } # as_fn_error
13847
13848
13849 # as_fn_set_status STATUS
13850 # -----------------------
13851 # Set $? to STATUS, without forking.
13852 as_fn_set_status ()
13853 {
13854 return $1
13855 } # as_fn_set_status
13856
13857 # as_fn_exit STATUS
13858 # -----------------
13859 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13860 as_fn_exit ()
13861 {
13862 set +e
13863 as_fn_set_status $1
13864 exit $1
13865 } # as_fn_exit
13866
13867 # as_fn_unset VAR
13868 # ---------------
13869 # Portably unset VAR.
13870 as_fn_unset ()
13871 {
13872 { eval $1=; unset $1;}
13873 }
13874 as_unset=as_fn_unset
13875 # as_fn_append VAR VALUE
13876 # ----------------------
13877 # Append the text in VALUE to the end of the definition contained in VAR. Take
13878 # advantage of any shell optimizations that allow amortized linear growth over
13879 # repeated appends, instead of the typical quadratic growth present in naive
13880 # implementations.
13881 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13882 eval 'as_fn_append ()
13883 {
13884 eval $1+=\$2
13885 }'
13886 else
13887 as_fn_append ()
13888 {
13889 eval $1=\$$1\$2
13890 }
13891 fi # as_fn_append
13892
13893 # as_fn_arith ARG...
13894 # ------------------
13895 # Perform arithmetic evaluation on the ARGs, and store the result in the
13896 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13897 # must be portable across $(()) and expr.
13898 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13899 eval 'as_fn_arith ()
13900 {
13901 as_val=$(( $* ))
13902 }'
13903 else
13904 as_fn_arith ()
13905 {
13906 as_val=`expr "$@" || test $? -eq 1`
13907 }
13908 fi # as_fn_arith
13909
13910
13911 if expr a : '\(a\)' >/dev/null 2>&1 &&
13912 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13913 as_expr=expr
13914 else
13915 as_expr=false
13916 fi
13917
13918 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13919 as_basename=basename
13920 else
13921 as_basename=false
13922 fi
13923
13924 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13925 as_dirname=dirname
13926 else
13927 as_dirname=false
13928 fi
13929
13930 as_me=`$as_basename -- "$0" ||
13931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13932 X"$0" : 'X\(//\)$' \| \
13933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13934 $as_echo X/"$0" |
13935 sed '/^.*\/\([^/][^/]*\)\/*$/{
13936 s//\1/
13937 q
13938 }
13939 /^X\/\(\/\/\)$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\/\(\/\).*/{
13944 s//\1/
13945 q
13946 }
13947 s/.*/./; q'`
13948
13949 # Avoid depending upon Character Ranges.
13950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13953 as_cr_digits='0123456789'
13954 as_cr_alnum=$as_cr_Letters$as_cr_digits
13955
13956 ECHO_C= ECHO_N= ECHO_T=
13957 case `echo -n x` in #(((((
13958 -n*)
13959 case `echo 'xy\c'` in
13960 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13961 xy) ECHO_C='\c';;
13962 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13963 ECHO_T=' ';;
13964 esac;;
13965 *)
13966 ECHO_N='-n';;
13967 esac
13968
13969 rm -f conf$$ conf$$.exe conf$$.file
13970 if test -d conf$$.dir; then
13971 rm -f conf$$.dir/conf$$.file
13972 else
13973 rm -f conf$$.dir
13974 mkdir conf$$.dir 2>/dev/null
13975 fi
13976 if (echo >conf$$.file) 2>/dev/null; then
13977 if ln -s conf$$.file conf$$ 2>/dev/null; then
13978 as_ln_s='ln -s'
13979 # ... but there are two gotchas:
13980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13982 # In both cases, we have to default to `cp -pR'.
13983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13984 as_ln_s='cp -pR'
13985 elif ln conf$$.file conf$$ 2>/dev/null; then
13986 as_ln_s=ln
13987 else
13988 as_ln_s='cp -pR'
13989 fi
13990 else
13991 as_ln_s='cp -pR'
13992 fi
13993 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13994 rmdir conf$$.dir 2>/dev/null
13995
13996
13997 # as_fn_mkdir_p
13998 # -------------
13999 # Create "$as_dir" as a directory, including parents if necessary.
14000 as_fn_mkdir_p ()
14001 {
14002
14003 case $as_dir in #(
14004 -*) as_dir=./$as_dir;;
14005 esac
14006 test -d "$as_dir" || eval $as_mkdir_p || {
14007 as_dirs=
14008 while :; do
14009 case $as_dir in #(
14010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14011 *) as_qdir=$as_dir;;
14012 esac
14013 as_dirs="'$as_qdir' $as_dirs"
14014 as_dir=`$as_dirname -- "$as_dir" ||
14015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14016 X"$as_dir" : 'X\(//\)[^/]' \| \
14017 X"$as_dir" : 'X\(//\)$' \| \
14018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14019 $as_echo X"$as_dir" |
14020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14021 s//\1/
14022 q
14023 }
14024 /^X\(\/\/\)[^/].*/{
14025 s//\1/
14026 q
14027 }
14028 /^X\(\/\/\)$/{
14029 s//\1/
14030 q
14031 }
14032 /^X\(\/\).*/{
14033 s//\1/
14034 q
14035 }
14036 s/.*/./; q'`
14037 test -d "$as_dir" && break
14038 done
14039 test -z "$as_dirs" || eval "mkdir $as_dirs"
14040 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14041
14042
14043 } # as_fn_mkdir_p
14044 if mkdir -p . 2>/dev/null; then
14045 as_mkdir_p='mkdir -p "$as_dir"'
14046 else
14047 test -d ./-p && rmdir ./-p
14048 as_mkdir_p=false
14049 fi
14050
14051
14052 # as_fn_executable_p FILE
14053 # -----------------------
14054 # Test if FILE is an executable regular file.
14055 as_fn_executable_p ()
14056 {
14057 test -f "$1" && test -x "$1"
14058 } # as_fn_executable_p
14059 as_test_x='test -x'
14060 as_executable_p=as_fn_executable_p
14061
14062 # Sed expression to map a string onto a valid CPP name.
14063 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14064
14065 # Sed expression to map a string onto a valid variable name.
14066 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14067
14068
14069 exec 6>&1
14070 ## ----------------------------------- ##
14071 ## Main body of $CONFIG_STATUS script. ##
14072 ## ----------------------------------- ##
14073 _ASEOF
14074 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14075
14076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14077 # Save the log message, to keep $0 and so on meaningful, and to
14078 # report actual input values of CONFIG_FILES etc. instead of their
14079 # values after options handling.
14080 ac_log="
14081 This file was extended by libcanlock $as_me 3.3.1, which was
14082 generated by GNU Autoconf 2.69. Invocation command line was
14083
14084 CONFIG_FILES = $CONFIG_FILES
14085 CONFIG_HEADERS = $CONFIG_HEADERS
14086 CONFIG_LINKS = $CONFIG_LINKS
14087 CONFIG_COMMANDS = $CONFIG_COMMANDS
14088 $ $0 $@
14089
14090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14091 "
14092
14093 _ACEOF
14094
14095 case $ac_config_files in *"
14096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14097 esac
14098
14099 case $ac_config_headers in *"
14100 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14101 esac
14102
14103
14104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105 # Files that config.status was made for.
14106 config_files="$ac_config_files"
14107 config_headers="$ac_config_headers"
14108 config_commands="$ac_config_commands"
14109
14110 _ACEOF
14111
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113 ac_cs_usage="\
14114 \`$as_me' instantiates files and other configuration actions
14115 from templates according to the current configuration. Unless the files
14116 and actions are specified as TAGs, all are instantiated by default.
14117
14118 Usage: $0 [OPTION]... [TAG]...
14119
14120 -h, --help print this help, then exit
14121 -V, --version print version number and configuration settings, then exit
14122 --config print configuration, then exit
14123 -q, --quiet, --silent
14124 do not print progress messages
14125 -d, --debug don't remove temporary files
14126 --recheck update $as_me by reconfiguring in the same conditions
14127 --file=FILE[:TEMPLATE]
14128 instantiate the configuration file FILE
14129 --header=FILE[:TEMPLATE]
14130 instantiate the configuration header FILE
14131
14132 Configuration files:
14133 $config_files
14134
14135 Configuration headers:
14136 $config_headers
14137
14138 Configuration commands:
14139 $config_commands
14140
14141 Report bugs to <[email protected]>.
14142 libcanlock home page: <https://micha.freeshell.org/libcanlock>."
14143
14144 _ACEOF
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14147 ac_cs_version="\\
14148 libcanlock config.status 3.3.1
14149 configured by $0, generated by GNU Autoconf 2.69,
14150 with options \\"\$ac_cs_config\\"
14151
14152 Copyright (C) 2012 Free Software Foundation, Inc.
14153 This config.status script is free software; the Free Software Foundation
14154 gives unlimited permission to copy, distribute and modify it."
14155
14156 ac_pwd='$ac_pwd'
14157 srcdir='$srcdir'
14158 INSTALL='$INSTALL'
14159 MKDIR_P='$MKDIR_P'
14160 AWK='$AWK'
14161 test -n "\$AWK" || AWK=awk
14162 _ACEOF
14163
14164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14165 # The default lists apply if the user does not specify any file.
14166 ac_need_defaults=:
14167 while test $# != 0
14168 do
14169 case $1 in
14170 --*=?*)
14171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14173 ac_shift=:
14174 ;;
14175 --*=)
14176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14177 ac_optarg=
14178 ac_shift=:
14179 ;;
14180 *)
14181 ac_option=$1
14182 ac_optarg=$2
14183 ac_shift=shift
14184 ;;
14185 esac
14186
14187 case $ac_option in
14188 # Handling of the options.
14189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14190 ac_cs_recheck=: ;;
14191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14192 $as_echo "$ac_cs_version"; exit ;;
14193 --config | --confi | --conf | --con | --co | --c )
14194 $as_echo "$ac_cs_config"; exit ;;
14195 --debug | --debu | --deb | --de | --d | -d )
14196 debug=: ;;
14197 --file | --fil | --fi | --f )
14198 $ac_shift
14199 case $ac_optarg in
14200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14201 '') as_fn_error $? "missing file argument" ;;
14202 esac
14203 as_fn_append CONFIG_FILES " '$ac_optarg'"
14204 ac_need_defaults=false;;
14205 --header | --heade | --head | --hea )
14206 $ac_shift
14207 case $ac_optarg in
14208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14209 esac
14210 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14211 ac_need_defaults=false;;
14212 --he | --h)
14213 # Conflict between --help and --header
14214 as_fn_error $? "ambiguous option: \`$1'
14215 Try \`$0 --help' for more information.";;
14216 --help | --hel | -h )
14217 $as_echo "$ac_cs_usage"; exit ;;
14218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14219 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14220 ac_cs_silent=: ;;
14221
14222 # This is an error.
14223 -*) as_fn_error $? "unrecognized option: \`$1'
14224 Try \`$0 --help' for more information." ;;
14225
14226 *) as_fn_append ac_config_targets " $1"
14227 ac_need_defaults=false ;;
14228
14229 esac
14230 shift
14231 done
14232
14233 ac_configure_extra_args=
14234
14235 if $ac_cs_silent; then
14236 exec 6>/dev/null
14237 ac_configure_extra_args="$ac_configure_extra_args --silent"
14238 fi
14239
14240 _ACEOF
14241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14242 if \$ac_cs_recheck; then
14243 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14244 shift
14245 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14246 CONFIG_SHELL='$SHELL'
14247 export CONFIG_SHELL
14248 exec "\$@"
14249 fi
14250
14251 _ACEOF
14252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14253 exec 5>>config.log
14254 {
14255 echo
14256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14257 ## Running $as_me. ##
14258 _ASBOX
14259 $as_echo "$ac_log"
14260 } >&5
14261
14262 _ACEOF
14263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264 #
14265 # INIT-COMMANDS
14266 #
14267
14268
14269 # The HP-UX ksh and POSIX shell print the target directory to stdout
14270 # if CDPATH is set.
14271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14272
14273 sed_quote_subst='$sed_quote_subst'
14274 double_quote_subst='$double_quote_subst'
14275 delay_variable_subst='$delay_variable_subst'
14276 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14277 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14278 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14279 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14280 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14281 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14282 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14283 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14284 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14285 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14286 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14287 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14288 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14289 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14290 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14291 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14292 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14293 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14294 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14295 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14296 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14297 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14298 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14299 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14300 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14301 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14302 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14303 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14304 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14305 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14306 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14307 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14308 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14309 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14310 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14311 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14312 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14313 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14314 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14315 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14316 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14317 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14318 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14319 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14320 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14321 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14322 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14323 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14324 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14325 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14326 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14327 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14328 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14329 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14330 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14331 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14332 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14333 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14334 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"`'
14335 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14336 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14337 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14338 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14339 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14340 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14341 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14342 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14343 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14344 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14345 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14346 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14347 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14348 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14349 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14350 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14351 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14352 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14353 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14354 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14355 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14356 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14357 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14358 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14359 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14360 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14361 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14362 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14363 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14364 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14365 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14366 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14367 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14368 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14369 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14370 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14371 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14372 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14373 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14374 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14375 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14376 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14377 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14378 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14379 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14380 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14381 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14382 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14383 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14384 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14385 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14386 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14387 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14388 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14389 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14390 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14391 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14392 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14393 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14394 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14395 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14396 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14397 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14398 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14399 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14400 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14401 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14402 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14403 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14404 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14405 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14406 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14407 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14408 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14409 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14410 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14411
14412 LTCC='$LTCC'
14413 LTCFLAGS='$LTCFLAGS'
14414 compiler='$compiler_DEFAULT'
14415
14416 # A function that is used when there is no print builtin or printf.
14417 func_fallback_echo ()
14418 {
14419 eval 'cat <<_LTECHO_EOF
14420 \$1
14421 _LTECHO_EOF'
14422 }
14423
14424 # Quote evaled strings.
14425 for var in SHELL \
14426 ECHO \
14427 PATH_SEPARATOR \
14428 SED \
14429 GREP \
14430 EGREP \
14431 FGREP \
14432 LD \
14433 NM \
14434 LN_S \
14435 lt_SP2NL \
14436 lt_NL2SP \
14437 reload_flag \
14438 OBJDUMP \
14439 deplibs_check_method \
14440 file_magic_cmd \
14441 file_magic_glob \
14442 want_nocaseglob \
14443 DLLTOOL \
14444 sharedlib_from_linklib_cmd \
14445 AR \
14446 AR_FLAGS \
14447 archiver_list_spec \
14448 STRIP \
14449 RANLIB \
14450 CC \
14451 CFLAGS \
14452 compiler \
14453 lt_cv_sys_global_symbol_pipe \
14454 lt_cv_sys_global_symbol_to_cdecl \
14455 lt_cv_sys_global_symbol_to_import \
14456 lt_cv_sys_global_symbol_to_c_name_address \
14457 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14458 lt_cv_nm_interface \
14459 nm_file_list_spec \
14460 lt_cv_truncate_bin \
14461 lt_prog_compiler_no_builtin_flag \
14462 lt_prog_compiler_pic \
14463 lt_prog_compiler_wl \
14464 lt_prog_compiler_static \
14465 lt_cv_prog_compiler_c_o \
14466 need_locks \
14467 MANIFEST_TOOL \
14468 DSYMUTIL \
14469 NMEDIT \
14470 LIPO \
14471 OTOOL \
14472 OTOOL64 \
14473 shrext_cmds \
14474 export_dynamic_flag_spec \
14475 whole_archive_flag_spec \
14476 compiler_needs_object \
14477 with_gnu_ld \
14478 allow_undefined_flag \
14479 no_undefined_flag \
14480 hardcode_libdir_flag_spec \
14481 hardcode_libdir_separator \
14482 exclude_expsyms \
14483 include_expsyms \
14484 file_list_spec \
14485 variables_saved_for_relink \
14486 libname_spec \
14487 library_names_spec \
14488 soname_spec \
14489 install_override_mode \
14490 finish_eval \
14491 old_striplib \
14492 striplib; do
14493 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14494 *[\\\\\\\`\\"\\\$]*)
14495 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14496 ;;
14497 *)
14498 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14499 ;;
14500 esac
14501 done
14502
14503 # Double-quote double-evaled strings.
14504 for var in reload_cmds \
14505 old_postinstall_cmds \
14506 old_postuninstall_cmds \
14507 old_archive_cmds \
14508 extract_expsyms_cmds \
14509 old_archive_from_new_cmds \
14510 old_archive_from_expsyms_cmds \
14511 archive_cmds \
14512 archive_expsym_cmds \
14513 module_cmds \
14514 module_expsym_cmds \
14515 export_symbols_cmds \
14516 prelink_cmds \
14517 postlink_cmds \
14518 postinstall_cmds \
14519 postuninstall_cmds \
14520 finish_cmds \
14521 sys_lib_search_path_spec \
14522 configure_time_dlsearch_path \
14523 configure_time_lt_sys_library_path; do
14524 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14525 *[\\\\\\\`\\"\\\$]*)
14526 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14527 ;;
14528 *)
14529 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14530 ;;
14531 esac
14532 done
14533
14534 ac_aux_dir='$ac_aux_dir'
14535
14536 # See if we are running on zsh, and set the options that allow our
14537 # commands through without removal of \ escapes INIT.
14538 if test -n "\${ZSH_VERSION+set}"; then
14539 setopt NO_GLOB_SUBST
14540 fi
14541
14542
14543 PACKAGE='$PACKAGE'
14544 VERSION='$VERSION'
14545 RM='$RM'
14546 ofile='$ofile'
14547
14548
14549
14550 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14551
14552 _ACEOF
14553
14554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14555
14556 # Handling of arguments.
14557 for ac_config_target in $ac_config_targets
14558 do
14559 case $ac_config_target in
14560 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14561 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14564 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14565 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14566 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14567 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14568 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14569 "include/canlock.h") CONFIG_FILES="$CONFIG_FILES include/canlock.h" ;;
14570 "libcanlock-3.pc") CONFIG_FILES="$CONFIG_FILES libcanlock-3.pc" ;;
14571
14572 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14573 esac
14574 done
14575
14576
14577 # If the user did not use the arguments to specify the items to instantiate,
14578 # then the envvar interface is used. Set only those that are not.
14579 # We use the long form for the default assignment because of an extremely
14580 # bizarre bug on SunOS 4.1.3.
14581 if $ac_need_defaults; then
14582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14583 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14584 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14585 fi
14586
14587 # Have a temporary directory for convenience. Make it in the build tree
14588 # simply because there is no reason against having it here, and in addition,
14589 # creating and moving files from /tmp can sometimes cause problems.
14590 # Hook for its removal unless debugging.
14591 # Note that there is a small window in which the directory will not be cleaned:
14592 # after its creation but before its name has been assigned to `$tmp'.
14593 $debug ||
14594 {
14595 tmp= ac_tmp=
14596 trap 'exit_status=$?
14597 : "${ac_tmp:=$tmp}"
14598 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14599 ' 0
14600 trap 'as_fn_exit 1' 1 2 13 15
14601 }
14602 # Create a (secure) tmp directory for tmp files.
14603
14604 {
14605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14606 test -d "$tmp"
14607 } ||
14608 {
14609 tmp=./conf$$-$RANDOM
14610 (umask 077 && mkdir "$tmp")
14611 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14612 ac_tmp=$tmp
14613
14614 # Set up the scripts for CONFIG_FILES section.
14615 # No need to generate them if there are no CONFIG_FILES.
14616 # This happens for instance with `./config.status config.h'.
14617 if test -n "$CONFIG_FILES"; then
14618
14619
14620 ac_cr=`echo X | tr X '\015'`
14621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14622 # But we know of no other shell where ac_cr would be empty at this
14623 # point, so we can use a bashism as a fallback.
14624 if test "x$ac_cr" = x; then
14625 eval ac_cr=\$\'\\r\'
14626 fi
14627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14629 ac_cs_awk_cr='\\r'
14630 else
14631 ac_cs_awk_cr=$ac_cr
14632 fi
14633
14634 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14635 _ACEOF
14636
14637
14638 {
14639 echo "cat >conf$$subs.awk <<_ACEOF" &&
14640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14641 echo "_ACEOF"
14642 } >conf$$subs.sh ||
14643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14645 ac_delim='%!_!# '
14646 for ac_last_try in false false false false false :; do
14647 . ./conf$$subs.sh ||
14648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14649
14650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14651 if test $ac_delim_n = $ac_delim_num; then
14652 break
14653 elif $ac_last_try; then
14654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14655 else
14656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14657 fi
14658 done
14659 rm -f conf$$subs.sh
14660
14661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14662 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14663 _ACEOF
14664 sed -n '
14665 h
14666 s/^/S["/; s/!.*/"]=/
14667 p
14668 g
14669 s/^[^!]*!//
14670 :repl
14671 t repl
14672 s/'"$ac_delim"'$//
14673 t delim
14674 :nl
14675 h
14676 s/\(.\{148\}\)..*/\1/
14677 t more1
14678 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14679 p
14680 n
14681 b repl
14682 :more1
14683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14684 p
14685 g
14686 s/.\{148\}//
14687 t nl
14688 :delim
14689 h
14690 s/\(.\{148\}\)..*/\1/
14691 t more2
14692 s/["\\]/\\&/g; s/^/"/; s/$/"/
14693 p
14694 b
14695 :more2
14696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14697 p
14698 g
14699 s/.\{148\}//
14700 t delim
14701 ' <conf$$subs.awk | sed '
14702 /^[^""]/{
14703 N
14704 s/\n//
14705 }
14706 ' >>$CONFIG_STATUS || ac_write_fail=1
14707 rm -f conf$$subs.awk
14708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14709 _ACAWK
14710 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14711 for (key in S) S_is_set[key] = 1
14712 FS = ""
14713
14714 }
14715 {
14716 line = $ 0
14717 nfields = split(line, field, "@")
14718 substed = 0
14719 len = length(field[1])
14720 for (i = 2; i < nfields; i++) {
14721 key = field[i]
14722 keylen = length(key)
14723 if (S_is_set[key]) {
14724 value = S[key]
14725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14726 len += length(value) + length(field[++i])
14727 substed = 1
14728 } else
14729 len += 1 + keylen
14730 }
14731
14732 print line
14733 }
14734
14735 _ACAWK
14736 _ACEOF
14737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14740 else
14741 cat
14742 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14743 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14744 _ACEOF
14745
14746 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14747 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14748 # trailing colons and then remove the whole line if VPATH becomes empty
14749 # (actually we leave an empty line to preserve line numbers).
14750 if test "x$srcdir" = x.; then
14751 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14752 h
14753 s///
14754 s/^/:/
14755 s/[ ]*$/:/
14756 s/:\$(srcdir):/:/g
14757 s/:\${srcdir}:/:/g
14758 s/:@srcdir@:/:/g
14759 s/^:*//
14760 s/:*$//
14761 x
14762 s/\(=[ ]*\).*/\1/
14763 G
14764 s/\n//
14765 s/^[^=]*=[ ]*$//
14766 }'
14767 fi
14768
14769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14770 fi # test -n "$CONFIG_FILES"
14771
14772 # Set up the scripts for CONFIG_HEADERS section.
14773 # No need to generate them if there are no CONFIG_HEADERS.
14774 # This happens for instance with `./config.status Makefile'.
14775 if test -n "$CONFIG_HEADERS"; then
14776 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14777 BEGIN {
14778 _ACEOF
14779
14780 # Transform confdefs.h into an awk script `defines.awk', embedded as
14781 # here-document in config.status, that substitutes the proper values into
14782 # config.h.in to produce config.h.
14783
14784 # Create a delimiter string that does not exist in confdefs.h, to ease
14785 # handling of long lines.
14786 ac_delim='%!_!# '
14787 for ac_last_try in false false :; do
14788 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14789 if test -z "$ac_tt"; then
14790 break
14791 elif $ac_last_try; then
14792 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14793 else
14794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14795 fi
14796 done
14797
14798 # For the awk script, D is an array of macro values keyed by name,
14799 # likewise P contains macro parameters if any. Preserve backslash
14800 # newline sequences.
14801
14802 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14803 sed -n '
14804 s/.\{148\}/&'"$ac_delim"'/g
14805 t rset
14806 :rset
14807 s/^[ ]*#[ ]*define[ ][ ]*/ /
14808 t def
14809 d
14810 :def
14811 s/\\$//
14812 t bsnl
14813 s/["\\]/\\&/g
14814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14815 D["\1"]=" \3"/p
14816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14817 d
14818 :bsnl
14819 s/["\\]/\\&/g
14820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14821 D["\1"]=" \3\\\\\\n"\\/p
14822 t cont
14823 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14824 t cont
14825 d
14826 :cont
14827 n
14828 s/.\{148\}/&'"$ac_delim"'/g
14829 t clear
14830 :clear
14831 s/\\$//
14832 t bsnlc
14833 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14834 d
14835 :bsnlc
14836 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14837 b cont
14838 ' <confdefs.h | sed '
14839 s/'"$ac_delim"'/"\\\
14840 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14841
14842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14843 for (key in D) D_is_set[key] = 1
14844 FS = ""
14845 }
14846 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14847 line = \$ 0
14848 split(line, arg, " ")
14849 if (arg[1] == "#") {
14850 defundef = arg[2]
14851 mac1 = arg[3]
14852 } else {
14853 defundef = substr(arg[1], 2)
14854 mac1 = arg[2]
14855 }
14856 split(mac1, mac2, "(") #)
14857 macro = mac2[1]
14858 prefix = substr(line, 1, index(line, defundef) - 1)
14859 if (D_is_set[macro]) {
14860 # Preserve the white space surrounding the "#".
14861 print prefix "define", macro P[macro] D[macro]
14862 next
14863 } else {
14864 # Replace #undef with comments. This is necessary, for example,
14865 # in the case of _POSIX_SOURCE, which is predefined and required
14866 # on some systems where configure will not decide to define it.
14867 if (defundef == "undef") {
14868 print "/*", prefix defundef, macro, "*/"
14869 next
14870 }
14871 }
14872 }
14873 { print }
14874 _ACAWK
14875 _ACEOF
14876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14877 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14878 fi # test -n "$CONFIG_HEADERS"
14879
14880
14881 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14882 shift
14883 for ac_tag
14884 do
14885 case $ac_tag in
14886 :[FHLC]) ac_mode=$ac_tag; continue;;
14887 esac
14888 case $ac_mode$ac_tag in
14889 :[FHL]*:*);;
14890 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14891 :[FH]-) ac_tag=-:-;;
14892 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14893 esac
14894 ac_save_IFS=$IFS
14895 IFS=:
14896 set x $ac_tag
14897 IFS=$ac_save_IFS
14898 shift
14899 ac_file=$1
14900 shift
14901
14902 case $ac_mode in
14903 :L) ac_source=$1;;
14904 :[FH])
14905 ac_file_inputs=
14906 for ac_f
14907 do
14908 case $ac_f in
14909 -) ac_f="$ac_tmp/stdin";;
14910 *) # Look for the file first in the build tree, then in the source tree
14911 # (if the path is not absolute). The absolute path cannot be DOS-style,
14912 # because $ac_f cannot contain `:'.
14913 test -f "$ac_f" ||
14914 case $ac_f in
14915 [\\/$]*) false;;
14916 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14917 esac ||
14918 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14919 esac
14920 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14921 as_fn_append ac_file_inputs " '$ac_f'"
14922 done
14923
14924 # Let's still pretend it is `configure' which instantiates (i.e., don't
14925 # use $as_me), people would be surprised to read:
14926 # /* config.h. Generated by config.status. */
14927 configure_input='Generated from '`
14928 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14929 `' by configure.'
14930 if test x"$ac_file" != x-; then
14931 configure_input="$ac_file. $configure_input"
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14933 $as_echo "$as_me: creating $ac_file" >&6;}
14934 fi
14935 # Neutralize special characters interpreted by sed in replacement strings.
14936 case $configure_input in #(
14937 *\&* | *\|* | *\\* )
14938 ac_sed_conf_input=`$as_echo "$configure_input" |
14939 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14940 *) ac_sed_conf_input=$configure_input;;
14941 esac
14942
14943 case $ac_tag in
14944 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14946 esac
14947 ;;
14948 esac
14949
14950 ac_dir=`$as_dirname -- "$ac_file" ||
14951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14952 X"$ac_file" : 'X\(//\)[^/]' \| \
14953 X"$ac_file" : 'X\(//\)$' \| \
14954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14955 $as_echo X"$ac_file" |
14956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14957 s//\1/
14958 q
14959 }
14960 /^X\(\/\/\)[^/].*/{
14961 s//\1/
14962 q
14963 }
14964 /^X\(\/\/\)$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\(\/\).*/{
14969 s//\1/
14970 q
14971 }
14972 s/.*/./; q'`
14973 as_dir="$ac_dir"; as_fn_mkdir_p
14974 ac_builddir=.
14975
14976 case "$ac_dir" in
14977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14978 *)
14979 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14980 # A ".." for each directory in $ac_dir_suffix.
14981 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14982 case $ac_top_builddir_sub in
14983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14985 esac ;;
14986 esac
14987 ac_abs_top_builddir=$ac_pwd
14988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14989 # for backward compatibility:
14990 ac_top_builddir=$ac_top_build_prefix
14991
14992 case $srcdir in
14993 .) # We are building in place.
14994 ac_srcdir=.
14995 ac_top_srcdir=$ac_top_builddir_sub
14996 ac_abs_top_srcdir=$ac_pwd ;;
14997 [\\/]* | ?:[\\/]* ) # Absolute name.
14998 ac_srcdir=$srcdir$ac_dir_suffix;
14999 ac_top_srcdir=$srcdir
15000 ac_abs_top_srcdir=$srcdir ;;
15001 *) # Relative name.
15002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15003 ac_top_srcdir=$ac_top_build_prefix$srcdir
15004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15005 esac
15006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15007
15008
15009 case $ac_mode in
15010 :F)
15011 #
15012 # CONFIG_FILE
15013 #
15014
15015 case $INSTALL in
15016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15018 esac
15019 ac_MKDIR_P=$MKDIR_P
15020 case $MKDIR_P in
15021 [\\/$]* | ?:[\\/]* ) ;;
15022 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15023 esac
15024 _ACEOF
15025
15026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15027 # If the template does not know about datarootdir, expand it.
15028 # FIXME: This hack should be removed a few years after 2.60.
15029 ac_datarootdir_hack=; ac_datarootdir_seen=
15030 ac_sed_dataroot='
15031 /datarootdir/ {
15032 p
15033 q
15034 }
15035 /@datadir@/p
15036 /@docdir@/p
15037 /@infodir@/p
15038 /@localedir@/p
15039 /@mandir@/p'
15040 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15041 *datarootdir*) ac_datarootdir_seen=yes;;
15042 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15044 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15045 _ACEOF
15046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15047 ac_datarootdir_hack='
15048 s&@datadir@&$datadir&g
15049 s&@docdir@&$docdir&g
15050 s&@infodir@&$infodir&g
15051 s&@localedir@&$localedir&g
15052 s&@mandir@&$mandir&g
15053 s&\\\${datarootdir}&$datarootdir&g' ;;
15054 esac
15055 _ACEOF
15056
15057 # Neutralize VPATH when `$srcdir' = `.'.
15058 # Shell code in configure.ac might set extrasub.
15059 # FIXME: do we really want to maintain this feature?
15060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15061 ac_sed_extra="$ac_vpsub
15062 $extrasub
15063 _ACEOF
15064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15065 :t
15066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15067 s|@configure_input@|$ac_sed_conf_input|;t t
15068 s&@top_builddir@&$ac_top_builddir_sub&;t t
15069 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15070 s&@srcdir@&$ac_srcdir&;t t
15071 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15072 s&@top_srcdir@&$ac_top_srcdir&;t t
15073 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15074 s&@builddir@&$ac_builddir&;t t
15075 s&@abs_builddir@&$ac_abs_builddir&;t t
15076 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15077 s&@INSTALL@&$ac_INSTALL&;t t
15078 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15079 $ac_datarootdir_hack
15080 "
15081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15082 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15083
15084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15085 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15087 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15089 which seems to be undefined. Please make sure it is defined" >&5
15090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15091 which seems to be undefined. Please make sure it is defined" >&2;}
15092
15093 rm -f "$ac_tmp/stdin"
15094 case $ac_file in
15095 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15096 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15097 esac \
15098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15099 ;;
15100 :H)
15101 #
15102 # CONFIG_HEADER
15103 #
15104 if test x"$ac_file" != x-; then
15105 {
15106 $as_echo "/* $configure_input */" \
15107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15108 } >"$ac_tmp/config.h" \
15109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15110 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15113 else
15114 rm -f "$ac_file"
15115 mv "$ac_tmp/config.h" "$ac_file" \
15116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15117 fi
15118 else
15119 $as_echo "/* $configure_input */" \
15120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15121 || as_fn_error $? "could not create -" "$LINENO" 5
15122 fi
15123 # Compute "$ac_file"'s index in $config_headers.
15124 _am_arg="$ac_file"
15125 _am_stamp_count=1
15126 for _am_header in $config_headers :; do
15127 case $_am_header in
15128 $_am_arg | $_am_arg:* )
15129 break ;;
15130 * )
15131 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15132 esac
15133 done
15134 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15135 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15136 X"$_am_arg" : 'X\(//\)[^/]' \| \
15137 X"$_am_arg" : 'X\(//\)$' \| \
15138 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15139 $as_echo X"$_am_arg" |
15140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15141 s//\1/
15142 q
15143 }
15144 /^X\(\/\/\)[^/].*/{
15145 s//\1/
15146 q
15147 }
15148 /^X\(\/\/\)$/{
15149 s//\1/
15150 q
15151 }
15152 /^X\(\/\).*/{
15153 s//\1/
15154 q
15155 }
15156 s/.*/./; q'`/stamp-h$_am_stamp_count
15157 ;;
15158
15159 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15160 $as_echo "$as_me: executing $ac_file commands" >&6;}
15161 ;;
15162 esac
15163
15164
15165 case $ac_file$ac_mode in
15166 "libtool":C)
15167
15168 # See if we are running on zsh, and set the options that allow our
15169 # commands through without removal of \ escapes.
15170 if test -n "${ZSH_VERSION+set}"; then
15171 setopt NO_GLOB_SUBST
15172 fi
15173
15174 cfgfile=${ofile}T
15175 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15176 $RM "$cfgfile"
15177
15178 cat <<_LT_EOF >> "$cfgfile"
15179 #! $SHELL
15180 # Generated automatically by $as_me ($PACKAGE) $VERSION
15181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15183
15184 # Provide generalized library-building support services.
15185 # Written by Gordon Matzigkeit, 1996
15186
15187 # Copyright (C) 2014 Free Software Foundation, Inc.
15188 # This is free software; see the source for copying conditions. There is NO
15189 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15190
15191 # GNU Libtool is free software; you can redistribute it and/or modify
15192 # it under the terms of the GNU General Public License as published by
15193 # the Free Software Foundation; either version 2 of of the License, or
15194 # (at your option) any later version.
15195 #
15196 # As a special exception to the GNU General Public License, if you
15197 # distribute this file as part of a program or library that is built
15198 # using GNU Libtool, you may include this file under the same
15199 # distribution terms that you use for the rest of that program.
15200 #
15201 # GNU Libtool is distributed in the hope that it will be useful, but
15202 # WITHOUT ANY WARRANTY; without even the implied warranty of
15203 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15204 # GNU General Public License for more details.
15205 #
15206 # You should have received a copy of the GNU General Public License
15207 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15208
15209
15210 # The names of the tagged configurations supported by this script.
15211 available_tags=''
15212
15213 # Configured defaults for sys_lib_dlsearch_path munging.
15214 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15215
15216 # ### BEGIN LIBTOOL CONFIG
15217
15218 # Which release of libtool.m4 was used?
15219 macro_version=$macro_version
15220 macro_revision=$macro_revision
15221
15222 # Whether or not to build shared libraries.
15223 build_libtool_libs=$enable_shared
15224
15225 # Whether or not to build static libraries.
15226 build_old_libs=$enable_static
15227
15228 # What type of objects to build.
15229 pic_mode=$pic_mode
15230
15231 # Whether or not to optimize for fast installation.
15232 fast_install=$enable_fast_install
15233
15234 # Shared archive member basename,for filename based shared library versioning on AIX.
15235 shared_archive_member_spec=$shared_archive_member_spec
15236
15237 # Shell to use when invoking shell scripts.
15238 SHELL=$lt_SHELL
15239
15240 # An echo program that protects backslashes.
15241 ECHO=$lt_ECHO
15242
15243 # The PATH separator for the build system.
15244 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15245
15246 # The host system.
15247 host_alias=$host_alias
15248 host=$host
15249 host_os=$host_os
15250
15251 # The build system.
15252 build_alias=$build_alias
15253 build=$build
15254 build_os=$build_os
15255
15256 # A sed program that does not truncate output.
15257 SED=$lt_SED
15258
15259 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15260 Xsed="\$SED -e 1s/^X//"
15261
15262 # A grep program that handles long lines.
15263 GREP=$lt_GREP
15264
15265 # An ERE matcher.
15266 EGREP=$lt_EGREP
15267
15268 # A literal string matcher.
15269 FGREP=$lt_FGREP
15270
15271 # A BSD- or MS-compatible name lister.
15272 NM=$lt_NM
15273
15274 # Whether we need soft or hard links.
15275 LN_S=$lt_LN_S
15276
15277 # What is the maximum length of a command?
15278 max_cmd_len=$max_cmd_len
15279
15280 # Object file suffix (normally "o").
15281 objext=$ac_objext
15282
15283 # Executable file suffix (normally "").
15284 exeext=$exeext
15285
15286 # whether the shell understands "unset".
15287 lt_unset=$lt_unset
15288
15289 # turn spaces into newlines.
15290 SP2NL=$lt_lt_SP2NL
15291
15292 # turn newlines into spaces.
15293 NL2SP=$lt_lt_NL2SP
15294
15295 # convert \$build file names to \$host format.
15296 to_host_file_cmd=$lt_cv_to_host_file_cmd
15297
15298 # convert \$build files to toolchain format.
15299 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15300
15301 # An object symbol dumper.
15302 OBJDUMP=$lt_OBJDUMP
15303
15304 # Method to check whether dependent libraries are shared objects.
15305 deplibs_check_method=$lt_deplibs_check_method
15306
15307 # Command to use when deplibs_check_method = "file_magic".
15308 file_magic_cmd=$lt_file_magic_cmd
15309
15310 # How to find potential files when deplibs_check_method = "file_magic".
15311 file_magic_glob=$lt_file_magic_glob
15312
15313 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15314 want_nocaseglob=$lt_want_nocaseglob
15315
15316 # DLL creation program.
15317 DLLTOOL=$lt_DLLTOOL
15318
15319 # Command to associate shared and link libraries.
15320 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15321
15322 # The archiver.
15323 AR=$lt_AR
15324
15325 # Flags to create an archive.
15326 AR_FLAGS=$lt_AR_FLAGS
15327
15328 # How to feed a file listing to the archiver.
15329 archiver_list_spec=$lt_archiver_list_spec
15330
15331 # A symbol stripping program.
15332 STRIP=$lt_STRIP
15333
15334 # Commands used to install an old-style archive.
15335 RANLIB=$lt_RANLIB
15336 old_postinstall_cmds=$lt_old_postinstall_cmds
15337 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15338
15339 # Whether to use a lock for old archive extraction.
15340 lock_old_archive_extraction=$lock_old_archive_extraction
15341
15342 # A C compiler.
15343 LTCC=$lt_CC
15344
15345 # LTCC compiler flags.
15346 LTCFLAGS=$lt_CFLAGS
15347
15348 # Take the output of nm and produce a listing of raw symbols and C names.
15349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15350
15351 # Transform the output of nm in a proper C declaration.
15352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15353
15354 # Transform the output of nm into a list of symbols to manually relocate.
15355 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15356
15357 # Transform the output of nm in a C name address pair.
15358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15359
15360 # Transform the output of nm in a C name address pair when lib prefix is needed.
15361 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15362
15363 # The name lister interface.
15364 nm_interface=$lt_lt_cv_nm_interface
15365
15366 # Specify filename containing input files for \$NM.
15367 nm_file_list_spec=$lt_nm_file_list_spec
15368
15369 # The root where to search for dependent libraries,and where our libraries should be installed.
15370 lt_sysroot=$lt_sysroot
15371
15372 # Command to truncate a binary pipe.
15373 lt_truncate_bin=$lt_lt_cv_truncate_bin
15374
15375 # The name of the directory that contains temporary libtool files.
15376 objdir=$objdir
15377
15378 # Used to examine libraries when file_magic_cmd begins with "file".
15379 MAGIC_CMD=$MAGIC_CMD
15380
15381 # Must we lock files when doing compilation?
15382 need_locks=$lt_need_locks
15383
15384 # Manifest tool.
15385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15386
15387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15388 DSYMUTIL=$lt_DSYMUTIL
15389
15390 # Tool to change global to local symbols on Mac OS X.
15391 NMEDIT=$lt_NMEDIT
15392
15393 # Tool to manipulate fat objects and archives on Mac OS X.
15394 LIPO=$lt_LIPO
15395
15396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15397 OTOOL=$lt_OTOOL
15398
15399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15400 OTOOL64=$lt_OTOOL64
15401
15402 # Old archive suffix (normally "a").
15403 libext=$libext
15404
15405 # Shared library suffix (normally ".so").
15406 shrext_cmds=$lt_shrext_cmds
15407
15408 # The commands to extract the exported symbol list from a shared archive.
15409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15410
15411 # Variables whose values should be saved in libtool wrapper scripts and
15412 # restored at link time.
15413 variables_saved_for_relink=$lt_variables_saved_for_relink
15414
15415 # Do we need the "lib" prefix for modules?
15416 need_lib_prefix=$need_lib_prefix
15417
15418 # Do we need a version for libraries?
15419 need_version=$need_version
15420
15421 # Library versioning type.
15422 version_type=$version_type
15423
15424 # Shared library runtime path variable.
15425 runpath_var=$runpath_var
15426
15427 # Shared library path variable.
15428 shlibpath_var=$shlibpath_var
15429
15430 # Is shlibpath searched before the hard-coded library search path?
15431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15432
15433 # Format of library name prefix.
15434 libname_spec=$lt_libname_spec
15435
15436 # List of archive names. First name is the real one, the rest are links.
15437 # The last name is the one that the linker finds with -lNAME
15438 library_names_spec=$lt_library_names_spec
15439
15440 # The coded name of the library, if different from the real name.
15441 soname_spec=$lt_soname_spec
15442
15443 # Permission mode override for installation of shared libraries.
15444 install_override_mode=$lt_install_override_mode
15445
15446 # Command to use after installation of a shared archive.
15447 postinstall_cmds=$lt_postinstall_cmds
15448
15449 # Command to use after uninstallation of a shared archive.
15450 postuninstall_cmds=$lt_postuninstall_cmds
15451
15452 # Commands used to finish a libtool library installation in a directory.
15453 finish_cmds=$lt_finish_cmds
15454
15455 # As "finish_cmds", except a single script fragment to be evaled but
15456 # not shown.
15457 finish_eval=$lt_finish_eval
15458
15459 # Whether we should hardcode library paths into libraries.
15460 hardcode_into_libs=$hardcode_into_libs
15461
15462 # Compile-time system search path for libraries.
15463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15464
15465 # Detected run-time system search path for libraries.
15466 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15467
15468 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15469 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15470
15471 # Whether dlopen is supported.
15472 dlopen_support=$enable_dlopen
15473
15474 # Whether dlopen of programs is supported.
15475 dlopen_self=$enable_dlopen_self
15476
15477 # Whether dlopen of statically linked programs is supported.
15478 dlopen_self_static=$enable_dlopen_self_static
15479
15480 # Commands to strip libraries.
15481 old_striplib=$lt_old_striplib
15482 striplib=$lt_striplib
15483
15484
15485 # The linker used to build libraries.
15486 LD=$lt_LD
15487
15488 # How to create reloadable object files.
15489 reload_flag=$lt_reload_flag
15490 reload_cmds=$lt_reload_cmds
15491
15492 # Commands used to build an old-style archive.
15493 old_archive_cmds=$lt_old_archive_cmds
15494
15495 # A language specific compiler.
15496 CC=$lt_compiler
15497
15498 # Is the compiler the GNU compiler?
15499 with_gcc=$GCC
15500
15501 # Compiler flag to turn off builtin functions.
15502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15503
15504 # Additional compiler flags for building library objects.
15505 pic_flag=$lt_lt_prog_compiler_pic
15506
15507 # How to pass a linker flag through the compiler.
15508 wl=$lt_lt_prog_compiler_wl
15509
15510 # Compiler flag to prevent dynamic linking.
15511 link_static_flag=$lt_lt_prog_compiler_static
15512
15513 # Does compiler simultaneously support -c and -o options?
15514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15515
15516 # Whether or not to add -lc for building shared libraries.
15517 build_libtool_need_lc=$archive_cmds_need_lc
15518
15519 # Whether or not to disallow shared libs when runtime libs are static.
15520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15521
15522 # Compiler flag to allow reflexive dlopens.
15523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15524
15525 # Compiler flag to generate shared objects directly from archives.
15526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15527
15528 # Whether the compiler copes with passing no objects directly.
15529 compiler_needs_object=$lt_compiler_needs_object
15530
15531 # Create an old-style archive from a shared archive.
15532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15533
15534 # Create a temporary old-style archive to link instead of a shared archive.
15535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15536
15537 # Commands used to build a shared archive.
15538 archive_cmds=$lt_archive_cmds
15539 archive_expsym_cmds=$lt_archive_expsym_cmds
15540
15541 # Commands used to build a loadable module if different from building
15542 # a shared archive.
15543 module_cmds=$lt_module_cmds
15544 module_expsym_cmds=$lt_module_expsym_cmds
15545
15546 # Whether we are building with GNU ld or not.
15547 with_gnu_ld=$lt_with_gnu_ld
15548
15549 # Flag that allows shared libraries with undefined symbols to be built.
15550 allow_undefined_flag=$lt_allow_undefined_flag
15551
15552 # Flag that enforces no undefined symbols.
15553 no_undefined_flag=$lt_no_undefined_flag
15554
15555 # Flag to hardcode \$libdir into a binary during linking.
15556 # This must work even if \$libdir does not exist
15557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15558
15559 # Whether we need a single "-rpath" flag with a separated argument.
15560 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15561
15562 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15563 # DIR into the resulting binary.
15564 hardcode_direct=$hardcode_direct
15565
15566 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15567 # DIR into the resulting binary and the resulting library dependency is
15568 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15569 # library is relocated.
15570 hardcode_direct_absolute=$hardcode_direct_absolute
15571
15572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15573 # into the resulting binary.
15574 hardcode_minus_L=$hardcode_minus_L
15575
15576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15577 # into the resulting binary.
15578 hardcode_shlibpath_var=$hardcode_shlibpath_var
15579
15580 # Set to "yes" if building a shared library automatically hardcodes DIR
15581 # into the library and all subsequent libraries and executables linked
15582 # against it.
15583 hardcode_automatic=$hardcode_automatic
15584
15585 # Set to yes if linker adds runtime paths of dependent libraries
15586 # to runtime path list.
15587 inherit_rpath=$inherit_rpath
15588
15589 # Whether libtool must link a program against all its dependency libraries.
15590 link_all_deplibs=$link_all_deplibs
15591
15592 # Set to "yes" if exported symbols are required.
15593 always_export_symbols=$always_export_symbols
15594
15595 # The commands to list exported symbols.
15596 export_symbols_cmds=$lt_export_symbols_cmds
15597
15598 # Symbols that should not be listed in the preloaded symbols.
15599 exclude_expsyms=$lt_exclude_expsyms
15600
15601 # Symbols that must always be exported.
15602 include_expsyms=$lt_include_expsyms
15603
15604 # Commands necessary for linking programs (against libraries) with templates.
15605 prelink_cmds=$lt_prelink_cmds
15606
15607 # Commands necessary for finishing linking programs.
15608 postlink_cmds=$lt_postlink_cmds
15609
15610 # Specify filename containing input files.
15611 file_list_spec=$lt_file_list_spec
15612
15613 # How to hardcode a shared library path into an executable.
15614 hardcode_action=$hardcode_action
15615
15616 # ### END LIBTOOL CONFIG
15617
15618 _LT_EOF
15619
15620 cat <<'_LT_EOF' >> "$cfgfile"
15621
15622 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15623
15624 # func_munge_path_list VARIABLE PATH
15625 # -----------------------------------
15626 # VARIABLE is name of variable containing _space_ separated list of
15627 # directories to be munged by the contents of PATH, which is string
15628 # having a format:
15629 # "DIR[:DIR]:"
15630 # string "DIR[ DIR]" will be prepended to VARIABLE
15631 # ":DIR[:DIR]"
15632 # string "DIR[ DIR]" will be appended to VARIABLE
15633 # "DIRP[:DIRP]::[DIRA:]DIRA"
15634 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15635 # "DIRA[ DIRA]" will be appended to VARIABLE
15636 # "DIR[:DIR]"
15637 # VARIABLE will be replaced by "DIR[ DIR]"
15638 func_munge_path_list ()
15639 {
15640 case x$2 in
15641 x)
15642 ;;
15643 *:)
15644 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15645 ;;
15646 x:*)
15647 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15648 ;;
15649 *::*)
15650 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15651 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15652 ;;
15653 *)
15654 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15655 ;;
15656 esac
15657 }
15658
15659
15660 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15661 func_cc_basename ()
15662 {
15663 for cc_temp in $*""; do
15664 case $cc_temp in
15665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15667 \-*) ;;
15668 *) break;;
15669 esac
15670 done
15671 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15672 }
15673
15674
15675 # ### END FUNCTIONS SHARED WITH CONFIGURE
15676
15677 _LT_EOF
15678
15679 case $host_os in
15680 aix3*)
15681 cat <<\_LT_EOF >> "$cfgfile"
15682 # AIX sometimes has problems with the GCC collect2 program. For some
15683 # reason, if we set the COLLECT_NAMES environment variable, the problems
15684 # vanish in a puff of smoke.
15685 if test set != "${COLLECT_NAMES+set}"; then
15686 COLLECT_NAMES=
15687 export COLLECT_NAMES
15688 fi
15689 _LT_EOF
15690 ;;
15691 esac
15692
15693
15694 ltmain=$ac_aux_dir/ltmain.sh
15695
15696
15697 # We use sed instead of cat because bash on DJGPP gets confused if
15698 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15699 # text mode, it properly converts lines to CR/LF. This bash problem
15700 # is reportedly fixed, but why not run on old versions too?
15701 sed '$q' "$ltmain" >> "$cfgfile" \
15702 || (rm -f "$cfgfile"; exit 1)
15703
15704 mv -f "$cfgfile" "$ofile" ||
15705 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15706 chmod +x "$ofile"
15707
15708 ;;
15709 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15710 # Older Autoconf quotes --file arguments for eval, but not when files
15711 # are listed without --file. Let's play safe and only enable the eval
15712 # if we detect the quoting.
15713 # TODO: see whether this extra hack can be removed once we start
15714 # requiring Autoconf 2.70 or later.
15715 case $CONFIG_FILES in #(
15716 *\'*) :
15717 eval set x "$CONFIG_FILES" ;; #(
15718 *) :
15719 set x $CONFIG_FILES ;; #(
15720 *) :
15721 ;;
15722 esac
15723 shift
15724 # Used to flag and report bootstrapping failures.
15725 am_rc=0
15726 for am_mf
15727 do
15728 # Strip MF so we end up with the name of the file.
15729 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15730 # Check whether this is an Automake generated Makefile which includes
15731 # dependency-tracking related rules and includes.
15732 # Grep'ing the whole file directly is not great: AIX grep has a line
15733 # limit of 2048, but all sed's we know have understand at least 4000.
15734 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15735 || continue
15736 am_dirpart=`$as_dirname -- "$am_mf" ||
15737 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15738 X"$am_mf" : 'X\(//\)[^/]' \| \
15739 X"$am_mf" : 'X\(//\)$' \| \
15740 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15741 $as_echo X"$am_mf" |
15742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15743 s//\1/
15744 q
15745 }
15746 /^X\(\/\/\)[^/].*/{
15747 s//\1/
15748 q
15749 }
15750 /^X\(\/\/\)$/{
15751 s//\1/
15752 q
15753 }
15754 /^X\(\/\).*/{
15755 s//\1/
15756 q
15757 }
15758 s/.*/./; q'`
15759 am_filepart=`$as_basename -- "$am_mf" ||
15760 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15761 X"$am_mf" : 'X\(//\)$' \| \
15762 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15763 $as_echo X/"$am_mf" |
15764 sed '/^.*\/\([^/][^/]*\)\/*$/{
15765 s//\1/
15766 q
15767 }
15768 /^X\/\(\/\/\)$/{
15769 s//\1/
15770 q
15771 }
15772 /^X\/\(\/\).*/{
15773 s//\1/
15774 q
15775 }
15776 s/.*/./; q'`
15777 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15778 && sed -e '/# am--include-marker/d' "$am_filepart" \
15779 | $MAKE -f - am--depfiles" >&5
15780 (cd "$am_dirpart" \
15781 && sed -e '/# am--include-marker/d' "$am_filepart" \
15782 | $MAKE -f - am--depfiles) >&5 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } || am_rc=$?
15786 done
15787 if test $am_rc -ne 0; then
15788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15790 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15791 for automatic dependency tracking. Try re-running configure with the
15792 '--disable-dependency-tracking' option to at least be able to build
15793 the package (albeit without support for automatic dependency tracking).
15794 See \`config.log' for more details" "$LINENO" 5; }
15795 fi
15796 { am_dirpart=; unset am_dirpart;}
15797 { am_filepart=; unset am_filepart;}
15798 { am_mf=; unset am_mf;}
15799 { am_rc=; unset am_rc;}
15800 rm -f conftest-deps.mk
15801 }
15802 ;;
15803
15804 esac
15805 done # for ac_tag
15806
15807
15808 as_fn_exit 0
15809 _ACEOF
15810 ac_clean_files=$ac_clean_files_save
15811
15812 test $ac_write_fail = 0 ||
15813 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15814
15815
15816 # configure is writing to config.log, and then calls config.status.
15817 # config.status does its own redirection, appending to config.log.
15818 # Unfortunately, on DOS this fails, as config.log is still kept open
15819 # by configure, so config.status won't be able to write to it; its
15820 # output is simply discarded. So we exec the FD to /dev/null,
15821 # effectively closing config.log, so it can be properly (re)opened and
15822 # appended to by config.status. When coming back to configure, we
15823 # need to make the FD available again.
15824 if test "$no_create" != yes; then
15825 ac_cs_success=:
15826 ac_config_status_args=
15827 test "$silent" = yes &&
15828 ac_config_status_args="$ac_config_status_args --quiet"
15829 exec 5>/dev/null
15830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15831 exec 5>>config.log
15832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15833 # would make configure fail if this is the last instruction.
15834 $ac_cs_success || as_fn_exit 1
15835 fi
15836
15837 #
15838 # CONFIG_SUBDIRS section.
15839 #
15840 if test "$no_recursion" != yes; then
15841
15842 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15843 # so they do not pile up.
15844 ac_sub_configure_args=
15845 ac_prev=
15846 eval "set x $ac_configure_args"
15847 shift
15848 for ac_arg
15849 do
15850 if test -n "$ac_prev"; then
15851 ac_prev=
15852 continue
15853 fi
15854 case $ac_arg in
15855 -cache-file | --cache-file | --cache-fil | --cache-fi \
15856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15857 ac_prev=cache_file ;;
15858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15860 | --c=*)
15861 ;;
15862 --config-cache | -C)
15863 ;;
15864 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15865 ac_prev=srcdir ;;
15866 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15867 ;;
15868 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15869 ac_prev=prefix ;;
15870 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15871 ;;
15872 --disable-option-checking)
15873 ;;
15874 *)
15875 case $ac_arg in
15876 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15877 esac
15878 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15879 esac
15880 done
15881
15882 # Always prepend --prefix to ensure using the same prefix
15883 # in subdir configurations.
15884 ac_arg="--prefix=$prefix"
15885 case $ac_arg in
15886 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15887 esac
15888 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15889
15890 # Pass --silent
15891 if test "$silent" = yes; then
15892 ac_sub_configure_args="--silent $ac_sub_configure_args"
15893 fi
15894
15895 # Always prepend --disable-option-checking to silence warnings, since
15896 # different subdirs can have different --enable and --with options.
15897 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15898
15899 ac_popdir=`pwd`
15900 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15901
15902 # Do not complain, so a configure script can configure whichever
15903 # parts of a large source tree are present.
15904 test -d "$srcdir/$ac_dir" || continue
15905
15906 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15908 $as_echo "$ac_msg" >&6
15909 as_dir="$ac_dir"; as_fn_mkdir_p
15910 ac_builddir=.
15911
15912 case "$ac_dir" in
15913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15914 *)
15915 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15916 # A ".." for each directory in $ac_dir_suffix.
15917 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15918 case $ac_top_builddir_sub in
15919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15921 esac ;;
15922 esac
15923 ac_abs_top_builddir=$ac_pwd
15924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15925 # for backward compatibility:
15926 ac_top_builddir=$ac_top_build_prefix
15927
15928 case $srcdir in
15929 .) # We are building in place.
15930 ac_srcdir=.
15931 ac_top_srcdir=$ac_top_builddir_sub
15932 ac_abs_top_srcdir=$ac_pwd ;;
15933 [\\/]* | ?:[\\/]* ) # Absolute name.
15934 ac_srcdir=$srcdir$ac_dir_suffix;
15935 ac_top_srcdir=$srcdir
15936 ac_abs_top_srcdir=$srcdir ;;
15937 *) # Relative name.
15938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15939 ac_top_srcdir=$ac_top_build_prefix$srcdir
15940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15941 esac
15942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15943
15944
15945 cd "$ac_dir"
15946
15947 # Check for guested configure; otherwise get Cygnus style configure.
15948 if test -f "$ac_srcdir/configure.gnu"; then
15949 ac_sub_configure=$ac_srcdir/configure.gnu
15950 elif test -f "$ac_srcdir/configure"; then
15951 ac_sub_configure=$ac_srcdir/configure
15952 elif test -f "$ac_srcdir/configure.in"; then
15953 # This should be Cygnus configure.
15954 ac_sub_configure=$ac_aux_dir/configure
15955 else
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15957 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15958 ac_sub_configure=
15959 fi
15960
15961 # The recursion is here.
15962 if test -n "$ac_sub_configure"; then
15963 # Make the cache file name correct relative to the subdirectory.
15964 case $cache_file in
15965 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15966 *) # Relative name.
15967 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15968 esac
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15971 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15972 # The eval makes quoting arguments work.
15973 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15974 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15975 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15976 fi
15977
15978 cd "$ac_popdir"
15979 done
15980 fi
15981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15983 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15984 fi
15985
15986
15987